{"version":3,"file":"bocce-562ce3659c1a0b19dfa54a27f8d2e52d.js","names":["_typeof","o","Symbol","iterator","constructor","prototype","define","_exports","_rest","_emberInflector","_object","_runloop","_regenerator","e","t","r","n","toStringTag","i","c","Generator","u","Object","create","_regeneratorDefine2","f","p","y","G","v","a","d","bind","length","l","TypeError","call","done","value","return","GeneratorFunction","GeneratorFunctionPrototype","getPrototypeOf","this","setPrototypeOf","__proto__","displayName","w","m","defineProperty","_invoke","enumerable","configurable","writable","asyncGeneratorStep","Promise","resolve","then","default","adapter","extend","namespace","_hasFetchedAll","Map","init","_super","apply","arguments","nestedResources","window","location","host","protocol","updateId","record","data","oldId","get","id","typeMapFor","idToRecord","set","nestResources","type","resources","Array","isArray","ids","match","old","key","keys","push","reloaded","buildURL","snapshot","resource","joined","parts","hasOwnProperty","inflector","pluralize","join","substr","adapterOptions","params","_key","encodeURIComponent","shouldBackgroundReloadAll","store","snapshotsArray","shouldBackgroundReloadRecord","shouldReloadAll","snapshotArray","modelName","findAll","_arguments","_this","_callee","_len","rest","_key2","payload","_context","_next","_throw","createRecord","Date","getTime","updateRecord","serialize","includeId","retval","run","_store","_application","_emberResolver","_emberLoadInitializers","_environment","_jquery","App","modulePrefix","podModulePrefix","Resolver","customEvents","paste","blur","adapterFor","moment","tz","add","locale","calendar","lastDay","sameDay","nextDay","lastWeek","nextWeek","sameElse","test","navigator","userAgent","isMobile","toLowerCase","indexOf","isSafari","isEdge","document","mousemove","mouseX","pageX","mouseY","pageY","mouseover","_component","_templateFactory","__COLOCATED_TEMPLATE__","createTemplateFactory","block","moduleName","isStrictMode","setComponentTemplate","adblockWhitelistInstructions","dismissAdblockWarning","action","session","localStorage","setItem","toggleABWhitelistInstructions","whiteListInstructions","imageInNewTab","imgSrc","event","target","src","open","_component2","_tracking","_debug","_service","_upload","_shared","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","_descriptor5","_descriptor6","_descriptor7","_descriptor8","_descriptor9","_descriptor0","_descriptor1","_descriptor10","_asyncToGenerator","_initializerDefineProperty","initializer","_defineProperties","_toPropertyKey","_callSuper","_getPrototypeOf","ReferenceError","_assertThisInitialized","_possibleConstructorReturn","_isNativeReflectConstruct","Reflect","construct","Boolean","valueOf","_setPrototypeOf","toPrimitive","String","Number","_toPrimitive","_applyDecoratedDescriptor","forEach","slice","reverse","reduce","AudioRecorder","_Component","_classCallCheck","args","concat","_inherits","_createClass","_this2","panel","recorder","exportMP3","blob","mp3Name","context","file","File","audioBlob","URL","createObjectURL","getElementById","load","recordingStatus","recordingClassSelector","destroy","_this3","recording","progress","att_id","findRecord","attachment","console","log","updateRecordingStatus","updateAttachment","uploaded","err","debug","stream","AudioContext","webkitAudioContext","webkitURL","getUserMedia","Recorder","_startRecording","constraints","_this4","audio","getItem","echoCancellation","mozAutoGainControl","mozNoiseSuppression","googEchoCancellation","googAutoGainControl","googNoiseSuppression","googHighpassFilter","mediaDevices","startUserMedia","time","catch","error","_stopRecording","_callee2","rec","_context2","player","pause","currentTime","stop","encodeAudio","_this5","previousStatus","previousClassSelector","play","playerEventListener","addEventListener","echoCancellationEnabled","tracked","inject","getOwnPropertyDescriptor","AssignmentSubmissionBoxComponent","userprofileService","_computed","confirmDialog","tagName","classNames","classNameBindings","attributeBindings","deleted","reads","counter","didInsertElement","element","querySelectorAll","video","preload","goToVersion","preventDefault","sendParentAction","ariaLabel","computed","deleteConfirm","show","subtitle","choices","choice","send","loadedAssignments","undefined","sortProperties","assignments","sortedAssignments","sort","sendGoToAssignment","goToAssignment","supportedVideoTypes","chrome","firefox","edge","safari","opera","other","isOpera","isFirefox","isChrome","webkitGetUserMedia","isDestroyed","isDestroying","is_pdf","loadNoDLUrl","att_URL","origin","replace","created_at_formatted","format","attachment_name","or","att_URL_noDL","url","xhr","XMLHttpRequest","responseType","onload","status","loaded","total","response","blobUrl","is_image","is_video","canPlay","includes","createElement","canPlayType","browserCanPlayVideoType","is_quicktime","is_audio","is_word","is_zip","_chip","_attachedFile","_total","_AttachmentsContainer","AttachmentsContainer","_this$args$encodingVi","_this$args$attachment","encodingVideos","attachmentFiles","some","scope","_fileExtension","AttachmentsAttachedFileComponent","owner","renaming","fileName","renameInput","split","name","fileExtension","uploading","blobURL","_this$args$attachment2","_this$args$attachment3","deleteAttachment","showDeleteConfirmation","label","onClick","style","toggleShowDeleteConfirmation","accessibility","focus","newName","renameAttachment","index","alert","uploadSingleFile","audioPlayer","audioPlayerHTML","querySelector","classList","_dec","_descriptor11","_descriptor12","_get","_superPropBase","_defineProperty","AudioPlayerComponent","speed","rootEl","avPlayers","registerAudioPlayer","audioEl","volume","_superPropGet","unregisterAudioPlayer","_ref","source","title","prev","next","trackingId","trigger","prevRate","playbackRate","prevId","nextId","triggerEl","_unused","isOpen","_play","bar","closest","backgroundImage","isPlaying","videoUnfocus","duration","pct","seekValue","_this$audioEl","nextEl","click","loop","_this$audioEl2","paused","playOrPause","parseInt","seconds","vol","muted","delta","Math","max","min","looping","parseFloat","direction","idx","speedOptions","findIndex","el","close","keyCode","seekDelta","changeVolumeDelta","toggleMute","changeSpeedDelta","_formatTime","isNaN","floor","s","AvPlayerComponent","playing","thumbPosition","formatTime","thumbPercent","finalPercent","timeInSeconds","toLocaleString","minimumIntegerDigits","useGrouping","playerElement","_enmodal","_notify","hashSplit","hash","course","ban","message","modal_type","dismiss_condition","modal_id","actions","notify","is_dismissable","link","dismiss_condition_id","last_banner_serial","banners","toggleDrawer","drawerActive","dismissDashboardNotif","dismissNotif","singleBanner","dismissable","banner_id","course_id","term_id","model","save","splice","notifyPropertyChange","viewNotif","banner","reload","BookmarksHeaderComponent","bookmark","noteClipped","elem","clientHeight","scrollHeight","moreShowing","_templateOnly","bookmarksService","numBookmarksLessons","courses","hasMoreBookmarks","_asyncButton","_buttonGeneric","active","_ready","activeLabel","_working","inactiveLabel","ariaDisabled","not","promiseAction","resolved_val","thenAction","_modifier","_clickOutside","_ActivityDue","ActivityDue","multiButtonOpen","on","CharacterLimitedTextarea","charLimit","charCount","updateOverCharLimit","inputWithoutNewlines","text","substring","updateBodyText","_ChipFilter","_Chip","ChipFilter","boundSetup","setup","toggleFilter","chipElement","toggleActive","removeEventListener","_eq","_chipSubmissionDetails","_WorkCard","STATUS","freeze","NOT_SUBMITTED","SUBMITTED","SUBMITTED_LATE","EXTENSION","OVERDUE","RESUBMIT","WorkCard","_ChipSubmissionDetails","ChipSubmissionDetails","chipModifier","iconModifier","_this$args$icon","icon","_this$args$label","grade","_emberModifier","Chip","modifier","_this$args","_this$args$setup","ClasslistComponent","section","studentsByLastName","filter","enrollment","matchingSearchFilter","user","matchingFilter","searchValue","trim","activeFilters","isDegreeStudent","hasAccommodation","enrolled_late","ariaHidden","lesson","_emberConcurrency","Header","pollInbox","perform","cancelAll","_t","timeout","peekAll","workflow_state","features","staticContent","isFourWeekCourse","term","week","totalWeeks","dropdownOpen","survey","dismissBanner","userMenuOpen","service","task","showWeek","_sectionLabel","_termLabel","DeleteLastAttempt","Component","_len2","_loadQuizUsers","quizId","path","$","quiz_submission_users","users","_x","loadQuizUsers","quiz","selectedQuiz","selectedUser","_expandOperations","userId","find","attempt_made","_x2","ClassroomLessonsAssignmentContentComponent","ClassroomLessonsDiscussionContentComponent","_quizzesFactory","ClassroomLessonsQuizContentComponent","quizzes","search_id","quizSetup","initialized","initialize","scheduleOnce","performedInitialRender","_quizSetup","isEnabled","_this$quiz","quiz_statistics_components","_conversable","conversationSortRules","router","sortAscending","filteredList","recipientId","courseInstructor","sortedConversations","activeConversations","convo","unreadCountInbox","conversationsLoaded","conversation","closeModals","pmInstructor","transitionTo","_toConsumableArray","_arrayLikeToArray","_arrayWithoutHoles","from","_iterableToArray","toString","_unsupportedIterableToArray","_nonIterableSpread","CourseList","terms","current","training","past","currentTerms","sum","_t$courses","trainingTerms","_t$courses2","pastTerms","_t$courses3","currentCount","auditingCount","completedCount","totalCourseCount","availableTabCount","tab","_activeTab","defaultTab","activeTab","filterText","activeTerms","map","course_name","code","course_code","firstCourse","entry","stopPropagation","isCurrentlyOpen","maximizedCard","updateMaximizedCard","_labels$this$activeTa","all","auditing","completed","isDropdownOpen","CourseListItemPast","termIndex","_this$args$course","teacher","user_name","toUpperCase","_template","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec0","_dec1","_dec10","CourseListItem","stype","splitter","ascending","courseRaw","assignment","is_splitter","sorted","b","aDue","due_at","bDue","assignment_type","localeCompare","currentGroup","sortedWithDividers","splitterCount","groupName","groupWeight","isDiscussion","assignment2","type_name","type_weight","is_discussion","course_order","fullIndex","isTeacher","closed","gradebook_entries","ungradedAsZeroString","dashboardSorter","ungradedAsZero","resortUngradedAsZero","currentUngradedAsZero","final_grade","finalGrade","gradeCalculator","calculateFinalGrade","unmuteAllGrades","finalAverageClassmateGrade","score","final_score","weightedScore","finalAvrageClassmateGrade","finalAvrageClassmateScore","resortWeightedDivisions","weightedDivisions","currentWeightedDivisions","resortAscending","currentSortAscending","firstLoad","due_this_week","sortAssignmentsProcess","the_rest","JSON","parse","stringify","_this$course$teacher","has_upcoming","has_due","has_unread","isExam","_i","_examCourses","examCourse","htmlSafe","my_stats","user_assignments_on_time_percentage","user_discussions_on_time_percentage","average_submission_on_time_percentage","average_discussion_on_time_percentage","courseIndex","unread_total_count","unread_discussions_count","unread_announcements_count","unread_assignment_comments_count","upcoming_live_events_count","dueCount","quizzes_due","assignments_due","discussions_due","assignments_overdue","quizzes_overdue","discussions_overdue","displayStatsPopup","isMaximized","scrollTo","scrollElementIntoView","targetClassList","contains","showCourseStatsInfo","showUnsubmittedInfo","showGradeInfo","toggleProperty","hideClassmateStats","date","datetime","dateString","DiscussionBodyComponent","expandedPost","DiscussionHeaderComponent","subscribed","topicId","DiscussionReplyBoxComponent","_editable","_showcase","replyId","replyBody","responseBody","remove","innerHTML","replyInfo","removeClass","setTimeout","addClass","scrollIntoView","_proxy","SectionOption","selected","sections","content","options","initSelections","clear","pushObject","multipleSectionsSelected","gt","role","ariaDescribedBy","toggleSection","option","sectionId","removeObject","selectAll","selectNone","cancel","closeAction","_same","_inarray","_percentage","_userPortrait","_helper","_Poll","Poll","updatedPoll","poll","percentage","color","pollChoice","voterInfo","info","poll_choice_id","voterData","voters","voter","peekRecord","user_id","_this$args$poll$total","votes","total_results","result","_this$args$poll$did_v","did_vote","indx","old_poll","selectedPollIds","_votePoll","poll_id","choicesArray","pollSubmitting","fetch","method","body","poll_submissions","ok","statusText","pollLoader","discussion","_pollLoader","modelId","fn","_confirmDialog","_darkBackdrop","_SavedDrafts","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_nonIterableRest","setHtml","html","stripHtml","tmp","textContent","innerText","formatDate","recName","ts","pop","toLocaleDateString","month","day","year","hour","minute","isoDate","toISOString","SavedDrafts","setDraftToDeleteBound","setDraftToDelete","onClose","draft","activeDraft","onInsert","onDelete","_handleDelete","draftToDeleteButtons","deleteConfirmDialogButtons","handleDelete","_audioRec","_videoRec","_rtcRec","_uploadable","_discussable","_kalturaUpload","_legacyAttachmentManager","boundAppropriateAttachment","appropriateAttachment","willDestroyElement","off","didRender","files","len","controller","mimeTypes","_loop","encoding_video","percent_uploaded","encoding_videos","fileIndex","kalturaUploadVideo","setObjects","ev","ignoreDownloadOnlyPrompt","_model","responseUser","formattedTime","responseTime","created_at","nowEt","isSame","expandable","threshold","expanded","elements","localStorageService","rubricKey","hasSavedAssessments","registerCallback","newValue","getRole","getAriaLabel","graded","my_submission","currentSubmissionId","currentAuthor","currentSubmissionAuthor","unread","clickAction","submissions","_this$model$assignmen","hasMany","sendToggleProfile","toggleProfile","sendViewSubmission","viewSubmission","_createForOfIteratorHelper","_n","F","filters","gradebook","didUpdateAttrs","assignmentHeaders","headers","_step","_iterator","columns","column","assignmentUsers","grades","passfail","display","gradesDueAtLocal","gradesDueAtEastern","lateGradingPolicyEmpty","policy","openLateGradingPolicy","openPrefsToLateGradingPolicy","showGradesDueAt","getYear","hideMutedGrades","calcGrades","observer","usersPrp","allUserAssignments","h","finalGrades","_loop2","calcType","categoryGrades","category","scoreCalc","gradeCalc","totalIndx","weighNotYetDueGrades","hideMuted","muteToggleAssignment","assignment_index","_isMuted","isMuted","ungradedAsZeroToggle","asZero","gradeEditOn","gradeEditOff","assignGrade","assignment_id","submission_id","student_id","usr","inx","cellId","$cell","sub","prompt","errors","detail","assignFinalGrade","ajax","section_id","term_name","success","dbFailurePrompt","currentStudentGraded","gradedStudents","gradedStudent","jqXHR","textStatus","generateCSV","csvArr","rowsTemp","headersPrp","replaceAll","j","_text","grading_standard_id","late","csvContent","encodedUri","encodeURI","setAttribute","appendChild","changeFilter","currentFilters","curFilter","itm","filterAssignments","filterQuizzes","filterDiscussions","isFiltered","view","item","closeGradebook","Inbox","handleVisibilityChange","pollInterval","setupPolling","_onVisibilityChange","_cleanupResizeListeners","container","currentTarget","_onMouseMove","rect","getBoundingClientRect","clientX","left","width","splitPct","_onMouseUp","loadInboxData","conversations","isLoading","_b$lastActivity$getTi","_b$lastActivity","_a$lastActivity$getTi","_a$lastActivity","lastActivity","inboxData","lastPollTime","now","_handledExternalSendRequest","externalSendRequest","createNewOrOpenExistingConversation","selectedConversation","updateSelectedConversation","visibilityState","_createNewOrOpenExistingConversation","userIds","existingConversation","_conversation","participants","isNew","groupConversation","_t2","_context3","conversationPartners","every","recipients","private","group_conversation","refreshInbox","_toggleReadUnread","isRead","_context4","working","read","toggleConversationRead","closeConversation","messageId","noLoad","conversationLoading","message_count","selectedConversations","toggleConversationStar","_this6","_this7","toggleConversationArchive","composingConversation","messageIndex","conversationIndex","conversationId","_this8","updateConversationInList","forceRead","forceUnread","_this9","readState","_this0","ownKeys","getOwnPropertySymbols","_objectSpread","getOwnPropertyDescriptors","defineProperties","MessageTile","replyCount","partners","toArray","visible","moreCount","isPlaceholder","partner","isLast","_attachments2","_class2","_descriptor13","_descriptor14","_descriptor15","_descriptor16","_descriptor17","_descriptor18","_descriptor19","_descriptor20","_descriptor21","FileModel","valid","MessageView","postInProgress","bodyInput","cleaned","attachmentManager","sanitize","bodyInputHasContent","attachmentsUploading","audience","audienceString","later","scrollConvoToBottom","messageBody","convoDiv","scrollTop","createdAtFormatted","belongsToSelf","author","image_url","attachments","_cachedConversationId","_messageCache","_renderedMessages","cached","serializeMessage","size","values","scrollTask","shared","sectionCodes","participantRelationships","participantRelationship","sectionCode","relationship","courseTitle","sectionLabel","termLabel","enrollments","self","setBodyInput","dontUpdateRte","setRteService","editor","messageViewRteService","updateArchive","_self$args","deleteArchivedText","_self$args2","inputElement","isOverflowing","messages","allMessagesLoaded","loadingMoreMessages","num_loaded","min_id","_step2","_iterator2","conversation_message","_step3","_iterator3","author_id","pushPayload","foundRecipients","searchUsersInput","evt","param","handle","autoCompleteTimeoutHandle","searching","results","common_courses","courseId","notFound","_error","addValidFile","kalturaUpload","uploaded_id","stub","isExisting","_attachment$file","isUrl","kalturaRenameVideo","loadedAttachment","recipientIds","recipient","composeConversation","attachmentsApp","AttachmentsApp","addFiles","closeModal","addFile","dialogClass","append","renderApp","showModal","embedParser","parseEmbed","videoEmbedString","generateVideoEmbedString","current_conversation","removed","savedConversation","convoSent","scrollAndUpdateLocalConversation","new_conversation_message","_attachments","Location","Status","Message","Error","responseText","attachmentDrawerOpen","destroyRecord","showSharedEnrollments","isArchived","archived","dialogMessage","_ref2","_callee3","selection","getElementsByClassName","isStarred","starred","DropdownComponent","selectedId","placeholder","changeSelection","TemplateDropdownComponent","footerAction","InputsSliderComponent","activated","initialState","kalturaEmbed","kWidget","kalturaRecording","kEmbedObject","targetId","elementId","flashvars","autoPlay","wid","uiconf_id","entry_id","kalturaId","embed","_boot","bootContent","didUpdate","node","boot_area","AdviceCardSubmitter","fetchAdviceCards","adviceCards","adviceCardsCount","adviceCardsArray","json","card","toSorted","isInstructor","updateMyAdviceCard","author_canvas_id","adviceCard","myAdviceCard","teachers","recordingUploading","adviceCardPostable","adviceCardBodyText","newText","newVal","overCharLimit","attachmentURL","_toggleAcceptAdviceCard","advIndex","accept","_advIndex","updatedCard","newAdviceCards","accepted","_updateCheckbox","consentChecked","checked","_x3","_submitAdviceCard","assignmentBody","publicize_consent","author_name","course_title","existing_card","thisCard","instructor_id","submitAdviceCard","AdviceCardViewer","header","background","_this$adviceCards","currentLikes","currentIndex","num_likes","currentCardLiked","liked","currentCardHidden","is_hidden","_toggleHide","requestType","currentCard","_toggleLike","logInteraction","_logInteraction","EventNewContentComponent","updateLocalDocs","_this$args$controller","localDocs","stickyHeader","headerOffsetHeight","offsetHeight","animate","offsetTop","EventNewTemplateManagerPageComponent","templates","events","template","appendTo","changeTemplate","onTemplateChange","hideTemplateManager","useTemplate","contentNotDirty","APP","confirmChangeTemplate","ctl","parent","attr","getAttribute","proxy","didScroll","scrollStop","sidePanelScrollStart","sidePanelScrollStop","didResize","getThingsRolling","willDestroy","currHeader","first","prevAll","newTitle","lessonNum","lessonTitle","_quiz","bookmarks","addLinkTargets","promises","each","templateForType","discussioncontents","discussionLastReply","responses","latestResponse","assignmentcontents","topicbody","setBookmarkManagerShown","shown","addBookmark","lessons","lesson_id","lesson_name","db_id","LoginStreak","loginStreakService","consecutiveWeeks","weekNum","daysThisWeek","fullName","num","_ModalWormhole","ModalWormhole","removeAttr","ModalsAttachmentsAttachmentsRecordAudioComponent","reInitialize","recordedAudio","kaltura","currentlyRecordingAudio","timeRecorded","showEraseConfirmation","_moment","ModalsAttachmentsAttachmentsRecordVideoComponent","expandedSettings","quality","recordingVideo","recordingCurrentTime","useCameraTag","setupCameraTag","startPreview","showLoadingWheel","vidSettings","audioSettings","videoInputId","deviceId","audioInputId","height","getTracks","track","enumerateDevices","deviceInfos","videoSources","deviceInfo","kind","audioSources","srcObject","fileType","MediaStreamRecorder","mimeType","CameraTag","observe","myCamera","myVideo","mp4_url","model_title","myVid","cas","cameras","getVideo","medias","vga_mp4","reset","localArchive","res","startTimer","recordingStartTime","unix","timeInterval","setInterval","timeCalc","clearInterval","getSeekableBlob","seekableBlob","recordedVideo","clearRecordedData","ModalsAttachmentsAttachmentsUploadFileComponent","uploadedFiles","hasUploaded","_ConfirmDialogHost","ConfirmDialogHost","dialog","_helper2","_ConfirmDialog","eq","helper","safe","_ref3","dialogA11y","_positional","_ref5","onEscape","initialFocusSelector","rememberFocus","initialFocus","release","trapFocus","restoreFocus","nextDialogId","ConfirmDialog","_this$args$defaultInp","_this$args$defaultInp2","defaultInput","_fallback$onClick","onDismiss","buttons","fallback","_this$args$layout","layout","_this$args$inputType","inputType","_this$args$additional","extras","additionalClasses","_this$args$choices","handleChoice","dialogId","inputValue","checkboxStates","onChoice","isFirst","_this$args$checkboxOp","checkboxOptions","_","_this$args$checkboxOp2","_embedParser","_polls","_nestedResources","kalturaService","multiSections","file_ids","setConfirmTransition","editorHasContent","titleInput","isAnnouncement","modalTitle","userSectionCodes","otherCurrentTermSections","readyToSave","postable","postToSection","recObject","pollObject","createdRecords","trackCreatedRecord","pollsPromise","discussionsPromise","currentSectionCreation","_poll","postableDiscussion","postablePoll","createNestedResources","otherSectionsCreation","polls","discussions","updateNestedResources","ignoreTransitionConfirmation","announce","rollbackAttributes","unloadRecord","toggleMultiSectionPicker","setObject","saveDiscussion","pollQuestions","pollChoices","pc","pollStarted","is_correct","position","description","question","is_announcement","admin_announcement_term","isAdminAnnouncement","is_admin_announcement","cancelNewDiscussion","history","back","showingInstructions","notification","notification_id","dismiss","dismissAction","_logout","PreviousQuestions","unloadAll","discourseUrl","hostname","currentUser","icsLink","bodyMarkup","post","prefPanelOn","menuElem","toggle","menuBackdrop","_image","PrefsComponent","_this$session$user$ge","_this$session$user$ge2","_this$session$user$ge3","prefBio","bio","prefPronouns","pronouns","prefLoc","lateGradingPolicy","keyboardShortcutPermChanged","lateGradingPolicyChanged","showcasePermChanged","resubPermChanged","bioChanged","pronounsChanged","locChanged","avatarUrl","fontChanged","_this$session$user$ge4","_this$session$user$ge5","_this$session$user$ge6","_this$session$user$ge7","_this$session$user$ge8","can_resubmit","focusLateGradingPolicy","newAvatar","fontSetter","css","input","avatarUploading","BocceImage","from_file","img","crop_to_square","to_blob","fi_url","prefs","refresh_needed","can_resubmit_col","can_showcase","keyboard_shortcuts","font_size","courseCodeWithoutSection","closePrefPanel","adjustFont","_QuickGrader","QuickGrader","Input","submissionDownloader","download","assignmentId","openAssignmentView","_downloadAllSubmissions","_onAction","reject","Operation","disabledReason","operationOnAction","performingAction","UnlockForNextAttempt2","selectedUserChanged","quizAttemptMade","UnlockForNextAttempt","_UnlockForNextAttempt2","selectedExtraAttempts","quiz_extensions","_onAction2","setAnswer","FileUpload","hasScore","attemptData","fileUploadElem","existingFileUploadElem","replaceChild","_downloadFile","attachmentId","_JSON$parse","href","removeChild","addEventListeners","answersHtml","givenAnswer","blankIds","_givenAnswer$blankId","blankId","changeAnswer","answerId","answer","answers","optionAnswers","givenOptionAnswer","optionsHtml","isScoredTimedQuizWithRemainingAttempts","_answer","_lodash","_promiseQueue","Question2","givenAnswerObserver","hasAnswerChanged","enqueue","given_answer","default_answer","onAnswerChange","Question","_Question2","questionIndexPostfix","addNextQuestionCallback","onNextOrFinish","questionInitialized","doCheckAnswer","notGradedAndNoScore","doShowAnswer","presentation","quiz_questions","hasAnswer","answerNeeded","quiz_attempt","is_graded","showing","showingAnswerCorrectFeedback","numAttempts","numAttemptsLeft","isAnswerCorrect","gotAnswerCorrect","showingCorrectAnswer","nextQuestion","QuizSingleGradedResults","QuizAll","allowSubmit","additionalLogic","isGraded","gradeLock","gradingQuiz","uploadingQuestion","QuizInstructor","showStats","QuizIntercept","hasAttempt","isRetrying","hasTimeLeft","noTimeLeft","submitQuiz","startQuiz","QuizSingleGradedReviewing","introduction","QuizSingle","_this$quizzes$questio","numQuizQuestions","questions","maxQuestionIndexUsed","QuestionStatisticsManual","stats","getStats","scores","ungraded","numResponses","statistics","usernames","numUngraded","user_names","username","numStudents","percentageUngraded","toFixed","percentageGraded","percentageSubmitted","usersHtml","_arr","Set","scoresHtml","QuestionStatisticsMultiple2","QuestionStatisticsMultiple","_QuestionStatisticsMu","placeholderId","answer_sets","blankPercentages","getBlankPercentages","setAnswers","changePlaceholder","totalResponses","_answerSet","percentageCorrect","answerResponses","correct","answered","as","question_text","_step4","_iterator4","answerSet","QuestionStatisticsSingle2","QuestionStatisticsSingle","_QuestionStatisticsSi","answersTracked","answerStats","user_ids","responsePercentage","ui","_utils","QuizStatsActions","has","quiz_statistics","question_statistics","questionStats","downloadAttachments","downloadEssays","toggleShowStats","_downloadAttachments","_getAttachments","quiz_submissions_zip_url","cache","saveFile","_downloadEssays","downloadingEssays","_getEssayResponses","ShortAnswerQuestionStatistics","_showUsers","Quiz","timedQuizStarted","FinishQuiz","maxWidth","curWidth","points_received","points","questionIndex","disabled","setQuestionIndex","QuizOverview","gradedQuestions","correctQuestions","currentListPosition","keyUp","keyEvent","listLength","recipientSearch","autoComplete","focusRI","chooseRecipient","choose","val","viewConversation","_Reply","Reply","_and","_sanitizeHtml","_service2","_drafts","_RteInput","RteInput","userInput","rtePositioningSession","rtePositioning","attach","wrapper","behavior","positioningBehavior","scrollRootSelector","positioningScrollRootSelector","isDisabled","isDraftsOpen","ignoreMakeRteSticky","isFullScreen","_this$rtePositioningS","boundOnInsert","onDeleteBound","_this$rtePositioningS2","_this$editor","qlEditorEl","quill","activeElement","end","getLength","setSelection","_toggleFullscreen","computedStyle","_rteWrapper","documentElement","_rteOriginalStyle","removeAttribute","_rtePlaceholder","parentNode","insertBefore","resetRteStickyStyling","_windowScrollX","scrollX","_windowScrollY","scrollY","getComputedStyle","className","assign","marginTop","marginRight","marginBottom","marginLeft","overflowAnchor","top","right","bottom","maxHeight","margin","zIndex","overflow","boxSizing","transform","toggleFullscreen","string","noNoWords","_noNoWords","pattern","cleanup","sanitizeHtmlOptions","allowedTags","defaults","transformTags","h1","attribs","_this$args$setBodyInp","editorHTML","isEmpty","marker","range","createRange","getSelection","setStartAfter","collapse","removeAllRanges","addRange","shiftKey","state","archiver","one","localDocRunner","localDocRunnerName","myText","isText","sendUpdateArchive","appendOrReplace","_onDelete","schedule","toggleClass","RubricAssessment","onToggleDetailsShown","detailsShown","assessmentEvents","setData","_superPropGet2","criterion","assessment","comments","_d$assessment","RubricGrading2","assessmentObserver","assessedPoints","assessmentData","lateDeductionAssessment","contentDirtyObserver","grading","assessments","lateDeduction","markSubmissionRead","RubricGrading","_RubricGrading2","previousSubmissionId","gradingId","localStorageCallback","setAssessmentData","setRubricAssessmentIsDirtyCallback","rubricService","isGrading","setSubmissionComponentCleanupCallback","savedGrading","savedAssessments","savedLateDeduction","_savedAssessments","assessmentId","savedAssessment","setupListener","shortcutListener","stopEvent","stopImmediatePropagation","isForwardShortcut","forward","isBackShortcut","submission","markCommentsRead","which","ignoreResetAssessmentCall","resetAssessment","deductionAssessmentId","round","scoreToLetter","defaultGrading","localStorageCleanup","removeItem","unregisterCallback","hasAllCriteria","attempt","onSubmitGrade","pointsPossible","ratings","_exitGrader","RubricGraded","hasSavedRubricAssessments","toggleIsGrading","$el","_showdown","RubricComponent","criteria","converter","Converter","_c$description","makeHtml","RubricUngraded","rubric","ScreenReaderAnnouncerComponent","SideNavComponent","showcaseCourseID","showcase_course_id","discourseURL","userEmail","_this$session$course","isDYS","isAdminOrStaff","isLimitedStudentTerm","_this$session$section","isStaticContent","hasDiscourse","isStaff","_routing","_ToolbarButton","ToolbarButton","boundOnClick","_this$args$onClick","_discussion","_assignment","_layout","SidePanel","syncFiltersToSession","_this$args$closePanel","isNarrowLayout","closePanel","sorting","lowercaseFilter","courseDiscussions","locked","courseAssignments","courseQuizzes","needsTeacherAttention","needsStudentAttention","todo","hasUngradedSubmission","is_required","setDate","getDate","sortDate","isStudentUnread","items","activityItems","counts","activityFilters","matching","isUnreadContribution","filterCategoryMatches","numUngradedSubmissions","workItems","workFilters","_activityDue","_announcement","_ActivityCard","ASSIGNMENT_CURRENT_WHEN","ACTIVITY_TYPES","ActivityCard","activity","itemType","currentURL","belongsTo","LinkTo","showAnnouncement","discussionsArray","assignmentsArray","assignmentsNeedingAttention","filterType","filterUnread","filterString","all_all","all_unread","announcements_all","announcements_unread","filterBy","latestAnnouncement","assignments_all","alias","assignments_unsubmitted","assignments_ungraded","assignments_comments","assignments_resubmission","nonAnnouncements","requiredDiscussions_all","required","na","due","requiredDiscussions_unread","conversations_all","conversations_unread","activities","filterBuggedAnnouncements","filteredActivities","incomplete","activitiesThisWeek","_this2$currentWeekRan","currentWeekRange","firstDayOfWeek","lastDayOfWeek","activityDate","lastReplyDate","activitiesUpcoming","activitiesPast","dupes","find_dupes_helper","dirty_announcements","announcement","hasDirtyAttributes","idSlug","currentDay","getDay","diff","setHours","totalUngradedSubmissions","showMultiButton","readOnly","hideAnnouncement","_dateFormat","_chipSubmission","dueDate","formatWithSuffix","postedDate","todayAsTime","replyDate","pastDue","dueToday","teacher_requires_resubmission","requiresResubmission","isSubmitted","i_submitted","currentUserSubmission","attempts","grade_matches_current_submission","currentUserSubmissionGrade","currentUserSubmissionScore","_not","_or","_webex","_EventCard","EventCard","eventId","willAttend","isRsvpLoading","toggleRsvp","_handleToggleRsvp","_this$args$event$meet","meetingKeys","recordParticipation","kalturaEvent","watchUrl","rejoinChatAsHost","joinChat","currentUserIsOwner","hasZoomId","isPast","isCurrentChat","_reservations$find","reservations","_this$currentUserRsvp","currentUserRsvp","_this$currentUserRsvp2","privateLessonStudentId","acsUserId","_observers","_eventNew","_rsvp","SidePanelEventsComponent","runningChatMeetingKey","addObserver","removeObserver","_this$args$eventsMode","eventsModel","upcomingChats","chats","sortedUpcomingChats","tenMinutesInMilliseconds","nextUpcomingChat","at","start","eventsService","setIsWorking","getOtherSectionChats","otherSectionChats","hasOtherSectionChats","currentUserAcsId","canShow","eventsList","hasMedia","isPastTime","_chats$at","sortedChats","chat","meeting_key","cur","currentChat","canStart","isNotCurrent","candidate","list","q","watched","prop","desc","dir","aVal","startAt","bVal","filterChats","pastChats","sortByStartAt","filteredUpcomingChats","filteredPastChats","_this$router$currentR","currentRoute","event_id","meeting_details","meeting_id","_webexStartChat","startChat","finally","_webexRejoinChatAsHos","_webexJoinChat","watchChatUrl","zoomLoginRedirect","testChat","_startQuickEvent","otherSections","eventDataList","createSingleSectionQuickEvent","futureEvent","endAt","clone","courseIds","sendEventsToInterfaceAndSendEmail","eventDataSingle","upcomingChatsExpanded","upcomingCollapsed","pastCollapsed","showOnlyInstructorChats","_toggleRsvp","_event$reservations","reservationCount","_FilterDropdown","FilterDropdown","keyupCallback","closeLateGradingPolicy","_chipFilter","_filterDropdown","_PanelFilters","PanelFilters","search","expandedFilters","_SyllabusLesson","SyllabusLesson","number","lessonExpanded","SyllabusComponent","lessonLoaded","itemName","itemDate_arg","url_chunk","itemDate","getTimezoneOffset","formattedDate_init","getFullYear","getMonth","getHours","getMinutes","getSeconds","_LessonItem","LessonItem","topic","formattedDate","allBookmarkContentTagIds","array","_lessonItem","CARD_TYPES","todoOpen","completedOpen","quizzesArray","unread_count","unreadCount","setShowLateGradingPolicy","toggleTodo","toggleCompleted","activateOnKey","_dragAndDrop","_quickGrader","_rte","_attachmentsContainer","_SubmissionFooter","SubmissionFooter","postSubmissionComment","SubmissionNoRubricComponent","_this$args$openAssign","commentsHidden","showStudentList","SubmissionView","rubricDetailsShown","submissionNavigation","_model$content","_model$content$hasMan","_model$content$hasMan2","totalSubmissions","canNavigate","currentPosition","previewUsers","subs","seen","_subs$i","_u$id","_subs$i2","_this$assignment","_subs$i3","prevSubmissionId","_this$submissions","nextSubmissionId","_subs","goPrev","_navigate","goNext","submissionId","loading","onRouteDidChange","clearTimeout","timer","route","uploadedId","previewStopped","currentPreviewAudio","previewPlaying","generatedUrl","audioPreview","attributes","audioPreviewStop","videoPreview","otherFilePreview","needsIcons","showIcons","_this$user","_this$user2","_this$user3","showClock","_UserMenu","UserMenu","hasClassroomContext","isBCM","isSimplifiedTerm","isLiveWorkshop","currentRouteName","_this$session$course2","isDashboard","isAvailable","_this$session$course3","showAdvisorLinks","_this$session$course4","_this$session$user","isGettingStarted","profile","initials","part","charAt","suppressClick","toggleUserProfile","activeUser","assignmentsLocked","unlockWeek","isEarlyUnlock","earlyAccessStatus","degree","allEnrolled","enrolledUser","enrolled","classroom","earlyUnlockCheck","latestUnlockWeek","accommodation","unlockAssignments","dataType","stripAssignmentTimers","_error2","refreshZoomId","_error3","changeUnlockWeek","weekNumber","earlyLock","earlyUnlock","termId","unlock_week","closeProfile","isEditing","pm","activityReport","gradeReport","reportAtRisk","email","masquerade","_html","_wistia","_descriptor22","_descriptor23","_descriptor24","VideoPlayerComponent","_window$matchMedia$ma","_window$matchMedia","_window","matchMedia","matches","aria","sizeFrame","cancelAnimationFrame","requestAnimationFrame","_this$engine","engine","resize","_this$rootEl","_this$rootEl2","isFs","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","isFullscreen","isMinified","_syncEngineSize","currentRes","currentVideoRes","_this$engine2","homeParent","homeAnchor","createComment","registerVideoPlayer","_fullscreenAbortController","AbortController","signal","evtName","_onFullscreenChange","videoEl","wistiaMountEl","_this$engine3","_this$_fullscreenAbor","_teardownObserver","_teardownTranscript","abort","unregisterVideoPlayer","_trigger$closest","poster","wistia","noFlavors","standalone","uncompressed","doClose","keepStateForReopen","isWistia","inf","triggerParent","parentElement","lastElementChild","prepend","isHidden","hasError","hasCC","settingsOpen","smallMobile","hideVolumeControls","_start","_setupObserver","_this$engine4","_this$session$set","_this$session","_ref2$keepStateForReo","_resetTriggerIcons","isMinmaxing","nativeControls","onEngineError","uploadVideoAnalytics","EVENT_IDS","START","currentSource","applySettings","_markTriggerActive","_start2","_this$rootEl3","_this$rootEl4","_this$engine5","_syncTriggerToWindowRestore","_this$rootEl5","_this$rootEl6","PROGRESS_100","_highlightTranscript","_trackProgress","cues","_renderTranscript","togglePlay","_report","_this$engine6","resume","_this$triggerEl","_this$rootEl7","component","_this$engine7","_legacyKaltura","_this$engine8","command","sendNotification","_this$engine9","seekBy","_this$engine0","_this$engine1","seek","_this$engine10","_this$engine11","setVolume","setMuted","_this$engine12","_this$engine13","_this$engine14","_this$engine15","setLoop","_this$engine16","ccActive","toggleCC","exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen","requestFullscreen","mozRequestFullScreen","webkitRequestFullscreen","msRequestFullscreen","webkitEnterFullscreen","_event$preventDefault","_event$preventDefault2","helpOpen","_event$preventDefault3","_event$preventDefault4","_this$engine17","setRate","nextIdx","selectSpeed","_event$preventDefault5","requestResolution","_this$engine18","_this$session$set2","_this$session2","supportsResolution","setResolution","_event$preventDefault6","maximize","root","rootMargin","intersectionObserver","IntersectionObserver","entries","_onIntersect","disconnect","isIntersecting","blocked","_this$triggerEl2","transcript","cue","span","_e$target$closest","_e$target","_this6$engine","_scrollTranscriptTo","transcriptItems","currentCueIndex","after","transcriptEl","cueTimes","_this$transcriptItems","times","canHover","_this$engine19","reached","playingVideo","completionPercent","PROGRESS_75","PROGRESS_50","PROGRESS_25","endpoint","videoId","_unused2","_this$engine20","_this$engine21","_this$engine22","_this$engine23","toggleFullScreen","jumpCue","_controller","_menus","_calendarEvents","_piano","heartbeat","transition","queryParams","start_panel","bobMaximized","bobClosed","pianoMaximized","gradebookOpen","sideNavVisible","prefsPanelOpen","switch_panel","startPanel","sessionPanelObserver","_event$data","bobOrigin","bobSrc","setupPiano","config","keyWidth","noteLabels","middleC","hideKey","hotKeys","placementId","noKeys","keyDirs","piano","jQuery","topicLoading","convoScroller","activeConversation","tgt","nextLessonMap","l_objs","startsAt","teacherCanSeeSurveys","teacherDashboardUrl","courseCode","limited","loadConversations","that","loadEvents","eventsLoaded","currentCourseId","restart_heartbeat_if_needed","heartbeatFrequencyInMilliseconds","abs","teachingUser","lessonNumber","shortcutsDrawerLabel","hCodeURL","courseRequiredDiscussions","activityContentLoading","workContentLoading","submitAdviceCardPrompt","declinedAdviceCardSubmission","iSubmitted","isLastWeekOfCourse","_lessons$at","isLastWeek","unreadActivities","unreadDiscussions","unreadAssignments","incompleteWork","adviceCardsURL","lastLessonNum","showBobInfoText","acceptHonorCode","firstTime","skipCheck","is","nextLesson","curLesson","nxt","current_item_parent","shortcut","lessonId","offset","openTOC","syllabusTransport","hasClass","swapPanel","noCollapse","noRefocus","$sp","$n","focusPanelHeader","studentActivityPanelFirstClick","gradeBook","viewShowcase","viewDiscourse","viewAdviceCards","declineAdviceCardSubmission","closePopup","toggleCourseList","$chbx_toggle","$course_toggle","$course_list","closeCourseList","changePlaybackSpeed","speedCalc","bugReport","viewSurveyResults","maxMinBob","closeBob","openBob","sendIntroPayloadToBob","bobIframe","fullUrl","contentWindow","postMessage","bocce_url","early_unlock_hash","early_unlock_weeks","sendBobOpenedEvent","dismissBobInfoText","togglePiano","pianoInput","warn","sendFeedback","openAdminModal","toggleMenus","closeMenus","togglePrefsPanel","_discussionNew","_noSubmissions","_submissionNew","_submission","_returnRoute","returnRoute","startsWith","_this$router","paramNames","bannerTypes","is_global","global","_addRecipientsToBanner","bannerID","dataObject","twoMonths","twoMonthsFromNow","newBannerMessage","newBannerDismissCondition","newBannerIsGlobal","newBannerDismissAt","setMonth","newBannerHyperlink","bannerTypeNames","courseUsers","showUserDropDown","individualUserId","sortedBanners","targetedBanners","models","courseUserIds","context_id","createNewBanner","dismiss_at","toDate","isValidUrl","targeted","newBannerObject","priority","by_course","addRecipientsToBanner","deleteBanner","setNewBannerTypeID","typeName","setIndividual","navigate","tabName","_regeneratorValues","_setSelectedQuiz","_setSelectedQuizUser","quizUsers","selectedQuizUser","canFlushQuizCache","sendFlushRequest","showElements","basePath","responseJSON","flushResponseHandler","hideElements","firstUserId","setSelectedQuizUser","thisUser","setSelectedQuiz","thisQuiz","toggleCacheClearConfirm","selector","clearCache","flushAllUserQuizzes","_callee4","paths","requestObject","startingMilliseconds","finishedObject","_paths","_context5","objectAt","quizSearchId","singleRequestObject","selectQuiz","_callee5","_context6","_x4","selectQuizUser","_meetingKeyRequest","meetingKeyRequest","meetingKey","currentMeetingKeys","toggleRemoveMeetingKeyConfirm","addMeetingKey","removeMeetingKey","refreshZoomUser","zoomID","selectedQuizId","page","expandOperations","conversationHeartbeatFrequency","newDiscussion","conversationModalContentMarginTop","sharedEnrollments","privateConversationHeartbeat","_heartbeat","currentConversationId","resolvedData","to_push","msg","always","runPMHeartbeat","_success","premd","matching_conversations","lc","startConversation","recipArray","recipURL","ob","existing","arr1","arr2","removeRecipient","recipient_id","conversationNew","inlineInbox","sortedMessages","_this$model","closeConversationModal","dashboard","startPrivateConversationHeartbeat","_messages","convo_id","since_id","loadMoreMessages","defer","convoController","scrollToBottom","nxtScroll","addUserToggle","adding_member","toggleArchived","updateConversation","deleteUnsentConversation","destroyEditor","editorDestroyed","_emberData","_assignments","topicsQueue","interactedWithInteractions","afterBoot","getItemNode","itemId","setupInteractionListeners","afterAfterBoot","current_item","PromiseObject","promise","nextLessonId","showNextLesson","replyContainerId","nextLessonAvail","retRes","nextLessonLocked","lastLesson","last","discussionModel","unlocks_at_formatted","currentPathChanged","current_user","lv","item_id","item_db_id","lessonsController","goToNextLesson","showcaseDeleteItem","destroyLesson","showcaseEditItem","cancelEdit","showcaseSaveItemTitle","updateShortcutsDrawer","_array","defaultTime","utcOffset","minutes","startOf","A","startDate","additionalSectionsCourseIds","savedData","extraSectionToggled","showTemplateManager","selectedSectionCourseIds","creationMode","manualEventsSnapshot","schedulerStep","cascadeEnabled","editingTemplateIndex","editingTemplateName","saveAsTemplate","saveAsTemplateName","templatesService","onDeleteTemplate","lastObject","bodyWithSpaceForNewLines","eventsUpdatedObserver","em","application","frequencyText","sectionDrawerToggled","readyForDetailedEditorPage","selectedTemplate","firstEvent","startDate_date","startDate_time","isValid","isWorking","templateNameMissing","maxScheduleDate","endsOn","minScheduleDate","subtract","canSaveEditedTemplate","ready","otherEnrolledSections","filteredCodes","resetData","selectedTemplateIndex","saveEvents","eventData","priorDate","invalidDate","preCourseOpenDate","duplicateDates","eventDates","start_time","start_time_moment","end_time_moment","startTimeMomentFormatted","duplicateDate","ed","title1","title2","additionalSectionCourseId","_duplicateDates$","saveTemplate","setFullDate","setShowTemplateManager","toggleTemplateManager","setCreationMode","mode","toggleCascade","toggleSaveAsTemplate","updateSaveAsTemplateName","attemptSaveEvents","promptSaveEvents","goToDetailedEditorPage","_this$eventsModel$obj","firstDate","firstShown","snapshotEvent","goToFirstPage","openTutorial","multiSchedulerOverviewUrl","datesBeforeReset","te","updateDate","updateTime","cascadeDate","cascadeSection","updateTemplate","deleteEvent","removeAt","toggleShowEventDetails","willShow","saveEventEdits","discardEventEdits","snap","selectTemplate","newTemplate","editTemplate","saveEditedTemplate","_name","templateId","newTemplateId","updated","cancelEditTemplate","updateEditingTemplateName","addEvent","removeLastEvent","lastEvent","toggleExtraSection","existingIndex","extraSection","esIndex","toggleExtraSectionAll","closeEventModal","start_chat","batchEventData","batchResult","courseEvents","aggregated","_sendEmail","failedEmails","any_chat","baseEventDate","newStudentEvent","watchChatUrlWithEvent","join_chat","backup_code","multiChatConnectionStatus","waitingForOtherSectionChats","sendCancelNotification","cancelRepeating","cancelAllSections","cancelEventConfirmedVisible","commentInput","editingResponseId","isSavingComment","editingEvent","rteService","descriptionRteController","descriptionRteService","editingTitle","canEditEvent","isAdmin","canShowEditButton","canCancelEvent","isCurrentMeeting","canStartAsHost","runnable","hostButtonDisabled","showRsvp","future","showPrivateLessonRsvpCount","showZoomInviteLink","showRecurringChats","otherRecurringChats","hasRecurringChats","canStartChat","notifyStudents","tempEventStartAt","tempEventTitle","optionalEmailNote","isEventSaving","eventNotUpdated","tempStartAt","_this$model$reservati","rsvpIsYes","rsvpIsNo","isMeetingSupposedToBeHappeningRightNow","userIsAdminOrStaff","resetTempEventDetails","otherSectionChatsObserver","currentEventStartAt","filteredEventStartAt","titlesMatch","timesMatch","hours","isSameEvent","sendEmail","subject","instructors","dynamicTemplateData","studentEmails","students","student","changed","note","titleChanged","startAtChanged","descriptionChanged","findBy","to","from_name","copyToClipboard","clipboard","writeText","editEvent","cancelEditEventDescription","updateTempDate","formattedDateToSave","utc","updateTempDateOnly","formatted","updateTempTimeOnly","currentDate","updateTempTitle","saveEvent","thisEvent","newDescription","newStartAt","newEndAt","updatedEvents","otherChatsData","otherSectionChatData","_section","endsWith","eventRescheduledPostfix","otherSectionChatsData","chatData","single_live_class_generic_id","cancelEvent","abortCancelEvent","scrollToConfirmButton","cancelEventConfirmed","eventObject","announcementData","recurringEvent","recurringEventStartAt","eventsToDelete","_currentEventStartAt","currentEventTitle","otherSectionChat","currentEventId","filteredOtherSectionChats","otherChat","errorThrown","_i2","contentType","editEventResponse","responseId","_this$rteService","cancelEditResponse","_this$rteService2","deleteEventResponse","_this1","_t3","response_id","postComment","_this$rteService3","_t4","is_top_level_response","response_parent","hasEvents","isEventsLoaded","startLiveClassNow","endTime","isShowingAssignmentDetails","_this$openAssignmentV","toggleComments","toggleStudentList","closeStudentList","_this$isRubricAssessm","hasContent","hasAttachments","hasNonDeletedAttachments","isRubricAssessmentDirty","requestResubmit","notPostableReason","postSubmissionGrade","cleanupCallback","submissionComponentCleanupCallback","onCompleteCallback","toggleIsShowingAssignmentDetails","deleteHistoricSubmission","attemptNum","historicAttachments","submissionDbId","ha","fail","deleteAssignmentComment","postID","deleteSubmissionAttachment","assignmentDbId","currentAttachmentIds","deleteSubmissionCommentAttachment","commentId","comment","_Controller$extend","ClassroomSurveyController","_this$survey$qualtric","showTestingWarning","qualtrics","isTestingEnvironment","dismissNudge","refresh","isLocked","_attemptCloseSurvey","preExistingRespIds","legacyAttachmentManager","prevResp","parentsLoaded","childrenLoaded","didVoteObserver","myVote","updateLesson","topLevelResponses","currentUserId","top_level","respUserId","instructorIds","childResponses","parent_ids","parent_id","respUserID","responsesLoaded","isInstructorAndOwner","truncated","hasResponses","removeAttachment","discussionId","recordId","replyToDiscussion","rte","replyCancel","_Controller","BlogPostController","loginStreak","currentTab","shouldShowDiscourseSpeechBubble","sendMessageTo","unreadDiscoursePosts","unreadInboxCount","showDiscourseSpeechBubble","hasStudentEnrollment","showScrollToTop","lastUpdateTimestamp","experimentalFeaturesEnabled","hideUserMenu","startPolling","tabIsActive","hidden","lastMouseMovement","polling","dashboardHB","refreshModel","queryRecord","fingerprint","updatedModel","searchParams","URLSearchParams","_handleInboxNavParams","hashQuery","setSorterProperties","modelBackup","upcoming_live_class","currentTermLoginData","_model$terms$at","termData","currentWeek","week_num","login_days","displayIntroPopup","acceptedDashboardBeta2IntroPopup","setProperty","savePrefs","toggleSideMenu","toggleSideWidgets","toggleUserMenu","closeUserMenu","overflowY","HTMLElement","parentRect","dismissIntroPopup","toggleExperimentalFeatures","experimentalOn","displayIntro","tabNavigation","messageUser","replaceState","launchDiscourse","closeDiscourseSpeechBubble","logout","exportCalendar","copyBtn","viewTerm","termNumber","scrollBy","courseClosed","showDialogException","dashboardAllowAccessUnopenedCourseList","Event","startDateFormatted","timeZone","scrollToTop","toggleClassmateStats","dismissStatsInfo","displayStatsInfo","all_model","numRequiredDiscussions","requiredDiscussions","numUnrequiredDiscussions","numSubmissionsNeedAttention","numAssignmentsNeedAttention","retVal","discussionDue","announcements","pushObjects","work","quizLength","emptyWeek","dividers","isoWeekday","is_divider","divider_message","overdue","empty_week","numUnreadAnnouncements","totalUngraded","numResubmissionsPending","assns","numUnreadSubmissions","assn","numUnreadAssignments","hasUnreadSubmissions","z","bc","cc","currentComment","gDate","ac","compareDates","postTime","unreadCountActivities","unfinishedCountWork","activity_type","viewInLesson","filterActivities","resubmission","ungraded_and_unread","hide","sortChatsBy","sortPastChatsBy","instructorChatsFilterObserver","sessionTimeChanged","chatWindowInMinutes","chatStartingSoon","sortedPastChats","hasChats","viewEvent","dismissStartChatConfirmation","toggleExpandUpcomingChats","toggleInstructorChats","nextTerm","previousTerm","currentTerm","best","notifications","totalNotifications","clearAll","logOut","goLink","dismissNotification","travelToNotification","openPrefPanel","_dataAdapter","_emberCliDeprecationWorkflow","throwOnUnhandled","workflow","and","_regexp","appVersion","version","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","arrayItem","_cancelAll","inp","compare","compareTo","mod","question_id","dec","decode","stringToDecode","decodeURIComponent","unescape","second","arr","_formatDueDate","dueDateClass","days","_featureFlag","filename","splitFilename","_parseDueDate","parseDueDate","fullDate","formatGrade","gradeScore","decPlaces","fullGrade","_storeUtil","getData","objs","routes","deleble_types","course_hb_index","full_reload_p","when","_course_hb_data$meeti","course_hb_data","other_section_meeting_key","readonly","serial","fiveMinutesAgo","uid","isPresent","_keys","loaded_objs","interface_ids","isSubmissionOwner","open_id","seedReadMarker","incoming","last_read_comment_id","is_deleted","is_updated","obj","resp","disc","conversationMessage","message_at","last_known_at","loadedDiscussion","deletes","_loop3","typeMatch","typeSplit","pushDeletion","doDeletes","sessionStorage","getOwner","lookup","data_uri","_data_uri","acc","_img","count","Image","int_id","complete","x","scale","can","can_con","getContext","buf","buf_con","drawImage","sca","sca_con","toDataURL","max_size","h_offset","w_offset","crop","uri","byteString","atob","ab","ArrayBuffer","ia","Uint8Array","charCodeAt","Blob","rej","fr","FileReader","onerror","readAsDataURL","urgencyClass","lessthan","fromCharCode","_args","dateObj","morethan","_pageTitle","inverse","percentRaw","_perform","_pluralize","safehtml","showDiscussions","showUngraded","_singularize","startswith","str","_task","br","attemptUpload","return_url","on_progress","request","lengthComputable","ceil","parseBrokenCanvasJSON","proxyUpload","att","_x5","_x6","_x7","_uploadFile","uploadURL","force_proxy_uploads","destination_folder","postUrl","fd","attachment_id","content_type","on_duplicate","parent_folder_path","postFileDataToCanvas","upload_url","buildUploadFormData","formdata","FormData","upload_params","file_param","_x8","_x9","_uploadURL","filePending","fetchFilePendingFlag","status_url","pauseOneSecond","_x0","_fetchFilePendingFlag","statusURL","statusRequest","stat","upload_status","_x1","_x10","_postFileDataToCanvas","fileData","_initializerFactory","registerDeprecationHandler","_deprecationSupport","registerOptionsForType","singleton","Quill","icons","import","bullet","ordered","customizeIcons","ListContainer","ListItem","BocceListContainer","_ListContainer","domNode","getTag","defaultTag","BocceListItem","_ListItem","statics","requiredContainer","wrap","blotName","formats","register","allowedChildren","fixUnorderedList","_quill","_customizations","Delta","rteInput","editorEl","disable","toolbarEl","editorContentEl","modules","toolbar","handlers","flat","replaceText","sharp","natural","saveArchive","archive","viewArchive","theme","clean","TEXT_CHANGE","oldDelta","sources","USER","contentEditable","updateUserInput","enable","updateContents","retain","delete","insert","_editor","EditorService","editorDisabled","getSemanticHTML","currentDelta","getContents","newContent","convert","setContents","ops","getText","_quizzes","QuizzesFactory","quizzesServices","_timer","shuffle","random","_Service","QuizzesService","_models","m2","_initialize","quizAttempt","_quizAttempt$get","firstUnansweredQuestionIndex","lastAnsweredQuestionIndex","seeking","aggregateQuestions","questionShown","resetGivenAnswers","setQuestionData","timedQuizSubmissionData","token","isTimedQuiz","defaultAnswer","qs","userNames","questionStatistics","previousQuestionsLocked","hasShownQuizIntercept","timeLimit","time_limit_minutes","notGradedQuestions","_getQuizAnswers","getAnswer","allowed_attempts","timeRemaining","timeRemainingMinutes","timeRemainingSeconds","minutesFormatted","padStart","secondsFormatted","quizType","showQuizIntercept","updateGivenAnswer","callback","nextQuestionCallbacks","_executeNextQuestionCallbacks","_nextQuestion","_callee6","_context7","executeNextQuestionCallbacks","autosaveTimerInterval","countdownTimerInterval","isInteger","_callback","submissionWarningEvents","quizLengthSeconds","quizSubmissionWarningTimesLeft","timeLeft","quizSubmittedInText","timeRemainingFormatted","timeRemainingSnapshot","_callee8","_context9","stopTimers","closeByClass","_callee7","_context8","_updateCanvasQuestionAnswer","_callee0","retries","_context1","uploadFailed","_callee9","_context0","savedAt","toLocaleTimeString","_startQuiz2","startingQuiz","_callee1","_context10","retrying","_submitQuizAttempt","_callee11","_submit","_context12","_ref7","_callee10","_context11","getQuizAnswers","_submitQuiz2","_callee15","unansweredQuestions","dialogPromise","_submit2","_context16","submitQuizAttempt","_ref8","_callee14","_context15","_callee12","_t5","_context13","_callee13","_context14","_submitQuiz3","_callee17","scrollIntoViewIfNeeded","_submit3","_args18","_context18","innerHeight","_ref9","_callee16","_context17","_submitQuiz","quizStarted","finishQuizElem","relationships","hasRelationships","eachRelationship","allowedAttributes","ol","ul","li","allowedClasses","cleanHtml","isMac","metaKey","altKey","ctrlKey","msSaveBlob","revokeObjectURL","xmlToJson","xml","nodeType","attribute","nodeName","nodeValue","hasChildNodes","children","childNodes","_mixin","currentTimeMetronome","curgrade","assignmentTimerObserver","activeAssignment","instructionsBooted","ms","noTimer","lockdown","syncInterval","timerOn","requirementsMet","stagedScore","stageGrade","canResubmit","bindAttachmentObjects","dataArray","display_name","attachment_objects","submissionHistory","hist","lastSubmission","resubmissions","commentTimeline","submitted_at","next_submission","prev_submission","openAssignmentModal","toggleAssignmentModal","openAssignment","onSuccessCallback","onFailureCallback","old_grade","criteria_id","sub_with_score","gbcol","assn_id","ndx","assignmentSubmission","teardown","viewAssignmentSubmission","_this4$submissionComp","deleteSubmissionBody","gradeAssignmentSubmission","submission_url","submitAssignment","switchSubmissionGrade","B","C","D","R","dontClearBodyInput","currentGrade","savedComment","grade_to_assign","conv","scrollToAssignment","verNode","scrollToComment","repostSubmissionComment","gr","setAssignmentSubmissionsHiddenStatus","noRec","mozGetUserMedia","msGetUserMedia","createDownloadLink","routeName","class","toggleAudioRecPanel","currStream","audioRecRecord","timeCode","audioRecStop","echoCancellationToggleAudio","_audio_comments","_audio_markers_quiz","_bass_fretboard_quiz","_bpm_tap_pad","_content_container","_content_framing","_codec_comparison","_cycle_","_fill_in_the_blanks_quiz","_drag_and_drop_quiz","_embedder","_flash_cards","_form_builder","_guitar","_hot_spot_quiz","_image_explorer","_javascript","_list_rollover","_mix_visualizer","_piano_quiz","_requirements","_reveal_content","_reveal_text_quiz","_rive","_simple_slideshow","_slideshow","_solfege_ladder","_sound_mixer","_text_line_and_text_select_hybrid","_timed_writing","_timeline","_timeline_knightlab","_viewOrTakeASurvey","_video_commentary","_video_mixer","interactions","AudioComments","AudioMarkersQuiz","BassFretboard","BpmTapPad","ContentContainer","ContentFraming","CodecComparison","Cycle5Explorer","DragAndDropQuiz","FillInTheBlanksQuiz","Embedder","FlashCards","FormBuilder","Guitar","HotSpotQuiz","ImageExplorer","Javascript","ListRollover","MixVisualizer","PianoQuiz","Requirements","RevealContent","RevealTextQuiz","Rive","SimpleSlideshow","Slideshow","SolfegeLadder","SoundMixer","TextLineAndTextSelectHybrid","TimedWriting","Timeline","TimelineKnightlab","TakeaSurvey","ViewaSurvey","VideoCommentary","VideoMixer","bm","pid","TIDAL","embedPlayerCommand","commandName","playerIframe","getElementsByTagName","$doc_node","standalone_player","boot_interaction","mark_booted","skip_av","skip_parse","pianoHoverEvent","_pianoHoverEvent","_noteString","classes","noteString","chords","chord","notes","playNotes","linkWrapper","previewButton","SHOWN","HIDDEN","previewState","addPdfPreview","related","custom","URLType","URLId","embeds","bootTidal","firstChild","bootPianoHover","$body","$img","$captionDiv","captionText","$newCaption","$srPrefix","replaceWith","altText","prefix","$srText","$parent","bootSRNav","parents","isPublic","lateGradingPolicyHtmlPlaceholder","lateGradingPolicyWithDefault","insertAfter","addLateGradingPolicy","set_container","soundSlicePlayers","$this","pop_ndx","pop_node","$nodeContent","$pop_node","$anchor","$anchorHtml","img_node","$img_node","imgWidth","dn_width","$node","get_html_attribute","trackNodes","$nodeBase","vals","uniqueId","text_to_copy","ctc_text","ctc_button","ctc_toggletip","selectNode","execCommand","wistiaIdFrom","account_name","account","player_id","audioMulti","audioClass","isMultiplayer","node_id","standaloneString","uncompressedString","kaltura_classlist","player_id_raw","account_name_raw","isVideoMixer","wistiaId","claimTestMedia","fetchThumbnail","thumbnail","interaction","videoData","siblings","videoSource","kaltura_session","int_ndx","int_node","newPromises","bootInteraction","node_a","node_b","preboot","$int_node","assets","ast","$ast","field","val_ndx","cfg","$cfg","$val","disposable","interactionRaw","interactionID","addCalendarEvent","viewConversationdashboard","conversation_id","conversationController","newConversationdashboard","user_id_string","createConversation","activityMessage","postAuthor","toggleModal","activeNewDiscussion","convertTidalEmbed","urlParams","typeMapping","newSrc","mark_read","treatAssignment","mine","correct_assignment","subscribe","_trackedBuiltIns","inEditor","replyText","replyAuthor","timedAssignmentEditable","is_timed","assignmentTimer","postableRules","_this$postableRules$f","mobileUpload","totalFiles","encodingVideosToContainer","faved","unfaved","grep","isFaved","currentModel","editPostRteController","editRteService","_self$deleteArchivedT","bodyInputChanged","destroyer","uploadFiles","uploadOneFile","ftype","uploaded_name","f2","uploadingFiles","videosAreEncoding","urlize","isEditingDiscussion","is_editing","is_reply","promptAsRecovery","stashVideoEmbeds","div","vid","vidString","editReply","post_id","_this$store","replyEl","parentId","_this$store2","parentRecord","editDiscussion","_this$currentModel","contents","deletePost","deletePostWithId","childResponse","discussionsCtl","useArchivedText","recovery","favoriteText","fl","unFavoriteText","showConfirmationDialog","previewArchivedText","toggleLocalArchive","cancelUpload","editFileName","identifier","editFileNameConfirm","doneEditing","editBodyInput","currentModelType","submitEdit","submitResponse","discId","currMod","repostResponse","response_video","reply_id","_jsVideoUrlParser","_templateObject","_templateObject2","_taggedTemplateLiteral","raw","spacedTags","URI","withinString","prefix_gt","lastIndexOf","prefix_lt","suffix","suffix_gt","suffix_lt","needs_close_paren","lowerCaseUrl","imageParser","mp4Parser","youTubeParser","vimeoParser","linkParser","soundCloudParser","tidalParser","noteFlightParser","wistiaParser","ignoreHtml","preRegex","RegExp","postRegEx","videoInfo","exec","parsed","retres","urlSub","viewModal","modal","posting","viewAssignmentInLesson","_decode","AbstractQuiz","templateGroup","SHOW_QUESTION","CORRECT","INCORRECT","QUIZ_COMPLETE","interactionData","questionTemplateClass","quizCompleteTemplateClass","maxAttempts","tabindex","initial_json","numCorrect","numAnswers","answerCorrect","numRemaining","answerIncorrect","checkAnswer","currentQuestion","getCurrentQuestion","quizComplete","showQuestion","resetQuiz","addTemplate","templateClass","templateCreate","answerSets","_tabindex","optionData","hotspotPoint","isHotspotSvg","$hotspotSvg","jsonObj","_jsonObj$hotSpotsAcce","hotSpotsAccessibility","hotspotObj","displayLabel","hotspotLabel","hotspotSvg","svgObj","$rectEle","elementType","aria_label","attrType","attributeList","styleType","elementCss","_templateCreate","audio_exits","audio_src","outerHTML","shuffleQuestions","shuffleArray","util","timeToSeconds","truncateText","endIndex","convertToJSON","bindAll","$containerEl","tabIndex","commentsArray","initial_data","formatedArray","commentObj","bgImage","stopAtEnd","setCommentDimensions","sortBy","currentActiveComment","bgImagePath","bg_image","audioPath","audio_track","table","COLUMNS","initialData","$row","defineEndTimes","activityMinHeight","interactivity_id","createAudioCommentDiv","$contentEl","$activeCommentText","empty","$image","imageSrc","audioSrc","$audioControls","divType","divWidth","divPos","$imageWrapper","_comment","_str","bgImageClick","initPlayer","$comment","$label","parentWidth","truncateComment","srCommentsText","returnAllComments","$player","_self","timeUpdate","$seek","seekBarClick","$play","playPause","onended","seekToComment","$highlight","commentFactory","imageWidth","box","getCommentFromTime","theChosenOne","getDataFromTable","buffered","togglePlayButton","elId","percent","updateSeekBar","updateHighlight","commentA","commentB","activeComment","displayComment","slideshowPlayer","createSlideshowPlayer","createAudioPlayer","audioControls","createAudioControls","commentsText","getCommentLength","dur","_renderTemplate","$stage","$data","AudioMarker","tableRow","tolerance","initEl","calculateTimes","$progressBar","$feedback","$loading","$markerBin","audioMarkers","createAudioMarkers","addBgImage","addMarkers","addPlayer","$playerComponent","fadeOut","ontimeupdate","onPlayerTimeUpdate","seekAudio","$rows","row","audioMarker","onAudioMarkerDropped","onCorrect","onIncorrect","percentPlayed","updateProgressBar","$target","offsetX","imageRect","getElRect","markerRect","normalizedLeft","durationSecs","dropTime","isCorrect","isSecsWithinRange","isWithinBounds","isWithinBoundsOf","checkForCollisions","incorrect","rect1","rect2","markerTop","imageTop","currentMarker","detectCollision","newTop","elA","elB","rectA","createBoundingBox","rectB","topLeft","bottomRight","pos","onAllCorrect","showFeedback","fadeIn","minTime","maxTax","draggableConfig","onDragStart","onDragStop","draggable","secs","timeStrToSecs","timeDiff","maxTime","timeSecs","parentEl","jsonData","correct_feedback","incorrect_feedback","slide_id","images","oneKeyEntry","revealCorrectAnswerAfter","selectedKeys","$interactionData","lastNodeId","questionContent","feedbackWrong","feedbackRight","triesLeft","isChord","answerIsCorrect","guitar_interaction_id","allQuestionContent","initListeners","$interaction","aud","tSrc","frets","fretLength","fretArrLength","scLeft","scrollLeft","currNode","correctAnswerCount","queCount","resultString","queCheckId","queCheck","zoomCount","zoomlimit","zoommargin","zoomContainerH","$container","$tapPad","$bpmLabel","$tapPadaria","onPadClick","BEATS_TO_AVG","lastClickTime","tempos","bpm","calculateBpm","shift","calculateAverage","average","addComponentContent","addButtons","prepAudio","audioCount","$audioContents","createButton","toggleTracks","pauseTracks","played","createDataFromTable","listener","onShowContent","hideContent","$td","detach","dataRow","$cells","aspectRatiosStr","aspectRatios","aspectRatioLabels","solution","$dataEl","createData","renderQuestion","$mainContent","$finalContent","finalContent","resetFrameRect","initAspectRatios","initRevealSolution","$frameRect","imgOffset","getFrameRect","opacity","ratios","$ratios","ratioEl","ratio","changeRatio","$btn","ratioStr","getRatio","comps","getRatioComps","basePx","resizable","aspectRatio","$revealBtn","$nextBtn","$solution","slideDown","showNextQuestion","scrollWindow","showFinalFeedback","elTop","$mp","curPos","_rotatable","updateJigs","onNoteWheelMove","updateGrids","checkForLydian","onFunctionWheelMove","numRotations","prevAngle","continuousAngle","$functionWheel","$functionWheelHandle","$functionWheelLeft","$functionWheelRight","$noteWheel","$noteWheelHandle","$noteWheelLeft","$noteWheelRight","$noteWheelNotes","$highlights","$jigs","rotatable","handleEl","onMove","rotationMin","rotationMax","snapAngle","disableDrag","initButtons","initNoteRings","addBackground","updateNotes","opener","angle","innerImages","outerImages","lydianInnerPath","lydianOuterPath","updateWheelImages","imgArray","newIndex","angleMap","startIndex","getStartIndex","updateNoteWheel","cancelRotation","jig","pointer","signalFlowOpts","connectors","currentColor","rolloverPreview","intId","getOffset","cont","drawLine","div1","div2","thickness","off1","off2","x1","y1","x2","y2","sqrt","cx","cy","atan2","PI","htmlLine","cssify","ctxt","styleString","draggables","uniqueSuffix","labelAlign","labelAndImage","endpoints","static","dropZones","markers","initListenersMobile","pal","originalEvent","dataTransfer","correctArray","remaining","assetValue","audSrc","feedback","sounds","bri","confirm","$selected","srcMatch","srcUrl","iframeData","_srcUrl","embedType","NUM_ATTEMPTS","FORM_EL","FORM_EL_CLASS","numQuestions","initGrid","initNormal","dataRef","tableHeaders","renderConstantUI","tr","rowData","cellText","paras","correctAnswer","QuizItem","render","columnData","renderGridUI","staticCell","isStatic","renderGrid","gridData","gridContainer","gridRow","gridItem","addQuestion","questionContainer","buttonContainer","itemData","itemContainer","valueContainer","titleContainer","addTitle","moveButtons","notifyContentContainer","itemTitle","menu","valLen","checkAnswerBtn","nextQuestionBtn","showCorrectBtn","tryAgainBtn","eventType","inputs","waitForNext","checkAnswerGrid","quizCompleteGrid","fadeTo","delay","showCorrect","prevHeight","resetGrid","checkAnswerGridBtn","ButtonFactory","resetGridBtn","parentThis","clickFunc","optionalClass","btn","questionHtml","answerHtml","isTimed","preloadImages","numToLoad","image","showStartScreen","showAnswer","$timeEl","updateTimeText","gotIt","timeRanOut","GetDataFromTable","Construct","pdfMake","data_raw","exportButton","initialRows","initial_rows","dataTable","labels","rows","rowsLabelled","columnsLabelled","selectedCell","globalSetting","fontSize","selectedImageData","imageData","rowNumCounter","tableDetail","titles","bodyDetails","$tableContainer","$boldToolbarBtn","$italicToolbarBtn","$underlineToolbarBtn","$colorPickerToolbarBtn","$fontSizeToolbarBtn","$addImageToolbarBtn","$addRowBtn","$removeRowBtn","$exportBtn","createTable","$table","$tableHeader","addHeaderRows","$tableBody","addBodyRows","addEvents","generatePDF","currCell","cellLocation","rowId","isBold","bold","isItalic","italics","isUnderline","decoration","$thisElement","encodeImageFileAsURL","dispatchEvent","MouseEvent","$tRow","$tHeadCell","tH_Row","unshift","hCell","rowCount","blankRows","$tbodyCell","onInputChangeEvent","onFocusEvent","$selectedTD","currNodeItem","tB_Row","bodyDetailsRow","rowCounter","addCol","rowLabel","tB_Cell","cellNum","cellCounter","bCell","for","genericRows","eachColWidths","headerRow","headerText","alignment","fillColor","bodyRows","bRow","rowCell","tempNode","numDiff","stack","k","rowItem","today","dd","mm","docDefinition","pageSize","pageOrientation","headerRows","widths","createPdf","headerLabels","rowLabels","cells","columnLabel","pauseAtTime","innerId","_abstract_quiz","hotSpots","initialJsonObj","hotspot","dummyBlankElement","mixin","overrides","onShowQuestion","onAnswerCorrect","onAnswerIncorrect","onQuizComplete","checkClick","ofs","clickX","clickY","incorrectHotSpots","any","hotSpot","revealHotSpot","selectedHotSpot","createRect","hotSpotClass","opts","allAnswersCorrect","unbind","singularStr","continueBtn","imageArea","currQueObj","imageIndex","imageCss","audio_player","shouldFade","feedBack","replay","CMS_EDITOR_DATA","tableIndex","_data","popupContent","videoNodes","hotSpotName","videos","classValue","_classes$find","posterImage","vttFile","getVideosJSON","hotspotIndex","hotspots","rolloverContent","interactivityId","kalturaVideoObjects","extra_width","assetIndex","ContentItem","hotspotData","$popupContent","_hotspotData$popupCon","videoContainer","videoTitle","popupWidth","popupHeight","offsetY","showFirstSlide","parsedJSON","slides","adaptData","addTableContentItems","currentSlide","currentSlideIndex","loadSlide","button","slide","_j","_k","_len3","info_width","panoramaOpts","maskWidth","maskHeight","info_height","imgEl","initialText","cssToString","cmsEditorData","stageContainer","renderStageContainer","infoContainer","renderInfoContainer","navContainer","renderNavContainer","initNav","createComponents","initBranching","panorama","createPanorama","updateSlideCount","targetSlide","nextSlide","prevSlide","$component","styles","hotspots_length","$info","componentMouseover","contex","componentClick","$compEl","navigateToSlide","getSlideIndexByName","updateSlide","currData","$components","componentMouseout","kalturaVideos","popup_container","popup_content","activityId","tabCount","videoObj","$content","containment","_prism","MAX_FUNCTION_CALLS","FUNCTION_DECLARATION","UNLABELED_LANGUAGES","tag","class_name","line_numbers_for","numbers","line","lines","describe","pairs","add_recursion_guards","declarations","evaluate_in_sandbox","api","sandbox","guard","eval","line_numbers","editable","language","min_height","grammars","grammars_for_language","updatable","build","load_prism","prism","paint","boot_code","evaluate","build_header","build_editor","build_sandbox","build_output","header_action","update_preview","createTextNode","current_code","scroll","layers","pre","gutter","minHeight","code_el","spellcheck","output","grammar","languages","highlight","write","variant","host_console","guard_counts","emit","_default","Rollover","rollovers","createRolloversFromTable","detectAutosize","setRolloverEls","rollover","setLinkEl","setContentEl","$linkEl","onLinkOver","mouseout","onLinkOut","currentCircle","innerCircle","volRange","panRange","freq","freqRange","calcPercent","widthRange","loc","getRandomColor","textColor","newCircle","circle","html2canvas","allowTaint","canvas","ua","msie","rv","detectIE","Piano","customConfig","keyDown","octaves","C1","C2","C3","C4","C5","C6","C7","C8","fin","thisVF","staffContainer","staffDiv","staffRenderer","staffContext","renderedStave","impKeys","octaveNames","firstOctave","oneKeyAtATime","selectedOctave","numberOfOctaves","keyDownColor","octaveHighlightColor","logging","showOctaves","showNotesChords","orderLabel","loadOnClick","downKeys","onMIDIMessage","velocity","midiNote","mn","playAudio","tempAudio","noteOn","onStateChange","port","listInputs","manufacturer","audioFile","createEvent","initCustomEvent","drawStaff","keyedNotes","renderStaff","voice","toDraw","signature","Stave","addClef","addTimeSignature","setContext","draw","Voice","num_beats","beat_value","addTickables","Formatter","joinVoices","clearPiano","red","blueKeys","blueKeyLength","selectKeys","highlightOctave","cnt","currKey","newOctave","oldOctaveStart","oldOctaveEnd","newOctaveStart","newOctaveEnd","keyName","borderColor","clientWidth","isBlackKey","keynum","loadSoundAudioTag","keyCount","audioContainer","playSoundAudioTag","Audio","loadNow","questionContentDiv","questionContentText","questionFeedbackRight","questionFeedbackWrong","checkAnswerDiv","showAnswerDiv","prevQuestionDiv","nextQuestionDiv","clearKeyboardDiv","pianoContainer","hideBtn","previewBtn","octaveUp","octaveDown","helpMe","helpDialog","kPrsEvt","blackKeys","whiteKeys","blackKey","whiteKey","halfBlackKey","pianoKeys","changeQuestion","questionNumber","_questionFeedbackWron","_questionFeedbackRigh","firstNote","previewInput","waitTime","totalWait","selKeyCount","_questionFeedbackWron2","_questionFeedbackRigh2","easyMode","answerLength","orderMatters","_questionFeedbackWron3","_questionFeedbackRigh3","_questionFeedbackWron4","_questionFeedbackRigh4","_questionFeedbackWron5","_questionFeedbackRigh5","newNumber","Vex","Flow","Renderer","Backends","SVG","setFont","setBackgroundFillStyle","_questionFeedbackWron6","_questionFeedbackRigh6","maxKeys","pianoElement","midiKeyboardIn","helpElement","buildPiano","requestMIDIAccess","sysex","midiAccess","midi","onmidimessage","onstatechange","readyState","keyIndex","_playNoteRange","noteIDs","noOverlap","pianoObject","bootedPiano","originalPlacementId","placement","_placement","wait","milliseconds","getKeyFromNoteID","noteID","outerContainer","pianoBtn","answerRaw","c1","db1","d1","eb1","e1","f1","gb1","g1","ab1","a1","bb1","b1","c2","db2","d2","eb2","e2","gb2","g2","ab2","a2","bb2","b2","c3","db3","d3","eb3","e3","f3","gb3","g3","ab3","a3","bb3","b3","c4","db4","d4","eb4","e4","f4","gb4","g4","ab4","a4","bb4","b4","c5","db5","d5","eb5","e5","f5","gb5","g5","ab5","a5","bb5","b5","c6","db6","d6","eb6","e6","f6","gb6","g6","ab6","a6","bb6","b6","c7","db7","d7","eb7","e7","f7","gb7","g7","ab7","a7","bb7","b7","c8","accidental","_init","env","isProd","baseUrl","requirementsUrl","isPreview","requirements","prodUrlBase","devUrlBase","noRequirements","hiddenContent","hiddenContentDiv","initialContent","initialContentDiv","closeButton","removeProperty","kalturaPlayer","_kalturaPlayer","kCont","totalCorrect","textToReveal","xPos","IMG_CONTAINER","IMG_CONTAINER_ID","ANSWER_CHOICES","ANSWER_CHOICES_ID","FEEDBACK","FEEDBACK_ID","imgContainer","answerChoicesEl","elData","inputEl","hover","rive","RiveInteraction","stateMachine","statemachine","autoplay","$canvasEl","randomString","loadRive","Layout","fit","Fit","Contain","Alignment","Center","stateMachines","onLoad","resizeDrawingSurfaceToCanvas","methods","settings","keepChildrenUpright","firstAngleOfMove","onMouseMove","setIsClockwise","checkConstraints","snapToGrid","lastAngleOfPrevMove","center","$handleEl","$children","isClockwise","mousedown","mouseup","newAngle","updateEls","isIncreasing","isCrossingZeroCW","isCrossingZeroCCW","gridSize","getAngle","showDirection","setAngle","triggerOnMove","getRotationCSS","uprightChildren","angleStr","TableRowContent","$src","InteractionComponent","cacheEls","divs","$item","isTable","isInteraction","$count","$prevBtn","$element","_this$data$","initialJson","parseJSON","jplayerPath","jplayer_swf_path","assetsConfig","zoomLimitMin","zoomLimitMax","defaultVolume","playerNum","img_path","alt","totalPages","getTotalPages","indxz","isPlaybarAvailable","playbarPositions","isSVG","contentArea","imgHeight","highlightSVG","firstImageDimensions","zoomedIn","setHighlightViewbox","changeImage","getPlayer","setPages","backPage","forwardPage","addZoomControls","addPlaybackSpeedControls","playerEl","controls","volumeSeek","muteBtn","muteOffBtn","muteOnBtn","playbar","playPauseAudio","loopToggle","beforeMuteVol","seekVolume","volSeek","updateSeek","onEnded","onPaused","onTimeUpdate","highlightPlaybar","onloadeddata","moveleftpoints","leftVal","leftMoveAmount","audioSectionCount","moveAmount","temp1","leftMoveCounter","moveLeftPoints","playbarVal","bgImageIndex","currentImageIndex","pageIndex","removeBgImage","moveleftCounter","currentVal","imageHeight","imageContainer","highlightContainer","naturalWidth","currentPage","getTimeForPage","notationCounter","buttonPrev","buttonNext","$speedSelect","zoomIn","zoomOut","zoomZero","pageContainer","zoomLimitDown","zoomLimitUp","zoomDegree","zoom","zoomDirection","btnZoomIn","btnZoomOut","btnZoomZero","_isSVG","zoomView","zoomPercent","SolfegeExercise","$svg","$selectSpeed","playSpeed","doNoteID","exerciseData","$btnAns","$btnNext","$playCue","$retryQuiz","$btnLoop","$btnRandom","$noteTiles","$modeSelector","$quizMessages","highlightSelectors","getSelectorsForNotes","chromaticOffsets","getExerciseNoteOffsets","isAnimating","_key$toUpperCase$spli2","dataTables","solfegeObject","formatData","solfegeExercises","exercises","solfegeType","solfegeScale","MIDIOffsetsFromC","accidentalOffsets","currentExercise","$btnPlay","playAction","answerAction","selectQuizAnswer","checkMode","toggleLoop","toggleRandom","loopMode","randomMode","randomOrder","offsetWidth","verifyExerciseOctaves","checkSelector","selectorExists","exists","findNearestOctave","octave","_octaves","tone","check","exercise","currentNote","tryCount","createRandomOrder","order","temporaryValue","randomIndex","highlightNotes","playNotesOffsetFromDo","playSingleNoteOffsetFromDo","showQuizAnswer","showSingleHighlight","gradeQuiz","playHighlightsAndSounds","hs","timeInMilliseconds","noteOffsets","noteNum","octaveNum","toneNum","playNote","answerID","answerNote","E","NATURAL","FLAT","SHARP","displayScale","$btnRef","$textRef","$btnBack","$btnForward","$currentExercise","$totalExercise","playRefTone","nextExercise","prevExercise","newExercise","$exerciseEl","$svgEl","getDataFromTables","formatExercises","convertLetterToOffsetNum","do","re","mi","fa","sol","la","ti","di","ri","fi","si","ra","me","se","le","exercisesCleaned","arrayPosition","exercise_number","k_array","tableid","scaleMin","scaleMod","scaleChrom","exerciseCounter","palletStep","palletSize","doNote","_sound_mixer_core","$data_el","mixer","tracks","trackPath","trackName","tables","answersListData","correctIndex","_step2$value","finalText","final_text","getResetBtn","corrects","$c","numBrokenFeet","brokenFootClicked","numSyllables","syllableClicked","$select","optionText","$newEl","checkAnswers","syllableType","dropdownType","$t","select","resetBtn","getFeedbackContainer","feedbackContainer","QuestionSet","AnswerSet","TimedAssignment","_localStorage2","initialJSON","secondsToClockTime","totalSecs","Tab","question_node","linkHtml","createLinkHtml","textareaHtml","createTextareaHtml","SummaryTab","isSummaryTab","RENDERED","onRendered","SECONDS","SECONDS_REMAINING","COMPLETED","tabs","createTabsFromTable","tablist","tabcontents","addTemplateTo","checkAutosize","initTabs","loadData","saveData","selectFirstTab","$parentEl","$timeContainer","$time","$startBtn","$resetBtn","resetTab","tableEl","cell","tabFactory","activate","tabSelected","$currentTab","displayCurrentTab","savedID","tabSelector","savedText","textareaSelector","newTab","defaultTabSelected","summaryTabSelected","get$Textarea","setFeedback","summaryTab","createSummary","saveAs","timerComplete","$tabs","getTabID","$panel","panelID","_localStorage","tabLabel","splitTime","linkHref","summary","scrapeTabLabel","scrapeQuestion","scrapeHtmlQuestion","scrapeAnswer","scrape","func","getIndexFromToken","categories","timeScale","time_scale","HeaderEvent","Category","HEADERS","EventFactory","allEvents","timelineStartDate","getFirstDate","startYear","scrubYear","createCategories","renderCategories","unique","earliest","parseDate","timePeriod","Label","RESIZE","headerEl","positionEvents","IMAGE_LOADED","imageLoaded","renderLabel","ZoomControls","ZOOM_IN","ZOOM_OUT","boxes","getWidthFromDateRange","$prevEl","box_top","bounding_box","adjustWidth","adjustHeight","maxRight","newWidth","$categoriesContainer","$labelEl","categoryLeft","positiveOffset","PunctuatedEvent","modalWidth","modalHeight","TimePeriod","addText","addCSS","loadThumbnail","renderExt","setWidth","addModal","addDates","definitions","cssObj","renderThumbnail","prependTo","overlayOpacity","autoDimensions","_el","onCleanup","interactionEl","stashFancyboxContent","fancybox","datesStr","addIcon","elWidth","wrapInner","increment","containerEl","endDate","getDaysFromDateRange","remainingDaysInStartYear","getRemainingDaysInYear","daysInBetween","isLeapYear","getDayOfYear","ds","mon","_util","timeline_object","timeline","TL","eras","formattedData","objTitle","headline","makeTextObject","makeBackgroundObject","throwError","arrEras","era","objEra","start_year","end_year","makeDateObject","arrEvents","objEvent","media_url","makeMediaObject","display_date","stripHTML","group","itemBackgroundText","start_month","start_day","end_month","end_day","media_credit","media_caption","track_url","commentaries","timestampToSeconds","timestamp","timeParse","timeSeconds","pow","_data$","timeStamp","timeEnd","commentary","intData","currentCommentary","videoComm","videoPlayer","videoTrack","btnPlayPause","scrubber","commentarContainer","btnPlaythrough","btnPausePly","btnMenu","btnContinue","btnPrev","btnNext","btnClose","playThroughOpt","video_commentaries","markerString","percentageStart","percentageEnd","scr","tcode","isVTT","vtt","srt_lines","srt_lines_length","srt_line","srt2vtt","playThrough","textTracks","$audio","$players","initJPlayers","addMixer","$faders","$faderEl","$volume","plAudio","getDataForFader","slider","orientation","$videoComponent","$audioComponents","$videoContainer","onJPlayerReady","playAll","pauseAll","onSeek","onJPlayerLoadProgress","stopAll","curTime","ViewOrTakeASurvey","survey_url","vidBlob","failureCallback","isFile","createToken","kSession","upload","percentComplete","uploadUrl","processData","dataJSON","objectType","createMediaEntry","addToCategory","rootEntryId","attachRtc","kalturaStatus","ignoreAuth","failure","cat_id","ks","categoryEntry","entryId","categoryId","categoryJSON","rToken","userName","mediaType","mediaEntry","mediaJSON","tokenJSON","_error4","parseFile","fileSize","chunkSize","chunkReaderBlock","readEventHandler","_offset","_file","readAsText","uploadAnalytics","partnerId","sessionId","playerId","WIDGET_LOADED","LOADED","BUFFER_START","BUFFER_END","REPLAY","attachmentsToContainer","_addFile","extension","addInvalidFile","clearAllFiles","setProperties","deleteFile","fileRec","undeleteFile","getRedirectLessonInfo","lastviewed","ignoreNoAccess","paramsFor","toggleMenu","closeMenu","backdrop","requestPromise","object","parentType","parentIds","objects","typeSingular","typePlural","parentTypeSingular","parentTypePlural","hasNotification","isBannerNotification","currentBannerId","is_banner","notif_type","PollChoice","remainingChars","_initializePoll","pollDrawerOpen","pollDescriptionLength","remainingDescriptionChars","togglePollsDrawer","minmizePollsDrawer","addPollEntries","clearPollChoice","resetPoll","isLegacy","isAnswerCorrectLegacy","answerCorrectFeedback","correctFeedback","wrongFeedback","updateCanvas","updateCanvasQuestionAnswer","answerUnsaved","nextOrFinishDisabled","textFormatted","formattedCorrectAnswer","blank_id","ret","checkingAnswer","srSpeak","bocce","lastRoutes","setupController","willTransition","_willTransition","confirmTransition","_confirmed","maybeTransition","retry","defaultPanel","panl","panelConfig","urlParam","_router","instructor","withinApp","fromOutside","videoStatus","presetResolution","captureCamera","resolution","cameraDeviceId","camera","stopRecordingCallback","MediaSource","WebKitMediaSource","addSourceBuffer","toggleRTCPanel","exit","videoSelect","audioInputSelect","changeAudioInput","changeVideoInput","enableCamera","startVideoRec","kalturaRec","stopVideoRec","attachVideoRec","displayVideoBackup","echoCancellationToggleVideo","readyToShowcase","showcaseComment","til","showcaseTitle","sw","showcaseWeek","toggleShowcase","showcaseId","showcaseOpen","showcaseBody","changeShowcaseWeek","_event$target","postShowcase","showcId","showcaseContents","contents_node","getShowcaseContents","lesson_number","showcase_type","showcase_id","win","sec","left_or_node","tl","jquery","padding","line_overlaps","min1","max1","min2","max2","box_overlaps","sortAsc","test_box","invalid","getNamespace","markup","javascript","load_grammar","Prism","PRISM_BASE","PRISM_REQUIRES","core_promise","grammar_promises","load_script","script","async","head","requires","manual","ember_container","mod_name","template_name","tpl_path","tpl","renderer","Interaction","setOwner","unregister","SoundMixerCore","longestAud","trackCount","rnd","faders","faderMaster","soloToggles","muteToggles","muteMaster","playToggle","ct","masterVol","actual_volume","faderC","soloing","solo","muteVol","ak","buildMixer","sortDesc","allowArrayLike","it","minLen","_e","normalCompletion","didErr","step","_e2","fields","dest","no_overwrites","possible","dropletUrl","dropletOptions","fileSizeHeader","useArray","concatenatedProperties","initUploadDialog","openAttachmentDrawer","videoContents","encodingObj","fileExt","initMobileVideo","cameraContainer","downloadFile","fileURL","toggleCameraPanel","_compat","rubric_criteria","updated_at","lock_at","unlock_at","grading_type","is_assignment","is_hybrid","submission_requirements","timed_assignment_data","needsCurrentUserSubmission","dueWithinOneWeek","dueWithinTwoWeeks","points_possible","timed_assignment","tsd","assignmentId_numbersOnly","timeDue","isAfter","dependentKeyCompat","numSubmitted","numGradedWithoutGrade","numRegrade","formattedDueDate","isStudentIncomplete","isStudentWork","needsGrade","hasHiddenSubmissions","did_submit","current_user_id","thumbnail_url","file_context","started_at","end_at","dismissConditions","context_data","condition","page_id","page_title","content_tag_id","_attachmentsMixin","last_message","last_message_at","last_authored_message","last_authored_message_at","context_name","topConversationPartners","new_message_body","lastActivityFormatted","last_authored_message_at_formatted","lastActivityFormattedBR","last_authored_message_at_formattedBR","last_authored_message_at_timestamp","last_message_formatted","equal","generated","forwarded_messages","slug","hasBob","earlyUnlockHash","bobUrl","lastItem","oneWay","isPrivateLesson","isReadOnly","isGradeLock","gradeLockDate","customGradeBookColumns","gradebook_weights","numAssignmentsDue","numUnreadDiscussions","numUnreadConversations","showcaseInstructors","isSample","termRunning","thisEpochDate","nextEpochDate","isRunning","isOrientation","isShowcase","isInteractive","isEvergreen","userTermData","next_live_class","lastUpdatedDate","expandedResponses","preExisting","showcase","poll_raw","instructor_ids","markReadThrough","formattedDiscussionDueDate","formattedPostDate","hasUnreadResponses","lastResponseId","mkRead","last_id","max_id","lastResponse","otherResponders","respClname","cname","listId","msgIsTooBig","modalId","textAreaId","refModalId","responseCount","respContainerId","hasMultipleResponses","responseCountStr","viewResponsesMsg","rspCount","isNotAnnouncement","isNotRequired","isConversation","isUnlocked","pr","voter_info","certificate","_quiz_question","_QuizQuestion","Essay","_onNextOrFinish","_dec11","_dec12","_dec13","_dec14","_dec15","_dec16","_dec17","_dec18","_Model","EventModel","s3Recordings","kalturaRecordings","_this$belongsTo$value","trimmedDescription","createdAt","setGivenAnswer","_setGivenAnswer","answerFileId","getAnswerFileId","_getAnswer","_getAnswerFileId","FillInMultipleBlank","given","givenBlankAnswer","correctBlankAnswers","short_name","sortable_name","sis_user_id","sis_import_id","integration_id","login_id","avatar_url","enrollmentObj","enrollDate","termStart","returnLate","weight","showcaseEdit","showBookmark","advice_card_submitter","advice_card_viewer","isPage","isAssignment","cssString","CSS","escape","unlocks_at","ulock","nextNumber","linkClass","clname","startsOn","unlock","MultipleAnswer","MultipleChoice","_onAnswerChange","MultipleDropdown","verbose_message","total_votes","total_results_array","question_type","answered_student_count","cant_go_back","is_quiz","components","multiple_choices","true_falses","short_answers","multiple_answers","multiple_dropdowns","essays","file_uploads","fill_in_multiple_blanks","polymorphic","_quizQuestion","wrong_feedback","correct_answer","attempt_data","multichoice","html_url","multiple_attempts_exist","generated_at","includes_all_versions","includes_sis_ids","anonymous_survey","speed_grader_url","submission_statistics","links","htmlId","showcase_section_id","ends_at","honorCodeAccepted","needsHonorCode","_this$students","emails","aName","bName","environment","kalturaSession","showLessons","ShortAnswer","hasAnsweredQuestion","archive_body","submission_type","posted_grade","hidden_from_students","submission_history","rubric_assessments","rubric_assessment_objects","daysLate","timeSubmitted","humanize","highestLoadedCommentId","cid","weeksSinceStart","TrueFalse","isCurrentUser","teaching","loginDays","profile_updated","webexid","zoomid","eventSchedulerTemplates","staff","admin","sfUserId","calendarHash","hideGradebookConfirmations","isEnrolled","whenPresent","quizzesProgress","enrollmentData","hasNotes","ignore","handleClick","Element","handleKeydown","varName","update","ResizeObserver","_didInsert","_didUpdate","named","_named$enabled","onView","enabled","_ref2$container","_ref2$threshold","_ref2$className","passive","ref","_ref2$","sentinel","cssText","_willDestroy","Router","locationType","rootURL","ga","_route","loginRefresh","adBlockDetector","basic_session","userID","isMain","detect","hasAdBlock","_routable","_lessonRedirect","handleVideoSourceError","_event$target$matches","oldSrc","placeholderSrc","interval","cacheBustSRC","crossDomain","wasPlaying","refocusPanelIfChanged","guardNavigation","_transition$to","_transition$from","PANEL_ROOT_ROUTES","toName","fromName","activeLessonItemId","unloadCourseModels","beforeModel","previous_course_id","newrelic","setCustomAttribute","extra_data","my_sub","afterModel","setupKeyboardShortcuts","Appcues","identify","redirect","targetName","isLessonsTarget","lp","hasItemID","noAccess","keyboardShortcutsEnabled","keyboardShortcuts","isContentEditable","focusMainContent","$recipientFilterInput","$recipientFilterList","$videoPlayer","$kalturaIframe","$postVideoEmbed","notificationController","begin","promptOnEntry","_info$params","_Route","ActivityRoute","_modalBase","innerWidth","controllerFor","isTeacherOrObserver","resolvedConversations","existing_ids","keep","filtered","_users","loaded_defer","WorkRoute","_beforeModel","scrollThrough","shouldRenderLoading","mainPanelHalfHeight","discussionsLoaded","needs_reload_p","all_lessons","lessonPromise","itemPromise","updateLessonInfo","topicsPromise","topics","st","modelFor","firstItem","_position_sidepanel","$sc","retry_p","activeLink","contentNode","updatePath","inViewport","new_id","allInViewport","$reset","itemChanged","hasReset","onLessons","loadingMask","resetHeight","amScrolling","bookmarkTopic","itemFromModel","bookmarked","completeTopic","didTransition","ClassroomLessonsCatchOldUrlRoute","routeSegments","getRouteSegments","redirectUrl","getRedirectUrl","_routeSegments$","_controller$rteServic","renderTemplate","into","outlet","resetController","itemID","lessonID","quiz_id","RosterRoute","convertor","rc","stopPolling","discussion_id","deactivate","_this$controller","dashboardLastAccessed","_string","_RESTSerializer","ApplicationSerializer","base","dasherize","underscore","_ApplicationSerialize","EventSerializer","_focusBeforeModal","_expiryTimers","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","_classPrivateFieldSet","_assertClassBrand","_classPrivateFieldGet","PANEL_HEADER_SELECTOR","MAIN_CONTENT_TARGETS","syllabus","roster","FOCUSABLE_SELECTOR","WeakMap","AccessibilityService","polite","assertive","channel","failureMessage","preventScroll","resolveFocusTarget","applyTemporaryTabindex","panelName","targets","handleKey","focusables","getFocusableElements","initial","_unused3","nodes","NodeList","original","_restore","once","hasAttribute","AdblockDetectorService","checkUsingHttpRequest","_detect","_evented","AttachmentManager","attachmentsReady","KALTURA_REGEX","AVPlayersService","_installListeners","playingAudio","_listenersInstalled","_clickHandler","_handleDocumentClick","_focusInHandler","_handleFocusIn","_keyDownInstalled","_handleKeyDown","addAbortController","_e$target$closest2","_e$target2","_e$target$closest3","_e$target3","_e$composedPath","_this$videoPlayer","_this$audioPlayer","_this$audioPlayer2","audioBtn","videoBtn","kalturaBtn","playAudioFromButton","playVideoFromButton","playKalturaFromButton","composedPath","inVideo","inAudio","isApClose","_el$classList","_el$classList$contain","_this$videoPlayer2","_this$audioPlayer3","_e$composedPath2","_this$videoPlayer3","_this$audioPlayer4","_target$handleKeyDown","audioActive","videoActive","handleKeyDown","_this$videoPlayer4","_btn$closest","_btn$closest2","_ensureKeyDown","_prev","relocate","openWith","_evt$target","_evt$target$contains","_evt$target2","_evt$target2$querySel","_this$audioPlayer5","_this$audioPlayer6","_this$videoPlayer5","mainPanel","assetParent","mainRect","_minmaxKaltura","sourceId","multi","autoMute","addReadyCallback","kdp","kBind","kUnbind","lastIndex","groups","BookmarksService","updateSelectedCourse","selectedCourse","lessonBookmarksShown","unsorted","lessonIdentifier","courseBookmarks","allCourses","bookmarkManagerShown","bookmarkPreview","_key3","removedEventArgs","bodyElem","interactionRemovedButton","templateName","loadingAllBookmarks","bookmarksIn","currentNotes","pageTitle","ConfirmDialogService","_opts$subtitle","_opts$choices","_opts$inputType","_opts$defaultInput","_opts$checkboxOptions","_opts$layout","dialogs","cssClass","DashboardSorterService","propertyName","EmbedParser","EventsService","currentTermEnrollments","currentTermEnrollment","_features","_Features","featureFlags","GradeCalculatorService","gradeOverride","existingGroupNames","totalWeight","avgStore","gradeTypes","filteredAssignments","notYetDue","assignment_weight","assignmentCount","scoreSum","possibleSum","noDedicatedDiscussionGrp","letterGrade","calcLetter","excused","omit_from_final_grade","low_order","addScore","urlExists","http","setRequestHeader","onreadystatechange","missed_heartbeat","blurred","dont_reschedule_p","full_p","checkCurrent","last_heartbeat","currentSection","resultCss","_searchFiles","resultScript","jsResult","cssResult","_notifyUpdates","scripts","KalturaUpload","progressCallback","removeIndex","Accept","DOMParser","parseFromString","LegacyAttachmentManager","rtcRec","audioRecPanelIsActive","audioRecPanelStatus","LocalStorageService","oldValue","_notifyCallbacks","_callbacks","started","acs_user_id","interval_num","iframe","_login_refresh","cookie","sess","LoginStreakService","daysThatWeek","RtcRec","audioInputDevices","videoInputDevices","_rtePositioningFixed","_rtePositioningResize","RtePositioningService","_ref$behavior","_ref$scrollRootSelect","setLastCoords","RtePositioningFixed","positionedElement","resolvePositionedElement","spacer","rafId","resizeObserver","isFixed","fixedLeft","fixedWidth","scrollRoot","boundOnScroll","onScroll","boundOnResize","onResize","createSpacer","syncSpacerHeight","sync","_this$positionedEleme","_this$positionedEleme2","pointerEvents","dpr","devicePixelRatio","property","naturalRect","rootRect","getRootRect","snapToDevicePixel","_this$spacer","applyFixedGeometry","_this$rte","_this$rte2","clearManagedStyles","_this$isDisabled","getNaturalRect","shouldEnterFixed","shouldExitFixed","releaseToNormal","fix","refreshFixedGeometry","_this$scrollRoot","_this$resizeObserver","_this$spacer2","_classPrivateMethodInitSpec","_RtePositioningResize_brand","WeakSet","RtePositioningResize","footer","fallbackScrollRoot","_getScrollRoot","scrollTarget","_this$toolbar","_this$toolbar2","_this$toolbar3","_this$footer","_this$footer2","_this$footer3","_this$wrapper","spacerElement","scrollRootTop","wr","th","fh","vh","wrapperHeight","rteWidth","_this$scrollTarget","RubricService","is_in_range","ranges","_range$split2","videoRes","runningChatMeetingDetails","anyChatsRunning","canMergeChats","portrait","termID","termName","showBob","userType","isShowcaseInstructor","isObserver","isStudent","kaltura_flavors","Uncompressed","downlink","connection","gradeLockAt","courseCodeWithSection","indexOfDot","previewPlaceholderLateGradingPolicy","noLateGradingPolicy","gradebookWeights","_this$get","courseCodeRaw","feature","courseFeatures","aFNonCredit","allowStudentChats","coursesAllowStudentChats","allowOldGradebook","useOldGradebook","simplifiedTermKeywords","simplifiedTermKeyword","limitedStudentTermKeywords","limitedStudentTermsKeywords","limitedStudentTermKeyword","noPiano","currentAbortControllers","clearAbortControllers","_clientZip","_awaitAsyncGenerator","_OverloadYield","AsyncGenerator","settle","arg","asyncIterator","throw","DOWNLOAD_PATH_PREFIX","SERVICE_WORKER_URL","SubmissionDownloaderService","_serviceWorkerMessageHandler","_handleServiceWorkerMessage","serviceWorker","_cleanup","_download","_yield$Promise$all","_yield$Promise$all2","manifest","metadataAvailable","metadata","zipResponse","completion","_this$_abortControlle","_abortController","_fetchManifest","_getDownloadServiceWorkerReady","isFinite","downloadZip","_zipInputs","_filename","_contentLength","_zipStream","_downloadId","_makeDownloadId","_completionResolve","_completionReject","_connectionTimeout","_this3$_completionRej","_sinkPort","_triggerNativeDownload","_cancel","_this$_abortControlle2","_this$_completionReje","_this$_zipStream","_this$_sinkPort","reason","ignored","DOMException","ports","downloadId","_this$_completionReje2","_rejectDownloadPort","portEvent","_handleSinkMessage","contentLength","_this$_completionReje3","_this$_abortControlle4","_this$_completionReje4","_this$_abortControlle3","_this$_completionReso","_fetchManifest2","credentials","_wrapAsyncGenerator","_this$_abortControlle5","aborted","lastModified","last_modified","_getDownloadServiceWorkerReady2","_serviceWorkerReady","_ensureDownloadServiceWorker","_ensureDownloadServiceWorker2","registration","pendingWorker","worker","updateViaCache","installing","waiting","_waitForServiceWorkerActivation","settled","_registration$active","stateChanged","_registration$active2","_downloadFrame","Uint32Array","crypto","getRandomValues","_this$_sinkPort2","SubmissionNavigationService","_surveySpoof","DAY","NUDGE_STARTS","LOCK_STARTS","PROMPTING_ENDS","MUTE_COOKIE","MUTE_DURATION","SurveyService","_this$session$section2","spoofMode","spoofQualtrics","_this$qualtrics","_this$qualtrics2","endOfTermDistributionURL","priorityDistributionURL","_this$qualtrics3","_this$surveyUrl$split","_this$surveyUrl","surveyUrl","_this$qualtrics4","dashboardUrl","isBlocked","_this$qualtrics5","opened","incompleteCount","_this$qualtrics6","totalTasksCount","isDue","totalCount","isEndOfTermSurvey","spoofTermEndsOn","termEndsOn","sinceTermEnd","phase","bannerDismissed","isNudge","nudgeDismissed","surveyId","expires","toUTCString","mute","_ref$acknowledge","acknowledge","isOnSurveyRoute","returnUrl","returnPanel","promptTask","pollTask","_refresh","_this$qualtrics7","teacherDashboardURL","TemplatesService","templateIndex","currentName","providedName","doSave","defaultCopyName","copyName","sourceTemplate","selectedTemplateId","TransitionService","confirmLeave","yes","no","UserProfileService","notesTemp","creator_user_id","target_user_id","_toggleUserProfile","posX","posY","$uPro","notesResult","_transform","BooleanTransform","DateTransform","NumberTransform","StringTransform","_ref$todayAsTime","eastern","_micromodal","checkboxDialog","checkboxesHTML","opt","choicesHTML","dialogHTML","insertAdjacentHTML","dataset","optionId","cb","onShow","disableScroll","textareaDialog","inputDialog","datetimeDialog","additionalClassesIn","textInputHTML","bodyHTML","typeClass","firstOptionSelected","form","submit","Queue","queue","dequeue","workingOnPromise","approve","updatedReservations","KEY","TERM_ENDS_IN","isEndOfTerm","spoofCount","incompleteTasks","FAKE_SURVEY_URL","FAKE_DASHBOARD_URL","COUNT_KEY","nudge","expired","surveySpoof","eventHandlers","_interval","eventHandler","executed","openWebex","api_url","dest_url","meetingKeyColumn","numChatsAttendedColumn","saveCourse","gbColumn","studentData","joinUrl","watchArchivedChat","isEmptyEvent","stamp","_split2","whole","fraction","multiplier","parseCaptionFile","vttUrl","todayDay","dueDay","diffDays","sameYear","formatDueDate","fullDueDate","getPropertyValue","_captions","KALTURA_STATUS_URL","Html5Engine","abortController","resFallbackTimer","statusRecheckTimer","_bind","_video$querySelector","onEnginePlay","onEnginePause","_onEnded","onEngineTime","onEngineClick","_onSourceError","_load","_this$session$get","_this$session$kaltura","flavor","trackUrl","trackEl","_loadCaptions","onEngineCaptions","_loadCaptions2","onEngineBrokenCC","_settle","rate","_this$session$kaltura2","sourceEl","nextFlavor","onEngineEnded","_data$status","indicator","_recheckStatus","_data$status2","onEngineRecovered","_this$video$querySele","_unused4","WistiaEngine","mountEl","mount","embedEl","destroyed","ccVisible","fetchCaptionCues","loadWistiaScript","resolveReady","readyTimer","_wq","onReady","_onReady","_this$embedEl","_this$resolveReady","_this$video","_this$video2","_this$video3","_this$video4","_this$video5","_this$video6","_this$video7","_this$video8","unmute","_this$video9","_this$video0","captions","plugin","_this$mount","_this$mount2","_this$resolveReady2","_this$video1","TEST_MEDIA_ID","testMediaClaimed","_fetchCaptionCues","fetchMedia","_fetchThumbnail","Wistia","scriptPromise","EMBED_SCRIPT","SOURCE_RE","CLASS_RE","HASHED_ID_RE","_config$APP","configured","testMediaId","mediaId","_media$assets","media","still","oembed","asset","fetchJSON","accountUrl","_fetchMedia","_english$hash","english","_config$APP2","_fetchJSON","metaName","rawConfig","exports","runningTests","require","honorCode","bootOnLoad","multiple_live_classes_scheduled_id","single_live_class_scheduled_id","noRequirementsSlackNotification","apiToken"],"sources":["vendor/ember-cli/app-prefix.js","bocce/components/advice-card/audio-recorder.js","bocce/components/assignment-submission-box.js","bocce/components/attachments-container.js","bocce/components/attachments/attached-file.js","bocce/components/audio-player.js","bocce/components/av-player.js","bocce/components/bookmarks/bookmark-note.js","bocce/components/bookmarks/bookmarks-header.js","bocce/components/buttons/multi-button.js","bocce/components/character-limited-textarea.js","bocce/components/chips/chip-filter.js","bocce/components/chips/chip-submission/chip-submission-details.js","bocce/components/classlist.js","bocce/components/classroom/header.js","bocce/components/classroom/lessons/admin/quizzes.js","bocce/components/classroom/lessons/assignment-content.js","bocce/components/classroom/lessons/discussion-content.js","bocce/components/classroom/lessons/quiz-content.js","bocce/components/dashboard/course-list.js","bocce/components/dashboard/course-list/course-list-item-past.js","bocce/components/dashboard/course-list/course-list-item.js","bocce/components/discussion-body.js","bocce/components/discussion-header.js","bocce/components/discussion-reply-box.js","bocce/components/discussion/poll.js","bocce/components/drafts.js","bocce/adapters/application.js","bocce/app.js","bocce/components/adblock-warning.js","bocce/components/assignment-user.js","bocce/components/assignment/assignment-comment.js","bocce/components/assignment/assignment-list.js","bocce/components/attachment-preview.js","bocce/components/banner-drawer.js","bocce/components/bookmarks/bookmark-preview.js","bocce/components/bookmarks/bookmarks-content.js","bocce/components/bookmarks/bookmarks.js","bocce/components/buttons/add-button.js","bocce/components/buttons/async-button.js","bocce/components/buttons/button-generic.js","bocce/components/buttons/delete-button.js","bocce/components/buttons/submit-button.js","bocce/components/chips/chip-submission.js","bocce/components/chips/chip.js","bocce/components/inbox.js","bocce/components/inbox/message-tile.js","bocce/components/inbox/message-view.js","bocce/components/inputs/dropdown.js","bocce/components/inputs/template-dropdown.js","bocce/components/inputs/toggle-switch.js","bocce/components/lessons/advice-card-submitter.js","bocce/components/lessons/advice-card-viewer.js","bocce/components/lessons/event-new-content.js","bocce/components/lessons/event-new-template-manager-page.js","bocce/components/login-streak.js","bocce/components/modal-wormhole.js","bocce/components/modals/attachments/attachments-record-audio.js","bocce/components/modals/attachments/attachments-record-video.js","bocce/components/modals/attachments/attachments-upload-file.js","bocce/components/modals/confirm-dialog-host.js","bocce/components/modals/confirm-dialog.js","bocce/components/classroom/current-lesson-item.js","bocce/components/classroom/header/section-info.js","bocce/components/conversation-reply-box.js","bocce/components/conversation.js","bocce/components/conversations.js","bocce/components/dashboard/course-list/course-list-item-training.js","bocce/components/dashboard/week-number-display.js","bocce/components/datetime-picker.js","bocce/components/discussion-response.js","bocce/components/discussion-view.js","bocce/components/discussion/multisection-picker.js","bocce/components/discussion/reply-button.js","bocce/components/drag-and-drop.js","bocce/components/dummy-component.js","bocce/components/embeded-content.js","bocce/components/event-response.js","bocce/components/no-submissions-view.js","bocce/components/notifications.js","bocce/components/prefs.js","bocce/components/quick-grader.js","bocce/components/quickgrader-student-list.js","bocce/components/quiz-admin/delete-latest-attempt.js","bocce/components/quiz-admin/operation.js","bocce/components/quiz-admin/unlock-for-next-attempt.js","bocce/components/quiz-questions/file-upload.js","bocce/components/quiz-questions/fill-in-multiple-blanks.js","bocce/components/quiz-questions/multiple-dropdowns.js","bocce/components/quiz-questions/question.js","bocce/components/quiz-scenarios/quiz-all-graded.js","bocce/components/quiz-scenarios/quiz-all.js","bocce/components/quiz-scenarios/quiz-instructor.js","bocce/components/quiz-scenarios/quiz-intercept.js","bocce/components/quiz-scenarios/quiz-single-graded-results.js","bocce/components/quiz-scenarios/quiz-single-graded-reviewing.js","bocce/components/expandable-list.js","bocce/components/grade-student-list/list-item.js","bocce/components/grade-student-list/list.js","bocce/components/gradebook.js","bocce/components/interactions/guitar/main.js","bocce/components/kaltura-player.js","bocce/components/legacy-boot.js","bocce/components/lessons/event-new-collapsible.js","bocce/components/lessons/event-new-template-manager.js","bocce/components/lessons/lesson-wrapper.js","bocce/components/lessons/topic-body.js","bocce/components/loading-mask.js","bocce/components/loading-message.js","bocce/components/quiz-scenarios/quiz-single.js","bocce/components/quiz-stats/question-statistics-manual.js","bocce/components/quiz-stats/question-statistics-multiple.js","bocce/components/quiz-stats/question-statistics-single.js","bocce/components/quiz-stats/quiz-stats-actions.js","bocce/components/quiz-stats/quiz-stats.js","bocce/components/quiz-stats/types/essay-question-statistics.js","bocce/components/quiz-stats/types/short-answer-question-statistics.js","bocce/components/quiz.js","bocce/components/quiz/finish-quiz.js","bocce/components/quiz/previous-questions.js","bocce/components/quiz/quiz-overview.js","bocce/components/quiz/results.js","bocce/components/reply.js","bocce/components/rte.js","bocce/components/rubric/assessment.js","bocce/components/rubric/grading.js","bocce/components/rubric/instructor-graded.js","bocce/components/rubric/rubric.js","bocce/components/modals/cover-backdrop.js","bocce/components/modals/dark-backdrop.js","bocce/components/new-activity.js","bocce/components/next-live-class.js","bocce/components/notification-item.js","bocce/components/polls/poll-drawer.js","bocce/components/quiz-questions/essay.js","bocce/components/quiz-questions/multianswer.js","bocce/components/quiz-questions/multichoice.js","bocce/components/quiz-questions/multiple-answers.js","bocce/components/quiz-questions/multiple-choice.js","bocce/components/quiz-questions/short-answer.js","bocce/components/quiz-questions/true-false.js","bocce/components/rubric/ungraded.js","bocce/components/screen-reader-announcer.js","bocce/components/side-nav.js","bocce/components/side-nav/toolbar-button.js","bocce/components/side-panel.js","bocce/components/side-panel/activity-card.js","bocce/components/side-panel/activity/activity-due.js","bocce/components/side-panel/activity/announcement.js","bocce/components/side-panel/event-card.js","bocce/components/side-panel/events.js","bocce/components/side-panel/filter-dropdown.js","bocce/components/side-panel/panel-filters.js","bocce/components/side-panel/settings.js","bocce/components/side-panel/syllabus.js","bocce/components/side-panel/syllabus/lesson-item.js","bocce/components/side-panel/syllabus/syllabus-lesson.js","bocce/components/side-panel/work-card.js","bocce/components/submission-footer.js","bocce/components/submission-no-rubric.js","bocce/components/submission-view.js","bocce/components/quiz-stats/types/file-upload-question-statistics.js","bocce/components/quiz-stats/types/fill-in-multiple-blanks-question-statistics.js","bocce/components/quiz-stats/types/multiple-answers-question-statistics.js","bocce/components/quiz-stats/types/multiple-choice-question-statistics.js","bocce/components/quiz-stats/types/multiple-dropdowns-question-statistics.js","bocce/components/quiz-stats/types/true-false-question-statistics.js","bocce/components/quiz/answer-feedback.js","bocce/components/quiz/check-answer.js","bocce/components/quiz/statistics.js","bocce/components/quiz/submitted-in.js","bocce/components/recipient-filter.js","bocce/components/user-menu.js","bocce/components/video-player.js","bocce/controllers/classroom/admin/cache.js","bocce/controllers/classroom/survey.js","bocce/components/showcase-post.js","bocce/components/side-panel/activity.js","bocce/components/side-panel/late-grading-policy.js","bocce/components/side-panel/work.js","bocce/components/submission-new-view.js","bocce/components/submissions-list-button.js","bocce/components/syllabus.js","bocce/components/upload-preview.js","bocce/components/user-dot.js","bocce/controllers/classroom/work/late-grading-policy.js","bocce/components/user-icons.js","bocce/components/user-portrait.js","bocce/components/user-profile.js","bocce/controllers/classroom.js","bocce/controllers/classroom/activity/announcement-new.js","bocce/controllers/classroom/activity/discussion-new.js","bocce/controllers/classroom/activity/discussion.js","bocce/controllers/classroom/activity/no-submissions.js","bocce/controllers/classroom/activity/submission-new.js","bocce/controllers/classroom/activity/submission.js","bocce/controllers/classroom/admin.js","bocce/controllers/classroom/admin/assignments.js","bocce/controllers/classroom/admin/banners.js","bocce/controllers/classroom/admin/live.js","bocce/controllers/classroom/admin/quizzes.js","bocce/controllers/classroom/conversation-new-with.js","bocce/controllers/classroom/conversation-new.js","bocce/controllers/classroom/conversation.js","bocce/controllers/classroom/lessons.js","bocce/controllers/classroom/live/event-new.js","bocce/controllers/classroom/live/event-quick-new.js","bocce/controllers/classroom/live/event.js","bocce/controllers/classroom/live/index.js","bocce/controllers/classroom/no-submissions.js","bocce/controllers/classroom/student-event-new.js","bocce/controllers/classroom/submission-new.js","bocce/controllers/classroom/submission.js","bocce/controllers/classroom/work/discussion.js","bocce/controllers/classroom/work/no-submissions.js","bocce/controllers/classroom/work/submission-new.js","bocce/controllers/classroom/work/submission.js","bocce/controllers/conversations.js","bocce/controllers/dashboard.js","bocce/controllers/discussions.js","bocce/controllers/events.js","bocce/controllers/index.js","bocce/controllers/notifications.js","bocce/data-adapter.js","bocce/deprecation-workflow.js","bocce/helpers/and.js","bocce/helpers/app-version.js","bocce/helpers/array-item.js","bocce/helpers/calendar.js","bocce/helpers/cancel-all.js","bocce/helpers/contains.js","bocce/helpers/correct.js","bocce/helpers/dashify.js","bocce/helpers/decode.js","bocce/helpers/diff.js","bocce/helpers/difference.js","bocce/helpers/dropdown-scale.js","bocce/helpers/due-date-class.js","bocce/helpers/epoch-to-dayhr.js","bocce/helpers/eq.js","bocce/helpers/feature-flag.js","bocce/js/quizzes/quizzes.js","bocce/helpers/file-extension.js","bocce/helpers/format-due-date.js","bocce/helpers/format-grade.js","bocce/helpers/heartbeat.js","bocce/helpers/image.js","bocce/helpers/in-list.js","bocce/helpers/inarray.js","bocce/helpers/is-overdue.js","bocce/helpers/isnull.js","bocce/helpers/lessthan.js","bocce/helpers/letter-grade.js","bocce/helpers/letter.js","bocce/helpers/longdate.js","bocce/helpers/moment.js","bocce/helpers/morethan.js","bocce/helpers/morethanzero.js","bocce/helpers/not.js","bocce/helpers/notnull.js","bocce/helpers/null.js","bocce/helpers/or.js","bocce/helpers/page-title.js","bocce/helpers/past-due.js","bocce/helpers/percentage.js","bocce/helpers/perform.js","bocce/helpers/pluralize.js","bocce/helpers/safehtml.js","bocce/helpers/same.js","bocce/helpers/show-discussions.js","bocce/helpers/show-ungraded.js","bocce/helpers/singularize.js","bocce/helpers/spacelist.js","bocce/helpers/startswith.js","bocce/helpers/substring.js","bocce/helpers/subtract.js","bocce/helpers/sum.js","bocce/helpers/task.js","bocce/helpers/teaser.js","bocce/helpers/total.js","bocce/helpers/trim.js","bocce/helpers/two-decimals.js","bocce/helpers/upload.js","bocce/initializers/app-version.js","bocce/initializers/deprecation-logger.js","bocce/initializers/ember-cli-mirage.js","bocce/initializers/ember-data.js","bocce/js/editor/customizations.js","bocce/js/editor/editor.js","bocce/js/editor/service.js","bocce/js/quizzes/quizzes-factory.js","bocce/js/store-util.js","bocce/js/utils.js","bocce/mixins/assignments.js","bocce/mixins/attachments-mixin.js","bocce/mixins/audio-rec.js","bocce/mixins/boot.js","bocce/mixins/calendar-events.js","bocce/mixins/conversable.js","bocce/mixins/discussable.js","bocce/mixins/editable.js","bocce/mixins/interactions/text_line_and_text_select_hybrid.js","bocce/mixins/embed-parser.js","bocce/mixins/enmodal.js","bocce/mixins/event-model.js","bocce/mixins/interactions/abstract_quiz.js","bocce/mixins/interactions/audio_comments.js","bocce/mixins/interactions/audio_markers_quiz.js","bocce/mixins/interactions/bass_fretboard_quiz.js","bocce/mixins/interactions/bpm_tap_pad.js","bocce/mixins/interactions/codec_comparison.js","bocce/mixins/interactions/content_container.js","bocce/mixins/interactions/content_framing.js","bocce/mixins/interactions/cycle_5.js","bocce/mixins/interactions/drag_and_drop_quiz.js","bocce/mixins/interactions/embedder.js","bocce/mixins/interactions/fill_in_the_blanks_quiz.js","bocce/mixins/interactions/flash_cards.js","bocce/mixins/interactions/form_builder.js","bocce/mixins/interactions/guitar.js","bocce/mixins/interactions/hot_spot_quiz.js","bocce/mixins/interactions/image_explorer.js","bocce/mixins/interactions/javascript.js","bocce/mixins/interactions/list_rollover.js","bocce/mixins/interactions/mix_visualizer.js","bocce/mixins/interactions/piano.js","bocce/mixins/interactions/piano_quiz.js","bocce/mixins/interactions/requirements.js","bocce/mixins/interactions/reveal_content.js","bocce/mixins/interactions/reveal_text_quiz.js","bocce/mixins/interactions/rive.js","bocce/mixins/interactions/rotatable.js","bocce/models/event.js","bocce/models/file_upload.js","bocce/models/fill_in_multiple_blank.js","bocce/mixins/interactions/simple_slideshow.js","bocce/mixins/interactions/slideshow.js","bocce/mixins/interactions/solfege_ladder.js","bocce/mixins/interactions/sound_mixer.js","bocce/mixins/interactions/timed_assignment.js","bocce/mixins/interactions/timed_writing.js","bocce/mixins/interactions/timeline.js","bocce/mixins/interactions/timeline_knightlab.js","bocce/mixins/interactions/video_commentary.js","bocce/mixins/interactions/video_mixer.js","bocce/mixins/interactions/view-or-take-a-survey.js","bocce/mixins/kaltura-upload.js","bocce/mixins/legacy-attachment-manager.js","bocce/mixins/lesson-redirect.js","bocce/mixins/menus.js","bocce/mixins/nested-resources.js","bocce/mixins/notify.js","bocce/mixins/polls.js","bocce/mixins/quiz-question.js","bocce/mixins/quiz.js","bocce/mixins/routable.js","bocce/mixins/rtc-rec.js","bocce/mixins/showcase.js","bocce/mixins/support/layout.js","bocce/mixins/support/local-storage.js","bocce/mixins/support/prism.js","bocce/mixins/support/render-template.js","bocce/mixins/support/sound_mixer_core.js","bocce/mixins/support/util.js","bocce/routes/classroom/activity.js","bocce/mixins/uploadable.js","bocce/mixins/video-rec.js","bocce/models/assessment.js","bocce/models/assignment.js","bocce/models/attachment.js","bocce/models/attempt.js","bocce/models/banner.js","bocce/models/bookmark.js","bocce/models/comment.js","bocce/models/conversation.js","bocce/models/conversation_message.js","bocce/models/course.js","bocce/models/dashboard.js","bocce/models/discussion.js","bocce/models/enrollment.js","bocce/models/essay.js","bocce/models/gradebook.js","bocce/models/gradebook_weight.js","bocce/models/item.js","bocce/models/lesson.js","bocce/models/lessons.js","bocce/models/multiple_answer.js","bocce/models/multiple_choice.js","bocce/models/multiple_dropdown.js","bocce/models/notification.js","bocce/models/page.js","bocce/models/poll.js","bocce/routes/classroom/grades.js","bocce/routes/classroom/lessons/catch-old-url.js","bocce/routes/classroom/roster.js","bocce/models/poll_submission.js","bocce/models/question_statistic.js","bocce/models/quiz.js","bocce/models/quiz_question.js","bocce/models/quiz_question_archived.js","bocce/models/quiz_statistic.js","bocce/models/response.js","bocce/models/rubric_criterion.js","bocce/models/section.js","bocce/models/session.js","bocce/models/short_answer.js","bocce/models/submission.js","bocce/models/term.js","bocce/models/true_false.js","bocce/models/user.js","bocce/modifiers/click-outside.js","bocce/modifiers/css-var-height.js","bocce/modifiers/did-insert.js","bocce/modifiers/did-update.js","bocce/modifiers/in-view.js","bocce/modifiers/narrow-when-content-tight.js","bocce/modifiers/prop.js","bocce/modifiers/sticky-class.js","bocce/modifiers/will-destroy.js","bocce/router.js","bocce/routes/application.js","bocce/routes/classroom.js","bocce/routes/classroom/activity/announcement-new.js","bocce/routes/classroom/activity/assignments.js","bocce/routes/classroom/work.js","bocce/serializers/application.js","bocce/services/accessibility.js","bocce/services/adblock-detector.js","bocce/services/attachment-manager.js","bocce/services/av-players.js","bocce/services/bookmarks.js","bocce/services/confirm-dialog.js","bocce/services/dashboard-sorter.js","bocce/services/embed-parser.js","bocce/services/events.js","bocce/services/grade-calculator.js","bocce/services/legacy-attachment-manager.js","bocce/routes/classroom/activity/discussion-new.js","bocce/routes/classroom/activity/discussion.js","bocce/routes/classroom/activity/no-submissions.js","bocce/routes/classroom/activity/quiz.js","bocce/routes/classroom/activity/submission-new.js","bocce/routes/classroom/activity/submission.js","bocce/routes/classroom/admin.js","bocce/routes/classroom/admin/assignments.js","bocce/routes/classroom/admin/banners.js","bocce/routes/classroom/admin/cache.js","bocce/routes/classroom/admin/index.js","bocce/routes/classroom/admin/live.js","bocce/routes/classroom/admin/quizzes.js","bocce/routes/classroom/assignments.js","bocce/routes/classroom/conversation-new-with.js","bocce/routes/classroom/conversation-new.js","bocce/routes/classroom/conversation.js","bocce/routes/classroom/lessons.js","bocce/routes/classroom/live.js","bocce/routes/classroom/live/event-new.js","bocce/routes/classroom/live/event-quick-new.js","bocce/routes/classroom/live/event.js","bocce/routes/classroom/loading.js","bocce/routes/classroom/modal-base.js","bocce/routes/classroom/no-submissions.js","bocce/routes/classroom/quiz.js","bocce/routes/classroom/student-event-new.js","bocce/services/login-streak.js","bocce/services/rtc-rec.js","bocce/services/rte-positioning.js","bocce/services/rte-positioning/rte-positioning-resize.js","bocce/services/rubric.js","bocce/services/submission-downloader.js","bocce/services/submission-navigation.js","bocce/services/survey.js","bocce/services/templates.js","bocce/services/transition.js","bocce/services/userprofile.js","bocce/routes/classroom/submission-new.js","bocce/routes/classroom/submission.js","bocce/routes/classroom/survey.js","bocce/routes/classroom/work/assignments.js","bocce/routes/classroom/work/discussion.js","bocce/routes/classroom/work/no-submissions.js","bocce/routes/classroom/work/quiz.js","bocce/routes/classroom/work/submission-new.js","bocce/routes/classroom/work/submission.js","bocce/routes/dashboard.js","bocce/routes/index.js","bocce/serializers/event.js","bocce/services/assessment-events.js","bocce/services/encodingVideos.js","bocce/services/features.js","bocce/services/heartbeat.js","bocce/services/kaltura-upload.js","bocce/services/local-storage.js","bocce/services/login-refresh.js","bocce/services/page-title.js","bocce/services/rte-positioning/rte-positioning-fixed.js","bocce/services/session.js","bocce/services/store.js","bocce/templates/application.js","bocce/templates/classroom.js","bocce/templates/classroom/activity/announcement-new.js","bocce/templates/classroom/activity/discussion-new.js","bocce/templates/classroom/activity/discussion.js","bocce/templates/classroom/activity/index.js","bocce/templates/classroom/activity/no-submissions.js","bocce/templates/classroom/activity/submission-new.js","bocce/templates/classroom/activity/submission.js","bocce/templates/classroom/admin.js","bocce/templates/classroom/admin/assignments.js","bocce/templates/classroom/admin/banners.js","bocce/templates/classroom/admin/cache.js","bocce/templates/classroom/admin/index.js","bocce/templates/classroom/admin/live.js","bocce/templates/classroom/admin/loading.js","bocce/templates/classroom/admin/quizzes.js","bocce/templates/classroom/assignments.js","bocce/templates/classroom/conversation-new-with.js","bocce/templates/classroom/conversation-new.js","bocce/templates/classroom/conversation.js","bocce/templates/classroom/discussion.js","bocce/templates/classroom/lessons.js","bocce/templates/classroom/live/event-new.js","bocce/templates/classroom/live/event-quick-new.js","bocce/templates/classroom/live/event.js","bocce/templates/classroom/live/index.js","bocce/templates/classroom/loading.js","bocce/templates/classroom/quiz.js","bocce/templates/classroom/roster.js","bocce/templates/classroom/roster/index.js","bocce/templates/classroom/submission.js","bocce/templates/classroom/survey.js","bocce/templates/classroom/work.js","bocce/templates/classroom/work/discussion.js","bocce/templates/classroom/work/index.js","bocce/templates/classroom/work/late-grading-policy.js","bocce/templates/classroom/work/no-submissions.js","bocce/templates/classroom/work/quiz.js","bocce/templates/classroom/work/submission-new.js","bocce/templates/classroom/work/submission.js","bocce/templates/dashboard-loading.js","bocce/templates/dashboard.js","bocce/templates/demo.js","bocce/templates/interactions/audiocomments/comment.js","bocce/templates/interactions/audiocomments/main.js","bocce/templates/interactions/audiomarkersquiz/main.js","bocce/templates/interactions/contentframing/main.js","bocce/templates/interactions/cycle5/main.js","bocce/templates/interactions/draganddropquiz/main.js","bocce/templates/interactions/fillintheblanksquiz/main.js","bocce/templates/interactions/flashcards/main.js","bocce/templates/interactions/formbuilder/main.js","bocce/templates/interactions/hotspotquiz/main.js","bocce/templates/interactions/hotspotquiz/quizcomplete.js","bocce/templates/interactions/imageexplorer/infobottom.js","bocce/templates/interactions/imageexplorer/loading.js","bocce/templates/interactions/imageexplorer/nav.js","bocce/templates/interactions/imageexplorer/stage.js","bocce/templates/interactions/listrollover/main.js","bocce/templates/interactions/mixvisualizer/main.js","bocce/templates/interactions/rive/main.js","bocce/templates/interactions/slideshow/main.js","bocce/templates/interactions/solfegeladder/main.js","bocce/templates/interactions/solfegeladder/major-key-exp-pallet.js","bocce/templates/interactions/textlineandtextselecthybrid/main.js","bocce/templates/interactions/textlineandtextselecthybrid/quizcomplete.js","bocce/templates/interactions/timedwriting/main.js","bocce/templates/interactions/timeline/main.js","bocce/templates/interactions/videocommentary/main.js","bocce/templates/loading.js","bocce/transforms/boolean.js","bocce/transforms/date.js","bocce/transforms/number.js","bocce/transforms/string.js","bocce/utilities/date-format.js","bocce/utilities/dialog.js","bocce/utilities/logout.js","bocce/utilities/promise-queue.js","bocce/utilities/prompt.js","bocce/utilities/rsvp.js","bocce/utilities/survey-spoof.js","bocce/utilities/timer.js","bocce/utilities/webex.js","bocce/utils/captions.js","bocce/utils/format-due-date.js","bocce/utils/layout.js","bocce/utils/video-engines/html5.js","bocce/utils/video-engines/wistia.js","bocce/utils/wistia.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/advice-card/audio-recorder\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/debug\", \"@ember/service\", \"bocce/helpers/upload\", \"@bocce/shared\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _debug, _service, _upload, _shared, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/debug\",0,\"@ember/service\",0,\"bocce/helpers/upload\",0,\"@bocce/shared\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
\n
\n \n \n \n \n Upload\n \n
\n \n \n Echo Cancellation\n \n \n \n
\n
\n \n
\n
\n
\n {{{this.recordingStatus}}}\n
\n
\n */\n {\n \"id\": \"uS4el3LY\",\n \"block\": \"[[[3,\\\" This is a basic audio recorder component \\\"],[1,\\\"\\\\n\\\"],[3,\\\" Record button, switch to stop button when recording, with time code. Once stopped, option to play back, re-record, or upload \\\"],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"audio-recorder-basic\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"audio-recorder-controls \\\",[30,0,[\\\"recordingClassSelector\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"audio-recorder-record\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"startRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-circle\\\"],[12],[13],[1,\\\"\\\\n Record\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"audio-recorder-stop\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"stopRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-stop\\\"],[12],[13],[1,\\\"\\\\n Stop\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"audio-recorder-play\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"playRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-play\\\"],[12],[13],[1,\\\"\\\\n Play\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"audio-recorder-re-record\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"trashRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-trash\\\"],[12],[13],[1,\\\"\\\\n Re-record\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"audio-recorder-upload \\\",[52,[30,0,[\\\"file\\\"]],\\\"file-ready\\\"]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"uploadRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-upload\\\"],[12],[13],[1,\\\" Upload\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"toggle-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,1,\\\"echoCancellationToggleAudio\\\"],[16,0,[29,[\\\"slide-toggle \\\",[52,[30,0,[\\\"echoCancellationEnabled\\\"]],\\\"on\\\",\\\"off\\\"]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"echoCancellationToggleAudio\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"toggle-label tooltip light\\\"],[14,\\\"tooltip\\\",\\\"Echo Cancellation helps remove the echo effect when recording audio. This can improve the audio quality in noisy environments, but it is not recommended for general use because it also tends to remove instrumental background audio.\\\"],[12],[1,\\\"\\\\n Echo Cancellation\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"slider round\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"advice-card-audio-player \\\",[52,[30,0,[\\\"audioBlob\\\"]],\\\"active\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"audio\\\"],[14,1,\\\"advice-card-audio\\\"],[14,\\\"preload\\\",\\\"none\\\"],[14,\\\"controlsList\\\",\\\"nodownload\\\"],[14,\\\"controls\\\",\\\"controls\\\"],[12],[10,\\\"source\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"audioBlob\\\"]]]]],[14,4,\\\"audio/mpeg\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"audio-recorder-status\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"recordingStatus\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"if\\\",\\\"label\\\",\\\"span\\\",\\\"audio\\\",\\\"source\\\"]]\",\n \"moduleName\": \"bocce/components/advice-card/audio-recorder.hbs\",\n \"isStrictMode\": false\n });\n var AudioRecorder = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function AudioRecorder() {\n var _this;\n _classCallCheck(this, AudioRecorder);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, AudioRecorder, [].concat(args));\n _initializerDefineProperty(_this, \"recording\", _descriptor, _this);\n _initializerDefineProperty(_this, \"uploaded\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"audioBlob\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"audioUrl\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"timeCode\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"file\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"recordingStatus\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"previousStatus\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"recordingClassSelector\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"previousClassSelector\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"echoCancellationEnabled\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor10, _this);\n return _this;\n }\n _inherits(AudioRecorder, _Component);\n return _createClass(AudioRecorder, [{\n key: \"encodeAudio\",\n value: function encodeAudio() {\n var _this2 = this;\n var panel = this.panel;\n this.recorder.exportMP3(function (blob, mp3Name, context) {\n _this2.file = new File([blob], mp3Name, {\n type: \"audio/mpeg3\"\n });\n _this2.audioBlob = URL.createObjectURL(blob);\n // reload audio player so it recognizes the new blob\n document.getElementById(\"advice-card-audio\").load();\n _this2.recordingStatus = \"Recorded. Please upload your recording to enable submission.\";\n _this2.recordingClassSelector = \"done\";\n _this2.recorder.destroy();\n }, this);\n }\n }, {\n key: \"uploadRecording\",\n value: function uploadRecording() {\n var _this3 = this;\n if (!this.file || this.args.recording) {\n return;\n }\n this.recordingClassSelector = \"uploading\";\n this.recordingStatus = \" Uploading...\";\n (0, _upload.default)(this.file, window.session.get(\"user.id\"), this.store, null, null, function (progress) {\n _this3.recordingStatus = \"Uploading...\" + progress + \"%\";\n _this3.recordingClassSelector = \"uploading\";\n }).then(function (att_id) {\n var retval = _this3.store.findRecord(\"attachment\", att_id).then(function (attachment) {\n console.log(\"attachment\", attachment);\n _this3.args.updateRecordingStatus(false);\n _this3.args.updateAttachment(att_id);\n _this3.audioBlob = attachment.get(\"url\");\n _this3.recordingStatus = \"Recording successfully uploaded.\";\n _this3.recordingClassSelector = \"uploaded\";\n _this3.uploaded = true;\n });\n return retval;\n }, function (err) {\n (0, _debug.debug)(err, \"Could not upload file\");\n _this3.recordingStatus = \"Upload failed. Please try again.\";\n _this3.recordingClassSelector = \"done\";\n _this3.uploaded = false;\n });\n }\n }, {\n key: \"startUserMedia\",\n value: function startUserMedia(stream) {\n try {\n // WebKit nonsense\n window.AudioContext = window.AudioContext || window.webkitAudioContext;\n window.URL = window.URL || window.webkitURL;\n (0, _debug.debug)(\"Audio context set up.\");\n (0, _debug.debug)(\"navigator.getUserMedia \" + (navigator.getUserMedia ? \"available.\" : \"not present!\"));\n this.recordingClassSelector = \"ready\";\n } catch (e) {\n (0, _debug.debug)(\"No web audio support in this browser!\");\n this.recordingStatus = \"No web audio support in this browser!\";\n this.recordingClassSelector = \"no-audio\";\n }\n this.recorder = new _shared.Recorder(stream);\n }\n }, {\n key: \"startRecording\",\n value: function () {\n var _startRecording = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var _this4 = this;\n var constraints;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n constraints = {\n audio: true\n };\n if (!(localStorage.getItem(\"bocceEchoCancellation\") === \"true\")) {\n constraints.audio = {\n echoCancellation: false,\n mozAutoGainControl: false,\n mozNoiseSuppression: false,\n googEchoCancellation: false,\n googAutoGainControl: false,\n googNoiseSuppression: false,\n googHighpassFilter: false\n };\n }\n navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {\n _this4.startUserMedia(stream);\n _this4.recordingStatus = \"Starting...\";\n _this4.recordingClassSelector = \"recording\";\n var rec = _this4.recorder.record(function (time) {\n _this4.recordingStatus = \"RECORDING: \".concat(time);\n });\n if (rec) {\n _this4.args.updateRecordingStatus(true);\n }\n }).catch(function (error) {\n (0, _debug.debug)(\"No live audio input: \" + error);\n _this4.recordingStatus = \"Please enable microphone access in your browser settings and refresh the page.\";\n _this4.recordingClassSelector = \"no-audio\";\n });\n case 1:\n return _context.a(2);\n }\n }, _callee);\n }));\n function startRecording() {\n return _startRecording.apply(this, arguments);\n }\n return startRecording;\n }()\n }, {\n key: \"stopRecording\",\n value: function () {\n var _stopRecording = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var rec;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n if (this.audioBlob) {\n this.player.pause();\n this.player.currentTime = 0;\n this.recordingStatus = \"Stopped. Please upload your recording to enable submission.\";\n this.recordingClassSelector = \"done\";\n } else {\n this.recordingStatus = \"Encoding...\";\n this.recordingClassSelector = \"done\";\n rec = this.recorder.stop();\n this.encodeAudio(rec);\n }\n case 1:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function stopRecording() {\n return _stopRecording.apply(this, arguments);\n }\n return stopRecording;\n }()\n }, {\n key: \"playRecording\",\n value: function playRecording() {\n var _this5 = this;\n this.previousStatus = this.recordingStatus;\n this.previousClassSelector = this.recordingClassSelector;\n this.player = document.getElementById(\"advice-card-audio\");\n this.recordingStatus = \"Playing...\";\n this.recordingClassSelector = \"playing\";\n this.player.play().then(function () {\n if (!_this5.playerEventListener) {\n // Create a player listener to change the status when the recording is done playing\n\n _this5.playerEventListener = true;\n _this5.player.addEventListener(\"ended\", function () {\n // this.recordingStatus = 'Stopped.';\n _this5.player.pause();\n _this5.player.currentTime = 0;\n _this5.recordingStatus = _this5.previousStatus;\n _this5.recordingClassSelector = _this5.previousClassSelector;\n });\n }\n }).catch(function (error) {\n _this5.recordingStatus = \"Error playing recording.\";\n _this5.recordingClassSelector = \"error\";\n });\n }\n }, {\n key: \"trashRecording\",\n value: function trashRecording() {\n this.player = document.getElementById(\"advice-card-audio\");\n this.player.pause();\n this.player.currentTime = 0;\n this.recordingStatus = \"Ready to record.\";\n this.recordingClassSelector = \"ready\";\n this.audioBlob = false;\n this.file = null;\n this.uploaded = false;\n this.args.updateAttachment(null);\n this.args.updateRecordingStatus(false);\n }\n }, {\n key: \"echoCancellationToggleAudio\",\n value: function echoCancellationToggleAudio() {\n var echoCancellation = localStorage.getItem(\"bocceEchoCancellation\") === \"true\";\n if (echoCancellation) {\n localStorage.setItem(\"bocceEchoCancellation\", false);\n this.echoCancellationEnabled = false;\n } else {\n localStorage.setItem(\"bocceEchoCancellation\", true);\n this.echoCancellationEnabled = true;\n }\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"recording\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uploaded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"audioBlob\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"audioUrl\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"timeCode\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"file\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"recordingStatus\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"Ready to record.\";\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"previousStatus\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"recordingClassSelector\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"ready\";\n }\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"previousClassSelector\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"echoCancellationEnabled\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return localStorage.getItem(\"bocceEchoCancellation\") === \"true\";\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"uploadRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"uploadRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startUserMedia\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startUserMedia\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"playRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"playRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"trashRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"trashRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"echoCancellationToggleAudio\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"echoCancellationToggleAudio\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AudioRecorder);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/assignment-submission-box\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.session.readOnly}}\n \n
\n \n \n \n \n \n
\n \n
\n {{/unless}}\n */\n {\n \"id\": \"DpFElk3X\",\n \"block\": \"[[[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\"],[[30,1],[30,0,[\\\"store\\\"]],[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-reply-box assignment\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Assignment Submission Comment Text Editor\\\"],[15,0,[29,[\\\"reply-container reply-quick \\\",[52,[30,3],\\\"active-editor\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@controller\\\",\\\"@userInput\\\",\\\"@updateArchive\\\",\\\"@timedAssignmentEditable\\\",\\\"@isTimedAssignment\\\",\\\"@positioningBehavior\\\",\\\"@wrapper\\\"],[[30,2],[30,2,[\\\"bodyInput\\\"]],[30,2,[\\\"updateLocalDocs\\\"]],[30,2,[\\\"timedAssignmentEditable\\\"]],[30,2,[\\\"activeAssignment\\\",\\\"is_timed\\\"]],[52,[30,2,[\\\"activeAssignment\\\",\\\"is_timed\\\"]],\\\"fixed-bottom\\\",\\\"\\\"],\\\".modal-content\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\"],[[30,2,[\\\"attachmentsToContainer\\\"]],[30,4],[30,2,[\\\"encodingVideosToContainer\\\"]],[30,5]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__footer-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rte__attach\\\"],[24,\\\"aria-label\\\",\\\"Attach Files.\\\"],[4,[38,7],[\\\"click\\\",[30,6]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black rte__post\\\"],[16,\\\"disabled\\\",[52,[51,[30,2,[\\\"requirementsMet\\\"]]],true,null]],[24,\\\"aria-label\\\",\\\"Post Assignment.\\\"],[4,[38,7],[\\\"click\\\",[28,[37,9],[[30,7],[30,2,[\\\"activeAssignment\\\",\\\"section\\\",\\\"id\\\"]],[30,2,[\\\"activeAssignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@files\\\",\\\"@controller\\\",\\\"@inEditor\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@submitAssignment\\\"],[\\\"unless\\\",\\\"drag-and-drop\\\",\\\"div\\\",\\\"if\\\",\\\"rte\\\",\\\"attachments-container\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/assignment-submission-box.hbs\",\n \"isStrictMode\": false\n });\n var AssignmentSubmissionBoxComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function AssignmentSubmissionBoxComponent() {\n var _this;\n _classCallCheck(this, AssignmentSubmissionBoxComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, AssignmentSubmissionBoxComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor2, _this);\n return _this;\n }\n _inherits(AssignmentSubmissionBoxComponent, _Component);\n return _createClass(AssignmentSubmissionBoxComponent);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AssignmentSubmissionBoxComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/attachments-container\", [\"exports\", \"bocce/components/chips/chip\", \"bocce/components/attachments/attached-file\", \"@glimmer/component\", \"bocce/helpers/total\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _chip, _attachedFile, _component, _total, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _AttachmentsContainer;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/components/chips/chip\",0,\"bocce/components/attachments/attached-file\",0,\"@glimmer/component\",0,\"bocce/helpers/total\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var AttachmentsContainer = _exports.default = /*#__PURE__*/function (_Component) {\n function AttachmentsContainer() {\n _classCallCheck(this, AttachmentsContainer);\n return _callSuper(this, AttachmentsContainer, arguments);\n }\n _inherits(AttachmentsContainer, _Component);\n return _createClass(AttachmentsContainer, [{\n key: \"chipClasses\",\n get: function get() {\n return \"chip--sm chip--outline\";\n }\n }, {\n key: \"showAttachments\",\n get: function get() {\n var _this$args$encodingVi, _this$args$attachment;\n return ((_this$args$encodingVi = this.args.encodingVideos) === null || _this$args$encodingVi === void 0 ? void 0 : _this$args$encodingVi.length) > 0 || ((_this$args$attachment = this.args.attachmentFiles) === null || _this$args$attachment === void 0 ? void 0 : _this$args$attachment.some(function (a) {\n return !a.deleted;\n }));\n }\n }]);\n }(_component.default);\n _AttachmentsContainer = AttachmentsContainer;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.showAttachments}}\n
\n {{#each @attachmentFiles as |attachment index|}}\n {{#unless attachment.deleted}}\n \n \n \n {{/unless}}\n {{/each}}\n {{#each @encodingVideos as |video|}}\n \n \n \n {{/each}}\n
\n {{/if}}\n */\n {\n \"id\": \"1LVERA+Q\",\n \"block\": \"[[[41,[30,0,[\\\"showAttachments\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-list-container\\\"],[14,\\\"aria-label\\\",\\\"Post Attachments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[41,[51,[30,2,[\\\"deleted\\\"]]],[[[1,\\\" \\\"],[8,[32,0],null,[[\\\"@classes\\\"],[[30,0,[\\\"chipClasses\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[32,1],null,[[\\\"@attachment\\\",\\\"@name\\\",\\\"@index\\\",\\\"@uploading\\\",\\\"@uploadSingleFile\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\",\\\"@hideAudioPreview\\\",\\\"@uploaded\\\"],[[30,2],[30,2,[\\\"name\\\"]],[30,3],[30,2,[\\\"uploading\\\"]],[30,4],[30,5],[30,6],[30,7],[30,2,[\\\"uploaded\\\"]]]],null],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],null],[42,[28,[31,2],[[28,[31,2],[[30,8]],null]],null],null,[[[1,\\\" \\\"],[8,[32,0],null,[[\\\"@classes\\\"],[[30,0,[\\\"chipClasses\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[32,1],null,[[\\\"@attachment\\\",\\\"@uploading\\\",\\\"@uploadSingleFile\\\",\\\"@deleteAttachment\\\"],[[30,9],true,[30,4],[30,5]]],null],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[9]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@attachmentFiles\\\",\\\"attachment\\\",\\\"index\\\",\\\"@uploadSingleFile\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\",\\\"@hideAudioPreview\\\",\\\"@encodingVideos\\\",\\\"video\\\"],[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/attachments-container.js\",\n \"scope\": function scope() {\n return [_chip.default, _attachedFile.default];\n },\n \"isStrictMode\": true\n }), _AttachmentsContainer);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/attachments/attached-file\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"bocce/helpers/file-extension\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _fileExtension, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"bocce/helpers/file-extension\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.renaming}}\n {{this.fileExtension}}\n {{else}}\n {{this.fileName}}\n {{/if}}\n {{#if this.uploading}}\n
\n \n
\n Uploading {{this.fileName}}\n {{else}}\n {{#if this.renaming}}\n \n \n {{else if this.uploaded}}\n \n \n {{#if this.showDeleteConfirmation}}\n \n {{/if}}\n {{#unless (same this.attachmentType \"paperclip\")}}\n Download attachment\n {{/unless}}\n {{#if (and (same this.attachmentType \"microphone\") (not @hideAudioPreview))}}\n \n {{/if}}\n {{else}}\n
\n (UPLOAD FAILED)\n \n \n
\n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"wNiKjUAb\",\n \"block\": \"[[[10,\\\"i\\\"],[15,0,[29,[\\\"fas fa-\\\",[30,0,[\\\"attachmentType\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"renaming\\\"]],[[[1,\\\" \\\"],[8,[39,2],null,[[\\\"@value\\\"],[[30,0,[\\\"renameInput\\\"]]]],null],[1,[30,0,[\\\"fileExtension\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"attachment-name\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[30,0,[\\\"fileName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"uploading\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachment-progress\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Uploading \\\"],[1,[30,0,[\\\"fileName\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"renaming\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"confirmRename\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Accept rename\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"cancelRename\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Cancel rename\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"uploaded\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"toggleShowDeleteConfirmation\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Remove attachment\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"showRename\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Rename attachment\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showDeleteConfirmation\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@layout\\\",\\\"@buttons\\\"],[\\\"Delete Attachment?\\\",\\\"Are you sure you wish to delete this attachment?\\\",\\\"vertical\\\",[30,0,[\\\"deleteConfirmDialogButtons\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[28,[37,9],[[30,0,[\\\"attachmentType\\\"]],\\\"paperclip\\\"],null]],[[[1,\\\" \\\"],[10,3],[15,6,[29,[[30,0,[\\\"fileUrl\\\"]]]]],[14,\\\"download\\\",\\\"\\\"],[14,0,\\\"download-attachment\\\"],[12],[10,1],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Download attachment\\\"],[13],[10,\\\"i\\\"],[14,0,\\\"far fa-download\\\"],[12],[13],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,11],[[28,[37,9],[[30,0,[\\\"attachmentType\\\"]],\\\"microphone\\\"],null],[28,[37,12],[[30,1]],null]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"playPreviewAudio\\\"]],[30,0,[\\\"fileUrl\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-play-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Play audio\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachment-progress\\\"],[12],[1,\\\"\\\\n (UPLOAD FAILED)\\\\n \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"retryAttachment\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-redo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Retry upload\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"deleteAttachment\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Remove attachment\\\"],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]]],[]]]],[\\\"@hideAudioPreview\\\"],[\\\"i\\\",\\\"if\\\",\\\"input\\\",\\\"span\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"modals/confirm-dialog\\\",\\\"unless\\\",\\\"same\\\",\\\"a\\\",\\\"and\\\",\\\"not\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/attachments/attached-file.hbs\",\n \"isStrictMode\": false\n });\n var AttachmentsAttachedFileComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function AttachmentsAttachedFileComponent(owner, args) {\n var _this;\n _classCallCheck(this, AttachmentsAttachedFileComponent);\n _this = _callSuper(this, AttachmentsAttachedFileComponent, [owner, args]);\n _initializerDefineProperty(_this, \"renaming\", _descriptor, _this);\n _initializerDefineProperty(_this, \"renameInput\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"showDeleteConfirmation\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"accessibility\", _descriptor5, _this);\n _this.renaming = false;\n if (_this.fileName && _this.fileName.includes(\".\")) {\n _this.renameInput = _this.fileName.split(\".\")[0];\n } else if (_this.fileName && _this.fileName.length > 0) {\n _this.renameInput = _this.fileName;\n } else {\n _this.renameInput = \"\";\n }\n return _this;\n }\n _inherits(AttachmentsAttachedFileComponent, _Component);\n return _createClass(AttachmentsAttachedFileComponent, [{\n key: \"progress\",\n get: function get() {\n if (this.args.attachment.progress) {\n return this.args.attachment.progress;\n }\n return 0;\n }\n }, {\n key: \"fileName\",\n get: function get() {\n return this.args.name || this.args.attachment.name || this.args.attachment.file.name;\n }\n }, {\n key: \"fileExtension\",\n get: function get() {\n return (0, _fileExtension.fileExtension)([this.fileName]);\n }\n }, {\n key: \"uploading\",\n get: function get() {\n if (this.args.uploading) {\n return this.args.uploading;\n }\n return false;\n }\n }, {\n key: \"uploaded\",\n get: function get() {\n var _this$args$attachment;\n return this.args.uploaded || ((_this$args$attachment = this.args.attachment) === null || _this$args$attachment === void 0 ? void 0 : _this$args$attachment.uploaded);\n }\n }, {\n key: \"fileUrl\",\n get: function get() {\n return this.args.attachment.blobURL || URL.createObjectURL(this.args.attachment.file);\n }\n }, {\n key: \"attachmentType\",\n get: function get() {\n var _this$args$attachment2, _this$args$attachment3;\n if ((_this$args$attachment2 = this.args.attachment.file) !== null && _this$args$attachment2 !== void 0 && (_this$args$attachment2 = _this$args$attachment2.type) !== null && _this$args$attachment2 !== void 0 && _this$args$attachment2.includes(\"audio\")) {\n return \"microphone\";\n } else if ((_this$args$attachment3 = this.args.attachment.file) !== null && _this$args$attachment3 !== void 0 && (_this$args$attachment3 = _this$args$attachment3.type) !== null && _this$args$attachment3 !== void 0 && _this$args$attachment3.includes(\"video\")) {\n return \"video\";\n } else {\n return \"paperclip\";\n }\n }\n }, {\n key: \"deleteAttachment\",\n value: function deleteAttachment() {\n this.args.deleteAttachment(this.args.attachment.file);\n }\n }, {\n key: \"toggleShowDeleteConfirmation\",\n value: function toggleShowDeleteConfirmation() {\n this.showDeleteConfirmation = !this.showDeleteConfirmation;\n }\n }, {\n key: \"deleteConfirmDialogButtons\",\n get: function get() {\n return [{\n label: \"Delete Attachment\",\n onClick: this.deleteAttachment,\n style: \"primary\"\n }, {\n label: \"Cancel\",\n onClick: this.toggleShowDeleteConfirmation,\n style: \"neutral\"\n }];\n }\n }, {\n key: \"showRename\",\n value: function showRename() {\n this.renaming = true;\n this.accessibility.focus(\".attachment-info input\", false, false, 500);\n }\n }, {\n key: \"confirmRename\",\n value: function confirmRename() {\n if (!this.renameInput || this.renameInput.includes(\".\")) {\n alert('Invalid file name, must not contain \".\"');\n return;\n }\n var newName = this.fileExtension ? this.renameInput + this.fileExtension : this.renameInput;\n this.args.renameAttachment(this.args.attachment, newName, this.args.index);\n this.renaming = false;\n }\n }, {\n key: \"cancelRename\",\n value: function cancelRename() {\n this.renaming = false;\n }\n }, {\n key: \"retryAttachment\",\n value: function retryAttachment() {\n this.args.uploadSingleFile(this.args.attachment.file);\n }\n }, {\n key: \"playPreviewAudio\",\n value: function playPreviewAudio(url) {\n var audioPlayer = document.getElementById(\"main-audio-player\");\n var audioPlayerHTML = audioPlayer.querySelector(\"audio\");\n audioPlayer.classList.add(\"active\");\n audioPlayerHTML.src = url;\n audioPlayerHTML.play();\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"renaming\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"renameInput\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showDeleteConfirmation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"accessibility\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleShowDeleteConfirmation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowDeleteConfirmation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showRename\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showRename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"confirmRename\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmRename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelRename\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelRename\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"retryAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"retryAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"playPreviewAudio\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"playPreviewAudio\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AttachmentsAttachedFileComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/audio-player\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _service, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! Singleton audio player. The service routes clicks on .audio-asset / }}\n {{! .track-handle elements to this component via openWith(). }}\n \n \n \n

Your browser does not support HTML5 audio playback.

\n \n \n
\n \n
\n
\n \n shortcut SPACE\n shortcut SPACE\n \n
\n {{this.currentTimeFormatted}}\n |\n {{this.durationFormatted}}\n Time indicator available, use seek slider to navigate\n
\n
\n
\n \n \n
\n
\n \n \n {{#each this.speedOptions as |opt|}}\n {{opt.label}}\n {{/each}}\n \n shortcut M\n {{#unless this.isMobile}}\n
\n \n \n
\n {{/unless}}\n \n
\n
\n \n \n \n
\n \n */\n {\n \"id\": \"oFaPy0u0\",\n \"block\": \"[[[11,0],[16,0,[29,[\\\"audio-player \\\",[52,[30,0,[\\\"isOpen\\\"]],\\\"active\\\"]]]],[24,1,\\\"main-audio-player\\\"],[24,\\\"aria-label\\\",\\\"Audio Player\\\"],[24,\\\"role\\\",\\\"region\\\"],[24,\\\"data-at-shortcutkeys\\\",\\\"{\\\\n \\\\\\\"space\\\\\\\": \\\\\\\"Play/Pause audio\\\\\\\",\\\\n \\\\\\\"left\\\\\\\": \\\\\\\"Rewind 5 seconds\\\\\\\",\\\\n \\\\\\\"right\\\\\\\": \\\\\\\"Fast forward 5 seconds\\\\\\\",\\\\n \\\\\\\"up\\\\\\\": \\\\\\\"Increase volume\\\\\\\",\\\\n \\\\\\\"down\\\\\\\": \\\\\\\"Decrease volume\\\\\\\",\\\\n \\\\\\\"j\\\\\\\": \\\\\\\"Jump forward 10 seconds\\\\\\\",\\\\n \\\\\\\"i\\\\\\\": \\\\\\\"Jump back 10 seconds\\\\\\\",\\\\n \\\\\\\"period\\\\\\\": \\\\\\\"Increase playback speed\\\\\\\",\\\\n \\\\\\\"comma\\\\\\\": \\\\\\\"Decrease playback speed\\\\\\\",\\\\n \\\\\\\"m\\\\\\\": \\\\\\\"Mute/Unmute\\\\\\\"\\\\n }\\\"],[4,[38,2],[[30,0,[\\\"registerRoot\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[11,\\\"audio\\\"],[24,0,\\\"player public_audio_player\\\"],[24,1,\\\"publicPlayer\\\"],[4,[38,2],[[30,0,[\\\"registerAudio\\\"]]],null],[4,[38,4],[\\\"timeupdate\\\",[30,0,[\\\"onTimeUpdate\\\"]]],null],[4,[38,4],[\\\"loadedmetadata\\\",[30,0,[\\\"onLoadedMetadata\\\"]]],null],[4,[38,4],[\\\"ended\\\",[30,0,[\\\"onEnded\\\"]]],null],[4,[38,4],[\\\"playing\\\",[30,0,[\\\"onPlaying\\\"]]],null],[4,[38,4],[\\\"pause\\\",[30,0,[\\\"onPause\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"source\\\"],[14,\\\"src\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Your browser does not support HTML5 audio playback.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"topic-title\\\"],[15,\\\"title\\\",[29,[[30,0,[\\\"title\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"false\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"media-player-controls\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Audio Controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"playback-controls\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Playback Controls\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa fa-step-backward audio-prev-button \\\",[52,[51,[30,0,[\\\"hasPrev\\\"]]],\\\"inactive\\\"]]]],[24,\\\"aria-label\\\",\\\"Previous Track\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"hasPrev\\\"]]],\\\"disabled\\\"]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goPrev\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa fa-play play-button audio-play-button \\\",[52,[30,0,[\\\"isPlaying\\\"]],\\\"hidden\\\"]]]],[24,\\\"aria-label\\\",\\\"Play Audio\\\"],[16,\\\"aria-hidden\\\",[29,[[52,[30,0,[\\\"isPlaying\\\"]],\\\"true\\\",\\\"false\\\"]]]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"playOrPause\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut SPACE\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa fa-pause pause-button audio-pause-button \\\",[52,[51,[30,0,[\\\"isPlaying\\\"]]],\\\"hidden\\\"]]]],[24,\\\"aria-label\\\",\\\"Pause Audio\\\"],[16,\\\"aria-hidden\\\",[29,[[52,[30,0,[\\\"isPlaying\\\"]],\\\"false\\\",\\\"true\\\"]]]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"playOrPause\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut SPACE\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa fa-step-forward audio-next-button \\\",[52,[51,[30,0,[\\\"hasNext\\\"]]],\\\"inactive\\\"]]]],[24,\\\"aria-label\\\",\\\"Next Track\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"hasNext\\\"]]],\\\"disabled\\\"]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goNext\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"video-time-code\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"video-time-code-current\\\"],[12],[1,[30,0,[\\\"currentTimeFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"video-time-code-separator\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"|\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"video-time-code-total\\\"],[12],[1,[30,0,[\\\"durationFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Time indicator available, use seek slider to navigate\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"play-slider\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"audio-seek-slider\\\"],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Seek Track Position\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"audio-seek-slider\\\"],[24,0,\\\"play-slider-input\\\"],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"1000\\\"],[24,\\\"step\\\",\\\"1\\\"],[16,2,[30,0,[\\\"seekValue\\\"]]],[24,\\\"aria-label\\\",\\\"Seek Track Position\\\"],[24,\\\"aria-valuemin\\\",\\\"0\\\"],[24,\\\"aria-valuemax\\\",\\\"1000\\\"],[16,\\\"aria-valuenow\\\",[30,0,[\\\"seekValue\\\"]]],[16,\\\"aria-valuetext\\\",[29,[[30,0,[\\\"currentTimeFormatted\\\"]],\\\" of \\\",[30,0,[\\\"durationFormatted\\\"]]]]],[24,4,\\\"range\\\"],[4,[38,4],[\\\"input\\\",[30,0,[\\\"seek\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"audio-controls\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Audio Settings\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"audio-playback-speed\\\"],[14,0,\\\"audio-playback-speed-label\\\"],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Playback Speed\\\"],[13],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,1,\\\"audio-playback-speed\\\"],[24,\\\"aria-label\\\",\\\"Audio Playback Speed\\\"],[24,0,\\\"audio-playback-speed\\\"],[4,[38,4],[\\\"change\\\",[30,0,[\\\"changePlaybackSpeed\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"speedOptions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[30,1,[\\\"speed\\\"]]],[15,\\\"selected\\\",[52,[28,[37,17],[[30,1,[\\\"speed\\\"]],[30,0,[\\\"playbackRate\\\"]]],null],\\\"selected\\\"]],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"volume-button-mute fa-regular \\\",[52,[30,0,[\\\"muted\\\"]],\\\"fa-volume-off\\\",\\\"fa-volume\\\"]]]],[24,\\\"aria-label\\\",\\\"Toggle Mute\\\"],[16,\\\"aria-pressed\\\",[29,[[30,0,[\\\"muted\\\"]]]]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleMute\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut M\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isMobile\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"volume-slider\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"audio-volume-slider\\\"],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Volume\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"audio-volume-slider\\\"],[24,0,\\\"volume-slider-input\\\"],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"100\\\"],[24,\\\"step\\\",\\\"1\\\"],[16,2,[30,0,[\\\"volume\\\"]]],[24,\\\"aria-label\\\",\\\"Adjust Volume\\\"],[24,\\\"aria-valuemin\\\",\\\"0\\\"],[24,\\\"aria-valuemax\\\",\\\"100\\\"],[16,\\\"aria-valuenow\\\",[30,0,[\\\"volume\\\"]]],[24,4,\\\"range\\\"],[4,[38,4],[\\\"input\\\",[30,0,[\\\"changeVolume\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa-regular fa-repeat audio-loop-toggle \\\",[52,[30,0,[\\\"looping\\\"]],\\\"active\\\"]]]],[24,\\\"aria-label\\\",\\\"Toggle Loop\\\"],[16,\\\"aria-pressed\\\",[29,[[30,0,[\\\"looping\\\"]]]]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleLoop\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-times-circle ap-close audio-close-button\\\"],[24,\\\"aria-label\\\",\\\"Close Audio Player\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"closeAudio\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,0,\\\"sr-only audio-status-announcer\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"opt\\\"],[\\\"div\\\",\\\"if\\\",\\\"did-insert\\\",\\\"audio\\\",\\\"on\\\",\\\"source\\\",\\\"p\\\",\\\"button\\\",\\\"unless\\\",\\\"span\\\",\\\"label\\\",\\\"input\\\",\\\"i\\\",\\\"select\\\",\\\"each\\\",\\\"-track-array\\\",\\\"option\\\",\\\"same\\\"]]\",\n \"moduleName\": \"bocce/components/audio-player.hbs\",\n \"isStrictMode\": false\n });\n var AudioPlayerComponent = _exports.default = (_dec = (0, _service.inject)(\"av-players\"), _class = /*#__PURE__*/function (_Component) {\n function AudioPlayerComponent() {\n var _this;\n _classCallCheck(this, AudioPlayerComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, AudioPlayerComponent, [].concat(args));\n _initializerDefineProperty(_this, \"avPlayers\", _descriptor, _this);\n // Tracked state\n _initializerDefineProperty(_this, \"isOpen\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"isPlaying\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"title\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"source\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"prevId\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"nextId\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"currentTime\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"duration\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"seekValue\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"volume\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"muted\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"looping\", _descriptor11, _this);\n _initializerDefineProperty(_this, \"playbackRate\", _descriptor12, _this);\n // Internal refs\n _defineProperty(_this, \"rootEl\", null);\n _defineProperty(_this, \"audioEl\", null);\n _defineProperty(_this, \"trackingId\", \"\");\n _defineProperty(_this, \"triggerEl\", null);\n _defineProperty(_this, \"speedOptions\", [{\n speed: 0.5,\n label: \"0.5X\"\n }, {\n speed: 0.75,\n label: \"0.75X\"\n }, {\n speed: 1,\n label: \"1X\"\n }, {\n speed: 1.25,\n label: \"1.25X\"\n }, {\n speed: 1.5,\n label: \"1.5X\"\n }, {\n speed: 1.75,\n label: \"1.75X\"\n }, {\n speed: 2,\n label: \"2X\"\n }]);\n return _this;\n }\n _inherits(AudioPlayerComponent, _Component);\n return _createClass(AudioPlayerComponent, [{\n key: \"isMobile\",\n get: function get() {\n return _jquery.default.isMobile;\n }\n }, {\n key: \"registerRoot\",\n value:\n // Lifecycle\n\n function registerRoot(element) {\n this.rootEl = element;\n this.avPlayers.registerAudioPlayer(this);\n }\n }, {\n key: \"registerAudio\",\n value: function registerAudio(element) {\n this.audioEl = element;\n if (this.isMobile) {\n // On mobile the volume slider is hidden; the user controls volume with\n // their phone's volume rocker, so keep the in-app volume at 100%.\n this.audioEl.volume = 1;\n this.volume = 100;\n }\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _superPropGet(AudioPlayerComponent, \"willDestroy\", this, 3)([]);\n this.avPlayers.unregisterAudioPlayer(this);\n }\n\n // Public API (called by service)\n }, {\n key: \"openWith\",\n value: function openWith(_ref) {\n var source = _ref.source,\n title = _ref.title,\n prev = _ref.prev,\n next = _ref.next,\n trackingId = _ref.trackingId,\n trigger = _ref.trigger;\n if (!this.audioEl) {\n return;\n }\n var prevRate = this.audioEl.playbackRate;\n this.source = source || \"\";\n this.title = title || \"\";\n this.prevId = prev || \"\";\n this.nextId = next || \"\";\n this.trackingId = trackingId || \"\";\n this.triggerEl = trigger || null;\n this.audioEl.src = this.source;\n try {\n this.audioEl.load();\n } catch (_unused) {\n // ignore\n }\n this.audioEl.playbackRate = prevRate || this.playbackRate;\n this.isOpen = true;\n this._play();\n }\n }, {\n key: \"close\",\n value: function close() {\n if (!this.audioEl) {\n this.isOpen = false;\n return;\n }\n this.audioEl.pause();\n if (this.trackingId && this.triggerEl) {\n var bar = this.triggerEl.closest(\"#\" + this.trackingId);\n if (bar) {\n bar.style.backgroundImage = \"\";\n }\n }\n this.isOpen = false;\n this.isPlaying = false;\n this.avPlayers.videoUnfocus = true;\n }\n\n // Audio events\n }, {\n key: \"onPlaying\",\n value: function onPlaying() {\n this.isPlaying = true;\n }\n }, {\n key: \"onPause\",\n value: function onPause() {\n this.isPlaying = false;\n }\n }, {\n key: \"onTimeUpdate\",\n value: function onTimeUpdate() {\n var audio = this.audioEl;\n if (!audio) {\n return;\n }\n this.currentTime = audio.currentTime || 0;\n if (audio.duration) {\n var pct = audio.currentTime / audio.duration * 100;\n this.seekValue = pct * 10;\n\n // Update trigger's progress bar background.\n if (this.trackingId && this.triggerEl) {\n var bar = this.triggerEl.closest(\"#\" + this.trackingId);\n if (bar) {\n bar.style.backgroundImage = \"linear-gradient(to right, var(--gray-200) \".concat(pct, \"%, var(--white) \").concat(pct, \"%)\");\n }\n }\n }\n }\n }, {\n key: \"onLoadedMetadata\",\n value: function onLoadedMetadata() {\n if (this.audioEl) {\n this.duration = this.audioEl.duration || 0;\n }\n }\n }, {\n key: \"onEnded\",\n value: function onEnded() {\n var _this$audioEl;\n if (this.nextId) {\n var nextEl = document.getElementById(this.nextId);\n if (nextEl) {\n nextEl.click();\n return;\n }\n }\n if ((_this$audioEl = this.audioEl) !== null && _this$audioEl !== void 0 && _this$audioEl.loop) {\n this.audioEl.currentTime = 0;\n this._play();\n } else {\n this.isPlaying = false;\n }\n }\n\n // User actions\n }, {\n key: \"_play\",\n value: function _play() {\n var _this$audioEl2;\n var p = (_this$audioEl2 = this.audioEl) === null || _this$audioEl2 === void 0 ? void 0 : _this$audioEl2.play();\n if (p !== null && p !== void 0 && p.catch) {\n p.catch(function () {});\n }\n }\n }, {\n key: \"playOrPause\",\n value: function playOrPause() {\n if (!this.audioEl) {\n return;\n }\n if (this.audioEl.paused) {\n this._play();\n } else {\n this.audioEl.pause();\n }\n }\n }, {\n key: \"togglePlay\",\n value: function togglePlay() {\n this.playOrPause();\n }\n }, {\n key: \"seek\",\n value: function seek(event) {\n var audio = this.audioEl;\n if (!audio || !audio.duration) {\n return;\n }\n audio.currentTime = parseInt(event.target.value, 10) / 1000 * audio.duration;\n }\n }, {\n key: \"seekDelta\",\n value: function seekDelta(seconds) {\n if (this.audioEl) {\n this.audioEl.currentTime = this.audioEl.currentTime + seconds;\n }\n }\n }, {\n key: \"changeVolume\",\n value: function changeVolume(event) {\n if (!this.audioEl) {\n return;\n }\n var vol = parseInt(event.target.value, 10);\n this.audioEl.volume = vol / 100;\n this.audioEl.muted = vol === 0;\n this.volume = vol;\n this.muted = vol === 0;\n }\n }, {\n key: \"changeVolumeDelta\",\n value: function changeVolumeDelta(delta) {\n if (!this.audioEl) {\n return;\n }\n var next = Math.max(0, Math.min(1, this.audioEl.volume + delta));\n this.audioEl.volume = next;\n this.volume = next * 100;\n this.muted = next === 0;\n this.audioEl.muted = this.muted;\n }\n }, {\n key: \"toggleMute\",\n value: function toggleMute() {\n if (!this.audioEl) {\n return;\n }\n if (this.audioEl.muted) {\n this.audioEl.muted = false;\n this.muted = false;\n this.volume = this.audioEl.volume * 100;\n } else {\n this.audioEl.muted = true;\n this.muted = true;\n }\n }\n }, {\n key: \"toggleLoop\",\n value: function toggleLoop() {\n if (!this.audioEl) {\n return;\n }\n this.audioEl.loop = !this.audioEl.loop;\n this.looping = this.audioEl.loop;\n }\n }, {\n key: \"changePlaybackSpeed\",\n value: function changePlaybackSpeed(event) {\n var speed = parseFloat(event.target.value);\n if (this.audioEl) {\n this.audioEl.playbackRate = speed;\n }\n this.playbackRate = speed;\n }\n }, {\n key: \"changeSpeedDelta\",\n value: function changeSpeedDelta(direction) {\n var _this2 = this;\n var idx = this.speedOptions.findIndex(function (o) {\n return o.speed === _this2.playbackRate;\n });\n if (idx === -1) {\n idx = this.speedOptions.findIndex(function (o) {\n return o.speed === 1;\n });\n }\n var next = idx + direction;\n if (next < 0 || next >= this.speedOptions.length) {\n return;\n }\n var speed = this.speedOptions[next].speed;\n if (this.audioEl) {\n this.audioEl.playbackRate = speed;\n }\n this.playbackRate = speed;\n }\n }, {\n key: \"goPrev\",\n value: function goPrev() {\n if (!this.prevId) {\n return;\n }\n var el = document.getElementById(this.prevId);\n if (el) {\n el.click();\n }\n }\n }, {\n key: \"goNext\",\n value: function goNext() {\n if (!this.nextId) {\n return;\n }\n var el = document.getElementById(this.nextId);\n if (el) {\n el.click();\n }\n }\n }, {\n key: \"closeAudio\",\n value: function closeAudio() {\n this.close();\n }\n\n // Keyboard shortcuts\n }, {\n key: \"handleKeyDown\",\n value: function handleKeyDown(e) {\n switch (e.keyCode) {\n case 32:\n // space\n e.preventDefault();\n this.playOrPause();\n break;\n case 37:\n // left\n e.preventDefault();\n this.seekDelta(-5);\n break;\n case 39:\n // right\n e.preventDefault();\n this.seekDelta(5);\n break;\n case 38:\n // up\n e.preventDefault();\n this.changeVolumeDelta(0.1);\n break;\n case 40:\n // down\n e.preventDefault();\n this.changeVolumeDelta(-0.1);\n break;\n case 77:\n // m\n e.preventDefault();\n this.toggleMute();\n break;\n case 74:\n // j\n e.preventDefault();\n this.seekDelta(10);\n break;\n case 73:\n // i\n e.preventDefault();\n this.seekDelta(-10);\n break;\n case 190:\n // .\n e.preventDefault();\n this.changeSpeedDelta(1);\n break;\n case 188:\n // ,\n e.preventDefault();\n this.changeSpeedDelta(-1);\n break;\n // no default\n }\n }\n\n // Template helpers\n }, {\n key: \"currentTimeFormatted\",\n get: function get() {\n return this._formatTime(this.currentTime);\n }\n }, {\n key: \"durationFormatted\",\n get: function get() {\n return this._formatTime(this.duration);\n }\n }, {\n key: \"hasPrev\",\n get: function get() {\n return !!this.prevId;\n }\n }, {\n key: \"hasNext\",\n get: function get() {\n return !!this.nextId;\n }\n }, {\n key: \"_formatTime\",\n value: function _formatTime(t) {\n if (!t || isNaN(t)) {\n return \"0:00\";\n }\n var m = Math.floor(t / 60);\n var s = Math.floor(t % 60);\n return \"\".concat(m, \":\").concat(s < 10 ? \"0\" : \"\").concat(s);\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"avPlayers\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isPlaying\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"source\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"prevId\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"nextId\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"currentTime\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"duration\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"seekValue\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"volume\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 100;\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"muted\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"looping\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"playbackRate\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 1;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"registerRoot\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerRoot\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerAudio\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerAudio\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPlaying\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPlaying\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onPause\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onPause\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onTimeUpdate\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onTimeUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onLoadedMetadata\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onLoadedMetadata\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onEnded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onEnded\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"playOrPause\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"playOrPause\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"seek\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"seek\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeVolume\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeVolume\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleMute\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleMute\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleLoop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleLoop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changePlaybackSpeed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changePlaybackSpeed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goPrev\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goPrev\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goNext\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goNext\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeAudio\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeAudio\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AudioPlayerComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/av-player\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
\n {{#if @isVideo}}\n \n \n {{else}}\n \n \n {{/if}}\n
\n \n
\n
\n \n {{#if this.playing}}\n \n {{else}}\n \n {{/if}}\n \n {{this.currentTimeFormatted}}\n /\n {{this.durationFormatted}}\n
\n \n {{#if this.muted}}\n \n {{else}}\n \n {{/if}}\n \n
\n
\n
\n */\n {\n \"id\": \"cnD2a0Fz\",\n \"block\": \"[[[10,0],[14,0,\\\"player-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[11,\\\"video\\\"],[16,\\\"src\\\",[29,[[30,2]]]],[24,0,\\\"av-player\\\"],[16,\\\"muted\\\",[29,[[52,[30,0,[\\\"muted\\\"]],\\\"muted\\\"]]]],[4,[38,3],[[30,0,[\\\"setupPlayer\\\"]]],null],[4,[38,4],[\\\"timeupdate\\\",[30,0,[\\\"updateTime\\\"]]],null],[4,[38,4],[\\\"loadedmetadata\\\",[30,0,[\\\"updateDuration\\\"]]],null],[4,[38,4],[\\\"ended\\\",[30,0,[\\\"togglePlaying\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"audio\\\"],[16,\\\"src\\\",[29,[[30,2]]]],[24,0,\\\"av-player\\\"],[16,\\\"muted\\\",[29,[[52,[30,0,[\\\"muted\\\"]],\\\"muted\\\"]]]],[4,[38,4],[\\\"loadeddata\\\",[30,0,[\\\"stopPlaying\\\"]]],null],[4,[38,3],[[30,0,[\\\"setupPlayer\\\"]]],null],[4,[38,4],[\\\"timeupdate\\\",[30,0,[\\\"updateTime\\\"]]],null],[4,[38,4],[\\\"loadedmetadata\\\",[30,0,[\\\"updateDuration\\\"]]],null],[4,[38,4],[\\\"ended\\\",[30,0,[\\\"togglePlaying\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"controls-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,\\\"tabindex\\\",\\\"0\\\"],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"1000\\\"],[16,2,[29,[[30,0,[\\\"thumbPosition\\\"]]]]],[24,\\\"aria-label\\\",\\\"AV Player Seek\\\"],[24,0,\\\"player-progress-bar\\\"],[16,5,[29,[\\\"background-image: \\\",[30,0,[\\\"linearGradient\\\"]]]]],[24,4,\\\"range\\\"],[4,[38,4],[\\\"input\\\",[30,0,[\\\"changeThumbPosition\\\"]]],null],[4,[38,4],[\\\"change\\\",[30,0,[\\\"seek\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"player-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"play-time\\\"],[12],[1,\\\"\\\\n \\\"],[11,1],[4,[38,4],[\\\"click\\\",[30,0,[\\\"togglePlaying\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"playing\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"fas fa-pause\\\"],[14,\\\"aria-label\\\",\\\"Player - Pause\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,0,\\\"fas fa-play\\\"],[14,\\\"aria-label\\\",\\\"Player - Play\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"currentTimeFormatted\\\"]]],[1,\\\"\\\\n /\\\\n \\\"],[1,[30,0,[\\\"durationFormatted\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,1],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleMuted\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"muted\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-volume-off\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-volume\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@isVideo\\\",\\\"@source\\\"],[\\\"div\\\",\\\"if\\\",\\\"video\\\",\\\"did-insert\\\",\\\"on\\\",\\\"audio\\\",\\\"input\\\",\\\"span\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/av-player.hbs\",\n \"isStrictMode\": false\n });\n var AvPlayerComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function AvPlayerComponent(owner, args) {\n var _this;\n _classCallCheck(this, AvPlayerComponent);\n _this = _callSuper(this, AvPlayerComponent, [owner, args]);\n _initializerDefineProperty(_this, \"currentTime\", _descriptor, _this);\n _initializerDefineProperty(_this, \"duration\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"playing\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"thumbPosition\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"muted\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"playerElement\", _descriptor6, _this);\n _this.currentTime = 0;\n _this.duration = 0;\n _this.playing = false;\n _this.thumbPosition = 0;\n _this.muted = false;\n return _this;\n }\n _inherits(AvPlayerComponent, _Component);\n return _createClass(AvPlayerComponent, [{\n key: \"currentTimeFormatted\",\n get: function get() {\n return this.formatTime(this.currentTime);\n }\n }, {\n key: \"durationFormatted\",\n get: function get() {\n return this.formatTime(this.duration);\n }\n }, {\n key: \"linearGradient\",\n get: function get() {\n var thumbPercent = this.thumbPosition / 10;\n // a gap appears between the slider thumb and background that is biggest at 0% and 100% and not visible at 50%,\n // so adjust the background to fill this gap between 0% and 2% depending on the thumb's proximity to the middle\n var percentDifference = -1 / 25 * thumbPercent + 2;\n var finalPercent = thumbPercent + percentDifference;\n return \"linear-gradient(to right, var(--color-base-05) 0%, var(--color-base-05) \".concat(finalPercent, \"%, var(--color-base-50) \").concat(finalPercent, \"%, var(--color-base-50) 100%\");\n }\n\n /**\n * Formats the given time in seconds to a string in a mm:ss format\n * @param timeInSeconds the time to be formatted in seconds\n * @returns {string}\n */\n }, {\n key: \"formatTime\",\n value: function formatTime(timeInSeconds) {\n return \"\".concat(Math.floor(timeInSeconds / 60), \":\").concat(Math.floor(timeInSeconds % 60).toLocaleString(\"en-US\", {\n minimumIntegerDigits: 2,\n useGrouping: false\n }));\n }\n }, {\n key: \"setupPlayer\",\n value: function setupPlayer(element) {\n this.playerElement = element;\n }\n }, {\n key: \"stopPlaying\",\n value: function stopPlaying() {\n this.playing = false;\n this.playerElement.pause();\n }\n }, {\n key: \"togglePlaying\",\n value: function togglePlaying() {\n this.playing = !this.playing;\n if (!this.playing) {\n this.playerElement.pause();\n } else {\n this.playerElement.play();\n }\n }\n }, {\n key: \"toggleMuted\",\n value: function toggleMuted() {\n this.muted = !this.muted;\n }\n }, {\n key: \"seek\",\n value: function seek(event, time) {\n if (time) {\n this.currentTime = this.currentTime + time;\n } else {\n this.currentTime = event.target.value * this.duration / 1000;\n }\n this.playerElement.currentTime = this.currentTime;\n }\n }, {\n key: \"updateTime\",\n value: function updateTime(event) {\n this.currentTime = event.target.currentTime;\n if (this.duration == 0) {\n return;\n }\n this.thumbPosition = this.currentTime / this.duration * 1000;\n }\n }, {\n key: \"updateDuration\",\n value: function updateDuration(event) {\n this.duration = event.target.duration;\n }\n }, {\n key: \"changeThumbPosition\",\n value: function changeThumbPosition(event) {\n this.thumbPosition = event.target.value;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"currentTime\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"duration\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"playing\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"thumbPosition\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"muted\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"playerElement\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"setupPlayer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setupPlayer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopPlaying\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopPlaying\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePlaying\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePlaying\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleMuted\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleMuted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"seek\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"seek\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateTime\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateDuration\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateDuration\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeThumbPosition\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeThumbPosition\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AvPlayerComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/bookmarks/bookmark-note\", [\"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 var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{@bookmark.notes}}\n {{#if @bookmark.noteClipped}}\n {{#if @bookmark.notesMoreShowing}}\n Show Less\n {{else}}\n Show All\n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"KS5Rn7gw\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"bookmark-item-note\\\",[52,[30,1,[\\\"notesMoreShowing\\\"]],\\\" more-showing\\\"],\\\" \\\"]]],[12],[1,[30,1,[\\\"notes\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"noteClipped\\\"]],[[[41,[30,1,[\\\"notesMoreShowing\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link button--sm\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"setNotesMoreShowing\\\"]],[30,1],false],null]],null],[12],[1,\\\"Show Less\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link button--sm\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"setNotesMoreShowing\\\"]],[30,1],true],null]],null],[12],[1,\\\"Show All\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"@bookmark\\\"],[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/bookmarks/bookmark-note.hbs\",\n \"isStrictMode\": false\n });\n var BookmarksHeaderComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function BookmarksHeaderComponent() {\n _classCallCheck(this, BookmarksHeaderComponent);\n return _callSuper(this, BookmarksHeaderComponent, arguments);\n }\n _inherits(BookmarksHeaderComponent, _Component);\n return _createClass(BookmarksHeaderComponent, [{\n key: \"didRender\",\n value:\n //This executes when a bookmark note is first rendered. It also executes when\n //a bookmark note is modified via the UI, which ensures that the note's\n //'Show All' button is appropriately shown/hidden depending on\n //the length of the modified note.\n function didRender() {\n //This logic prevents an infinite loop caused by the below setting of\n //'noteClipped'.\n if (!this.bookmark.noteClipped) {\n var elem = this.element.querySelector(\".bookmark-item-note\");\n if (elem && elem.clientHeight < elem.scrollHeight) {\n (0, _object.set)(this.bookmark, \"noteClipped\", true);\n }\n }\n }\n }, {\n key: \"setNotesMoreShowing\",\n value: function setNotesMoreShowing(bookmark, moreShowing) {\n (0, _object.set)(bookmark, \"notesMoreShowing\", moreShowing);\n }\n }]);\n }(_component.default), _applyDecoratedDescriptor(_class.prototype, \"setNotesMoreShowing\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setNotesMoreShowing\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BookmarksHeaderComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/bookmarks/bookmarks-header\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
\n
\n
Bookmarks
\n
\n {{#if @bookmarksService.hasMoreBookmarks}}\n Load All\n {{/if}}\n \n
\n
\n
\n {{#if (morethan @bookmarksService.courses.length 1)}}\n \n {{#each @bookmarksService.courses as |course index|}}\n {{course.name}}\n {{/each}}\n selected course:\n {{@bookmarksService.selectedCourse}}\n \n {{else}}\n {{array-item (array-item @bookmarksService.courses 0) \"name\"}}\n {{/if}}\n \n {{#if (morethan @bookmarksService.numBookmarksLessons 1)}}\n
\n Collapse All\n Expand All\n
\n {{/if}}\n
\n
\n */\n {\n \"id\": \"5gOpShZH\",\n \"block\": \"[[[10,0],[14,0,\\\"bookmarks-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks-header-title\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks-modal-title modal-title\\\"],[12],[1,\\\"Bookmarks\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks-header-button-group\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasMoreBookmarks\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"bookmarks-load-all button\\\"],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,1,[\\\"getAllBookmarks\\\"]]],null],[12],[1,\\\"Load All\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"bookmarks-close-button close-button fas fa-times\\\"],[24,\\\"aria-label\\\",\\\"Close bookmarks\\\"],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,1,[\\\"setBookmarkManagerShown\\\"]],false],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks-actions\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"courses\\\",\\\"length\\\"]],1],null],[[[1,\\\" \\\"],[11,\\\"select\\\"],[24,0,\\\"bookmarks-course-select\\\"],[4,[38,3],[\\\"change\\\",[30,1,[\\\"changeBookmarksCourse\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,1,[\\\"courses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[15,\\\"selected\\\",[28,[37,10],[[30,2,[\\\"id\\\"]],[30,1,[\\\"selectedCourse\\\"]]],null]],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\" selected course:\\\\n \\\"],[1,[30,1,[\\\"selectedCourse\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[1,[28,[35,11],[[28,[37,11],[[30,1,[\\\"courses\\\"]],0],null],\\\"name\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"numBookmarksLessons\\\"]],1],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bookmarks-collapse-expand\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"button--black \\\",[52,[51,[30,1,[\\\"bookmarksExpanded\\\"]]],\\\"hidden\\\"],\\\" button--sm\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,1,[\\\"collapseAllBookmarks\\\"]]],null],[12],[1,\\\"Collapse All\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"button--black \\\",[52,[30,1,[\\\"bookmarksExpanded\\\"]],\\\"hidden\\\"],\\\" button--sm\\\"]]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[30,1,[\\\"expandAllBookmarks\\\"]]],null],[12],[1,\\\"Expand All\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@bookmarksService\\\",\\\"course\\\",\\\"index\\\"],[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"morethan\\\",\\\"select\\\",\\\"each\\\",\\\"-track-array\\\",\\\"option\\\",\\\"same\\\",\\\"array-item\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"bocce/components/bookmarks/bookmarks-header.hbs\",\n \"isStrictMode\": false\n });\n var BookmarksHeaderComponent = _exports.default = /*#__PURE__*/function (_Component) {\n function BookmarksHeaderComponent() {\n _classCallCheck(this, BookmarksHeaderComponent);\n return _callSuper(this, BookmarksHeaderComponent, arguments);\n }\n _inherits(BookmarksHeaderComponent, _Component);\n return _createClass(BookmarksHeaderComponent, [{\n key: \"showActions\",\n get: function get() {\n return this.bookmarksService.numBookmarksLessons || this.bookmarksService.courses.length > 1 || this.bookmarksService.hasMoreBookmarks;\n }\n }]);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, BookmarksHeaderComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/buttons/multi-button\", [\"exports\", \"@glimmer/component\", \"@ember/modifier\", \"@glimmer/tracking\", \"@ember/object\", \"bocce/modifiers/click-outside\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _modifier, _tracking, _object, _clickOutside, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _ActivityDue;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/modifier\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"bocce/modifiers/click-outside\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ActivityDue = _exports.default = (_class = (_ActivityDue = /*#__PURE__*/function (_Component) {\n function ActivityDue() {\n var _this;\n _classCallCheck(this, ActivityDue);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ActivityDue, [].concat(args));\n _initializerDefineProperty(_this, \"multiButtonOpen\", _descriptor, _this);\n return _this;\n }\n _inherits(ActivityDue, _Component);\n return _createClass(ActivityDue, [{\n key: \"toggleMultiButton\",\n value: function toggleMultiButton() {\n this.multiButtonOpen = !this.multiButtonOpen;\n }\n }, {\n key: \"closeMultiButton\",\n value: function closeMultiButton() {\n this.multiButtonOpen = false;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
\n {{#if this.multiButtonOpen}}\n
\n {{yield to=\"items\"}}\n
\n {{/if}}\n \n {{yield this.multiButtonOpen to=\"buttonContent\"}}\n \n
\n */\n {\n \"id\": \"7SY6JA/z\",\n \"block\": \"[[[11,0],[24,0,\\\"multi-button\\\"],[4,[32,0],[[30,0,[\\\"closeMultiButton\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"multiButtonOpen\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"multi-button__popup\\\"],[12],[1,\\\"\\\\n \\\"],[18,1,null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"multi-button__pill-button button--primary\\\"],[4,[32,1],[\\\"click\\\",[30,0,[\\\"toggleMultiButton\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[18,2,[[30,0,[\\\"multiButtonOpen\\\"]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&items\\\",\\\"&buttonContent\\\"],[\\\"if\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/buttons/multi-button.js\",\n \"scope\": function scope() {\n return [_clickOutside.default, _modifier.on];\n },\n \"isStrictMode\": true\n }), _ActivityDue), _ActivityDue), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"multiButtonOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleMultiButton\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleMultiButton\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMultiButton\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMultiButton\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/character-limited-textarea\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
Character Count: {{this.charCount}}/{{this.charLimit}}
\n */\n {\n \"id\": \"bMr4fjVK\",\n \"block\": \"[[[11,\\\"textarea\\\"],[24,0,\\\"char-limied-textarea rte-editor-input\\\"],[16,2,[30,0,[\\\"text\\\"]]],[16,\\\"maxlength\\\",[30,0,[\\\"charLimit\\\"]]],[4,[38,1],[\\\"input\\\",[30,0,[\\\"updateText\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"textarea-minimal-charcount\\\"],[12],[1,\\\"Character Count: \\\"],[1,[30,0,[\\\"charCount\\\"]]],[1,\\\"/\\\"],[1,[30,0,[\\\"charLimit\\\"]]],[13]],[],[\\\"textarea\\\",\\\"on\\\",\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/character-limited-textarea.hbs\",\n \"isStrictMode\": false\n });\n var CharacterLimitedTextarea = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function CharacterLimitedTextarea() {\n var _this;\n _classCallCheck(this, CharacterLimitedTextarea);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, CharacterLimitedTextarea, [].concat(args));\n _initializerDefineProperty(_this, \"text\", _descriptor, _this);\n return _this;\n }\n _inherits(CharacterLimitedTextarea, _Component);\n return _createClass(CharacterLimitedTextarea, [{\n key: \"charLimit\",\n get: function get() {\n return this.args.charLimit || 500;\n }\n }, {\n key: \"updateOverCharLimit\",\n value: function updateOverCharLimit() {\n if (this.charCount > this.charLimit) {\n this.args.updateOverCharLimit(true);\n } else {\n this.args.updateOverCharLimit(false);\n }\n }\n }, {\n key: \"updateText\",\n value: function updateText(event) {\n var inputWithoutNewlines = event.target.value.replace(/[\\r\\n]+/gm, \"\");\n this.text = inputWithoutNewlines.substring(0, this.charLimit);\n if (this.args.updateBodyText) {\n this.args.updateBodyText(this.text);\n }\n }\n }, {\n key: \"charCount\",\n get: function get() {\n return this.text.length;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"text\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"updateOverCharLimit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateOverCharLimit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateText\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateText\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CharacterLimitedTextarea);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/chips/chip-filter\", [\"exports\", \"@ember/object\", \"@glimmer/tracking\", \"bocce/components/chips/chip\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _object, _tracking, _chip, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _ChipFilter;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"bocce/components/chips/chip\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ChipFilter = _exports.default = (_class = (_ChipFilter = /*#__PURE__*/function (_Chip) {\n function ChipFilter() {\n var _this;\n _classCallCheck(this, ChipFilter);\n _this = _callSuper(this, ChipFilter, arguments);\n _initializerDefineProperty(_this, \"active\", _descriptor, _this);\n _this.boundSetup = _this.setup.bind(_this);\n return _this;\n }\n _inherits(ChipFilter, _Chip);\n return _createClass(ChipFilter, [{\n key: \"toggleActive\",\n value: function toggleActive() {\n this.active = !this.active;\n this.args.toggleFilter();\n }\n }, {\n key: \"setup\",\n value: function setup(chipElement) {\n this.chipElement = chipElement;\n chipElement.addEventListener(\"click\", this.toggleActive);\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n this.chipElement.removeEventListener(\"click\", this.chipElement);\n }\n }, {\n key: \"classes\",\n get: function get() {\n return \"chip--filter chip--sm \".concat(this.active ? \"chip--active\" : \"\");\n }\n }]);\n }(_chip.default), (0, _component.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.active}}{{/if}}\n {{yield}}\n \n */\n {\n \"id\": \"nPJvm+Dc\",\n \"block\": \"[[[8,[32,0],null,[[\\\"@setup\\\",\\\"@classes\\\"],[[30,0,[\\\"boundSetup\\\"]],[30,0,[\\\"classes\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[41,[30,0,[\\\"active\\\"]],[[[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[12],[13]],[]],null],[1,\\\"\\\\n \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"&default\\\"],[\\\"if\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/chips/chip-filter.js\",\n \"scope\": function scope() {\n return [_chip.default];\n },\n \"isStrictMode\": true\n }), _ChipFilter), _ChipFilter), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"active\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleActive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleActive\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/chips/chip-submission/chip-submission-details\", [\"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 var _ChipSubmissionDetails;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var ChipSubmissionDetails = _exports.default = /*#__PURE__*/function (_Component) {\n function ChipSubmissionDetails() {\n _classCallCheck(this, ChipSubmissionDetails);\n return _callSuper(this, ChipSubmissionDetails, arguments);\n }\n _inherits(ChipSubmissionDetails, _Component);\n return _createClass(ChipSubmissionDetails, [{\n key: \"chipClass\",\n get: function get() {\n return \"chip-submission--\".concat(this.args.chipModifier);\n }\n }, {\n key: \"iconClass\",\n get: function get() {\n return \"chip-submission__icon--\".concat(this.args.iconModifier);\n }\n }, {\n key: \"iconClassName\",\n get: function get() {\n var _this$args$icon;\n return (_this$args$icon = this.args.icon) !== null && _this$args$icon !== void 0 ? _this$args$icon : \"fa-ellipsis\";\n }\n }, {\n key: \"label\",\n get: function get() {\n var _this$args$label;\n if (this.args.grade) {\n return \"Grade: \".concat(this.args.grade);\n }\n return (_this$args$label = this.args.label) !== null && _this$args$label !== void 0 ? _this$args$label : \"Not submitted\";\n }\n }]);\n }(_component.default);\n _ChipSubmissionDetails = ChipSubmissionDetails;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
\n \n \n {{this.label}}\n {{#if @isLate}}\n Late\n {{/if}}\n
\n */\n {\n \"id\": \"s2amyl+R\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"chip-submission \\\",[52,[30,1],[30,0,[\\\"chipClass\\\"]]]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"chip-submission__icon \\\",[52,[30,2],[30,0,[\\\"iconClass\\\"]]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular \\\",[30,3]]]],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[30,0,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\" \\\"],[10,1],[14,0,\\\"chip-submission__late-text\\\"],[12],[1,\\\"Late\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@chipModifier\\\",\\\"@iconModifier\\\",\\\"@icon\\\",\\\"@isLate\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/chips/chip-submission/chip-submission-details.js\",\n \"isStrictMode\": true\n }), _ChipSubmissionDetails);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/classlist\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#each @model.section.teachers as |teacher|}}\n
  • \n \n \n
    \n \n {{teacher.name}}\n
    \n
    \n INSTRUCTOR\n
    \n \n \n
  • \n \n {{/each}}\n
  • \n {{@model.section.numStudents}}\n CLASSMATES\n
  • \n {{#each this.filteredEnrollments as |enrollment|}}\n {{#unless enrollment.user.teaching}}\n
  • \n \n \n
    \n \n {{enrollment.user.name}}\n \n
    \n {{#if enrollment.user.title}}\n
    {{enrollment.user.title}}
    \n {{/if}}\n \n \n
  • \n {{/unless}}\n {{/each}}\n
\n */\n {\n \"id\": \"TTIMh/m0\",\n \"block\": \"[[[10,\\\"ul\\\"],[14,\\\"role\\\",\\\"navigation\\\"],[14,0,\\\"class-list\\\"],[14,\\\"role\\\",\\\"directory\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1,[\\\"section\\\",\\\"teachers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"class-list__teacher class-list__member\\\\n \\\",[52,[30,2,[\\\"isCurrentUser\\\"]],\\\"class-list__member--current\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@user\\\"],[[30,2]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"class-list__summary\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[16,\\\"aria-label\\\",[29,[\\\"View profile of the teacher, \\\",[30,2,[\\\"name\\\"]]]]],[24,0,\\\"class-list__name\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"userprofile\\\",\\\"toggleUserProfile\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"class-list__description\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n INSTRUCTOR\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"class-list__separator\\\"],[14,\\\"role\\\",\\\"separator\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"section\\\",\\\"numStudents\\\"]]],[1,\\\"\\\\n CLASSMATES\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"filteredEnrollments\\\"]]],null]],null],null,[[[41,[51,[30,3,[\\\"user\\\",\\\"teaching\\\"]]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"class-list__member\\\\n \\\",[52,[30,3,[\\\"user\\\",\\\"isCurrentUser\\\"]],\\\"class-list__member--current\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@user\\\"],[[30,3,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"class-list__summary\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"class-list__name\\\"],[15,\\\"aria-label\\\",[29,[\\\"View profile of classmate, \\\",[30,3,[\\\"user\\\",\\\"name\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[1,[30,3,[\\\"user\\\",\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@user\\\",\\\"@isInstructor\\\",\\\"@showClock\\\",\\\"@alignIcons\\\"],[[30,3,[\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],true,true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"user\\\",\\\"title\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"class-list__description\\\"],[12],[1,[30,3,[\\\"user\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[3]],null],[13]],[\\\"@model\\\",\\\"teacher\\\",\\\"enrollment\\\"],[\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"label\\\",\\\"if\\\",\\\"user-portrait\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"unless\\\",\\\"user-icons\\\"]]\",\n \"moduleName\": \"bocce/components/classlist.hbs\",\n \"isStrictMode\": false\n });\n var ClasslistComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ClasslistComponent() {\n var _this;\n _classCallCheck(this, ClasslistComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ClasslistComponent, [].concat(args));\n _initializerDefineProperty(_this, \"userprofile\", _descriptor, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor2, _this);\n return _this;\n }\n _inherits(ClasslistComponent, _Component);\n return _createClass(ClasslistComponent, [{\n key: \"filteredEnrollments\",\n get: function get() {\n var _this2 = this;\n return this.args.model.section.studentsByLastName.filter(function (enrollment) {\n return _this2.matchingSearchFilter(enrollment.user) && _this2.matchingFilter(enrollment.user);\n });\n }\n }, {\n key: \"matchingSearchFilter\",\n value: function matchingSearchFilter(user) {\n if (this.args.searchValue.trim() === \"\") {\n return true;\n }\n return user.name.toLowerCase().includes(this.args.searchValue.toLowerCase());\n }\n }, {\n key: \"matchingFilter\",\n value: function matchingFilter(user) {\n if (this.args.activeFilters.length === 0) {\n return true;\n }\n var matchingFilter = false;\n //check \"degree student\" filter\n matchingFilter = matchingFilter || this.args.activeFilters.includes(\"degree student\") && user.isDegreeStudent;\n //check \"accommodation\" filter\n matchingFilter = matchingFilter || this.args.activeFilters.includes(\"accommodation\") && user.hasAccommodation;\n //check \"enrolled late\" filter\n matchingFilter = matchingFilter || this.args.activeFilters.includes(\"enrolled late\") && user.enrolled_late;\n return matchingFilter;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"userprofile\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ClasslistComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/classroom/header\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _tracking, _emberConcurrency, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
\n {{#if this.survey.showBanner}}\n
\n \n \n
\n {{/if}}\n
\n
\n \n \n
\n \n \n \n \n
\n
{{@course.title}}
\n \n
\n \n \n {{#each @userSectionCodes as |userSectionCode|}}\n \n
{{userSectionCode.courseTitle}}
\n {{#unless (or @course.isSample @course.isPublic)}}\n \n {{/unless}}\n \n {{/each}}\n {{#unless this.session.isBCM}}\n \n \n Go to My Dashboard\n \n {{/unless}}\n
\n \n \n {{#if this.showWeek}}\n
\n
\n \n WEEK\n {{@term.week}}\n / 12\n \n {{this.weekComment}}\n
\n
\n
\n
\n
\n {{/if}}\n
\n {{#unless this.session.course.isExam}}\n
{{/if}}\n {{#unless this.session.course.isDYS}}\n \n {{/unless}}\n {{/unless}}\n \n {{/if}}\n \n \n {{#if this.userMenuOpen}}\n \n {{/if}}\n \n
\n */\n {\n \"id\": \"P7bJrI6j\",\n \"block\": \"[[[10,\\\"header\\\"],[14,0,\\\"header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"survey\\\",\\\"showBanner\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"header__survey-banner\\\"],[4,[38,3],[\\\"--survey-banner-height\\\"],null],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"header__survey-banner-cta\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"openSurvey\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"header__survey-banner-text\\\"],[12],[1,\\\"Please take a moment to share your experience by\\\\n filling out a survey!\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Dismiss survey banner\\\"],[24,0,\\\"header__survey-banner-close\\\"],[24,4,\\\"button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"dismissSurveyBanner\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"header__main\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__info-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[16,0,[29,[\\\"header__hamburger-menu \\\",[52,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]],\\\"hidden\\\"]]]],[4,[38,5],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-bars\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[15,0,[29,[\\\"header__button logo-btn \\\",[52,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]],\\\"always-visible\\\"]]]],[14,\\\"aria-label\\\",\\\"Navigate to dashboard\\\"],[14,6,\\\"/#/dashboard\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"header__logo\\\"],[14,\\\"src\\\",\\\"/front_end/css/style-assets/Berklee_Logo_Square.png\\\"],[14,\\\"alt\\\",\\\"Berklee Logo\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"header__info\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleDropdown\\\"]]],null],[4,[38,10],[[30,0,[\\\"closeDropdown\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__course-title-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__course-title\\\"],[12],[1,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular fa-chevron-down \\\",[52,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]],\\\"hidden\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__section-info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Section number\\\"],[12],[1,\\\"Section \\\"],[1,[30,3,[\\\"number\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pipe\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Term\\\"],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"header__dropdown-content\\\\n \\\",[52,[51,[28,[37,12],[[30,0,[\\\"dropdownOpen\\\"]],[28,[37,13],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],null]],null]],\\\"header__dropdown-content--hidden\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,5]],null]],null],null,[[[1,\\\" \\\"],[10,3],[15,\\\"aria-label\\\",[29,[\\\"Navigate to \\\",[30,6,[\\\"courseTitle\\\"]]]]],[14,0,\\\"dropdown__option header__dropdown-course-link\\\"],[15,6,[29,[\\\"/#/\\\",[30,6,[\\\"courseId\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__course-dropdown-title\\\"],[12],[1,[30,6,[\\\"courseTitle\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,16],[[30,2,[\\\"isSample\\\"]],[30,2,[\\\"isPublic\\\"]]],null]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"header__section-info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Section number\\\"],[12],[1,\\\"Section \\\"],[1,[30,6,[\\\"sectionLabel\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pipe\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Term\\\"],[12],[1,[30,6,[\\\"termLabel\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[41,[51,[30,0,[\\\"session\\\",\\\"isBCM\\\"]]],[[[1,\\\" \\\"],[10,3],[14,0,\\\"dropdown__option header__dropdown-dashboard-link\\\"],[14,\\\"aria-label\\\",\\\"Visit My Dashboard\\\"],[14,6,\\\"/#/dashboard\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-grid\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Go to My Dashboard\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showWeek\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"week-counter\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"week-counter__info-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"week-counter__info\\\"],[12],[1,\\\"\\\\n WEEK\\\\n \\\"],[1,[30,4,[\\\"week\\\"]]],[1,\\\"\\\\n / 12\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[30,0,[\\\"weekComment\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"week-counter__progress-bar\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"week-counter__inner-progress-bar\\\"],[15,5,[29,[\\\"width: \\\",[30,0,[\\\"weekProgress\\\"]]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"header__button-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"openInbox\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Inbox\\\"],[41,[30,0,[\\\"unreadInboxCount\\\"]],[[[10,0],[14,0,\\\"toolbar-button__notification\\\"],[12],[1,[30,0,[\\\"unreadInboxCount\\\"]]],[13]],[]],null],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isDYS\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"openForum\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-users\\\"],[12],[13],[1,\\\"Forums\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"header__user-profile-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"header__user-profile\\\"],[15,\\\"aria-label\\\",[52,[30,0,[\\\"survey\\\",\\\"isAlerting\\\"]],\\\"Open user menu -- survey available\\\",\\\"Open user menu\\\"]],[12],[1,\\\"\\\\n \\\"],[11,\\\"img\\\"],[24,0,\\\"header__user-profile\\\"],[16,\\\"src\\\",[29,[[30,0,[\\\"session\\\",\\\"user\\\",\\\"image_url\\\"]]]]],[24,\\\"alt\\\",\\\"User Portrait\\\"],[24,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleUserMenu\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"survey\\\",\\\"isAlerting\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"toolbar-button__notification header__user-profile-alert\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"!\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"userMenuOpen\\\"]],[[[1,\\\" \\\"],[8,[39,17],[[4,[38,10],[[30,0,[\\\"closeUserMenu\\\"]]],[[\\\"ignore\\\"],[\\\".header__user-profile\\\"]]]],[[\\\"@openPrefsPanel\\\",\\\"@openInbox\\\",\\\"@openForum\\\"],[[30,7],[30,0,[\\\"openInbox\\\"]],[30,0,[\\\"openForum\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@toggleMenus\\\",\\\"@course\\\",\\\"@section\\\",\\\"@term\\\",\\\"@userSectionCodes\\\",\\\"userSectionCode\\\",\\\"@togglePrefsPanel\\\"],[\\\"header\\\",\\\"if\\\",\\\"div\\\",\\\"css-var-height\\\",\\\"button\\\",\\\"on\\\",\\\"span\\\",\\\"i\\\",\\\"a\\\",\\\"img\\\",\\\"click-outside\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"user-menu\\\"]]\",\n \"moduleName\": \"bocce/components/classroom/header.hbs\",\n \"isStrictMode\": false\n });\n var INBOX_POLL_INTERVAL = 30000;\n var Header = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function Header(owner, args) {\n var _this;\n _classCallCheck(this, Header);\n _this = _callSuper(this, Header, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"features\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"survey\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"dropdownOpen\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"userMenuOpen\", _descriptor6, _this);\n _this.pollInbox.perform();\n return _this;\n }\n _inherits(Header, _Component);\n return _createClass(Header, [{\n key: \"willDestroy\",\n value: function willDestroy() {\n _superPropGet(Header, \"willDestroy\", this, 3)([]);\n this.pollInbox.cancelAll();\n }\n }, {\n key: \"pollInbox\",\n value: /*#__PURE__*/_regenerator().m(function pollInbox() {\n var _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n if (!true) {\n _context.n = 6;\n break;\n }\n _context.p = 1;\n _context.n = 2;\n return this.store.findAll(\"conversation\", {\n reload: true\n });\n case 2:\n _context.n = 4;\n break;\n case 3:\n _context.p = 3;\n _t = _context.v;\n console.error(\"Failed to load conversations for inbox counter:\", _t);\n case 4:\n _context.n = 5;\n return (0, _emberConcurrency.timeout)(INBOX_POLL_INTERVAL);\n case 5:\n _context.n = 0;\n break;\n case 6:\n return _context.a(2);\n }\n }, pollInbox, this, [[1, 3]]);\n })\n }, {\n key: \"unreadInboxCount\",\n get: function get() {\n return this.store.peekAll(\"conversation\").filter(function (c) {\n return c.active && c.workflow_state === \"unread\";\n }).length;\n }\n }, {\n key: \"showWeek\",\n value: function showWeek() {\n return !this.features.staticContent;\n }\n }, {\n key: \"weekComment\",\n get: function get() {\n return \"\"; // TODO: add week comment when we have it\n }\n }, {\n key: \"totalWeeks\",\n get: function get() {\n return this.args.course.isFourWeekCourse ? 4 : 12;\n }\n }, {\n key: \"weekProgress\",\n get: function get() {\n return this.args.term.week / this.totalWeeks * 100 + \"%\";\n }\n }, {\n key: \"toggleDropdown\",\n value: function toggleDropdown() {\n this.dropdownOpen = !this.dropdownOpen;\n }\n }, {\n key: \"closeDropdown\",\n value: function closeDropdown() {\n this.dropdownOpen = false;\n }\n }, {\n key: \"openInbox\",\n value: function openInbox() {\n window.open(\"/#/dashboard?nav=inbox\", \"_blank\");\n }\n }, {\n key: \"openForum\",\n value: function openForum() {\n window.open(\"https://forum.online.berklee.edu/\", \"_blank\");\n }\n }, {\n key: \"openSurvey\",\n value: function openSurvey() {\n this.survey.open();\n }\n }, {\n key: \"dismissSurveyBanner\",\n value: function dismissSurveyBanner() {\n this.survey.dismissBanner();\n }\n }, {\n key: \"toggleUserMenu\",\n value: function toggleUserMenu() {\n this.userMenuOpen = !this.userMenuOpen;\n }\n }, {\n key: \"closeUserMenu\",\n value: function closeUserMenu() {\n this.userMenuOpen = false;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"features\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"survey\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dropdownOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"userMenuOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"pollInbox\", [_emberConcurrency.task], Object.getOwnPropertyDescriptor(_class.prototype, \"pollInbox\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openInbox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openInbox\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openForum\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openForum\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSurvey\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSurvey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dismissSurveyBanner\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissSurveyBanner\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleUserMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleUserMenu\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeUserMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeUserMenu\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Header);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/classroom/lessons/admin/quizzes\", [\"exports\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\"], function (_exports, _object, _tracking, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var DeleteLastAttempt = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function DeleteLastAttempt() {\n var _this;\n _classCallCheck(this, DeleteLastAttempt);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, DeleteLastAttempt, [].concat(args));\n _initializerDefineProperty(_this, \"selectedUser\", _descriptor, _this);\n _initializerDefineProperty(_this, \"selectedQuiz\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor3, _this);\n return _this;\n }\n _inherits(DeleteLastAttempt, _Component);\n return _createClass(DeleteLastAttempt, [{\n key: \"init\",\n value: function init() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _superPropGet(DeleteLastAttempt, \"init\", this, 3)(args);\n\n //I don't think this is used any more. But, right now I'm too nervous to touch anything.\n this.set(\"operations\", [\"quiz-admin/unlock-for-next-attempt\", \"quiz-admin/delete-latest-attempt\"]);\n }\n }, {\n key: \"loadQuizUsers\",\n value: function () {\n var _loadQuizUsers = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(quizId) {\n var path, data;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n path = \"/interface/sections/\".concat(this.get(\"session.section.id\"), \"/quizzes/\").concat(quizId, \"/submission_users\");\n _context.n = 1;\n return $.get(path);\n case 1:\n data = _context.v;\n this.set(\"quizUsers\", data.quiz_submission_users.users);\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function loadQuizUsers(_x) {\n return _loadQuizUsers.apply(this, arguments);\n }\n return loadQuizUsers;\n }()\n }, {\n key: \"selectQuiz\",\n value: function selectQuiz(quizId) {\n var _this2 = this;\n this.set(\"selectedQuizId\", quizId);\n this.loadQuizUsers(quizId);\n this.store.findRecord(\"quiz\", quizId).then(function (quiz) {\n return _this2.selectedQuiz = quiz;\n });\n this.selectedUser = null;\n }\n }, {\n key: \"expandOperations\",\n value: function () {\n var _expandOperations = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(userId) {\n var user;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n _context2.n = 1;\n return this.store.findRecord(\"user\", userId);\n case 1:\n user = _context2.v;\n user.set(\"quizAttemptMade\", this.get(\"quizUsers\").find(function (u) {\n return u.id == userId;\n }).attempt_made);\n this.selectedUser = user;\n case 2:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function expandOperations(_x2) {\n return _expandOperations.apply(this, arguments);\n }\n return expandOperations;\n }()\n }]);\n }(Component), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"selectedUser\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selectedQuiz\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"selectQuiz\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectQuiz\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"expandOperations\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"expandOperations\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/classroom/lessons/assignment-content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
\n {{safehtml @assignmentcontents.description}}\n
\n \n {{#if @assignmentcontents.rubric_criteria}}\n \n {{/if}}\n {{#if this.session.isInstructor}}\n
    \n
  • \n
    \n Student Submissions\n
    \n
    \n Your students have not posted anything yet.\n
    \n
  • \n {{#each @assignmentcontents.submissions as |submission|}}\n \n {{#unless submission.my_submission}}\n
    \n \n
    \n {{/unless}}\n
    \n \n {{submission.user.short_name}}\n \n \n
    \n \n {{#if submission.grade_matches_current_submission}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n \n Resubmission Requested\n {{else}}\n {{#if (same \"0\" submission.score)}}\n \n Submission Rejected\n {{else}}\n \n Submitted\n {{/if}}\n {{/if}}\n {{else}}\n \n Resubmitted\n {{/if}}\n \n {{#if this.session.isInstructor}}\n {{#if submission.daysLate}}\n
    \n {{submission.daysLate}}\n late\n
    \n {{/if}}\n {{/if}}\n {{moment submission.date}}\n
    \n {{#if submission.grade}}\n
    \n {{#if (diff submission.teacher_requires_resubmission \"needs_resubmit\")}}\n {{#if (same \"0\" submission.score)}}\n No Credit\n {{else}}\n {{submission.grade}}\n {{submission.percentage}}%\n {{/if}}\n {{/if}}\n
    \n {{else if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n \n \n \n \n
    \n {{/if}}\n \n {{unless\n submission.grade_matches_current_submission\n \"Grade Submission\"\n \"View Submission\"\n }}\n \n
    \n \n {{/each}}\n
\n {{else}}\n {{#unless @assignmentcontents.cantView}}\n \n
  • \n
    \n Submissions\n \n
    \n
  • \n {{#unless @assignmentcontents.did_submit}}\n
  • \n
    \n \n
    \n
    \n \n {{this.session.user.short_name}}\n (You)\n \n \n Not yet submitted\n {{#if this.session.course.isPublic}}\n \n Submit Assignment\n \n {{else}}\n \n Submit Assignment\n \n {{/if}}\n
    \n
  • \n {{/unless}}\n {{#each @assignmentcontents.submissions as |submission|}}\n \n
    \n \n
    \n
    \n \n {{submission.user.short_name}}\n \n \n
    \n \n \n Submitted\n {{#if this.session.isInstructor}}\n {{#if submission.daysLate}}\n
    \n {{submission.daysLate}}\n late\n
    \n {{/if}}\n {{/if}}\n {{moment submission.date}}\n
    \n {{#if submission.grade}}\n
    \n {{#if submission.grade_matches_current_submission}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n \n \n \n \n \n
    \n {{else}}\n {{#if (same \"0\" submission.score)}}\n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{else}}\n \n {{/if}}\n {{#if (diff submission.teacher_requires_resubmission \"needs_resubmit\")}}\n {{#if (same \"0\" submission.score)}}\n No Credit\n {{else}}\n {{submission.grade}}\n {{submission.percentage}}%\n {{/if}}\n {{/if}}\n
    \n {{else if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n \n \n \n \n
    \n {{/if}}\n \n View\n {{if submission.my_submission \"Your\"}}\n Submission\n \n \n \n {{/each}}\n \n {{/unless}}\n {{/if}}\n */\n {\n \"id\": \"T7BeBOWY\",\n \"block\": \"[[[10,0],[14,0,\\\"bootable-area\\\"],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,1],[[30,1,[\\\"description\\\"]]],null]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"rubric_criteria\\\"]],[[[1,\\\" \\\"],[8,[39,3],null,[[\\\"@criteria\\\"],[[30,1,[\\\"rubric_criteria\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"submissions-list\\\"],[14,\\\"role\\\",\\\"group\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"submission-container\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"classmate-submissions-header\\\"],[12],[1,\\\"\\\\n Student Submissions\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"no-submissions \\\",[52,[30,1,[\\\"submissions\\\"]],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n Your students have not posted anything yet.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"submissions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"submission-container instructor\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment submission for \\\",[30,2,[\\\"user\\\",\\\"name\\\"]],\\\". Submission created on \\\",[28,[37,8],[[30,2,[\\\"date\\\"]]],null],\\\". \\\",[30,2,[\\\"grade\\\"]],\\\" (\\\",[30,2,[\\\"percentage\\\"]],\\\"%)\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"my_submission\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"left-side-submission\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\"],[[30,2,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"right-side-submission\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,2,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,14],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,2,[\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-date\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submitted-confirm\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,16],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-refresh\\\"],[14,\\\"aria-label\\\",\\\"Resubmission Requested\\\"],[12],[13],[1,\\\"\\\\n Resubmission Requested\\\\n\\\"]],[]],[[[41,[28,[37,16],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-minus-circle\\\"],[14,\\\"aria-label\\\",\\\"Submission has been rejected\\\"],[12],[13],[1,\\\"\\\\n Submission Rejected\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check-circle\\\"],[14,\\\"aria-label\\\",\\\"Grade Matches Current Submission\\\"],[12],[13],[1,\\\"\\\\n Submitted\\\\n\\\"]],[]]]],[]]]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Resubmitted\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[41,[30,2,[\\\"daysLate\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submitted-late\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"daysLate\\\"]]],[1,\\\"\\\\n late\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[1,[28,[35,8],[[30,2,[\\\"date\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"grade\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade fade-in\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[28,[37,16],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],[[[1,\\\" No Credit\\\\n\\\"]],[]],[[[1,\\\" \\\"],[1,[30,2,[\\\"grade\\\"]]],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"percentage\\\"]]],[1,\\\"%\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file fa-stack-2x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-1x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button--gray-ghost button--sm\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,3],\\\"viewAssignmentSubmission\\\",[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[52,[51,[30,2,[\\\"grade_matches_current_submission\\\"]]],\\\"Grade Submission\\\",\\\"View Submission\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,1,[\\\"cantView\\\"]]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"submissions-list clearfix\\\"],[14,\\\"role\\\",\\\"group\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment submissions for \\\",[30,1,[\\\"title\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"submission-container fade-in\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"classmate-submissions-header\\\"],[12],[1,\\\"\\\\n Submissions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-chevron-down\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"did_submit\\\"]]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"submission-container fade-in\\\"],[14,\\\"aria-label\\\",\\\"Assignment submission box\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"left-side-submission\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\"],[[30,0,[\\\"session\\\",\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"right-side-submission\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,0,[\\\"session\\\",\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n (You)\\\\n \\\"],[8,[39,14],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,0,[\\\"session\\\",\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-date\\\"],[12],[1,\\\"Not yet submitted\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isPublic\\\"]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Disabled Open assignment submission dialog button\\\"],[14,0,\\\"button--black button--sm\\\"],[12],[1,\\\"\\\\n Submit Assignment\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Open assignment submission dialog\\\"],[24,0,\\\"button--black button--sm\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,3],\\\"assignmentSubmission\\\",[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n Submit Assignment\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"submissions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"submission-container fade-in\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment submission for \\\",[30,4,[\\\"user\\\",\\\"name\\\"]],\\\". Submission created on \\\",[28,[37,8],[[30,4,[\\\"date\\\"]]],null],\\\". \\\",[30,4,[\\\"grade\\\"]],\\\" (\\\",[30,4,[\\\"percentage\\\"]],\\\"%)\\\"]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"left-side-submission\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\"],[[30,4,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"right-side-submission\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,4,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,4,[\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,14],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,4,[\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-date\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submitted-confirm\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Submitted\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[41,[30,4,[\\\"daysLate\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submitted-late\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,4,[\\\"daysLate\\\"]]],[1,\\\"\\\\n late\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[1,[28,[35,8],[[30,4,[\\\"date\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"grade\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade fade-in\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,16],[[30,4,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file fa-stack-2x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-1x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[\\\"0\\\",[30,4,[\\\"score\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-minus-circle\\\"],[14,\\\"aria-label\\\",\\\"Submission has been rejected\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check-circle\\\"],[14,\\\"aria-label\\\",\\\"Grade Matches Current Submission\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[28,[37,18],[[30,4,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[28,[37,16],[\\\"0\\\",[30,4,[\\\"score\\\"]]],null],[[[1,\\\" No Credit\\\\n\\\"]],[]],[[[1,\\\" \\\"],[1,[30,4,[\\\"grade\\\"]]],[1,\\\"\\\\n \\\"],[1,[30,4,[\\\"percentage\\\"]]],[1,\\\"%\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,4,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file fa-stack-2x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-1x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[[52,[30,4,[\\\"my_submission\\\"]],\\\"button--black\\\",\\\"button--gray-ghost\\\"],\\\"\\\\n button--sm\\\"]]],[16,\\\"aria-label\\\",[29,[\\\"Click here to view submission for user \\\",[30,4,[\\\"user\\\",\\\"name\\\"]]]]],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,3],\\\"viewAssignmentSubmission\\\",[30,4,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n View\\\\n \\\"],[1,[52,[30,4,[\\\"my_submission\\\"]],\\\"Your\\\"]],[1,\\\"\\\\n Submission\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"@assignmentcontents\\\",\\\"submission\\\",\\\"@sendParentAction\\\",\\\"submission\\\"],[\\\"div\\\",\\\"safehtml\\\",\\\"if\\\",\\\"rubric/rubric\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"moment\\\",\\\"unless\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"user-icons\\\",\\\"span\\\",\\\"same\\\",\\\"i\\\",\\\"diff\\\"]]\",\n \"moduleName\": \"bocce/components/classroom/lessons/assignment-content.hbs\",\n \"isStrictMode\": false\n });\n var ClassroomLessonsAssignmentContentComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ClassroomLessonsAssignmentContentComponent() {\n var _this;\n _classCallCheck(this, ClassroomLessonsAssignmentContentComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ClassroomLessonsAssignmentContentComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(ClassroomLessonsAssignmentContentComponent, _Component);\n return _createClass(ClassroomLessonsAssignmentContentComponent);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ClassroomLessonsAssignmentContentComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/classroom/lessons/discussion-content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{{@discussioncontents.message}}}\n
    \n {{#if @discussioncontents.attachments}}\n
      \n
    • \n Attachments:\n
    • \n {{#each @discussioncontents.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n {{#if this.session.course.isPublic}}\n \n Participate in Discussion!\n \n {{else}}\n \n Participate in Discussion!\n \n {{/if}}\n
    \n */\n {\n \"id\": \"UOYi7TRM\",\n \"block\": \"[[[10,0],[14,0,\\\"bootable-area\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"message\\\"]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"discussion-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments:\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,1,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@attachment\\\"],[[30,2]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"discussion-main\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isPublic\\\"]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Disabled Open discussion dialog button\\\"],[14,0,\\\"button button--primary\\\"],[12],[1,\\\"\\\\n Participate in Discussion!\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--primary\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,3],\\\"work.discussion\\\",[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n Participate in Discussion!\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@discussioncontents\\\",\\\"attachment\\\",\\\"@viewModal\\\"],[\\\"div\\\",\\\"if\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/classroom/lessons/discussion-content.hbs\",\n \"isStrictMode\": false\n });\n var ClassroomLessonsDiscussionContentComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ClassroomLessonsDiscussionContentComponent() {\n var _this;\n _classCallCheck(this, ClassroomLessonsDiscussionContentComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ClassroomLessonsDiscussionContentComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(ClassroomLessonsDiscussionContentComponent, _Component);\n return _createClass(ClassroomLessonsDiscussionContentComponent);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ClassroomLessonsDiscussionContentComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/classroom/lessons/quiz-content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"bocce/js/quizzes/quizzes-factory\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _tracking, _quizzesFactory, _runloop, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"bocce/js/quizzes/quizzes-factory\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.session.isInstructor}}\n
    \n {{#if (and this.quizzes.showStats this.quizzes.initialized)}}\n \n {{else}}\n \n {{/if}}\n
    \n {{/if}}\n {{#if (and this.session.isInstructor this.quizzes.showStats)}}\n
    \n {{{this.quiz.introduction}}}\n
    \n \n {{! Wait until the quizzes have been initialized before we show the stats }}\n {{#if this.quizzes.initialized}}\n {{#if this.hasQuizStats}}\n \n {{else}}\n no submissions yet\n {{/if}}\n {{/if}}\n {{else}}\n {{! Not showing quiz stats; show the quiz instead }}\n {{#if this.quizzes.initialized}}\n {{#if this.quizzes.showQuizIntercept}}\n \n {{/if}}\n {{/if}}\n \n
    \n {{{this.quiz.introduction}}}\n
    \n
    \n Checking for previous grades. Please wait...
    \n \n {{! This renders the appropriate quiz component given the quiz question type and the state of the quiz:\n quiz-scenarios/quiz-intercept.hbs\n quiz-scenarios/quiz-all-graded.hbs\n quiz-scenarios/quiz-all.hbs\n quiz-scenarios/quiz-single-graded-results.hbs\n quiz-scenarios/quiz-single-graded-reviewing.hbs\n quiz-scenarios/quiz-single.hbs\n }}\n {{component this.quizzes.component gradingQuiz=this.quizzes.gradingQuiz quizzes=this.quizzes}}\n \n {{/if}}\n \n */\n {\n \"id\": \"GnqShGhX\",\n \"block\": \"[[[10,0],[14,\\\"role\\\",\\\"region\\\"],[15,\\\"aria-label\\\",[29,[[30,0,[\\\"quiz\\\",\\\"title\\\"]]]]],[15,\\\"aria-activedescendant\\\",[29,[\\\"quiz-\\\",[30,0,[\\\"quiz\\\",\\\"id\\\"]],\\\"-body\\\"]]],[15,0,[29,[\\\"quiz-container v2\\\\n \\\",[30,0,[\\\"quiz\\\",\\\"presentation\\\"]],\\\"\\\\n \\\",[52,[30,0,[\\\"quiz\\\",\\\"is_graded\\\"]],\\\"for-grade\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"seeking\\\"]],\\\"seeking-grades\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"quizzes\\\",\\\"hasScore\\\"]],\\\"graded\\\"],\\\"\\\\n \\\",[52,[28,[37,2],[[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]],[28,[37,3],[[30,0,[\\\"quizzes\\\",\\\"timeRemaining\\\"]],0],null]],null],\\\"disabled\\\"],\\\"\\\\n \\\",[30,0,[\\\"quizzes\\\",\\\"quizType\\\"]],\\\"\\\\n \\\",[52,[28,[37,4],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"quizzes\\\",\\\"showStats\\\"]]],null],\\\"stats\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-instructor-header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,0,[\\\"quizzes\\\",\\\"showStats\\\"]],[30,0,[\\\"quizzes\\\",\\\"initialized\\\"]]],null],[[[1,\\\" \\\"],[8,[39,5],null,[[\\\"@quizzes\\\",\\\"@toggleShowStats\\\"],[[30,0,[\\\"quizzes\\\"]],[30,0,[\\\"quizzes\\\",\\\"toggleShowStats\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"quizzes\\\",\\\"toggleShowStats\\\"]]],null],[12],[1,\\\"Show Stats\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"quizzes\\\",\\\"showStats\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"quiz-intro bootable-area\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"quiz\\\",\\\"introduction\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"quizzes\\\",\\\"initialized\\\"]],[[[41,[30,0,[\\\"hasQuizStats\\\"]],[[[1,\\\" \\\"],[8,[39,8],null,[[\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" no submissions yet\\\\n\\\"]],[]]]],[]],null]],[]],[[[41,[30,0,[\\\"quizzes\\\",\\\"initialized\\\"]],[[[41,[30,0,[\\\"quizzes\\\",\\\"showQuizIntercept\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"presentation\\\"],[14,0,\\\"quiz-intro bootable-area\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"quiz\\\",\\\"introduction\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade-seek-message\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-3x fa-fw\\\"],[12],[13],[1,\\\"\\\\n Checking for previous grades. Please wait...\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-questions\\\"],[15,1,[29,[\\\"quiz-\\\",[30,0,[\\\"quiz\\\",\\\"id\\\"]],\\\"-body\\\"]]],[14,\\\"role\\\",\\\"form\\\"],[14,\\\"aria-label\\\",\\\"Quiz Questions\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[46,[30,0,[\\\"quizzes\\\",\\\"component\\\"]],null,[[\\\"gradingQuiz\\\",\\\"quizzes\\\"],[[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]],[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],[\\\"div\\\",\\\"if\\\",\\\"or\\\",\\\"same\\\",\\\"and\\\",\\\"quiz-stats/quiz-stats-actions\\\",\\\"button\\\",\\\"on\\\",\\\"quiz-stats/quiz-stats\\\",\\\"quiz/quiz-overview\\\",\\\"i\\\",\\\"component\\\"]]\",\n \"moduleName\": \"bocce/components/classroom/lessons/quiz-content.hbs\",\n \"isStrictMode\": false\n });\n var ClassroomLessonsQuizContentComponent = _exports.default = (_dec = (0, _service.inject)(\"quizzes\"), _class = /*#__PURE__*/function (_Component) {\n function ClassroomLessonsQuizContentComponent(owner, args) {\n var _this;\n _classCallCheck(this, ClassroomLessonsQuizContentComponent);\n _this = _callSuper(this, ClassroomLessonsQuizContentComponent, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"features\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"quizzesService\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"quizzes\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"initialized\", _descriptor6, _this);\n _this.quizzes = _quizzesFactory.default.get(_this.args.data.search_id);\n _this.quizSetup(_this.quizzes).then(function () {\n return _this.initialized = true;\n });\n return _this;\n }\n _inherits(ClassroomLessonsQuizContentComponent, _Component);\n return _createClass(ClassroomLessonsQuizContentComponent, [{\n key: \"quizSetup\",\n value: function () {\n var _quizSetup = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(quizzes) {\n var quiz;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n quiz = this.args.data;\n if (!quiz) {\n _context.n = 2;\n break;\n }\n if (quizzes.initialized) {\n _context.n = 1;\n break;\n }\n _context.n = 1;\n return quizzes.initialize(quiz, this.session, this.store);\n case 1:\n /* eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions */\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n /**\n * If a quiz question is inserted into the page upon page load, performedInitialRender will be false. This\n * tells the question component to not boot the question content since that will be done as a part of the page loading.\n * If a quiz question is inserted into the page after it loads, we need to boot the content. Set this property to true\n * so that the question component knows to do so.\n */\n quizzes.performedInitialRender = true;\n });\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function quizSetup(_x) {\n return _quizSetup.apply(this, arguments);\n }\n return quizSetup;\n }()\n }, {\n key: \"quiz\",\n get: function get() {\n return this.quizzes.quiz;\n }\n }, {\n key: \"allowSubmit\",\n get: function get() {\n return !this.features.isEnabled(\"staticContent\");\n }\n }, {\n key: \"hasQuizStats\",\n get: function get() {\n var _this$quiz;\n return ((_this$quiz = this.quiz) === null || _this$quiz === void 0 || (_this$quiz = _this$quiz.quiz_statistics_components) === null || _this$quiz === void 0 ? void 0 : _this$quiz.length) > 0;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"features\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"quizzesService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"quizzes\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"initialized\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ClassroomLessonsQuizContentComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/dashboard/course-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if this.isDropdownOpen}}\n
    \n {{/if}}\n \n
    \n
    \n

    Courses

    \n {{#if this.showFilter}}\n
    \n \n {{this.activeTabLabel}}\n \n \n {{#if this.isDropdownOpen}}\n \n \n All\n {{this.totalCourseCount}}\n \n {{#if this.currentCount}}\n \n Current\n {{this.currentCount}}\n \n {{/if}}\n {{#if this.auditingCount}}\n \n Auditing\n {{this.auditingCount}}\n \n {{/if}}\n {{#if this.completedCount}}\n \n Completed\n {{this.completedCount}}\n \n {{/if}}\n
    \n {{/if}}\n
    \n {{/if}}\n
    \n {{#if this.showFilter}}\n
    \n \n \n
    \n {{/if}}\n
    \n \n {{#each this.filteredTerms as |entry index|}}\n
    \n
    \n

    {{entry.term.name}}

    \n {{#if entry.term.current}}\n \n {{else if entry.term.past}}\n \n {{#if entry.firstCourse.unavailable}}\n Archived\n {{moment entry.firstCourse.availability \"MM/DD/YYYY\"}}\n {{else}}\n Available until\n {{moment entry.firstCourse.availability \"MM/DD/YYYY\"}}\n {{/if}}\n \n {{/if}}\n
    \n {{#if entry.term.current}}\n
      \n {{#each entry.courses as |course cindex|}}\n \n {{/each}}\n
    \n {{else if entry.term.training}}\n
      \n {{#each entry.courses as |course cindex|}}\n \n {{/each}}\n
    \n {{else if entry.term.past}}\n
      \n {{#each entry.courses as |course cindex|}}\n \n {{/each}}\n
    \n {{/if}}\n
    \n {{else}}\n {{#if this.filterText}}\n

    No courses match \"{{this.filterText}}\".

    \n {{else}}\n
    \n
      \n
    • \n \n

      No Active Courses

      \n
      \n

      If your course(s) are due to open today, check back\n periodically, as courses open in waves throughout the day.

      \n

      Please contact your advisor if your enrollment(s) do not appear\n here.

      \n
      \n
    • \n
    \n
    \n {{/if}}\n {{/each}}\n \n */\n {\n \"id\": \"cW6kgj3c\",\n \"block\": \"[[[10,0],[14,0,\\\"course__term__list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDropdownOpen\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"course__term__list-backdrop\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeDropdown\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__term__list-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__term__list-heading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Courses\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilter\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__term__list-dropdown-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"course__term__list-dropdown-trigger \\\",[52,[30,0,[\\\"isDropdownOpen\\\"]],\\\"is-open\\\"]]]],[24,\\\"aria-haspopup\\\",\\\"listbox\\\"],[16,\\\"aria-expanded\\\",[30,0,[\\\"isDropdownOpen\\\"]]],[16,\\\"aria-label\\\",[29,[\\\"Filter courses by type, currently showing \\\",[30,0,[\\\"activeTabLabel\\\"]]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleDropdown\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__term__list-active-label\\\"],[12],[1,[30,0,[\\\"activeTabLabel\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isDropdownOpen\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__term__list-dropdown\\\"],[14,\\\"role\\\",\\\"listbox\\\"],[14,\\\"aria-label\\\",\\\"Course filter options\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"role\\\",\\\"option\\\"],[16,\\\"aria-selected\\\",[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"all\\\"],null]],[16,0,[29,[\\\"course__term__list-dropdown-option\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"all\\\"],null],\\\"is-active\\\"]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"selectTab\\\"]],\\\"all\\\"],null]],null],[12],[1,\\\"\\\\n All\\\\n \\\"],[10,1],[14,0,\\\"course__term__list-tab__count\\\"],[12],[1,[30,0,[\\\"totalCourseCount\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentCount\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"role\\\",\\\"option\\\"],[16,\\\"aria-selected\\\",[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"current\\\"],null]],[16,0,[29,[\\\"course__term__list-dropdown-option\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"current\\\"],null],\\\"is-active\\\"]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"selectTab\\\"]],\\\"current\\\"],null]],null],[12],[1,\\\"\\\\n Current\\\\n \\\"],[10,1],[14,0,\\\"course__term__list-tab__count\\\"],[12],[1,[30,0,[\\\"currentCount\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"auditingCount\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"role\\\",\\\"option\\\"],[16,\\\"aria-selected\\\",[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"auditing\\\"],null]],[16,0,[29,[\\\"course__term__list-dropdown-option\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"auditing\\\"],null],\\\"is-active\\\"]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"selectTab\\\"]],\\\"auditing\\\"],null]],null],[12],[1,\\\"\\\\n Auditing\\\\n \\\"],[10,1],[14,0,\\\"course__term__list-tab__count\\\"],[12],[1,[30,0,[\\\"auditingCount\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"completedCount\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"role\\\",\\\"option\\\"],[16,\\\"aria-selected\\\",[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"completed\\\"],null]],[16,0,[29,[\\\"course__term__list-dropdown-option\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"activeTab\\\"]],\\\"completed\\\"],null],\\\"is-active\\\"]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"selectTab\\\"]],\\\"completed\\\"],null]],null],[12],[1,\\\"\\\\n Completed\\\\n \\\"],[10,1],[14,0,\\\"course__term__list-tab__count\\\"],[12],[1,[30,0,[\\\"completedCount\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFilter\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__term__list-filter\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-search course__term__list-filter__icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,0,\\\"course__term__list-filter__input\\\"],[24,\\\"placeholder\\\",\\\"Filter courses…\\\"],[16,2,[30,0,[\\\"filterText\\\"]]],[24,\\\"aria-label\\\",\\\"Filter courses\\\"],[24,4,\\\"text\\\"],[4,[38,2],[\\\"input\\\",[30,0,[\\\"updateFilter\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"filteredTerms\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"section\\\"],[14,0,\\\"course__list__term\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"course__list__term__header-container\\\"],[4,[38,13],null,null],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[14,0,\\\"course__list__term__header\\\"],[12],[1,[30,1,[\\\"term\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"term\\\",\\\"current\\\"]],[[[1,\\\" \\\"],[8,[39,15],null,[[\\\"@term\\\"],[[30,1,[\\\"term\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"term\\\",\\\"past\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__term__availability\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"firstCourse\\\",\\\"unavailable\\\"]],[[[1,\\\" Archived\\\\n \\\"],[1,[28,[35,16],[[30,1,[\\\"firstCourse\\\",\\\"availability\\\"]],\\\"MM/DD/YYYY\\\"],null]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Available until\\\\n \\\"],[1,[28,[35,16],[[30,1,[\\\"firstCourse\\\",\\\"availability\\\"]],\\\"MM/DD/YYYY\\\"],null]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"term\\\",\\\"current\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"course__list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,1,[\\\"courses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,18],null,[[\\\"@courseRaw\\\",\\\"@index\\\",\\\"@termIndex\\\",\\\"@maximizedCard\\\",\\\"@updateMaximizedCard\\\",\\\"@displayStatsPopup\\\",\\\"@hideClassmateStats\\\",\\\"@toggleClassmateStats\\\",\\\"@navigate\\\",\\\"@displayStatsInfo\\\",\\\"@messageUser\\\",\\\"@experimentalFeaturesEnabled\\\",\\\"@scrollElementIntoView\\\"],[[30,3],[30,4],[30,2],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14]]],null],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"term\\\",\\\"training\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"course__list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,1,[\\\"courses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,19],null,[[\\\"@course\\\",\\\"@messageUser\\\",\\\"@index\\\",\\\"@navigate\\\",\\\"@experimentalFeaturesEnabled\\\"],[[30,15],[30,12],[30,16],[30,10],[30,13]]],null],[1,\\\"\\\\n\\\"]],[15,16]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"term\\\",\\\"past\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"course__list past__term\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,1,[\\\"courses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,20],null,[[\\\"@course\\\",\\\"@messageUser\\\",\\\"@index\\\",\\\"@termIndex\\\",\\\"@navigate\\\",\\\"@maximizedCard\\\",\\\"@experimentalFeaturesEnabled\\\",\\\"@expandClassCardAccordion\\\",\\\"@scrollElementIntoView\\\"],[[30,17],[30,12],[30,18],[30,2],[30,10],[30,5],[30,13],[30,0,[\\\"expandClassCardAccordion\\\"]],[30,14]]],null],[1,\\\"\\\\n\\\"]],[17,18]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],[[[41,[30,0,[\\\"filterText\\\"]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"course-list-empty\\\"],[12],[1,\\\"No courses match \\\\\\\"\\\"],[1,[30,0,[\\\"filterText\\\"]]],[1,\\\"\\\\\\\".\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"section\\\"],[14,0,\\\"course__list__term\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"course__list\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"courselist__item empty\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-duotone fa-solid fa-face-thinking\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,\\\"No Active Courses\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"class-list__header\\\"],[14,1,\\\"term_0\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"unavailable\\\"],[12],[1,\\\"If your course(s) are due to open today, check back\\\\n periodically, as courses open in waves throughout the day.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"unavailable\\\"],[12],[1,\\\"Please contact your advisor if your enrollment(s) do not appear\\\\n here.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[13]],[\\\"entry\\\",\\\"index\\\",\\\"course\\\",\\\"cindex\\\",\\\"@maximizedCard\\\",\\\"@updateMaximizedCard\\\",\\\"@displayStatsPopup\\\",\\\"@hideClassmateStats\\\",\\\"@toggleClassmateStats\\\",\\\"@navigate\\\",\\\"@displayStatsInfo\\\",\\\"@messageUser\\\",\\\"@experimentalFeaturesEnabled\\\",\\\"@scrollElementIntoView\\\",\\\"course\\\",\\\"cindex\\\",\\\"course\\\",\\\"cindex\\\"],[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"h1\\\",\\\"button\\\",\\\"span\\\",\\\"i\\\",\\\"same\\\",\\\"fn\\\",\\\"input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"section\\\",\\\"sticky-class\\\",\\\"h3\\\",\\\"dashboard/week-number-display\\\",\\\"moment\\\",\\\"ul\\\",\\\"dashboard/course-list/course-list-item\\\",\\\"dashboard/course-list/course-list-item-training\\\",\\\"dashboard/course-list/course-list-item-past\\\",\\\"p\\\",\\\"li\\\",\\\"strong\\\"]]\",\n \"moduleName\": \"bocce/components/dashboard/course-list.hbs\",\n \"isStrictMode\": false\n });\n var CourseList = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function CourseList() {\n var _this;\n _classCallCheck(this, CourseList);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, CourseList, [].concat(args));\n _initializerDefineProperty(_this, \"_activeTab\", _descriptor, _this);\n _initializerDefineProperty(_this, \"filterText\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"isDropdownOpen\", _descriptor3, _this);\n return _this;\n }\n _inherits(CourseList, _Component);\n return _createClass(CourseList, [{\n key: \"currentTerms\",\n get: function get() {\n return (this.args.terms || []).filter(function (t) {\n return t.current;\n });\n }\n }, {\n key: \"trainingTerms\",\n get: function get() {\n return (this.args.terms || []).filter(function (t) {\n return t.training;\n });\n }\n }, {\n key: \"pastTerms\",\n get: function get() {\n return (this.args.terms || []).filter(function (t) {\n return t.past;\n });\n }\n }, {\n key: \"currentCount\",\n get: function get() {\n return this.currentTerms.reduce(function (sum, t) {\n var _t$courses;\n return sum + (((_t$courses = t.courses) === null || _t$courses === void 0 ? void 0 : _t$courses.length) || 0);\n }, 0);\n }\n }, {\n key: \"auditingCount\",\n get: function get() {\n return this.trainingTerms.reduce(function (sum, t) {\n var _t$courses2;\n return sum + (((_t$courses2 = t.courses) === null || _t$courses2 === void 0 ? void 0 : _t$courses2.length) || 0);\n }, 0);\n }\n }, {\n key: \"completedCount\",\n get: function get() {\n return this.pastTerms.reduce(function (sum, t) {\n var _t$courses3;\n return sum + (((_t$courses3 = t.courses) === null || _t$courses3 === void 0 ? void 0 : _t$courses3.length) || 0);\n }, 0);\n }\n }, {\n key: \"totalCourseCount\",\n get: function get() {\n return this.currentCount + this.auditingCount + this.completedCount;\n }\n }, {\n key: \"showFilter\",\n get: function get() {\n return this.totalCourseCount > 5;\n }\n }, {\n key: \"availableTabCount\",\n get: function get() {\n return [this.currentCount, this.auditingCount, this.completedCount].filter(Boolean).length;\n }\n }, {\n key: \"showTabs\",\n get: function get() {\n return this.availableTabCount > 1;\n }\n }, {\n key: \"defaultTab\",\n get: function get() {\n if (this.availableTabCount > 1) return \"all\";\n if (this.currentCount) return \"current\";\n if (this.auditingCount) return \"auditing\";\n if (this.completedCount) return \"completed\";\n return \"all\";\n }\n }, {\n key: \"activeTab\",\n get: function get() {\n var tab = this._activeTab || this.defaultTab;\n\n // If the selected tab no longer has courses, fall back to the default\n if (tab === \"current\" && !this.currentCount) return this.defaultTab;\n if (tab === \"auditing\" && !this.auditingCount) return this.defaultTab;\n if (tab === \"completed\" && !this.completedCount) return this.defaultTab;\n return tab;\n }\n }, {\n key: \"activeTerms\",\n get: function get() {\n if (this.activeTab === \"all\") return [].concat(_toConsumableArray(this.currentTerms), _toConsumableArray(this.trainingTerms), _toConsumableArray(this.pastTerms));\n if (this.activeTab === \"current\") return this.currentTerms;\n if (this.activeTab === \"auditing\") return this.trainingTerms;\n if (this.activeTab === \"completed\") return this.pastTerms;\n return [];\n }\n }, {\n key: \"filteredTerms\",\n get: function get() {\n var text = this.filterText.trim().toLowerCase();\n return this.activeTerms.map(function (term) {\n var courses = term.courses || [];\n if (text) {\n var termName = (term.name || \"\").toLowerCase();\n var termMatches = termName.includes(text);\n courses = termMatches ? courses : courses.filter(function (course) {\n var name = (course.course_name || \"\").toLowerCase();\n var code = (course.course_code || \"\").toLowerCase();\n return name.includes(text) || code.includes(text);\n });\n }\n return {\n term: term,\n courses: courses,\n firstCourse: courses[0]\n };\n }).filter(function (entry) {\n return entry.courses.length > 0;\n });\n }\n }, {\n key: \"expandClassCardAccordion\",\n value: function expandClassCardAccordion(index, open, event) {\n event.stopPropagation();\n var isCurrentlyOpen = this.args.maximizedCard.includes(index);\n if (open && isCurrentlyOpen) return;\n this.args.updateMaximizedCard(index);\n }\n }, {\n key: \"activeTabLabel\",\n get: function get() {\n var _labels$this$activeTa;\n var labels = {\n all: \"All\",\n current: \"Current\",\n auditing: \"Auditing\",\n completed: \"Completed\"\n };\n return (_labels$this$activeTa = labels[this.activeTab]) !== null && _labels$this$activeTa !== void 0 ? _labels$this$activeTa : \"All\";\n }\n }, {\n key: \"toggleDropdown\",\n value: function toggleDropdown() {\n this.isDropdownOpen = !this.isDropdownOpen;\n }\n }, {\n key: \"closeDropdown\",\n value: function closeDropdown() {\n this.isDropdownOpen = false;\n }\n }, {\n key: \"selectTab\",\n value: function selectTab(tab) {\n this._activeTab = tab;\n this.filterText = \"\";\n this.isDropdownOpen = false;\n }\n }, {\n key: \"setTab\",\n value: function setTab(tab) {\n this._activeTab = tab;\n this.filterText = \"\";\n }\n }, {\n key: \"updateFilter\",\n value: function updateFilter(event) {\n this.filterText = event.target.value;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"_activeTab\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"filterText\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDropdownOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"expandClassCardAccordion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"expandClassCardAccordion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDropdown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDropdown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectTab\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setTab\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setTab\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateFilter\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CourseList);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/dashboard/course-list/course-list-item-past\", [\"exports\", \"@ember/component\", \"@glimmer/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 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n
    \n
    \n

    \n {{#unless (or @course.isPrivateLesson @course.unavailable)}}{{@course.course_name}}{{else}}{{@course.course_name}}{{/unless}}\n {{#if @course.isPrivateLesson}}\n
    \n

    Please select one of the students from the roster below to view their section.

    \n
    \n {{/if}}\n

    \n {{#unless (or @course.unavailable @course.isPrivateLesson)}}\n Go\n to course\n \n {{/unless}}\n
    \n

    \n {{@course.course_code}}\n · \n {{@course.term}}\n

    \n {{#unless @course.isTeacher}}\n {{#if @course.final_grade}}\n
    \n Final Grade\n {{@course.final_grade}}\n {{#if @course.final_score}}\n {{@course.final_score}}%\n {{/if}}\n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n
    \n {{#if @course.teacher.user_avatar_image_url}}\n \n {{else}}\n {{this.instructorInitials}}\n {{/if}}\n
    \n {{#if @course.isTeacher}}\n You taught this course\n {{else if @course.teacher}}\n {{@course.teacher.user_name}}\n \n \n Contact {{@course.teacher.user_name}}\n \n {{else}}\n TBA\n {{/if}}\n
    \n
    \n {{#if @course.roster}}\n
    \n \n \n \n \n \n \n \n \n {{#each @course.roster as |rosteree|}}\n \n \n \n \n {{/each}}\n \n
    NameDirect\n Message
    \n \n
    \n {{#if @course.isPrivateLesson}}\n {{rosteree.user_name}}\n {{else}}\n

    {{rosteree.user_name}}

    \n {{/if}}\n

    \n \n {{rosteree.user_email}}\n \n

    \n
    \n
    \n \n Direct\n Message\n {{rosteree.user_name}}\n \n
    \n
    \n {{#unless @course.isPrivateLesson}}\n \n \n Course Roster\n \n \n {{/unless}}\n {{/if}}\n \n */\n {\n \"id\": \"hnNWK9uB\",\n \"block\": \"[[[11,\\\"li\\\"],[16,0,[29,[\\\"class old courselist__item\\\\n \\\",[52,[30,1,[\\\"isTeacher\\\"]],\\\"teaching\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"unavailable\\\"]],\\\"unavailable\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"roster\\\"]],\\\"has-roster\\\"],\\\"\\\\n \\\",[52,[28,[37,2],[[30,2],[30,0,[\\\"courseKey\\\"]]],null],\\\"course--maximized\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"isPrivateLesson\\\"]],\\\"course--maximized courselist__item--private-lesson\\\"]]]],[16,1,[29,[\\\"course_order_\\\",[30,0,[\\\"courseKey\\\"]]]]],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3],[30,0,[\\\"courseKey\\\"]],false],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__header-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"course__title-row \\\",[52,[30,1,[\\\"isPrivateLesson\\\"]],\\\"has__asterisk asterisk__left\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"course__name\\\"],[12],[1,\\\"\\\\n \\\"],[41,[51,[28,[37,8],[[30,1,[\\\"isPrivateLesson\\\"]],[30,1,[\\\"unavailable\\\"]]],null]],[[[11,3],[16,6,[29,[[30,1,[\\\"course_url\\\"]]]]],[4,[38,3],[\\\"click\\\",[30,4]],null],[12],[1,[30,1,[\\\"course_name\\\"]]],[13]],[]],[[[1,[30,1,[\\\"course_name\\\"]]]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isPrivateLesson\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"asterisk__tooltip\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Please select one of the students from the roster below to view their section.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,8],[[30,1,[\\\"unavailable\\\"]],[30,1,[\\\"isPrivateLesson\\\"]]],null]],[[[1,\\\" \\\"],[11,3],[24,0,\\\"course__goto-button\\\"],[16,6,[29,[[30,1,[\\\"course_url\\\"]]]]],[4,[38,3],[\\\"click\\\",[30,4]],null],[12],[1,\\\"Go\\\\n to course\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"course__code-and-term\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code\\\"],[12],[1,[30,1,[\\\"course_code\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code-and-term__divider\\\"],[12],[1,\\\" · \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__term\\\"],[12],[1,[30,1,[\\\"term\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isTeacher\\\"]]],[[[41,[30,1,[\\\"final_grade\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__grade-pill\\\"],[15,\\\"aria-label\\\",[29,[\\\"Final Grade: \\\",[30,1,[\\\"final_grade\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__grade-pill__label\\\"],[12],[1,\\\"Final Grade\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__grade-pill__value\\\"],[12],[1,[30,1,[\\\"final_grade\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"final_score\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__grade-pill__score\\\"],[12],[1,[30,1,[\\\"final_score\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-chip\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-avatar\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"teacher\\\",\\\"user_avatar_image_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,1,[\\\"teacher\\\",\\\"user_avatar_image_url\\\"]]]]],[15,\\\"alt\\\",[29,[[30,1,[\\\"teacher\\\",\\\"user_name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[30,0,[\\\"instructorInitials\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__instructor-name\\\"],[12],[1,\\\"You taught this course\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"teacher\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__instructor-name\\\"],[12],[1,[30,1,[\\\"teacher\\\",\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"course__user--contact__button\\\"],[24,\\\"title\\\",\\\"Email instructor\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,5],[30,1,[\\\"teacher\\\",\\\"user_id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Contact \\\"],[1,[30,1,[\\\"teacher\\\",\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__instructor-name course__teacher--info__none\\\"],[12],[1,\\\"TBA\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"roster\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list assignments-list--recent course__item own-line\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"activity-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[14,0,\\\"activity-table__head\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header activity-table__header--center\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Direct\\\\n Message\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[14,0,\\\"activity-table__body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,21],[[28,[37,21],[[30,1,[\\\"roster\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"avatar-img\\\"],[15,\\\"src\\\",[29,[[52,[30,6,[\\\"user_avatar_image_url\\\"]],[30,6,[\\\"user_avatar_image_url\\\"]],\\\"/images/avatar.png\\\"]]]],[14,\\\"alt\\\",\\\"User Avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isPrivateLesson\\\"]],[[[1,\\\" \\\"],[11,3],[16,6,[29,[[30,6,[\\\"course_url\\\"]]]]],[24,\\\"target\\\",\\\"_blank\\\"],[24,0,\\\"roster__name\\\"],[4,[38,3],[\\\"click\\\",[30,4]],null],[12],[1,[30,6,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"roster__name\\\"],[12],[1,[30,6,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,2],[14,0,\\\"email\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"email-link\\\"],[15,6,[29,[\\\"mailto:\\\",[30,6,[\\\"user_email\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,6,[\\\"user_email\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"course__user--contact__button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,5],[30,6,[\\\"user_id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Direct\\\\n Message\\\\n \\\"],[1,[30,6,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isPrivateLesson\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"course__roster-toggle\\\"],[16,\\\"aria-label\\\",[29,[[52,[28,[37,2],[[30,2],[30,0,[\\\"courseKey\\\"]]],null],\\\"Collapse\\\",\\\"Expand\\\"],\\\" \\\",[30,1,[\\\"course_name\\\"]],\\\" course card\\\"]]],[16,\\\"aria-expanded\\\",[29,[[28,[37,2],[[30,2],[30,0,[\\\"courseKey\\\"]]],null]]]],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3],[30,0,[\\\"courseKey\\\"]],false],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-clipboard-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Course Roster\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"@course\\\",\\\"@maximizedCard\\\",\\\"@expandClassCardAccordion\\\",\\\"@navigate\\\",\\\"@messageUser\\\",\\\"rosteree\\\"],[\\\"li\\\",\\\"if\\\",\\\"in-list\\\",\\\"on\\\",\\\"fn\\\",\\\"div\\\",\\\"h2\\\",\\\"unless\\\",\\\"or\\\",\\\"a\\\",\\\"p\\\",\\\"i\\\",\\\"span\\\",\\\"img\\\",\\\"button\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\"]]\",\n \"moduleName\": \"bocce/components/dashboard/course-list/course-list-item-past.hbs\",\n \"isStrictMode\": false\n });\n var CourseListItemPast = _exports.default = /*#__PURE__*/function (_Component) {\n function CourseListItemPast() {\n _classCallCheck(this, CourseListItemPast);\n return _callSuper(this, CourseListItemPast, arguments);\n }\n _inherits(CourseListItemPast, _Component);\n return _createClass(CourseListItemPast, [{\n key: \"courseKey\",\n get: function get() {\n return \"\".concat(this.args.termIndex, \"_\").concat(this.args.index);\n }\n }, {\n key: \"instructorInitials\",\n get: function get() {\n var _this$args$course;\n var name = (_this$args$course = this.args.course) === null || _this$args$course === void 0 || (_this$args$course = _this$args$course.teacher) === null || _this$args$course === void 0 ? void 0 : _this$args$course.user_name;\n if (!name) return \"?\";\n return name.split(\" \").map(function (n) {\n return n[0];\n }).join(\"\").toUpperCase().slice(0, 2);\n }\n }]);\n }(_component2.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CourseListItemPast);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/dashboard/course-list/course-list-item\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/template\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _tracking, _template, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec0, _dec1, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/template\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.course.isTeacher}}{{!Temporary Teacher View until a dedicated one is made}}\n
    \n
    \n \n {{#if this.course.isPrivateLesson}}\n

    \n {{this.course.course_name}}\n

    \n
    \n

    Please select one of the students from the roster below to view their section.

    \n
    \n {{else}}\n

    \n \n {{this.course.course_name}}\n \n

    \n Go to course \n {{/if}}\n
    \n

    \n {{this.course.course_code}}\n · \n {{this.course.term}}\n

    \n
    \n
    \n
    \n {{#if this.course.teacher.user_avatar_image_url}}\n \n {{else}}\n \n {{/if}}\n
    \n Currently teaching\n
    \n \n {{#if this.course.roster}}\n
    \n \n \n \n \n \n \n \n \n {{#each this.course.roster as |rosteree|}}\n \n \n \n \n {{/each}}\n \n
    NameDirect\n Message
    \n \n
    \n {{#if this.course.isPrivateLesson}}\n {{rosteree.user_name}}\n {{else}}\n

    {{rosteree.user_name}}

    \n {{/if}}\n

    \n {{rosteree.user_email}}\n

    \n
    \n
    \n \n Direct Message\n {{rosteree.user_name}}\n \n
    \n
    \n {{#unless this.course.isPrivateLesson}}\n \n \n Course Roster\n \n \n {{/unless}}\n {{/if}}\n {{else}}\n
    \n
    \n
    \n

    \n Course Title:\n {{this.course.course_name}}\n

    \n Go to course \n
    \n

    \n \n Course Code:\n {{this.course.course_code}}\n \n · \n {{this.course.term}}\n

    \n
    \n
    \n
    \n {{#if this.course.teacher.user_avatar_image_url}}\n \n {{else}}\n {{this.instructorInitials}}\n {{/if}}\n
    \n {{#if this.course.teacher}}\n {{this.course.teacher.user_name}}\n \n \n Contact {{this.course.teacher.user_name}}\n \n {{else}}\n TBA\n {{/if}}\n
    \n
    \n {{#unless (or this.course.closed this.isExam)}}\n {{! Summary Rows }}\n {{#if this.has_any_status}}\n
    \n {{! Live Classes Row }}\n
    \n
    \n \n
    \n Live Classes\n
    \n {{#if this.has_upcoming}}\n {{#each this.course.ongoing_live_event as |event|}}\n
    \n Ongoing:\n {{event.event_title}}\n
    \n {{else}}\n {{#if this.course.upcoming_live_class.url}}\n
    \n {{this.course.upcoming_live_class.event_title}}\n {{this.course.upcoming_live_class.event_start_at_formatted}}\n
    \n {{/if}}\n {{/each}}\n {{else}}\n No upcoming classes\n {{/if}}\n View in Course\n
    \n
    \n \n {{! Due Row }}\n
    \n \n \n
    \n Due\n
    \n {{#if this.has_due}}\n {{this.course.assignments_due}}\n {{if\n (not (same this.course.assignments_due \"1\"))\n \"Assignments\"\n \"Assignment\"\n }}\n {{this.course.discussions_due}}\n {{if\n (not (same this.course.discussions_due \"1\"))\n \"Discussions\"\n \"Discussion\"\n }}\n {{this.course.quizzes_due}}\n {{if (not (same this.course.quizzes_due \"1\")) \"Quizzes\" \"Quiz\"}}\n {{else}}\n Nothing due\n {{/if}}\n View in Course\n
    \n
    \n \n {{! Unread Row }}\n
    \n
    \n \n
    \n Unread\n
    \n {{#if this.has_unread}}\n {{#if (morethan this.course.unread_announcements_count \"0\")}}\n {{this.course.unread_announcements_count}}\n {{if\n (morethan this.course.unread_announcements_count \"1\")\n \"Announcements\"\n \"Announcement\"\n }}\n {{/if}}\n {{#if (morethan this.course.unread_discussions_count \"0\")}}\n {{this.course.unread_discussions_count}}\n {{if\n (morethan this.course.unread_discussions_count \"1\")\n \"Discussions\"\n \"Discussion\"\n }}\n {{/if}}\n {{else}}\n All caught up\n {{/if}}\n View in Course\n
    \n
    \n \n {{else}}\n
    \n \n You're all caught up — nothing new here\n
    \n {{/if}}\n \n
    \n {{#if @experimentalFeaturesEnabled}}\n {{#if this.course.my_stats}}\n
    \n
    \n
    \n
    \n Current Estimated Grade\n
    \n \n {{this.course.final_grade}}\n {{this.course.final_score}}\n \n \n \n \n
    \n
    \n
    \n Include Unsubmitted\n \n \n \n \n \n \n \n \n
    \n
    \n \n {{#if this.showGradeInfo}}\n \n \n
    \n About This Estimate\n \n \n \n
    \n
    \n

    This grade is just an estimate to provide you with a reference of your\n performance. The final grade is subject to your professor's discretion.

    \n

    By default, this estimate is based on your current assignment grades. If\n you have any unsubmitted assignments that are past their due date, they\n will be counted as zeros in this estimate and impact your grade\n accordingly.

    \n

    If your professor has provided you with the option to turn assignments in\n late, you can toggle that calculation with the \"Unsubmitted as Zeros\"\n toggle.

    \n
    \n
    \n
    \n {{/if}}\n \n {{#if this.showUnsubmittedInfo}}\n \n \n
    \n Include Unsubmitted\n \n \n \n
    \n
    \n

    When this is on, any assignment you haven't submitted yet is counted as\n 0% in your grade estimate.

    \n

    This gives you a\n worst-case view\n of your grade — useful for understanding the full impact of any missing\n work.

    \n

    When off, only your submitted assignments are factored in, which may show\n a higher estimate if you have work still outstanding.

    \n
    \n
    \n \n {{/if}}\n \n
    \n
    \n

    \n Your Course Stats\n \n {{#if this.course.my_stats.studentPerformanceGauge_speed}}\n
    \n \n In-Class Performance:\n
    \n This gauge is a quick, at-a-glance metric of your performance in this\n course.\n
    \n Great Performance!
    \n Good Performance!
    \n Needs Improvement.

    \n Poor Performance.
    \n \n \n {{/if}}\n \n \n Show Historic Course Stats\n \n \n \n \n \n \n {{#if this.showCourseStatsInfo}}\n \n \n
    \n What are historic course average stats?\n \n \n \n
    \n
    \n

    Historic course average stats displays the average performance of\n students both in this and prior sections of the course.

    \n

    A stat like \"Conversations started\" shows the number of new conversations\n historically started by this point in the course (e.g. 3 weeks in).

    \n

    These stats are meant to give you a sense of how you're doing in relation\n to the class average and to help you gauge your progress.

    \n

    If you find these stats to be unhelpful or distracting, you can hide them\n using the Course Average Stats toggle.

    \n
    \n \n \n {{/if}}\n \n
    \n \n {{! On-Time Assignments }}\n
    \n
    \n \n On-Time Assignments\n
    \n \n Me\n \n {{if\n this.course.my_stats.user_assignments_on_time_percentage\n this.course.my_stats.user_assignments_on_time_percentage\n \"0\"\n }}%\n \n
    \n {{#unless @hideClassmateStats}}\n
    \n Historic Course Average\n {{this.course.my_stats.average_submission_on_time_percentage}}%\n
    \n {{/unless}}\n
    \n \n {{! Discussion Posts }}\n
    \n
    \n \n Discussion Posts\n
    \n \n Me\n \n {{if\n this.course.my_stats.user_discussions_on_time_percentage\n this.course.my_stats.user_discussions_on_time_percentage\n \"0\"\n }}%\n \n
    \n {{#unless @hideClassmateStats}}\n
    \n Historic Course Average\n {{this.course.my_stats.average_discussion_on_time_percentage}}%\n
    \n {{/unless}}\n \n \n {{! Conversations Started }}\n
    \n
    \n \n Conversations Started\n
    \n \n Me\n {{this.course.my_stats.discussions_authored}}\n
    \n {{#unless @hideClassmateStats}}\n
    \n Historic Course Average\n {{this.course.my_stats.discussions_authored_avg}}\n
    \n {{/unless}}\n \n \n {{! Time Active }}\n
    \n
    \n \n Time Active\n
    \n
    \n Me\n {{this.course.my_stats.user_total_activity_time}}\n
    \n {{#unless @hideClassmateStats}}\n
    \n Historic Course Average\n {{this.course.my_stats.average_total_activity_time}}\n
    \n {{/unless}}\n
    \n \n \n \n \n {{/if}}\n {{/if}}\n \n \n {{#if this.course.due_this_week}}\n
    \n
    \n

    \n {{if this.course.isTeacher \"Grades \" \"Assignments \"}}Due\n

    \n {{#unless this.dashboardSorter.weightedDivisionsDueSingleItem}}\n
    \n \n \n Sort / Filter Table\n \n
    \n \n \n Re-sort:\n {{if this.dashboardSorter.sortAscending \"Newest First\" \"Oldest First\"}}\n \n {{#unless this.dashboardSorter.weightedDivisionsDueNoSplitter}}\n \n \n {{if\n this.dashboardSorter.weightedDivisions\n \"Combine Groups\"\n \"Group By Activity\"\n }}\n \n {{/unless}}\n
    \n
    \n {{/unless}}\n
    \n
    \n \n \n \n \n \n {{#unless @hideClassmateStats}}\n \n Submissions\n {{#if this.course.isTeacher}}\n \n {{/if}}\n {{else}}\n {{#if this.course.isTeacher}}\n \n {{/if}}\n {{/unless}}\n \n \n \n {{#each this.course.due_this_week as |item_due|}}\n {{#if item_due.is_splitter}}\n \n \n

    \n {{item_due.type_name}}\n ({{item_due.type_weight}}% of Final Grade)\n

    \n \n
    \n {{else}}\n \n \n \n {{format-due-date item_due.due_at}}\n {{#if (is-overdue item_due.due_at)}}\n \n \n \n {{/if}}\n \n {{#unless @hideClassmateStats}}\n \n {{#if this.course.isTeacher}}\n \n {{/if}}\n {{else}}\n {{#if this.course.isTeacher}}\n \n {{/if}}\n {{/unless}}\n \n {{/if}}\n {{else}}\n \n \n No More\n {{if this.course.isTeacher \"Grades \" \"Assignments \"}}Due This Week\n \n \n {{/each}}\n \n
    \n Title\n Due Date\n Time To Grade Avg.\n Student Submissions
    \n {{{item_due.assignment_title}}}\n \n {{#if this.course.isTeacher}}\n {{item_due.due_count}}\n {{else}}\n {{#if item_due.total_submission_count_others}}\n {{item_due.total_submission_count_others}}\n {{else}}\n 0\n {{/if}}\n {{/if}}\n \n {{epoch-to-dayhr\n item_due.graderStatistics.submission_time_to_grade_avg\n }}\n \n {{item_due.due_count}}\n
    \n
    {{! end activity-table__wrapper }}\n
    \n {{/if}}\n {{#unless this.course.isTeacher}}\n
    \n
    \n

    \n Completed Assignments\n

    \n
    \n \n \n Sort / Filter Table\n \n
    \n {{#unless this.dashboardSorter.weightedDivisionsSubmittedSingleItem}}\n \n {{/unless}}\n {{#unless this.dashboardSorter.weightedDivisionsSubmittedSNoDiscussions}}\n \n \n {{if this.dashboardSorter.showDiscussions \"Hide\" \"Show\"}}\n Discussions\n \n {{/unless}}\n {{#if this.args.experimentalFeaturesEnabled}}\n \n {{/if}}\n {{#unless this.dashboardSorter.weightedDivisionsSubmittedSNoUngraded}}\n \n \n {{if\n this.dashboardSorter.weightedDivisions\n \"Combine Groups\"\n \"Group By Activity\"\n }}\n \n {{/unless}}\n
    \n
    \n
    \n {{#if this.course.the_rest.length}}\n
    \n \n \n \n \n {{#if @experimentalFeaturesEnabled}}\n \n {{#unless @hideClassmateStats}}\n \n {{/unless}}\n {{/if}}\n \n \n \n {{#each this.course.the_rest as |other_assignment|}}\n {{#if\n (show-discussions\n other_assignment.is_discussion this.dashboardSorter.showDiscussions\n )\n }}\n {{#if other_assignment.is_splitter}}\n \n \n

    \n {{other_assignment.type_name}}\n ({{other_assignment.type_weight}}% of Final Grade)\n

    \n \n
    \n {{else}}\n {{#if\n (show-ungraded\n other_assignment.grade this.dashboardSorter.showUngraded\n )\n }}\n \n \n {{#if @experimentalFeaturesEnabled}}\n \n {{#unless @hideClassmateStats}}\n \n {{/unless}}\n {{/if}}\n \n {{/if}}\n {{/if}}\n {{/if}}\n {{/each}}\n \n
    \n \n Title\n \n \n Grade\n \n \n Average*
    NOTE: This average is\n calculated based on all current and past submissions over the\n history of this course.
    \n
    \n \n \n \n \n {{{other_assignment.assignment_title}}}\n \n \n {{#if other_assignment.score}}\n {{#unless other_assignment.is_discussion}}\n {{#unless\n other_assignment.submission_grade_matches_current_submission\n }}\n
    \n Re-Grading\n
    \n {{else}}\n
    \n {{other_assignment.grade}}\n
    \n
    \n {{other_assignment.score}}%\n
    \n {{/unless}}\n {{else}}\n
    \n {{#if (morethan other_assignment.score 1.8)}}\n \n {{else if (morethan other_assignment.score 0.8)}}\n \n {{else}}\n \n {{/if}}\n
    \n {{/unless}}\n {{else}}\n
    \n -Ungraded-\n
    \n {{/if}}\n
    \n {{#if other_assignment.submission_score_avg}}\n
    \n {{#if other_assignment.is_discussion}}\n {{#if other_assignment.submission_score_avg}}\n {{#if\n (morethan other_assignment.submission_score_avg 1.8)\n }}\n \n {{else if\n (morethan other_assignment.submission_score_avg 0.8)\n }}\n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{else}}\n {{other_assignment.submission_grade_avg}}\n {{/if}}\n
    \n {{#unless other_assignment.is_discussion}}\n
    \n {{two-decimals other_assignment.submission_score_avg}}%\n
    \n {{/unless}}\n {{else}}\n N/A\n {{/if}}\n
    \n
    {{! end activity-table__wrapper }}\n {{else}}\n
    \n

    No Completed Assignments

    \n
    \n {{/if}}\n
    \n {{else}}\n
    \n

    \n Course Roster\n

    \n \n \n \n \n \n \n \n \n \n \n {{#each this.course.roster as |rosteree|}}\n \n \n \n \n {{rosteree.user_email}}\n \n {{/each}}\n \n
    Last Seen\n Total Activity Email
    \n \n

    {{rosteree.user_name}}

    \n
    \n {{rosteree.user_last_activity_at}}\n {{epoch-to-dayhr\n rosteree.user_total_activity_time\n }}
    \n
    \n {{/unless}}\n \n \n \n {{#if this.course.final_grade}}\n {{#unless this.isExpanded}}\n \n Estimated Current Grade:\n {{this.course.final_grade}}\n \n {{/unless}}\n {{/if}}\n \n {{if this.isExpanded \"Hide\" \"Show\"}}\n full coursework and estimated grade details\n \n \n \n {{/unless}}\n {{/if}}\n \n */\n {\n \"id\": \"i9sY+Lkl\",\n \"block\": \"[[[11,\\\"li\\\"],[16,0,[29,[\\\"courselist__item\\\\n \\\",[52,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],\\\"teaching\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"course\\\",\\\"closed\\\"]],\\\"closed\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isMaximized\\\"]],\\\"course-readmore--open\\\",\\\"course-readmore--closed\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isExpanded\\\"]],\\\"course--maximized\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"course\\\",\\\"isPrivateLesson\\\"]],\\\"course--maximized courselist__item--private-lesson\\\"]]]],[16,\\\"aria-label\\\",[29,[[30,0,[\\\"course\\\",\\\"course_name\\\"]],\\\" course card\\\"]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"expandClassCardAccordion\\\"]],[30,0,[\\\"course_order\\\"]],true],null]],null],[12],[1,\\\"\\\\n \\\"],[41,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__header-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"course__title-row\\\\n \\\",[52,[30,0,[\\\"course\\\",\\\"isPrivateLesson\\\"]],\\\"has__asterisk asterisk__left\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"isPrivateLesson\\\"]],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"course__name\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"course\\\",\\\"course_name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"asterisk__tooltip\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Please select one of the students from the roster below to view their section.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"course__name\\\"],[12],[1,\\\"\\\\n \\\"],[11,3],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]]]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"course\\\",\\\"course_name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,3],[24,0,\\\"course__goto-button\\\"],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]]]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"Go to course \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"course__code-and-term\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"course_code\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code-and-term__divider\\\"],[12],[1,\\\" · \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__term\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"term\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-chip\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-avatar\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_avatar_image_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_avatar_image_url\\\"]]]]],[15,\\\"alt\\\",[29,[[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-chalkboard-teacher\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__instructor-name\\\"],[12],[1,\\\"Currently teaching\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"roster\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list assignments-list--recent course__item own-line\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"activity-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[14,0,\\\"activity-table__head\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Name\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header activity-table__header--center\\\"],[14,\\\"scope\\\",\\\"col\\\"],[12],[1,\\\"Direct\\\\n Message\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[14,0,\\\"activity-table__body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"course\\\",\\\"roster\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"avatar-img\\\"],[15,\\\"src\\\",[29,[[52,[30,2,[\\\"user_avatar_image_url\\\"]],[30,2,[\\\"user_avatar_image_url\\\"]],\\\"/images/avatar.png\\\"]]]],[14,\\\"alt\\\",\\\"User Avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"isPrivateLesson\\\"]],[[[1,\\\" \\\"],[11,3],[16,6,[29,[[30,2,[\\\"course_url\\\"]]]]],[24,\\\"target\\\",\\\"_blank\\\"],[24,0,\\\"roster__name\\\"],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,[30,2,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"roster__name\\\"],[12],[1,[30,2,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,2],[14,0,\\\"email\\\"],[12],[11,3],[24,0,\\\"email-link\\\"],[24,\\\"target\\\",\\\"_blank\\\"],[16,6,[29,[\\\"mailto:\\\",[30,2,[\\\"user_email\\\"]]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"stopModalPropagation\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"user_email\\\"]]],[1,\\\"\\\\n \\\"],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data activity-table__data--action\\\"],[14,\\\"data-label\\\",\\\"Message\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"course__user--contact__button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,3],[30,2,[\\\"user_id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Direct Message\\\\n \\\"],[1,[30,2,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"course\\\",\\\"isPrivateLesson\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"course__roster-toggle\\\"],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"isExpanded\\\"]],\\\"Collapse\\\",\\\"Expand\\\"],\\\" \\\",[30,0,[\\\"course\\\",\\\"course_name\\\"]],\\\" course card\\\"]]],[16,\\\"aria-expanded\\\",[29,[[30,0,[\\\"isExpanded\\\"]]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"expandClassCardAccordion\\\"]],[30,0,[\\\"course_order\\\"]],false],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-clipboard-user\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Course Roster\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__header-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__title-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"course__name\\\"],[15,1,[29,[\\\"course_order_\\\",[30,0,[\\\"course_order\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Course Title:\\\"],[13],[1,\\\"\\\\n \\\"],[11,3],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,1],[30,0,[\\\"course\\\",\\\"closed\\\"]],[30,0,[\\\"course\\\",\\\"start_at\\\"]],[30,0,[\\\"course\\\",\\\"course_code\\\"]]],null]],null],[12],[1,[30,0,[\\\"course\\\",\\\"course_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,3],[24,0,\\\"course__goto-button\\\"],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,1],[30,0,[\\\"course\\\",\\\"closed\\\"]],[30,0,[\\\"course\\\",\\\"start_at\\\"]],[30,0,[\\\"course\\\",\\\"course_code\\\"]]],null]],null],[12],[1,\\\"Go to course \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"course__code-and-term\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Course Code:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"course\\\",\\\"course_code\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code-and-term__divider\\\"],[12],[1,\\\" · \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__term\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"term\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-chip\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-avatar\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_avatar_image_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_avatar_image_url\\\"]]]]],[15,\\\"alt\\\",[29,[[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[30,0,[\\\"instructorInitials\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"teacher\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__instructor-name\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"course__user--contact__button\\\"],[24,\\\"title\\\",\\\"Email instructor\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,3],[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Contact \\\"],[1,[30,0,[\\\"course\\\",\\\"teacher\\\",\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__instructor-name course__teacher--info__none\\\"],[12],[1,\\\"TBA\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,21],[[30,0,[\\\"course\\\",\\\"closed\\\"]],[30,0,[\\\"isExam\\\"]]],null]],[[[41,[30,0,[\\\"has_any_status\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__summary-rows\\\"],[12],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course__summary-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__summary-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-video\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__summary-label\\\"],[12],[1,\\\"Live Classes\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__summary-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"has_upcoming\\\"]],[[[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"course\\\",\\\"ongoing_live_event\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__live-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__live-label\\\"],[12],[1,\\\"Ongoing:\\\"],[13],[1,\\\"\\\\n \\\"],[11,3],[24,0,\\\"course__live-date\\\"],[16,6,[29,[[30,4,[\\\"url\\\"]]]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,[30,4,[\\\"event_title\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],[[[41,[30,0,[\\\"course\\\",\\\"upcoming_live_class\\\",\\\"url\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__live-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__live-label\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"upcoming_live_class\\\",\\\"event_title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__live-date\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"upcoming_live_class\\\",\\\"event_start_at_formatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__summary-empty\\\"],[12],[1,\\\"No upcoming classes\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[11,3],[24,0,\\\"course__row-link\\\"],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]],\\\"/event\\\"]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"View in Course\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course__summary-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"course__summary-icon \\\",[52,[30,0,[\\\"has_due\\\"]],\\\"course__summary-icon--due\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-file-lines\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"course__summary-label \\\",[52,[30,0,[\\\"has_due\\\"]],\\\"course__summary-label--due\\\"]]]],[12],[1,\\\"Due\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__summary-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"has_due\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__due-badge\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"assignments_due\\\"]]],[1,\\\"\\\\n \\\"],[1,[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"course\\\",\\\"assignments_due\\\"]],\\\"1\\\"],null]],null],\\\"Assignments\\\",\\\"Assignment\\\"]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__due-badge\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"discussions_due\\\"]]],[1,\\\"\\\\n \\\"],[1,[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"course\\\",\\\"discussions_due\\\"]],\\\"1\\\"],null]],null],\\\"Discussions\\\",\\\"Discussion\\\"]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__due-badge\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"quizzes_due\\\"]]],[1,\\\"\\\\n \\\"],[1,[52,[28,[37,22],[[28,[37,23],[[30,0,[\\\"course\\\",\\\"quizzes_due\\\"]],\\\"1\\\"],null]],null],\\\"Quizzes\\\",\\\"Quiz\\\"]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__summary-empty\\\"],[12],[1,\\\"Nothing due\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[11,3],[24,0,\\\"course__row-link\\\"],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]],\\\"/work\\\"]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"View in Course\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course__summary-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__summary-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-message-dots\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__summary-label\\\"],[12],[1,\\\"Unread\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__summary-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"has_unread\\\"]],[[[41,[28,[37,24],[[30,0,[\\\"course\\\",\\\"unread_announcements_count\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__unread-badge\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"unread_announcements_count\\\"]]],[1,\\\"\\\\n \\\"],[1,[52,[28,[37,24],[[30,0,[\\\"course\\\",\\\"unread_announcements_count\\\"]],\\\"1\\\"],null],\\\"Announcements\\\",\\\"Announcement\\\"]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,24],[[30,0,[\\\"course\\\",\\\"unread_discussions_count\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__unread-badge\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"unread_discussions_count\\\"]]],[1,\\\"\\\\n \\\"],[1,[52,[28,[37,24],[[30,0,[\\\"course\\\",\\\"unread_discussions_count\\\"]],\\\"1\\\"],null],\\\"Discussions\\\",\\\"Discussion\\\"]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__summary-empty\\\"],[12],[1,\\\"All caught up\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[11,3],[24,0,\\\"course__row-link\\\"],[16,6,[29,[[30,0,[\\\"course\\\",\\\"course_url\\\"]],\\\"/activity\\\"]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"View in Course\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course__all-clear\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-circle-check course__all-clear-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__all-clear-text\\\"],[12],[1,\\\"You're all caught up — nothing new here\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"expand__course_details\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,5],[[[41,[30,0,[\\\"course\\\",\\\"my_stats\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list assignments-list--due course__item own-line\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__viewer\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignments-list__head-row grade__viewer__header-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__viewer__title-group\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"grade__viewer__label\\\"],[12],[1,\\\"Current Estimated Grade\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__viewer__grade-display\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"grade__viewer__grade\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"course\\\",\\\"final_grade\\\"]]],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"grade__viewer__score\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"final_score\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grade__info-trigger\\\"],[24,\\\"aria-label\\\",\\\"About this grade estimate\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"openGradeInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-info-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__viewer__unsubmitted-toggle\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"classmate-stats-toggle__label\\\"],[12],[1,\\\"Include Unsubmitted\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grade__info-trigger\\\"],[24,\\\"aria-label\\\",\\\"About including unsubmitted assignments\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"openUnsubmittedInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-info-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"classmate-stats-toggle\\\\n \\\",[52,[30,0,[\\\"dashboardSorter\\\",\\\"ungradedAsZero\\\"]],\\\"is-on\\\"]]]],[16,\\\"aria-pressed\\\",[29,[[52,[30,0,[\\\"dashboardSorter\\\",\\\"ungradedAsZero\\\"]],\\\"true\\\",\\\"false\\\"]]]],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"dashboardSorter\\\",\\\"ungradedAsZero\\\"]],\\\"Include unsubmitted as zero: On. Click to disable.\\\",\\\"Include unsubmitted as zero: Off. Click to enable.\\\"]]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"assignmentZeroToggle\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"classmate-stats-toggle__track\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"classmate-stats-toggle__thumb\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showGradeInfo\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"grade__info-backdrop\\\"],[24,\\\"role\\\",\\\"presentation\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeGradeInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"grade__info-modal\\\"],[24,\\\"role\\\",\\\"dialog\\\"],[24,\\\"aria-modal\\\",\\\"true\\\"],[16,\\\"aria-labelledby\\\",[29,[\\\"grade-info-title-\\\",[30,0,[\\\"course_order\\\"]]]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"stopModalPropagation\\\"]]],null],[4,[38,2],[\\\"keydown\\\",[30,0,[\\\"handleGradeInfoKeydown\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__info-modal__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[15,1,[29,[\\\"grade-info-title-\\\",[30,0,[\\\"course_order\\\"]]]]],[14,0,\\\"grade__info-modal__title\\\"],[12],[1,\\\"About This Estimate\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grade__info-modal__close\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeGradeInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__info-modal__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"This grade is just an estimate to provide you with a reference of your\\\\n performance. The final grade is subject to your professor's discretion.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"By default, this estimate is based on your current assignment grades. If\\\\n you have any unsubmitted assignments that are past their due date, they\\\\n will be counted as zeros in this estimate and impact your grade\\\\n accordingly.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"If your professor has provided you with the option to turn assignments in\\\\n late, you can toggle that calculation with the \\\\\\\"Unsubmitted as Zeros\\\\\\\"\\\\n toggle.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUnsubmittedInfo\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"grade__info-backdrop\\\"],[24,\\\"role\\\",\\\"presentation\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeUnsubmittedInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"grade__info-modal\\\"],[24,\\\"role\\\",\\\"dialog\\\"],[24,\\\"aria-modal\\\",\\\"true\\\"],[16,\\\"aria-labelledby\\\",[29,[\\\"unsubmitted-info-title-\\\",[30,0,[\\\"course_order\\\"]]]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"stopModalPropagation\\\"]]],null],[4,[38,2],[\\\"keydown\\\",[30,0,[\\\"handleUnsubmittedInfoKeydown\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__info-modal__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[15,1,[29,[\\\"unsubmitted-info-title-\\\",[30,0,[\\\"course_order\\\"]]]]],[14,0,\\\"grade__info-modal__title\\\"],[12],[1,\\\"Include Unsubmitted\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grade__info-modal__close\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeUnsubmittedInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__info-modal__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"When this is on, any assignment you haven't submitted yet is counted as\\\\n 0% in your grade estimate.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"This gives you a\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,\\\"worst-case view\\\"],[13],[1,\\\"\\\\n of your grade — useful for understanding the full impact of any missing\\\\n work.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"When off, only your submitted assignments are factored in, which may show\\\\n a higher estimate if you have work still outstanding.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"expand__course_details__section\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignments-list__head-row course-stats-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[14,0,\\\"assignments-list__head\\\"],[12],[1,\\\"\\\\n Your Course Stats\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"toggle__course__stats\\\"],[24,\\\"aria-label\\\",\\\"About course average stats\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"openCourseStatsInfo\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-info-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"student__performance__gauge has__asterisk asterisk__right\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fal fa-tachometer-alt-\\\",[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]],\\\"\\\\n student__performance__gauge--\\\",[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"In-Class Performance:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"asterisk__tooltip\\\"],[12],[1,\\\"\\\\n This gauge is a quick, at-a-glance metric of your performance in this\\\\n course.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[[52,[28,[37,23],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]],\\\"fastest\\\"],null],\\\"current-selection\\\"]]]],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-tachometer-alt-fastest\\\"],[12],[13],[1,\\\"Great Performance!\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[[52,[28,[37,23],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]],\\\"fast\\\"],null],\\\"current-selection\\\"]]]],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-tachometer-alt-fast\\\"],[12],[13],[1,\\\"Good Performance!\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[[52,[28,[37,23],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]],\\\"slow\\\"],null],\\\"current-selection\\\"]]]],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-tachometer-alt-slow\\\"],[12],[13],[1,\\\"Needs Improvement.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[[52,[28,[37,23],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"studentPerformanceGauge_speed\\\"]],\\\"slowest\\\"],null],\\\"current-selection\\\"]]]],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-tachometer-alt-slowest\\\"],[12],[13],[1,\\\"Poor Performance.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"classmate-stats-toggle \\\",[52,[51,[30,6]],\\\"is-on\\\"]]]],[16,\\\"aria-pressed\\\",[29,[[52,[51,[30,6]],\\\"true\\\",\\\"false\\\"]]]],[16,\\\"aria-label\\\",[29,[[52,[30,6],\\\"Show\\\",\\\"Hide\\\"],\\\" course average stats\\\"]]],[4,[38,2],[\\\"click\\\",[30,7]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"classmate-stats-toggle__label\\\\n \\\",[52,[51,[30,6]],\\\"is-active\\\"]]]],[12],[1,\\\"Show Historic Course Stats\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"classmate-stats-toggle__track\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"classmate-stats-toggle__thumb\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCourseStatsInfo\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"grade__info-backdrop\\\"],[24,\\\"role\\\",\\\"presentation\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeCourseStatsInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"grade__info-modal\\\"],[24,\\\"role\\\",\\\"dialog\\\"],[24,\\\"aria-modal\\\",\\\"true\\\"],[16,\\\"aria-labelledby\\\",[29,[\\\"stats-info-title-\\\",[30,0,[\\\"course_order\\\"]]]]],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"stopModalPropagation\\\"]]],null],[4,[38,2],[\\\"keydown\\\",[30,0,[\\\"handleCourseStatsKeydown\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__info-modal__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[15,1,[29,[\\\"stats-info-title-\\\",[30,0,[\\\"course_order\\\"]]]]],[14,0,\\\"grade__info-modal__title\\\"],[12],[1,\\\"What are historic course average stats?\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grade__info-modal__close\\\"],[24,\\\"aria-label\\\",\\\"Close\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeCourseStatsInfo\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade__info-modal__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Historic course average stats displays the average performance of\\\\n students both in this and prior sections of the course.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"A stat like \\\\\\\"Conversations started\\\\\\\" shows the number of new conversations\\\\n historically started by this point in the course (e.g. 3 weeks in).\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"These stats are meant to give you a sense of how you're doing in relation\\\\n to the class average and to help you gauge your progress.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"If you find these stats to be unhelpful or distracting, you can hide them\\\\n using the Course Average Stats toggle.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course-stats__cards\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course-stats__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-lines\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n On-Time Assignments\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"course-stats__card-row course-stats__card-row--me\\\\n \\\",[52,[28,[37,24],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_assignments_on_time_percentage\\\"]],[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"average_submission_on_time_percentage\\\"]]],null],\\\"row--better\\\",\\\"row--worse\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Me\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_assignments_on_time_percentage\\\"]],[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_assignments_on_time_percentage\\\"]],\\\"0\\\"]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Historic Course Average\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"average_submission_on_time_percentage\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course-stats__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-comments\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Discussion Posts\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"course-stats__card-row course-stats__card-row--me\\\\n \\\",[52,[28,[37,24],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_discussions_on_time_percentage\\\"]],[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"average_discussion_on_time_percentage\\\"]]],null],\\\"row--better\\\",\\\"row--worse\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Me\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_discussions_on_time_percentage\\\"]],[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_discussions_on_time_percentage\\\"]],\\\"0\\\"]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Historic Course Average\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"average_discussion_on_time_percentage\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course-stats__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-message-dots\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Conversations Started\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"course-stats__card-row course-stats__card-row--me\\\\n \\\",[52,[28,[37,24],[[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"discussions_authored\\\"]],[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"discussions_authored_avg\\\"]]],null],\\\"row--better\\\",\\\"row--worse\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Me\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"discussions_authored\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Historic Course Average\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"discussions_authored_avg\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course-stats__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-stopwatch\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Time Active\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course-stats__card-row course-stats__card-row--me\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Me\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"user_total_activity_time\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"course-stats__card-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-label\\\"],[12],[1,\\\"Historic Course Average\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course-stats__card-value\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"my_stats\\\",\\\"average_total_activity_time\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[3,\\\" end expand__course_details__section \\\"],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__readmore-section expand__course_details__section\\\"],[15,1,[29,[\\\"read_more_\\\",[30,0,[\\\"course_order\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"due_this_week\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list assignments-list--due course__item own-line\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignments-list__head-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[14,0,\\\"assignments-list__head\\\"],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],\\\"Grades \\\",\\\"Assignments \\\"]],[1,\\\"Due\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisionsDueSingleItem\\\"]]],[[[1,\\\" \\\"],[10,\\\"details\\\"],[14,0,\\\"table-sort-dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"summary\\\"],[14,0,\\\"table-sort-dropdown__trigger\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sliders-h\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Sort / Filter Table\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"table-sort-dropdown__menu\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"table-sort-dropdown__item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"sortAssignments\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sort\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Re-sort:\\\\n \\\"],[1,[52,[30,0,[\\\"dashboardSorter\\\",\\\"sortAscending\\\"]],\\\"Newest First\\\",\\\"Oldest First\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisionsDueNoSplitter\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"table-sort-dropdown__item\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleWeightedDivisions\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far\\\\n \\\",[52,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisions\\\"]],\\\"fa-bars\\\",\\\"fa-stream\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisions\\\"]],\\\"Combine Groups\\\",\\\"Group By Activity\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-table__wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"activity-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[14,0,\\\"activity-table__head\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-sticky-note\\\"],[12],[13],[1,\\\"\\\\n Title\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header day__date\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-check\\\"],[12],[13],[1,\\\"\\\\n Due Date\\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header sub__count__percent\\\"],[15,\\\"title\\\",[29,[[52,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],\\\"Student\\\",\\\"Classmate\\\"],\\\" Submissions\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-user-friends\\\"],[12],[13],[1,\\\"\\\\n Submissions\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header sub__count__percent\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-user-friends\\\"],[12],[13],[1,\\\"\\\\n Time To Grade Avg.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header sub__count__percent\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-user-friends\\\"],[12],[13],[1,\\\"\\\\n Student Submissions\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[14,0,\\\"activity-table__body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"course\\\",\\\"due_this_week\\\"]]],null]],null],null,[[[41,[30,8,[\\\"is_splitter\\\"]],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row activity-table__row-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[15,\\\"colspan\\\",[29,[[52,[30,6],\\\"2\\\",\\\"3\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[14,0,\\\"assignments-list__header\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,8,[\\\"type_name\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,8,[\\\"type_weight\\\"]]],[1,\\\"% of Final Grade)\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"activity-table__row\\\\n \\\",[52,[28,[37,31],[[30,8,[\\\"due_at\\\"]]],null],\\\"assignments-list__item--overdue\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[12],[1,\\\"\\\\n \\\"],[11,3],[16,6,[29,[[30,8,[\\\"url\\\"]]]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[2,[30,8,[\\\"assignment_title\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data day__date\\\"],[14,\\\"data-label\\\",\\\"Due Date\\\"],[15,\\\"title\\\",[29,[[28,[37,32],[[30,8,[\\\"due_at\\\"]],\\\"full\\\"],null]]]],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,32],[[30,8,[\\\"due_at\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[28,[37,31],[[30,8,[\\\"due_at\\\"]]],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"due-status due-status--overdue\\\"],[15,\\\"aria-label\\\",[29,[\\\"Overdue - \\\",[28,[37,32],[[30,8,[\\\"due_at\\\"]],\\\"full\\\"],null]]]],[15,\\\"data-tooltip\\\",[29,[\\\"Overdue — \\\",[28,[37,32],[[30,8,[\\\"due_at\\\"]],\\\"full\\\"],null]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-exclamation\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Submissions\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[1,[30,8,[\\\"due_count\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,8,[\\\"total_submission_count_others\\\"]],[[[1,\\\" \\\"],[1,[30,8,[\\\"total_submission_count_others\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" 0\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Time To Grade\\\"],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,33],[[30,8,[\\\"graderStatistics\\\",\\\"submission_time_to_grade_avg\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Submissions\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,8,[\\\"due_count\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[8]],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row empty\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[15,\\\"colspan\\\",[29,[[52,[30,6],\\\"2\\\",\\\"3\\\"]]]],[12],[1,\\\"\\\\n No More\\\\n \\\"],[1,[52,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]],\\\"Grades \\\",\\\"Assignments \\\"]],[1,\\\"Due This Week\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"course\\\",\\\"isTeacher\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list assignments-list--recent course__item own-line\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignments-list__head-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[14,0,\\\"assignments-list__head\\\"],[12],[1,\\\"\\\\n Completed Assignments\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"details\\\"],[14,0,\\\"table-sort-dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"summary\\\"],[14,0,\\\"table-sort-dropdown__trigger\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sliders-h\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Sort / Filter Table\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"table-sort-dropdown__menu\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisionsSubmittedSingleItem\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"table-sort-dropdown__item\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"sortAssignments\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sort\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Re-sort:\\\\n \\\"],[1,[52,[30,0,[\\\"dashboardSorter\\\",\\\"sortAscending\\\"]],\\\"Newest First\\\",\\\"Oldest First\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisionsSubmittedSNoDiscussions\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"table-sort-dropdown__item\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleDiscussions\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far\\\\n \\\",[52,[30,0,[\\\"dashboardSorter\\\",\\\"showDiscussions\\\"]],\\\"fa-eye-slash\\\",\\\"fa-eye\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"dashboardSorter\\\",\\\"showDiscussions\\\"]],\\\"Hide\\\",\\\"Show\\\"]],[1,\\\"\\\\n Discussions\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"args\\\",\\\"experimentalFeaturesEnabled\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"table-sort-dropdown__item\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleUngraded\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far\\\\n \\\",[52,[30,0,[\\\"dashboardSorter\\\",\\\"showUngraded\\\"]],\\\"fa-eye-slash\\\",\\\"fa-eye\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"dashboardSorter\\\",\\\"showUngraded\\\"]],\\\"Hide\\\",\\\"Show\\\"]],[1,\\\"\\\\n Ungraded\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisionsSubmittedSNoUngraded\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"table-sort-dropdown__item\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleWeightedDivisions\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far\\\\n \\\",[52,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisions\\\"]],\\\"fa-bars\\\",\\\"fa-stream\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"dashboardSorter\\\",\\\"weightedDivisions\\\"]],\\\"Combine Groups\\\",\\\"Group By Activity\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"the_rest\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"activity-table__wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"activity-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[14,0,\\\"activity-table__head\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sticky-note\\\"],[12],[13],[1,\\\"\\\\n Title\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header grade__score\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-star\\\"],[12],[13],[1,\\\"\\\\n Grade\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header grade__score has__asterisk\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-user-friends\\\"],[12],[13],[1,\\\"\\\\n Average*\\\"],[10,0],[14,0,\\\"asterisk__tooltip\\\"],[12],[1,\\\"NOTE: This average is\\\\n calculated based on all current and past submissions over the\\\\n history of this course.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[14,0,\\\"activity-table__body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"course\\\",\\\"the_rest\\\"]]],null]],null],null,[[[41,[28,[37,34],[[30,9,[\\\"is_discussion\\\"]],[30,0,[\\\"dashboardSorter\\\",\\\"showDiscussions\\\"]]],null],[[[41,[30,9,[\\\"is_splitter\\\"]],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[15,\\\"colspan\\\",[29,[[52,[30,6],\\\"2\\\",\\\"3\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[14,0,\\\"assignments-list__header\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,9,[\\\"type_name\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,9,[\\\"type_weight\\\"]]],[1,\\\"% of Final Grade)\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,35],[[30,9,[\\\"grade\\\"]],[30,0,[\\\"dashboardSorter\\\",\\\"showUngraded\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"due-status due-status--submitted\\\"],[14,\\\"aria-label\\\",\\\"Submitted\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,3],[24,0,\\\"assignments-list__item__title\\\"],[16,6,[29,[[30,9,[\\\"url\\\"]]]]],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n \\\"],[2,[30,9,[\\\"assignment_title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,9,[\\\"score\\\"]],[[[41,[51,[30,9,[\\\"is_discussion\\\"]]],[[[41,[51,[30,9,[\\\"submission_grade_matches_current_submission\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list__item__score regrade\\\"],[12],[1,\\\"\\\\n Re-Grading\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list__item__grade\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,9,[\\\"grade\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignments-list__item__score\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,9,[\\\"score\\\"]]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list__item__grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,9,[\\\"score\\\"]],1.8],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,9,[\\\"score\\\"]],0.8],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-star-half\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list__item__score\\\"],[12],[1,\\\"\\\\n -Ungraded-\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Average*\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,9,[\\\"submission_score_avg\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list__item__grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,9,[\\\"is_discussion\\\"]],[[[41,[30,9,[\\\"submission_score_avg\\\"]],[[[41,[28,[37,24],[[30,9,[\\\"submission_score_avg\\\"]],1.8],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,24],[[30,9,[\\\"submission_score_avg\\\"]],0.8],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-star-half\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]]],[]],null]],[]],[[[1,\\\" \\\"],[1,[30,9,[\\\"submission_grade_avg\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,9,[\\\"is_discussion\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list__item__score\\\"],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,36],[[30,9,[\\\"submission_score_avg\\\"]]],null]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" N/A\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null]],[9]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"activity-table__wrapper activity-table__wrapper--empty\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"activity-table__empty-state\\\"],[12],[1,\\\"No Completed Assignments\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignments-list assignments-list--recent course__item own-line\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[14,0,\\\"assignments-list__head\\\"],[12],[1,\\\"\\\\n Course Roster\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"activity-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[14,0,\\\"activity-table__head\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-eye\\\"],[12],[13],[1,\\\" Last Seen\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-stopwatch\\\"],[12],[13],[1,\\\"\\\\n Total Activity\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"activity-table__header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[12],[13],[1,\\\" Email\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[14,0,\\\"activity-table__body\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,0,[\\\"course\\\",\\\"roster\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"activity-table__row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"avatar-img\\\"],[15,\\\"src\\\",[29,[[52,[30,10,[\\\"user_avatar_image_url\\\"]],[30,10,[\\\"user_avatar_image_url\\\"]],\\\"/images/avatar.png\\\"]]]],[14,\\\"alt\\\",\\\"User Avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,[30,10,[\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Last Seen\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,10,[\\\"user_last_activity_at\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Total Activity\\\"],[12],[1,[28,[35,33],[[30,10,[\\\"user_total_activity_time\\\"]]],null]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"activity-table__data\\\"],[14,\\\"data-label\\\",\\\"Email\\\"],[12],[1,[30,10,[\\\"user_email\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"course__expand-button\\\"],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"isExpanded\\\"]],\\\"Collapse\\\",\\\"Expand\\\"],\\\" \\\",[30,0,[\\\"course\\\",\\\"course_name\\\"]],\\\" course card\\\"]]],[16,\\\"aria-expanded\\\",[29,[[30,0,[\\\"isExpanded\\\"]]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"expandClassCardAccordion\\\"]],[30,0,[\\\"course_order\\\"]],false],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"course\\\",\\\"final_grade\\\"]],[[[41,[51,[30,0,[\\\"isExpanded\\\"]]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"course__expand-grade\\\"],[15,\\\"aria-label\\\",[29,[\\\"Estimated current grade: \\\",[30,0,[\\\"course\\\",\\\"final_grade\\\"]]]]],[12],[1,\\\"\\\\n Estimated Current Grade:\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,[30,0,[\\\"course\\\",\\\"final_grade\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,1],[14,0,\\\"course__expand-button__label\\\"],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"isExpanded\\\"]],\\\"Hide\\\",\\\"Show\\\"]],[1,\\\"\\\\n full coursework and estimated grade details\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far fa-chevron-down \\\",[52,[30,0,[\\\"isExpanded\\\"]],\\\"course__expand-chevron--open\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[13]],[\\\"@navigate\\\",\\\"rosteree\\\",\\\"@messageUser\\\",\\\"event\\\",\\\"@experimentalFeaturesEnabled\\\",\\\"@hideClassmateStats\\\",\\\"@toggleClassmateStats\\\",\\\"item_due\\\",\\\"other_assignment\\\",\\\"rosteree\\\"],[\\\"li\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"div\\\",\\\"h2\\\",\\\"p\\\",\\\"a\\\",\\\"i\\\",\\\"span\\\",\\\"img\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"button\\\",\\\"unless\\\",\\\"or\\\",\\\"not\\\",\\\"same\\\",\\\"morethan\\\",\\\"h4\\\",\\\"strong\\\",\\\"h3\\\",\\\"br\\\",\\\"details\\\",\\\"summary\\\",\\\"is-overdue\\\",\\\"format-due-date\\\",\\\"epoch-to-dayhr\\\",\\\"show-discussions\\\",\\\"show-ungraded\\\",\\\"two-decimals\\\"]]\",\n \"moduleName\": \"bocce/components/dashboard/course-list/course-list-item.hbs\",\n \"isStrictMode\": false\n });\n var CourseListItem = _exports.default = (_dec = (0, _object.computed)(\"course.course_code\"), _dec2 = (0, _object.computed)(\"course.my_stats.user_assignments_on_time_percentage\"), _dec3 = (0, _object.computed)(\"course.my_stats.user_discussions_on_time_percentage\"), _dec4 = (0, _object.computed)(\"course.my_stats.average_submission_on_time_percentage\"), _dec5 = (0, _object.computed)(\"course.my_stats.average_discussion_on_time_percentage\"), _dec6 = (0, _object.computed)(\"course\"), _dec7 = (0, _object.computed)(\"unread_total_count\"), _dec8 = (0, _object.computed)(\"course.unread_discussions_count\", \"course.unread_announcements_count\", \"course.unread_assignment_comments_count\"), _dec9 = (0, _object.computed)(\"course.upcoming_live_events_count\"), _dec0 = (0, _object.computed)(\"course.quizzes_overdue\", \"course.quizzes_due\", \"course.assignments_overdue\", \"course.assignments_due\"), _dec1 = (0, _object.computed)(\"course.assignments_due\", \"course.quizzes_due\", \"course.discussions_due\"), _dec10 = (0, _object.computed)(\"course.assignments_overdue\", \"course.quizzes_overdue\", \"course.discussions_overdue\"), _class = /*#__PURE__*/function (_Component) {\n function CourseListItem() {\n var _this;\n _classCallCheck(this, CourseListItem);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, CourseListItem, [].concat(args));\n _initializerDefineProperty(_this, \"gradeCalculator\", _descriptor, _this);\n _initializerDefineProperty(_this, \"dashboardSorter\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"isMaximized\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"showGradeInfo\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"showCourseStatsInfo\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"showUnsubmittedInfo\", _descriptor6, _this);\n _defineProperty(_this, \"firstLoad\", true);\n _initializerDefineProperty(_this, \"displayStatsPopup\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"hideClassmateStats\", _descriptor8, _this);\n return _this;\n }\n _inherits(CourseListItem, _Component);\n return _createClass(CourseListItem, [{\n key: \"sortAssignmentsProcess\",\n value:\n // First time loading the component? Let it through\n\n function sortAssignmentsProcess(stype, splitter, ascending) {\n var assignments = this.args.courseRaw[stype];\n if (!assignments) {\n return;\n }\n\n // Remove any assignment objects from array, where is_splitter is true\n assignments = assignments.filter(function (assignment) {\n return !assignment.is_splitter;\n });\n if (assignments.length === 1) {\n this[stype + \"SingleItem\"] = true;\n }\n var sorted = assignments.sort(function (a, b) {\n // Convert due dates to epoch time\n var aDue = a.due_at ? a.due_at : 0;\n var bDue = b.due_at ? b.due_at : 0;\n\n // Convert due dates to epoch time\n aDue = new Date(aDue).getTime();\n bDue = new Date(bDue).getTime();\n if (splitter) {\n if (a.assignment_type === b.assignment_type) {\n if (ascending) {\n return aDue - bDue;\n } else {\n return bDue - aDue;\n }\n } else {\n return a.assignment_type.localeCompare(b.assignment_type);\n }\n } else {\n if (ascending) {\n return aDue - bDue;\n } else {\n return bDue - aDue;\n }\n }\n });\n if (splitter) {\n var currentGroup = \"\";\n var currentWeight = \"\";\n var sortedWithDividers = [];\n var splitterCount = 0;\n sorted.forEach(function (assignment) {\n var groupName = assignment[\"assignment_type\"];\n var groupWeight = assignment[\"assignment_weight\"];\n var isDiscussion = assignment[\"is_discussion\"];\n if (groupName !== currentGroup) {\n // We want to ensure that there aren't any non-discussion assignments in the group\n sorted.forEach(function (assignment2) {\n if (assignment2[\"assignment_type\"] === groupName && !assignment2[\"is_discussion\"]) {\n isDiscussion = false;\n }\n });\n currentGroup = groupName;\n currentWeight = groupWeight;\n sortedWithDividers.push({\n is_splitter: true,\n type_name: groupName,\n type_weight: groupWeight,\n is_discussion: isDiscussion\n });\n splitterCount++;\n }\n sortedWithDividers.push(assignment);\n });\n if (splitterCount < 2) {\n this[stype + \"NoSplitter\"] = true;\n } else {\n sorted = sortedWithDividers;\n }\n }\n return sorted;\n }\n }, {\n key: \"isExpanded\",\n get: function get() {\n return this.args.maximizedCard.includes(this.course_order);\n }\n }, {\n key: \"course\",\n get: function get() {\n var fullIndex = this.args.termIndex + \"_\" + this.args.index;\n var course = this.args.courseRaw;\n\n // Always compute the estimated grade for student courses so it's available\n // in the collapsed state (expand button) as well as the expanded grade viewer.\n if (!course.isTeacher && !course.closed && course.gradebook_entries) {\n var ungradedAsZeroString = this.dashboardSorter.ungradedAsZero ? \"true\" : \"false\";\n var resortUngradedAsZero = ungradedAsZeroString !== this.currentUngradedAsZero;\n if (!course.final_grade || resortUngradedAsZero) {\n var assignments = course.gradebook_entries;\n var finalGrade = this.gradeCalculator.calculateFinalGrade(assignments, this.unmuteAllGrades, this.dashboardSorter.ungradedAsZero);\n var finalAverageClassmateGrade = this.gradeCalculator.calculateFinalGrade(assignments, this.unmuteAllGrades, this.dashboardSorter.ungradedAsZero, {\n score: \"submission_score_avg\",\n grade: \"submission_grade_avg\"\n });\n course.final_grade = finalGrade.finalGrade;\n course.final_score = finalGrade.weightedScore;\n course.finalAvrageClassmateGrade = finalAverageClassmateGrade.finalGrade;\n course.finalAvrageClassmateScore = finalAverageClassmateGrade.weightedScore;\n this.currentUngradedAsZero = ungradedAsZeroString;\n }\n }\n\n // Return early when collapsed — no need for expensive assignment sorting\n if (!this.args.maximizedCard.includes(fullIndex)) {\n return course;\n }\n\n // Teacher courses don't need student-specific assignment sorting\n if (course.isTeacher) {\n return course;\n }\n\n // If the weighted divisions are toggled on/off, or if the course is not sorted, re-sort the assignments\n var resortWeightedDivisions = this.dashboardSorter.weightedDivisions !== this.currentWeightedDivisions;\n var resortAscending = this.dashboardSorter.sortAscending !== this.currentSortAscending;\n if (this.firstLoad || resortWeightedDivisions || resortAscending) {\n course.due_this_week = this.sortAssignmentsProcess(\"due_this_week\", this.dashboardSorter.weightedDivisions, this.dashboardSorter.sortAscending);\n course.the_rest = this.sortAssignmentsProcess(\"the_rest\", this.dashboardSorter.weightedDivisions, this.dashboardSorter.sortAscending);\n this.currentWeightedDivisions = this.dashboardSorter.weightedDivisions;\n this.currentSortAscending = this.dashboardSorter.sortAscending;\n }\n this.firstLoad = false;\n return JSON.parse(JSON.stringify(course));\n }\n }, {\n key: \"instructorInitials\",\n get: function get() {\n var _this$course$teacher;\n var name = (_this$course$teacher = this.course.teacher) === null || _this$course$teacher === void 0 ? void 0 : _this$course$teacher.user_name;\n if (!name) return \"?\";\n return name.split(\" \").map(function (n) {\n return n[0];\n }).join(\"\").toUpperCase().slice(0, 2);\n }\n }, {\n key: \"has_any_status\",\n get: function get() {\n return this.has_upcoming || this.has_due || this.has_unread;\n }\n\n // Exam courses get a slimmed-down card -- students shouldn't see any course stats\n }, {\n key: \"isExam\",\n get: function get() {\n var examCourses = [\"bsp-100\", \"oharm-001\", \"olmsc-001\"];\n var isExam = false;\n var course = this.course.course_code.split(\".\")[0].toLowerCase();\n for (var _i = 0, _examCourses = examCourses; _i < _examCourses.length; _i++) {\n var examCourse = _examCourses[_i];\n examCourse = examCourse.toLowerCase();\n if (course.indexOf(examCourse) !== -1) {\n isExam = true;\n break;\n }\n }\n return isExam;\n }\n }, {\n key: \"userAssignmentsOnTimePercentage\",\n get: function get() {\n return (0, _template.htmlSafe)(this.course.my_stats.user_assignments_on_time_percentage);\n }\n }, {\n key: \"userDiscussionsOnTimePercentage\",\n get: function get() {\n return (0, _template.htmlSafe)(this.course.my_stats.user_discussions_on_time_percentage);\n }\n }, {\n key: \"averageSubmissionOnTimePercentage\",\n get: function get() {\n return (0, _template.htmlSafe)(this.course.my_stats.average_submission_on_time_percentage);\n }\n }, {\n key: \"averageDiscussionOnTimePercentage\",\n get: function get() {\n return (0, _template.htmlSafe)(this.course.my_stats.average_discussion_on_time_percentage);\n }\n }, {\n key: \"course_order\",\n get: function get() {\n var termIndex = this.args.termIndex;\n var courseIndex = this.args.index;\n return \"\".concat(termIndex, \"_\").concat(courseIndex);\n }\n }, {\n key: \"has_unread\",\n get: function get() {\n return this.unread_total_count > 0;\n }\n }, {\n key: \"unread_total_count\",\n get: function get() {\n return this.course.unread_discussions_count + this.course.unread_announcements_count + this.course.unread_assignment_comments_count;\n }\n }, {\n key: \"has_upcoming\",\n get: function get() {\n return this.course.upcoming_live_events_count > 0;\n }\n }, {\n key: \"total_due_and_overdue\",\n get: function get() {\n // Some items may be null or undefined, so we need to check for that\n var dueCount = 0;\n if (this.course.quizzes_due) {\n dueCount += this.course.quizzes_due;\n }\n if (this.course.assignments_due) {\n dueCount += this.course.assignments_due;\n }\n if (this.course.discussions_due) {\n dueCount += this.course.discussions_due;\n }\n return dueCount;\n }\n }, {\n key: \"has_due\",\n get: function get() {\n return this.course.assignments_due > 0 || this.course.quizzes_due > 0 || this.course.discussions_due > 0;\n }\n }, {\n key: \"has_overdue\",\n get: function get() {\n return this.course.assignments_overdue > 0 || this.course.quizzes_overdue > 0 || this.course.discussions_overdue > 0;\n }\n }, {\n key: \"displayStatsInfo\",\n value: function displayStatsInfo() {\n this.displayStatsPopup = true;\n }\n }, {\n key: \"toggleReadmoreClass\",\n value: function toggleReadmoreClass(index, close, event) {\n if (event) event.stopPropagation();\n var value = close ? true : this.isMaximized;\n var scrollTo = value ? \"read_more_\".concat(index) : \"course_order_\".concat(index);\n this.isMaximized = !value;\n if (value) {\n this.args.scrollElementIntoView(document.getElementById(scrollTo));\n }\n }\n }, {\n key: \"expandClassCardAccordion\",\n value: function expandClassCardAccordion(index, open, event) {\n event.stopPropagation();\n var targetClassList = event.target.classList;\n if (targetClassList.contains(\"item-count\") || targetClassList.contains(\"class-counter-minimal\") || targetClassList.contains(\"class-counter\") || targetClassList.contains(\"class-counter-compact\") || targetClassList.contains(\"large__grade\")) {\n return;\n }\n var isCurrentlyOpen = this.args.maximizedCard.includes(index);\n\n // Card header (open=true) only opens; expand button (open=false) toggles\n if (open && isCurrentlyOpen) return;\n\n // Reset inner readmore state when closing\n if (isCurrentlyOpen) {\n this.isMaximized = false;\n }\n this.args.updateMaximizedCard(index);\n }\n }, {\n key: \"openCourseStatsInfo\",\n value: function openCourseStatsInfo(event) {\n event.stopPropagation();\n this.showCourseStatsInfo = true;\n }\n }, {\n key: \"closeCourseStatsInfo\",\n value: function closeCourseStatsInfo() {\n this.showCourseStatsInfo = false;\n }\n }, {\n key: \"handleCourseStatsKeydown\",\n value: function handleCourseStatsKeydown(event) {\n if (event.key === \"Escape\") {\n this.showCourseStatsInfo = false;\n }\n }\n }, {\n key: \"openUnsubmittedInfo\",\n value: function openUnsubmittedInfo(event) {\n event.stopPropagation();\n this.showUnsubmittedInfo = true;\n }\n }, {\n key: \"closeUnsubmittedInfo\",\n value: function closeUnsubmittedInfo() {\n this.showUnsubmittedInfo = false;\n }\n }, {\n key: \"handleUnsubmittedInfoKeydown\",\n value: function handleUnsubmittedInfoKeydown(event) {\n if (event.key === \"Escape\") {\n this.showUnsubmittedInfo = false;\n }\n }\n }, {\n key: \"openGradeInfo\",\n value: function openGradeInfo(event) {\n event.stopPropagation();\n this.showGradeInfo = true;\n }\n }, {\n key: \"closeGradeInfo\",\n value: function closeGradeInfo() {\n this.showGradeInfo = false;\n }\n }, {\n key: \"handleGradeInfoKeydown\",\n value: function handleGradeInfoKeydown(event) {\n if (event.key === \"Escape\") {\n this.showGradeInfo = false;\n }\n }\n }, {\n key: \"stopModalPropagation\",\n value: function stopModalPropagation(event) {\n event.stopPropagation();\n }\n }, {\n key: \"assignmentZeroToggle\",\n value: function assignmentZeroToggle() {\n this.dashboardSorter.toggleProperty(\"ungradedAsZero\");\n }\n }, {\n key: \"sortAssignments\",\n value: function sortAssignments() {\n this.dashboardSorter.toggleProperty(\"sortAscending\");\n }\n }, {\n key: \"toggleWeightedDivisions\",\n value: function toggleWeightedDivisions() {\n this.dashboardSorter.toggleProperty(\"weightedDivisions\");\n }\n }, {\n key: \"toggleDiscussions\",\n value: function toggleDiscussions() {\n this.dashboardSorter.toggleProperty(\"showDiscussions\");\n }\n }, {\n key: \"toggleUngraded\",\n value: function toggleUngraded() {\n this.dashboardSorter.toggleProperty(\"showUngraded\");\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"gradeCalculator\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"dashboardSorter\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isMaximized\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showGradeInfo\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showCourseStatsInfo\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showUnsubmittedInfo\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"displayStatsPopup\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return this.args.displayStatsPopup;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hideClassmateStats\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return this.args.hideClassmateStats;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"isExam\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"isExam\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"userAssignmentsOnTimePercentage\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"userAssignmentsOnTimePercentage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"userDiscussionsOnTimePercentage\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"userDiscussionsOnTimePercentage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"averageSubmissionOnTimePercentage\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"averageSubmissionOnTimePercentage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"averageDiscussionOnTimePercentage\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"averageDiscussionOnTimePercentage\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"course_order\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"course_order\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"has_unread\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"has_unread\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unread_total_count\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"unread_total_count\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"has_upcoming\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"has_upcoming\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"total_due_and_overdue\", [_dec0], Object.getOwnPropertyDescriptor(_class.prototype, \"total_due_and_overdue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"has_due\", [_dec1], Object.getOwnPropertyDescriptor(_class.prototype, \"has_due\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"has_overdue\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"has_overdue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"displayStatsInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"displayStatsInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleReadmoreClass\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleReadmoreClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"expandClassCardAccordion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"expandClassCardAccordion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openCourseStatsInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openCourseStatsInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeCourseStatsInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeCourseStatsInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleCourseStatsKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleCourseStatsKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openUnsubmittedInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openUnsubmittedInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeUnsubmittedInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeUnsubmittedInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleUnsubmittedInfoKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleUnsubmittedInfoKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openGradeInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openGradeInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeGradeInfo\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeGradeInfo\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleGradeInfoKeydown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleGradeInfoKeydown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopModalPropagation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopModalPropagation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"assignmentZeroToggle\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"assignmentZeroToggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sortAssignments\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sortAssignments\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleWeightedDivisions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleWeightedDivisions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDiscussions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDiscussions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleUngraded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleUngraded\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, CourseListItem);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/discussion-body\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/debug\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _debug, _object, _service, _runloop, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/debug\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if @controller.isSavingEdit}}\n
    \n \n Posting...\n
    \n {{/if}}\n
    \n {{! Don't show discussion editor if editing reply }}\n {{#if (and @controller.is_editing (not @controller.is_reply))}}\n
    \n \n
    \n
    \n Cancel\n Save\n
    \n {{else}}\n \n {{/if}}\n
    \n {{#if @model.poll}}\n \n {{else}}\n {{#if @model.poll_id}}\n

    Poll:

    \n
      \n
    • Loading...
    • \n
    \n {{/if}}\n {{/if}}\n {{#if @model.attachments}}\n
      \n
    • \n Attachments:\n
    • \n {{#each @model.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n \n {{#if @truncated}}\n \n {{#if this.expandedPost}}\n Read less\n {{else}}\n Read full post\n {{/if}}\n \n {{/if}}\n */\n {\n \"id\": \"pns8SKMz\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"first-post\\\\n \\\",[52,[30,1],\\\"truncated\\\"],\\\"\\\\n \\\",[52,[28,[37,2],[[30,2,[\\\"is_editing\\\"]],[30,0,[\\\"expandedPost\\\"]]],null],\\\"expanded\\\"],\\\"\\\\n \\\",[52,[30,2,[\\\"isSavingEdit\\\"]],\\\"is-posting\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isSavingEdit\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"first-post__body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,2,[\\\"is_editing\\\"]],[28,[37,5],[[30,2,[\\\"is_reply\\\"]]],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"reply-container reply-quick active-editor\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@userInput\\\",\\\"@controller\\\",\\\"@updateArchive\\\"],[[30,2,[\\\"editBodyInput\\\"]],[30,2,[\\\"editPostRteController\\\"]],[30,2,[\\\"updateLocalDocs\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__confirmation-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--sm button--black-ghost\\\"],[24,\\\"aria-label\\\",\\\"Cancel edit\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,2,[\\\"doneEditing\\\"]],false],null]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--sm button--black\\\"],[24,\\\"aria-label\\\",\\\"Submit edit\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,2,[\\\"doneEditing\\\"]],true],null]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[8,[39,10],null,[[\\\"@content\\\"],[[30,3,[\\\"message\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"poll\\\"]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@poll\\\",\\\"@modelId\\\"],[[30,3,[\\\"poll\\\"]],[30,3,[\\\"id\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"poll_id\\\"]],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"poll__header\\\"],[12],[1,\\\"Poll:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"poll-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"poll-choice\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\" Loading...\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[41,[30,3,[\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"discussion-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments:\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,3,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,17],null,[[\\\"@showDelete\\\",\\\"@attachment\\\",\\\"@deleteAttachment\\\"],[[28,[37,4],[[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,3,[\\\"id\\\"]]],null],[30,4],[28,[37,9],[[30,5],[30,0,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],[30,3,[\\\"id\\\"]],[30,4,[\\\"id\\\"]],\\\"discussion\\\",[30,3,[\\\"db_id\\\"]],[30,3,[\\\"user\\\",\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"first-post__expand-button button-link\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"toggleExpandedPost\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"expandedPost\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Read less\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Read full post\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@truncated\\\",\\\"@controller\\\",\\\"@model\\\",\\\"attachment\\\",\\\"@deleteAttachment\\\"],[\\\"div\\\",\\\"if\\\",\\\"or\\\",\\\"i\\\",\\\"and\\\",\\\"not\\\",\\\"rte\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"legacy-boot\\\",\\\"discussion/poll\\\",\\\"h2\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/components/discussion-body.hbs\",\n \"isStrictMode\": false\n });\n var DiscussionBodyComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function DiscussionBodyComponent(owner, args) {\n var _this;\n _classCallCheck(this, DiscussionBodyComponent);\n _this = _callSuper(this, DiscussionBodyComponent, [owner, args]);\n _initializerDefineProperty(_this, \"expandedPost\", _descriptor, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor3, _this);\n return _this;\n }\n _inherits(DiscussionBodyComponent, _Component);\n return _createClass(DiscussionBodyComponent, [{\n key: \"toggleExpandedPost\",\n value: function toggleExpandedPost() {\n this.expandedPost = !this.expandedPost;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"expandedPost\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleExpandedPost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpandedPost\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DiscussionBodyComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/discussion-header\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n {{#if (and @controller.is_editing (not @controller.is_reply))}}\n Title:\n \n {{else}}\n
    {{{@model.title}}}
    \n {{/if}}\n
    \n {{#unless @isLesson}}\n {{#unless (and @controller.is_editing (not @controller.is_reply))}}\n {{#if @isInstructorAndOwner}}\n \n Edit\n \n \n {{/if}}\n {{#if (or @isInstructorAndOwner this.session.isAdmin)}}\n \n Delete\n \n \n {{/if}}\n {{/unless}}\n {{/unless}}\n {{#unless this.session.isLimitedStudentTerm}}\n
    \n
    \n
    \n
    \n \n \n {{@model.user.name}}\n \n \n
    \n {{#if @model.is_required}}\n \n
    \n \n Due {{@model.formattedDiscussionDueDate}}\n
    \n {{else}}\n
    \n \n Posted {{@model.formattedPostDate}}\n
    \n {{/if}}\n {{#if @isLesson}}\n \n \n \n View in Lesson\n \n \n {{/if}}\n {{#if @model.showcase.url}}\n \n \n View in Showcase\n \n {{/if}}\n
    \n \n
    \n */\n {\n \"id\": \"yYGDJ6mM\",\n \"block\": \"[[[10,0],[14,0,\\\"discussion-header\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-header__info\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,1,[\\\"is_editing\\\"]],[28,[37,3],[[30,1,[\\\"is_reply\\\"]]],null]],null],[[[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"discussion-header__title-input-label\\\"],[14,\\\"for\\\",\\\"discussion-header__title-input\\\"],[12],[1,\\\"Title:\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,5],[[24,1,\\\"discussion-header__title-input\\\"],[24,0,\\\"h4 discussion-header__title-input\\\"],[24,\\\"placeholder\\\",\\\"Title\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"titleInput\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"h4 discussion-header__title\\\"],[12],[2,[30,2,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"discussion-header__button-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,3]],[[[41,[51,[28,[37,2],[[30,1,[\\\"is_editing\\\"]],[28,[37,3],[[30,1,[\\\"is_reply\\\"]]],null]],null]],[[[41,[30,4],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-button__white\\\"],[24,\\\"aria-label\\\",\\\"Edit Post\\\"],[4,[38,8],[\\\"click\\\",[30,5]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\"Edit\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,11],[[30,4],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-button__white\\\"],[24,\\\"aria-label\\\",\\\"Delete Post\\\"],[4,[38,8],[\\\"click\\\",[30,6]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\"Delete\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[51,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"discussion-header__subscribe-button icon-button icon-button__white\\\"],[16,\\\"aria-label\\\",[29,[[52,[30,2,[\\\"subscribed\\\"]],\\\"Unsubscribe\\\",\\\"Subscribe\\\"],\\\" to this discussion\\\"]]],[4,[38,8],[\\\"click\\\",[30,0,[\\\"subscribe\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"subscribed\\\"]]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\"Subscribe\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-bell-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\"Unsubscribe\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-bell-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-header__metadata\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-header__author-info\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,12],null,[[\\\"@user\\\"],[[30,2,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"discussion-header__author-name\\\"],[16,\\\"aria-label\\\",[29,[\\\"View User Profile of \\\",[30,2,[\\\"user\\\",\\\"name\\\"]]]]],[4,[38,8],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"userprofile\\\",\\\"toggleUserProfile\\\"]],[30,2,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"user\\\",\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,14],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,2,[\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"is_required\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"discussion-header__metadata-separator fa-solid fa-dot\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-header__date\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-clock\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Due \\\"],[1,[30,2,[\\\"formattedDiscussionDueDate\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"discussion-header__date\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-clock\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Posted \\\"],[1,[30,2,[\\\"formattedPostDate\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,3],[[[1,\\\" \\\"],[10,1],[14,0,\\\"discussion-header__lesson-button-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"discussion-header__metadata-separator fa-solid fa-dot\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"aria-label\\\",[29,[\\\"View current discussion in the context of the lesson to which is belongs (lesson \\\",[30,3],\\\".\\\"]]],[24,0,\\\"button-link\\\"],[4,[38,8],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"viewInLesson\\\"]],[30,3],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n View in Lesson\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"showcase\\\",\\\"url\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"discussion-header__lesson-button-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"discussion-header__metadata-separator fa-solid fa-dot\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"button-link\\\"],[15,6,[29,[\\\"/#/\\\",[30,0,[\\\"session\\\",\\\"section\\\",\\\"showcase_course_id\\\"]],\\\"/\\\",[30,2,[\\\"showcase\\\",\\\"lesson\\\"]],\\\"/\\\",[30,2,[\\\"showcase\\\",\\\"url\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trophy\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"View in Showcase\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13]],[\\\"@controller\\\",\\\"@model\\\",\\\"@isLesson\\\",\\\"@isInstructorAndOwner\\\",\\\"@editDiscussion\\\",\\\"@deletePost\\\"],[\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"label\\\",\\\"input\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"span\\\",\\\"i\\\",\\\"or\\\",\\\"user-portrait\\\",\\\"fn\\\",\\\"user-icons\\\",\\\"a\\\"]]\",\n \"moduleName\": \"bocce/components/discussion-header.hbs\",\n \"isStrictMode\": false\n });\n var DiscussionHeaderComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function DiscussionHeaderComponent() {\n var _this;\n _classCallCheck(this, DiscussionHeaderComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, DiscussionHeaderComponent, [].concat(args));\n _initializerDefineProperty(_this, \"userprofile\", _descriptor, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"router\", _descriptor3, _this);\n return _this;\n }\n _inherits(DiscussionHeaderComponent, _Component);\n return _createClass(DiscussionHeaderComponent, [{\n key: \"subscribe\",\n value: function subscribe() {\n this.args.model.set(\"subscribed\", !this.args.model.subscribed);\n this.args.model.save();\n }\n }, {\n key: \"viewInLesson\",\n value: function viewInLesson(lesson, topicId) {\n this.router.transitionTo(\"classroom.lessons\", lesson, topicId);\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"userprofile\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"subscribe\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"subscribe\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewInLesson\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewInLesson\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DiscussionHeaderComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/discussion-reply-box\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.session.readOnly}}\n \n
    \n
    \n {{#unless (and @is_editing (not @is_reply))}}\n \n \n \n \n \n {{/unless}}\n
    \n
    \n
    \n {{/unless}}\n */\n {\n \"id\": \"R6fQBBGX\",\n \"block\": \"[[[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@files\\\",\\\"@controller\\\"],[[30,1],[30,2]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-reply-box\\\"],[14,\\\"aria-label\\\",\\\"Discussion Reply Text Editor\\\"],[14,\\\"role\\\",\\\"region\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"reply-container reply-quick \\\",[52,[30,3],\\\"active-editor\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,4],[[30,4],[28,[37,5],[[30,5]],null]],null]],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@replyId\\\",\\\"@replyAuthor\\\",\\\"@replyText\\\",\\\"@replyCancel\\\",\\\"@isEditing\\\"],[[30,6],[30,7],[30,8],[52,[30,4],[28,[37,7],[[30,9],false],null],[30,10]],[30,4]]],null],[1,\\\"\\\\n \\\"],[8,[39,8],null,[[\\\"@userInput\\\",\\\"@updateArchive\\\",\\\"@controller\\\",\\\"@positioningBehavior\\\",\\\"@wrapper\\\",\\\"@freezeHeight\\\"],[[30,2,[\\\"bodyInput\\\"]],[30,2,[\\\"updateLocalDocs\\\"]],[30,2],\\\"fixed-bottom\\\",\\\".reply-container\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@attachmentFiles\\\",\\\"@uploadSingleFile\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\"],[[30,11],[30,12],[30,13],[30,14],[30,15]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__footer-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rte__attach\\\"],[24,\\\"aria-label\\\",\\\"Attach Files.\\\"],[4,[38,11],[\\\"click\\\",[30,16]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black rte__post\\\"],[16,\\\"disabled\\\",[52,[51,[30,17]],true,null]],[24,\\\"aria-label\\\",\\\"Post Discussion\\\"],[4,[38,11],[\\\"click\\\",[28,[37,7],[[30,9],true],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@files\\\",\\\"@controller\\\",\\\"@inEditor\\\",\\\"@is_editing\\\",\\\"@is_reply\\\",\\\"@replyId\\\",\\\"@replyAuthor\\\",\\\"@replyText\\\",\\\"@doneEditing\\\",\\\"@replyCancel\\\",\\\"@attachmentFiles\\\",\\\"@addFile\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@postable\\\"],[\\\"unless\\\",\\\"drag-and-drop\\\",\\\"div\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"reply\\\",\\\"fn\\\",\\\"rte\\\",\\\"attachments-container\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/discussion-reply-box.hbs\",\n \"isStrictMode\": false\n });\n var DiscussionReplyBoxComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function DiscussionReplyBoxComponent() {\n var _this;\n _classCallCheck(this, DiscussionReplyBoxComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, DiscussionReplyBoxComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(DiscussionReplyBoxComponent, _Component);\n return _createClass(DiscussionReplyBoxComponent);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DiscussionReplyBoxComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/discussion/poll\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"bocce/helpers/same\", \"bocce/helpers/inarray\", \"bocce/helpers/percentage\", \"bocce/components/user-portrait\", \"@ember/modifier\", \"@ember/helper\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _service, _same, _inarray, _percentage, _userPortrait, _modifier, _helper, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _Poll;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"bocce/helpers/same\",0,\"bocce/helpers/inarray\",0,\"bocce/helpers/percentage\",0,\"bocce/components/user-portrait\",0,\"@ember/modifier\",0,\"@ember/helper\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var Poll = _exports.default = (_class = (_Poll = /*#__PURE__*/function (_Component) {\n function Poll() {\n var _this;\n _classCallCheck(this, Poll);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Poll, [].concat(args));\n _initializerDefineProperty(_this, \"updatedPoll\", _descriptor, _this);\n _initializerDefineProperty(_this, \"selectedPollIds\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"pollSubmitting\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor4, _this);\n return _this;\n }\n _inherits(Poll, _Component);\n return _createClass(Poll, [{\n key: \"poll\",\n get: function get() {\n return this.updatedPoll || this.args.poll;\n }\n }, {\n key: \"linearGradient\",\n value: function linearGradient(percentage, color) {\n return \"background: linear-gradient(to right, \".concat(color, \" \").concat(percentage, \"%, var(--white) \").concat(percentage, \"%);\");\n }\n }, {\n key: \"toNum\",\n value: function toNum(value) {\n return Number(value) || 0;\n }\n }, {\n key: \"votedForChoice\",\n value: function votedForChoice(pollChoice, voterInfo) {\n return voterInfo === null || voterInfo === void 0 ? void 0 : voterInfo.some(function (info) {\n return info.poll_choice_id === pollChoice.id;\n });\n }\n }, {\n key: \"pollVoters\",\n value: function pollVoters(pollChoice, voterData) {\n var voters = (voterData === null || voterData === void 0 ? void 0 : voterData.filter(function (voter) {\n return voter.poll_choice_id === pollChoice.id;\n })) || [];\n if (voters.length > 4) {\n voters[4] = \"+\".concat(voters.length - 4);\n voters = voters.slice(0, 5);\n }\n return voters;\n }\n }, {\n key: \"voterData\",\n get: function get() {\n var data = this.args.poll.voters;\n if (data && data.length > 0) {\n data = JSON.parse(data);\n for (var i = 0; i < data.length; i++) {\n data[i].user = this.store.peekRecord(\"user\", data[i].user_id);\n }\n return data;\n }\n return [];\n }\n }, {\n key: \"totalVotes\",\n get: function get() {\n var _this$args$poll$total;\n var votes = 0;\n (_this$args$poll$total = this.args.poll.total_results) === null || _this$args$poll$total === void 0 || _this$args$poll$total.forEach(function (result) {\n votes += result.votes;\n });\n return votes;\n }\n }, {\n key: \"pollClosed\",\n get: function get() {\n var _this$args$poll$did_v;\n return ((_this$args$poll$did_v = this.args.poll.did_vote) === null || _this$args$poll$did_v === void 0 ? void 0 : _this$args$poll$did_v.length) > 0;\n }\n }, {\n key: \"togglePollId\",\n value: function togglePollId(poll_choice_id, indx) {\n if (this.args.poll.old_poll) {\n this.selectedPollIds = [];\n this.selectedPollIds[indx] = poll_choice_id;\n } else {\n if (!this.selectedPollIds[indx]) {\n this.selectedPollIds[indx] = poll_choice_id;\n } else {\n this.selectedPollIds[indx] = null;\n }\n }\n this.selectedPollIds = _toConsumableArray(this.selectedPollIds);\n }\n }, {\n key: \"votePoll\",\n value: function () {\n var _votePoll = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(poll_id) {\n var _this2 = this;\n var choices, choicesArray, i, response;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n choices = this.selectedPollIds;\n choicesArray = [];\n for (i = 0; i < choices.length; i++) {\n choicesArray.push({\n poll_choice_id: choices[i]\n });\n }\n this.pollSubmitting = true;\n _context.n = 1;\n return fetch(\"/interface/vote_in_poll/\".concat(poll_id), {\n method: \"POST\",\n body: JSON.stringify({\n poll_submissions: choicesArray\n })\n });\n case 1:\n response = _context.v;\n if (!response.ok) {\n debug(\"Unable to vote in poll. Something went wrong:\", response.statusText);\n }\n this.pollLoader().then(function (discussion) {\n _this2.updatedPoll = discussion.poll;\n _this2.pollSubmitting = false;\n });\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function votePoll(_x) {\n return _votePoll.apply(this, arguments);\n }\n return votePoll;\n }()\n }, {\n key: \"pollLoader\",\n value: function () {\n var _pollLoader = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n if (this.args.poll) {\n _context2.n = 1;\n break;\n }\n return _context2.a(2);\n case 1:\n return _context2.a(2, this.store.findRecord(\"discussion\", this.args.modelId, {\n reload: true\n }));\n }\n }, _callee2, this);\n }));\n function pollLoader() {\n return _pollLoader.apply(this, arguments);\n }\n return pollLoader;\n }()\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n

    Poll

    \n
    \n
      \n {{#each @poll.total_results as |pollChoice index|}}\n
    • \n \n {{#unless this.pollClosed}}\n \n {{/unless}}\n
      {{pollChoice.text}}
      \n
      \n {{#each (this.pollVoters pollChoice this.voterData) as |voter|}}\n {{#if voter.user}}\n \n {{else}}\n {{voter}}\n {{/if}}\n {{/each}}\n {{#each this.voterData as |voter|}}\n {{#if (same pollChoice.id voter.poll_choice_id)}}{{/if}}\n {{/each}}\n
      \n
      \n {{percentage pollChoice.votes @poll.total_votes}}%\n \n {{this.toNum pollChoice.votes}} votes\n {{#if (this.votedForChoice pollChoice @poll.voter_info)}}\n \n {{/if}}\n
      \n \n
    • \n {{/each}}\n
    \n
    {{this.toNum @poll.total_votes}} total votes
    \n {{#unless @poll.did_vote}}\n
    \n \n {{#if this.pollSubmitting}}\n
    \n \n
    \n {{/if}}\n \n Submit Vote\n \n
    \n {{/unless}}\n
    \n */\n {\n \"id\": \"gU3ShheF\",\n \"block\": \"[[[10,\\\"h2\\\"],[14,0,\\\"poll__header\\\"],[12],[1,\\\"Poll\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[15,0,[29,[\\\"poll__container \\\",[52,[30,0,[\\\"pollClosed\\\"]],\\\"poll__container--closed\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"poll__choice-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,2],[[28,[31,2],[[30,1,[\\\"total_results\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[15,5,[28,[30,0,[\\\"linearGradient\\\"]],[[28,[32,0],[[30,2,[\\\"votes\\\"]],[30,1,[\\\"total_votes\\\"]]],null],[52,[28,[30,0,[\\\"votedForChoice\\\"]],[[30,2],[30,1,[\\\"voter_info\\\"]]],null],\\\"var(--blue-100)\\\",\\\"var(--blue-50)\\\"]],null]],[15,0,[29,[\\\"select poll__choice\\\\n \\\",[52,[51,[30,1,[\\\"did_vote\\\"]]],\\\"poll__choice--selectable\\\"],\\\"\\\\n \\\",[52,[30,2,[\\\"winner\\\"]],\\\"poll__choice--winning\\\"],\\\"\\\\n \\\",[52,[28,[32,1],[[30,2,[\\\"id\\\"]],[30,0,[\\\"selectedPollIds\\\"]]],null],\\\"poll__choice--selected\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"pollClosed\\\"]]],[[[1,\\\" \\\"],[11,\\\"input\\\"],[24,0,\\\"poll__choice-input\\\"],[24,4,\\\"checkbox\\\"],[4,[32,2],[\\\"input\\\",[28,[32,3],[[30,0,[\\\"togglePollId\\\"]],[30,2,[\\\"id\\\"]],[30,3]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"poll__choice-text\\\"],[12],[1,[30,2,[\\\"text\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"poll__choice-voters\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,2],[[28,[31,2],[[28,[30,0,[\\\"pollVoters\\\"]],[[30,2],[30,0,[\\\"voterData\\\"]]],null]],null]],null],null,[[[41,[30,4,[\\\"user\\\"]],[[[1,\\\" \\\"],[8,[32,4],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,4,[\\\"user\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"poll__choice-voters-extra\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[]]]],[4]],null],[42,[28,[31,2],[[28,[31,2],[[30,0,[\\\"voterData\\\"]]],null]],null],null,[[[1,\\\" \\\"],[41,[28,[32,5],[[30,2,[\\\"id\\\"]],[30,5,[\\\"poll_choice_id\\\"]]],null],[[],[]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"poll__choice-voter-data\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[28,[32,0],[[30,2,[\\\"votes\\\"]],[30,1,[\\\"total_votes\\\"]]],null]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-dot\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[28,[30,0,[\\\"toNum\\\"]],[[30,2,[\\\"votes\\\"]]],null]],[1,\\\" votes\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[30,0,[\\\"votedForChoice\\\"]],[[30,2],[30,1,[\\\"voter_info\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-check\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"poll__total-votes\\\"],[12],[1,[28,[30,0,[\\\"toNum\\\"]],[[30,1,[\\\"total_votes\\\"]]],null]],[1,\\\" total votes\\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"did_vote\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"poll__vote-button-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"poll__vote-button button--blue button--sm\\\"],[24,\\\"aria-label\\\",\\\"Cast your vote\\\"],[4,[32,2],[\\\"click\\\",[28,[32,3],[[30,0,[\\\"votePoll\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pollSubmitting\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"poll__vote-button-backdrop\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-notch fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-pen-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Submit Vote\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@poll\\\",\\\"pollChoice\\\",\\\"index\\\",\\\"voter\\\",\\\"voter\\\"],[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/discussion/poll.js\",\n \"scope\": function scope() {\n return [_percentage.default, _inarray.default, _modifier.on, _helper.fn, _userPortrait.default, _same.default];\n },\n \"isStrictMode\": true\n }), _Poll), _Poll), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"updatedPoll\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selectedPollIds\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"pollSubmitting\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"togglePollId\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePollId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"votePoll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"votePoll\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/drafts\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/modifier\", \"@ember/helper\", \"ember-modifier\", \"bocce/components/modals/confirm-dialog\", \"bocce/components/modals/dark-backdrop\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _modifier, _helper, _emberModifier, _confirmDialog, _darkBackdrop, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _SavedDrafts;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/modifier\",0,\"@ember/helper\",0,\"ember-modifier\",0,\"bocce/components/modals/confirm-dialog\",0,\"bocce/components/modals/dark-backdrop\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n var setHtml = (0, _emberModifier.modifier)(function (el, _ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n html = _ref2[0];\n el.innerHTML = html || \"\";\n });\n var init = (0, _emberModifier.modifier)(function (el) {\n el.scrollIntoView();\n });\n function stripHtml(html) {\n var tmp = document.createElement(\"div\");\n tmp.innerHTML = html;\n return tmp.textContent || tmp.innerText || \"\";\n }\n function formatDate(recName) {\n var ts = parseInt(recName.split(\"_\").pop());\n if (isNaN(ts)) return \"\";\n return new Date(ts).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n hour: \"numeric\",\n minute: \"2-digit\"\n });\n }\n function isoDate(recName) {\n var ts = parseInt(recName.split(\"_\").pop());\n if (isNaN(ts)) return undefined;\n return new Date(ts).toISOString();\n }\n var SavedDrafts = _exports.default = (_class = (_SavedDrafts = /*#__PURE__*/function (_Component) {\n function SavedDrafts() {\n var _this;\n _classCallCheck(this, SavedDrafts);\n _this = _callSuper(this, SavedDrafts, arguments);\n _initializerDefineProperty(_this, \"activeDraft\", _descriptor, _this);\n _initializerDefineProperty(_this, \"draftToDeleteButtons\", _descriptor2, _this);\n _this.setDraftToDeleteBound = _this.setDraftToDelete.bind(_this);\n _this.onClose = _this.args.onClose;\n return _this;\n }\n _inherits(SavedDrafts, _Component);\n return _createClass(SavedDrafts, [{\n key: \"openPreview\",\n value: function openPreview(draft) {\n this.activeDraft = draft;\n }\n }, {\n key: \"closePreview\",\n value: function closePreview() {\n this.activeDraft = null;\n }\n }, {\n key: \"handleInsert\",\n value: function handleInsert(draft) {\n this.args.onInsert(draft);\n this.args.onClose();\n }\n }, {\n key: \"handleDelete\",\n value: function () {\n var _handleDelete = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(draft) {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return this.args.onDelete(draft);\n case 1:\n this.setDraftToDelete();\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function handleDelete(_x) {\n return _handleDelete.apply(this, arguments);\n }\n return handleDelete;\n }()\n }, {\n key: \"setDraftToDelete\",\n value: function setDraftToDelete(draft) {\n if (draft) {\n this.draftToDeleteButtons = this.deleteConfirmDialogButtons(draft);\n } else {\n this.draftToDeleteButtons = null;\n }\n }\n }, {\n key: \"deleteConfirmDialogButtons\",\n value: function deleteConfirmDialogButtons(draft) {\n return [{\n label: \"Delete Draft\",\n onClick: this.handleDelete.bind(this, draft),\n style: \"primary\"\n }, {\n label: \"Cancel\",\n onClick: this.setDraftToDelete.bind(this, null),\n style: \"neutral\"\n }];\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
    \n
    \n
    \n
    Saved Drafts
    \n {{#if this.activeDraft}}\n \n — previewing\n {{this.activeDraft.name}}\n \n {{/if}}\n
    \n \n \n \n
    \n {{#unless this.activeDraft}}\n

    \n \n Note: Inserting a draft appends to your content — nothing is replaced. Drafts are\n saved to\n this device only. Save periodically.\n

    \n {{/unless}}\n
    \n \n
    \n {{#if this.activeDraft}}\n
    \n {{else}}\n {{#if @drafts.length}}\n
      \n {{#each @drafts as |draft|}}\n
    • \n
      \n {{draft.name}}\n \n
      \n

      {{stripHtml draft.textContent}}

      \n \n \n \n Preview\n \n \n \n Insert Draft\n \n \n \n \n \n
    • \n {{/each}}\n
    \n {{else}}\n

    No saved drafts yet.

    \n {{/if}}\n {{/if}}\n \n \n {{#if this.activeDraft}}\n
    \n \n Back\n \n \n \n \n Insert draft\n \n
    \n {{/if}}\n \n \n \n {{#if this.draftToDeleteButtons}}\n \n {{/if}}\n \n \n */\n {\n \"id\": \"sVw5X5sO\",\n \"block\": \"[[[11,0],[24,0,\\\"drafts floating-modal\\\"],[24,\\\"role\\\",\\\"region\\\"],[24,\\\"aria-label\\\",\\\"Saved drafts\\\"],[24,\\\"aria-live\\\",\\\"polite\\\"],[4,[32,0],null,null],[12],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"drafts__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"drafts__header--top\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"drafts__header--left\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"drafts__header-title\\\"],[12],[1,\\\"Saved Drafts\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"activeDraft\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"drafts__header-preview-label\\\"],[12],[1,\\\"\\\\n — previewing\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,[30,0,[\\\"activeDraft\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"draft-item__btn-icon\\\"],[24,\\\"aria-label\\\",\\\"Close saved drafts\\\"],[4,[32,1],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"activeDraft\\\"]]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"drafts__info\\\"],[14,\\\"role\\\",\\\"note\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-info-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Note: Inserting a draft appends to your content — nothing is replaced. Drafts are\\\\n saved to\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,\\\"this device only\\\"],[13],[1,\\\". Save periodically.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"drafts__body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"activeDraft\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"drafts__preview-content\\\"],[24,\\\"role\\\",\\\"document\\\"],[16,\\\"aria-label\\\",[29,[\\\"Preview of \\\",[30,0,[\\\"activeDraft\\\",\\\"name\\\"]]]]],[24,\\\"tabindex\\\",\\\"0\\\"],[4,[32,2],[[30,0,[\\\"activeDraft\\\",\\\"textContent\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2,[\\\"length\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"drafts__list\\\"],[14,\\\"role\\\",\\\"list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,3],[[28,[31,3],[[30,2]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"draft-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"draft-item__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"draft-item__name\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"time\\\"],[14,0,\\\"draft-item__date\\\"],[15,\\\"datetime\\\",[28,[32,3],[[30,3,[\\\"recName\\\"]]],null]],[12],[1,\\\"\\\\n \\\"],[1,[28,[32,4],[[30,3,[\\\"recName\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"draft-item__snippet\\\"],[12],[1,[28,[32,5],[[30,3,[\\\"textContent\\\"]]],null]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"draft-item__actions\\\"],[14,\\\"role\\\",\\\"group\\\"],[15,\\\"aria-label\\\",[29,[\\\"Actions for \\\",[30,3,[\\\"name\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"draft-item__btn\\\"],[16,\\\"aria-label\\\",[29,[\\\"Preview \\\",[30,3,[\\\"name\\\"]]]]],[4,[32,1],[\\\"click\\\",[28,[32,6],[[30,0,[\\\"openPreview\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Preview\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"draft-item__btn draft-item__btn--primary\\\"],[16,\\\"aria-label\\\",[29,[\\\"Insert \\\",[30,3,[\\\"name\\\"]]]]],[4,[32,1],[\\\"click\\\",[28,[32,6],[[30,0,[\\\"handleInsert\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Insert Draft\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"draft-item__btn draft-item__btn--danger\\\"],[16,\\\"aria-label\\\",[29,[\\\"Delete \\\",[30,3,[\\\"name\\\"]]]]],[4,[32,1],[\\\"click\\\",[28,[32,6],[[30,0,[\\\"setDraftToDeleteBound\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"drafts__no-drafts-text\\\"],[12],[1,\\\"No saved drafts yet.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"activeDraft\\\"]],[[[1,\\\" \\\"],[10,\\\"footer\\\"],[14,0,\\\"drafts__footer\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"draft-item__btn\\\"],[24,\\\"aria-label\\\",\\\"Back to draft list\\\"],[4,[32,1],[\\\"click\\\",[30,0,[\\\"closePreview\\\"]]],null],[12],[1,\\\"\\\\n Back\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"drafts__spacer\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"draft-item__btn draft-item__btn--primary\\\"],[16,\\\"aria-label\\\",[29,[\\\"Insert \\\",[30,0,[\\\"activeDraft\\\",\\\"name\\\"]]]]],[4,[32,1],[\\\"click\\\",[28,[32,6],[[30,0,[\\\"handleInsert\\\"]],[30,0,[\\\"activeDraft\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Insert draft\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"draftToDeleteButtons\\\"]],[[[1,\\\" \\\"],[8,[32,7],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@layout\\\",\\\"@buttons\\\"],[\\\"Delete Draft?\\\",\\\"Are you sure you wish to delete this draft? This action cannot be undone.\\\",\\\"vertical\\\",[30,0,[\\\"draftToDeleteButtons\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[8,[32,8],null,[[\\\"@action\\\"],[[30,0,[\\\"onClose\\\"]]]],null]],[\\\"@onClose\\\",\\\"@drafts\\\",\\\"draft\\\"],[\\\"if\\\",\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/drafts.js\",\n \"scope\": function scope() {\n return [init, _modifier.on, setHtml, isoDate, formatDate, stripHtml, _helper.fn, _confirmDialog.default, _darkBackdrop.default];\n },\n \"isStrictMode\": true\n }), _SavedDrafts), _SavedDrafts), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"activeDraft\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"draftToDeleteButtons\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"openPreview\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePreview\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closePreview\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleInsert\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleInsert\"), _class.prototype), _class);\n});","define(\"bocce/adapters/application\", [\"exports\", \"@ember-data/adapter/rest\", \"ember-inflector\", \"@ember/object\", \"@ember/runloop\"], function (_exports, _rest, _emberInflector, _object, _runloop) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/rest\",0,\"ember-inflector\",0,\"@ember/object\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } // app/adapters/application.js\n var adapter = _rest.default.extend({\n namespace: \"interface\",\n _hasFetchedAll: new Map(),\n init: function init() {\n this._super.apply(this, arguments);\n this.nestedResources = this.nestedResources || {};\n if (window.location.host == \"intro.online.berklee.edu\") {\n this.host = window.location.protocol === \"https:\" ? \"https://\" + window.location.host : \"http://berklee-bocce-static.s3-website-us-east-1.amazonaws.com\";\n }\n },\n updateId: function updateId(record, data) {\n var oldId = (0, _object.get)(record, \"id\");\n var id = data.id;\n if (id == null || id === \"\") {\n id = null;\n } else {\n id = id + \"\";\n }\n if (oldId && oldId !== id) {\n this.typeMapFor(record.constructor).idToRecord[oldId] = record;\n } else {\n this.typeMapFor(record.constructor).idToRecord[id] = record;\n }\n (0, _object.set)(record, \"id\", id);\n },\n nestResources: function nestResources(type, resources) {\n var r = this.nestedResources || {};\n if (!Array.isArray(resources)) {\n resources = [resources];\n }\n if (r[type] && r[type].ids && r[type].ids.length === resources.length) {\n var match = true;\n for (var i = 0, l = resources.length; i < l; i++) {\n var old = r[type].ids[i],\n key = Object.keys(old)[0];\n if (old[key] !== resources[i][key]) {\n match = false;\n break;\n }\n }\n if (match) {\n return this;\n }\n }\n var reloaded = [];\n\n // Don't need to reload if it's the first go-round .. right?\n if (!r[type]) {\n reloaded.push(\"all\");\n }\n r[type] = {\n ids: resources,\n reloaded: []\n };\n this.set(\"nestedResources\", r);\n return this;\n },\n /*\n hasReloadedType(type, id) {\n return true;\n let nestings = this.get('nestedResources'),\n nesting = nestings[type];\n if ( ! nesting ) {\n return true;\n }\n return nesting.reloaded.indexOf(id) >= 0;\n },\n markReloaded(type, id) {\n let nestings = this.get('nestedResources'),\n t = nestings[type];\n t.reloaded.push(id);\n this.set('nestedResources', nestings);\n },\n // PRM: New logic. Anything that's nested within a course or a section needs to\n // be reloaded when the course changes. This keeps track of what it's already\n // reloaded, so we (hopefully) only hit the API once per object per change.\n shouldReloadRecord: function(store, snapshot) {\n if ( this.hasReloadedType(snapshot.modelName, 'all') ||\n this.hasReloadedType(snapshot.modelName, snapshot.id) ) {\n return false;\n }\n debug(\"reloading \" + snapshot.modelName + \".id = \" + snapshot.id);\n this.markReloaded(snapshot.modelName, snapshot.id);\n return true;\n },\n shouldReloadAll: function(store, snapshot) {\n let type = snapshot.type.modelName;\n if ( this.hasReloadedType(type, 'all') ) {\n return false;\n }\n debug(\"reloading all \" + type);\n this.markReloaded(type, 'all');\n return true;\n },\n */\n\n buildURL: function buildURL(type, id, snapshot) {\n var nestings = this.nestedResources[type] || {},\n resources = nestings.ids || [],\n parts = [this.host],\n i,\n resource,\n key,\n joined;\n if (this.namespace) {\n parts.push(this.namespace);\n }\n for (i = 0; i < resources.length; i++) {\n resource = resources[i];\n for (key in resource) {\n if (!Object.prototype.hasOwnProperty.call(resource, key)) {\n continue;\n }\n parts.push(_emberInflector.default.inflector.pluralize(key));\n parts.push(resource[key]);\n }\n }\n parts.push(_emberInflector.default.inflector.pluralize(type), id);\n joined = parts.join(\"/\");\n if (window.location.host == \"intro.online.berklee.edu\") {\n // On intro, we don't want to use normal interface URLs. Add a\n // slash at the end to ensure that we get the correct item, then\n // an index.html to avoid an extra redirect.\n if (joined.substr(-1) !== \"/\") {\n joined += \"/\";\n }\n joined += \"index.html\";\n }\n if (snapshot && snapshot.adapterOptions) {\n var params = [];\n for (var _key in snapshot.adapterOptions) {\n params.push(_key + \"=\" + encodeURIComponent(snapshot.adapterOptions[_key]));\n }\n if (params.length > 0) {\n joined += \"?\" + params.join(\"&\");\n }\n }\n return joined;\n },\n /*\n Ember calls these 'shouldBackgroundReload****' functions when determining if it needs to make fresh calls to the server in the background after retrieving data via store.findAll\n or store.findRecord. If these returned true, ember would, for example, retrieve all assignments from the cache for a store.findAll('assignment'), display those,\n and then immediately make another call to the server in the background, and then immediately refresh the page with any new data that it finds. Nick Kelley \n made these methods return false, to, in his own words, STOP THE MADNESS AAAAA. Not sure what madness he was referring to -- it may have been related to that \n particular version of Ember. So, not sure if returning false is now necessary to stop any sort of madness, but, either way, seems best to keep it as it\n is, to, at the very least, maintain currently functionality.\n */\n shouldBackgroundReloadAll: function shouldBackgroundReloadAll(store, snapshotsArray) {\n return false;\n },\n //See the comment above shouldBackgroundReloadAll\n shouldBackgroundReloadRecord: function shouldBackgroundReloadRecord(store, snapshot) {\n return false;\n },\n /*\n Ember uses 'function shouldReloadAll()' when determining if it needs to make a call to the server for\n fresh data for store.findAll calls. We used to override this to say, \"Yes, always\n retrieve fresh data\". Unfortunately, this created performance problems for courses that were assignment heavy,\n as, for example, expensive calls were made every time an assignment modal was brought up. \n \n Ember, by default will retrieve fresh data only if no records have been retrieved yet (i.e.: are in the cache). If there are records in the cache, it uses those\n and then uses 'function shouldBackgroundReloadAll()' to determine if it should reload records in the background after retrieving them\n from cache. \n The behavior we've defined for 'shouldReloadAll' works like this: the first time you make a findAll call, there is nothing in the\n _hasFetchedAll map, and so shouldReloadAll returns true, which triggers Ember to make a call to our server. After this returns the data, the map is updated \n in our findAll method below to indicate we have made a findAll request. So, the next time a findAll call is made, Ember sees it in the map, \n and so the method returns false and so it grabs the data from the cache.\n \n We were experiencing an issue where Ember returned records as a byproduct of a server request for some related model, ex: returning assignments \n when loading the current week's lesson. So, when we made a findAll call for assignments, Ember was like, \"Oh yea, I've got those!\", even though \n no explicit findAll call was made by our code. In this case, since the current week's lesson didn't return all assignments, \n we actually need to make a request to the server. So, our 'shouldReloadAll' method is designed to prevent Ember from returning records for a \n 'findAll' call if it hasn't actually made a 'findAll' call.\n */\n shouldReloadAll: function shouldReloadAll(store, snapshotArray) {\n var type = (snapshotArray === null || snapshotArray === void 0 ? void 0 : snapshotArray.modelName) || \"\";\n return !this._hasFetchedAll.get(type);\n },\n //See the comment above 'shouldReloadAll' for some context and explanation of this method.\n findAll: function findAll(store, type) {\n var _arguments = arguments,\n _this = this;\n return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var _len, rest, _key2, payload;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n for (_len = _arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2; _key2 < _len; _key2++) {\n rest[_key2 - 2] = _arguments[_key2];\n }\n _context.n = 1;\n return _this._super.apply(_this, _arguments);\n case 1:\n payload = _context.v;\n if (type && type.modelName) {\n _this._hasFetchedAll.set(type.modelName, true);\n }\n return _context.a(2, payload);\n }\n }, _callee);\n }))();\n }\n });\n if (window.location.host == \"intro.online.berklee.edu\") {\n adapter = adapter.extend({\n createRecord: function createRecord(store, type, snapshot) {\n snapshot.id = new Date().getTime();\n return this.updateRecord(store, type, snapshot);\n },\n updateRecord: function updateRecord(store, type, snapshot) {\n var data = this.serialize(snapshot, {\n includeId: true\n });\n return new Promise(function (resolve) {\n var retval = {};\n retval[snapshot.modelName] = data;\n (0, _runloop.run)(null, resolve, retval);\n });\n }\n });\n }\n var _default = _exports.default = adapter;\n});","define(\"bocce/app\", [\"exports\", \"@ember-data/store\", \"@ember/application\", \"ember-resolver\", \"ember-load-initializers\", \"bocce/config/environment\", \"jquery\"], function (_exports, _store, _application, _emberResolver, _emberLoadInitializers, _environment, _jquery) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/store\",0,\"@ember/application\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"bocce/config/environment\",0,\"jquery\"eaimeta@70e063a35619d71f\n var App = _application.default.extend({\n modulePrefix: _environment.default.modulePrefix,\n podModulePrefix: _environment.default.podModulePrefix,\n Resolver: _emberResolver.default,\n init: function init() {\n this._super.apply(this, arguments);\n // this allows us to bind actions to paste and blur events:\n this.customEvents = this.customEvents || {\n paste: \"paste\",\n blur: \"blur\"\n };\n }\n });\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n\n // TODO (NK): unjank this. We really shouldn't need to extend Store. One\n // possible alternative is to create Adapters that are aware of the necessary\n // parent models and builds URLs automatically, instead of needing manual\n // nesting.\n _store.default.prototype.nestResources = function (type, resources) {\n return this.adapterFor(type).nestResources(type, resources);\n };\n moment.tz.add([\"EST|EST|50|0|\", \"America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6\"]);\n moment.locale(\"en\", {\n calendar: {\n lastDay: \"MMM D\",\n sameDay: \"h:mmA z\",\n nextDay: \"MMM D\",\n lastWeek: \"MMM D\",\n nextWeek: \"MMM D\",\n sameElse: \"MMM D\"\n }\n });\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.isMobile = true;\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.isMobile = false;\n }\n if (navigator.userAgent.toLowerCase().indexOf(\"safari\") !== -1) {\n if (navigator.userAgent.toLowerCase().indexOf(\"chrome\") > -1) {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.isSafari = false;\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.isSafari = true;\n }\n }\n if (window.navigator.userAgent.indexOf(\"Edge\") > -1) {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.isEdge = true;\n }\n\n // JRW: Make the mouse position available in the window object in case the user\n // is using a browser that doesn't support window.event (Firefox)\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(document).mousemove(function (e) {\n window.mouseX = e.pageX;\n window.mouseY = e.pageY;\n }).mouseover();\n var _default = _exports.default = App;\n});","define(\"bocce/components/adblock-warning\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n

    Ad Blocker Detected

    \n

    \n To ensure you have a seamless learning experience on our platform, we recommend that you disable\n any ad blocking software while using the BOCCE learning environment.\n

    \n Some functionality is incompatible with certain ad blockers.By turning off ad blocking software,\n you’ll be able to access all resources without any limitations.\n

    \n You may also choose to continue using the platform with your ad blocker enabled, but some\n features may not work as expected.\n

    \n Please note that we do not run ads on our platform. We only use cookies to improve your\n experience.\n

    \n
    \n \n
    \n

    Adblock Plus

    \n
      \n
    1. At the top right of Chrome, click the\n Extensions\n button. This is an icon that looks like a puzzle piece, and is located to the right of the\n address bar.\n \n
    2. \n
    3. Click the\n Adblock Plus\n icon in the resulting list.\n \n
    4. \n
    5. Click the gear icon at the top right of the resulting window.
    6. \n
    7. Select\n Allowlisted websites\n from the list on the left side of the page.\n \n
    8. \n
    9. Enter berklee.edu in the shown URL field.
    10. \n
    11. Click the blue Add Website button.
    12. \n
    \n \n

    uBlock Origin

    \n
      \n
    1. At the top right of Chrome, click the\n Extensions\n button. This is an icon that looks like a puzzle piece, and is located to the right of the\n address bar.\n \n
    2. \n
    3. Click the\n uBlock Origin\n icon in the resulting list.\n \n
    4. \n
    5. Click the gears icon at the bottom right of the resulting window.
    6. \n
    7. Select\n Trusted sites\n from the list at the top of the page.\n \n
    8. \n
    9. Enter berklee.edu on a new line in the shown list.
    10. \n
    11. Click the blue Apply Changes button.
    12. \n
    \n \n

    AdBlock

    \n
      \n
    1. At the top right of Chrome, click the\n Extensions\n button. This is an icon that looks like a puzzle piece, and is located to the right of the\n address bar.\n \n
    2. \n
    3. Click the\n AdBlock\n icon in the resulting list.\n \n
    4. \n
    5. Click the\n gear\n icon at the top right of the resulting window.\n
    6. \n
    7. Select\n Customize\n from the list on the left side of the page.\n \n
    8. \n
    9. Click Show ads on a webpage or domain under the Stop blocking ads section.
    10. \n
    11. Enter berklee.edu in the shown URL field.
    12. \n
    13. Click the red OK! button.
    14. \n
    \n
    \n
    \n \n
    \n
    \n */\n {\n \"id\": \"k4c1H+I6\",\n \"block\": \"[[[10,0],[14,0,\\\"adblock-warning\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Ad Blocker Detected\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n To ensure you have a seamless learning experience on our platform, we recommend that you disable\\\\n any ad blocking software while using the BOCCE learning environment.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n Some functionality is incompatible with certain ad blockers.By turning off ad blocking software,\\\\n you’ll be able to access all resources without any limitations.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n You may also choose to continue using the platform with your ad blocker enabled, but some\\\\n features may not work as expected.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"b\\\"],[12],[1,\\\"Please note that we do not run ads on our platform. We only use cookies to improve your\\\\n experience.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"adblock-disable-instructions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"instruction-prompt\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"toggleABWhitelistInstructions\\\"]]],null],[12],[1,\\\"How to\\\\n Whitelist BOCCE on Your Adblocker\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"instruction-content \\\",[52,[30,0,[\\\"adblockWhitelistInstructions\\\"]],\\\"active\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Adblock Plus\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"At the top right of Chrome, click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Extensions\\\"],[13],[1,\\\"\\\\n button. This is an icon that looks like a puzzle piece, and is located to the right of the\\\\n address bar.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/all-1.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 1\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Adblock Plus\\\"],[13],[1,\\\"\\\\n icon in the resulting list.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/abp-2.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 2\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the \\\"],[10,\\\"i\\\"],[12],[1,\\\"gear\\\"],[13],[1,\\\" icon at the top right of the resulting window.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Select\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Allowlisted websites\\\"],[13],[1,\\\"\\\\n from the list on the left side of the page.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/abp-3.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 4\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Enter \\\"],[10,\\\"i\\\"],[12],[1,\\\"berklee.edu\\\"],[13],[1,\\\" in the shown URL field.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the blue \\\"],[10,\\\"i\\\"],[12],[1,\\\"Add Website\\\"],[13],[1,\\\" button.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"uBlock Origin\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"At the top right of Chrome, click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Extensions\\\"],[13],[1,\\\"\\\\n button. This is an icon that looks like a puzzle piece, and is located to the right of the\\\\n address bar.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/all-1.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 1\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"uBlock Origin\\\"],[13],[1,\\\"\\\\n icon in the resulting list.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/ubo-2.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 2\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the \\\"],[10,\\\"i\\\"],[12],[1,\\\"gears\\\"],[13],[1,\\\" icon at the bottom right of the resulting window.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Select\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Trusted sites\\\"],[13],[1,\\\"\\\\n from the list at the top of the page.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/ubo-3.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 4\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Enter \\\"],[10,\\\"i\\\"],[12],[1,\\\"berklee.edu\\\"],[13],[1,\\\" on a new line in the shown list.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the blue Apply Changes button.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"AdBlock\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ol\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"At the top right of Chrome, click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Extensions\\\"],[13],[1,\\\"\\\\n button. This is an icon that looks like a puzzle piece, and is located to the right of the\\\\n address bar.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/all-1.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 1\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"AdBlock\\\"],[13],[1,\\\"\\\\n icon in the resulting list.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/ab-2.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 2\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"gear\\\"],[13],[1,\\\"\\\\n icon at the top right of the resulting window.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Select\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"Customize\\\"],[13],[1,\\\"\\\\n from the list on the left side of the page.\\\\n \\\"],[11,\\\"img\\\"],[24,\\\"src\\\",\\\"/front_end/adblock-instructions/ab-3.PNG\\\"],[24,\\\"alt\\\",\\\"Ad Blocker Instructions Step 4\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"imageInNewTab\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click \\\"],[10,\\\"i\\\"],[12],[1,\\\"Show ads on a webpage or domain\\\"],[13],[1,\\\" under the Stop blocking ads section.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Enter \\\"],[10,\\\"i\\\"],[12],[1,\\\"berklee.edu\\\"],[13],[1,\\\" in the shown URL field.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Click the red \\\"],[10,\\\"i\\\"],[12],[1,\\\"OK!\\\"],[13],[1,\\\" button.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"dismissAdblockWarning\\\"]]],null],[12],[1,\\\"I do not wish to disable my ad\\\\n blocker\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dark-backdrop\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13]],[],[\\\"div\\\",\\\"h2\\\",\\\"p\\\",\\\"br\\\",\\\"b\\\",\\\"button\\\",\\\"on\\\",\\\"if\\\",\\\"h3\\\",\\\"ol\\\",\\\"li\\\",\\\"i\\\",\\\"img\\\"]]\",\n \"moduleName\": \"bocce/components/adblock-warning.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n adblockWhitelistInstructions: false,\n dismissAdblockWarning: (0, _object.action)(function () {\n this.session.set(\"hasAdBlock\", false);\n localStorage.setItem(\"dismissedAdblockWarning\", true);\n }),\n toggleABWhitelistInstructions: (0, _object.action)(function () {\n var whiteListInstructions = this.get(\"adblockWhitelistInstructions\");\n this.set(\"adblockWhitelistInstructions\", !whiteListInstructions);\n }),\n imageInNewTab: (0, _object.action)(function () {\n var imgSrc = event.target.src;\n if (imgSrc) {\n window.open(imgSrc, \"_blank\");\n }\n })\n }));\n});","define(\"bocce/components/assignment-user\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n {{@author.short_name}}\n \n \n */\n {\n \"id\": \"QaX+5dhx\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@user\\\"],[[30,1]]],null],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"author-name\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,1],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"@author\\\"],[\\\"user-portrait\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"user-icons\\\"]]\",\n \"moduleName\": \"bocce/components/assignment-user.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n session: (0, _service.inject)(),\n userprofileService: (0, _service.inject)(\"userprofile\")\n }));\n});","define(\"bocce/components/assignment/assignment-comment\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/debug\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _debug, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @response.isSaving}}\n
    \n \n Posting...\n
    \n {{/if}}\n {{#unless @response.comment}}\n \n \n ASSIGNMENT RESUBMITTED\n \n {{calendar @response.sortDate}}\n \n {{else}}\n {{#if @response.needs_repost}}\n
    Click to retry
    \n {{/if}}\n {{#if @response.is_reposting}}\n \n {{/if}}\n \n {{#if @isInstructor}}\n {{#if (same @response.user.id @userId)}}\n {{#unless @response.needs_repost}}\n {{#unless @response.is_reposting}}\n
    \n
    \n \n
    \n
    \n {{/unless}}\n {{/unless}}\n {{/if}}\n {{/if}}\n \n {{#if @isAdmin}}\n {{#unless @response.needs_repost}}\n {{#unless @response.is_reposting}}\n
    \n
    \n \n
    \n
    \n {{/unless}}\n {{/unless}}\n {{/if}}\n
    \n \n \n {{@response.user.short_name}}\n \n \n {{#if @response.created_at}}\n {{moment @response.created_at}}\n {{/if}}\n \n \n
    \n
    \n
    \n {{{@response.comment}}}\n
    \n {{#if @response.attachments}}\n
      \n
    • \n Attachments:\n
    • \n {{#each @response.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n {{/unless}}\n */\n {\n \"id\": \"/QZ7+d68\",\n \"block\": \"[[[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,1,[\\\"comment\\\"]]],[[[1,\\\" \\\"],[11,3],[24,0,\\\"goToVersion\\\"],[16,6,[29,[\\\"#assignment-version-\\\",[30,2],\\\"-\\\",[30,1,[\\\"counter\\\"]]]]],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"goToVersion\\\"]],[30,1,[\\\"counter\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"b\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-angle-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n ASSIGNMENT RESUBMITTED\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,8],[[30,1,[\\\"sortDate\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"needs_repost\\\"]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fas fa-exclamation-circle needs-repost\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"sendParentAction\\\"]],\\\"repostSubmissionComment\\\",[30,1]],null]],null],[12],[1,\\\" \\\"],[10,0],[14,0,\\\"repost\\\"],[12],[1,\\\"Click to retry\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"is_reposting\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-3x fa-fw needs-repost\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,3],[[[41,[28,[37,9],[[30,1,[\\\"user\\\",\\\"id\\\"]],[30,4]],null],[[[41,[51,[30,1,[\\\"needs_repost\\\"]]],[[[41,[51,[30,1,[\\\"is_reposting\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"response-options\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"response-reply\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"deleteConfirm\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,5],[[[41,[51,[30,1,[\\\"needs_repost\\\"]]],[[[41,[51,[30,1,[\\\"is_reposting\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"response-options\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"response-reply\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"deleteConfirm\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"author-info\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,1,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,1,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"name\\\"],[15,\\\"aria-label\\\",[29,[\\\"Comment Author: \\\",[30,1,[\\\"user\\\",\\\"short_name\\\"]]]]],[12],[1,[30,1,[\\\"user\\\",\\\"short_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[8,[39,13],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,1,[\\\"user\\\"]],[30,3]]],null],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"discussion-reply-time\\\"],[15,\\\"aria-label\\\",[29,[\\\"Comment posted at \\\",[28,[37,14],[[30,1,[\\\"created_at\\\"]]],null]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"created_at\\\"]],[[[1,\\\" \\\"],[1,[28,[35,14],[[30,1,[\\\"created_at\\\"]]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-reply\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-reply-body\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"comment\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"discussion-attachments\\\"],[14,\\\"aria-label\\\",\\\"Comment Attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n Attachments:\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,18],[[28,[37,18],[[30,1,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,19],null,[[\\\"@showDelete\\\",\\\"@attachment\\\",\\\"@deleteAttachment\\\"],[[28,[37,20],[[30,5],[30,1,[\\\"db_id\\\"]]],null],[30,6],[28,[37,6],[[28,[30,0,[\\\"sendParentAction\\\"]],[\\\"deleteSubmissionCommentAttachment\\\",[30,7],[30,1,[\\\"id\\\"]],[30,8],[30,1,[\\\"user\\\",\\\"id\\\"]],[30,6,[\\\"id\\\"]],\\\"comment\\\"],null]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@response\\\",\\\"@openAssignmentId\\\",\\\"@isInstructor\\\",\\\"@userId\\\",\\\"@isAdmin\\\",\\\"attachment\\\",\\\"@sectionId\\\",\\\"@assignmentId\\\"],[\\\"if\\\",\\\"div\\\",\\\"i\\\",\\\"unless\\\",\\\"a\\\",\\\"on\\\",\\\"fn\\\",\\\"b\\\",\\\"calendar\\\",\\\"same\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"span\\\",\\\"user-icons\\\",\\\"moment\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\",\\\"and\\\"]]\",\n \"moduleName\": \"bocce/components/assignment/assignment-comment.hbs\",\n \"isStrictMode\": false\n });\n /*\n assignment/assignment-comment Component\n \n Displays comments under an assignment.\n \n Requires the following to be provided from the parent:\n \n Properties:\n * response - the comment object\n * isInstructor - is the user an instructor?\n * userId - the current user's id\n \n Actions: (pass in the string name of the action)\n * scrollToAssignment - action to scroll to a different submission\n (relevant only if the response is a resubmission)\n * repostSubmissionComment - action for retrying comment submission\n * deleteAssignmentComment - action to delete a comment\n * toggleUserProfile - display/hide the user profile\n */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n userprofileService: (0, _service.inject)(\"userprofile\"),\n confirmDialog: (0, _service.inject)(),\n tagName: \"li\",\n classNames: [\"reply\"],\n classNameBindings: [\"deleted\", \"response.isSaving:is-posting\"],\n attributeBindings: [\"ariaLabel:aria-label\", \"counter:data-counter\"],\n deleted: (0, _computed.reads)(\"response.is_deleted\"),\n counter: (0, _computed.reads)(\"response.counter\"),\n didInsertElement: function didInsertElement() {\n this._super.apply(this, arguments);\n // Some entries are stored with preload='none', so we need this for now\n this.element.querySelectorAll(\".post-video-embed\").forEach(function (video) {\n video.preload = \"metadata\";\n video.load();\n });\n },\n goToVersion: (0, _object.action)(function (counter, event) {\n event.preventDefault();\n this.sendParentAction(\"scrollToAssignment\", counter);\n }),\n // Computed property for the aria-label\n ariaLabel: (0, _object.computed)(\"response.author.name\", function () {\n return \"Submission comment from \".concat(this.get(\"response.user.short_name\"));\n }),\n deleteConfirm: (0, _object.action)(function () {\n var _this = this;\n var message = \"Are you sure you wish to delete this comment? This action CANNOT be undone!\";\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. If permanent deletion of attachments is desired, first delete manually in S3. Then manually delete in Canvas.\", \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n /* eslint-disable-next-line ember/no-get */\n var id = _this.get(\"response.id\");\n _this.send(\"sendParentAction\", \"deleteAssignmentComment\", id);\n }\n });\n }),\n sendParentAction: (0, _object.action)(function (action) {\n (false && !(typeof this.get(action) !== \"undefined\") && (0, _debug.assert)(\"action should be defined.\", typeof this.get(action) !== \"undefined\"));\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n this.get(action).apply(void 0, args);\n })\n }));\n});","define(\"bocce/components/assignment/assignment-list\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each this.sortedAssignments as |assignment|}}\n {{#if @isInstructor}}\n {{#if (morethan assignment.submissions.length \"0\")}}\n \n {{{assignment.title}}}\n {{#if (morethan assignment.numUngradedSubmissions \"0\")}}{{assignment.numUngradedSubmissions}} ungraded{{/if}}\n \n {{else}}\n
  • \n {{{assignment.title}}}\n {{#if (morethan assignment.numUngradedSubmissions \"0\")}}{{assignment.numUngradedSubmissions}} ungraded{{/if}}\n
  • \n {{/if}}\n {{else}}\n \n {{{assignment.title}}}\n \n {{/if}}\n {{/each}}\n */\n {\n \"id\": \"lTd/M7Z+\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"sortedAssignments\\\"]]],null]],null],null,[[[41,[30,2],[[[41,[28,[37,3],[[30,1,[\\\"submissions\\\",\\\"length\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"aria-label\\\",[29,[\\\"Go to the assignment titled \\\",[30,1,[\\\"title\\\"]]]]],[16,0,[29,[[52,[28,[37,3],[[30,1,[\\\"numUngradedSubmissions\\\"]],\\\"0\\\"],null],\\\"incomplete\\\",\\\"completed\\\"]]]],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"sendGoToAssignment\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[41,[28,[37,3],[[30,1,[\\\"numUngradedSubmissions\\\"]],\\\"0\\\"],null],[[[10,0],[14,0,\\\"assignment-list-ungraded-count\\\"],[12],[1,[30,1,[\\\"numUngradedSubmissions\\\"]]],[1,\\\" ungraded\\\"],[13]],[]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"sendGoToAssignment\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[41,[28,[37,3],[[30,1,[\\\"numUngradedSubmissions\\\"]],\\\"0\\\"],null],[[[10,0],[14,0,\\\"assignment-list-ungraded-count\\\"],[12],[1,[30,1,[\\\"numUngradedSubmissions\\\"]]],[1,\\\" ungraded\\\"],[13]],[]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[[52,[30,1,[\\\"currentUserSubmission\\\"]],\\\"student completed\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"currentUserSubmissionGrade\\\"]],\\\"graded\\\"]]]],[16,\\\"assignment_list_grade\\\",[29,[[52,[30,1,[\\\"currentUserSubmissionGrade\\\"]],[30,1,[\\\"currentUserSubmissionGrade\\\"]]]]]],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"sendGoToAssignment\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null]],[\\\"assignment\\\",\\\"@isInstructor\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"morethan\\\",\\\"li\\\",\\\"on\\\",\\\"fn\\\",\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/assignment/assignment-list.hbs\",\n \"isStrictMode\": false\n });\n /*\n \n Assignment::AssignmentList Component\n \n Requires the following to be provided:\n * @assignments - an ember-data array of all assignments, eg the result\n of store.findAll('assignment')\n * isInstructor - boolean value, you can pass down session.isInstructor\n * goToAssignment - an action to handle transitioning to an assignment\n \n example:\n {{assignment/assignment-list\n assignments=assignments\n isInstructor=session.isInstructor\n goToAssignment=goToAssignmentAction\n }}\n \n */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n loadedAssignments: undefined,\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n this.sortProperties = this.sortProperties || [\"due_at\"];\n this.assignments.then(function (assignments) {\n return _this.set(\"loadedAssignments\", assignments);\n });\n },\n tagName: \"ul\",\n classNames: \"assignment-list\",\n sortedAssignments: (0, _computed.sort)(\"loadedAssignments\", \"sortProperties\"),\n sendGoToAssignment: (0, _object.action)(function (id) {\n this.goToAssignment(id);\n })\n }));\n});","define(\"bocce/components/attachment-preview\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{!\n I know the repeated delete attachment buttons is ugly, but given the required placement\n of the button and the nature of this file, repeating the button seemed to be the best solution.\n }}\n \n {{#if @attachment}}\n {{#if this.is_image}}\n \"{{this.attachment_name}}\"\n {{#if @showDelete}}\n \n {{/if}}\n {{this.attachment_name}}\n \n {{else}}\n {{#if this.is_video}}\n \n {{#if @showDelete}}\n \n {{/if}}\n {{this.attachment_name}}\n \n {{else}}\n {{#if this.is_audio}}\n \n {{#if @showDelete}}\n \n {{/if}}\n {{this.attachment_name}}\n \n {{else}}\n {{#if @showDelete}}\n \n {{/if}}\n {{#if this.is_quicktime}}\n {{this.attachment_name}}\n \n {{else}}\n {{this.attachment_name}}\n
    \n {{#unless this.isMobile}}\n {{#if this.is_pdf}}\n {{#if this.att_URL_noDL}}\n \n {{/if}}\n {{/if}}\n {{/unless}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n
    \n {{this.created_at_formatted}}
    \n {{else}}\n \n Loading Attachment...\n {{/if}}\n */\n {\n \"id\": \"lgEPFlx/\",\n \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[30,1],[[[41,[30,0,[\\\"is_image\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"att_URL\\\"]]]]],[14,0,\\\"attachment-img\\\"],[15,\\\"alt\\\",[29,[[30,0,[\\\"attachment_name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"attachment-deletion far fa-trash\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,3],[15,6,[29,[[30,0,[\\\"att_URL\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,[30,0,[\\\"attachment_name\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-image\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"is_video\\\"]],[[[1,\\\" \\\"],[10,\\\"video\\\"],[14,1,\\\"video1\\\"],[14,\\\"preload\\\",\\\"none\\\"],[14,\\\"controls\\\",\\\"\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"source\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"att_URL\\\"]]]]],[15,4,[29,[[30,1,[\\\"type\\\"]]]]],[12],[13],[1,\\\"\\\\n Your browser does not support HTML5 video.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"attachment-deletion far fa-trash\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3],[30,1]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,3],[15,6,[29,[[30,0,[\\\"att_URL\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,[30,0,[\\\"attachment_name\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"is_audio\\\"]],[[[1,\\\" \\\"],[10,\\\"audio\\\"],[14,\\\"controls\\\",\\\"\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"att_URL\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"attachment-deletion far fa-trash\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,3],[15,6,[29,[[30,0,[\\\"att_URL\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"attachment-name\\\"],[12],[1,[30,0,[\\\"attachment_name\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-audio\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"attachment-deletion far fa-trash\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,3]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"is_quicktime\\\"]],[[[1,\\\" \\\"],[10,3],[15,6,[29,[[30,0,[\\\"att_URL\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,[30,0,[\\\"attachment_name\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,3],[15,6,[29,[[30,0,[\\\"att_URL\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,[30,0,[\\\"attachment_name\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far fa-file\\\\n \\\",[52,[30,0,[\\\"is_word\\\"]],\\\"fa-file-word\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"is_pdf\\\"]],\\\"fa-file-pdf\\\"]]]],[12],[13],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isMobile\\\"]]],[[[41,[30,0,[\\\"is_pdf\\\"]],[[[41,[30,0,[\\\"att_URL_noDL\\\"]],[[[1,\\\" \\\"],[10,\\\"iframe\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"att_URL_noDL\\\"]]]]],[14,0,\\\"pdf-preview-iframe\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]]]],[]]]],[]]]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"sub-time\\\"],[14,\\\"aria-label\\\",\\\"Attachment submission time\\\"],[12],[10,\\\"i\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"created_at_formatted\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading Attachment...\\\\n\\\"]],[]]]],[\\\"@attachment\\\",\\\"@showDelete\\\",\\\"@deleteAttachment\\\"],[\\\"if\\\",\\\"img\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"a\\\",\\\"i\\\",\\\"video\\\",\\\"source\\\",\\\"audio\\\",\\\"unless\\\",\\\"iframe\\\",\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/attachment-preview.hbs\",\n \"isStrictMode\": false\n });\n var supportedVideoTypes = {\n chrome: [\"video/mp4\", \"video/webm\"],\n firefox: [\"video/mp4\", \"video/quicktime\", \"video/ogg\"],\n edge: [\"video/mp4\", \"video/webm\"],\n safari: [\"video/mp4\"],\n opera: [\"video/mp4\"],\n other: [\"video/mp4\"]\n };\n var isEdge = navigator.userAgent.indexOf(\"Edg\") !== -1;\n var isOpera = !!window.opera || navigator.userAgent.indexOf(\"OPR/\") !== -1;\n var isFirefox = navigator.userAgent.toLowerCase().indexOf(\"firefox\") > -1 && \"netscape\" in window && / rv:/.test(navigator.userAgent);\n var isChrome = !isOpera && !isEdge && !!navigator.webkitGetUserMedia || navigator.userAgent.toLowerCase().indexOf(\"chrome/\") !== -1;\n var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n function browserCanPlayVideoType(type) {\n if (!type) {\n return false;\n }\n var canPlay = false;\n if (isChrome) {\n canPlay = supportedVideoTypes.chrome.includes(type);\n } else if (isFirefox) {\n canPlay = supportedVideoTypes.firefox.includes(type);\n } else if (isEdge) {\n canPlay = supportedVideoTypes.edge.includes(type);\n } else if (isSafari) {\n canPlay = supportedVideoTypes.safari.includes(type);\n } else if (isOpera) {\n canPlay = supportedVideoTypes.opera.includes(type);\n } else {\n canPlay = supportedVideoTypes.other.includes(type);\n }\n return type.includes(\"video\") && (canPlay || document.createElement(\"video\").canPlayType(type) === \"probably\");\n }\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n Promise.resolve(this.attachment).then(function (a) {\n if (_this.isDestroyed || _this.isDestroying) {\n return;\n }\n _this.set(\"attachment\", a);\n if (_this.is_pdf && !_this.isMobile) {\n _this.loadNoDLUrl();\n }\n });\n },\n att_URL: (0, _object.computed)(\"attachment.url\", function () {\n // HOTFIX: Swap docker IP for bocce URL\n /* eslint-disable-next-line ember/no-get */\n var attachment = this.get(\"attachment.url\") || \"\";\n var docker_ip_regex = /https:\\/\\/(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/;\n var host = window.location.origin;\n return attachment.replace(docker_ip_regex, host);\n }),\n created_at_formatted: (0, _object.computed)(\"attachment.created_at\", function () {\n return moment(this.get(\"attachment.created_at\")).tz(\"America/New_York\").format(\"MMM Do[,] h:mm:ss a\") + \" ET\";\n }),\n attachment_name: (0, _computed.or)(\"attachment.display_name\", \"attachment.name\"),\n // Populated asynchronously by loadNoDLUrl() once the blob is fetched.\n att_URL_noDL: false,\n loadNoDLUrl: function loadNoDLUrl() {\n var _this2 = this;\n if (this.isDestroyed || this.isDestroying) {\n return;\n }\n var url = this.att_URL;\n if (!url) {\n return;\n }\n\n // download file contents from URL and put in a blob\n var xhr = new XMLHttpRequest();\n xhr.open(\"GET\", url, true);\n xhr.responseType = \"blob\";\n xhr.onload = function (e) {\n if (_this2.isDestroyed || _this2.isDestroying) {\n return;\n }\n if (e.target.status == 200 && e.loaded === e.total) {\n var blob = e.target.response;\n var blobUrl = window.URL.createObjectURL(blob);\n _this2.set(\"att_URL_noDL\", blobUrl);\n }\n };\n xhr.send();\n },\n isMobile: (0, _object.computed)(function () {\n return _jquery.default.isMobile;\n }),\n is_image: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return t === \"image/jpeg\" || t === \"image/png\";\n }),\n is_video: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return browserCanPlayVideoType(t);\n }),\n is_quicktime: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return t === \"video/quicktime\";\n }),\n is_audio: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return t === \"audio/mpeg3\" || t === \"audio/mp3\" || t === \"audio/mpeg\" || t === \"audio/x-m4a\";\n }),\n is_word: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return t === \"application/msword\";\n }),\n is_pdf: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return t === \"application/pdf\";\n }),\n is_zip: (0, _object.computed)(\"attachment.{type,content-type}\", function () {\n // eslint-disable-next-line ember/no-get\n var t = this.get(\"attachment.type\") || this.get(\"attachment.content-type\");\n return t === \"application/zip\";\n })\n }));\n});","define(\"bocce/components/banner-drawer\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/service\", \"bocce/mixins/enmodal\", \"bocce/mixins/notify\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _service, _enmodal, _notify, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/notify\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n {{#each this.banners as |notif index|}}\n {{#unless notif.dismissed}}\n \n {{#if (same notif.type \"urgent\")}}\n \n {{else}}\n {{#if (same notif.type \"global\")}}\n \n {{else}}\n {{#if (or (same notif.type \"status\") (same notif.dismiss_condition_id 7))}}\n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{/if}}\n \n {{#if (same notif.dismiss_condition_id 7)}}\n
    Have you checked out your new dashboard?
    \n {{/if}}\n \n
    {{{teaser\n notif.message\n }}}
    \n {{#if (same notif.dismiss_condition_id 7)}}\n
    \n Maybe later\n \n
    \n {{/if}}\n {{#if notif.dismissable}}\n
    \n {{/if}}\n
    \n {{/unless}}\n {{/each}}\n \n {{#if (morethanzero this.banners)}}\n \n \n \n {{/if}}\n \n */\n {\n \"id\": \"wZVJLS9z\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"notification-wrapper \\\",[52,[30,0,[\\\"drawerActive\\\"]],\\\"active\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"notification-drawer\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"banners\\\"]]],null]],null],null,[[[41,[51,[30,1,[\\\"dismissed\\\"]]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"notif-container\\\\n \\\",[30,1,[\\\"type\\\"]],\\\"\\\\n \\\",[52,[28,[37,5],[[30,1,[\\\"dismiss_condition_id\\\"]],7],null],\\\"dashboard-banner\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"type\\\"]],\\\"urgent\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-exclamation-circle notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,1,[\\\"type\\\"]],\\\"global\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-bullhorn notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[28,[37,5],[[30,1,[\\\"type\\\"]],\\\"status\\\"],null],[28,[37,5],[[30,1,[\\\"dismiss_condition_id\\\"]],7],null]],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-info-circle notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-question-circle notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"dismiss_condition_id\\\"]],7],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"dashboard-banner-heading\\\"],[12],[1,\\\"Have you checked out your new dashboard?\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"message\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"viewNotif\\\"]],[30,2]],null]],null],[12],[2,[28,[37,10],[[30,1,[\\\"message\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,1,[\\\"dismiss_condition_id\\\"]],7],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"dashboard-banner-footer\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"dashboard-banner-dismiss button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"dismissDashboardNotif\\\"]],[30,2]],null]],null],[12],[1,\\\"Maybe later\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"viewNotif\\\"]],[30,2]],null]],null],[12],[1,\\\"Check it out!\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"dismissable\\\"]],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Dismiss Notification\\\"],[24,0,\\\"close-button\\\"],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"dismissNotif\\\"]],[30,2]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,0,[\\\"banners\\\"]]],null],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"notif-handle\\\"],[24,\\\"aria-label\\\",\\\"Show Notification Drawer\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"toggleDrawer\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-up up-caret\\\"],[12],[13],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-down down-caret\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"notif\\\",\\\"index\\\"],[\\\"div\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"same\\\",\\\"i\\\",\\\"or\\\",\\\"on\\\",\\\"fn\\\",\\\"teaser\\\",\\\"button\\\",\\\"morethanzero\\\"]]\",\n \"moduleName\": \"bocce/components/banner-drawer.hbs\",\n \"isStrictMode\": false\n });\n // app/components/banner-drawer.js\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_enmodal.default, _notify.default, {\n confirmDialog: (0, _service.inject)(),\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n var hashSplit = window.location.hash.split(\"/\");\n var course = null;\n if (hashSplit.length > 1) {\n course = hashSplit[1];\n if (+course) {\n _jquery.default.get(\"/interface/banners/user/active/-1/\".concat(course)).then(function (ban) {\n if (ban.id && ban.message) {\n var modal_type = ban.dismiss_condition == \"survey\" ? \"survey\" : null;\n var modal_id = ban.dismiss_condition == \"survey\" ? \"course\" : null;\n _this.actions.notify(ban.message, ban.is_dismissable, modal_type, modal_id, 100, _this.session, false, ban.link, ban.id, \"banner\", ban.dismiss_condition_id);\n _this.session.last_banner_serial = ban.id;\n }\n });\n }\n }\n },\n banners: (0, _computed.reads)(\"session.banners\"),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n toggleDrawer: (0, _object.action)(function () {\n if (!this.drawerActive) {\n this.set(\"drawerActive\", true);\n this.set(\"session.notification\", false);\n } else {\n this.set(\"drawerActive\", false);\n }\n }),\n dismissDashboardNotif: (0, _object.action)(function (id) {\n this.send(\"dismissNotif\", id);\n if (_jquery.default.isMobile) {\n this.confirmDialog.show({\n subtitle: \"You can find it later in the user menu.\"\n });\n } else {\n this.confirmDialog.show({\n subtitle: \"You can find it later in the user menu or by clicking the logo in the top left corner.\"\n });\n }\n }),\n //Dismiss banner by index\n dismissNotif: (0, _object.action)(function (id) {\n // ID is not the banner id, but the index of the banner in the array\n // the banner id is the 'serial' property\n var singleBanner = this.session.banners[id],\n dismissable = singleBanner.dismissable,\n banner_id = singleBanner.id,\n course_id = this.get(\"session.course.id\"),\n term_id = this.get(\"session.termID\");\n if (dismissable) {\n /* eslint-disable-next-line ember/no-get */\n var banners = this.get(\"session.banners\");\n\n // Mark announcement as read\n if (banners[id].modal_type === \"discussion\") {\n this.store.findRecord(\"discussion\", banners[id].modal_id).then(function (model) {\n model.set(\"read\", true);\n if (model.get(\"hasUnreadResponses\")) {\n model.set(\"markReadThrough\", model.get(\"lastResponseId\"));\n }\n model.save();\n });\n }\n\n // Dismiss the banner for the particular user on the back end\n // show error if failure.\n var dismissRequest = _jquery.default.get(\"/interface/banners/\".concat(banner_id, \"/dismiss/\").concat(term_id, \"/\").concat(course_id));\n\n // Remove from banner drawer\n banners.splice(id, 1);\n this.set(\"session.banners\", banners);\n this.notifyPropertyChange(\"banners\");\n }\n }),\n viewNotif: (0, _object.action)(function (index) {\n var banner = this.session.banners[index];\n if (banner.reload) {\n location.reload(true);\n return;\n }\n\n // Remove from banner drawer\n var banners = this.session.banners;\n banners.splice(index, 1);\n this.set(\"session.banners\", banners);\n this.notifyPropertyChange(\"banners\");\n\n // Close drawer\n this.set(\"drawerActive\", false);\n if (banner.link) {\n window.open(banner.link, \"_blank\");\n } else if (banner.modal_id) {\n this.send(\"viewModal\", banner.modal_type, banner.modal_id);\n } else {\n this.confirmDialog.show({\n subtitle: banner.message\n });\n }\n })\n }));\n});","define(\"bocce/components/bookmarks/bookmark-preview\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n
    Bookmark Page
    \n
    \n \n \n
    \n
    \n
    \n {{{@bookmarksService.bookmarkPreview.bodyCleaned}}}\n
    \n
    \n */\n {\n \"id\": \"yERo2e6R\",\n \"block\": \"[[[10,0],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"popup-backdrop\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"bookmarks-preview floating-modal active\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks-preview-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks-preview-modal-title modal-title\\\"],[12],[1,\\\"Bookmark Page\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"bookmark-preview-visit\\\"],[24,\\\"hint\\\",\\\"Visit\\\"],[24,0,\\\"fas fa-external-link button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,1,[\\\"visitBookmark\\\"]],\\\"classroom.lessons\\\",[30,1,[\\\"bookmarkPreview\\\",\\\"course_id\\\"]],[30,1,[\\\"bookmarkPreview\\\",\\\"course_code\\\"]],[30,1,[\\\"bookmarkPreview\\\",\\\"section_id\\\"]],[30,1,[\\\"bookmarkPreview\\\",\\\"lesson_id\\\"]],[30,1,[\\\"bookmarkPreview\\\",\\\"page_id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"bookmarks-preview-close-button close-button fas fa-times\\\"],[24,\\\"aria-label\\\",\\\"Close bookmarks\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,1,[\\\"setBookmarkPreview\\\"]],false],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmark-preview-body\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"bookmarkPreview\\\",\\\"bodyCleaned\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@bookmarksService\\\"],[\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/bookmarks/bookmark-preview.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"bookmark-preview\"));\n});","define(\"bocce/components/bookmarks/bookmarks-content\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#each-in @bookmarksService.courseBookmarks as |lesson bookmarks|}}\n {{#if (morethan @bookmarksService.numBookmarksLessons 1)}}\n \n
    {{lesson}}
    \n \n \n {{else}}\n
    {{lesson}}
    \n {{/if}}\n {{#if bookmarks.shown}}\n
    \n {{#each bookmarks.bookmarks as |bookmark index|}}\n
    \n
    \n
    {{{bookmark.page_title}}}
    \n
    \n \n \n \n
    \n
    \n {{#if bookmark.notes}}\n \n {{/if}}\n
    \n
    \n

    Bookmark {{bookmark.page_title}}

    \n {{#if bookmark.notes}}\n
    \n

    Bookmark Notes:

    \n

    {{bookmark.notes}}

    \n
    \n {{/if}}\n \n \n \n
    \n {{/each}}\n
    \n {{/if}}\n {{/each-in}}\n
    \n */\n {\n \"id\": \"z/PZ30kR\",\n \"block\": \"[[[10,0],[14,0,\\\"bookmarks-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[30,1,[\\\"courseBookmarks\\\"]]],null],null,[[[41,[28,[37,4],[[30,1,[\\\"numBookmarksLessons\\\"]],1],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"bookmarks-list-collapsible\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"toggleBookmarksShown\\\"]],[30,2],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,[30,3]],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular \\\",[52,[30,2,[\\\"shown\\\"]],\\\"fa-caret-down\\\",\\\"fa-caret-left\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bookmarks-list-collapsible\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,2,[\\\"shown\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bookmarks-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,2,[\\\"bookmarks\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"bookmark-item\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmark-item-overview\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmark-item-name\\\"],[12],[2,[30,4,[\\\"page_title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmark-item-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Rename\\\"],[24,0,\\\"button--gray button--sm\\\"],[24,\\\"aria-label\\\",\\\"Modify Bookmark Notes\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"modifyNotes\\\"]],[30,4,[\\\"notes\\\"]],[30,4,[\\\"id\\\"]],[30,4,[\\\"page_title\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pencil\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button--gray button--sm\\\"],[24,\\\"hint\\\",\\\"Visit\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"visitBookmark\\\"]],\\\"classroom.lessons\\\",[30,4,[\\\"course_id\\\"]],[30,4,[\\\"lesson_id\\\"]],[30,4,[\\\"page_id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-external-link\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Delete\\\"],[24,0,\\\"button--gray button--sm\\\"],[24,\\\"aria-label\\\",\\\"Permanently Delete Bookmark\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"deleteBookmark\\\"]],[30,4,[\\\"page_title\\\"]],[30,4,[\\\"id\\\"]],[30,4,[\\\"content_tag_id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"notes\\\"]],[[[1,\\\" \\\"],[8,[39,10],null,[[\\\"@bookmark\\\"],[[30,4]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"sr-only bookmark-item-sr\\\"],[15,\\\"aria-label\\\",[29,[\\\"Bookmark \\\",[30,4,[\\\"page_title\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Bookmark \\\"],[1,[30,4,[\\\"page_title\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"notes\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"sr-only bookmark-item-notes\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Bookmark Notes:\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,[30,4,[\\\"notes\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Rename\\\"],[24,0,\\\"button--gray button--sm\\\"],[24,\\\"aria-label\\\",\\\"Modify Bookmark Notes\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"modifyNotes\\\"]],[30,4,[\\\"notes\\\"]],[30,4,[\\\"id\\\"]],[30,4,[\\\"page_title\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pencil\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"bookmark-visit button--gray button--sm\\\"],[24,\\\"hint\\\",\\\"Visit\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"visitBookmark\\\"]],\\\"classroom.lessons\\\",[30,4,[\\\"course_id\\\"]],[30,4,[\\\"course_code\\\"]],[30,4,[\\\"section_id\\\"]],[30,4,[\\\"lesson_id\\\"]],[30,4,[\\\"page_id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-external-link\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Delete\\\"],[24,0,\\\"button--gray button--sm\\\"],[24,\\\"aria-label\\\",\\\"Permanently Delete Bookmark\\\"],[24,4,\\\"button\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"deleteBookmark\\\"]],[30,4,[\\\"page_title\\\"]],[30,4,[\\\"id\\\"]],[30,4,[\\\"content_tag_id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[2,3]],null],[13]],[\\\"@bookmarksService\\\",\\\"bookmarks\\\",\\\"lesson\\\",\\\"bookmark\\\",\\\"index\\\"],[\\\"div\\\",\\\"each\\\",\\\"-each-in\\\",\\\"if\\\",\\\"morethan\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\",\\\"-track-array\\\",\\\"bookmarks/bookmark-note\\\",\\\"h1\\\",\\\"h2\\\",\\\"p\\\"]]\",\n \"moduleName\": \"bocce/components/bookmarks/bookmarks-content.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"bookmarks-content\"));\n});","define(\"bocce/components/bookmarks/bookmarks\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @bookmarksService.bookmarkManagerShown}}\n \n
    \n \n \n
    \n \n {{#if @bookmarksService.bookmarkPreview}}\n \n {{/if}}\n \n {{#if @bookmarksService.loadingAllBookmarks}}\n
    \n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"NLdtOJY1\",\n \"block\": \"[[[41,[30,1,[\\\"bookmarkManagerShown\\\"]],[[[1,\\\" \\\"],[11,0],[24,\\\"aria-hidden\\\",\\\"true\\\"],[24,0,\\\"popup-backdrop active\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,1,[\\\"setBookmarkManagerShown\\\"]],false],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bookmarks floating-modal active\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@bookmarksService\\\"],[[30,1]]],null],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@bookmarksService\\\"],[[30,1]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1,[\\\"bookmarkPreview\\\"]],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@bookmarksService\\\"],[[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"loadingAllBookmarks\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bookmarks-loading-all-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-lg fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[\\\"@bookmarksService\\\"],[\\\"if\\\",\\\"div\\\",\\\"on\\\",\\\"fn\\\",\\\"bookmarks/bookmarks-header\\\",\\\"bookmarks/bookmarks-content\\\",\\\"bookmarks/bookmark-preview\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/bookmarks/bookmarks.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"bookmarks\"));\n});","define(\"bocce/components/buttons/add-button\", [\"exports\", \"@ember/component\", \"bocce/components/buttons/async-button\", \"@ember/template-factory\"], function (_exports, _component, _asyncButton, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/components/buttons/async-button\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{yield}}\n */\n {\n \"id\": \"jvn4uFLS\",\n \"block\": \"[[[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[12],[13],[1,\\\" \\\"],[18,1,null]],[\\\"&default\\\"],[\\\"i\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"bocce/components/buttons/add-button.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _asyncButton.default.extend({\n classNames: [\"add\"]\n }));\n});","define(\"bocce/components/buttons/async-button\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"bocce/components/buttons/button-generic\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _computed, _buttonGeneric, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"bocce/components/buttons/button-generic\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{yield}}\n {{#if this._working}}\n \n {{/if}}\n */\n {\n \"id\": \"u4l7RqEW\",\n \"block\": \"[[[18,1,null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"_working\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"loading-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"&default\\\"],[\\\"yield\\\",\\\"if\\\",\\\"span\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/buttons/async-button.hbs\",\n \"isStrictMode\": false\n });\n /*\n \n buttons/async-button component\n \n Creates a button that plays nicely with async actions. Expects the following parameters:\n * promiseAction - an action that returns a Promise\n * thenAction - an action to call on the Promise resolution. promiseAction will pass its resolved value to thenAction\n * active (optional) - a property to activate/deactivate the button. Button is active when truthy, inactive when\n falsey. When active is not provided, the button defaults to active.\n */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _buttonGeneric.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n // Default to active when no active condition is supplied.\n this.active = typeof this.active !== \"undefined\" ? this.active : true;\n },\n attributeBindings: [\"ariaLabel:aria-label\", \"ariaDisabled:aria-disabled\"],\n classNames: [\"button\", \"async\"],\n classNameBindings: [\"_ready:active\", \"_working:working\"],\n ariaLabel: (0, _object.computed)(\"activeLabel\", \"inactiveLabel\", \"_working\", \"_ready\", function () {\n if (this._ready) {\n return this.activeLabel;\n } else {\n if (this._working) {\n return \"loading\";\n } else {\n return this.inactiveLabel;\n }\n }\n }),\n ariaDisabled: (0, _computed.not)(\"_ready\"),\n _working: false,\n _ready: (0, _object.computed)(\"_working\", \"active\", function () {\n return !this._working && this.active;\n }),\n click: function click() {\n var _this = this;\n if (this._ready) {\n this.set(\"_working\", true);\n this.promiseAction().then(function (resolved_val) {\n _this.set(\"_working\", false);\n if (typeof _this.thenAction === \"function\") {\n _this.thenAction(resolved_val);\n }\n });\n }\n }\n }));\n});","define(\"bocce/components/buttons/button-generic\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n /*\n Generic button component; sends its action on click. You can extend\n this to create more specific, reusable button components\n */\n var _default = _exports.default = _component.default.extend({\n tagName: \"button\",\n classNames: [\"button\"],\n click: function click() {\n this.action();\n }\n });\n});","define(\"bocce/components/buttons/delete-button\", [\"exports\", \"@ember/component\", \"bocce/components/buttons/async-button\", \"@ember/template-factory\"], function (_exports, _component, _asyncButton, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/components/buttons/async-button\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{yield}}\n */\n {\n \"id\": \"Cd52g2t1\",\n \"block\": \"[[[10,\\\"i\\\"],[14,0,\\\"fas fa-trash-alt\\\"],[12],[13],[1,\\\" \\\"],[18,1,null]],[\\\"&default\\\"],[\\\"i\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"bocce/components/buttons/delete-button.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _asyncButton.default.extend({\n classNames: [\"delete\"]\n }));\n});","define(\"bocce/components/buttons/submit-button\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"+TYSSyvk\",\n \"block\": \"[[[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13]],[],[\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/buttons/submit-button.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"button\",\n classNames: [\"editor-save-btn\"],\n classNameBindings: [\"active\"],\n attributeBindings: [\"ariaLabel:aria-label\", \"ariaDisabled:aria-disabled\"],\n ariaLabel: (0, _object.computed)(\"active\", \"activeLabel\", \"inactiveLabel\", function () {\n if (this.active) {\n return this.activeLabel;\n } else {\n return this.inactiveLabel;\n }\n }),\n ariaDisabled: (0, _computed.not)(\"active\"),\n click: function click() {\n if (this.active) {\n this.action();\n }\n }\n }));\n});","define(\"bocce/components/chips/chip-submission\", [\"exports\", \"@glimmer/component\", \"bocce/helpers/eq\", \"bocce/components/chips/chip-submission/chip-submission-details\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _eq, _chipSubmissionDetails, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _exports.STATUS = void 0;\n var _WorkCard;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"bocce/helpers/eq\",0,\"bocce/components/chips/chip-submission/chip-submission-details\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var STATUS = _exports.STATUS = Object.freeze({\n NOT_SUBMITTED: \"not_submitted\",\n SUBMITTED: \"submitted\",\n SUBMITTED_LATE: \"submitted_late\",\n EXTENSION: \"extension\",\n OVERDUE: \"overdue\",\n RESUBMIT: \"resubmit\"\n });\n var WorkCard = _exports.default = /*#__PURE__*/function (_Component) {\n function WorkCard() {\n var _this;\n _classCallCheck(this, WorkCard);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, WorkCard, [].concat(args));\n _defineProperty(_this, \"STATUS\", STATUS);\n return _this;\n }\n _inherits(WorkCard, _Component);\n return _createClass(WorkCard);\n }(_component.default);\n _WorkCard = WorkCard;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#if (eq @status this.STATUS.SUBMITTED)}}\n \n {{else if (eq @status this.STATUS.SUBMITTED_LATE)}}\n \n {{else if (eq @status this.STATUS.EXTENSION)}}\n \n {{else if (eq @status this.STATUS.OVERDUE)}}\n \n {{else if (eq @status this.STATUS.RESUBMIT)}}\n \n {{else}}\n \n {{/if}}\n */\n {\n \"id\": \"o2FrMQwh\",\n \"block\": \"[[[41,[28,[32,0],[[30,1],[30,0,[\\\"STATUS\\\",\\\"SUBMITTED\\\"]]],null],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@chipModifier\\\",\\\"@iconModifier\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@grade\\\"],[\\\"submitted\\\",\\\"submitted\\\",\\\"fa-check\\\",\\\"Submitted\\\",[30,2]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,0],[[30,1],[30,0,[\\\"STATUS\\\",\\\"SUBMITTED_LATE\\\"]]],null],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@chipModifier\\\",\\\"@iconModifier\\\",\\\"@icon\\\",\\\"@label\\\",\\\"@grade\\\",\\\"@late\\\"],[\\\"submitted\\\",\\\"submitted\\\",\\\"fa-check\\\",\\\"Submitted\\\",[30,2],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,0],[[30,1],[30,0,[\\\"STATUS\\\",\\\"EXTENSION\\\"]]],null],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@iconModifier\\\",\\\"@icon\\\",\\\"@label\\\"],[\\\"extension\\\",\\\"fa-plus\\\",\\\"Extension\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,0],[[30,1],[30,0,[\\\"STATUS\\\",\\\"OVERDUE\\\"]]],null],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@chipModifier\\\",\\\"@iconModifier\\\",\\\"@icon\\\",\\\"@label\\\"],[\\\"overdue\\\",\\\"overdue\\\",\\\"fa-exclamation\\\",\\\"Overdue\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,0],[[30,1],[30,0,[\\\"STATUS\\\",\\\"RESUBMIT\\\"]]],null],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@chipModifier\\\",\\\"@iconModifier\\\",\\\"@icon\\\",\\\"@label\\\"],[\\\"resubmit\\\",\\\"resubmit\\\",\\\"fa-sync\\\",\\\"Needs Resubmission\\\"]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@icon\\\",\\\"@label\\\"],[\\\"fa-ellipsis\\\",\\\"Not submitted\\\"]],null],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[\\\"@status\\\",\\\"@grade\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/chips/chip-submission.js\",\n \"scope\": function scope() {\n return [_eq.default, _chipSubmissionDetails.default];\n },\n \"isStrictMode\": true\n }), _WorkCard);\n});","define(\"bocce/components/chips/chip\", [\"exports\", \"@glimmer/component\", \"@ember/modifier\", \"@ember/object\", \"@glimmer/tracking\", \"ember-modifier\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _modifier, _object, _tracking, _emberModifier, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _Chip;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-modifier\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var Chip = _exports.default = /*#__PURE__*/function (_Component) {\n function Chip() {\n var _this;\n _classCallCheck(this, Chip);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Chip, [].concat(args));\n _defineProperty(_this, \"_setup\", (0, _emberModifier.modifier)(function (element) {\n var _this$args, _this$args$setup;\n (_this$args = _this.args) === null || _this$args === void 0 || (_this$args$setup = _this$args.setup) === null || _this$args$setup === void 0 || _this$args$setup.call(_this$args, element);\n }));\n return _this;\n }\n _inherits(Chip, _Component);\n return _createClass(Chip);\n }(_component.default);\n _Chip = Chip;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{yield}}\n
    \n */\n {\n \"id\": \"lrGRujDv\",\n \"block\": \"[[[11,0],[16,0,[29,[\\\"chip \\\",[30,1]]]],[4,[30,0,[\\\"_setup\\\"]],null,null],[12],[1,\\\"\\\\n \\\"],[18,2,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@classes\\\",\\\"&default\\\"],[\\\"yield\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/chips/chip.js\",\n \"isStrictMode\": true\n }), _Chip);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/inbox\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"ember-concurrency\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _tracking, _emberConcurrency, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"ember-concurrency\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
      \n \n \n Mark Unread\n \n {{#unless this.session.isLimitedStudentTerm}}\n Compose\n {{/unless}}\n \n {{#each this.inboxData as |conversation index|}}\n {{#if conversation.active}}\n \n {{/if}}\n {{else}}\n {{#if this.session.isLimitedStudentTerm}}\n \n {{else}}\n
    • \n
      \n \n
      \n

      \n No messages.\n

      \n
    • \n {{/if}}\n {{/each}}\n
    \n \n \n \n \n \n \n \n
    \n \n
    \n \n */\n {\n \"id\": \"O3lWN8vm\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"inbox-container\\\\n \\\",[52,[30,0,[\\\"selectedConversation\\\"]],\\\"in-convo\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"composingConversation\\\"]],\\\"in-convo\\\"]]]],[15,5,[29,[\\\"--inbox-split: \\\",[30,0,[\\\"splitPct\\\"]],\\\"%\\\"]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"conversations scrollbar-mobile\\\"],[14,\\\"role\\\",\\\"navigation\\\"],[14,\\\"aria-label\\\",\\\"Inbox messages\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"menu\\\"],[14,0,\\\"inbox-bulk-commands\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"inbox-bulk-command\\\"],[24,\\\"data-tooltip\\\",\\\"Star\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"bulkStar\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Star\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"inbox-bulk-command\\\"],[24,\\\"data-tooltip\\\",\\\"Mark Unread\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"bulkUnread\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Mark Unread\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"inbox-bulk-command\\\"],[24,\\\"data-tooltip\\\",\\\"Archive\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"bulkArchive\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-archive\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Archive\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"new-conversation\\\"],[24,\\\"aria-label\\\",\\\"Create a new direct message\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"composeConversation\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-pen-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Compose\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"inboxData\\\"]]],null]],null],null,[[[41,[30,1,[\\\"active\\\"]],[[[1,\\\" \\\"],[8,[39,11],[[16,\\\"key\\\",[30,1,[\\\"id\\\"]]]],[[\\\"@conversation\\\",\\\"@index\\\",\\\"@selectedConversations\\\",\\\"@selectedConversationId\\\",\\\"@updateSelectedConversation\\\",\\\"@selectConversation\\\",\\\"@toggleConversationStar\\\"],[[30,1],[30,0,[\\\"index\\\"]],[30,0,[\\\"selectedConversations\\\"]],[30,0,[\\\"selectedConversation\\\",\\\"id\\\"]],[30,0,[\\\"updateSelectedConversation\\\"]],[30,0,[\\\"selectConversation\\\"]],[30,0,[\\\"toggleConversationStar\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1,2]],[[[41,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"contact-limited\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"pmInstructor\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Contact Instructor (\\\"],[1,[30,0,[\\\"courseInstructor\\\",\\\"name\\\"]]],[1,\\\")\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"empty-inbox\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"empty-inbox-graphic\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-light fa-inbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"\\\\n No messages.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[11,0],[24,0,\\\"inbox-resize-handle\\\"],[24,\\\"role\\\",\\\"separator\\\"],[24,\\\"aria-label\\\",\\\"Resize inbox panels\\\"],[4,[38,5],[\\\"mousedown\\\",[30,0,[\\\"startResize\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"inbox-resize-grip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-arrows-left-right-to-line\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[15,0,[29,[\\\"inbox-message \\\",[52,[51,[30,0,[\\\"selectedConversation\\\"]]],\\\"empty\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,14],[[16,\\\"key\\\",[30,0,[\\\"selectedConversation\\\",\\\"id\\\"]]]],[[\\\"@conversation\\\",\\\"@conversationLoading\\\",\\\"@closeConversation\\\",\\\"@toggleConversationStar\\\",\\\"@archiveConversation\\\",\\\"@toggleReadUnread\\\",\\\"@composeConversation\\\",\\\"@userId\\\",\\\"@working\\\",\\\"@updateSelectedConversation\\\",\\\"@refreshInbox\\\",\\\"@localDocs\\\",\\\"@updateArchive\\\",\\\"@deleteArchivedText\\\"],[[30,0,[\\\"selectedConversation\\\"]],[30,0,[\\\"conversationLoading\\\"]],[30,0,[\\\"closeConversation\\\"]],[30,0,[\\\"toggleConversationStar\\\"]],[30,0,[\\\"archiveConversation\\\"]],[28,[37,15],[[30,0,[\\\"toggleReadUnread\\\"]],[30,0,[\\\"selectedConversation\\\",\\\"id\\\"]]],null],[30,0,[\\\"createNewOrOpenExistingConversation\\\"]],[30,3],[30,0,[\\\"working\\\"]],[30,0,[\\\"updateSelectedConversation\\\"]],[30,0,[\\\"refreshInbox\\\"]],[30,4],[30,5],[30,6]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"conversation\\\",\\\"index\\\",\\\"@userId\\\",\\\"@localDocs\\\",\\\"@updateArchive\\\",\\\"@deleteArchivedText\\\"],[\\\"div\\\",\\\"if\\\",\\\"ul\\\",\\\"menu\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"span\\\",\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\",\\\"inbox/message-tile\\\",\\\"li\\\",\\\"h3\\\",\\\"inbox/message-view\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/inbox.hbs\",\n \"isStrictMode\": false\n });\n var Inbox = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function Inbox() {\n var _this;\n _classCallCheck(this, Inbox);\n _this = _callSuper(this, Inbox, arguments);\n _initializerDefineProperty(_this, \"store\", _descriptor, _this);\n _initializerDefineProperty(_this, \"inboxData\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"working\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"isLoading\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"splitPct\", _descriptor5, _this);\n // percentage width of the conversation list panel\n _defineProperty(_this, \"_onMouseMove\", null);\n _defineProperty(_this, \"_onMouseUp\", null);\n _defineProperty(_this, \"_onVisibilityChange\", function () {\n return _this.handleVisibilityChange();\n });\n _defineProperty(_this, \"pollInterval\", _this.args.pollInterval || 30000);\n _defineProperty(_this, \"lastPollTime\", null);\n _defineProperty(_this, \"_handledExternalSendRequest\", false);\n _initializerDefineProperty(_this, \"selectedConversation\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"composingConversation\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"conversationLoading\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"selectedConversations\", _descriptor9, _this);\n _this.setupPolling();\n window.addEventListener(\"visibilitychange\", _this._onVisibilityChange);\n return _this;\n }\n _inherits(Inbox, _Component);\n return _createClass(Inbox, [{\n key: \"willDestroy\",\n value: function willDestroy() {\n _superPropGet(Inbox, \"willDestroy\", this, 3)([]);\n window.removeEventListener(\"visibilitychange\", this._onVisibilityChange);\n this.pollInbox.cancelAll(); // Cancel any ongoing polling when the component is destroyed\n this._cleanupResizeListeners();\n }\n }, {\n key: \"startResize\",\n value: function startResize(event) {\n var _this2 = this;\n event.preventDefault();\n var container = event.currentTarget.closest(\".inbox-container\");\n this._onMouseMove = function (e) {\n var rect = container.getBoundingClientRect();\n var pct = (e.clientX - rect.left) / rect.width * 100;\n _this2.splitPct = Math.min(Math.max(pct, 20), 70); // clamp between 20% and 70%\n };\n this._onMouseUp = function () {\n _this2._cleanupResizeListeners();\n };\n window.addEventListener(\"mousemove\", this._onMouseMove);\n window.addEventListener(\"mouseup\", this._onMouseUp);\n }\n }, {\n key: \"_cleanupResizeListeners\",\n value: function _cleanupResizeListeners() {\n if (this._onMouseMove) {\n window.removeEventListener(\"mousemove\", this._onMouseMove);\n this._onMouseMove = null;\n }\n if (this._onMouseUp) {\n window.removeEventListener(\"mouseup\", this._onMouseUp);\n this._onMouseUp = null;\n }\n }\n }, {\n key: \"loadInboxData\",\n value: /*#__PURE__*/_regenerator().m(function loadInboxData() {\n var conversations, _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n this.isLoading = true;\n _context.p = 1;\n _context.n = 2;\n return this.store.findAll(\"conversation\", {\n reload: true\n });\n case 2:\n conversations = _context.v;\n conversations = conversations.slice().sort(function (a, b) {\n var _b$lastActivity$getTi, _b$lastActivity, _a$lastActivity$getTi, _a$lastActivity;\n return ((_b$lastActivity$getTi = (_b$lastActivity = b.lastActivity) === null || _b$lastActivity === void 0 ? void 0 : _b$lastActivity.getTime()) !== null && _b$lastActivity$getTi !== void 0 ? _b$lastActivity$getTi : 0) - ((_a$lastActivity$getTi = (_a$lastActivity = a.lastActivity) === null || _a$lastActivity === void 0 ? void 0 : _a$lastActivity.getTime()) !== null && _a$lastActivity$getTi !== void 0 ? _a$lastActivity$getTi : 0);\n });\n this.inboxData = conversations;\n this.lastPollTime = Date.now();\n if (!this._handledExternalSendRequest && this.args.externalSendRequest) {\n this._handledExternalSendRequest = true;\n this.createNewOrOpenExistingConversation([this.args.externalSendRequest]);\n }\n _context.n = 4;\n break;\n case 3:\n _context.p = 3;\n _t = _context.v;\n console.error(\"Failed to load conversations:\", _t);\n if (!this.inboxData || this.inboxData.length === 0) {\n this.inboxData = null;\n }\n case 4:\n _context.p = 4;\n this.isLoading = false;\n if (this.selectedConversation && this.selectedConversation.id) {\n this.updateSelectedConversation(this.selectedConversation.id, true);\n }\n return _context.f(4);\n case 5:\n return _context.a(2);\n }\n }, loadInboxData, this, [[1, 3, 4, 5]]);\n })\n }, {\n key: \"pollInbox\",\n value: /*#__PURE__*/_regenerator().m(function pollInbox() {\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n if (!true) {\n _context2.n = 3;\n break;\n }\n _context2.n = 1;\n return this.loadInboxData.perform();\n case 1:\n _context2.n = 2;\n return (0, _emberConcurrency.timeout)(this.pollInterval);\n case 2:\n _context2.n = 0;\n break;\n case 3:\n return _context2.a(2);\n }\n }, pollInbox, this);\n })\n }, {\n key: \"refreshInbox\",\n value: function refreshInbox() {\n this.pollInbox.perform();\n }\n }, {\n key: \"handleVisibilityChange\",\n value: function handleVisibilityChange() {\n if (document.visibilityState === \"visible\") {\n var now = Date.now();\n if (!this.lastPollTime || now - this.lastPollTime > this.pollInterval) {\n this.pollInbox.perform();\n }\n }\n }\n }, {\n key: \"setupPolling\",\n value: function setupPolling() {\n this.pollInbox.perform();\n }\n }, {\n key: \"createNewOrOpenExistingConversation\",\n value: function () {\n var _createNewOrOpenExistingConversation = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(userIds, users) {\n var _this3 = this;\n var existingConversation, _iterator, _step, _conversation, participants, isNew, _groupConversation, groupConversation, conversation, _t2;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.p = _context3.n) {\n case 0:\n // First check inboxData for existing conversation with the same recipients\n _iterator = _createForOfIteratorHelper(this.inboxData);\n _context3.p = 1;\n _iterator.s();\n case 2:\n if ((_step = _iterator.n()).done) {\n _context3.n = 5;\n break;\n }\n _conversation = _step.value;\n _context3.n = 3;\n return _conversation.conversationPartners;\n case 3:\n participants = _context3.v;\n if (participants.length === userIds.length && participants.every(function (user) {\n return userIds.includes(user.id);\n })) {\n existingConversation = _conversation;\n }\n case 4:\n _context3.n = 2;\n break;\n case 5:\n _context3.n = 7;\n break;\n case 6:\n _context3.p = 6;\n _t2 = _context3.v;\n _iterator.e(_t2);\n case 7:\n _context3.p = 7;\n _iterator.f();\n return _context3.f(7);\n case 8:\n if (!existingConversation) {\n _context3.n = 10;\n break;\n }\n isNew = existingConversation.isNew;\n if (existingConversation.get(\"archived\")) {\n existingConversation.set(\"workflow_state\", \"active\");\n }\n\n // New conversations are already loaded in the inboxData array but are not yet in the system with an ID\n if (!isNew) {\n _context3.n = 9;\n break;\n }\n this.updateSelectedConversation(false, true, existingConversation);\n return _context3.a(2);\n case 9:\n this.updateSelectedConversation(existingConversation.id);\n return _context3.a(2);\n case 10:\n if (users) {\n _context3.n = 12;\n break;\n }\n users = userIds.map(function (id) {\n return _this3.store.findRecord(\"user\", id);\n });\n _groupConversation = userIds.length > 1;\n _context3.n = 11;\n return Promise.all(users);\n case 11:\n users = _context3.v;\n case 12:\n if (!userIds) {\n userIds = users.map(function (user) {\n return user.id;\n });\n }\n userIds.push(this.args.userId);\n groupConversation = userIds.length > 2;\n _context3.n = 13;\n return this.store.createRecord(\"conversation\", {\n recipients: userIds,\n private: !groupConversation,\n conversationPartners: users,\n group_conversation: groupConversation\n });\n case 13:\n conversation = _context3.v;\n this.updateSelectedConversation(false, false, conversation);\n this.refreshInbox();\n case 14:\n return _context3.a(2);\n }\n }, _callee, this, [[1, 6, 7, 8]]);\n }));\n function createNewOrOpenExistingConversation(_x, _x2) {\n return _createNewOrOpenExistingConversation.apply(this, arguments);\n }\n return createNewOrOpenExistingConversation;\n }()\n }, {\n key: \"toggleReadUnread\",\n value: function () {\n var _toggleReadUnread = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var isRead;\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n this.working = true;\n isRead = this.selectedConversation.read;\n this.toggleConversationRead(this.selectedConversation.id);\n if (isRead) {\n this.closeConversation();\n this.working = false;\n }\n case 1:\n return _context4.a(2);\n }\n }, _callee2, this);\n }));\n function toggleReadUnread() {\n return _toggleReadUnread.apply(this, arguments);\n }\n return toggleReadUnread;\n }()\n }, {\n key: \"updateSelectedConversation\",\n value: function updateSelectedConversation(messageId, noLoad, conversation) {\n var _this4 = this;\n this.working = true;\n if (!noLoad) {\n this.conversationLoading = true;\n }\n if (conversation) {\n this.selectedConversation = conversation;\n this.conversationLoading = false;\n return;\n }\n return this.store.findRecord(\"conversation\", messageId, {\n reload: true\n }).then(function (message) {\n if (!noLoad) {\n _this4.conversationLoading = false;\n }\n\n // If there are no new messages, do nothing.\n if (_this4.selectedConversation && _this4.selectedConversation.message_count === message.message_count && _this4.selectedConversation === message) {\n return;\n }\n _this4.selectedConversation = message;\n _this4.toggleConversationRead(messageId, null, true);\n });\n }\n }, {\n key: \"bulkStar\",\n value: function bulkStar() {\n var _this5 = this;\n this.selectedConversations.forEach(function (messageId) {\n _this5.toggleConversationStar(messageId);\n });\n this.selectedConversations = [];\n }\n }, {\n key: \"bulkUnread\",\n value: function bulkUnread() {\n var _this6 = this;\n this.selectedConversations.forEach(function (messageId) {\n _this6.toggleConversationRead(messageId, false, false, true);\n });\n this.selectedConversations = [];\n }\n }, {\n key: \"bulkArchive\",\n value: function bulkArchive() {\n var _this7 = this;\n this.selectedConversations.forEach(function (messageId) {\n _this7.toggleConversationArchive(messageId);\n });\n this.selectedConversations = [];\n }\n }, {\n key: \"closeConversation\",\n value: function closeConversation() {\n this.selectedConversation = false;\n this.composingConversation = false;\n }\n }, {\n key: \"composeConversation\",\n value: function composeConversation() {\n this.composingConversation = true;\n this.selectedConversation = false;\n setTimeout(function () {\n document.getElementById(\"new-conversation-recipient-id\").focus();\n }, 100);\n }\n }, {\n key: \"selectConversation\",\n value: function selectConversation(messageId, event) {\n event.stopPropagation();\n // Add/remove message ID to selectedConversations array\n var selectedConversations = this.selectedConversations;\n var messageIndex = selectedConversations.indexOf(messageId);\n if (messageIndex === -1) {\n selectedConversations.push(messageId);\n } else {\n selectedConversations.splice(messageIndex, 1);\n }\n this.selectedConversations = selectedConversations;\n }\n }, {\n key: \"updateConversationInList\",\n value: function updateConversationInList(conversation) {\n var conversations = this.inboxData;\n var conversationIndex = conversations.findIndex(function (c) {\n return c.id === conversation.id;\n });\n if (conversationIndex !== -1) {\n // Replace the conversation in a way that triggers Ember's reactivity\n this.inboxData = [].concat(_toConsumableArray(conversations.slice(0, conversationIndex)), [conversation], _toConsumableArray(conversations.slice(conversationIndex + 1)));\n }\n }\n }, {\n key: \"toggleConversationStar\",\n value: function toggleConversationStar(conversationId, event) {\n var _this8 = this;\n if (event) {\n event.stopPropagation();\n }\n var conversation = this.store.peekRecord(\"conversation\", conversationId);\n conversation.toggleProperty(\"starred\");\n conversation.save().then(function () {\n _this8.updateConversationInList(conversation);\n });\n }\n }, {\n key: \"toggleConversationRead\",\n value: function toggleConversationRead(conversationId, event, forceRead, forceUnread) {\n var _this9 = this;\n if (event) {\n event.stopPropagation();\n }\n var conversation = this.store.peekRecord(\"conversation\", conversationId);\n var readState = false;\n if (forceRead) {\n readState = true;\n } else if (forceUnread) {\n readState = false;\n } else {\n readState = !conversation.read;\n }\n conversation.set(\"workflow_state\", readState ? \"read\" : \"unread\");\n conversation.save().then(function () {\n _this9.updateConversationInList(conversation);\n _this9.working = false;\n });\n }\n }, {\n key: \"toggleConversationArchive\",\n value: function toggleConversationArchive(conversationId, event) {\n var _this0 = this;\n if (event) {\n event.stopPropagation();\n }\n var conversation = this.store.peekRecord(\"conversation\", conversationId);\n conversation.set(\"workflow_state\", \"archived\");\n this.refreshInbox();\n conversation.save().then(function () {\n _this0.working = false;\n });\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"inboxData\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"working\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"splitPct\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 40;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"startResize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startResize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"loadInboxData\", [_emberConcurrency.task], Object.getOwnPropertyDescriptor(_class.prototype, \"loadInboxData\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pollInbox\", [_emberConcurrency.task], Object.getOwnPropertyDescriptor(_class.prototype, \"pollInbox\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refreshInbox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"refreshInbox\"), _class.prototype), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedConversation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"composingConversation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"conversationLoading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"selectedConversations\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"createNewOrOpenExistingConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createNewOrOpenExistingConversation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleReadUnread\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleReadUnread\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateSelectedConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateSelectedConversation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bulkStar\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkStar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bulkUnread\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkUnread\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bulkArchive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"bulkArchive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeConversation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"composeConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"composeConversation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectConversation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateConversationInList\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateConversationInList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleConversationStar\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleConversationStar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleConversationRead\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleConversationRead\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleConversationArchive\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleConversationArchive\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Inbox);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/inbox/message-tile\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.isValidMessage}}\n \n
    \n \n \n
    \n
    \n {{#if @conversation.conversationPartner}}\n \n {{else}}\n {{#each this.displayPartners as |conversationPartner|}}\n {{#unless conversationPartner.isPlaceholder}}\n \n {{else}}\n
    \n +{{conversationPartner.moreCount}}\n
    \n {{/unless}}\n {{/each}}\n {{/if}}\n
    \n \n \n Conversation with\n \n {{#each @conversation.conversationPartners as |conversationPartner pindex|}}\n {{#unless conversationPartner.isPlaceholder}}\n {{#unless (eq pindex 0)}}, {{/unless}}{{conversationPartner.name}}\n {{else}}\n {{#if conversationPartner.isPlaceholder}}\n and\n {{conversationPartner.moreCount}}\n more\n {{/if}}\n {{/unless}}\n {{/each}}\n \n \n
    \n {{#if @conversation.isNew}}\n DRAFT\n {{else}}\n {{{@conversation.last_message_formatted}}}\n {{/if}}\n
    \n \n {{{@conversation.lastActivityFormatted}}}\n \n {{/if}}\n */\n {\n \"id\": \"UUHc0dIN\",\n \"block\": \"[[[41,[30,0,[\\\"isValidMessage\\\"]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"conversation\\\\n \\\",[52,[30,1,[\\\"read\\\"]],\\\"read\\\",\\\"unread\\\"],\\\"\\\\n \\\",[52,[28,[37,2],[[30,1,[\\\"id\\\"]],[30,2]],null],\\\"current\\\"]]]],[24,\\\"aria-label\\\",\\\"Conversation\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"viewConversation\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"conversation-controls\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-select\\\"],[24,\\\"aria-label\\\",\\\"Select conversation\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"args\\\",\\\"selectConversation\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[15,0,[29,[\\\"fal\\\\n \\\",[52,[28,[37,8],[[30,1,[\\\"id\\\"]],[30,0,[\\\"args\\\",\\\"selectedConversations\\\"]]],null],\\\"fa-check-square\\\",\\\"fa-square\\\"]]]],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-inline-star\\\"],[24,\\\"aria-label\\\",\\\"Star conversation\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"args\\\",\\\"toggleConversationStar\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[15,0,[29,[[52,[30,1,[\\\"starred\\\"]],\\\"fas\\\",\\\"fal\\\"],\\\" fa-star\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"portraits\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"conversationPartner\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@tagName\\\",\\\"@class\\\",\\\"@user\\\"],[\\\"button\\\",\\\"main-portrait\\\",[30,1,[\\\"conversationPartner\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"displayPartners\\\"]]],null]],null],null,[[[41,[51,[30,3,[\\\"isPlaceholder\\\"]]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@tagName\\\",\\\"@class\\\",\\\"@user\\\"],[\\\"button\\\",\\\"main-portrait\\\",[30,3]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"portrait-counter\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"+\\\"],[1,[30,3,[\\\"moreCount\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"conversation-partner-name-and-summary\\\\n \\\",[52,[30,0,[\\\"threePlusParticipants\\\"]],\\\"three-plus-participants\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,0,[29,[\\\"conversation-partner-name \\\",[52,[51,[30,1,[\\\"private\\\"]]],\\\"thread\\\"]]]],[14,\\\"aria-label\\\",\\\"View conversation\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Conversation with\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,1,[\\\"conversationPartners\\\"]]],null]],null],null,[[[41,[51,[30,4,[\\\"isPlaceholder\\\"]]],[[[1,\\\" \\\"],[41,[51,[28,[37,14],[[30,5],0],null]],[[[1,\\\", \\\"]],[]],null],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,4,[\\\"isPlaceholder\\\"]],[[[1,\\\" and\\\\n \\\"],[1,[30,4,[\\\"moreCount\\\"]]],[1,\\\"\\\\n more\\\\n\\\"]],[]],null]],[]]]],[4,5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"conversation-summary\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isNew\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"conversation-last-response response-is-draft\\\"],[14,\\\"aria-label\\\",\\\"New message\\\"],[12],[1,\\\"DRAFT\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"conversation-last-response\\\"],[15,\\\"aria-label\\\",[29,[\\\"message preview: \\\",[30,1,[\\\"last_message_formatted\\\"]]]]],[12],[2,[30,1,[\\\"last_message_formatted\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"conversation-last-response-time\\\"],[15,\\\"aria-label\\\",[29,[\\\"Last message sent on: \\\",[30,1,[\\\"lastActivityFormattedBR\\\"]]]]],[12],[2,[30,1,[\\\"lastActivityFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@conversation\\\",\\\"@selectedConversationId\\\",\\\"conversationPartner\\\",\\\"conversationPartner\\\",\\\"pindex\\\"],[\\\"if\\\",\\\"li\\\",\\\"same\\\",\\\"on\\\",\\\"fn\\\",\\\"div\\\",\\\"button\\\",\\\"i\\\",\\\"inarray\\\",\\\"user-portrait\\\",\\\"each\\\",\\\"-track-array\\\",\\\"unless\\\",\\\"span\\\",\\\"eq\\\"]]\",\n \"moduleName\": \"bocce/components/inbox/message-tile.hbs\",\n \"isStrictMode\": false\n });\n var MessageTile = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function MessageTile() {\n var _this;\n _classCallCheck(this, MessageTile);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, MessageTile, [].concat(args));\n _initializerDefineProperty(_this, \"store\", _descriptor, _this);\n return _this;\n }\n _inherits(MessageTile, _Component);\n return _createClass(MessageTile, [{\n key: \"isValidMessage\",\n get: function get() {\n return this.args.conversation.conversationPartners.length > 0;\n }\n }, {\n key: \"replyCount\",\n get: function get() {\n var replyCount = this.args.conversation.message_count ? this.args.conversation.message_count - 1 : 0;\n if (replyCount > 0) {\n return replyCount;\n }\n return false;\n }\n\n // @computed ('conversation', 'conversation.conversationPartners.[]')\n }, {\n key: \"threePlusParticipants\",\n get: function get() {\n var allParticipants = this.args.conversation.conversationPartners.slice();\n var totalParticipants = allParticipants.length;\n if (totalParticipants > 2) {\n return true;\n }\n }\n }, {\n key: \"displayPartners\",\n get: function get() {\n var partners = this.args.conversation.conversationPartners;\n if (!partners || partners.length === 0) return [];\n\n // Use .toArray() to convert the Ember ManyArray to a plain JS array\n var all = partners.toArray ? partners.toArray() : Array.from(partners);\n var MAX_SHOWN = 3;\n var visible = all.slice(0, MAX_SHOWN);\n var moreCount = all.length - MAX_SHOWN;\n if (moreCount > 0) {\n return [].concat(_toConsumableArray(visible), [{\n isPlaceholder: true,\n moreCount: moreCount\n }]);\n }\n return visible;\n }\n\n // @computed('args.conversation.conversationPartners.[]')\n }, {\n key: \"enrichedConversationPartners\",\n get: function get() {\n return this.args.conversation.conversationPartners.map(function (partner, index, partners) {\n return _objectSpread(_objectSpread({}, partner), {}, {\n isLast: index === partners.length - 1\n });\n });\n }\n }, {\n key: \"conversationRead\",\n get: function get() {\n return this.args.conversation ? this.args.conversation.isRead : false;\n }\n }, {\n key: \"viewConversation\",\n value: function viewConversation(conversation) {\n var isNew = this.args.conversation.isNew;\n if (isNew) {\n this.args.updateSelectedConversation(false, true, conversation);\n } else {\n this.args.updateSelectedConversation(conversation.id);\n }\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"viewConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewConversation\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, MessageTile);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/inbox/message-view\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/debug\", \"ember-concurrency\", \"@bocce/attachments\", \"bocce/helpers/upload\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _runloop, _tracking, _service, _debug, _emberConcurrency, _attachments2, _upload, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _dec, _dec2, _dec3, _dec4, _class2, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/debug\",0,\"ember-concurrency\",0,\"@ember/runloop\",0,\"@bocce/attachments\",0,\"@ember/runloop\",0,\"bocce/helpers/upload\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @conversationLoading}}\n
    \n

    Loading...

    \n
    \n {{else}}\n {{#if @conversation}}\n
    \n
    \n
    \n Shared Enrollments\n Conversation Participants\n
      \n {{#each this.sharedEnrollments.enrollments as |enrollment index|}}\n
    • \n \n {{#if this.session.isInstructor}}\n \n {{/if}}\n {{enrollment.user.name}} is a\n {{enrollment.relationship}}\n in\n {{enrollment.courseTitle}}\n {{#if this.session.isInstructor}}\n -\n {{enrollment.term}}\n {{#if enrollment.sectionLabel}}\n , Section\n {{enrollment.sectionLabel}}\n {{/if}}\n {{/if}}\n
    • \n {{/each}}\n
    \n \n Hide Participant Info\n \n
    \n
    \n \n Star\n \n \n Archive\n \n \n Mark\n {{if @conversation.read \"Unread\" \"Read\"}}\n \n \n View Conversation Participants\n \n \n
    \n
    \n \n
    \n Fetching older messages...\n
    \n {{#each this.sortedMessages key=\"id\" as |message index|}}\n \n {{#unless message.belongsToSelf}}\n
    \n \n \n {{message.author.name}}\n
    \n {{/unless}}\n

    {{{message.body}}}

    \n {{#if message.attachments}}\n
    \n {{#each message.attachments as |attachment|}}\n \n {{/each}}\n
    \n {{/if}}\n
    {{{message.createdAtFormatted}}}
    \n
    \n {{/each}}\n \n
    \n
    \n \n Sending Message...\n
    \n \n
    \n \n {{#if (morethan this.files.length \"0\")}}\n \n {{/if}}\n \n \n
    \n
    \n \n \n {{else}}\n
    \n

    Select recipient(s) then click the checkmark to compose:

    \n Close\n \n \n
    \n
    \n
    \n
    \n
    \n {{#each this.recipients as |recipient index|}}\n
    \n \n {{recipient.name}}\n \n \n
    \n {{/each}}\n
    \n \n \n
    \n {{#each this.foundRecipients as |result index|}}\n {{#if result.searching}}\n
    \n \n Searching...\n
    \n {{else if result.notFound}}\n
    \n \n No results found\n
    \n {{else}}\n \n \n {{result.name}}\n \n {{/if}}\n {{/each}}\n
    \n
    \n
    \n
    \n \n \n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"7V+AIP71\",\n \"block\": \"[[[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"message-display\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"loading-message\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[12],[13],[1,\\\" Loading...\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\" \\\"],[10,0],[14,0,\\\"message-display\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"message-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"message-shared-enrollments \\\",[52,[30,0,[\\\"showSharedEnrollments\\\"]],\\\"show\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[15,0,[29,[\\\"message-relationships-header \\\",[52,[51,[30,0,[\\\"sharedEnrollments\\\",\\\"shared\\\"]]],\\\"hidden\\\"]]]],[12],[1,\\\"Shared Enrollments\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[15,0,[29,[\\\"message-relationships-header \\\",[52,[30,0,[\\\"sharedEnrollments\\\",\\\"shared\\\"]],\\\"hidden\\\"]]]],[12],[1,\\\"Conversation Participants\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"message-relationships\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"sharedEnrollments\\\",\\\"enrollments\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\"],[[30,3,[\\\"user\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,3,[\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,[30,3,[\\\"user\\\",\\\"name\\\"]]],[1,\\\" \\\"],[13],[1,\\\"is a\\\\n \\\"],[1,[30,3,[\\\"relationship\\\"]]],[1,\\\"\\\\n in\\\\n \\\"],[1,[30,3,[\\\"courseTitle\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" -\\\\n \\\"],[1,[30,3,[\\\"term\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"sectionLabel\\\"]],[[[1,\\\" , Section\\\\n \\\"],[1,[30,3,[\\\"sectionLabel\\\"]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"message-shared-enrollments-close\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"toggleSharedEnrollments\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-chevron-up\\\"],[12],[13],[1,\\\"\\\\n Hide Participant Info\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"message-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-inline-star\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"toggleConversationStar\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[15,0,[29,[[52,[30,2,[\\\"starred\\\"]],\\\"fas\\\",\\\"fal\\\"],\\\" fa-star\\\"]]],[12],[13],[1,\\\"\\\\n Star\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-archive\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"toggleArchived\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[15,0,[29,[[52,[28,[37,16],[[30,2,[\\\"workflow_state\\\"]],\\\"archived\\\"],null],\\\"fas\\\",\\\"fal\\\"],\\\" fa-archive\\\"]]],[12],[13],[1,\\\"\\\\n Archive\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,5]],[16,0,[29,[\\\"conversation-unread \\\",[52,[30,5],\\\"mark-read-unread-disabled\\\"]]]],[4,[38,14],[\\\"click\\\",[30,6]],null],[12],[10,\\\"i\\\"],[15,0,[29,[\\\"fal \\\",[52,[30,2,[\\\"read\\\"]],\\\"fa-envelope\\\",\\\"fa-envelope-open\\\"]]]],[12],[13],[1,\\\"\\\\n Mark\\\\n \\\"],[1,[52,[30,2,[\\\"read\\\"]],\\\"Unread\\\",\\\"Read\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-shared-enrollments-open\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"toggleSharedEnrollments\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-user-friends\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n View Conversation Participants\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-close\\\"],[4,[38,14],[\\\"click\\\",[30,7]],null],[12],[1,\\\"Close\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"message-body scrollbar-mobile\\\"],[4,[38,17],[[30,0,[\\\"setupScroll\\\"]]],null],[4,[38,18],[[30,0,[\\\"setupScroll\\\"]]],null],[4,[38,14],[\\\"scroll\\\",[30,0,[\\\"loadMoreMessages\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"loading-prv \\\",[52,[30,0,[\\\"loadingMoreMessages\\\"]],\\\"active\\\"]]]],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-3x fa-fw\\\"],[12],[13],[1,\\\"\\\\n Fetching older messages...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"sortedMessages\\\"]]],null]],null],\\\"id\\\",[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"message-bubble \\\",[52,[30,8,[\\\"belongsToSelf\\\"]],\\\"own-message\\\"]]]],[15,1,[29,[\\\"message-\\\",[30,9]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,8,[\\\"belongsToSelf\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"message-bubble-author\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\",\\\"@svgPlaceholder\\\"],[[30,8,[\\\"author\\\"]],\\\"true\\\"]],null],[1,\\\"\\\\n \\\"],[8,[39,19],null,[[\\\"@user\\\"],[[30,8,[\\\"author\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,[30,8,[\\\"author\\\",\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,2],[14,0,\\\"message-text\\\"],[12],[2,[30,8,[\\\"body\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,8,[\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"inbox-message-attachments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,8,[\\\"attachments\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,21],null,[[\\\"@attachment\\\"],[[30,10]]],null],[1,\\\"\\\\n\\\"]],[10]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"message-bubble-timestamp\\\"],[12],[2,[30,8,[\\\"createdAtFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[8,9]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"message-reply \\\",[52,[30,0,[\\\"posterWorking\\\"]],\\\"working\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"message-reply-working-shade\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[12],[13],[1,\\\"\\\\n Sending Message...\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Conversation Reply Text Editor\\\"],[14,0,\\\"conversation-reply-box\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"reply-container reply-quick \\\",[52,[30,0,[\\\"inEditor\\\"]],\\\"active-editor\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,22],null,[[\\\"@sendMessageAction\\\",\\\"@convoSent\\\",\\\"@userInput\\\",\\\"@controller\\\",\\\"@updateArchive\\\",\\\"@localDocs\\\"],[[30,0,[\\\"updateConversation\\\"]],[30,0,[\\\"convoSent\\\"]],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"messageViewRteController\\\"]],[30,11],[30,12]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[41,[28,[37,23],[[30,0,[\\\"files\\\",\\\"length\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[8,[39,24],null,[[\\\"@attachmentFiles\\\",\\\"@uploadSingleFile\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\"],[[30,0,[\\\"files\\\"]],[30,0,[\\\"uploadSingleFile\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"renameAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"rte__footer-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rte__attach\\\"],[24,\\\"aria-label\\\",\\\"Attach Files.\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"openAttachmentDrawer\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black rte__post\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"postable\\\"]]],true,null]],[24,\\\"aria-label\\\",\\\"Send Direct Message\\\"],[4,[38,14],[\\\"click\\\",[30,0,[\\\"updateConversation\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"message-display empty-display\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"empty-message\\\"],[12],[1,\\\"Select recipient(s) then click the checkmark to compose:\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"compose-close\\\"],[24,\\\"aria-label\\\",\\\"Cancel compose\\\"],[4,[38,14],[\\\"click\\\",[30,7]],null],[12],[1,\\\"Close\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-conversation-compose\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-conversation-recipients\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-conversation-recipients-list\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-conversation-recipient-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"recipients\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-conversation-recipient\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\"],[[30,13]]],null],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-conversation-recipient-name\\\"],[12],[1,[30,13,[\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"remove-recipient-button\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"removeRecipient\\\"]],[30,14]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[13,14]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"new-conversation-recipient-input-container\\\\n \\\",[52,[30,0,[\\\"recipients\\\"]],\\\"with-recipients\\\"]]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"new-conversation-recipient-id\\\"],[24,0,\\\"new-conversation-recipient-input\\\"],[24,\\\"placeholder\\\",\\\"Type recipient's name\\\"],[24,4,\\\"text\\\"],[4,[38,14],[\\\"focus\\\",[30,0,[\\\"borderFade\\\"]]],null],[4,[38,14],[\\\"input\\\",[28,[37,15],[[30,0,[\\\"searchUsers\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"add-recipient-results \\\",[52,[51,[30,0,[\\\"foundRecipients\\\"]]],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"foundRecipients\\\"]]],null]],null],null,[[[41,[30,15,[\\\"searching\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"add-recipient-result add-recipient-result-status\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin add-recipient-result-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"add-recipient-result-name\\\"],[12],[1,\\\"Searching...\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,15,[\\\"notFound\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"add-recipient-result add-recipient-result-status\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-info add-recipient-result-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"add-recipient-result-name\\\"],[12],[1,\\\"No results found\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"add-recipient-result\\\"],[4,[38,14],[\\\"click\\\",[28,[37,15],[[30,0,[\\\"toggleRecipient\\\"]],[30,16]],null]],null],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\",\\\"@svgPlaceholder\\\"],[[30,15],\\\"true\\\"]],null],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"add-recipient-result-name\\\"],[12],[1,[30,15,[\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]]],[15,16]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"recipients\\\",\\\"length\\\"]]],true,null]],[16,0,[29,[\\\"start-add-recipient-button \\\",[52,[30,0,[\\\"recipients\\\"]],\\\"active\\\"]]]],[4,[38,14],[\\\"click\\\",[30,0,[\\\"startConversation\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@conversationLoading\\\",\\\"@conversation\\\",\\\"enrollment\\\",\\\"index\\\",\\\"@working\\\",\\\"@toggleReadUnread\\\",\\\"@closeConversation\\\",\\\"message\\\",\\\"index\\\",\\\"attachment\\\",\\\"@updateArchive\\\",\\\"@localDocs\\\",\\\"recipient\\\",\\\"index\\\",\\\"result\\\",\\\"index\\\"],[\\\"if\\\",\\\"div\\\",\\\"p\\\",\\\"i\\\",\\\"h3\\\",\\\"unless\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"user-portrait\\\",\\\"user-icons\\\",\\\"b\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"same\\\",\\\"did-insert\\\",\\\"did-update\\\",\\\"user-dot\\\",\\\"span\\\",\\\"attachment-preview\\\",\\\"rte\\\",\\\"morethan\\\",\\\"attachments-container\\\",\\\"input\\\"]]\",\n \"moduleName\": \"bocce/components/inbox/message-view.hbs\",\n \"isStrictMode\": false\n });\n var FileModel = (_class = /*#__PURE__*/_createClass(function FileModel(file, deleted, progress, uploading, uploaded, valid) {\n _classCallCheck(this, FileModel);\n _initializerDefineProperty(this, \"uploading\", _descriptor, this);\n _initializerDefineProperty(this, \"uploaded\", _descriptor2, this);\n _initializerDefineProperty(this, \"valid\", _descriptor3, this);\n _initializerDefineProperty(this, \"deleted\", _descriptor4, this);\n _initializerDefineProperty(this, \"progress\", _descriptor5, this);\n _initializerDefineProperty(this, \"file\", _descriptor6, this);\n this.uploading = uploading;\n this.uploaded = uploaded;\n this.valid = valid;\n this.deleted = deleted;\n this.progress = progress;\n this.file = file;\n }), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uploading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"uploaded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"valid\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"deleted\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"progress\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"file\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _class);\n var MessageView = _exports.default = (_dec = (0, _object.computed)(\"attachmentsUploading\", \"postInProgress\"), _dec2 = (0, _object.computed)(\"bodyInput\"), _dec3 = (0, _object.computed)(\"attachmentsUploading\", \"conversation\", \"bodyInput\", \"bodyInputHasContent\", \"files\"), _dec4 = (0, _object.computed)(\"conversation.audience.{length,[]}\"), _class2 = /*#__PURE__*/function (_Component) {\n function MessageView() {\n var _this;\n _classCallCheck(this, MessageView);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, MessageView, [].concat(args));\n _initializerDefineProperty(_this, \"embedParser\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"attachmentManager\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"kalturaUpload\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"accessibility\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor11, _this);\n _initializerDefineProperty(_this, \"bodyInput\", _descriptor12, _this);\n _initializerDefineProperty(_this, \"replyAuthor\", _descriptor13, _this);\n _initializerDefineProperty(_this, \"inEditor\", _descriptor14, _this);\n _initializerDefineProperty(_this, \"foundRecipients\", _descriptor15, _this);\n _initializerDefineProperty(_this, \"recipients\", _descriptor16, _this);\n _initializerDefineProperty(_this, \"showSharedEnrollments\", _descriptor17, _this);\n _initializerDefineProperty(_this, \"postInProgress\", _descriptor18, _this);\n _initializerDefineProperty(_this, \"files\", _descriptor19, _this);\n _initializerDefineProperty(_this, \"messages\", _descriptor20, _this);\n // Serialized messages, cached by id, plus the last rendered list. The cache\n // is keyed to a single conversation; switching conversations clears it so we\n // don't render a previous conversation's messages.\n _defineProperty(_this, \"_messageCache\", new Map());\n _defineProperty(_this, \"_renderedMessages\", []);\n _defineProperty(_this, \"_cachedConversationId\", void 0);\n _initializerDefineProperty(_this, \"convoId\", _descriptor21, _this);\n return _this;\n }\n _inherits(MessageView, _Component);\n return _createClass(MessageView, [{\n key: \"attachmentsUploading\",\n get: function get() {\n var uploadingFiles = this.files ? !!this.files.find(function (file) {\n return !file.uploaded;\n }) : false;\n return uploadingFiles;\n }\n }, {\n key: \"posterWorking\",\n get: function get() {\n return this.postInProgress;\n }\n }, {\n key: \"bodyInputHasContent\",\n get: function get() {\n // NK note to future self: Needing to handle all this at this stage\n // is ugly, but it gets the job done. A friendlier interface will\n // be to abstract away the sanitization/cleanup code within an\n // rte-editor Component, so that the Controller can just interact\n // with the bodyInput value without needing to do too much cleanup.\n\n var bodyInput = this.bodyInput || \"\";\n // cut out HTML\n var cleaned = this.attachmentManager.sanitize(bodyInput);\n // remove line breaks\n cleaned = cleaned.replace(//g, \"\");\n // Remove the comment block that the browser puts in.\n cleaned = cleaned.replace(//g, \"\");\n // Remove spaces\n cleaned = cleaned.replace(/\\s/g, \"\");\n return cleaned.length > 0;\n }\n }, {\n key: \"postable\",\n get: function get() {\n var bodyInput = this.bodyInputHasContent;\n return bodyInput && !this.attachmentsUploading;\n }\n }, {\n key: \"audienceString\",\n get: function get() {\n var audience = this.args.conversation.audience || [];\n var audienceString = \"\";\n for (var i = 0; i < audience.length; i++) {\n audienceString += audience[i].name;\n if (i < audience.length - 1) {\n audienceString += \", \";\n }\n }\n return audienceString;\n }\n }, {\n key: \"scrollAndUpdateLocalConversation\",\n value: function scrollAndUpdateLocalConversation(conversation) {\n var _this2 = this;\n (0, _runloop.later)(function () {\n return _this2.scrollConvoToBottom(conversation);\n }, 100);\n conversation.set(\"last_authored_message_at\", new Date());\n conversation.set(\"last_message_at\", new Date());\n conversation.set(\"message_count\", conversation.message_count + 1);\n }\n }, {\n key: \"scrollConvoToBottom\",\n value: function scrollConvoToBottom() {\n var messageBody = this.convoDiv;\n messageBody.scrollTop = messageBody.scrollHeight;\n }\n }, {\n key: \"serializeMessage\",\n value: function serializeMessage(message) {\n return {\n id: message.id,\n body: message.body,\n createdAtFormatted: message.createdAtFormatted,\n belongsToSelf: message.belongsToSelf,\n author: {\n id: message.get(\"author.id\"),\n name: message.get(\"author.name\"),\n image_url: message.get(\"author.image_url\")\n },\n attachments: message.get(\"attachments\")\n };\n }\n }, {\n key: \"sortedMessages\",\n get: function get() {\n var conversationId = this.args.conversation.id;\n\n // The component instance is reused across conversations, so reset the cache\n // whenever the selected conversation changes.\n if (conversationId !== this._cachedConversationId) {\n this._cachedConversationId = conversationId;\n this._messageCache = new Map();\n this._renderedMessages = [];\n }\n var messages = this.args.conversation.hasMany(\"messages\").value() || [];\n var _iterator = _createForOfIteratorHelper(messages),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var message = _step.value;\n var cached = this._messageCache.get(message.id);\n\n // Re-serialize only when the message is new or its body changed, so the\n // cached object identity (and thus the rendered bubble) stays stable.\n if (!cached || cached.body !== message.body) {\n this._messageCache.set(message.id, this.serializeMessage(message));\n }\n }\n\n // Nothing seen yet (e.g. a brand-new conversation) — render empty.\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n if (this._messageCache.size === 0) {\n return this._renderedMessages;\n }\n var sorted = _toConsumableArray(this._messageCache.values()).sort(function (a, b) {\n return a.id - b.id;\n });\n this._renderedMessages = sorted;\n return sorted;\n }\n }, {\n key: \"scrollTask\",\n value: /*#__PURE__*/_regenerator().m(function scrollTask() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return new Promise(function (resolve) {\n return setTimeout(resolve, 1000);\n });\n case 1:\n // Scroll to the bottom of the div\n this.scrollConvoToBottom();\n case 2:\n return _context.a(2);\n }\n }, scrollTask, this);\n })\n }, {\n key: \"sharedEnrollments\",\n get: function get() {\n var conversation = this.args.conversation,\n retval = [],\n name = false,\n shared = false,\n sectionCodes = this.args.conversation.get(\"currentUser.sectionCodes\");\n if (conversation) {\n var participantRelationships = conversation.participantRelationships || [];\n if (participantRelationships.length === 0 || conversation.participants.length > 2) {\n conversation.conversationPartners.forEach(function (partner) {\n retval.push({\n name: partner.name,\n user: partner\n });\n });\n } else {\n participantRelationships.forEach(function (participantRelationship) {\n sectionCodes.forEach(function (sectionCode) {\n if (sectionCode.sectionId === participantRelationship.section) {\n shared = true;\n name = conversation.conversationPartners[0].name;\n retval.push({\n sectionId: sectionCode.sectionId,\n relationship: participantRelationship.relationship,\n courseTitle: sectionCode.courseTitle,\n sectionLabel: sectionCode.sectionLabel,\n term: sectionCode.termLabel,\n user: conversation.conversationPartners[0]\n });\n }\n });\n });\n }\n }\n return {\n shared: shared,\n name: name,\n enrollments: retval\n };\n }\n }, {\n key: \"messageViewRteController\",\n get: function get() {\n var self = this;\n return {\n setBodyInput: function setBodyInput(value) {\n self.dontUpdateRte = true;\n self.bodyInput = value;\n },\n setRteService: function setRteService(editor) {\n self.messageViewRteService = editor;\n },\n updateArchive: function updateArchive() {\n var _self$args;\n (_self$args = self.args).updateArchive.apply(_self$args, arguments);\n },\n deleteArchivedText: function deleteArchivedText() {\n var _self$args2;\n return (_self$args2 = self.args).deleteArchivedText.apply(_self$args2, arguments);\n }\n };\n }\n }, {\n key: \"borderFade\",\n value: function borderFade() {\n var inputElement = document.getElementById(\"new-conversation-recipient-id\");\n if (inputElement) {\n inputElement.classList.add(\"border-animate\");\n setTimeout(function () {\n inputElement.classList.remove(\"border-animate\");\n }, 3000);\n }\n }\n }, {\n key: \"updateLocalDocs\",\n value: function updateLocalDocs() {\n this.notifyPropertyChange(\"localDocs\");\n }\n }, {\n key: \"setupScroll\",\n value: function setupScroll(element) {\n this.convoDiv = element;\n this.scrollConvoToBottom();\n }\n }, {\n key: \"loadMoreMessages\",\n value: function loadMoreMessages() {\n var _this3 = this;\n // Check if div is scrolled to the top\n var messageBody = this.convoDiv;\n var isOverflowing = messageBody.scrollHeight > messageBody.clientHeight;\n var scrollTop = messageBody.scrollTop;\n if (isOverflowing && scrollTop > 0) {\n return;\n }\n var messages = this.args.conversation.hasMany(\"messages\").value();\n if (!messages || this.allMessagesLoaded || this.loadingMoreMessages) {\n this.loadingMoreMessages = false;\n return;\n }\n var num_loaded = messages.length,\n user_id = this.session.user.id,\n args = \"\";\n if (num_loaded > 0) {\n var min_id;\n var _iterator2 = _createForOfIteratorHelper(messages),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var message = _step2.value;\n var id = parseInt(message.id, 10);\n if (!min_id || id < min_id) {\n min_id = id;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n args = \"?page=\".concat(min_id);\n }\n setTimeout(function () {\n _this3.loadingMoreMessages = true;\n\n /* eslint-disable-next-line ember/no-jquery, ember/no-get */\n $.get(\"/interface/conversations/\".concat(_this3.args.conversation.id, \"/conversation-messages\").concat(args)).then(function (data) {\n if (!data || !data.conversation_message || data.conversation_message.length === 0) {\n _this3.allMessagesLoaded = true;\n } else {\n var _iterator3 = _createForOfIteratorHelper(data.conversation_message),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var m = _step3.value;\n var auth_id = Number(m.author_id);\n if (auth_id === Number(user_id)) {\n m.belongsToSelf = true;\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n _this3.store.pushPayload(data);\n }\n _this3.loadingMoreMessages = false;\n });\n }, 250);\n }\n }, {\n key: \"toggleRecipient\",\n value: function toggleRecipient(index) {\n var foundRecipients = this.foundRecipients;\n var user = foundRecipients[index];\n var recipients = this.recipients;\n if (recipients.indexOf(user) === -1) {\n recipients.push(user);\n } else {\n recipients.slice(recipients.indexOf(user), 1);\n }\n this.foundRecipients = [];\n this.recipients = recipients;\n this.searchUsersInput.value = \"\";\n }\n }, {\n key: \"removeRecipient\",\n value: function removeRecipient(index) {\n var recipients = this.recipients;\n recipients.splice(index, 1);\n this.recipients = recipients;\n }\n }, {\n key: \"searchUsers\",\n value: function searchUsers(evt) {\n var _this4 = this;\n this.searchUsersInput = evt.target;\n var param = evt.target.value;\n param = param.trim();\n if (param !== \"\" && param.length > 2) {\n var handle = this.autoCompleteTimeoutHandle;\n if (handle) {\n (0, _runloop.cancel)(handle);\n }\n this.foundRecipients = [{\n name: \"Searching...\",\n searching: true\n }];\n\n // Wait a moment before we spam the server with searches for \"jam\", \"jame\", and \"james\"\n // all at once\n handle = (0, _runloop.later)(function () {\n param = param.toLowerCase();\n param = encodeURIComponent(param);\n\n /* eslint-disable-next-line ember/no-jquery */\n $.ajax({\n type: \"get\",\n param: param,\n url: \"/interface/user-search/\" + param,\n success: function success(results) {\n // Go trough results\n // Filter out results[x].common_courses.{course_id}.[y] === 'ObserverEnrollment'\n\n results = results.filter(function (result) {\n return !result.common_courses || !Object.keys(result.common_courses).some(function (courseId) {\n return result.common_courses[courseId].some(function (role) {\n return role === \"ObserverEnrollment\";\n });\n });\n });\n _this4.foundRecipients = results;\n if (results.length === 0) {\n _this4.foundRecipients = [{\n name: \"No results found.\",\n notFound: true\n }];\n }\n },\n error: function error(_error) {\n (0, _debug.debug)(\"Error in conversation recipient list.\");\n (0, _debug.debug)(_error);\n }\n });\n }, 333);\n this.autoCompleteTimeoutHandle = handle;\n } else {\n this.foundRecipients = [];\n }\n }\n }, {\n key: \"addFile\",\n value: function addFile(file) {\n var _this5 = this;\n if (file.type.includes(\"video\")) {\n var fileIndex = this.files.length;\n this.addValidFile(file, fileIndex, true);\n this.files[fileIndex].uploading = true;\n this.kalturaUpload.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context2.n = 1;\n return _this5.confirmDialog.show({\n subtitle: \"Kaltura upload failed. This file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n file.ignoreDownloadOnlyPrompt = true;\n // Swap the file slot from an embed to a regular file\n _this5.addValidFile(file, fileIndex);\n case 2:\n return _context2.a(2);\n }\n }, _callee);\n })), true, false, function (record) {\n var files = _this5.files.slice();\n files[fileIndex].file = record.file;\n files[fileIndex].uploading = false;\n files[fileIndex].uploaded = true;\n files[fileIndex].progress = 100;\n files[fileIndex].blobURL = URL.createObjectURL(file);\n files[fileIndex].uploaded_id = record.uploaded_id;\n _this5.files = files;\n }, function (progress) {\n _this5.files[fileIndex].progress = progress;\n });\n } else {\n this.addValidFile(file);\n }\n this.files = _toConsumableArray(this.files);\n }\n }, {\n key: \"addValidFile\",\n value: function addValidFile(file, fileIndex, stub) {\n var isExisting = typeof fileIndex === \"number\";\n var record = new FileModel(file, false, 0, false, false, true);\n fileIndex = isExisting ? fileIndex : this.files.length;\n this.files[fileIndex] = record;\n if (!stub) {\n this.uploadSingleFile(file, fileIndex);\n }\n }\n }, {\n key: \"deleteAttachment\",\n value: function deleteAttachment(file, index) {\n if (index) {\n // Remove file from this.files by index\n this.files = this.files.filter(function (f, i) {\n return i !== index;\n });\n } else {\n this.files = this.files.filter(function (f) {\n return f.file !== file;\n });\n }\n }\n }, {\n key: \"renameAttachment\",\n value: function renameAttachment(attachment, newName, index) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaUpload.kalturaRenameVideo(attachment.uploaded_id, newName);\n this.files[index].name = newName;\n } else {\n this.files[index].name = newName;\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }\n }, {\n key: \"startConversation\",\n value: function startConversation() {\n var recipients = this.recipients;\n var recipientIds = recipients.map(function (recipient) {\n return recipient.id;\n });\n this.args.composeConversation(recipientIds, false);\n this.recipients = [];\n }\n }, {\n key: \"openAttachmentDrawer\",\n value: function openAttachmentDrawer() {\n var _this7 = this;\n var self = this;\n var el = document.createElement(\"attachments-app-root\");\n var attachmentsApp = new _attachments2.AttachmentsApp({\n onClose: function onClose() {\n el.remove();\n },\n addFiles: function addFiles(files) {\n var _this6 = this;\n return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n _this6.closeModal();\n files.forEach(function (f) {\n self.addFile(f);\n });\n case 1:\n return _context3.a(2);\n }\n }, _callee2);\n }))();\n },\n dialogClass: \"bocce-discourse-shared-attachments-modal\"\n });\n document.body.append(el);\n attachmentsApp.renderApp(el);\n (0, _runloop.next)(this, function () {\n attachmentsApp.showModal();\n _this7.accessibility.focus(\".bocce-discourse-shared-attachments-modal .attachments-title\", false, false, 500, false);\n });\n }\n }, {\n key: \"uploadSingleFile\",\n value: function uploadSingleFile(file, index) {\n var _this8 = this;\n var userId = this.args.userId;\n if (!file || !userId) {\n return;\n }\n if (index === undefined) {\n index = this.files.findIndex(function (f) {\n return f.file === file;\n });\n }\n this.files[index].uploading = true;\n this.files[index].uploaded = false;\n this.files[index].progress = 0;\n this.files = this.files.slice();\n (0, _upload.default)(file, userId, this.store, \"conversation attachments\", null, function (progress) {\n var files = _this8.files.slice();\n files[index].progress = progress;\n _this8.files = files;\n }).then(function (att_id) {\n return _this8.store.findRecord(\"attachment\", att_id).then(function (attachment) {\n var files = _this8.files.slice();\n files[index].attachment = attachment;\n files[index].uploading = false;\n files[index].uploaded = true;\n files[index].progress = 100;\n files[index].uploaded_id = att_id;\n _this8.files = files;\n });\n }, function (err) {\n (0, _debug.debug)(err, \"Could not upload file\");\n var files = _this8.files.slice();\n files[index].uploading = false;\n files[index].uploaded = false;\n files[index].progress = 0;\n _this8.files = files;\n });\n }\n }, {\n key: \"updateConversation\",\n value: function updateConversation() {\n var _this9 = this;\n var message = this.embedParser.parseEmbed(this.bodyInput);\n\n // parse out everything but the text...\n var trimmedMessage = message.replace(/<[^>]+>/g, \"\");\n if (trimmedMessage === \"\" || this.attachmentsUploading) {\n return;\n }\n if (message.replace(/ /g, \" \").replace(//g, \"\").trim().length === 0) {\n return;\n }\n message = message.replace(\"\", \"\");\n message = message.trim();\n\n // Add any video embeds\n var videoEmbedString = this.attachmentManager.generateVideoEmbedString(this.files) || \"\";\n message = message + videoEmbedString;\n var current_conversation = this.args.conversation,\n conversationPartners = current_conversation.conversationPartners;\n\n // posting...\n this.postInProgress = true;\n\n // The first message is saved along with the original conversation\n if (current_conversation.isNew) {\n current_conversation.set(\"lastActivity\", new Date());\n current_conversation.set(\"new_message_body\", message);\n if (this.files.length > 0) {\n var attachments = [];\n for (var i = 0; i < this.files.length; i++) {\n // Exclude removed attachments -- or video embeds\n if (this.files[i].removed || !this.files[i].attachment) {\n continue;\n }\n attachments.push({\n id: this.files[i].attachment.id\n });\n }\n current_conversation.set(\"attachments\", attachments);\n }\n current_conversation.save().then(function (savedConversation) {\n _this9.bodyInput = \"\";\n _this9.convoSent = false;\n _this9.files = [];\n _this9.postInProgress = false;\n savedConversation.set(\"last_authored_message\", message);\n _this9.args.updateSelectedConversation(savedConversation.id);\n }, function (err) {\n (0, _debug.debug)(err, \"Create new conversation to \" + conversationPartners.id);\n _this9.postInProgress = false;\n window.alert(\"Unable to post message. Please try again in a few moments.\");\n }).then(function () {\n _this9.convoSent = true;\n _this9.scrollAndUpdateLocalConversation(current_conversation);\n });\n } else {\n this.store.nestResources(\"conversation-message\", [{\n conversation: current_conversation.get(\"id\")\n }]);\n var new_conversation_message = current_conversation.store.createRecord(\"conversation-message\");\n new_conversation_message.set(\"body\", message);\n new_conversation_message.set(\"createdAt\", new Date());\n new_conversation_message.set(\"belongsToSelf\", true);\n new_conversation_message.set(\"conversation\", current_conversation);\n new_conversation_message.set(\"conversationPartners\", conversationPartners);\n if (this.files.length > 0) {\n var _attachments = [];\n for (var _i = 0; _i < this.files.length; _i++) {\n // Exclude removed attachments -- or video embeds\n if (this.files[_i].removed || !this.files[_i].attachment) {\n continue;\n }\n _attachments.push({\n id: this.files[_i].attachment.id\n });\n }\n new_conversation_message.set(\"attachments\", _attachments);\n }\n new_conversation_message.save().then(function () {\n _this9.bodyInput = \"\";\n _this9.convoSent = false;\n _this9.files = [];\n _this9.postInProgress = false;\n current_conversation.set(\"last_authored_message\", message);\n current_conversation.set(\"last_message\", message);\n current_conversation.set(\"lastActivity\", new Date());\n _this9.args.updateSelectedConversation(current_conversation.id);\n }, function (err) {\n (0, _debug.debug)({\n Location: \"Post conversation reply\",\n Status: err.status,\n Message: err.message,\n Error: err.responseText\n });\n _this9.postInProgress = false;\n window.alert(\"Unable to post message. Please try again.\");\n }).then(function () {\n _this9.convoSent = true;\n _this9.scrollAndUpdateLocalConversation(current_conversation);\n });\n }\n this.attachmentDrawerOpen = false;\n }\n }, {\n key: \"deleteUnsentConversation\",\n value: function deleteUnsentConversation() {\n var current_conversation = this.args.conversation;\n if (current_conversation && current_conversation.isNew) {\n current_conversation.destroyRecord();\n }\n }\n }, {\n key: \"toggleSharedEnrollments\",\n value: function toggleSharedEnrollments() {\n this.showSharedEnrollments = !this.showSharedEnrollments;\n }\n }, {\n key: \"toggleArchived\",\n value: function toggleArchived() {\n var _this0 = this;\n var convo = this.args.conversation;\n var isArchived = this.args.conversation.archived;\n var un = isArchived ? \"un\" : \"\";\n var dialogMessage = \"Are you sure you wish to \" + un + \"archive this conversation? To undo this action later, compose a message to the same person.\";\n this.confirmDialog.show({\n subtitle: dialogMessage,\n choices: [\"Yes\", \"No\"]\n }).then(/*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(selection) {\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n if (!(selection === \"Yes\")) {\n _context4.n = 2;\n break;\n }\n convo.set(\"workflow_state\", isArchived ? \"read\" : \"archived\");\n _context4.n = 1;\n return convo.save();\n case 1:\n document.getElementsByClassName(\"new-conversation\")[0].click();\n _this0.args.refreshInbox();\n _context4.n = 2;\n break;\n case 2:\n return _context4.a(2);\n }\n }, _callee3);\n }));\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n }, {\n key: \"toggleConversationStar\",\n value: function toggleConversationStar() {\n var current_conversation = this.args.conversation;\n var isStarred = current_conversation.starred;\n current_conversation.set(\"starred\", !isStarred);\n current_conversation.save();\n }\n }]);\n }(_component2.default), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, \"embedParser\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, \"attachmentManager\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, \"kalturaUpload\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor0 = _applyDecoratedDescriptor(_class2.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor1 = _applyDecoratedDescriptor(_class2.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, \"accessibility\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, \"bodyInput\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, \"replyAuthor\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, \"inEditor\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, \"foundRecipients\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, \"recipients\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, \"showSharedEnrollments\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, \"postInProgress\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, \"files\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, \"messages\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _applyDecoratedDescriptor(_class2.prototype, \"posterWorking\", [_dec], Object.getOwnPropertyDescriptor(_class2.prototype, \"posterWorking\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"bodyInputHasContent\", [_dec2], Object.getOwnPropertyDescriptor(_class2.prototype, \"bodyInputHasContent\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"postable\", [_dec3], Object.getOwnPropertyDescriptor(_class2.prototype, \"postable\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"audienceString\", [_dec4], Object.getOwnPropertyDescriptor(_class2.prototype, \"audienceString\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"scrollConvoToBottom\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"scrollConvoToBottom\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"scrollTask\", [_emberConcurrency.task], Object.getOwnPropertyDescriptor(_class2.prototype, \"scrollTask\"), _class2.prototype), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, \"convoId\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return this.args.conversation.id;\n }\n }), _applyDecoratedDescriptor(_class2.prototype, \"borderFade\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"borderFade\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateLocalDocs\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateLocalDocs\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"setupScroll\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"setupScroll\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"loadMoreMessages\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"loadMoreMessages\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleRecipient\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleRecipient\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"removeRecipient\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"removeRecipient\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"searchUsers\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"searchUsers\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addFile\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addFile\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"addValidFile\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"addValidFile\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"renameAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"renameAttachment\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"startConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"startConversation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"openAttachmentDrawer\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"openAttachmentDrawer\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"uploadSingleFile\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"uploadSingleFile\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"updateConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"updateConversation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"deleteUnsentConversation\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"deleteUnsentConversation\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleSharedEnrollments\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleSharedEnrollments\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleArchived\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleArchived\"), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, \"toggleConversationStar\", [_object.action], Object.getOwnPropertyDescriptor(_class2.prototype, \"toggleConversationStar\"), _class2.prototype), _class2);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, MessageView);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/inputs/dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n
    \n {{@placeholder}}
    \n {{#each this.options as |option index|}}\n {{option.name}}
    \n {{/each}}\n \n \n */\n {\n \"id\": \"jtqupnuj\",\n \"block\": \"[[[10,0],[14,\\\"role\\\",\\\"listbox\\\"],[14,0,\\\"dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"dropdown__button\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,\\\"for\\\",[29,[[30,0,[\\\"currentLabel\\\"]],\\\"-dropdown\\\"]]],[14,0,\\\"dropdown__label\\\"],[12],[1,[30,0,[\\\"currentLabel\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown__content\\\"],[15,1,[29,[[30,0,[\\\"currentLabel\\\"]],\\\"-dropdown\\\"]]],[12],[1,\\\"\\\\n \\\"],[11,0],[24,\\\"role\\\",\\\"option\\\"],[24,0,\\\"dropdown__option\\\"],[16,\\\"aria-selected\\\",[28,[37,3],[-1,[30,1]],null]],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"handleSelect\\\"]],-1],null]],null],[12],[1,[30,2]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"options\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"option\\\"],[24,\\\"tabindex\\\",\\\"0\\\"],[24,0,\\\"dropdown__option\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"handleSelect\\\"]],[30,4]],null]],null],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@selectedId\\\",\\\"@placeholder\\\",\\\"option\\\",\\\"index\\\"],[\\\"div\\\",\\\"button\\\",\\\"i\\\",\\\"eq\\\",\\\"on\\\",\\\"fn\\\",\\\"each\\\",\\\"-track-array\\\"]]\",\n \"moduleName\": \"bocce/components/inputs/dropdown.hbs\",\n \"isStrictMode\": false\n });\n var DropdownComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function DropdownComponent() {\n _classCallCheck(this, DropdownComponent);\n return _callSuper(this, DropdownComponent, arguments);\n }\n _inherits(DropdownComponent, _Component);\n return _createClass(DropdownComponent, [{\n key: \"options\",\n get: function get() {\n return this.args.options || [];\n }\n }, {\n key: \"currentLabel\",\n get: function get() {\n var _this = this;\n if (this.args.selectedId === -1 || !this.options.length) {\n return this.args.placeholder;\n }\n var match = this.options.find(function (o) {\n return o && o.id === _this.args.selectedId;\n });\n return match && match.name ? match.name : this.args.placeholder;\n }\n }, {\n key: \"handleSelect\",\n value: function handleSelect(index) {\n if (this.args.changeSelection) {\n this.args.changeSelection(index);\n }\n }\n }]);\n }(_component2.default), _applyDecoratedDescriptor(_class.prototype, \"handleSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleSelect\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DropdownComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/inputs/template-dropdown\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n
    \n
    \n {{#each this.options as |option index|}}\n {{option.name}}
    \n {{/each}}\n
    \n MANAGE GROUP TEMPLATES
    \n \n \n */\n {\n \"id\": \"bXq+wBvQ\",\n \"block\": \"[[[10,0],[14,\\\"role\\\",\\\"listbox\\\"],[14,0,\\\"template-dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"template-dropdown__button\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"template-dropdown__button-label\\\"],[12],[1,[30,0,[\\\"currentLabel\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-dropdown__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-dropdown__options-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"options\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"option\\\"],[24,\\\"tabindex\\\",\\\"0\\\"],[16,0,[29,[\\\"template-dropdown__option\\\\n \\\",[52,[28,[37,7],[[30,1,[\\\"id\\\"]],[30,3]],null],\\\"template-dropdown__option--selected\\\"]]]],[4,[38,8],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"handleSelect\\\"]],[30,2]],null]],null],[12],[1,[30,1,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,\\\"role\\\",\\\"option\\\"],[24,\\\"tabindex\\\",\\\"0\\\"],[24,0,\\\"template-dropdown__footer\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"handleFooterClick\\\"]]],null],[12],[1,\\\"MANAGE GROUP TEMPLATES\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"option\\\",\\\"index\\\",\\\"@selectedId\\\"],[\\\"div\\\",\\\"button\\\",\\\"span\\\",\\\"i\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"eq\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/inputs/template-dropdown.hbs\",\n \"isStrictMode\": false\n });\n var TemplateDropdownComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function TemplateDropdownComponent() {\n _classCallCheck(this, TemplateDropdownComponent);\n return _callSuper(this, TemplateDropdownComponent, arguments);\n }\n _inherits(TemplateDropdownComponent, _Component);\n return _createClass(TemplateDropdownComponent, [{\n key: \"options\",\n get: function get() {\n return this.args.options || [];\n }\n }, {\n key: \"currentLabel\",\n get: function get() {\n var _this = this;\n if (this.args.selectedId === -1 || !this.options.length) {\n return this.args.placeholder;\n }\n var match = this.options.find(function (o) {\n return o && o.id === _this.args.selectedId;\n });\n return match && match.name ? match.name : this.args.placeholder;\n }\n }, {\n key: \"handleSelect\",\n value: function handleSelect(index) {\n if (this.args.changeSelection) {\n this.args.changeSelection(index);\n }\n }\n }, {\n key: \"handleFooterClick\",\n value: function handleFooterClick() {\n if (this.args.footerAction) {\n this.args.footerAction();\n }\n }\n }]);\n }(_component2.default), _applyDecoratedDescriptor(_class.prototype, \"handleSelect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleFooterClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleFooterClick\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, TemplateDropdownComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/inputs/toggle-switch\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n
    \n */\n {\n \"id\": \"M7XdC2Qb\",\n \"block\": \"[[[10,0],[14,0,\\\"toggle-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"toggle\\\"],[14,0,\\\"checkbox\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"for\\\",\\\"toggle\\\"],[16,0,[29,[\\\"switch \\\",[52,[30,0,[\\\"activated\\\"]],\\\"on\\\",\\\"\\\"]]]],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleSwitch\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"input\\\",\\\"button\\\",\\\"if\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/components/inputs/toggle-switch.hbs\",\n \"isStrictMode\": false\n });\n var InputsSliderComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function InputsSliderComponent(owner, args) {\n var _this;\n _classCallCheck(this, InputsSliderComponent);\n _this = _callSuper(this, InputsSliderComponent, [owner, args]);\n _initializerDefineProperty(_this, \"activated\", _descriptor, _this);\n _this.activated = _this.args.initialState;\n return _this;\n }\n _inherits(InputsSliderComponent, _Component);\n return _createClass(InputsSliderComponent, [{\n key: \"toggleSwitch\",\n value: function toggleSwitch() {\n this.activated = !this.activated;\n this.args.action();\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"activated\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleSwitch\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSwitch\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, InputsSliderComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/lessons/advice-card-submitter\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n As you conclude this course, we invite you to leave behind a piece of your experience for those\n who will follow in your footsteps. Think back to your own journey, the highs and lows, the\n challenges and triumphs. Your insights can guide future students, helping them navigate their own\n path through this course. Please take a moment to share your advice or any tips that you wish\n you'd known when you started. Please keep your advice concise and relevant!
    \n
    \n {{#if (or this.myAdviceCard this.isInstructor)}}\n {{#unless this.isInstructor}}\n
    \n
    \n

    Thank you for your advice!

    \n

    If accepted, it will be shared with future students of this course.

    \n
    \n
    \n
    {{this.myAdviceCard.body}}
    \n {{#if this.myAdviceCard.attachment}}\n \n {{/if}}\n
    \n
    \n {{/unless}}\n {{#if this.isInstructor}}\n

    Student Advice Card Submissions (newer on top):

    \n {{else}}\n
    \n

    Accepted Submissions From Fellow Students

    \n {{/if}}\n {{#if this.isInstructor}}\n {{#each this.adviceCards as |adviceCardSub index|}}\n
    \n
    {{adviceCardSub.body}}
    \n {{#if adviceCardSub.attachment}}\n \n {{/if}}\n {{#if this.isInstructor}}\n {{unless adviceCardSub.accepted \"Add to\" \"Remove from\"}}\n Advice Card Collection\n {{/if}}\n
    \n {{else}}\n

    No advice has been submitted yet.

    \n {{/each}}\n {{else}}\n {{#each this.otherAdviceCards as |adviceCardSub index|}}\n {{#if adviceCardSub.accepted}}\n
    \n
    {{adviceCardSub.body}}
    \n {{#if adviceCardSub.attachment}}\n \n {{/if}}\n {{#if this.isInstructor}}\n {{unless adviceCardSub.accepted \"Add to\" \"Remove from\"}}\n Advice Card Collection\n {{/if}}\n
    \n {{/if}}\n {{else}}\n

    No advice has been submitted yet.

    \n {{/each}}\n {{/if}}\n {{else}}\n
    \n {{#unless this.overCharLimit}}\n
    \n Have some advice for future students? Compose a short message below.\n
    \n {{else}}\n
    \n Please limit your advice to 500 characters\n
    \n {{/unless}}\n \n \n
    \n

    If you'd like, you may also record an audio clip to\n accompany your message. After you record, please make sure to click the Upload button.

    \n \n
    \n
    \n \n \n
    \n Submit\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"4Bjy0XCL\",\n \"block\": \"[[[10,\\\"link\\\"],[14,6,\\\"https://fonts.googleapis.com/css2?family=NunitoSans:wght@800&display=swap\\\"],[14,\\\"rel\\\",\\\"stylesheet\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"advice-card-forward\\\"],[12],[1,\\\"\\\\n As you conclude this course, we invite you to leave behind a piece of your experience for those\\\\n who will follow in your footsteps. Think back to your own journey, the highs and lows, the\\\\n challenges and triumphs. Your insights can guide future students, helping them navigate their own\\\\n path through this course. Please take a moment to share your advice or any tips that you wish\\\\n you'd known when you started. Please keep your advice concise and relevant!\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"advice-card\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"myAdviceCard\\\"]],[30,0,[\\\"isInstructor\\\"]]],null],[[[41,[51,[30,0,[\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"advice-card-thanks\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"advice-card-thanks-message\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Thank you for your advice!\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"If accepted, it will be shared with future students of this course.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"advice-card-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"advice-card-body\\\"],[12],[1,[30,0,[\\\"myAdviceCard\\\",\\\"body\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"myAdviceCard\\\",\\\"attachment\\\"]],[[[1,\\\" \\\"],[8,[39,6],[[24,0,\\\"advice-card-audio\\\"]],[[\\\"@source\\\",\\\"@isVideo\\\"],[[30,0,[\\\"myAdviceCard\\\",\\\"attachment\\\"]],false]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Student Advice Card Submissions (newer on top):\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"hr\\\"],[14,0,\\\"fellow-student-sub\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Accepted Submissions From Fellow Students\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"isInstructor\\\"]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"adviceCards\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"advice-card-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"advice-card-body\\\"],[12],[1,[30,1,[\\\"body\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"attachment\\\"]],[[[1,\\\" \\\"],[8,[39,6],[[24,0,\\\"advice-card-audio\\\"]],[[\\\"@source\\\",\\\"@isVideo\\\"],[[30,1,[\\\"attachment\\\"]],false]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"toggle-advice-card-button\\\\n \\\",[52,[30,1,[\\\"accepted\\\"]],\\\"toggle-advice-card-remove\\\"]]]],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"toggleAcceptAdviceCard\\\"]],[30,1,[\\\"id\\\"]],[30,2]],null]],null],[12],[1,[52,[51,[30,1,[\\\"accepted\\\"]]],\\\"Add to\\\",\\\"Remove from\\\"]],[1,\\\"\\\\n Advice Card Collection\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"advice-cards-empty\\\"],[12],[1,\\\"No advice has been submitted yet.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"otherAdviceCards\\\"]]],null]],null],null,[[[41,[30,3,[\\\"accepted\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"advice-card-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"advice-card-body\\\"],[12],[1,[30,3,[\\\"body\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"attachment\\\"]],[[[1,\\\" \\\"],[8,[39,6],[[24,0,\\\"advice-card-audio\\\"]],[[\\\"@source\\\",\\\"@isVideo\\\"],[[30,3,[\\\"attachment\\\"]],false]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"toggle-advice-card-button\\\\n \\\",[52,[30,3,[\\\"accepted\\\"]],\\\"toggle-advice-card-remove\\\"]]]],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"toggleAcceptAdviceCard\\\"]],[30,3,[\\\"id\\\"]],[30,4]],null]],null],[12],[1,[52,[51,[30,3,[\\\"accepted\\\"]]],\\\"Add to\\\",\\\"Remove from\\\"]],[1,\\\"\\\\n Advice Card Collection\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[3,4]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"advice-cards-empty\\\"],[12],[1,\\\"No advice has been submitted yet.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"advice-card-submit-conainer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"overCharLimit\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"advice-card-instruction\\\"],[12],[1,\\\"\\\\n Have some advice for future students? Compose a short message below.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"advice-card-instruction advice-card-char-limit-warn\\\"],[12],[1,\\\"\\\\n Please limit your advice to 500 characters\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[8,[39,14],null,[[\\\"@charLimit\\\",\\\"@updateBodyText\\\",\\\"@updateOverCharLimit\\\"],[\\\"500\\\",[30,0,[\\\"updateBody\\\"]],[30,0,[\\\"updateOverCharLimit\\\"]]]],null],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"advice-card-audio\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"advice-card-audio-label\\\"],[12],[1,\\\"If you'd like, you may also record an audio clip to\\\\n accompany your message. After you record, please make sure to click the Upload button.\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,15],null,[[\\\"@audio\\\",\\\"@updateRecordingStatus\\\",\\\"@recordingUploading\\\",\\\"@updateAttachment\\\"],[[30,0,[\\\"audio\\\"]],[30,0,[\\\"updateRecordingStatus\\\"]],[30,0,[\\\"recordingUploading\\\"]],[30,0,[\\\"updateAttachment\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"consent-checkbox\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"consent-accept\\\"],[24,\\\"required\\\",\\\"false\\\"],[24,3,\\\"consent-accept\\\"],[16,\\\"checked\\\",[30,0,[\\\"consentChecked\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"updateCheckbox\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"consent-accept\\\"],[12],[1,\\\"I consent to the publicizing of my advice outside this course\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"advice-card-submit \\\",[52,[30,0,[\\\"adviceCardPostable\\\"]],\\\"postable\\\"]]]],[4,[38,12],[\\\"click\\\",[30,0,[\\\"submitAdviceCard\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa fa-paper-plane\\\"],[12],[13],[1,\\\" Submit\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"adviceCardSub\\\",\\\"index\\\",\\\"adviceCardSub\\\",\\\"index\\\"],[\\\"link\\\",\\\"div\\\",\\\"if\\\",\\\"or\\\",\\\"unless\\\",\\\"p\\\",\\\"av-player\\\",\\\"h3\\\",\\\"hr\\\",\\\"each\\\",\\\"-track-array\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"character-limited-textarea\\\",\\\"advice-card/audio-recorder\\\",\\\"input\\\",\\\"label\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/advice-card-submitter.hbs\",\n \"isStrictMode\": false\n });\n var AdviceCardSubmitter = _exports.default = (_dec = (0, _object.computed)(\"session.section.adviceCards.adviceCardsCount\", \"adviceCardsArray\"), _dec2 = (0, _object.computed)(\"session.user.id\"), _class = /*#__PURE__*/function (_Component) {\n function AdviceCardSubmitter(owner, args) {\n var _this;\n _classCallCheck(this, AdviceCardSubmitter);\n _this = _callSuper(this, AdviceCardSubmitter, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"adviceCardBodyText\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"overCharLimit\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"adviceCardPostable\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"recordingUploading\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"attachmentURL\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"consentChecked\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"adviceCard\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"myAdviceCard\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"adviceCardsArray\", _descriptor0, _this);\n _this.fetchAdviceCards();\n return _this;\n }\n _inherits(AdviceCardSubmitter, _Component);\n return _createClass(AdviceCardSubmitter, [{\n key: \"adviceCards\",\n get: function get() {\n if (this.session.section.adviceCards.adviceCardsCount) {\n this.fetchAdviceCards();\n }\n return this.adviceCardsArray;\n }\n }, {\n key: \"fetchAdviceCards\",\n value: function fetchAdviceCards() {\n var _this2 = this;\n var section = window.session.get(\"section.id\");\n return fetch(\"/interface/submit-advice-card/\".concat(section), {\n method: \"GET\"\n }).then(function (response) {\n // Make sure to check if the response is OK before proceeding\n if (!response.ok) {\n throw new Error(\"Network response was not ok\");\n }\n // Use the .json() method to parse the response body as JSON\n return response.json();\n }).then(function (data) {\n // 'data' is the JSON object that was parsed from the response body\n if (data.adviceCards.map(function (card) {\n return card.id;\n }).toSorted().toString() != _this2.adviceCards.map(function (card) {\n return card.id;\n }).toSorted().toString()) {\n _this2.adviceCardsArray = data.adviceCards;\n }\n if (!_this2.isInstructor) {\n _this2.updateMyAdviceCard();\n }\n return _this2.adviceCardsArray;\n }).catch(function (error) {\n // Handle any errors that occurred during the fetch\n console.error(\"There was a problem with your fetch operation:\", error);\n return [];\n });\n }\n }, {\n key: \"otherAdviceCards\",\n get: function get() {\n var userId = parseInt(window.session.get(\"user.id\"));\n if (this.adviceCards) {\n return this.adviceCards.filter(function (c) {\n return parseInt(c.author_canvas_id) != userId;\n });\n }\n return [];\n }\n }, {\n key: \"updateMyAdviceCard\",\n value: function updateMyAdviceCard() {\n var userId = parseInt(window.session.get(\"user.id\"));\n if (this.adviceCards) {\n var adviceCard = this.adviceCards.find(function (card) {\n return parseInt(card.author_canvas_id) === userId;\n });\n this.myAdviceCard = adviceCard;\n } else {\n return false;\n }\n }\n }, {\n key: \"isInstructor\",\n get: function get() {\n var userId = parseInt(window.session.get(\"user.id\"));\n var teachers = window.session.section.hasMany(\"teachers\").value();\n return teachers ? teachers.find(function (user) {\n return parseInt(user.id) === userId;\n }) : [];\n }\n }, {\n key: \"updateRecordingStatus\",\n value: function updateRecordingStatus(status) {\n this.recordingUploading = status;\n this.adviceCardPostable = this.adviceCardBodyText.length > 0 && !this.recordingUploading;\n }\n }, {\n key: \"resubmitAdviceCard\",\n value: function resubmitAdviceCard() {\n this.myAdviceCard = false;\n }\n }, {\n key: \"updateBody\",\n value: function updateBody(newText) {\n this.adviceCardBodyText = newText;\n this.adviceCardPostable = this.adviceCardBodyText.length > 0 && !this.recordingUploading;\n }\n }, {\n key: \"updateOverCharLimit\",\n value: function updateOverCharLimit(newVal) {\n this.overCharLimit = newVal;\n }\n }, {\n key: \"updateAttachment\",\n value: function updateAttachment(attachmentURL) {\n this.attachmentURL = attachmentURL;\n this.recordingUploading = false;\n }\n }, {\n key: \"toggleAcceptAdviceCard\",\n value: function () {\n var _toggleAcceptAdviceCard = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id, advIndex) {\n var accept, response, _advIndex, updatedCard, newAdviceCards;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n accept = !this.adviceCards[advIndex].accepted;\n _context.n = 1;\n return fetch(\"/interface/submit-advice-card/\".concat(window.session.get(\"section.id\"), \"/accept\"), {\n method: \"PUT\",\n body: JSON.stringify({\n id: id,\n accepted: accept\n })\n });\n case 1:\n response = _context.v;\n _context.n = 2;\n return response.json();\n case 2:\n response = _context.v;\n if (response.success) {\n // Check this.adviceCards for the card with the id and update it with the accepted status\n _advIndex = this.adviceCards.findIndex(function (card) {\n return card.id === id;\n });\n if (_advIndex !== -1) {\n // Dealing with deep arrays in Ember is a bit tricky...\n // Step 1 & 2: Make a copy of the object and update it\n updatedCard = _objectSpread(_objectSpread({}, this.adviceCards[_advIndex]), {}, {\n accepted: accept\n }); // Step 3: Create a new array with the updated object\n newAdviceCards = this.adviceCards.map(function (card, index) {\n return index === _advIndex ? updatedCard : card;\n }); // Step 4: Set the new array to the state\n this.adviceCardsArray = newAdviceCards;\n }\n }\n this.session.set(\"section.adviceCards.adviceCardsCount\", 0);\n case 3:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function toggleAcceptAdviceCard(_x, _x2) {\n return _toggleAcceptAdviceCard.apply(this, arguments);\n }\n return toggleAcceptAdviceCard;\n }()\n }, {\n key: \"updateCheckbox\",\n value: function () {\n var _updateCheckbox = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(event) {\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n this.consentChecked = event.target.checked;\n case 1:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function updateCheckbox(_x3) {\n return _updateCheckbox.apply(this, arguments);\n }\n return updateCheckbox;\n }()\n }, {\n key: \"submitAdviceCard\",\n value: function () {\n var _submitAdviceCard = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {\n var assignmentBody, attachmentURL, publicize_consent, author_name, course, course_code, course_title, term, userId, existing_card, thisCard, response;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n assignmentBody = this.adviceCardBodyText;\n attachmentURL = this.attachmentURL;\n publicize_consent = this.consentChecked;\n author_name = window.session.get(\"user.name\");\n course = window.session.get(\"course.id\");\n course_code = window.session.get(\"course.code\").split(\".\")[0];\n course_title = window.session.get(\"course.title\");\n term = window.session.get(\"course.term.name\");\n userId = parseInt(window.session.get(\"user.id\"));\n existing_card = this.adviceCards.find(function (card) {\n return parseInt(card.author_canvas_id) === userId;\n }) || null;\n thisCard = {\n body: assignmentBody,\n attachment: attachmentURL,\n author_name: author_name,\n section_id: window.session.get(\"section.id\"),\n course_id: course,\n course_code: course_code,\n course_title: course_title,\n instructor_id: null,\n submission_id: 0,\n term: term,\n publicize_consent: publicize_consent\n };\n if (existing_card) {\n thisCard.id = existing_card.id;\n }\n _context3.n = 1;\n return fetch(\"/interface/submit-advice-card/\", {\n method: \"POST\",\n body: JSON.stringify(thisCard)\n });\n case 1:\n response = _context3.v;\n if (response.ok) {\n // Need id of new card to prevent dupe\n this.fetchAdviceCards();\n this.args.submitAdviceCard();\n }\n case 2:\n return _context3.a(2);\n }\n }, _callee3, this);\n }));\n function submitAdviceCard() {\n return _submitAdviceCard.apply(this, arguments);\n }\n return submitAdviceCard;\n }()\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"adviceCardBodyText\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"overCharLimit\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"adviceCardPostable\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"recordingUploading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"attachmentURL\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"consentChecked\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"adviceCard\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return this.args.model;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"myAdviceCard\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"adviceCardsArray\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"adviceCards\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"adviceCards\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isInstructor\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"isInstructor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateRecordingStatus\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateRecordingStatus\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"resubmitAdviceCard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"resubmitAdviceCard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateBody\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateBody\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateOverCharLimit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateOverCharLimit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateAttachment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateAttachment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleAcceptAdviceCard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAcceptAdviceCard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateCheckbox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"updateCheckbox\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submitAdviceCard\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"submitAdviceCard\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AdviceCardSubmitter);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/lessons/advice-card-viewer\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n

    As you embark on this course journey, we want to share with you some\n advice cards. These aren't just any tips—they come directly from students who have previously\n taken this course. They've been where you are now and have left these insights to help guide you\n through. We hope you find their experiences and advice invaluable as you navigate the course\n ahead.

    \n
    \n
    \n \n \n \n
    \n “{{{this.currentCard.body}}}”
    \n {{#if this.currentCard.attachment}}\n \n {{/if}}\n
    —{{this.currentCard.author_name}}, {{this.currentCard.term}}
    \n \n {{#if @isAdmin}}\n \n {{#if this.currentCardHidden}}\n \n Unhide this card\n {{else}}\n \n Hide this card\n {{/if}}\n \n {{/if}}\n
    \n \n \n \n
    \n \n */\n {\n \"id\": \"ELySWFHr\",\n \"block\": \"[[[10,\\\"style\\\"],[12],[1,\\\"\\\\n @import url(\\\\\\\"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap\\\\\\\");\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,2],[14,0,\\\"advice-card-blurb\\\"],[12],[1,\\\"As you embark on this course journey, we want to share with you some\\\\n advice cards. These aren't just any tips—they come directly from students who have previously\\\\n taken this course. They've been where you are now and have left these insights to help guide you\\\\n through. We hope you find their experiences and advice invaluable as you navigate the course\\\\n ahead.\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"advice-card-viewer\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"advice-card__inner\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"advice-card__btn previous js-new-advice\\\"],[24,\\\"data-tooltip\\\",\\\"Previous advice tip...\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"prevSlide\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-angle-left\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"advice-card__quote\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[[52,[30,0,[\\\"currentCard\\\",\\\"attachment\\\"]],\\\" accommodate-attachment\\\"],\\\" card-body\\\"]]],[12],[1,\\\"“\\\"],[2,[30,0,[\\\"currentCard\\\",\\\"body\\\"]]],[1,\\\"”\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentCard\\\",\\\"attachment\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@source\\\",\\\"@isVideo\\\"],[[30,0,[\\\"currentCard\\\",\\\"attachment\\\"]],false]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"post-details\\\"],[12],[1,\\\"—\\\"],[1,[30,0,[\\\"currentCard\\\",\\\"author_name\\\"]]],[1,\\\", \\\"],[1,[30,0,[\\\"currentCard\\\",\\\"term\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"advice-card__clap-count\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleLike\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[[52,[30,0,[\\\"currentCardLiked\\\"]],\\\"advice-card__liked\\\"],\\\" fa fa-thumbs-up fa-bounce\\\"]]],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[30,0,[\\\"currentLikes\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"advice-card__hide-button\\\"],[16,\\\"data-tooltip\\\",[29,[[52,[30,0,[\\\"currentCardHidden\\\"]],\\\"Unhide\\\",\\\"Hide\\\"],\\\" this advice card\\\"]]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleHide\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentCardHidden\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye\\\"],[12],[13],[1,\\\"\\\\n Unhide this card\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-eye-slash\\\"],[12],[13],[1,\\\"\\\\n Hide this card\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"advice-card__btn next js-new-advice\\\"],[24,\\\"data-tooltip\\\",\\\"Next advice tip...\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"nextSlide\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-angle-right\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@isAdmin\\\"],[\\\"style\\\",\\\"p\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"if\\\",\\\"av-player\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/advice-card-viewer.hbs\",\n \"isStrictMode\": false\n });\n var AdviceCardViewer = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function AdviceCardViewer(owner, args) {\n var _this;\n _classCallCheck(this, AdviceCardViewer);\n _this = _callSuper(this, AdviceCardViewer, [owner, args]);\n _initializerDefineProperty(_this, \"adviceCards\", _descriptor, _this);\n _initializerDefineProperty(_this, \"currentIndex\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"currentLikes\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"currentCardLiked\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"currentCardHidden\", _descriptor5, _this);\n var header = document.querySelector('[aria-labelledby=\"advice-cards-header\"]') || document.querySelector('[aria-labelledby=\"advice-cards-intro-header\"]') || document.querySelector('[aria-labelledby=\"advice-cards-lesson-1-header\"]');\n try {\n header.style.background = \"#F4F6F8\";\n document.querySelector('[topic_title=\"Peer-to-Peer Support: Advice Cards\"]').style.background = \"#F4F6F8\";\n } catch (e) {\n console.log(e);\n }\n var course_id = window.session.get(\"course.course_id\");\n fetch(\"/interface/advice_cards/\".concat(course_id), {\n method: \"GET\"\n }).then(function (response) {\n // Make sure to check if the response is OK before proceeding\n if (!response.ok) {\n throw new Error(\"Network response was not ok\");\n }\n // Use the .json() method to parse the response body as JSON\n return response.json();\n }).then(function (data) {\n // 'data' is the JSON object that was parsed from the response body\n _this.adviceCards = data;\n }).catch(function (error) {\n // Handle any errors that occurred during the fetch\n console.error(\"There was a problem with your fetch operation:\", error);\n });\n return _this;\n }\n _inherits(AdviceCardViewer, _Component);\n return _createClass(AdviceCardViewer, [{\n key: \"currentCard\",\n get: function get() {\n var _this$adviceCards;\n if ((_this$adviceCards = this.adviceCards) !== null && _this$adviceCards !== void 0 && _this$adviceCards.length) {\n this.currentLikes = this.adviceCards[this.currentIndex].num_likes;\n this.currentCardLiked = this.adviceCards[this.currentIndex].liked;\n this.currentCardHidden = this.adviceCards[this.currentIndex].is_hidden;\n return this.adviceCards[this.currentIndex];\n }\n return false;\n }\n }, {\n key: \"toggleHide\",\n value: function () {\n var _toggleHide = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var requestType, response;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n requestType = this.currentCard.is_hidden ? \"unhide\" : \"hide\";\n _context.n = 1;\n return fetch(\"/interface/advice_cards/\".concat(window.session.course.get(\"course_id\"), \"/\").concat(this.currentCard.id, \"/\").concat(requestType), {\n method: \"PATCH\"\n });\n case 1:\n response = _context.v;\n if (response.ok) {\n _context.n = 2;\n break;\n }\n throw response.status;\n case 2:\n this.currentCard.is_hidden = !this.currentCard.is_hidden;\n this.currentCardHidden = !this.currentCardHidden;\n return _context.a(2, response.json());\n }\n }, _callee, this);\n }));\n function toggleHide() {\n return _toggleHide.apply(this, arguments);\n }\n return toggleHide;\n }()\n }, {\n key: \"toggleLike\",\n value: function () {\n var _toggleLike = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var response;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n if (!this.currentCard.liked) {\n _context2.n = 2;\n break;\n }\n _context2.n = 1;\n return fetch(\"/interface/advice_cards/\".concat(window.session.course.get(\"course_id\"), \"/\").concat(this.currentCard.id, \"/unlike\"), {\n method: \"DELETE\"\n });\n case 1:\n response = _context2.v;\n _context2.n = 4;\n break;\n case 2:\n _context2.n = 3;\n return fetch(\"/interface/advice_cards/\".concat(window.session.course.get(\"course_id\"), \"/\").concat(this.currentCard.id, \"/like\"), {\n method: \"PUT\"\n });\n case 3:\n response = _context2.v;\n case 4:\n if (response.ok) {\n _context2.n = 5;\n break;\n }\n throw response.status;\n case 5:\n if (this.currentCard.liked) {\n this.currentLikes--;\n this.currentCard.num_likes--;\n } else {\n this.currentLikes++;\n this.currentCard.num_likes++;\n }\n this.currentCard.liked = !this.currentCard.liked;\n this.currentCardLiked = !this.currentCardLiked;\n return _context2.a(2, response.json());\n }\n }, _callee2, this);\n }));\n function toggleLike() {\n return _toggleLike.apply(this, arguments);\n }\n return toggleLike;\n }()\n }, {\n key: \"nextSlide\",\n value: function nextSlide() {\n this.currentIndex++;\n if (this.currentIndex >= this.adviceCards.length) {\n this.currentIndex = 0;\n }\n this.logInteraction();\n }\n }, {\n key: \"prevSlide\",\n value: function prevSlide() {\n this.currentIndex--;\n if (this.currentIndex < 0) {\n this.currentIndex = this.adviceCards.length - 1;\n }\n this.logInteraction();\n }\n }, {\n key: \"logInteraction\",\n value: function () {\n var _logInteraction = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n fetch(\"/interface/advice_cards/\".concat(window.session.course.get(\"course_id\"), \"/interaction\"), {\n method: \"PUT\"\n }).catch(function (error) {\n // Handle any errors that occurred during the fetch\n console.error(\"There was a problem with your fetch operation:\", error);\n });\n case 1:\n return _context3.a(2);\n }\n }, _callee3);\n }));\n function logInteraction() {\n return _logInteraction.apply(this, arguments);\n }\n return logInteraction;\n }()\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"adviceCards\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentIndex\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentLikes\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentCardLiked\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"currentCardHidden\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleHide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleHide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleLike\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleLike\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextSlide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextSlide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"prevSlide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"prevSlide\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AdviceCardViewer);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/lessons/event-new-content\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n {{#if @event.incomplete}}{{sum @index 1}}{{else}}{{/if}}\n
    \n
    \n
    \n {{if\n @event.titleInput\n @event.titleInput\n \"Untitled Session\"\n }}\n {{#unless @hideDelete}}\n
    \n \n
    \n {{/unless}}\n
    \n
    \n \n {{if @event.startDate_date @event.startDate_date \"No date\"}}\n ·\n \n {{if @event.startDate_time @event.startDate_time \"No time\"}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n {{subtract 100 @event.titleInput.length}}\n characters remaining\n
    \n
    \n
    \n \n \n {{#unless @hideDateTime}}\n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n {{/unless}}\n
    \n \n {{#if @saveEvent}}\n
    \n Cancel\n Save{{#if @event.incomplete}}All live classes require a\n title, description, and time{{/if}}\n
    \n {{/if}}\n \n */\n {\n \"id\": \"7n1aZUQo\",\n \"block\": \"[[[11,0],[24,\\\"tabindex\\\",\\\"0\\\"],[24,0,\\\"single-event\\\"],[4,[38,1],[[30,0,[\\\"scrollIntoView\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"single-event__header-index\\\\n \\\",[52,[51,[30,1,[\\\"incomplete\\\"]]],\\\"single-event__header-index--complete\\\"]]]],[12],[1,\\\"\\\\n \\\"],[41,[30,1,[\\\"incomplete\\\"]],[[[1,[28,[35,4],[[30,2],1],null]]],[]],[[[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13]],[]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-details\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-row1\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"single-event__header-title\\\"],[12],[1,[52,[30,1,[\\\"titleInput\\\"]],[30,1,[\\\"titleInput\\\"]],\\\"Untitled Session\\\"]],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,3]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"single-event__header-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__header-action-btn single-event__header-action-btn--delete\\\"],[24,\\\"aria-label\\\",\\\"Delete this session\\\"],[4,[38,8],[\\\"click\\\",[30,4]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-trash-can\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-row2\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[52,[30,1,[\\\"startDate_date\\\"]],[30,1,[\\\"startDate_date\\\"]],\\\"No date\\\"]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"single-event__header-sep\\\"],[12],[1,\\\"·\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[52,[30,1,[\\\"startDate_time\\\"]],[30,1,[\\\"startDate_time\\\"]],\\\"No time\\\"]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"single-event__header-divider\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__title-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"single-event__title-label\\\"],[12],[1,\\\"Title\\\"],[10,1],[14,0,\\\"single-event__required\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__title\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,0,\\\"single-event__title-input new\\\"],[24,\\\"placeholder\\\",\\\"Title\\\"],[24,\\\"maxLength\\\",\\\"100\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"titleInput\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__title-chars-remaining\\\"],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,12],[100,[30,1,[\\\"titleInput\\\",\\\"length\\\"]]],null]],[1,\\\"\\\\n characters remaining\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Edit Live Class Details\\\"],[15,0,[29,[\\\"single-event__description reply-container reply-quick \\\",[52,[30,5],\\\"active-editor\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,13],null,[[\\\"@userInput\\\",\\\"@hideAttachments\\\",\\\"@disableViewArchive\\\",\\\"@controller\\\",\\\"@updateArchive\\\"],[[30,1,[\\\"bodyInput\\\"]],true,true,[30,0],[30,0,[\\\"args\\\",\\\"controller\\\",\\\"updateLocalDocs\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"single-event__time-pickers\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__date-picker\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"single-event__title-label\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,0,\\\"single-event__date-picker-input\\\"],[16,\\\"min\\\",[52,[30,7],[30,7],\\\"\\\"]],[16,\\\"max\\\",[52,[30,8],[30,8],\\\"9999-12-31\\\"]],[4,[38,8],[\\\"input\\\",[28,[37,14],[[30,9],[30,2]],null]],null],[4,[38,8],[\\\"keyup\\\",[28,[37,14],[[30,9],[30,2]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"date\\\",[30,1,[\\\"startDate_date\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__hour-picker\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"single-event__title-label\\\"],[12],[1,\\\"Time\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,0,\\\"single-event__hour-picker-input\\\"],[4,[38,8],[\\\"input\\\",[28,[37,14],[[30,10],[30,2]],null]],null],[4,[38,8],[\\\"keyup\\\",[28,[37,14],[[30,10],[30,2]],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"time\\\",[30,1,[\\\"startDate_time\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,11],[[[1,\\\" \\\"],[10,0],[14,0,\\\"single-event__actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__action-btn button button--md button--black-ghost single-event__action-btn--radius\\\"],[4,[38,8],[\\\"click\\\",[30,12]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__action-btn button button--md button--primary single-event__action-btn--radius\\\"],[16,\\\"disabled\\\",[30,1,[\\\"incomplete\\\"]]],[4,[38,8],[\\\"click\\\",[30,11]],null],[12],[1,\\\"Save\\\"],[41,[30,1,[\\\"incomplete\\\"]],[[[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"All live classes require a\\\\n title, description, and time\\\"],[13]],[]],null],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@event\\\",\\\"@index\\\",\\\"@hideDelete\\\",\\\"@deleteEvent\\\",\\\"@inEditor\\\",\\\"@hideDateTime\\\",\\\"@min\\\",\\\"@max\\\",\\\"@updateDate\\\",\\\"@updateTime\\\",\\\"@saveEvent\\\",\\\"@discardEvent\\\"],[\\\"div\\\",\\\"did-insert\\\",\\\"unless\\\",\\\"if\\\",\\\"sum\\\",\\\"i\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"hr\\\",\\\"label\\\",\\\"input\\\",\\\"subtract\\\",\\\"rte\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/event-new-content.hbs\",\n \"isStrictMode\": false\n });\n var EventNewContentComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function EventNewContentComponent() {\n _classCallCheck(this, EventNewContentComponent);\n return _callSuper(this, EventNewContentComponent, arguments);\n }\n _inherits(EventNewContentComponent, _Component);\n return _createClass(EventNewContentComponent, [{\n key: \"setBodyInput\",\n value: function setBodyInput(value) {\n (0, _object.set)(this.args.event, \"bodyInput\", value);\n }\n }, {\n key: \"setRteService\",\n value: function setRteService(editor) {\n this.args.controller.setRteService(editor);\n }\n }, {\n key: \"updateArchive\",\n value: function updateArchive() {\n this.args.controller.updateLocalDocs();\n }\n }, {\n key: \"deleteArchivedText\",\n value: function deleteArchivedText() {\n var _this$args$controller;\n (_this$args$controller = this.args.controller).deleteArchivedText.apply(_this$args$controller, arguments);\n }\n }, {\n key: \"localDocs\",\n get: function get() {\n return this.args.controller.localDocs;\n }\n }, {\n key: \"scrollIntoView\",\n value: function scrollIntoView(element) {\n var stickyHeader = document.getElementById(\"new-event__sticky-header\");\n var headerOffsetHeight = stickyHeader ? stickyHeader.offsetHeight : 42;\n\n // Scroll the newly created element\n (0, _jquery.default)(\"#new-event\").animate({\n scrollTop: element.offsetTop - headerOffsetHeight\n }, 1250);\n }\n }]);\n }(_component2.default), _applyDecoratedDescriptor(_class.prototype, \"scrollIntoView\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollIntoView\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, EventNewContentComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/lessons/event-new-template-manager-page\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n All Templates\n Form Templates\n Group Templates\n
    \n {{#if (eq this.filteredTemplates.length 0)}}\n

    \n {{#if (eq this.activeTab \"form\")}}No saved form templates.\n {{else if (eq this.activeTab \"group\")}}No saved group templates.\n {{else}}No saved templates.{{/if}}\n

    \n {{else}}\n
      \n {{#each this.filteredTemplates key=\"_key\" as |item|}}\n
    • \n
      \n {{#if (eq item.template.events.length 1)}}\n \n {{else}}\n \n {{/if}}\n
      \n
      \n {{item.template.name}}\n
      \n
      \n \n \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"IVrTNtEc\",\n \"block\": \"[[[10,0],[14,0,\\\"template-manager-page\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-manager-page__tabs\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"template-manager-page__tab\\\\n \\\",[52,[28,[37,3],[[30,0,[\\\"activeTab\\\"]],\\\"all\\\"],null],\\\"template-manager-page__tab--active\\\"]]]],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"setTab\\\"]],\\\"all\\\"],null]],null],[12],[1,\\\"All Templates\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"template-manager-page__tab\\\\n \\\",[52,[28,[37,3],[[30,0,[\\\"activeTab\\\"]],\\\"form\\\"],null],\\\"template-manager-page__tab--active\\\"]]]],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"setTab\\\"]],\\\"form\\\"],null]],null],[12],[1,\\\"Form Templates\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"template-manager-page__tab\\\\n \\\",[52,[28,[37,3],[[30,0,[\\\"activeTab\\\"]],\\\"group\\\"],null],\\\"template-manager-page__tab--active\\\"]]]],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,0,[\\\"setTab\\\"]],\\\"group\\\"],null]],null],[12],[1,\\\"Group Templates\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"filteredTemplates\\\",\\\"length\\\"]],0],null],[[[1,\\\" \\\"],[10,2],[14,0,\\\"template-manager-page__empty\\\"],[12],[1,\\\"\\\\n \\\"],[41,[28,[37,3],[[30,0,[\\\"activeTab\\\"]],\\\"form\\\"],null],[[[1,\\\"No saved form templates.\\\\n \\\"]],[]],[[[41,[28,[37,3],[[30,0,[\\\"activeTab\\\"]],\\\"group\\\"],null],[[[1,\\\"No saved group templates.\\\\n \\\"]],[]],[[[1,\\\"No saved templates.\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"template-manager-page__list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"filteredTemplates\\\"]]],null]],null],\\\"_key\\\",[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"template-manager-page__list-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-manager-page__icon-box\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1,[\\\"template\\\",\\\"events\\\",\\\"length\\\"]],1],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-lines\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-layer-group\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-manager-page__template-name\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"template\\\",\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-manager-page__actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__header-action-btn\\\"],[24,\\\"aria-label\\\",\\\"Edit Template\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,2],[30,1,[\\\"template\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__header-action-btn\\\"],[24,\\\"aria-label\\\",\\\"Copy Template\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,3],[30,1,[\\\"template\\\",\\\"name\\\"]],[30,1,[\\\"template\\\",\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-copy\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__header-action-btn\\\"],[24,\\\"aria-label\\\",\\\"Permanently Delete Template\\\"],[4,[38,4],[\\\"click\\\",[28,[37,5],[[30,4],[30,1,[\\\"template\\\",\\\"id\\\"]],[30,1,[\\\"template\\\",\\\"name\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-trash-can\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"item\\\",\\\"@editTemplate\\\",\\\"@copyTemplate\\\",\\\"@deleteTemplate\\\"],[\\\"div\\\",\\\"button\\\",\\\"if\\\",\\\"eq\\\",\\\"on\\\",\\\"fn\\\",\\\"p\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/event-new-template-manager-page.hbs\",\n \"isStrictMode\": false\n });\n var EventNewTemplateManagerPageComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function EventNewTemplateManagerPageComponent() {\n var _this;\n _classCallCheck(this, EventNewTemplateManagerPageComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, EventNewTemplateManagerPageComponent, [].concat(args));\n _initializerDefineProperty(_this, \"activeTab\", _descriptor, _this);\n return _this;\n }\n _inherits(EventNewTemplateManagerPageComponent, _Component);\n return _createClass(EventNewTemplateManagerPageComponent, [{\n key: \"filteredTemplates\",\n get: function get() {\n var _this2 = this;\n var templates = this.args.templates || [];\n var filtered;\n if (this.activeTab === \"form\") {\n filtered = templates.filter(function (t) {\n return t.events && t.events.length === 1;\n });\n } else if (this.activeTab === \"group\") {\n filtered = templates.filter(function (t) {\n return t.events && t.events.length > 1;\n });\n } else {\n filtered = templates;\n }\n return filtered.map(function (template) {\n return {\n template: template,\n _key: \"\".concat(_this2.activeTab, \"-\").concat(template.id)\n };\n });\n }\n }, {\n key: \"setTab\",\n value: function setTab(tab) {\n this.activeTab = tab;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"activeTab\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"all\";\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"setTab\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setTab\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, EventNewTemplateManagerPageComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/login-streak\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n {{#if this.consecutiveWeeks}}\n
    \n {{else}}\n
    \n {{/if}}\n
    {{this.consecutiveWeeks}}
    \n
    \n
    \n
    Streak
    \n
    \n {{#if this.consecutiveWeeks}}\n You've met your weekly activity goal for\n {{this.consecutiveWeeks}}\n week{{#if (morethan this.consecutiveWeeks 1)}}s{{/if}}\n straight. Keep it up!\n {{else}}\n Get active this week to meet your learning goals.\n {{/if}}\n
    \n
    \n
    \n
    \n
    \n {{#if this.consecutiveWeeks}}\n
    \n {{/if}}\n \n
    WEEK {{this.weekNum}}
    \n
    \n
    \n {{total this.daysThisWeek}}\n of 4 days\n
    \n \n
      \n {{#each this.days as |day|}}\n {{#if (inarray day.num this.daysThisWeek)}}\n
    • {{day.day}}
    • \n {{else}}\n
    • {{day.day}}
    • \n {{/if}}\n {{/each}}\n
    \n
    \n
    \n Log in to BOCCE at least four times per week to keep the streak alive.\n
    \n
    \n */\n {\n \"id\": \"mgEwcJKT\",\n \"block\": \"[[[10,0],[14,0,\\\"login-streak-wrapper dashboard-widget\\\"],[14,\\\"aria-label\\\",\\\"Login streak widget\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-prior-week-data\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-number-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"consecutiveWeeks\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"login-streak-active login-streak-icon-large\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"login-streak-inactive login-streak-icon-large\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"login-streak-number-weeks\\\"],[12],[1,[30,0,[\\\"consecutiveWeeks\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-message-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-message-title\\\"],[12],[1,\\\"Streak\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-message login-streak-goal-message\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"consecutiveWeeks\\\"]],[[[1,\\\" You've met your weekly activity goal for\\\\n \\\"],[1,[30,0,[\\\"consecutiveWeeks\\\"]]],[1,\\\"\\\\n week\\\"],[41,[28,[37,2],[[30,0,[\\\"consecutiveWeeks\\\"]],1],null],[[[1,\\\"s\\\"]],[]],null],[1,\\\"\\\\n straight. Keep it up!\\\\n\\\"]],[]],[[[1,\\\" Get active this week to meet your learning goals.\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-current-week-data\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-week-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"consecutiveWeeks\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"login-streak-active login-streak-icon-small\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-week\\\"],[12],[1,\\\"WEEK \\\"],[1,[30,0,[\\\"weekNum\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-week-days-active-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"login-streak-week-days-active\\\"],[12],[1,[28,[35,4],[[30,0,[\\\"daysThisWeek\\\"]]],null]],[13],[1,\\\"\\\\n of 4 days\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"login-streak-days\\\"],[14,\\\"aria-label\\\",\\\"Days active this week\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"days\\\"]]],null]],null],null,[[[41,[28,[37,8],[[30,1,[\\\"num\\\"]],[30,0,[\\\"daysThisWeek\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"login-streak-day-checked\\\"],[15,\\\"aria-label\\\",[29,[[30,1,[\\\"fullName\\\"]],\\\": active\\\"]]],[12],[10,1],[14,0,\\\"login-streak-day-letter\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[30,1,[\\\"day\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"login-streak-day\\\"],[15,\\\"aria-label\\\",[29,[[30,1,[\\\"fullName\\\"]],\\\": not active\\\"]]],[12],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[30,1,[\\\"day\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"login-streak-message login-streak-directions-message\\\"],[12],[1,\\\"\\\\n Log in to BOCCE at least four times per week to keep the streak alive.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"day\\\"],[\\\"div\\\",\\\"if\\\",\\\"morethan\\\",\\\"span\\\",\\\"total\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"inarray\\\",\\\"li\\\"]]\",\n \"moduleName\": \"bocce/components/login-streak.hbs\",\n \"isStrictMode\": false\n });\n var LoginStreak = _exports.default = (_dec = (0, _service.inject)(\"login-streak\"), _class = /*#__PURE__*/function (_Component) {\n function LoginStreak() {\n var _this;\n _classCallCheck(this, LoginStreak);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, LoginStreak, [].concat(args));\n _initializerDefineProperty(_this, \"loginStreakService\", _descriptor, _this);\n return _this;\n }\n _inherits(LoginStreak, _Component);\n return _createClass(LoginStreak, [{\n key: \"consecutiveWeeks\",\n get: function get() {\n return this.loginStreakService.consecutiveWeeks;\n }\n }, {\n key: \"weekNum\",\n get: function get() {\n return this.loginStreakService.weekNum;\n }\n }, {\n key: \"daysThisWeek\",\n get: function get() {\n return this.loginStreakService.daysThisWeek;\n }\n }, {\n key: \"days\",\n get: function get() {\n return [{\n day: \"M\",\n fullName: \"Monday\",\n num: 1\n }, {\n day: \"Tu\",\n fullName: \"Tuesday\",\n num: 2\n }, {\n day: \"W\",\n fullName: \"Wednesday\",\n num: 3\n }, {\n day: \"Th\",\n fullName: \"Thursday\",\n num: 4\n }, {\n day: \"F\",\n fullName: \"Friday\",\n num: 5\n }, {\n day: \"Sa\",\n fullName: \"Saturday\",\n num: 6\n }, {\n day: \"Su\",\n fullName: \"Sunday\",\n num: 7\n }];\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"loginStreakService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, LoginStreak);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/modal-wormhole\", [\"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 var _ModalWormhole;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var ModalWormhole = _exports.default = /*#__PURE__*/function (_Component) {\n function ModalWormhole(owner, args) {\n var _this;\n _classCallCheck(this, ModalWormhole);\n _this = _callSuper(this, ModalWormhole, [owner, args]);\n /* eslint-disable-next-line ember/no-jquery */\n $(\"a\").attr(\"tabindex\", \"-1\");\n // NK: Including .bocce in the selector below prevents tests from aborting.\n // I'm not sure why the test framework aborts, but making sure that we only\n // change buttons within the BOCCE body seems to appease QUnit.\n /* eslint-disable-next-line ember/no-jquery */\n $(\".bocce button\").not(\".conf-dialog button, .adblock-warning button, .user-profile button, .floating-modal *, .popup-container *, .video-player *, .help-guide-container button, .pref-dialog.active.hcode button\").attr(\"disabled\", \"true\");\n /* eslint-disable-next-line ember/no-jquery */\n $(\".floating-modal a, .popup-container a\").removeAttr(\"tabindex\");\n /* eslint-disable-next-line ember/no-jquery */\n $('.floating-modal [tabindex=\"0\"]').focus();\n return _this;\n }\n _inherits(ModalWormhole, _Component);\n return _createClass(ModalWormhole, [{\n key: \"modalContainer\",\n get: function get() {\n return document.querySelector(\"#modal-container\");\n }\n }]);\n }(_component.default);\n _ModalWormhole = ModalWormhole;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#in-element this.modalContainer}}\n {{yield}}\n {{/in-element}}\n */\n {\n \"id\": \"hnlepnko\",\n \"block\": \"[[[40,[[[1,\\\" \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[31,1],[[30,0,[\\\"modalContainer\\\"]]],null]]],[\\\"&default\\\"],[\\\"in-element\\\",\\\"-in-el-null\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/modal-wormhole.js\",\n \"isStrictMode\": true\n }), _ModalWormhole);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/modals/attachments/attachments-record-audio\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@bocce/shared\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _shared, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@bocce/shared\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if @minimized}}\n
    \n \n \n Click “expand” to return to the full-sized version.\n \n
    \n \n Expand\n
    \n
    \n {{else}}\n
    \n
    Record an audio message
    \n
    \n \n Minimize Recorder\n
    \n
    \n {{/if}}\n {{#unless @minimized}}\n
    \n
    \n Echo Cancellation\n \n
    \n
    \n Echo cancellation helps remove the echo effect when recording audio. This can improve the\n audio quality in noisy environments, but it’s not recommended for general use because it\n also tends to remove instrumental background audio.\n
    \n
    \n {{/unless}}\n {{#if this.recordedAudio}}\n
    \n \n {{#unless this.showEraseConfirmation}}\n
    \n \n \n \n \n \n
    \n {{else}}\n
    \n
    Are you sure? This will erase your previous recording.
    \n
    \n \n \n
    \n
    \n {{/unless}}\n
    \n {{else if this.currentlyRecordingAudio}}\n
    \n
    \n REC\n {{this.timeRecorded}}\n
    \n \n
    \n {{else}}\n
    \n \n
    \n {{/if}}\n
    \n Having trouble uploading files in Chrome or Edge? You may need to\n reset the browser settings\n (note: not just clearing cache or cookies).\n
    \n
    \n */\n {\n \"id\": \"Ql0Es9cx\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"attachments-content \\\",[52,[30,1],\\\"minimized\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-header minimized\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"minimize-tooltip\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"minimize-text\\\"],[12],[1,\\\"Click “expand” to return to the full-sized version.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"maximize\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"args\\\",\\\"maximize\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-expand-alt\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Expand\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-title\\\"],[12],[1,\\\"Record an audio message\\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"minimize\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"args\\\",\\\"minimize\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-compress-alt\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Minimize Recorder\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[51,[30,1]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-echo-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-setting\\\"],[12],[1,\\\"\\\\n Echo Cancellation\\\\n \\\"],[8,[39,6],null,[[\\\"@action\\\",\\\"@initialState\\\"],[[30,0,[\\\"toggleEchoCancellation\\\"]],[30,0,[\\\"echoCancellation\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-tip-text\\\"],[12],[1,\\\"\\\\n Echo cancellation helps remove the echo effect when recording audio. This can improve the\\\\n audio quality in noisy environments, but it’s not recommended for general use because it\\\\n also tends to remove instrumental background audio.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"recordedAudio\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-audio-player-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,7],null,[[\\\"@source\\\",\\\"@isVideo\\\"],[[30,0,[\\\"generatedUrl\\\"]],false]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"showEraseConfirmation\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-submit-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[15,6,[29,[[30,0,[\\\"generatedUrl\\\"]]]]],[14,\\\"download\\\",\\\"\\\"],[14,0,\\\"download-attachment\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"btn\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-download\\\"],[12],[13],[1,\\\"Download\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"attachToPost\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[12],[13],[1,\\\"Attach to post\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"reRecord\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-undo\\\"],[12],[13],[1,\\\"Re-record\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"confirmation-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Are you sure? This will erase your previous recording.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"confirmation-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"cancelErase\\\"]]],null],[12],[1,\\\"No, go back\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"reInitialize\\\"]]],null],[12],[1,\\\"Yes, start over\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"currentlyRecordingAudio\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-audio-recorder recording\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-recording-counter\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"rec\\\"],[12],[1,\\\"REC\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[30,0,[\\\"timeRecorded\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"stopRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-square\\\"],[12],[13],[1,\\\"Stop\\\\n Recording\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-audio-recorder\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"startRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-circle\\\"],[12],[13],[1,\\\"Start recording\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"upload-help-text\\\"],[12],[1,\\\"\\\\n Having trouble uploading files in Chrome or Edge? You may need to\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/help/2599752\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"reset the browser settings\\\"],[13],[1,\\\"\\\\n (note: not just clearing cache or cookies).\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@minimized\\\"],[\\\"div\\\",\\\"if\\\",\\\"span\\\",\\\"i\\\",\\\"on\\\",\\\"unless\\\",\\\"inputs/toggle-switch\\\",\\\"av-player\\\",\\\"a\\\",\\\"button\\\"]]\",\n \"moduleName\": \"bocce/components/modals/attachments/attachments-record-audio.hbs\",\n \"isStrictMode\": false\n });\n var ModalsAttachmentsAttachmentsRecordAudioComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ModalsAttachmentsAttachmentsRecordAudioComponent(owner, args) {\n var _this;\n _classCallCheck(this, ModalsAttachmentsAttachmentsRecordAudioComponent);\n _this = _callSuper(this, ModalsAttachmentsAttachmentsRecordAudioComponent, [owner, args]);\n _initializerDefineProperty(_this, \"recordedAudio\", _descriptor, _this);\n _initializerDefineProperty(_this, \"currentlyRecordingAudio\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"timeRecorded\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"echoCancellation\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"showEraseConfirmation\", _descriptor5, _this);\n _defineProperty(_this, \"recorder\", void 0);\n _this.echoCancellation = localStorage.getItem(\"bocceEchoCancellation\") === \"true\" || false;\n _this.reInitialize();\n return _this;\n }\n _inherits(ModalsAttachmentsAttachmentsRecordAudioComponent, _Component);\n return _createClass(ModalsAttachmentsAttachmentsRecordAudioComponent, [{\n key: \"generatedUrl\",\n get: function get() {\n if (!this.recordedAudio) {\n return \"placeholder\";\n } else if (!this.recordedAudio.url) {\n return URL.createObjectURL(this.recordedAudio);\n }\n\n // Grab Kaltura thumbnail\n var url = this.recordedAudio.url;\n var kaltura = url.split(\"https://cdnapisec.kaltura.com/p/2588802/sp/258880200/playManifest/entryId/\");\n if (kaltura.length > 1) {\n kaltura = kaltura[1].split(\"/format/url/protocol/https/flavorParamId/4128/name/course_video.mp4\");\n var thumbnailUrl = \"https://cdnsecakmi.kaltura.com/p/2588802/thumbnail/entry_id/\" + kaltura[0] + \"/width/250\";\n return thumbnailUrl;\n }\n return url;\n }\n }, {\n key: \"startUserMedia\",\n value: function startUserMedia(stream) {\n this.recorder = new _shared.Recorder(stream);\n console.debug(\"Recorder initialised.\");\n }\n }, {\n key: \"startRecording\",\n value: function () {\n var _startRecording = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var _this2 = this;\n var constraints;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n constraints = {\n audio: true\n };\n if (this.echoCancellation) {\n constraints.audio = {\n echoCancellation: false,\n mozAutoGainControl: false,\n mozNoiseSuppression: false,\n googEchoCancellation: false,\n googAutoGainControl: false,\n googNoiseSuppression: false,\n googHighpassFilter: false\n };\n }\n navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {\n _this2.currentlyRecordingAudio = true;\n _this2.startUserMedia(stream);\n _this2.recorder.record(function (time) {\n _this2.timeRecorded = time;\n });\n }).catch(function (error) {\n console.debug(\"No live audio input: \" + error);\n });\n case 1:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function startRecording() {\n return _startRecording.apply(this, arguments);\n }\n return startRecording;\n }()\n }, {\n key: \"stopRecording\",\n value: function stopRecording() {\n var _this3 = this;\n var rec = this.recorder.stop();\n if (rec) {\n // create MP3 download link using audio data blob\n this.recorder.exportMP3(function (blob, mp3Name) {\n // this.args.controller.send('addValidFile', file); todo maybe dont need this?\n _this3.recordedAudio = new File([blob], mp3Name, {\n type: \"audio/mpeg3\"\n });\n }, this);\n this.currentlyRecordingAudio = false;\n }\n }\n }, {\n key: \"attachToPost\",\n value: function attachToPost() {\n if (this.recordedAudio) {\n this.args.addFile(this.recordedAudio);\n this.args.closeModal();\n }\n }\n }, {\n key: \"reRecord\",\n value: function reRecord() {\n this.showEraseConfirmation = true;\n }\n }, {\n key: \"toggleEchoCancellation\",\n value: function toggleEchoCancellation() {\n this.echoCancellation = !this.echoCancellation;\n localStorage.setItem(\"echoCancellation\", this.echoCancellation);\n }\n }, {\n key: \"reInitialize\",\n value: function reInitialize() {\n this.recordedAudio = undefined;\n this.currentlyRecordingAudio = false;\n this.showEraseConfirmation = false;\n this.timeRecorded = \"0:00\";\n this.recorder = undefined;\n }\n }, {\n key: \"cancelErase\",\n value: function cancelErase() {\n this.showEraseConfirmation = false;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"recordedAudio\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currentlyRecordingAudio\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"timeRecorded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"echoCancellation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showEraseConfirmation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"startRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attachToPost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attachToPost\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reRecord\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"reRecord\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleEchoCancellation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleEchoCancellation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reInitialize\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"reInitialize\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelErase\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelErase\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ModalsAttachmentsAttachmentsRecordAudioComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/modals/attachments/attachments-record-video\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/debug\", \"@glimmer/tracking\", \"moment\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _debug, _tracking, _moment, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@glimmer/tracking\",0,\"moment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if @minimized}}\n
    \n \n \n Click “expand” to return to the full-sized version.\n \n
    \n \n Expand\n
    \n
    \n {{else}}\n
    \n
    Record a video message
    \n
    \n \n Minimize Recorder\n
    \n
    \n {{/if}}\n {{#if this.useCameraTag}}\n \n {{#if showLoadingWheel}}\n Downloading video...\n {{/if}}\n {{else}}\n {{#unless @minimized}}\n
    \n
    \n \n
    \n
    We recommend using SD quality if you have a slower\n internet connection.
    \n
    \n {{/unless}}\n
    \n {{#if this.blobUrl}}\n \n {{#unless this.showEraseConfirmation}}\n
    \n \n \n \n \n \n
    \n {{else}}\n
    \n
    Are you sure? This will erase your previous recording.
    \n
    \n \n \n
    \n
    \n {{/unless}}\n {{else}}\n
    \n {{#if this.showLoadingWheel}}\n \n {{/if}}\n \n \n
    \n {{#if this.recordingVideo}}\n
    \n
    \n REC\n {{this.recordingCurrentTime}}\n
    \n \n
    \n {{else}}\n
    \n \n
    \n {{/if}}\n {{/if}}\n
    \n {{#unless @minimized}}\n
    \n {{#unless this.expandedSettings}}\n
    \n View additional settings\n \n
    \n {{else}}\n \n Collapse settings\n \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n Echo Cancellation\n \n
    \n
    \n Echo cancellation helps remove the echo effect when recording audio. This can\n improve the audio quality in noisy environments, but it’s not recommended for\n general use because it also tends to remove instrumental background audio.\n
    \n
    \n
    \n {{/unless}}\n
    \n {{/unless}}\n {{/if}}\n
    \n Having trouble uploading files in Chrome or Edge? You may need to\n reset the browser settings\n (note: not just clearing cache or cookies).\n
    \n \n */\n {\n \"id\": \"UO45PzcH\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"attachments-content \\\",[52,[30,1],\\\"minimized\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-header minimized\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"minimize-tooltip\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-info-circle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"minimize-text\\\"],[12],[1,\\\"Click “expand” to return to the full-sized version.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"maximize\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"args\\\",\\\"maximize\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-expand-alt\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Expand\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-title\\\"],[12],[1,\\\"Record a video message\\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"minimize\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"args\\\",\\\"minimize\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-compress-alt\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Minimize Recorder\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"useCameraTag\\\"]],[[[1,\\\" \\\"],[10,\\\"camera\\\"],[14,\\\"data-app-id\\\",\\\"a-876a8720-5987-0133-7945-22000b789ce2\\\"],[14,1,\\\"recorderAtt\\\"],[14,\\\"data-mirror-recording\\\",\\\"false\\\"],[14,\\\"data-poll-for-processed\\\",\\\"true\\\"],[14,\\\"data-maxlength\\\",\\\"3000000000\\\"],[14,0,\\\"camera-tag\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[31,6],[[[1,\\\" \\\"],[10,\\\"i\\\"],[12],[1,\\\"Downloading video...\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[51,[30,1]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quality-selector\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n Quality:\\\\n \\\"],[11,\\\"select\\\"],[4,[38,4],[\\\"change\\\",[30,0,[\\\"changeVideoQuality\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"aria-label\\\",\\\"Record the video in SD (DVD quality) resolution\\\"],[14,2,\\\"sd\\\"],[12],[1,\\\"Standard (SD)\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"Record the video in 720p resolution\\\"],[14,2,\\\"hd\\\"],[12],[1,\\\"High (HD)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-tip-text\\\"],[12],[1,\\\"We recommend using SD quality if you have a slower\\\\n internet connection.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"video-playback-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"blobUrl\\\"]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@source\\\",\\\"@isVideo\\\"],[[30,0,[\\\"blobUrl\\\"]],true]],null],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"showEraseConfirmation\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"video-playback-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[15,6,[29,[[30,0,[\\\"blobUrl\\\"]]]]],[14,\\\"download\\\",\\\"\\\"],[14,0,\\\"download-attachment\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"btn\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-download\\\"],[12],[13],[1,\\\"Download\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"attachToPost\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[12],[13],[1,\\\"Attach to post\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"showConfirmation\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-undo\\\"],[12],[13],[1,\\\"Re-record\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"confirmation-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Are you sure? This will erase your previous recording.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"confirmation-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"cancelErase\\\"]]],null],[12],[1,\\\"No, go back\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"reRecord\\\"]]],null],[12],[1,\\\"Yes, start over\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"video-spinner-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showLoadingWheel\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"video\\\"],[24,\\\"autoplay\\\",\\\"\\\"],[24,\\\"muted\\\",\\\"\\\"],[24,1,\\\"attachment-video-playback\\\"],[4,[38,4],[\\\"canplay\\\",[30,0,[\\\"hideLoadingWheel\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"recordingVideo\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"video-playback-controls recording\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-recording-counter\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"rec\\\"],[12],[1,\\\"REC\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[30,0,[\\\"recordingCurrentTime\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"stopRecording\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-circle\\\"],[12],[13],[1,\\\"Stop Recording\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"video-playback-controls\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"startRecording\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-circle\\\"],[12],[13],[1,\\\"Start Recording\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"attachments-video-settings\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"expandedSettings\\\"]]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"attachments-expand-settings\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleAdditionalSettings\\\"]]],null],[12],[1,\\\"\\\\n View additional settings\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"attachments-expand-settings collapse\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"toggleAdditionalSettings\\\"]]],null],[12],[1,\\\"\\\\n Collapse settings\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-up\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-settings-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-setting\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n Video Source:\\\\n \\\"],[11,\\\"select\\\"],[4,[38,4],[\\\"change\\\",[30,0,[\\\"chooseVideoSource\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"videoSources\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[30,2,[\\\"deviceId\\\"]]],[15,\\\"selected\\\",[52,[28,[37,17],[[30,2,[\\\"deviceId\\\"]],[30,0,[\\\"videoInputId\\\"]]],null],\\\"selected\\\",[27]]],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,2,[\\\"label\\\"]],[30,2,[\\\"label\\\"]],[28,[37,18],[\\\"Camera \\\",[28,[37,19],[[30,3],1],null]],null]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-setting\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n Audio Source:\\\\n \\\"],[11,\\\"select\\\"],[4,[38,4],[\\\"change\\\",[30,0,[\\\"chooseAudioSource\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"audioSources\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[30,4,[\\\"deviceId\\\"]]],[15,\\\"selected\\\",[52,[28,[37,17],[[30,4,[\\\"deviceId\\\"]],[30,0,[\\\"audioInputId\\\"]]],null],\\\"selected\\\",[27]]],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,4,[\\\"label\\\"]],[30,4,[\\\"label\\\"]],[28,[37,18],[\\\"Microphone \\\",[28,[37,19],[[30,5],1],null]],null]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-echo-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-setting\\\"],[12],[1,\\\"\\\\n Echo Cancellation\\\\n \\\"],[8,[39,20],null,[[\\\"@action\\\",\\\"@initialState\\\"],[[30,0,[\\\"toggleEchoCancellation\\\"]],[30,0,[\\\"echoCancellation\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachments-tip-text\\\"],[12],[1,\\\"\\\\n Echo cancellation helps remove the echo effect when recording audio. This can\\\\n improve the audio quality in noisy environments, but it’s not recommended for\\\\n general use because it also tends to remove instrumental background audio.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"upload-help-text\\\"],[12],[1,\\\"\\\\n Having trouble uploading files in Chrome or Edge? You may need to\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/help/2599752\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"reset the browser settings\\\"],[13],[1,\\\"\\\\n (note: not just clearing cache or cookies).\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@minimized\\\",\\\"videoSource\\\",\\\"index\\\",\\\"audioSource\\\",\\\"index\\\"],[\\\"div\\\",\\\"if\\\",\\\"span\\\",\\\"i\\\",\\\"on\\\",\\\"camera\\\",\\\"showLoadingWheel\\\",\\\"unless\\\",\\\"label\\\",\\\"select\\\",\\\"option\\\",\\\"av-player\\\",\\\"a\\\",\\\"button\\\",\\\"video\\\",\\\"each\\\",\\\"-track-array\\\",\\\"same\\\",\\\"concat\\\",\\\"sum\\\",\\\"inputs/toggle-switch\\\"]]\",\n \"moduleName\": \"bocce/components/modals/attachments/attachments-record-video.hbs\",\n \"isStrictMode\": false\n });\n /* global MediaStreamRecorder getSeekableBlob*/\n var ModalsAttachmentsAttachmentsRecordVideoComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ModalsAttachmentsAttachmentsRecordVideoComponent(owner, args) {\n var _this;\n _classCallCheck(this, ModalsAttachmentsAttachmentsRecordVideoComponent);\n _this = _callSuper(this, ModalsAttachmentsAttachmentsRecordVideoComponent, [owner, args]);\n // UI switches\n _initializerDefineProperty(_this, \"expandedSettings\", _descriptor, _this);\n _initializerDefineProperty(_this, \"recordingVideo\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"showEraseConfirmation\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"showLoadingWheel\", _descriptor4, _this);\n // video settings\n _initializerDefineProperty(_this, \"videoSources\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"audioSources\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"quality\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"audioInputId\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"videoInputId\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"echoCancellation\", _descriptor0, _this);\n // recording\n _initializerDefineProperty(_this, \"recordingStartTime\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"recordingCurrentTime\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"blobUrl\", _descriptor11, _this);\n _defineProperty(_this, \"stream\", void 0);\n _defineProperty(_this, \"recorder\", void 0);\n _defineProperty(_this, \"timeInterval\", void 0);\n _defineProperty(_this, \"recordedVideo\", void 0);\n _this.expandedSettings = false;\n _this.quality = \"sd\";\n _this.echoCancellation = localStorage.getItem(\"bocceEchoCancellation\") === \"true\" || false;\n _this.recordingVideo = false;\n _this.recordingCurrentTime = \"00:00\";\n if (_this.useCameraTag) {\n _this.setupCameraTag();\n } else {\n _this.startPreview();\n }\n return _this;\n }\n _inherits(ModalsAttachmentsAttachmentsRecordVideoComponent, _Component);\n return _createClass(ModalsAttachmentsAttachmentsRecordVideoComponent, [{\n key: \"useCameraTag\",\n get: function get() {\n return $.isSafari;\n }\n }, {\n key: \"startPreview\",\n value: function startPreview() {\n var _this2 = this;\n this.showLoadingWheel = true;\n var vidSettings = {};\n var audioSettings = {};\n if (this.videoInputId) {\n vidSettings = {\n deviceId: this.videoInputId\n };\n }\n if (this.audioInputId) {\n audioSettings = {\n deviceId: this.audioInputId\n };\n }\n if (this.quality === \"hd\") {\n vidSettings = _objectSpread(_objectSpread({}, vidSettings), {}, {\n width: {\n min: 1280\n },\n height: {\n min: 720\n }\n });\n }\n // If false, set the audio settings to echoCancellation: false\n // Echo cancellation is set to true by default\n if (!this.echoCancellation) {\n audioSettings = _objectSpread(_objectSpread({}, audioSettings), {}, {\n echoCancellation: false,\n mozAutoGainControl: false,\n mozNoiseSuppression: false,\n googEchoCancellation: false,\n googAutoGainControl: false,\n googNoiseSuppression: false,\n googHighpassFilter: false\n });\n }\n\n // if any streams are currently running, stop them\n if (this.stream) {\n this.stream.getTracks().forEach(function (track) {\n return track.stop();\n });\n }\n navigator.mediaDevices.getUserMedia({\n audio: audioSettings,\n video: vidSettings\n }).then(function (stream) {\n navigator.mediaDevices.enumerateDevices().then(function (deviceInfos) {\n _this2.videoSources = deviceInfos.filter(function (deviceInfo) {\n return deviceInfo.kind === \"videoinput\";\n });\n _this2.audioSources = deviceInfos.filter(function (deviceInfo) {\n return deviceInfo.kind === \"audioinput\";\n });\n });\n var video = document.querySelector(\"#attachment-video-playback\");\n video.volume = 0;\n video.srcObject = stream;\n var fileType = $.isSafari ? \"video/mp4\" : \"video/webm\";\n _this2.recorder = new MediaStreamRecorder(stream, {\n mimeType: fileType\n });\n _this2.stream = stream;\n }).catch(function (error) {\n console.log(error);\n });\n }\n }, {\n key: \"setupCameraTag\",\n value: function setupCameraTag() {\n var _this3 = this;\n setTimeout(function () {\n return window.CameraTag.setup();\n }, 500);\n window.CameraTag.observe(\"recorderAtt\", \"published\", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var myCamera, myVideo, mp4_url, model_title, name, myVid, cas, response, blob, file;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n myCamera = window.CameraTag.cameras[\"recorderAtt\"], myVideo = myCamera.getVideo(), mp4_url = myVideo.medias.vga_mp4, model_title = _this3.args.title, name = model_title.toLowerCase().replace(/ /g, \"-\").replace(/[^\\w-]+/g, \"\") + \"_video_\" + new Date().getTime(), myVid = {\n isUrl: true,\n name: name,\n url: mp4_url,\n type: \"video/mp4\"\n };\n if (!mp4_url) {\n _context.n = 4;\n break;\n }\n myCamera.reset();\n // Add video to archive\n if (localStorage.localArchive) {\n cas = JSON.parse(localStorage.localArchive);\n } else {\n cas = {};\n }\n cas[myVid.name] = myVid;\n localStorage.localArchive = JSON.stringify(cas);\n _this3.showLoadingWheel = true;\n _context.n = 1;\n return new Promise(function (res) {\n return setTimeout(res, 3750);\n });\n case 1:\n _context.n = 2;\n return fetch(\"https:\" + myVid.url);\n case 2:\n response = _context.v;\n _context.n = 3;\n return response.blob();\n case 3:\n blob = _context.v;\n file = new File([blob], myVid.name, {\n type: myVid.type\n }); // Turn Blob into a File\n _this3.args.addFile(file);\n _this3.showLoadingWheel = false;\n _this3.args.closeModal();\n case 4:\n return _context.a(2);\n }\n }, _callee);\n })), true);\n }\n }, {\n key: \"toggleAdditionalSettings\",\n value: function toggleAdditionalSettings() {\n this.expandedSettings = !this.expandedSettings;\n }\n }, {\n key: \"changeVideoQuality\",\n value: function changeVideoQuality(event) {\n this.quality = event.target.value;\n this.startPreview();\n }\n }, {\n key: \"chooseAudioSource\",\n value: function chooseAudioSource(event) {\n this.audioInputId = event.target.value;\n this.startPreview();\n }\n }, {\n key: \"chooseVideoSource\",\n value: function chooseVideoSource(event) {\n this.videoInputId = event.target.value;\n this.startPreview();\n }\n }, {\n key: \"toggleEchoCancellation\",\n value: function toggleEchoCancellation() {\n this.echoCancellation = !this.echoCancellation;\n localStorage.setItem(\"bocceEchoCancellation\", this.echoCancellation);\n this.startPreview();\n }\n }, {\n key: \"startRecording\",\n value: function startRecording() {\n this.recorder.record();\n this.recordingVideo = true;\n this.startTimer();\n }\n }, {\n key: \"startTimer\",\n value: function startTimer() {\n var _this4 = this;\n this.recordingStartTime = (0, _moment.default)().unix();\n this.timeInterval = setInterval(function () {\n var timeCalc = (0, _moment.default)().unix() - _this4.recordingStartTime;\n _this4.recordingCurrentTime = (0, _moment.default)(timeCalc * 1000).format(\"mm:ss\");\n }, 1000);\n }\n }, {\n key: \"stopRecording\",\n value: function stopRecording() {\n var _this5 = this;\n clearInterval(this.timeInterval);\n this.recorder.stop(function (blob) {\n try {\n getSeekableBlob(blob, function (seekableBlob) {\n if (!seekableBlob) {\n console.error(\"Could not create seekable blob, creating non-seekable blob instead\");\n blob = blob.slice(0, blob.size, \"video/webm\");\n _this5.blobUrl = URL.createObjectURL(blob);\n _this5.recordedVideo = blob;\n return;\n }\n // Forcibly assign webm mimetype to blob\n seekableBlob = seekableBlob.slice(0, blob.size, \"video/webm\");\n _this5.blobUrl = URL.createObjectURL(seekableBlob);\n _this5.recordedVideo = seekableBlob;\n });\n } catch (e) {\n console.error(\"Could not create seekable blob because: \", e, \"Creating non-seekable blob instead\");\n blob = blob.slice(0, blob.size, \"video/webm\");\n _this5.blobUrl = URL.createObjectURL(blob);\n _this5.recordedVideo = blob;\n }\n _this5.stream.stop();\n _this5.recorder.clearRecordedData();\n });\n }\n }, {\n key: \"attachToPost\",\n value: function attachToPost() {\n if (this.blobUrl) {\n this.args.addFile(this.recordedVideo);\n this.args.closeModal();\n }\n }\n }, {\n key: \"showConfirmation\",\n value: function showConfirmation() {\n this.showEraseConfirmation = true;\n }\n }, {\n key: \"cancelErase\",\n value: function cancelErase() {\n this.showEraseConfirmation = false;\n }\n }, {\n key: \"reRecord\",\n value: function reRecord() {\n this.recordingVideo = false;\n this.showEraseConfirmation = false;\n this.recordingCurrentTime = \"00:00\";\n this.blobUrl = undefined;\n this.stream = undefined;\n this.recorder.clearRecordedData();\n this.startPreview();\n }\n }, {\n key: \"hideLoadingWheel\",\n value: function hideLoadingWheel() {\n this.showLoadingWheel = false;\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n var _this6 = this;\n _superPropGet(ModalsAttachmentsAttachmentsRecordVideoComponent, \"willDestroy\", this, 3)([]);\n if (this.recorder) {\n this.recorder.stop(function () {\n _this6.recorder.clearRecordedData();\n });\n }\n if (this.stream) {\n this.stream.stop();\n }\n if (this.timeInterval) {\n clearInterval(this.timeInterval);\n }\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"expandedSettings\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"recordingVideo\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showEraseConfirmation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showLoadingWheel\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"videoSources\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"audioSources\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"quality\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"audioInputId\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"videoInputId\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"echoCancellation\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"recordingStartTime\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"recordingCurrentTime\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"blobUrl\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleAdditionalSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleAdditionalSettings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeVideoQuality\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeVideoQuality\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseAudioSource\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseAudioSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseVideoSource\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseVideoSource\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleEchoCancellation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleEchoCancellation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"stopRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"stopRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attachToPost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attachToPost\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showConfirmation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showConfirmation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelErase\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelErase\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reRecord\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"reRecord\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hideLoadingWheel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"hideLoadingWheel\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ModalsAttachmentsAttachmentsRecordVideoComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/modals/attachments/attachments-upload-file\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n

    \n Upload a file from your computer\n

    \n {{#if this.hasUploaded}}\n
    \n {{#each this.uploadedFiles as |file|}}\n
    \n \n {{file.name}}\n
    \n {{/each}}\n
    \n
    \n \n \n
    \n {{else}}\n \n \n {{/if}}\n
    \n Having trouble uploading files in Chrome or Edge? You may need to\n reset the browser settings\n (note: not just clearing cache or cookies).\n
    \n
    \n */\n {\n \"id\": \"e0QaObDt\",\n \"block\": \"[[[10,0],[14,0,\\\"attachments-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,0,\\\"attachments-title\\\"],[12],[1,\\\"\\\\n Upload a file from your computer\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasUploaded\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"uploaded-attachments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"uploadedFiles\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"file-attach-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"uploadMoreFiles\\\"]]],null],[12],[1,\\\"Upload more files\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"attachToPost\\\"]]],null],[12],[1,\\\"Attach to post\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"input\\\"],[24,1,\\\"attachment-input\\\"],[24,\\\"multiple\\\",\\\"\\\"],[24,4,\\\"file\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"uploadFile\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"file-uploader\\\"],[14,\\\"for\\\",\\\"attachment-input\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"upload-icon-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-upload\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"browse-files-text\\\"],[12],[10,1],[14,0,\\\"text-red\\\"],[12],[1,\\\"Click\\\"],[13],[1,\\\" to browse for files\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"upload-help-text\\\"],[12],[1,\\\"\\\\n Having trouble uploading files in Chrome or Edge? You may need to\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/help/2599752\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[1,\\\"reset the browser settings\\\"],[13],[1,\\\"\\\\n (note: not just clearing cache or cookies).\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"file\\\"],[\\\"div\\\",\\\"h1\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"i\\\",\\\"button\\\",\\\"on\\\",\\\"input\\\",\\\"label\\\",\\\"span\\\",\\\"a\\\"]]\",\n \"moduleName\": \"bocce/components/modals/attachments/attachments-upload-file.hbs\",\n \"isStrictMode\": false\n });\n var ModalsAttachmentsAttachmentsUploadFileComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ModalsAttachmentsAttachmentsUploadFileComponent(owner, args) {\n var _this;\n _classCallCheck(this, ModalsAttachmentsAttachmentsUploadFileComponent);\n _this = _callSuper(this, ModalsAttachmentsAttachmentsUploadFileComponent, [owner, args]);\n _initializerDefineProperty(_this, \"uploadedFiles\", _descriptor, _this);\n _initializerDefineProperty(_this, \"hasUploaded\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"accessibility\", _descriptor3, _this);\n _this.uploadedFiles = [];\n _this.hasUploaded = false;\n return _this;\n }\n _inherits(ModalsAttachmentsAttachmentsUploadFileComponent, _Component);\n return _createClass(ModalsAttachmentsAttachmentsUploadFileComponent, [{\n key: \"uploadFile\",\n value: function uploadFile(event) {\n this.hasUploaded = true;\n this.uploadedFiles = [].concat(_toConsumableArray(this.uploadedFiles), _toConsumableArray(event.target.files));\n this.accessibility.focus(\".attachments-modal .file-attach-buttons\", false, false, 500);\n }\n }, {\n key: \"uploadMoreFiles\",\n value: function uploadMoreFiles() {\n this.hasUploaded = false;\n }\n }, {\n key: \"attachToPost\",\n value: function attachToPost() {\n var _this2 = this;\n this.uploadedFiles.forEach(function (file) {\n _this2.args.addFile(file);\n });\n this.uploadedFiles = [];\n this.hasUploaded = false;\n this.args.closeModal();\n this.accessibility.focus(\".attachments-list-container\", false, false, 500);\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _superPropGet(ModalsAttachmentsAttachmentsUploadFileComponent, \"willDestroy\", this, 3)([]);\n this.uploadedFiles = [];\n this.hasUploaded = false;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"uploadedFiles\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasUploaded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"accessibility\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"uploadFile\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"uploadFile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"uploadMoreFiles\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"uploadMoreFiles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attachToPost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attachToPost\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ModalsAttachmentsAttachmentsUploadFileComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/modals/confirm-dialog-host\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"@ember/helper\", \"bocce/components/modals/confirm-dialog\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _helper, _confirmDialog, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _ConfirmDialogHost;\n /**\n * Renders any active dialogs queued on the `confirm-dialog` service.\n * Drop a single instance into `application.hbs`. Programmatic callers\n * use `this.confirmDialog.show(...)` to enqueue dialogs.\n */\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/helper\",0,\"bocce/components/modals/confirm-dialog\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ConfirmDialogHost = _exports.default = (_class = (_ConfirmDialogHost = /*#__PURE__*/function (_Component) {\n function ConfirmDialogHost() {\n var _this;\n _classCallCheck(this, ConfirmDialogHost);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ConfirmDialogHost, [].concat(args));\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n _defineProperty(_this, \"onChoice\", function (dialog, value) {\n _this.confirmDialog.close(dialog.id, value);\n });\n return _this;\n }\n _inherits(ConfirmDialogHost, _Component);\n return _createClass(ConfirmDialogHost);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#each this.confirmDialog.dialogs key=\"id\" as |dialog|}}\n \n {{/each}}\n */\n {\n \"id\": \"Yc5KoiBu\",\n \"block\": \"[[[42,[28,[31,1],[[28,[31,1],[[30,0,[\\\"confirmDialog\\\",\\\"dialogs\\\"]]],null]],null],\\\"id\\\",[[[1,\\\" \\\"],[8,[32,0],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@body\\\",\\\"@choices\\\",\\\"@inputType\\\",\\\"@defaultInput\\\",\\\"@checkboxOptions\\\",\\\"@layout\\\",\\\"@additionalClasses\\\",\\\"@onChoice\\\"],[[30,1,[\\\"title\\\"]],[30,1,[\\\"subtitle\\\"]],[30,1,[\\\"body\\\"]],[30,1,[\\\"choices\\\"]],[30,1,[\\\"inputType\\\"]],[30,1,[\\\"defaultInput\\\"]],[30,1,[\\\"checkboxOptions\\\"]],[30,1,[\\\"layout\\\"]],[30,1,[\\\"additionalClasses\\\"]],[28,[32,1],[[30,0,[\\\"onChoice\\\"]],[30,1]],null]]],null],[1,\\\"\\\\n\\\"]],[1]],null]],[\\\"dialog\\\"],[\\\"each\\\",\\\"-track-array\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/modals/confirm-dialog-host.js\",\n \"scope\": function scope() {\n return [_confirmDialog.default, _helper.fn];\n },\n \"isStrictMode\": true\n }), _ConfirmDialogHost), _ConfirmDialogHost), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/modals/confirm-dialog\", [\"exports\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/helper\", \"@ember/component/helper\", \"@ember/template\", \"@ember/modifier\", \"ember-modifier\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _service, _helper, _helper2, _template, _modifier, _emberModifier, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _ConfirmDialog;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/helper\",0,\"@ember/helper\",0,\"@ember/component/helper\",0,\"@ember/template\",0,\"@ember/modifier\",0,\"ember-modifier\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n var eq = (0, _helper2.helper)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n a = _ref2[0],\n b = _ref2[1];\n return a === b;\n });\n var safe = (0, _helper2.helper)(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 1),\n s = _ref4[0];\n return (0, _template.htmlSafe)(s !== null && s !== void 0 ? s : \"\");\n });\n /**\n * Wires up dialog focus management against the accessibility service: trap\n * Tab/Escape, focus an initial element, and restore focus to the caller's\n * trigger when the dialog tears down.\n */\n var dialogA11y = (0, _emberModifier.modifier)(function (element, _positional, _ref5) {\n var accessibility = _ref5.accessibility,\n onEscape = _ref5.onEscape,\n initialFocusSelector = _ref5.initialFocusSelector;\n accessibility.rememberFocus();\n var initialFocus = initialFocusSelector ? element.querySelector(initialFocusSelector) : null;\n var release = accessibility.trapFocus(element, {\n onEscape: onEscape,\n initialFocus: initialFocus\n });\n return function () {\n release === null || release === void 0 || release();\n accessibility.restoreFocus();\n };\n });\n var nextDialogId = 0;\n /**\n * ConfirmDialog\n *\n * Two usage modes:\n *\n * 1. Template-driven (caller builds buttons explicitly):\n *\n * \n *\n * 2. Choices-driven (used by the confirm-dialog service for programmatic calls):\n *\n * \n *\n * First choice renders as primary, the rest as neutral. `@onChoice` is called\n * with the input value (for textarea/datetime), array of checked values (for\n * checkbox), or the clicked button label (for inputType \"none\").\n *\n * Accessibility: rendered with role=\"dialog\" / aria-modal, labelled by the\n * title and described by the subtitle. On open, focus is captured and moved\n * inside the dialog (the input if there is one, otherwise the primary\n * button). Tab is trapped inside the dialog, Escape dismisses it, and focus\n * is restored to the trigger element when it closes.\n *\n * @arg {string} [title] Header title\n * @arg {string} [subtitle] Header subtitle / message\n * @arg {string} [body] Optional HTML body content (rendered with htmlSafe)\n * @arg {Array} [buttons] Explicit button configs: { label, onClick, style }\n * @arg {string[]} [choices] Button labels (first = primary). Used when @buttons is not provided.\n * @arg {Function} [onChoice] Callback for choices-driven mode.\n * @arg {\"none\"|\"textarea\"|\"datetime\"|\"checkbox\"} [inputType=\"none\"]\n * @arg {string} [defaultInput] Initial value for textarea/datetime inputs.\n * @arg {Array} [checkboxOptions] [{label, value, checked}] for checkbox mode.\n * @arg {string} [layout=\"vertical\"]\n * @arg {string[]} [additionalClasses] Extra classes added to the dialog container.\n * @arg {Function} [onDismiss] Called when the overlay is clicked or Escape is pressed.\n */\n var ConfirmDialog = _exports.default = (_class = (_ConfirmDialog = /*#__PURE__*/function (_Component) {\n function ConfirmDialog() {\n var _this$args$defaultInp, _this$args$defaultInp2;\n var _this;\n _classCallCheck(this, ConfirmDialog);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ConfirmDialog, [].concat(args));\n _initializerDefineProperty(_this, \"accessibility\", _descriptor, _this);\n // Untracked: only used as the textarea/input initial value at render time.\n // Live value is read from the DOM via the input event.\n _defineProperty(_this, \"initialInput\", (_this$args$defaultInp = _this.args.defaultInput) !== null && _this$args$defaultInp !== void 0 ? _this$args$defaultInp : \"\");\n _defineProperty(_this, \"inputValue\", (_this$args$defaultInp2 = _this.args.defaultInput) !== null && _this$args$defaultInp2 !== void 0 ? _this$args$defaultInp2 : \"\");\n _initializerDefineProperty(_this, \"checkboxStates\", _descriptor2, _this);\n _defineProperty(_this, \"dialogId\", \"confirm-dialog-\".concat(++nextDialogId));\n /**\n * Triggered by overlay click and by the Escape key. Prefer the caller's\n * explicit `onDismiss`; otherwise simulate clicking the last (conventionally\n * cancelling) button so the dialog still resolves and unmounts.\n */\n _defineProperty(_this, \"handleOverlayClick\", function () {\n var _fallback$onClick;\n if (_this.args.onDismiss) {\n _this.args.onDismiss();\n return;\n }\n var buttons = _this.buttons;\n if (buttons.length === 0) return;\n var fallback = buttons.length > 1 ? buttons[buttons.length - 1] : buttons[0];\n (_fallback$onClick = fallback.onClick) === null || _fallback$onClick === void 0 || _fallback$onClick.call(fallback);\n });\n _defineProperty(_this, \"stopPropagation\", function (e) {\n e.stopPropagation();\n });\n return _this;\n }\n _inherits(ConfirmDialog, _Component);\n return _createClass(ConfirmDialog, [{\n key: \"layout\",\n get: function get() {\n var _this$args$layout;\n return (_this$args$layout = this.args.layout) !== null && _this$args$layout !== void 0 ? _this$args$layout : \"vertical\";\n }\n }, {\n key: \"inputType\",\n get: function get() {\n var _this$args$inputType;\n return (_this$args$inputType = this.args.inputType) !== null && _this$args$inputType !== void 0 ? _this$args$inputType : \"none\";\n }\n }, {\n key: \"containerClass\",\n get: function get() {\n return this.layout === \"horizontal\" ? \"confirm-dialog__actions--horizontal\" : \"confirm-dialog__actions--vertical\";\n }\n }, {\n key: \"dialogClass\",\n get: function get() {\n var _this$args$additional;\n var extras = (_this$args$additional = this.args.additionalClasses) !== null && _this$args$additional !== void 0 ? _this$args$additional : [];\n return [\"confirm-dialog\", this.inputType].concat(_toConsumableArray(extras)).filter(Boolean).join(\" \");\n }\n }, {\n key: \"buttons\",\n get: function get() {\n var _this$args$choices,\n _this2 = this;\n if (this.args.buttons) return this.args.buttons;\n var choices = (_this$args$choices = this.args.choices) !== null && _this$args$choices !== void 0 ? _this$args$choices : [];\n return choices.map(function (label, idx) {\n return {\n label: label,\n style: idx === 0 ? \"primary\" : \"neutral\",\n onClick: function onClick() {\n return _this2.handleChoice(label, idx);\n }\n };\n });\n }\n }, {\n key: \"portalTarget\",\n get: function get() {\n return document.body;\n }\n }, {\n key: \"titleId\",\n get: function get() {\n return this.args.title ? \"\".concat(this.dialogId, \"-title\") : undefined;\n }\n }, {\n key: \"descriptionId\",\n get: function get() {\n return this.args.subtitle ? \"\".concat(this.dialogId, \"-desc\") : undefined;\n }\n }, {\n key: \"setInputValue\",\n value: function setInputValue(e) {\n this.inputValue = e.target.value;\n }\n }, {\n key: \"setCheckbox\",\n value: function setCheckbox(index, e) {\n var next = _toConsumableArray(this.checkboxStates);\n next[index] = e.target.checked;\n this.checkboxStates = next;\n }\n }, {\n key: \"handleChoice\",\n value: function handleChoice(label, idx) {\n var _this3 = this;\n var onChoice = this.args.onChoice;\n if (!onChoice) return;\n var isFirst = idx === 0;\n var value;\n if (this.inputType === \"textarea\" || this.inputType === \"datetime\") {\n value = isFirst ? this.inputValue : false;\n } else if (this.inputType === \"checkbox\") {\n var _this$args$checkboxOp;\n value = isFirst ? ((_this$args$checkboxOp = this.args.checkboxOptions) !== null && _this$args$checkboxOp !== void 0 ? _this$args$checkboxOp : []).filter(function (_, i) {\n return _this3.checkboxStates[i];\n }).map(function (o) {\n return o.value;\n }) : false;\n } else {\n value = label;\n }\n onChoice(value);\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#in-element this.portalTarget insertBefore=null}}\n
    \n \n
    \n {{#if @title}}\n

    {{@title}}

    \n {{/if}}\n {{#if @subtitle}}\n

    {{{@subtitle}}}

    \n {{/if}}\n
    \n \n {{#if @body}}\n
    {{{safe @body}}}
    \n {{/if}}\n \n {{#if (eq this.inputType \"textarea\")}}\n {{this.initialInput}}\n {{else if (eq this.inputType \"datetime\")}}\n \n {{else if (eq this.inputType \"checkbox\")}}\n
      \n {{#each @checkboxOptions as |option index|}}\n
    • \n \n
    • \n {{/each}}\n
    \n {{/if}}\n \n
    \n {{#each this.buttons as |btn|}}\n \n {{btn.label}}\n \n {{/each}}\n
    \n
    \n \n {{/in-element}}\n */\n {\n \"id\": \"AsN/r/v8\",\n \"block\": \"[[[40,[[[1,\\\" \\\"],[11,0],[24,0,\\\"confirm-dialog-overlay\\\"],[4,[32,0],[\\\"click\\\",[30,0,[\\\"handleOverlayClick\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[11,0],[16,0,[30,0,[\\\"dialogClass\\\"]]],[24,\\\"role\\\",\\\"dialog\\\"],[24,\\\"aria-modal\\\",\\\"true\\\"],[16,\\\"aria-labelledby\\\",[30,0,[\\\"titleId\\\"]]],[16,\\\"aria-describedby\\\",[30,0,[\\\"descriptionId\\\"]]],[4,[32,0],[\\\"click\\\",[30,0,[\\\"stopPropagation\\\"]]],null],[4,[32,1],null,[[\\\"accessibility\\\",\\\"onEscape\\\",\\\"initialFocusSelector\\\"],[[30,0,[\\\"accessibility\\\"]],[30,0,[\\\"handleOverlayClick\\\"]],\\\".confirm-dialog__input, .confirm-dialog__btn--primary, .confirm-dialog__btn\\\"]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"confirm-dialog__header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"confirm-dialog__title\\\"],[15,1,[30,0,[\\\"titleId\\\"]]],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2],[[[1,\\\" \\\"],[10,2],[14,0,\\\"confirm-dialog__subtitle\\\"],[15,1,[30,0,[\\\"descriptionId\\\"]]],[12],[2,[30,2]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3],[[[1,\\\" \\\"],[10,0],[14,0,\\\"confirm-dialog__body\\\"],[12],[2,[28,[32,2],[[30,3]],null]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[32,3],[[30,0,[\\\"inputType\\\"]],\\\"textarea\\\"],null],[[[1,\\\" \\\"],[11,\\\"textarea\\\"],[24,0,\\\"confirm-dialog__input\\\"],[16,\\\"aria-label\\\",[52,[30,1],[30,1],\\\"Response\\\"]],[4,[32,0],[\\\"input\\\",[30,0,[\\\"setInputValue\\\"]]],null],[12],[1,[30,0,[\\\"initialInput\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,3],[[30,0,[\\\"inputType\\\"]],\\\"datetime\\\"],null],[[[1,\\\" \\\"],[11,\\\"input\\\"],[24,0,\\\"confirm-dialog__input\\\"],[16,\\\"aria-label\\\",[52,[30,1],[30,1],\\\"Date and time\\\"]],[16,2,[30,0,[\\\"initialInput\\\"]]],[24,4,\\\"datetime-local\\\"],[4,[32,0],[\\\"input\\\",[30,0,[\\\"setInputValue\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[32,3],[[30,0,[\\\"inputType\\\"]],\\\"checkbox\\\"],null],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"confirm-dialog__checkboxes\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,4],[[28,[31,4],[[30,4]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[28,[32,4],[[30,0,[\\\"checkboxStates\\\"]],[30,6]],null]],[24,4,\\\"checkbox\\\"],[4,[32,0],[\\\"change\\\",[28,[32,5],[[30,0,[\\\"setCheckbox\\\"]],[30,6]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,5,[\\\"label\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[5,6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]]],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"confirm-dialog__actions \\\",[30,0,[\\\"containerClass\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,4],[[28,[31,4],[[30,0,[\\\"buttons\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"confirm-dialog__btn\\\\n \\\",[52,[28,[32,3],[[30,7,[\\\"style\\\"]],\\\"primary\\\"],null],\\\"confirm-dialog__btn--primary\\\",\\\"confirm-dialog__btn--neutral\\\"]]]],[24,4,\\\"button\\\"],[4,[32,0],[\\\"click\\\",[30,7,[\\\"onClick\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,7,[\\\"label\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[31,1],[[30,0,[\\\"portalTarget\\\"]]],null],null]],[\\\"@title\\\",\\\"@subtitle\\\",\\\"@body\\\",\\\"@checkboxOptions\\\",\\\"option\\\",\\\"index\\\",\\\"btn\\\"],[\\\"in-element\\\",\\\"-in-el-null\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/modals/confirm-dialog.js\",\n \"scope\": function scope() {\n return [_modifier.on, dialogA11y, safe, eq, _helper.get, _helper.fn];\n },\n \"isStrictMode\": true\n }), _ConfirmDialog), _ConfirmDialog), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"accessibility\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"checkboxStates\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n var _this$args$checkboxOp2;\n return ((_this$args$checkboxOp2 = this.args.checkboxOptions) !== null && _this$args$checkboxOp2 !== void 0 ? _this$args$checkboxOp2 : []).map(function (o) {\n return !!o.checked;\n });\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"setInputValue\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setInputValue\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCheckbox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setCheckbox\"), _class.prototype), _class);\n});","define(\"bocce/components/classroom/current-lesson-item\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{{this.text}}}\n */\n {\n \"id\": \"hLTIJO81\",\n \"block\": \"[[[2,[30,0,[\\\"text\\\"]]]],[],[]]\",\n \"moduleName\": \"bocce/components/classroom/current-lesson-item.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n classNames: [\"current-course-topic\"],\n attributeBindings: [\"ariaHidden:aria-hidden\"],\n ariaHidden: \"true\",\n text: (0, _object.computed)(\"lesson\", \"title\", function () {\n var lesson = this.lesson;\n if (Number(lesson) === 0) {\n lesson = \"Getting Started\";\n }\n var title = this.title;\n if (!title) {\n return \"\";\n }\n return \"\".concat(lesson, \" - \").concat(title);\n })\n }));\n});","define(\"bocce/components/classroom/header/section-info\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _computed, _service, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n Section\n {{this._sectionLabel}}\n {{this._termLabel}}\n {{#if this.showWeek}}\n Week\n {{@term.week}}\n {{/if}}\n */\n {\n \"id\": \"IWK609H6\",\n \"block\": \"[[[1,\\\"Section\\\\n\\\"],[1,[30,0,[\\\"_sectionLabel\\\"]]],[1,\\\"\\\\n\\\"],[1,[30,0,[\\\"_termLabel\\\"]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showWeek\\\"]],[[[1,\\\" Week\\\\n \\\"],[1,[30,1,[\\\"week\\\"]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@term\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"bocce/components/classroom/header/section-info.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"span\",\n classNames: [\"header-course-section\"],\n features: (0, _service.inject)(),\n showWeek: (0, _object.computed)(\"features.staticContent\", \"hideWeek\", function () {\n /* eslint-disable-next-line ember/no-get */\n return !this.get(\"features.staticContent\") && !this.get(\"hideWeek\");\n }),\n _sectionLabel: (0, _computed.or)(\"sectionLabel\", \"section.number\"),\n _termLabel: (0, _computed.or)(\"termLabel\", \"term.name\")\n }));\n});","define(\"bocce/components/conversation-reply-box\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n
    \n \n \n
    \n \n \n \n Post\n \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"GkkuPHjS\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\"],[[30,1],[30,2],[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Conversation Reply Text Editor\\\"],[14,0,\\\"conversation-reply-box\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"reply-container reply-quick \\\",[52,[30,4],\\\"active-editor\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,3],null,[[\\\"@controller\\\",\\\"@userInput\\\",\\\"@updateArchive\\\"],[[30,0],[30,0,[\\\"bodyInput\\\"]],[28,[37,4],[[30,0],\\\"updateLocalDocs\\\"],null]]],null],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\"],[[30,0,[\\\"attachmentsToContainer\\\"]],[30,5],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,6]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn\\\"],[24,\\\"aria-label\\\",\\\"Attach Files.\\\"],[4,[38,7],[\\\"click\\\",[30,7]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Attach\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black\\\"],[16,\\\"disabled\\\",[52,[51,[30,8]],true,null]],[24,\\\"aria-label\\\",\\\"Post Discussion Reply\\\"],[4,[38,7],[\\\"click\\\",[28,[37,10],[[30,9],true],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Post\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@inEditor\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@postable\\\",\\\"@updateConversation\\\"],[\\\"drag-and-drop\\\",\\\"div\\\",\\\"if\\\",\\\"rte\\\",\\\"action\\\",\\\"attachments-container\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"unless\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/conversation-reply-box.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n store: (0, _service.inject)()\n }));\n});","define(\"bocce/components/conversation\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.model}}\n {{#unless this.adding_member}}\n
    \n {{if this.model.private \"Private message\" \"Group message\"}}\n with\n {{#each this.model.conversationPartners as |conversationPartner|}}\n
    {{conversationPartner.name}}\n \n
    \n {{/each}}\n
    \n {{#unless this.model.private}}\n
    \n {{#each this.model.conversationPartners as |conversationPartner|}}\n {{conversationPartner.name}}\n {{/each}}\n
    \n {{/unless}}\n {{#if this.sharedEnrollments}}\n
    \n {{#each this.sharedEnrollments as |sharedEnrollment|}}\n
    {{sharedEnrollment.relationship}},\n {{sharedEnrollment.courseTitle}}\n - Section\n {{sharedEnrollment.sectionLabel}}
    \n {{/each}}\n
    \n {{/if}}\n {{else}}\n \n \n {{/unless}}\n {{#unless this.adding_member}}\n {{#unless this.model.private}}\n \n \n \n {{/unless}}\n \n \n \n \n \n {{/unless}}\n \n \n \n \n
    \n Fetching older messages...
    \n
      \n {{#each this.sortedMessages as |message|}}\n {{#unless message.hide}}\n {{#if message.generated}}\n
    • \n
      \n {{{message.body}}}\n
      \n \n {{moment message.created_at \"lll\"}}\n \n
    • \n {{else}}\n \n \n
      \n {{{message.body}}}\n
      \n
      \n {{#each message.attachment_objects as |attachment|}}\n \n {{/each}}\n
      \n {{#if (or message.belongsToSelf (eq this.session.user.id message.author_id.id))}}\n {{moment message.created_at \"lll\"}}\n {{else}}\n \n {{message.author.name}}\n \n \n -\n {{moment message.created_at \"lll\"}}\n {{/if}}\n \n {{/if}}\n {{/unless}}\n {{else}}\n
    • \n
      \n

      There are no messages in this conversation.

      \n
      \n
    • \n {{/each}}\n
    \n \n \n {{else}}\n
    Please select a conversation\n thread or start a new one.\n
    \n \n \n \n {{/if}}\n \n {{#unless this.inlineInbox}}\n \n {{/unless}}\n */\n {\n \"id\": \"EQ7/mkqr\",\n \"block\": \"[[[10,0],[15,\\\"role\\\",[29,[[52,[51,[30,0,[\\\"inlineInbox\\\"]]],\\\"dialog\\\"]]]],[15,\\\"aria-modal\\\",[29,[[52,[51,[30,0,[\\\"inlineInbox\\\"]]],\\\"true\\\"]]]],[15,\\\"aria-activedescendant\\\",[29,[[52,[51,[30,0,[\\\"inlineInbox\\\"]]],\\\"messages\\\"]]]],[15,\\\"aria-labelledby\\\",[29,[[52,[51,[30,0,[\\\"inlineInbox\\\"]]],\\\"convo-modal-title\\\"]]]],[15,\\\"aria-describedby\\\",[29,[[52,[51,[30,0,[\\\"inlineInbox\\\"]]],\\\"convo-modal-title\\\"]]]],[15,0,[29,[\\\"floating-modal\\\\n \\\",[52,[30,0,[\\\"adding_member\\\"]],\\\"adding-users\\\"],\\\"\\\\n existing-conversation active\\\\n \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[15,1,[29,[[30,0,[\\\"model\\\",\\\"modalId\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\"]],[[[41,[51,[30,0,[\\\"adding_member\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"modal-title\\\"],[14,1,\\\"convo-modal-title\\\"],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"private\\\"]],\\\"Private message\\\",\\\"Group message\\\"]],[1,\\\"\\\\n with\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"model\\\",\\\"conversationPartners\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"partner-name\\\"],[12],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,1],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"private\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"conversation-partner-tooltip thread\\\"],[14,\\\"aria-hiden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"model\\\",\\\"conversationPartners\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,1],[12],[1,[30,2,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"sharedEnrollments\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"conversation-shared-enrollments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"sharedEnrollments\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"shared-enrollment\\\"],[12],[1,[30,3,[\\\"relationship\\\"]]],[1,\\\",\\\\n \\\"],[1,[30,3,[\\\"courseTitle\\\"]]],[1,\\\"\\\\n - Section\\\\n \\\"],[1,[30,3,[\\\"sectionLabel\\\"]]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@type\\\",\\\"@value\\\",\\\"@filteredList\\\",\\\"@recipients\\\",\\\"@autoComplete\\\",\\\"@choose\\\"],[\\\"text\\\",\\\"recipient.name\\\",[30,0,[\\\"filteredList\\\"]],[30,0,[\\\"model\\\",\\\"conversationPartners\\\"]],[30,4],[30,5]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"start-add-recipient-button\\\"],[4,[38,9],[\\\"click\\\",[30,6]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[51,[30,0,[\\\"adding_member\\\"]]],[[[41,[51,[30,0,[\\\"model\\\",\\\"private\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-add\\\"],[24,\\\"aria-label\\\",\\\"Add users to conversation\\\"],[4,[38,9],[\\\"click\\\",[30,6]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"conversation-archive \\\",[52,[30,0,[\\\"model\\\",\\\"archived\\\"]],\\\"archived\\\",\\\"active\\\"]]]],[24,\\\"aria-label\\\",\\\"Archive conversation\\\"],[4,[38,9],[\\\"click\\\",[30,7]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fas \\\",[52,[30,0,[\\\"model\\\",\\\"active\\\"]],\\\"fa-folder-open\\\",\\\"fa-folder\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"conversation-star \\\",[52,[30,0,[\\\"model\\\",\\\"starred\\\"]],\\\"starred\\\",\\\"no-star\\\"]]]],[24,\\\"aria-label\\\",\\\"Star conversation\\\"],[4,[38,9],[\\\"click\\\",[28,[37,11],[[30,8],[30,0,[\\\"model\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"close-button\\\"],[24,\\\"aria-label\\\",\\\"Close current conversation\\\"],[4,[38,9],[\\\"click\\\",[30,9]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"modal-content\\\"],[15,5,[29,[\\\"margin-top: \\\",[30,0,[\\\"conversationModalContentMarginTop\\\"]],\\\"px; margin-bottom: 60px;\\\"]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading-prv\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-3x fa-fw\\\"],[12],[13],[1,\\\"\\\\n Fetching older messages...\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[14,\\\"autofocus\\\",\\\"\\\"],[14,0,\\\"messages\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"messages\\\"],[14,1,\\\"messages\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"sortedMessages\\\"]]],null]],null],null,[[[41,[51,[30,10,[\\\"hide\\\"]]],[[[41,[30,10,[\\\"generated\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"message generated\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"message-body author-id\\\",[30,10,[\\\"author_id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,10,[\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"message-time\\\"],[15,\\\"aria-label\\\",[29,[\\\"Message sent: \\\",[28,[37,14],[[30,10,[\\\"created_at\\\"]],\\\"lll\\\"],null]]]],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,14],[[30,10,[\\\"created_at\\\"]],\\\"lll\\\"],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"message\\\\n \\\",[52,[28,[37,15],[[30,10,[\\\"belongsToSelf\\\"]],[28,[37,16],[[30,0,[\\\"session\\\",\\\"user\\\",\\\"id\\\"]],[30,10,[\\\"author_id\\\",\\\"id\\\"]]],null]],null],\\\"self\\\",\\\"partner\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,17],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,10,[\\\"author\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"message-body author-id\\\",[30,10,[\\\"author_id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,10,[\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"message-attachments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,10,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,18],null,[[\\\"@attachment\\\"],[[30,11]]],null],[1,\\\"\\\\n\\\"]],[11]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,15],[[30,10,[\\\"belongsToSelf\\\"]],[28,[37,16],[[30,0,[\\\"session\\\",\\\"user\\\",\\\"id\\\"]],[30,10,[\\\"author_id\\\",\\\"id\\\"]]],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"message-time\\\"],[15,\\\"aria-label\\\",[29,[\\\"Message sent: \\\",[28,[37,14],[[30,10,[\\\"created_at\\\"]],\\\"lll\\\"],null]]]],[12],[1,[28,[35,14],[[30,10,[\\\"created_at\\\"]],\\\"lll\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"message-time partner\\\"],[15,\\\"aria-label\\\",[29,[\\\"Message sent: \\\",[28,[37,14],[[30,10,[\\\"created_at\\\"]],\\\"lll\\\"],null]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"b\\\"],[12],[1,[30,10,[\\\"author\\\",\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,10,[\\\"author\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n -\\\\n \\\"],[1,[28,[35,14],[[30,10,[\\\"created_at\\\"]],\\\"lll\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[10]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"message generated\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"message-body\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"There are no messages in this conversation.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,21],null,[[\\\"@files\\\",\\\"@controller\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@localArchive\\\",\\\"@localDocs\\\",\\\"@attachmentsToContainer\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@updateConversation\\\",\\\"@postable\\\",\\\"@addFile\\\"],[[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,0,[\\\"attachmentsToContainer\\\"]],[30,21],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,22],[30,23],[30,24],[30,25],[30,26]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"conversation-empty-prompt\\\"],[14,1,\\\"convo-modal-title\\\"],[12],[1,\\\"Please select a conversation\\\\n thread or start a new one.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"close-button\\\"],[24,\\\"aria-label\\\",\\\"Close current conversation\\\"],[4,[38,9],[\\\"click\\\",[30,9]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"inlineInbox\\\"]]],[[[1,\\\" \\\"],[8,[39,22],null,[[\\\"@action\\\"],[[30,9]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"conversationPartner\\\",\\\"conversationPartner\\\",\\\"sharedEnrollment\\\",\\\"@autoComplete\\\",\\\"@choose\\\",\\\"@addUserToggle\\\",\\\"@toggleArchived\\\",\\\"@toggleConversationStar\\\",\\\"@closeModals\\\",\\\"message\\\",\\\"attachment\\\",\\\"@files\\\",\\\"@controller\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@localArchive\\\",\\\"@localDocs\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@updateConversation\\\",\\\"@postable\\\",\\\"@addFile\\\"],[\\\"div\\\",\\\"unless\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"user-icons\\\",\\\"span\\\",\\\"recipient-filter\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"fn\\\",\\\"ul\\\",\\\"li\\\",\\\"moment\\\",\\\"or\\\",\\\"eq\\\",\\\"user-portrait\\\",\\\"attachment-preview\\\",\\\"b\\\",\\\"p\\\",\\\"conversation-reply-box\\\",\\\"modals/dark-backdrop\\\"]]\",\n \"moduleName\": \"bocce/components/conversation.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n session: (0, _service.inject)()\n }));\n});","define(\"bocce/components/conversations\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"bocce/mixins/enmodal\", \"bocce/mixins/conversable\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _computed, _enmodal, _conversable, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object/computed\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/conversable\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @model.isLoaded}}\n {{#unless this.session.isLimitedStudentTerm}}\n \n {{/unless}}\n
      \n {{#each this.sortedConversations as |conversation|}}\n
    • \n
      \n {{#if conversation.conversationPartner}}\n \n {{else}}\n {{#each conversation.topConversationPartners as |conversationPartner|}}\n \n {{/each}}\n {{/if}}\n
      \n
      \n \n {{#each conversation.conversationPartners as |conversationPartner|}}\n {{conversationPartner.name}}\n \n {{/each}}\n {{#unless conversation.private}}\n
      \n {{#each conversation.conversationPartners as |conversationPartner|}}{{conversationPartner.name}}\n {{/each}}\n
      \n {{/unless}}\n \n {{{conversation.last_message_formatted}}}\n \n \n {{conversation.lastActivityFormatted}}
      \n \n
    • \n {{else}}\n {{#if this.session.isLimitedStudentTerm}}\n \n {{else}}\n
    • \n

      \n The inbox is empty.\n

      \n
    • \n {{/if}}\n {{/each}}\n
    \n {{else}}\n \n \n {{/if}}\n */\n {\n \"id\": \"KZB9nrJk\",\n \"block\": \"[[[41,[30,1,[\\\"isLoaded\\\"]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"new-conversation\\\"],[24,\\\"aria-label\\\",\\\"Create a new direct message\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"newTypeModal\\\"]],\\\"conversation\\\"],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"conversations\\\"],[14,\\\"role\\\",\\\"navigation\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"sortedConversations\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"conversation \\\",[52,[30,2,[\\\"read\\\"]],\\\"read\\\",\\\"unread\\\"]]]],[14,\\\"aria-label\\\",\\\"Conversation\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"portraits\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"conversationPartner\\\"]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@tagName\\\",\\\"@class\\\",\\\"@user\\\"],[\\\"button\\\",\\\"main-portrait\\\",[30,2,[\\\"conversationPartner\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,8],[[28,[37,8],[[30,2,[\\\"topConversationPartners\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@tagName\\\",\\\"@class\\\",\\\"@user\\\"],[\\\"button\\\",\\\"main-portrait\\\",[30,3]]],null],[1,\\\"\\\\n\\\"]],[3]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"conversation-summary\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"conversation-partner-name \\\",[52,[51,[30,2,[\\\"private\\\"]]],\\\"thread\\\"]]]],[24,\\\"aria-label\\\",\\\"View conversation\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"viewConversation\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,2,[\\\"conversationPartners\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,1],[15,\\\"aria-label\\\",[29,[\\\"Conversation member \\\",[30,4,[\\\"name\\\"]]]]],[12],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,13],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,4],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[13],[1,\\\"\\\\n\\\"]],[4]],null],[41,[51,[30,2,[\\\"private\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"conversation-partner-tooltip thread\\\"],[14,\\\"aria-hiden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[42,[28,[37,8],[[28,[37,8],[[30,2,[\\\"conversationPartners\\\"]]],null]],null],null,[[[10,1],[12],[1,[30,5,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,13],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,5],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[13]],[5]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"conversation-last-response\\\"],[16,\\\"aria-label\\\",[29,[\\\"message preview: \\\",[30,2,[\\\"last_message_formatted\\\"]]]]],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"viewConversation\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[2,[30,2,[\\\"last_message_formatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"conversation-inline-star \\\",[52,[30,2,[\\\"starred\\\"]],\\\"starred\\\",\\\"no-star\\\"]]]],[24,\\\"aria-label\\\",\\\"Star conversation\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"toggleConversationStar\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"conversation-last-response-time\\\"],[15,\\\"aria-label\\\",[29,[\\\"Last message sent on: \\\",[30,2,[\\\"lastActivityFormatted\\\"]]]]],[12],[1,[30,2,[\\\"lastActivityFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],[[[41,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"contact-limited\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"pmInstructor\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Contact Instructor (\\\"],[1,[30,0,[\\\"courseInstructor\\\",\\\"name\\\"]]],[1,\\\")\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"\\\\n The inbox is empty.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[3,\\\" if the model isn't loaded \\\"],[1,\\\"\\\\n \\\"],[8,[39,15],null,null,null],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@model\\\",\\\"conversation\\\",\\\"conversationPartner\\\",\\\"conversationPartner\\\",\\\"conversationPartner\\\"],[\\\"if\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"div\\\",\\\"user-portrait\\\",\\\"span\\\",\\\"user-icons\\\",\\\"h3\\\",\\\"loading-message\\\"]]\",\n \"moduleName\": \"bocce/components/conversations.hbs\",\n \"isStrictMode\": false\n });\n\n // app/controllers/conversations.js\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_conversable.default, _enmodal.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.sortProperties = this.sortProperties || [\"lastActivity\"];\n this.conversationSortRules = this.conversationSortRules || [\"lastActivity:desc\"];\n },\n // classroom: inject(),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n router: (0, _service.inject)(),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n // conversation: inject('classroom.lessons.conversation'),\n\n sortAscending: false,\n filteredList: null,\n recipientId: null,\n courseInstructor: (0, _object.computed)(\"session.teachingUser\", function () {\n return this.get(\"session.teachingUser\");\n }),\n sortedConversations: (0, _computed.sort)(\"activeConversations\", \"conversationSortRules\"),\n activeConversations: (0, _object.computed)(\"model.@each.{workflow_state,conversationPartners}\", function () {\n var convos = this.model;\n if (convos) {\n return this.model.filter(function (convo) {\n return convo.active === true;\n });\n }\n return [];\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n unreadCountInbox: (0, _object.computed)(\"model.@each.workflow_state\", function () {\n var conversationsLoaded = this.conversationsLoaded || false;\n if (!conversationsLoaded) {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"session.course.numUnreadConversations\");\n } else {\n return this.model.filter(function (conversation) {\n return conversation.workflow_state === \"unread\";\n }).length;\n }\n }),\n closeModals: (0, _object.action)(function () {\n this._super();\n this.conversation.send(\"deleteUnsentConversation\");\n }),\n pmInstructor: (0, _object.action)(function () {\n this.router.transitionTo(\"classroom.conversation-new-with\", this.get(\"courseInstructor.id\"));\n })\n }));\n});","define(\"bocce/components/dashboard/course-list/course-list-item-training\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
    \n {{#if @course.isTeacher}}\n \n You are teaching this course\n {{else}}\n

    Instructor:

    \n {{@course.teacher.user_name}}\n
    \n \n
    \n {{/if}}\n
    \n \n */\n {\n \"id\": \"UnKvndEB\",\n \"block\": \"[[[10,\\\"li\\\"],[15,0,[29,[\\\"course__item\\\\n \\\",[52,[30,1,[\\\"isTeacher\\\"]],\\\"teaching\\\"],\\\"\\\\n \\\",[52,[28,[37,2],[[31,3],[30,1,[\\\"course_order\\\"]]],null],\\\"course--maximized\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__head\\\"],[12],[1,\\\"\\\\n \\\"],[11,3],[16,6,[29,[[30,1,[\\\"course_url\\\"]]]]],[24,\\\"target\\\",\\\"_blank\\\"],[4,[38,6],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"course__code-and-term\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"course_code\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__code-and-term__divider\\\"],[12],[1,\\\"|\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"course__term\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"term\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"course__name\\\"],[12],[1,[30,1,[\\\"course_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__item course__teacher--info\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isTeacher\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chalkboard-teacher\\\"],[12],[13],[1,\\\"\\\\n You are teaching this course\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Instructor:\\\"],[13],[1,\\\"\\\\n \\\"],[11,1],[4,[38,6],[\\\"click\\\",[28,[37,12],[[30,3],[30,1,[\\\"teacher\\\",\\\"user_id\\\"]]],null]],null],[12],[1,[30,1,[\\\"teacher\\\",\\\"user_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__teacher--contact\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"course__user--contact__button\\\"],[4,[38,6],[\\\"click\\\",[30,1,[\\\"teacher\\\",\\\"user_id\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[12],[13],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[12],[13],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Contact Teacher\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@course\\\",\\\"@navigate\\\",\\\"@messageUser\\\"],[\\\"li\\\",\\\"if\\\",\\\"same\\\",\\\"maximizedCard\\\",\\\"div\\\",\\\"a\\\",\\\"on\\\",\\\"p\\\",\\\"span\\\",\\\"h2\\\",\\\"i\\\",\\\"h3\\\",\\\"fn\\\",\\\"button\\\"]]\",\n \"moduleName\": \"bocce/components/dashboard/course-list/course-list-item-training.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"course-list-item-training\"));\n});","define(\"bocce/components/dashboard/week-number-display\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @term.week_num}}\n
    \n

    Current Week:\n {{@term.week_num}}

    \n
    \n Current Term Week: {{@term.week_num}}\n
    \n
    \n
    \n
    \n
    \n
    \n
    1
    \n
    2
    \n
    3
    \n
    4
    \n
    5
    \n
    6
    \n
    7
    \n
    8
    \n
    9
    \n
    10
    \n
    11
    \n
    12
    \n
    \n {{#if (morethan @term.week_num 12)}}\n

    Current Week:\n {{@term.week_num}}

    \n {{/if}}\n {{else}}\n {{#if @term.closed}}\n

    Starts On:\n {{moment @term.start_at \"MM/DD\"}}

    \n {{else}}\n

    Ends On:\n {{moment @term.end_at \"MM/DD\"}}

    \n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"abNqdYdU\",\n \"block\": \"[[[41,[30,1,[\\\"week_num\\\"]],[[[1,\\\" \\\"],[10,0],[14,1,\\\"musical-staff-alt\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"class__week\\\"],[12],[10,\\\"b\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-week\\\"],[12],[13],[1,\\\" Current Week:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"week_num\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Current Term Week: \\\"],[1,[30,1,[\\\"week_num\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"musical-staff\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"staff-line\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"staff-line\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"staff-line\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"staff-line\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"staff-line\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"1\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week1\\\"],[12],[1,\\\"1\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"2\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week2\\\"],[12],[1,\\\"2\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"3\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week3\\\"],[12],[1,\\\"3\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"4\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week4\\\"],[12],[1,\\\"4\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"5\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week5\\\"],[12],[1,\\\"5\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"6\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week6\\\"],[12],[1,\\\"6\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"7\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week7\\\"],[12],[1,\\\"7\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"8\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week8\\\"],[12],[1,\\\"8\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"9\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week9\\\"],[12],[1,\\\"9\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"10\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week10\\\"],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"11\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week11\\\"],[12],[1,\\\"11\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"measure \\\",[52,[28,[37,6],[[30,1,[\\\"week_num\\\"]],\\\"12\\\"],null],\\\"measure__highlight\\\"]]]],[14,1,\\\"week12\\\"],[12],[1,\\\"12\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,1,[\\\"week_num\\\"]],12],null],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"class__week\\\"],[12],[10,\\\"b\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-week\\\"],[12],[13],[1,\\\" Current Week:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"week_num\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,1,[\\\"closed\\\"]],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"class__week\\\"],[12],[10,\\\"b\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-check\\\"],[12],[13],[1,\\\" Starts On:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,8],[[30,1,[\\\"start_at\\\"]],\\\"MM/DD\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"class__week\\\"],[12],[10,\\\"b\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-check\\\"],[12],[13],[1,\\\" Ends On:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,8],[[30,1,[\\\"end_at\\\"]],\\\"MM/DD\\\"],null]],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[\\\"@term\\\"],[\\\"if\\\",\\\"div\\\",\\\"h2\\\",\\\"b\\\",\\\"i\\\",\\\"span\\\",\\\"same\\\",\\\"morethan\\\",\\\"moment\\\",\\\"p\\\"]]\",\n \"moduleName\": \"bocce/components/dashboard/week-number-display.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"week-number-display\"));\n});","define(\"bocce/components/datetime-picker\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n Date: Time: \n */\n {\n \"id\": \"CLmWVvlJ\",\n \"block\": \"[[[1,\\\"Date: \\\"],[8,[39,0],null,[[\\\"@type\\\",\\\"@value\\\"],[\\\"date\\\",[30,0,[\\\"date\\\"]]]],null],[1,\\\" Time: \\\"],[8,[39,0],null,[[\\\"@type\\\",\\\"@value\\\"],[\\\"time\\\",[30,0,[\\\"time\\\"]]]],null]],[],[\\\"input\\\"]]\",\n \"moduleName\": \"bocce/components/datetime-picker.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"span\",\n // datetime must be a moment.js object\n date: (0, _object.computed)(\"datetime\", {\n get: function get() {\n return this.datetime.format(\"YYYY-MM-DD\");\n },\n set: function set(key, value) {\n var date = value,\n time = this.time,\n dateString = \"\".concat(date, \"T\").concat(time, \":00\"),\n datetime = moment(dateString);\n this.set(\"datetime\", datetime);\n return date;\n }\n }),\n time: (0, _object.computed)(\"datetime\", {\n get: function get() {\n return this.datetime.format(\"HH:mm\");\n },\n set: function set(key, value) {\n var date = this.date,\n time = value,\n dateString = \"\".concat(date, \"T\").concat(time, \":00\"),\n datetime = moment(dateString);\n this.set(\"datetime\", datetime);\n return time;\n }\n })\n }));\n});","define(\"bocce/components/discussion-response\", [\"exports\", \"@ember/component\", \"bocce/mixins/editable\", \"bocce/mixins/showcase\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _editable, _showcase, _object, _service, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/showcase\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @response.user}}\n \n {{#if (and @controller.is_editing (same @controller.reply_id @response.id))}}\n {{#if @response.isSaving}}\n
    \n \n Posting...\n
    \n {{else}}\n
    \n Editing...\n
    \n {{/if}}\n {{else if @response.isSaving}}\n
    \n \n Posting...\n
    \n {{/if}}\n {{#if this.showcaseOpen}}\n {{#if @isInstructor}}\n \n {{/if}}\n {{/if}}\n {{#if @response.needs_repost}}\n
    Click to retry
    \n {{/if}}\n {{#if @response.is_reposting}}\n \n {{/if}}\n
    \n \n
    \n
    \n
    \n \n

    Post Author:

    {{@response.user.name}}\n \n \n \n
    \n
    \n {{#if (and @isAdmin @response.id)}}\n \n \n \n {{else if @isInstructor}}\n {{#if (same @response.user.id @user.id)}}\n {{#if @response.id}}\n \n \n \n \n \n \n \n {{/if}}\n {{/if}}\n \n {{#unless (same @response.user.profile.can_showcase \"no\")}}\n
    \n {{#if this.showcaseOpen}}\n Cancel Showcase\n {{else}}\n Showcase\n {{/if}}\n
    \n {{else}}\n
    \n Can't Showcase\n
    \n {{/unless}}\n {{/if}}\n
    \n
    \n
    \n
    \n {{#if this.replyId}}\n \n {{{this.replyBody}}}\n
    \n {{/if}}\n {{{this.responseBody}}}\n
    \n {{#if @response.attachments}}\n
      \n
    • \n Attachments:\n
    • \n {{#each @response.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n
    \n \n \n {{/if}}\n */\n {\n \"id\": \"RLh40fs8\",\n \"block\": \"[[[41,[30,1,[\\\"user\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[15,\\\"aria-label\\\",[29,[\\\"Discussion Response from \\\",[30,1,[\\\"user\\\",\\\"name\\\"]]]]],[15,\\\"data-author\\\",[29,[[30,1,[\\\"user\\\",\\\"name\\\"]]]]],[15,1,[29,[\\\"discussion-response-\\\",[30,1,[\\\"id\\\"]]]]],[15,0,[29,[\\\"discussion-response\\\\n \\\",[52,[30,1,[\\\"parent\\\"]],\\\"discussion-response--child\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"isSaving\\\"]],\\\"is-posting\\\"],\\\"\\\\n \\\",[52,[28,[37,2],[[30,2,[\\\"is_editing\\\"]],[28,[37,3],[[30,2,[\\\"reply_id\\\"]],[30,1,[\\\"id\\\"]]],null]],null],\\\"is-posting\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,2,[\\\"is_editing\\\"]],[28,[37,3],[[30,2,[\\\"reply_id\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[[[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n Editing...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,1,[\\\"isSaving\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting...\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[41,[30,0,[\\\"showcaseOpen\\\"]],[[[41,[30,3],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\"],[[30,0,[\\\"showcaseTitle\\\"]],[30,0,[\\\"showcaseComment\\\"]],[30,0,[\\\"readyToShowcase\\\"]],[30,0,[\\\"changeShowcaseWeek\\\"]],[28,[37,7],[[30,0,[\\\"postShowcase\\\"]],[30,1,[\\\"id\\\"]],[30,1,[\\\"showcase\\\",\\\"id\\\"]],[30,1,[\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,1,[\\\"needs_repost\\\"]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fas fa-exclamation-circle needs-repost\\\"],[24,\\\"aria-label\\\",\\\"Posting this message has failed. Click here to re-try posting.\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"repostResponse\\\"]],[30,1]],null]],null],[12],[1,\\\" \\\"],[10,0],[14,0,\\\"repost\\\"],[12],[1,\\\"Click to retry\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"is_reposting\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-3x fa-fw needs-repost\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"discussion-response__body-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@user\\\"],[[30,1,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-response__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-response__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-response__info\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"discussion-response__author\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,1,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Post Author: \\\"],[13],[1,[30,1,[\\\"user\\\",\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,12],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,1,[\\\"user\\\"]],[30,3]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"time\\\"],[14,0,\\\"discussion-response__time\\\"],[15,\\\"datetime\\\",[29,[[30,1,[\\\"postTime\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Post Time: \\\"],[13],[1,[30,1,[\\\"postTime\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-response__options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,4],[30,1,[\\\"id\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-hover-button icon-button__white icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Delete Response\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"delete\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3],[[[41,[28,[37,3],[[30,1,[\\\"user\\\",\\\"id\\\"]],[30,5,[\\\"id\\\"]]],null],[[[41,[30,1,[\\\"id\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-hover-button icon-button__white icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Edit Response\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"edit\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-hover-button icon-button__white icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Delete Response\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"delete\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,3],[[30,1,[\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],\\\"no\\\"],null]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"button-link\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"toggleShowcase\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showcaseOpen\\\"]],[[[1,\\\" Cancel Showcase\\\\n\\\"]],[]],[[[1,\\\" Showcase\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-button\\\"],[12],[1,\\\"\\\\n Can't Showcase\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-response__reply\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-reply__reply-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"replyId\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"discussion-reply__reply-metadata\\\"],[4,[38,8],[\\\"click\\\",[28,[37,7],[[30,0,[\\\"scrollTo\\\"]],[30,0,[\\\"replyId\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"replyBody\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[2,[30,0,[\\\"responseBody\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"discussion-attachments\\\"],[14,\\\"aria-label\\\",\\\"Post Attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n Attachments:\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,17],[[28,[37,17],[[30,1,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"aria-label\\\",\\\"Post Attachment\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,18],null,[[\\\"@showDelete\\\",\\\"@attachment\\\",\\\"@deleteAttachment\\\"],[[28,[37,2],[[30,4],[30,1,[\\\"id\\\"]]],null],[30,6],[28,[37,7],[[30,7],[30,8],[30,9],[30,6,[\\\"id\\\"]],\\\"response\\\",[30,1,[\\\"id\\\"]],[30,1,[\\\"user\\\",\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@response\\\",\\\"@controller\\\",\\\"@isInstructor\\\",\\\"@isAdmin\\\",\\\"@user\\\",\\\"attachment\\\",\\\"@deleteAttachment\\\",\\\"@courseId\\\",\\\"@discussionId\\\"],[\\\"if\\\",\\\"li\\\",\\\"and\\\",\\\"same\\\",\\\"div\\\",\\\"i\\\",\\\"showcase-post\\\",\\\"fn\\\",\\\"on\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"p\\\",\\\"user-icons\\\",\\\"time\\\",\\\"unless\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\"]]\",\n \"moduleName\": \"bocce/components/discussion-response.hbs\",\n \"isStrictMode\": false\n });\n\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_editable.default, _showcase.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n didInsertElement: function didInsertElement() {\n this._super.apply(this, arguments);\n this.element.querySelectorAll(\".post-video-embed\").forEach(function (video) {\n // Some entries are stored with preload='none', so we need this for now\n video.preload = \"metadata\";\n video.load();\n });\n },\n replyId: (0, _object.computed)(\"replyBody\", function () {\n /* eslint-disable-next-line ember/no-jquery */\n var replyBody = (0, _jquery.default)(\"
    \" + this.replyBody + \"
    \");\n if (replyBody && replyBody.find(\".is-reply-id\").length > 0) {\n return replyBody.find(\".is-reply-id\").text();\n } else {\n return null;\n }\n }),\n // returns the text of the reply\n responseBody: (0, _object.computed)(\"response.message\", function () {\n /* eslint-disable-next-line ember/no-jquery, ember/no-get */\n var message = (0, _jquery.default)(\"
    \".concat(this.get(\"response.message\"), \"
    \"));\n if (message) {\n if (message.find(\".is-reply\")) {\n message.find(\".is-reply\").remove();\n }\n if (message[0]) {\n return message[0].innerHTML;\n }\n }\n return null;\n }),\n // returns an HTML string with metadata about the message to which this is replying\n replyBody: (0, _object.computed)(\"response.message\", function () {\n /* eslint-disable-next-line ember/no-jquery, ember/no-get */\n var message = (0, _jquery.default)(\"
    \".concat(this.get(\"response.message\"), \"
    \"));\n if (message) {\n var replyInfo = message.find(\".is-reply\");\n if (replyInfo[0]) {\n return replyInfo[0].innerHTML;\n }\n }\n return null;\n }),\n scrollTo: (0, _object.action)(function (id) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#discussion-response-\" + id).removeClass(\"resp-flash\");\n setTimeout(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#discussion-response-\" + id).addClass(\"resp-flash\");\n }, 2);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#discussion-response-\" + id)[0].scrollIntoView();\n })\n }));\n});","define(\"bocce/components/discussion-view\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n {{#if @controller.isSavingEdit}}\n
    \n \n Posting...\n
    \n {{/if}}\n \n \n
    \n {{#if @controller.model.hasResponses}}\n \n {{#each @controller.topLevelResponses as |response|}}\n \n {{#each (array-item @controller.childResponses response.id) as |childResponse|}}\n \n {{/each}}\n {{#unless @controller.session.isLimitedStudentTerm}}\n \n {{/unless}}\n {{/each}}\n \n {{else}}\n
    Be the first to respond (below).
    \n {{/if}}\n
    \n \n \n {{#if @controller.isWorking}}\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"fsWvH4p0\",\n \"block\": \"[[[10,0],[14,0,\\\"discussion-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"discussion-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"discussion-content__starter \\\",[52,[30,1,[\\\"isSavingEdit\\\"]],\\\"is-posting\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isSavingEdit\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[8,[39,3],null,[[\\\"@model\\\",\\\"@isLesson\\\",\\\"@isInstructorAndOwner\\\",\\\"@editDiscussion\\\",\\\"@deletePost\\\",\\\"@controller\\\"],[[30,1,[\\\"model\\\"]],[30,1,[\\\"isLesson\\\"]],[30,1,[\\\"isInstructorAndOwner\\\"]],[30,1,[\\\"editDiscussion\\\"]],[30,1,[\\\"deletePost\\\"]],[30,1]]],null],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@model\\\",\\\"@deleteAttachment\\\",\\\"@truncated\\\",\\\"@controller\\\"],[[30,1,[\\\"model\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1,[\\\"truncated\\\"]],[30,1]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"model\\\",\\\"hasResponses\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[15,0,[29,[\\\"discussion-content__reply-list revealed\\\\n \\\",[52,[51,[30,1,[\\\"responsesLoaded\\\"]]],\\\"hidden\\\"]]]],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Discussion Replies\\\"],[15,1,[29,[[30,1,[\\\"discussion\\\",\\\"respContainerId\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,1,[\\\"topLevelResponses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@response\\\",\\\"@discussion\\\",\\\"@user\\\",\\\"@section\\\",\\\"@isInstructor\\\",\\\"@isAdmin\\\",\\\"@preExistingRespIds\\\",\\\"@edit\\\",\\\"@delete\\\",\\\"@courseId\\\",\\\"@discussionId\\\",\\\"@deleteAttachment\\\",\\\"@controller\\\"],[[30,2],[30,1,[\\\"discussion\\\"]],[30,1,[\\\"session\\\",\\\"user\\\"]],[30,1,[\\\"session\\\",\\\"section\\\"]],[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[30,1,[\\\"session\\\",\\\"isAdmin\\\"]],[30,1,[\\\"preExistingRespIds\\\"]],[30,1,[\\\"editReply\\\"]],[30,1,[\\\"deletePostWithId\\\"]],[30,1,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],[30,1,[\\\"model\\\",\\\"db_id\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[28,[37,10],[[30,1,[\\\"childResponses\\\"]],[30,2,[\\\"id\\\"]]],null]],null]],null],null,[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@response\\\",\\\"@discussion\\\",\\\"@user\\\",\\\"@discussionId\\\",\\\"@courseId\\\",\\\"@section\\\",\\\"@isInstructor\\\",\\\"@preExistingRespIds\\\",\\\"@edit\\\",\\\"@delete\\\",\\\"@isAdmin\\\",\\\"@deleteAttachment\\\",\\\"@controller\\\"],[[30,3],[30,1,[\\\"discussion\\\"]],[30,1,[\\\"session\\\",\\\"user\\\"]],[30,1,[\\\"model\\\",\\\"db_id\\\"]],[30,1,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],[30,1,[\\\"session\\\",\\\"section\\\"]],[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[30,1,[\\\"preExistingRespIds\\\"]],[30,1,[\\\"editReply\\\"]],[30,1,[\\\"deletePostWithId\\\"]],[30,1,[\\\"session\\\",\\\"isAdmin\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[41,[51,[30,1,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@parentID\\\",\\\"@parentText\\\",\\\"@parentName\\\",\\\"@reply\\\"],[[30,2,[\\\"id\\\"]],\\\"...\\\",[30,2,[\\\"user\\\",\\\"name\\\"]],[30,1,[\\\"replyToDiscussion\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"discussion-content__no-response\\\"],[12],[1,\\\"Be the first to respond (below).\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[8,[39,12],null,[[\\\"@files\\\",\\\"@controller\\\",\\\"@inEditor\\\",\\\"@is_editing\\\",\\\"@is_reply\\\",\\\"@titleInput\\\",\\\"@replyId\\\",\\\"@replyAuthor\\\",\\\"@replyText\\\",\\\"@replyCancel\\\",\\\"@userInput\\\",\\\"@updateArchive\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@localArchive\\\",\\\"@localDocs\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@doneEditing\\\",\\\"@postable\\\",\\\"@model\\\",\\\"@addFile\\\"],[[30,1,[\\\"files\\\"]],[30,1],[30,1,[\\\"inEditor\\\"]],[30,1,[\\\"is_editing\\\"]],[30,1,[\\\"is_reply\\\"]],[30,1,[\\\"titleInput\\\"]],[30,1,[\\\"replyId\\\"]],[30,1,[\\\"replyAuthor\\\"]],[30,1,[\\\"replyText\\\"]],[30,1,[\\\"replyCancel\\\"]],[30,1,[\\\"bodyInput\\\"]],[30,1,[\\\"updateLocalDocs\\\"]],[30,1,[\\\"toggleLocalArchive\\\"]],[30,1,[\\\"previewArchivedText\\\"]],[30,1,[\\\"useArchivedText\\\"]],[30,1,[\\\"localArchive\\\"]],[30,1,[\\\"localDocs\\\"]],[30,1,[\\\"attachmentsToContainer\\\"]],[30,1,[\\\"removeAttachment\\\"]],[30,1,[\\\"encodingVideosToContainer\\\"]],[30,1,[\\\"renameAttachment\\\"]],[30,1,[\\\"openAttachmentDrawer\\\"]],[30,1,[\\\"doneEditing\\\"]],[30,1,[\\\"postable\\\"]],[30,1,[\\\"model\\\"]],[30,1,[\\\"addFile\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bocce-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-2x fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@controller\\\",\\\"response\\\",\\\"childResponse\\\"],[\\\"div\\\",\\\"if\\\",\\\"i\\\",\\\"discussion-header\\\",\\\"discussion-body\\\",\\\"ul\\\",\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\",\\\"discussion-response\\\",\\\"array-item\\\",\\\"discussion/reply-button\\\",\\\"discussion-reply-box\\\"]]\",\n \"moduleName\": \"bocce/components/discussion-view.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"discussion-view\"));\n});","define(\"bocce/components/discussion/multisection-picker\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/array/proxy\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _proxy, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/array/proxy\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n

    Choose Sections

    \n {{#unless this.multipleSectionsSelected}}\n Select All\n {{else}}\n Select None\n {{/unless}}\n
    \n
    \n {{#each this.options as |option|}}\n
    \n \n \n {{option.section.courseTitle}}\n - Section\n {{option.section.sectionLabel}}\n -\n {{option.section.termLabel}}\n \n
    \n {{/each}}\n
    \n
    \n Cancel \n OK \n
    \n
    \n */\n {\n \"id\": \"0U5hdYOy\",\n \"block\": \"[[[10,0],[14,0,\\\"modal-popover\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"modal-popover-head\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,1,\\\"popover-title\\\"],[12],[1,\\\"Choose Sections\\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"multipleSectionsSelected\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Select all sections.\\\"],[24,0,\\\"popover-opt-all\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"selectAll\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Select All\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Deselect all sections.\\\"],[24,0,\\\"popover-opt-none\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"selectNone\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-check-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Select None\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"popover-scroll-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"options\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"section-selector\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[[52,[30,1,[\\\"selected\\\"]],\\\"checked\\\"],\\\" sel-btn\\\"]]],[4,[38,4],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"toggleSection\\\"]],[30,1]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,\\\"i\\\"],[14,0,\\\"far fa-check-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"section\\\",\\\"courseTitle\\\"]]],[1,\\\"\\\\n - Section\\\\n \\\"],[1,[30,1,[\\\"section\\\",\\\"sectionLabel\\\"]]],[1,\\\"\\\\n -\\\\n \\\"],[1,[30,1,[\\\"section\\\",\\\"termLabel\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"popover-options\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Cancel multi-section selection.\\\"],[24,0,\\\"popover-opt-cancel\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"cancel\\\"]]],null],[12],[1,\\\"Cancel \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Accept multi-section selection.\\\"],[24,0,\\\"popover-opt-accept\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[1,\\\"OK \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"option\\\"],[\\\"div\\\",\\\"h2\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/discussion/multisection-picker.hbs\",\n \"isStrictMode\": false\n });\n var SectionOption = _object.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n this.set(\"selected\", false);\n },\n selected: false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n this.sections = this.sections || _proxy.default.create({\n content: []\n });\n this.selected = this.selected || _proxy.default.create({\n content: []\n });\n this.options = _proxy.default.create({\n content: []\n });\n this.initSelections();\n },\n initSelections: function initSelections() {\n var _this = this;\n this.options.clear();\n this.sections.forEach(function (section) {\n return _this.options.pushObject(SectionOption.create({\n section: section\n }));\n });\n },\n /* eslint-disable-next-line ember/no-get */\n multipleSectionsSelected: (0, _computed.gt)(\"selected.length\", 0),\n classNames: [\"modal-popover-shade\"],\n attributeBindings: [\"role\", \"ariaDescribedBy:aria-describedby\"],\n role: \"dialog\",\n ariaDescribedBy: \"popover-title\",\n toggleSection: (0, _object.action)(function (option) {\n option.toggleProperty(\"selected\");\n if (option.selected) {\n this.selected.pushObject(option.section.sectionId);\n } else {\n this.selected.removeObject(option.section.sectionId);\n }\n }),\n selectAll: (0, _object.action)(function () {\n var _this2 = this;\n var selected = this.selected;\n selected.clear();\n this.options.forEach(function (option) {\n option.set(\"selected\", true);\n _this2.selected.pushObject(option.section.sectionId);\n });\n }),\n selectNone: (0, _object.action)(function () {\n this.selected.clear();\n this.options.forEach(function (option) {\n return option.set(\"selected\", false);\n });\n }),\n cancel: (0, _object.action)(function () {\n this.send(\"selectNone\");\n this.send(\"close\");\n }),\n close: (0, _object.action)(function () {\n var closeAction = this.closeAction;\n if (closeAction) {\n closeAction();\n }\n })\n }));\n});","define(\"bocce/components/discussion/reply-button\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
  • \n \n \n Reply\n Reply to {{@parentName}}\n \n
  • \n */\n {\n \"id\": \"six9XBDc\",\n \"block\": \"[[[10,\\\"li\\\"],[14,0,\\\"discussion-response discussion-response--child discussion-response__reply-button\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--black-ghost\\\"],[16,\\\"aria-label\\\",[29,[\\\"Reply to \\\",[30,1]]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,2],[30,3],[30,4],[30,1]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-reply\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Reply\\\\n \\\"],[10,1],[14,0,\\\"tooltip tooltip--top tooltip--delayed\\\"],[12],[1,\\\"Reply to \\\"],[1,[30,1]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@parentName\\\",\\\"@reply\\\",\\\"@parentID\\\",\\\"@parentText\\\"],[\\\"li\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/components/discussion/reply-button.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"reply-button\"));\n});","define(\"bocce/components/drag-and-drop\", [\"exports\", \"@ember/debug\", \"@ember/component\", \"bocce/mixins/editable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/uploadable\", \"bocce/mixins/discussable\", \"bocce/mixins/enmodal\", \"bocce/mixins/kaltura-upload\", \"bocce/mixins/legacy-attachment-manager\", \"jquery\", \"@ember/service\"], function (_exports, _debug, _component, _editable, _audioRec, _videoRec, _rtcRec, _uploadable, _discussable, _enmodal, _kalturaUpload, _legacyAttachmentManager, _jquery, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/component\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/kaltura-upload\",0,\"bocce/mixins/legacy-attachment-manager\",0,\"jquery\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } // app/components/drag-and-drop.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _component.default.extend(_legacyAttachmentManager.default, _editable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _uploadable.default, _discussable.default, _enmodal.default, _kalturaUpload.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n didInsertElement: function didInsertElement() {\n this.boundAppropriateAttachment = this.appropriateAttachment.bind(this);\n },\n willDestroyElement: function willDestroyElement() {\n (0, _jquery.default)(\".discussionAttachment\").off(\"change\", this.boundAppropriateAttachment);\n },\n //The attachments are included as a partial. This partial is removed from the dom when editing a post. So, we\n //have to re-add the event handler upon each render to ensure that the event gets added back to the element\n //when the attachments partial is shown again (i.e: didRender gets triggered.)\n didRender: function didRender() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".discussionAttachment\").off(\"change\", this.boundAppropriateAttachment);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".discussionAttachment\").on(\"change\", this.boundAppropriateAttachment);\n },\n appropriateAttachment: function appropriateAttachment(e) {\n var _this = this;\n var files = e.target.files,\n len = files.length,\n controller = this.controller,\n mimeTypes = controller.mimeTypes,\n i;\n if (mimeTypes) {\n controller.set(\"processInProgress\", true);\n var _loop = function _loop() {\n if (files[i].type.indexOf(\"video\") > -1) {\n var encoding_video = {\n name: files[i].name,\n percent_uploaded: 0\n };\n _this.encoding_videos.pushObject(encoding_video);\n var fileIndex = _this.encoding_videos.length - 1;\n _this.kalturaUploadVideo(files[i], /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return _this.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this.encoding_videos.setObjects(_this.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n files[i].ignoreDownloadOnlyPrompt = true;\n controller.send(\"addValidFile\", files[i]);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex);\n } else if (mimeTypes.indexOf(files[i].type) === -1) {\n controller.send(\"addValidFile\", files[i]);\n } else {\n controller.send(\"addInvalidFile\", files[i]);\n }\n };\n for (i = 0; i < len; i++) {\n _loop();\n }\n }\n\n // Purge file input\n e.target.value = \"\";\n }\n });\n});","define(\"bocce/components/dummy-component\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{yield}}\n */\n {\n \"id\": \"iZHkT/s5\",\n \"block\": \"[[[18,1,null]],[\\\"&default\\\"],[\\\"yield\\\"]]\",\n \"moduleName\": \"bocce/components/dummy-component.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"dummy-\"));\n});","define(\"bocce/components/embeded-content\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each @embeds as |embed|}}\n {{#if embed.bocceSourced}}\n {{{embed.content}}}\n {{else}}\n \n \"Embedded\n \n {{/if}}\n
    \n {{/each}}\n */\n {\n \"id\": \"lCqgybKC\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[41,[30,2,[\\\"bocceSourced\\\"]],[[[1,\\\" \\\"],[2,[30,2,[\\\"content\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,3],[15,6,[29,[[30,2,[\\\"url\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"embeded-image\\\"],[14,\\\"alt\\\",\\\"Embedded image\\\"],[15,\\\"src\\\",[29,[[30,2,[\\\"imageUrl\\\"]]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"embed-seperator\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[2]],null]],[\\\"@embeds\\\",\\\"embed\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"a\\\",\\\"img\\\",\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/embeded-content.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"embeded-content\"));\n});","define(\"bocce/components/event-response\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember-data/model\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _model, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember-data/model\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @response.user_id}}\n \n {{#if (same @editingResponseId @response.id)}}\n {{#if @isSavingComment}}\n
    \n \n Posting...\n
    \n {{else}}\n
    \n Editing...\n
    \n {{/if}}\n {{/if}}\n \n
    \n
    \n \n

    Post Author:

    {{this.responseUser.name}}\n \n \n \n
    \n
    \n {{#if (and @isAdmin @response.id)}}\n \n \n \n {{else if @isInstructor}}\n {{#if (same @response.user_id @user.id)}}\n {{#if @response.id}}\n \n \n \n \n \n \n \n {{/if}}\n {{/if}}\n {{/if}}\n
    \n
    \n
    \n
    \n {{{@response.response}}}\n
    \n
    \n \n {{/if}}\n */\n {\n \"id\": \"Lwyo07bI\",\n \"block\": \"[[[41,[30,1,[\\\"user_id\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[15,\\\"aria-label\\\",[29,[\\\"Live Class Response from \\\",[30,0,[\\\"responseUser\\\",\\\"name\\\"]]]]],[15,\\\"data-author\\\",[29,[[30,0,[\\\"responseUser\\\",\\\"name\\\"]]]]],[15,\\\"response_id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[15,1,[29,[\\\"event-response-\\\",[30,1,[\\\"id\\\"]]]]],[15,0,[29,[\\\"event-response \\\",[52,[28,[37,2],[[30,2],[30,1,[\\\"id\\\"]]],null],\\\"is-posting\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[30,2],[30,1,[\\\"id\\\"]]],null],[[[41,[30,3],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"posting-overlay\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[12],[1,\\\"\\\\n Editing...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[8,[39,5],[[24,0,\\\"event-response__avatar avatar--32px\\\"]],[[\\\"@user\\\"],[[30,0,[\\\"responseUser\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-response__comment-info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-response__info\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-response__author-name\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,1,[\\\"user_id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Post Author: \\\"],[13],[1,[30,0,[\\\"responseUser\\\",\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,0,[\\\"responseUser\\\"]],[30,4]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"time\\\"],[14,0,\\\"event-response__reply-time\\\"],[15,\\\"datetime\\\",[29,[[30,1,[\\\"created_at\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Post Time: \\\"],[13],[1,[30,0,[\\\"formattedTime\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-response__options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,12],[[30,5],[30,1,[\\\"id\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-hover-button icon-button__white icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Delete Response\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"delete\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,4],[[[41,[28,[37,2],[[30,1,[\\\"user_id\\\"]],[30,6,[\\\"id\\\"]]],null],[[[41,[30,1,[\\\"id\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-hover-button icon-button__white icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Edit Response\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"edit\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-hover-button icon-button__white icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Delete Response\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"delete\\\"]],[30,1,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-response__reply\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-response__reply-body\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"response\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@response\\\",\\\"@editingResponseId\\\",\\\"@isSavingComment\\\",\\\"@isInstructor\\\",\\\"@isAdmin\\\",\\\"@user\\\"],[\\\"if\\\",\\\"li\\\",\\\"same\\\",\\\"div\\\",\\\"i\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"p\\\",\\\"user-icons\\\",\\\"time\\\",\\\"and\\\"]]\",\n \"moduleName\": \"bocce/components/event-response.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n store: (0, _service.inject)(),\n responseUser: (0, _object.computed)(\"response.user_id\", function () {\n var userId = this.get(\"response.user_id\");\n if (!userId) return null;\n return this.store.peekRecord(\"user\", userId);\n }),\n formattedTime: (0, _object.computed)(\"response.created_at\", function () {\n var responseTime = moment(this.response.created_at).tz(\"America/New_York\");\n var nowEt = moment().tz(\"America/New_York\");\n if (responseTime.isSame(nowEt, \"day\")) {\n return responseTime.format(\"h:mm A [ET]\");\n } else {\n return responseTime.format(\"dddd, MMM Do h:mm A [ET]\");\n }\n })\n }));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/no-submissions-view\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n

    \n {{{@controller.openAssignment.title}}}\n

    \n \n Due\n {{@controller.openAssignment.formattedDate}}\n \n \n {{#if this.showingInstructions}}\n \n {{{@controller.openAssignment.description}}}\n
    \n {{/if}}\n
    \n No submissions yet.\n
    \n \n Student work will appear here once they submit.\n \n \n The assignment is due\n {{@controller.openAssignment.formattedDate}}.\n \n
    \n
    \n \n */\n {\n \"id\": \"DcAvJGM8\",\n \"block\": \"[[[10,0],[14,0,\\\"submissions-view--no-submissions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,1],null,[[\\\"@assignment\\\",\\\"@onClick\\\"],[[30,1,[\\\"openAssignmentView\\\"]],[30,0,[\\\"handleClick\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"openAssignment\\\",\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-due-date\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment due date: \\\",[30,1,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]]]],[12],[1,\\\"\\\\n Due\\\\n \\\"],[1,[30,1,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"view-instructions-btn button-link\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleInstructions\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showingInstructions\\\"]],[[[1,\\\" Hide Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Show Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showingInstructions\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-instructions active\\\"],[14,\\\"role\\\",\\\"region\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment Instructions for \\\",[30,1,[\\\"openAssignment\\\",\\\"title\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"openAssignment\\\",\\\"description\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"submission-body submission-body--no-submissions\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-body__no-submissions-title\\\"],[12],[1,\\\"No submissions yet.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-body__no-submissions-description-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-body__no-submissions-description\\\"],[12],[1,\\\"\\\\n Student work will appear here once they submit.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-body__no-submissions-description\\\"],[12],[1,\\\"\\\\n The assignment is due\\\\n \\\"],[1,[30,1,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]],[1,\\\".\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@controller\\\"],[\\\"div\\\",\\\"submissions-list-button\\\",\\\"h2\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"if\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/no-submissions-view.hbs\",\n \"isStrictMode\": false\n });\n var Chip = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function Chip() {\n var _this;\n _classCallCheck(this, Chip);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Chip, [].concat(args));\n _initializerDefineProperty(_this, \"showingInstructions\", _descriptor, _this);\n return _this;\n }\n _inherits(Chip, _Component);\n return _createClass(Chip, [{\n key: \"toggleInstructions\",\n value: function toggleInstructions() {\n this.showingInstructions = !this.showingInstructions;\n }\n }, {\n key: \"handleClick\",\n value: function handleClick() {\n // do nothing, this is passed into SubmissionsListButton which expects an onClick handler,\n // but we don't want it to do anything since there are no submissions\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"showingInstructions\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleInstructions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleInstructions\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleClick\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Chip);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/notifications\", [\"exports\", \"@ember/component\", \"@ember/debug\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"jquery\", \"bocce/utilities/logout\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _debug, _component2, _service, _object, _jquery, _logout, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"bocce/utilities/logout\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n \n {{#unless this.session.course.isGettingStarted}}\n {{#unless this.session.user.profile.can_showcase}}\n {{#unless this.session.isLimitedStudentTerm}}\n {{#unless this.session.isInstructor}}\n
    \n !\n
    \n {{/unless}}\n {{/unless}}\n {{/unless}}\n {{/unless}}\n \n
    \n
    \n
    \n Notifications\n
    \n \n Clear All\n \n
    \n
      \n {{#each this.notifications as |notification|}}\n \n {{/each}}\n
    • \n No Notifications.\n
    • \n
    \n
      \n {{#unless this.session.isLimitedStudentTerm}}\n {{#unless this.session.isBCM}}\n {{#unless (or this.session.isSimplifiedTerm this.session.course.isExam)}}\n \n
      \n \n
      \n
      My Home
      \n \n \n
      \n \n
      \n
      Forum
      \n \n {{#unless this.session.isStaticContent}}\n {{#unless this.session.isLiveWorkshop}}\n \n
      \n \n
      \n
      Course Dashboard
      \n \n {{/unless}}\n {{/unless}}\n {{/unless}}\n \n
      \n \n
      \n
      Technical Help
      \n \n {{#unless this.session.isSimplifiedTerm}}\n \n
      \n \n
      \n
      Contact Advisor
      \n \n {{#unless this.session.isLiveWorkshop}}\n \n
      \n \n
      \n
      Library Resources
      \n \n {{/unless}}\n \n
      \n \n
      \n
      Academic Policies
      \n \n {{/unless}}\n {{/unless}}\n {{#if this.session.isInstructor}}\n \n
      \n \n
      \n
      Doodle Polls (Instructors Only)
      \n \n \n
      \n \n
      \n
      Meetup (Instructors Only)
      \n \n {{/if}}\n {{#unless this.session.isStaticContent}}\n \n
      \n \n
      \n
      \n Export My Calendar\n
      \n \n \n {{#unless this.session.course.isGettingStarted}}\n {{#unless this.session.user.profile.can_showcase}}\n {{#unless this.session.isInstructor}}\n
      \n !\n
      \n {{/unless}}\n {{/unless}}\n {{/unless}}\n
      \n \n
      \n
      Settings & Profile
      \n \n {{/unless}}\n {{/unless}}\n
    • \n Sign Out\n
    • \n
    \n
    \n {{#if this.prefPanelOn}}\n \n {{/if}}\n */\n {\n \"id\": \"YxQ6a/gr\",\n \"block\": \"[[[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Toggle User Menu\\\"],[16,0,[29,[\\\"portrait \\\",[52,[30,0,[\\\"notifications\\\"]],\\\"notif\\\"]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"toggleNotificationMenu\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"session\\\",\\\"user\\\",\\\"image_url\\\"]]]]],[14,\\\"alt\\\",\\\"User Portrait\\\"],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-angle-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"notification-count\\\"],[12],[1,\\\"\\\\n !\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"notification-menu menu\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"notification-menu-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"menu-title\\\"],[12],[1,\\\"\\\\n Notifications\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"clear-notifications \\\",[52,[30,0,[\\\"notifications\\\"]],\\\"visible\\\",\\\"hidden\\\"]]]],[24,\\\"aria-label\\\",\\\"Clear all notifications\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"clearAll\\\"]]],null],[12],[1,\\\"\\\\n Clear All\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"notifications-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"notifications\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,10],null,[[\\\"@notification\\\",\\\"@action\\\",\\\"@dismissAction\\\"],[[30,1],[30,0,[\\\"travelToNotification\\\"]],[30,0,[\\\"dismissNotification\\\"]]]],null],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"class-divider\\\"],[12],[1,\\\"\\\\n No Notifications.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"submenu-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isBCM\\\"]]],[[[41,[51,[28,[37,12],[[30,0,[\\\"session\\\",\\\"isSimplifiedTerm\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],null]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to MyHome\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"home\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-home\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"My Home\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Berklee POPP Forum\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"forum\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-users\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Forum\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isStaticContent\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isLiveWorkshop\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to my course dashboard\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"dashboard\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-tachometer-alt\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Course Dashboard\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Help page\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"help\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-question-circle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Technical Help\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isSimplifiedTerm\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Advisor page\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"advisor\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-comments\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Contact Advisor\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isLiveWorkshop\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Library Page\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"library\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-book\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Library Resources\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Academic Policies page\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"policies\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-graduation-cap\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Academic Policies\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Doodle Polls\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"doodle\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Doodle Polls (Instructors Only)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to Meetup Page\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"meetup\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Meetup (Instructors Only)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"session\\\",\\\"isStaticContent\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Export my Calendar to CSV\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goLink\\\"]],\\\"calendar\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"\\\\n Export My Calendar\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Open Settings and Profile creator\\\"],[24,0,\\\"submenu-item\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"openPrefPanel\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"notification-count\\\"],[12],[1,\\\"\\\\n !\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-cog\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Settings & Profile\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submenu-button \\\",[52,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]],\\\"limited\\\"]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"logOut\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-sign-out\\\"],[12],[13],[1,\\\" Sign Out\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"prefPanelOn\\\"]],[[[1,\\\" \\\"],[8,[39,14],null,[[\\\"@closePrefPanel\\\"],[[30,0,[\\\"closePrefPanel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"notification\\\"],[\\\"button\\\",\\\"if\\\",\\\"on\\\",\\\"img\\\",\\\"i\\\",\\\"unless\\\",\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"notification-item\\\",\\\"li\\\",\\\"or\\\",\\\"fn\\\",\\\"prefs\\\"]]\",\n \"moduleName\": \"bocce/components/notifications.hbs\",\n \"isStrictMode\": false\n });\n // app/controllers/notifications.js\n var PreviousQuestions = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function PreviousQuestions() {\n var _this;\n _classCallCheck(this, PreviousQuestions);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, PreviousQuestions, [].concat(args));\n _initializerDefineProperty(_this, \"router\", _descriptor, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"prefPanelOn\", _descriptor5, _this);\n return _this;\n }\n _inherits(PreviousQuestions, _Component);\n return _createClass(PreviousQuestions, [{\n key: \"notifications\",\n get: function get() {\n // Uncomment to display notifications!\n // return this.store.findAll('notification');\n return false;\n }\n }, {\n key: \"clearAll\",\n value: function clearAll() {\n var _this2 = this;\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n url: \"/interface/notifications/\",\n type: \"DELETE\",\n success: function success() {\n _this2.store.unloadAll(\"notification\");\n }\n });\n }\n }, {\n key: \"logOut\",\n value: function logOut() {\n (0, _logout.default)();\n }\n }, {\n key: \"goLink\",\n value: function goLink(type) {\n switch (type) {\n case \"home\":\n window.open(\"https://online.berklee.edu/my_home\", \"_blank\");\n break;\n case \"forum\":\n window.open(this.session.discourseUrl, \"_blank\");\n break;\n case \"dashboard\":\n window.open(\"https://\" + window.location.hostname + \"/#/dashboard\", \"_blank\");\n break;\n case \"profile\":\n window.open(\"http://network.online.berklee.edu/home\", \"_blank\");\n break;\n case \"help\":\n window.open(\"https://online.berklee.edu/help\", \"_blank\");\n break;\n case \"advisor\":\n window.open(\"https://online.berklee.edu/about/contact-us\", \"_blank\");\n break;\n case \"library\":\n window.open(\"https://online.berklee.edu/school/lms/library-links\", \"_blank\");\n break;\n case \"materials\":\n window.open(\"https://online.berklee.edu/school/lms/requirements\", \"_blank\");\n break;\n case \"policies\":\n window.open(\"https://online.berklee.edu/about/berklee-online-general-policies\", \"_blank\");\n break;\n case \"doodle\":\n window.open(\"http://www.doodle.com\", \"_blank\");\n break;\n case \"meetup\":\n window.open(\"http://www.meetup.com\", \"_blank\");\n break;\n case \"calendar\":\n {\n var currentUser = this.session.user;\n var icsLink = \"https://\" + window.location.hostname + \"/interface/calendar-export/\" + currentUser.get(\"calendarHash\");\n var bodyMarkup = \"\";\n /* eslint-disable-next-line ember/no-jquery */\n if (!_jquery.default.isMobile) {\n bodyMarkup += '';\n }\n bodyMarkup += \"
    or download the feed.\";\n var message = \"Copy the link below and paste it into any calendar app that takes iCal feeds (Google Calendar, iCal, Outlook, etc.)\";\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Dismiss\"],\n body: bodyMarkup\n });\n break;\n }\n default:\n break;\n }\n }\n }, {\n key: \"dismissNotification\",\n value: function dismissNotification(id) {\n this.store.findRecord(\"notification\", id).then(function (post) {\n post.destroyRecord();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".user-menu\").click();\n }, function (err) {\n (0, _debug.debug)(\"Could not delete notification.\", err);\n });\n }\n }, {\n key: \"travelToNotification\",\n value: function travelToNotification(type, id) {\n this.router.transitionTo(\"classroom.\".concat(type), id);\n }\n }, {\n key: \"closePrefPanel\",\n value: function closePrefPanel() {\n this.prefPanelOn = false;\n }\n }, {\n key: \"openPrefPanel\",\n value: function openPrefPanel() {\n this.prefPanelOn = true;\n }\n }, {\n key: \"toggleNotificationMenu\",\n value: function toggleNotificationMenu() {\n var menuElem = document.querySelector(\".menu.notification-menu\");\n if (menuElem) {\n menuElem.classList.toggle(\"active\");\n }\n var menuBackdrop = document.querySelector(\".clear-backdrop.notification-menu\");\n if (menuBackdrop) {\n menuBackdrop.classList.toggle(\"active\");\n } else {\n var clear = document.querySelector(\".clear-backdrop\");\n if (clear) {\n clear.classList.toggle(\"active\");\n }\n }\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"prefPanelOn\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"clearAll\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearAll\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logOut\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logOut\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goLink\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dismissNotification\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissNotification\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"travelToNotification\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"travelToNotification\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePrefPanel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closePrefPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openPrefPanel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openPrefPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleNotificationMenu\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleNotificationMenu\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PreviousQuestions);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/prefs\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"bocce/helpers/image\", \"bocce/helpers/upload\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _tracking, _image, _upload, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"bocce/helpers/image\",0,\"bocce/helpers/upload\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n
    \n

    Preferences

    \n \n
    \n \n
    \n
    \n \n \n \n \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n \n {{#unless this.session.isInstructor}}\n {{#unless this.session.isLiveWorkshop}}\n
    \n Showcase Permission*\n

    I give permission for my posts and assignments to be\n posted by my instructor to the course showcase page, for any of my courses.

    \n
    \n \n \n \n
    \n
    \n {{/unless}}\n {{else}}\n
    \n Resubmit Permission*\n

    Allow students to resubmit assignments to this course -\n {{this.session.course.title}}, Section\n {{this.session.section.number}}\n - once they have been graded.

    \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n {{/unless}}\n \n
    \n Keyboard Shortcuts*\n

    Enable accessibility keyboard shortcuts. Requires a page\n refresh to take effect.

    \n
    \n \n \n
    \n
    \n
    \n \n
    \n Don't Save\n Save Preferences\n
    \n \n */\n {\n \"id\": \"13ah6WjH\",\n \"block\": \"[[[11,0],[24,\\\"aria-hidden\\\",\\\"true\\\"],[16,0,[29,[\\\"prefs-dialog-backdrop \\\",[52,[30,0,[\\\"avatarUploading\\\"]],\\\"prefs-dialog-backdrop--uploading\\\"]]]],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-labelledby\\\",\\\"prefs-dialog-title\\\"],[14,0,\\\"prefs-dialog\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"prefs-dialog__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,1,\\\"prefs-dialog-title\\\"],[14,0,\\\"prefs-dialog__title\\\"],[12],[1,\\\"Preferences\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Close Preferences\\\"],[24,0,\\\"prefs-dialog__close\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"prefs-dialog__body scrollbar\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,0,\\\"prefs-dialog__field prefs-dialog__field--avatar\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"prefs-dialog__avatar\\\\n \\\",[52,[30,0,[\\\"avatarUploading\\\"]],\\\"prefs-dialog__avatar--uploading\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"avatarUrl\\\"]],\\\"prefs-dialog__avatar--remove\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"alt\\\",\\\"\\\"],[15,\\\"src\\\",[29,[[52,[30,0,[\\\"avatarUrl\\\"]],[30,0,[\\\"avatarUrl\\\"]],[30,0,[\\\"session\\\",\\\"user\\\",\\\"image_url\\\"]]]]]],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Revert Current Avatar\\\"],[24,0,\\\"prefs-dialog__avatar-revert avatar-rem\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"removeAvatar\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[8,[39,9],[[24,\\\"aria-label\\\",\\\"Upload New Avatar\\\"],[24,0,\\\"prefs-dialog__avatar-upload avatar-upload\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"changeAvatar\\\"]]],null]],[[\\\"@value\\\",\\\"@type\\\",\\\"@accept\\\"],[[30,0,[\\\"newAvatar\\\"]],\\\"file\\\",\\\"image/*\\\"]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,0,\\\"prefs-dialog__field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"prefs-dialog-bio\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Bio\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,1,\\\"prefs-dialog-bio\\\"],[24,0,\\\"prefs-dialog__textarea\\\"],[24,\\\"placeholder\\\",\\\"Tell us about yourself...\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"prefBio\\\"]]]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,0,\\\"prefs-dialog__field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"prefs-dialog-pronouns\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Personal Pronouns\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,1,\\\"prefs-dialog-pronouns\\\"],[24,0,\\\"prefs-dialog__textarea\\\"],[24,\\\"placeholder\\\",\\\"Please list your personal pronouns here...\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"prefPronouns\\\"]]]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,0,\\\"prefs-dialog__field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"prefs-dialog-loc\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Location\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,9],[[24,1,\\\"prefs-dialog-loc\\\"],[24,0,\\\"prefs-dialog__input\\\"],[24,\\\"placeholder\\\",\\\"Where are you?\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"prefLoc\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isLiveWorkshop\\\"]]],[[[1,\\\" \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"prefs-dialog__field\\\"],[14,\\\"aria-required\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"legend\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Showcase Permission\\\"],[10,1],[14,0,\\\"prefs-dialog__field-required\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"prefs-dialog__field-desc\\\"],[12],[1,\\\"I give permission for my posts and assignments to be\\\\n posted by my instructor to the course showcase page, for any of my courses.\\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"prefs-dialog__radio-group\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"changeShowcasePerm\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"showcase-perm-yes\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"prefs-dialog__radio-input showcase-perm\\\"],[14,3,\\\"showcase-perm\\\"],[14,1,\\\"showcase-perm-yes\\\"],[14,2,\\\"yes\\\"],[15,\\\"checked\\\",[29,[[52,[28,[37,17],[\\\"yes\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null],\\\"true\\\"]]]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"showcase-perm-no\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"prefs-dialog__radio-input showcase-perm\\\"],[14,3,\\\"showcase-perm\\\"],[14,1,\\\"showcase-perm-no\\\"],[14,2,\\\"no\\\"],[15,\\\"checked\\\",[29,[[52,[28,[37,17],[\\\"no\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null],\\\"true\\\"]]]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"showcase-perm-anon\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"prefs-dialog__radio-input showcase-perm\\\"],[14,3,\\\"showcase-perm\\\"],[14,1,\\\"showcase-perm-anon\\\"],[14,2,\\\"anon\\\"],[15,\\\"checked\\\",[29,[[52,[28,[37,17],[\\\"anon\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null],\\\"true\\\"]]]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"Yes, but don't include my name or profile\\\\n avatar\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"prefs-dialog__field\\\"],[14,\\\"aria-required\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"legend\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Resubmit Permission\\\"],[10,1],[14,0,\\\"prefs-dialog__field-required\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"prefs-dialog__field-desc\\\"],[12],[1,\\\"Allow students to resubmit assignments to this course -\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"course\\\",\\\"title\\\"]]],[1,\\\", Section\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"section\\\",\\\"number\\\"]]],[1,\\\"\\\\n - once they have been graded.\\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"prefs-dialog__radio-group\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"changeResubPerm\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"resubmit-perm-yes\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"prefs-dialog__radio-input resubmit-perm\\\\n \\\",[52,[28,[37,17],[\\\"yes\\\",[30,0,[\\\"existingResubPerm\\\"]]],null],\\\"checked\\\"]]]],[14,3,\\\"resubmit-perm\\\"],[14,1,\\\"resubmit-perm-yes\\\"],[14,2,\\\"yes\\\"],[15,\\\"checked\\\",[28,[37,17],[\\\"yes\\\",[30,0,[\\\"existingResubPerm\\\"]]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"resubmit-perm-no\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"prefs-dialog__radio-input resubmit-perm\\\\n \\\",[52,[28,[37,17],[\\\"no\\\",[30,0,[\\\"existingResubPerm\\\"]]],null],\\\"checked\\\"]]]],[14,3,\\\"resubmit-perm\\\"],[14,1,\\\"resubmit-perm-no\\\"],[14,2,\\\"no\\\"],[15,\\\"checked\\\",[28,[37,17],[\\\"no\\\",[30,0,[\\\"existingResubPerm\\\"]]],null]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,0,\\\"prefs-dialog__field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"prefs-dialog-late-grading\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Late Grading Policy\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,1,\\\"prefs-dialog-late-grading\\\"],[24,0,\\\"prefs-dialog__textarea prefs-dialog__textarea--tall\\\"],[24,\\\"placeholder\\\",\\\"What is your late grading policy for this course...\\\"],[4,[38,18],[[30,0,[\\\"focusLateGradingPolicyField\\\"]]],null]],[[\\\"@value\\\"],[[30,0,[\\\"lateGradingPolicy\\\"]]]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"prefs-dialog__field\\\"],[14,\\\"aria-required\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"legend\\\"],[14,0,\\\"prefs-dialog__field-label\\\"],[12],[1,\\\"Keyboard Shortcuts\\\"],[10,1],[14,0,\\\"prefs-dialog__field-required\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"*\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"prefs-dialog__field-desc\\\"],[12],[1,\\\"Enable accessibility keyboard shortcuts. Requires a page\\\\n refresh to take effect.\\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"prefs-dialog__radio-group\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"changeKeyboardShortcutsPerm\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"keyboard-shortcuts-perm-yes\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[15,0,[29,[\\\"prefs-dialog__radio-input keyboard-shortcuts-perm\\\\n \\\",[52,[51,[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"keyboard_shortcuts\\\"]]],\\\"checked\\\"],\\\"\\\\n \\\",[52,[28,[37,17],[\\\"yes\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"keyboard_shortcuts\\\"]]],null],\\\"checked\\\"]]]],[14,3,\\\"keyboard-shortcuts-perm\\\"],[14,1,\\\"keyboard-shortcuts-perm-yes\\\"],[14,2,\\\"yes\\\"],[15,\\\"checked\\\",[29,[[52,[28,[37,17],[\\\"yes\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"keyboard_shortcuts\\\"]]],null],\\\"true\\\"]]]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"prefs-dialog__radio-option\\\"],[14,\\\"for\\\",\\\"keyboard-shortcuts-perm-no\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"prefs-dialog__radio-input keyboard-shortcuts-perm\\\"],[14,3,\\\"keyboard-shortcuts-perm\\\"],[14,1,\\\"keyboard-shortcuts-perm-no\\\"],[14,2,\\\"no\\\"],[15,\\\"checked\\\",[29,[[52,[28,[37,17],[\\\"no\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"profile\\\",\\\"keyboard_shortcuts\\\"]]],null],\\\"true\\\"]]]],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"prefs-dialog__radio-label\\\"],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"footer\\\"],[14,0,\\\"prefs-dialog__footer\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Close without saving\\\"],[24,0,\\\"button--white\\\"],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,1]],null],[12],[1,\\\"Don't Save\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"aria-label\\\",[52,[30,0,[\\\"prefChangesMade\\\"]],\\\"Save Preferences\\\",\\\"Save Preferences - no changes made\\\"]],[24,0,\\\"button--primary\\\"],[24,1,\\\"save-prefs-button\\\"],[16,\\\"disabled\\\",[28,[37,20],[[28,[37,21],[[30,0,[\\\"prefChangesMade\\\"]]],null],[30,0,[\\\"avatarUploading\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"savePrefs\\\"]]],null],[12],[1,\\\"Save Preferences\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@closePrefPanel\\\"],[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"header\\\",\\\"h2\\\",\\\"button\\\",\\\"i\\\",\\\"section\\\",\\\"img\\\",\\\"input\\\",\\\"label\\\",\\\"textarea\\\",\\\"unless\\\",\\\"fieldset\\\",\\\"legend\\\",\\\"span\\\",\\\"p\\\",\\\"same\\\",\\\"did-insert\\\",\\\"footer\\\",\\\"or\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/prefs.hbs\",\n \"isStrictMode\": false\n });\n var PrefsComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function PrefsComponent(owner, args) {\n var _this$session$user$ge, _this$session$user$ge2, _this$session$user$ge3;\n var _this;\n _classCallCheck(this, PrefsComponent);\n _this = _callSuper(this, PrefsComponent, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"avatarUrl\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"newAvatar\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"avatarUploading\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"prefBio\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"prefPronouns\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"prefLoc\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"lateGradingPolicy\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"fontChanged\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"showcasePermChanged\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"resubPermChanged\", _descriptor11, _this);\n _initializerDefineProperty(_this, \"keyboardShortcutPermChanged\", _descriptor12, _this);\n _this.prefBio = ((_this$session$user$ge = _this.session.user.get(\"profile\")) === null || _this$session$user$ge === void 0 ? void 0 : _this$session$user$ge.bio) || \"\";\n _this.prefPronouns = ((_this$session$user$ge2 = _this.session.user.get(\"profile\")) === null || _this$session$user$ge2 === void 0 ? void 0 : _this$session$user$ge2.pronouns) || \"\";\n _this.prefLoc = ((_this$session$user$ge3 = _this.session.user.get(\"profile\")) === null || _this$session$user$ge3 === void 0 ? void 0 : _this$session$user$ge3.location) || \"\";\n _this.lateGradingPolicy = _this.session.lateGradingPolicy || \"\";\n return _this;\n }\n _inherits(PrefsComponent, _Component);\n return _createClass(PrefsComponent, [{\n key: \"prefChangesMade\",\n get: function get() {\n return this.keyboardShortcutPermChanged || this.lateGradingPolicyChanged || this.showcasePermChanged || this.resubPermChanged || this.bioChanged || this.pronounsChanged || this.locChanged || this.avatarUrl !== \"\" || this.fontChanged;\n }\n }, {\n key: \"bioChanged\",\n get: function get() {\n var _this$session$user$ge4;\n var existingBio = ((_this$session$user$ge4 = this.session.user.get(\"profile\")) === null || _this$session$user$ge4 === void 0 ? void 0 : _this$session$user$ge4.bio) || \"\",\n prefBio = this.prefBio;\n return existingBio !== prefBio;\n }\n }, {\n key: \"pronounsChanged\",\n get: function get() {\n var _this$session$user$ge5;\n var existingPronouns = ((_this$session$user$ge5 = this.session.user.get(\"profile\")) === null || _this$session$user$ge5 === void 0 ? void 0 : _this$session$user$ge5.pronouns) || \"\",\n prefPronouns = this.prefPronouns;\n return existingPronouns !== prefPronouns;\n }\n }, {\n key: \"lateGradingPolicyChanged\",\n get: function get() {\n var existingGradingPolicy = this.session.lateGradingPolicy || \"\";\n return existingGradingPolicy !== this.lateGradingPolicy;\n }\n }, {\n key: \"locChanged\",\n get: function get() {\n var _this$session$user$ge6;\n var existingLoc = ((_this$session$user$ge6 = this.session.user.get(\"profile\")) === null || _this$session$user$ge6 === void 0 ? void 0 : _this$session$user$ge6.location) || \"\";\n return existingLoc !== this.prefLoc;\n }\n\n // Persisted per-section value; the @tracked resubPermChanged field above\n // holds the unsaved working value (false until the instructor picks one).\n }, {\n key: \"existingResubPerm\",\n get: function get() {\n var _this$session$user$ge7;\n if ((_this$session$user$ge7 = this.session.user.get(\"profile\")) !== null && _this$session$user$ge7 !== void 0 && _this$session$user$ge7.can_resubmit) {\n var _this$session$user$ge8;\n return (_this$session$user$ge8 = this.session.user.get(\"profile\")) === null || _this$session$user$ge8 === void 0 ? void 0 : _this$session$user$ge8.can_resubmit[this.session.section.get(\"id\")];\n }\n return \"yes\";\n }\n }, {\n key: \"focusLateGradingPolicyField\",\n value: function focusLateGradingPolicyField(element) {\n if (this.args.focusLateGradingPolicy) {\n element.focus();\n }\n }\n }, {\n key: \"closePrefPanel\",\n value: function closePrefPanel() {\n this.prefPanelOn = false;\n /* eslint-disable-next-line ember/no-get */\n this.set(\"prefBio\", this.get(\"session.user.profile.bio\") || \"\");\n this.set(\"prefPronouns\", this.get(\"session.user.profile.pronouns\") || \"\");\n /* eslint-disable-next-line ember/no-get */\n this.set(\"prefLoc\", this.get(\"session.user.profile.location\") || \"\");\n this.set(\"showcasePermChanged\", false);\n this.set(\"fontChanged\", false);\n this.send(\"removeAvatar\");\n this.set(\"newAvatar\", \"\");\n }\n }, {\n key: \"removeAvatar\",\n value: function removeAvatar() {\n this.avatarUrl = false;\n this.newAvatar = \"\";\n }\n }, {\n key: \"changeFont\",\n value: function changeFont(value) {\n /* eslint-disable-next-line ember/no-jquery */\n $(\".prefs-dialog .font-size\").removeClass(\"checked\");\n this.fontChanged = value;\n }\n }, {\n key: \"adjustFont\",\n value: function adjustFont(size) {\n /* eslint-disable-next-line ember/no-jquery */\n var fontSetter = $(\".font-setter\");\n fontSetter.find(\".fa-font\").removeClass(\"active\");\n if (size === \"small\") {\n /* eslint-disable-next-line ember/no-jquery */\n $(\"body\").css(\"font-size\", \"12px\");\n fontSetter.find(\".font-setter-small\").addClass(\"active\");\n } else if (size === \"medium\") {\n /* eslint-disable-next-line ember/no-jquery */\n $(\"body\").css(\"font-size\", \"14px\");\n fontSetter.find(\".font-setter-medium\").addClass(\"active\");\n } else if (size === \"large\") {\n /* eslint-disable-next-line ember/no-jquery */\n $(\"body\").css(\"font-size\", \"20px\");\n fontSetter.find(\".font-setter-large\").addClass(\"active\");\n }\n }\n }, {\n key: \"changeShowcasePerm\",\n value: function changeShowcasePerm(event) {\n this.showcasePermChanged = event.target.value;\n /* eslint-disable-next-line ember/no-jquery */\n $(\".prefs-dialog .showcase-perm\").removeClass(\"checked\");\n this.confirmDialog.show({\n subtitle: \"NOTE: This change will only apply to future showcases. All currently showcased posts will remain showcased.\",\n choices: [\"I Understand\"]\n });\n }\n }, {\n key: \"changeKeyboardShortcutsPerm\",\n value: function changeKeyboardShortcutsPerm(event) {\n this.keyboardShortcutPermChanged = event.target.value;\n /* eslint-disable-next-line ember/no-jquery */\n $(\".prefs-dialog .keyboard-shortcuts-perm\").removeClass(\"checked\");\n }\n }, {\n key: \"changeResubPerm\",\n value: function changeResubPerm(event) {\n this.resubPermChanged = event.target.value;\n /* eslint-disable-next-line ember/no-jquery */\n $(\".prefs-dialog .resubmit-perm\").removeClass(\"checked\");\n }\n }, {\n key: \"changeAvatar\",\n value: function changeAvatar() {\n var _this2 = this;\n /* eslint-disable-next-line ember/no-jquery */\n var input = $(\".avatar-upload\").get(0);\n if (input && input.files && input.files[0]) {\n this.avatarUploading = true;\n _image.BocceImage.from_file(input.files[0]).then(function (img) {\n img.crop_to_square(300).then(function () {\n img.to_blob().then(function (blob) {\n blob.name = \"avatar.png\";\n\n /* eslint-disable-next-line ember/no-get */\n (0, _upload.default)(blob, _this2.session.user.get(\"id\"), _this2.store, \"my files/profile photos\", true).then(function (fi_url) {\n _this2.avatarUrl = fi_url;\n _this2.avatarUploading = false;\n input.value = \"\";\n });\n });\n });\n });\n }\n }\n }, {\n key: \"savePrefs\",\n value: function savePrefs() {\n var _this3 = this;\n var prefs = {},\n set = false,\n refresh_needed = false,\n can_resubmit_col = this.session.user.get(\"profile.can_resubmit\") || {};\n\n // Note: .profile cannot be accessed directly because it is a computed property, so .get('profile') is needed\n if (this.session.user.get(\"profile\")) {\n prefs = this.session.user.get(\"profile\");\n set = true;\n }\n if (!set && this.bioChanged) {\n prefs.bio = this.prefBio;\n } else if (set && this.bioChanged) {\n (0, _object.set)(prefs, \"bio\", this.prefBio);\n }\n if (!set && this.pronounsChanged) {\n prefs.pronouns = this.prefPronouns;\n } else if (set && this.pronounsChanged) {\n (0, _object.set)(prefs, \"pronouns\", this.prefPronouns);\n }\n if (!set && this.locChanged) {\n prefs.location = this.prefLoc;\n } else if (set && this.locChanged) {\n (0, _object.set)(prefs, \"location\", this.prefLoc);\n }\n if (!set && this.resubPermChanged) {\n can_resubmit_col[this.session.section.get(\"id\")] = this.resubPermChanged;\n prefs.can_showcase = can_resubmit_col;\n } else if (set && this.resubPermChanged) {\n can_resubmit_col[this.session.section.get(\"id\")] = this.resubPermChanged;\n (0, _object.set)(prefs, \"can_resubmit\", can_resubmit_col);\n }\n if (!set && this.keyboardShortcutPermChanged) {\n prefs.keyboard_shortcuts = this.keyboardShortcutPermChanged;\n refresh_needed = true;\n } else if (set && this.keyboardShortcutPermChanged) {\n (0, _object.set)(prefs, \"keyboard_shortcuts\", this.keyboardShortcutPermChanged);\n refresh_needed = true;\n }\n if (!set && this.showcasePermChanged) {\n prefs.can_showcase = this.showcasePermChanged;\n } else if (set && this.showcasePermChanged) {\n (0, _object.set)(prefs, \"can_showcase\", this.showcasePermChanged);\n }\n if (!set && this.fontChanged) {\n prefs.font_size = this.fontChanged;\n } else if (set && this.fontChanged) {\n (0, _object.set)(prefs, \"font_size\", this.fontChanged);\n }\n this.store.findRecord(\"user\", this.session.user.get(\"id\")).then(function (record) {\n record.set(\"profile_updated\", true);\n if (_this3.lateGradingPolicyChanged) {\n var courseCodeWithoutSection = _this3.session.courseCodeWithoutSection;\n\n //the profile/bio won't get saved in canvas with the late grading policy. This\n //object is just used to carry the data to interface. Interface will then\n //save the late grading policy and then delete the late grading policy\n //from profile/bio.\n prefs[\"lateGradingPolicy\"] = _defineProperty({}, courseCodeWithoutSection, _this3.lateGradingPolicy);\n }\n record.set(\"profile\", prefs);\n if (_this3.avatarUrl && _this3.avatarUrl !== \"\") {\n record.set(\"image_url\", _this3.avatarUrl);\n }\n record.save();\n _this3.args.closePrefPanel();\n if (refresh_needed) {\n _this3.confirmDialog.show({\n title: \"NOTE: Please refresh the browser for the settings to take effect.\",\n choices: [\"I understand\"]\n });\n }\n if (prefs.font_size) {\n _this3.args.adjustFont(prefs.font_size);\n }\n });\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"avatarUrl\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"newAvatar\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"avatarUploading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"prefBio\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"prefPronouns\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"prefLoc\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"lateGradingPolicy\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"fontChanged\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"showcasePermChanged\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"resubPermChanged\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"keyboardShortcutPermChanged\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"focusLateGradingPolicyField\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"focusLateGradingPolicyField\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closePrefPanel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closePrefPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAvatar\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAvatar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeFont\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeFont\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"adjustFont\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"adjustFont\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeShowcasePerm\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeShowcasePerm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeKeyboardShortcutsPerm\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeKeyboardShortcutsPerm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeResubPerm\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeResubPerm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeAvatar\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeAvatar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"savePrefs\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"savePrefs\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PrefsComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quick-grader\", [\"exports\", \"@glimmer/component\", \"@ember/component\", \"bocce/helpers/same\", \"@ember/modifier\", \"@ember/helper\", \"@ember/template-factory\"], function (_exports, _component, _component2, _same, _modifier, _helper, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _QuickGrader;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/component\",0,\"bocce/helpers/same\",0,\"@ember/modifier\",0,\"@ember/helper\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var QuickGrader = _exports.default = /*#__PURE__*/function (_Component) {\n function QuickGrader() {\n _classCallCheck(this, QuickGrader);\n return _callSuper(this, QuickGrader, arguments);\n }\n _inherits(QuickGrader, _Component);\n return _createClass(QuickGrader);\n }(_component.default);\n _QuickGrader = QuickGrader;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    Assign Grade:
    \n
    \n
    \n \n %\n
    \n
    \n
    \n
    \n {{#each @grades as |grade|}}\n \n {{grade}}\n {{/each}}\n
    \n \n
    \n
    \n \n \n \n \n \n \n
    \n
    \n
    \n */\n {\n \"id\": \"WJy9xxzl\",\n \"block\": \"[[[10,0],[14,0,\\\"quickgrader\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__label\\\"],[12],[1,\\\"Assign Grade:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__text-grader-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__text-grader\\\"],[12],[1,\\\"\\\\n \\\"],[8,[32,0],[[24,0,\\\"quickgrader__percent-input\\\"],[4,[32,1],[\\\"input\\\",[30,2]],null]],[[\\\"@value\\\"],[[30,1]]],null],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"quickgrader__text-grader-percent-sign\\\"],[12],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__grades\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__letter-grades\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,1],[[28,[31,1],[[30,3]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"input\\\"],[16,0,[29,[[52,[28,[32,2],[\\\"0\\\",[30,5,[\\\"score\\\"]]],null],\\\"un\\\"],[52,[28,[32,2],[[30,4],[30,5,[\\\"grade\\\"]]],null],\\\"checked\\\"]]]],[24,3,\\\"grade\\\"],[16,1,[29,[[30,4]]]],[16,2,[29,[[30,4]]]],[24,0,\\\"quickgrader__radio\\\"],[24,4,\\\"radio\\\"],[4,[32,1],[\\\"click\\\",[28,[32,3],[[30,6],[30,4]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[15,0,[29,[\\\"quickgrader__grade-letter \\\",[52,[28,[32,2],[\\\"F\\\",[30,4]],null],\\\"f-grade\\\"]]]],[15,\\\"for\\\",[29,[[30,4]]]],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__actions\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader__spacer\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[11,\\\"input\\\"],[16,0,[29,[[52,[28,[32,2],[\\\"0\\\",[30,5,[\\\"score\\\"]]],null],\\\"checked\\\"]]]],[24,3,\\\"grade\\\"],[24,0,\\\"quickgrader__radio\\\"],[24,1,\\\"X\\\"],[24,2,\\\"x\\\"],[24,4,\\\"radio\\\"],[4,[32,1],[\\\"click\\\",[28,[32,3],[[30,6],\\\"x\\\"],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quickgrader__grade-action quickgrader__grade-action--no-grade\\\"],[14,\\\"for\\\",\\\"X\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\"No Credit\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-ban\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[11,\\\"input\\\"],[24,3,\\\"grade\\\"],[16,0,[29,[\\\"quickgrader__radio\\\\n \\\",[52,[28,[32,2],[[30,5,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],\\\"checked\\\"]]]],[24,1,\\\"R\\\"],[24,2,\\\"r\\\"],[24,4,\\\"radio\\\"],[4,[32,1],[\\\"click\\\",[28,[32,3],[[30,6],\\\"r\\\"],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quickgrader__grade-action quickgrader__grade-action--resubmit\\\"],[14,\\\"for\\\",\\\"R\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@stagedScore\\\",\\\"@stageGrade\\\",\\\"@grades\\\",\\\"grade\\\",\\\"@submission\\\",\\\"@switchSubmissionGrade\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/quick-grader.js\",\n \"scope\": function scope() {\n return [_component2.Input, _modifier.on, _same.default, _helper.fn];\n },\n \"isStrictMode\": true\n }), _QuickGrader);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quickgrader-student-list\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if @showHeader}}\n
    \n

    Submissions\n {{if\n @openAssignmentView.assignment.submissions.isFulfilled\n @openAssignmentView.assignment.submissions.length\n }}

    \n
    \n {{#if @isInstructor}}\n {{#if @openAssignmentView.assignment.submissions}}\n \n {{#if this.downloadingSubmissions}}\n \n {{else}}\n \n {{/if}}\n \n {{/if}}\n {{/if}}\n {{#if @onClose}}\n \n \n \n {{/if}}\n
    \n
    \n
    \n No submissions.\n
    \n {{/if}}\n \n {{#if @openAssignmentView.user}}\n {{#if @prevSubmission}}\n \n {{/if}}\n {{/if}}\n \n
      \n {{#if @isInstructor}}\n {{#if @openAssignment.hasHiddenSubmissions}}\n
    • \n Publicize student submissions\n
    • \n {{/if}}\n {{/if}}\n \n \n
    \n \n {{#if @openAssignmentView.user}}\n {{#if @nextSubmission}}\n \n {{/if}}\n {{/if}}\n \n */\n {\n \"id\": \"2kBwfLoZ\",\n \"block\": \"[[[11,0],[16,0,[29,[\\\"quickgrader-student-list \\\",[52,[30,1],\\\"hidden\\\"]]]],[4,[38,2],null,[[\\\"closed\\\"],[[30,1]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quickgrader-student-list-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Submissions\\\\n \\\"],[10,1],[14,0,\\\"sub-count\\\"],[12],[1,[52,[30,3,[\\\"assignment\\\",\\\"submissions\\\",\\\"isFulfilled\\\"]],[30,3,[\\\"assignment\\\",\\\"submissions\\\",\\\"length\\\"]]]],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quickgrader-student-list-actions\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[41,[30,3,[\\\"assignment\\\",\\\"submissions\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[30,0,[\\\"submissionDownloader\\\",\\\"active\\\"]]],[16,0,[29,[\\\"icon-button icon-button__white icon-button--sm download-submissions\\\\n \\\",[52,[30,0,[\\\"submissionDownloader\\\",\\\"active\\\"]],\\\"disabled\\\",\\\"\\\"]]]],[24,\\\"aria-label\\\",\\\"Download all student submissions\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"downloadAllSubmissions\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadingSubmissions\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-download\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,5],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Close submissions list\\\"],[24,0,\\\"close-student-list icon-button icon-button__white icon-button--sm\\\"],[4,[38,6],[\\\"click\\\",[30,5]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-xmark\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"submissions-count \\\",[52,[30,3,[\\\"assignment\\\",\\\"submissions\\\"]],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n No submissions.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"user\\\"]],[[[41,[30,6],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to previous student\\\"],[24,0,\\\"prev-student\\\"],[4,[38,6],[\\\"click\\\",[28,[37,8],[[30,7],[30,6]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"student-list scrollbar\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[41,[30,8,[\\\"hasHiddenSubmissions\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"clearfix instructor\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"publicize-button editor-save-btn active\\\"],[4,[38,6],[\\\"click\\\",[28,[37,8],[[30,9],[30,8],false],null]],null],[12],[1,\\\"Publicize student submissions\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@model\\\",\\\"@viewSubmission\\\",\\\"@isInstructor\\\",\\\"@currentSubmissionAuthor\\\"],[[52,[30,3,[\\\"assignment\\\"]],[30,3],[30,8]],[30,7],[30,4],[30,10]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,3,[\\\"user\\\"]],[[[41,[30,11],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"proceed to next student's submission\\\"],[24,0,\\\"next-student\\\"],[4,[38,6],[\\\"click\\\",[28,[37,8],[[30,7],[30,11]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"@closed\\\",\\\"@showHeader\\\",\\\"@openAssignmentView\\\",\\\"@isInstructor\\\",\\\"@onClose\\\",\\\"@prevSubmission\\\",\\\"@viewSubmission\\\",\\\"@openAssignment\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@currentSubmissionAuthor\\\",\\\"@nextSubmission\\\"],[\\\"div\\\",\\\"if\\\",\\\"narrow-when-content-tight\\\",\\\"h1\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"fn\\\",\\\"ul\\\",\\\"li\\\",\\\"grade-student-list/list\\\"]]\",\n \"moduleName\": \"bocce/components/quickgrader-student-list.hbs\",\n \"isStrictMode\": false\n });\n var AssignmentSubmissionBoxComponent = _exports.default = (_dec = (0, _service.inject)(\"submission-downloader\"), _class = /*#__PURE__*/function (_Component) {\n function AssignmentSubmissionBoxComponent() {\n var _this;\n _classCallCheck(this, AssignmentSubmissionBoxComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, AssignmentSubmissionBoxComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"submissionDownloader\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"downloadingSubmissions\", _descriptor5, _this);\n return _this;\n }\n _inherits(AssignmentSubmissionBoxComponent, _Component);\n return _createClass(AssignmentSubmissionBoxComponent, [{\n key: \"downloadAllSubmissions\",\n value: function () {\n var _downloadAllSubmissions = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n _context.p = 0;\n _context.n = 1;\n return this.submissionDownloader.download({\n courseId: this.session.get(\"course.id\"),\n assignmentId: this.args.openAssignmentView.assignment.id.split(\"-\")[0]\n });\n case 1:\n _context.n = 3;\n break;\n case 2:\n _context.p = 2;\n _t = _context.v;\n console.error(\"Error occurred downloading submissions: \".concat(_t.message));\n this.confirmDialog.show({\n subtitle: \"An error occurred downloading the submissions. Please reload the page and try again.\"\n });\n case 3:\n return _context.a(2);\n }\n }, _callee, this, [[0, 2]]);\n }));\n function downloadAllSubmissions() {\n return _downloadAllSubmissions.apply(this, arguments);\n }\n return downloadAllSubmissions;\n }()\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"submissionDownloader\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"downloadingSubmissions\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"downloadAllSubmissions\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"downloadAllSubmissions\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, AssignmentSubmissionBoxComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-admin/delete-latest-attempt\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"veEuqtBV\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@copy\\\",\\\"@noConfig\\\",\\\"@operationOnAction\\\"],[\\\"Delete all quiz attempts\\\",true,[30,0,[\\\"onAction\\\"]]]],null]],[],[\\\"quiz-admin/operation\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-admin/delete-latest-attempt.hbs\",\n \"isStrictMode\": false\n });\n var DeleteLastAttempt = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function DeleteLastAttempt() {\n var _this;\n _classCallCheck(this, DeleteLastAttempt);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, DeleteLastAttempt, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(DeleteLastAttempt, _Component);\n return _createClass(DeleteLastAttempt, [{\n key: \"init\",\n value: function init() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _superPropGet(DeleteLastAttempt, \"init\", this, 3)(args);\n this.set(\"onAction\", this._onAction.bind(this));\n }\n }, {\n key: \"_onAction\",\n value: function _onAction() {\n var self = this;\n return new Promise(function (resolve, reject) {\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/sections/\".concat(self.session.get(\"section.id\"), \"/quizzes/\").concat(self.selectedQuiz.get(\"id\"), \"/attempts/\").concat(self.selectedUser.get(\"id\"), \"/delete\"),\n success: function success(result) {\n self.selectedUser.set(\"quizAttemptMade\", false);\n resolve(result);\n },\n error: function error() {\n resolve(\"error\");\n }\n });\n });\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"_onAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onAction\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, DeleteLastAttempt);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-admin/operation\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
    {{@copy}}
    \n {{#unless @noConfig}}\n
    \n {{yield}}\n
    \n {{/unless}}\n {{#if (or this.result this.performingAction)}}\n
    \n {{#if this.performingAction}}\n \n {{else if this.result}}\n {{this.result}}\n {{/if}}\n
    \n {{/if}}\n \n \n \n \n \n */\n {\n \"id\": \"HOoOXx5f\",\n \"block\": \"[[[10,\\\"tr\\\"],[14,0,\\\"quiz-operation\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"quiz-operation-info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-operation-copy\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,2]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-operation-config\\\"],[12],[1,\\\"\\\\n \\\"],[18,4,null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,6],[[30,0,[\\\"result\\\"]],[30,0,[\\\"performingAction\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-operation-result\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"performingAction\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"result\\\"]],[[[1,\\\" \\\"],[1,[30,0,[\\\"result\\\"]]],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"td\\\"],[24,0,\\\"quiz-operation-action\\\"],[4,[38,8],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-check\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@copy\\\",\\\"@noConfig\\\",\\\"@operationOnAction\\\",\\\"&default\\\"],[\\\"tr\\\",\\\"td\\\",\\\"div\\\",\\\"unless\\\",\\\"yield\\\",\\\"if\\\",\\\"or\\\",\\\"i\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-admin/operation.hbs\",\n \"isStrictMode\": false\n });\n var Operation = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function Operation() {\n var _this;\n _classCallCheck(this, Operation);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Operation, [].concat(args));\n _initializerDefineProperty(_this, \"result\", _descriptor, _this);\n _initializerDefineProperty(_this, \"performingAction\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor4, _this);\n return _this;\n }\n _inherits(Operation, _Component);\n return _createClass(Operation, [{\n key: \"onAction\",\n value: function () {\n var _onAction = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n if (!this.disabledReason) {\n _context.n = 2;\n break;\n }\n _context.n = 1;\n return this.confirmDialog.show({\n subtitle: this.disabledReason\n });\n case 1:\n _context.n = 4;\n break;\n case 2:\n if (!this.operationOnAction) {\n _context.n = 4;\n break;\n }\n this.performingAction = true;\n _context.n = 3;\n return this.operationOnAction();\n case 3:\n this.result = _context.v;\n this.performingAction = false;\n case 4:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function onAction() {\n return _onAction.apply(this, arguments);\n }\n return onAction;\n }()\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"result\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"performingAction\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"onAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onAction\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Operation);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-admin/unlock-for-next-attempt\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _service, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n Allowed Extra Attempts:\n \n
    \n \n */\n {\n \"id\": \"8bRCGuKN\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@copy\\\",\\\"@disabledReason\\\",\\\"@operationOnAction\\\"],[\\\"Manually unlock quiz for next attempt\\\",[30,0,[\\\"disabledReason\\\"]],[30,0,[\\\"onAction\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-allowed-extra-attempts\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"attempts-copy\\\"],[12],[1,\\\"Allowed Extra Attempts:\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,1,\\\"allowed-extra-attempts\\\"],[4,[38,4],[\\\"change\\\",[30,0,[\\\"changeSelectedExtraAttempts\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"allowedExtraAttempts\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,8],[[30,0,[\\\"selectedExtraAttempts\\\"]],[30,1]],null]],[15,2,[30,1]],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"a\\\"],[\\\"quiz-admin/operation\\\",\\\"div\\\",\\\"span\\\",\\\"select\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"option\\\",\\\"same\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-admin/unlock-for-next-attempt.hbs\",\n \"isStrictMode\": false\n });\n var UnlockForNextAttempt2 = _component.default.extend({\n selectedUserChanged: (0, _object.observer)(\"selectedUser.quizAttemptMade\", function () {\n this.quizAttemptMade = this.get(\"selectedUser.quizAttemptMade\");\n })\n });\n var UnlockForNextAttempt = _exports.default = (_class = /*#__PURE__*/function (_UnlockForNextAttempt2) {\n function UnlockForNextAttempt() {\n var _this;\n _classCallCheck(this, UnlockForNextAttempt);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, UnlockForNextAttempt, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _defineProperty(_this, \"allowedExtraAttempts\", [1, 2, 3, 4, 5]);\n _initializerDefineProperty(_this, \"selectedExtraAttempts\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"quizAttemptMade\", _descriptor3, _this);\n return _this;\n }\n _inherits(UnlockForNextAttempt, _UnlockForNextAttempt2);\n return _createClass(UnlockForNextAttempt, [{\n key: \"init\",\n value: function init() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _superPropGet(UnlockForNextAttempt, \"init\", this, 3)(args);\n this.set(\"onAction\", this._onAction.bind(this));\n this.quizAttemptMade = this.selectedUser.quizAttemptMade;\n }\n }, {\n key: \"_onAction\",\n value: function () {\n var _onAction2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var result;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return _jquery.default.get(\"interface/quiz-admin/extend/\".concat(this.session.get(\"course.id\"), \"/\").concat(this.selectedQuiz.get(\"search_id\"), \"/\").concat(this.selectedUser.get(\"id\"), \"/\").concat(this.selectedExtraAttempts));\n case 1:\n result = _context.v;\n return _context.a(2, result.quiz_extensions ? \"success\" : \"error\");\n }\n }, _callee, this);\n }));\n function _onAction() {\n return _onAction2.apply(this, arguments);\n }\n return _onAction;\n }()\n }, {\n key: \"disabledReason\",\n get: function get() {\n //This is here because Canvas generates a 'settings_only' quiz submission if you try to add more attempts when there\n //are none to begin with. The 'settings_only' quiz submission screws things up.\n if (!this.quizAttemptMade) {\n return \"Quiz attempt needed to add more.\";\n } else {\n return null;\n }\n }\n }, {\n key: \"changeSelectedExtraAttempts\",\n value: function changeSelectedExtraAttempts(event) {\n this.selectedExtraAttempts = +event.target.value;\n }\n }]);\n }(UnlockForNextAttempt2), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"selectedExtraAttempts\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 1;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"quizAttemptMade\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"_onAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"_onAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeSelectedExtraAttempts\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeSelectedExtraAttempts\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, UnlockForNextAttempt);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-questions/file-upload\", [\"exports\", \"@ember/component\", \"@ember/object\", \"jquery\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _jquery, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! This is true if the quiz is graded. }}\n {{#if @quizzes.hasScore}}\n {{#if @question.attempt_data.attachments.length}}\n {{#each @question.attempt_data.attachments as |attachment|}}\n {{#if @question.fileDownloading}}\n \n {{else}}\n {{attachment.name}}\n {{/if}}\n {{/each}}\n {{else}}\n no file uploaded\n {{/if}}\n {{else}}\n {{! Ungraded quiz. User must upload a file }}\n
    \n \n
    \n {{/if}}\n */\n {\n \"id\": \"zZjXy/BR\",\n \"block\": \"[[[41,[30,1,[\\\"hasScore\\\"]],[[[41,[30,2,[\\\"attempt_data\\\",\\\"attachments\\\",\\\"length\\\"]],[[[42,[28,[37,2],[[28,[37,2],[[30,2,[\\\"attempt_data\\\",\\\"attachments\\\"]]],null]],null],null,[[[41,[30,2,[\\\"fileDownloading\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,3],[24,0,\\\"submitted-attachment\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"downloadFile\\\"]],[30,3,[\\\"id\\\"]],[30,3,[\\\"name\\\"]]],null]],null],[12],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[3]],null]],[]],[[[1,\\\" no file uploaded\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,0],[15,1,[29,[\\\"quiz-file-upload-file-wrapper-\\\",[30,4]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"quiz-question-choice\\\"],[15,1,[29,[\\\"quiz-file-upload-file-\\\",[30,4]]]],[14,4,\\\"file\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@quizzes\\\",\\\"@question\\\",\\\"attachment\\\",\\\"@index\\\"],[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"i\\\",\\\"a\\\",\\\"on\\\",\\\"fn\\\",\\\"div\\\",\\\"input\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/file-upload.hbs\",\n \"isStrictMode\": false\n });\n var FileUpload = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function FileUpload() {\n var _this;\n _classCallCheck(this, FileUpload);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, FileUpload, [].concat(args));\n _initializerDefineProperty(_this, \"fileDownloading\", _descriptor, _this);\n return _this;\n }\n _inherits(FileUpload, _Component);\n return _createClass(FileUpload, [{\n key: \"didInsertElement\",\n value: function didInsertElement() {\n if (!this.quizzes.hasScore) {\n var self = this;\n var attemptData = this.question.get(\"attempt_data\");\n var fileUploadElem = attemptData.fileUploadElem;\n var attachments = this.question.get(\"attempt_data.attachments\");\n (0, _jquery.default)(\"#quiz-file-upload-file-\".concat(this.index)).on(\"change\", /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n if (event.target.files.length > 0) {\n (0, _object.set)(self.question, \"given_answer\", event.target.files[0]);\n (0, _object.set)(self.question, \"attempt_data\", _objectSpread(_objectSpread({}, attemptData), {}, {\n fileUploadElem: event.target\n }));\n } else {\n (0, _object.set)(self.question, \"given_answer\", 0);\n (0, _object.set)(self.question, \"attempt_data\", _objectSpread(_objectSpread({}, attemptData), {}, {\n fileUploadElem: null\n }));\n }\n case 1:\n return _context.a(2);\n }\n }, _callee);\n }));\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }());\n if ((!attachments || attachments.length === 0) && fileUploadElem) {\n var existingFileUploadElem = document.getElementById(\"quiz-file-upload-file-\".concat(this.index));\n document.getElementById(\"quiz-file-upload-file-wrapper-\".concat(this.index)).replaceChild(fileUploadElem, existingFileUploadElem);\n }\n }\n }\n }, {\n key: \"downloadFile\",\n value: function () {\n var _downloadFile = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(attachmentId, fileName) {\n var response, text, _JSON$parse, url, a;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n this.question.set(\"fileDownloading\", true);\n _context2.n = 1;\n return fetch(\"/api/v1/files/\".concat(attachmentId));\n case 1:\n response = _context2.v;\n _context2.n = 2;\n return response.text();\n case 2:\n text = _context2.v;\n _JSON$parse = JSON.parse(text.replace(/^while\\(1\\);/, \"\")), url = _JSON$parse.url;\n a = document.createElement(\"a\");\n a.href = url;\n a.download = fileName;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n this.question.set(\"fileDownloading\", false);\n case 3:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function downloadFile(_x2, _x3) {\n return _downloadFile.apply(this, arguments);\n }\n return downloadFile;\n }()\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"fileDownloading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"downloadFile\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"downloadFile\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FileUpload);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-questions/fill-in-multiple-blanks\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{{this.answersHtml}}}\n */\n {\n \"id\": \"2rH70k05\",\n \"block\": \"[[[2,[30,0,[\\\"answersHtml\\\"]]]],[],[]]\",\n \"moduleName\": \"bocce/components/quiz-questions/fill-in-multiple-blanks.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n didInsertElement: function didInsertElement() {\n this.question.addEventListeners();\n },\n answersHtml: (0, _object.computed)(function () {\n var text = this.question.get(\"text\");\n var givenAnswer = _objectSpread({}, this.question.get(\"given_answer\"));\n var _iterator = _createForOfIteratorHelper(this.question.blankIds),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _givenAnswer$blankId;\n var blankId = _step.value;\n text = text.replace(\"[\".concat(blankId, \"]\"), \"\"));\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return text;\n })\n }));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-questions/multiple-dropdowns\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{{this.answersHtml}}}\n */\n {\n \"id\": \"sw+QVGKU\",\n \"block\": \"[[[2,[30,0,[\\\"answersHtml\\\"]]]],[],[]]\",\n \"moduleName\": \"bocce/components/quiz-questions/multiple-dropdowns.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n didInsertElement: function didInsertElement() {\n this.question.addEventListeners();\n },\n answersHtml: (0, _object.computed)(function () {\n var _this = this;\n var text = this.question.get(\"text\");\n var givenAnswer = _objectSpread({}, this.question.get(\"given_answer\"));\n var _loop = function _loop() {\n var _givenAnswer$blankId;\n var answers = _this.question.optionAnswers[blankId];\n var givenOptionAnswer = givenAnswer ? (_givenAnswer$blankId = givenAnswer[blankId]) !== null && _givenAnswer$blankId !== void 0 ? _givenAnswer$blankId : null : null;\n if (answers.length > 0) {\n var optionsHtml = \"\";\n text = text.replace(\"[\".concat(blankId, \"]\"), optionsHtml);\n }\n };\n for (var blankId in this.question.optionAnswers) {\n _loop();\n }\n return text;\n })\n }));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-questions/question\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"lodash.isequal\", \"@glimmer/tracking\", \"jquery\", \"bocce/utilities/promise-queue\", \"bocce/mixins/boot\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _lodash, _tracking, _jquery, _promiseQueue, _boot, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"lodash.isequal\",0,\"@glimmer/tracking\",0,\"jquery\",0,\"bocce/utilities/promise-queue\",0,\"bocce/mixins/boot\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless (same this.quiz.presentation \"single\")}}\n Question {{sum @index 1}}{{this.questionIndexPostfix}}\n {{/unless}}\n \n
    \n {{#if this.quizzes.isTimedQuiz}}\n {{#if (and (not this.hasAnswer) this.hasAnswerChanged)}}\n
    \n Warning: Empty answers do not get saved.\n
    \n {{/if}}\n {{/if}}\n \n
    \n
    Question {{sum @index 1}}:
    \n {{{@question.textFormatted}}}\n
    \n \n {{component @questionComponent question=@question index=@index quizzes=@quizzes quiz=@quiz}}\n \n {{! Is true if the passed doCheckAnswer parameter is true and if the quiz is not a graded quiz and if there is no score yet.\n see quiz-questions/question.js }}\n {{#if this.showCheckAnswerBtn}}\n \n {{#if this.showingAnswerCorrectFeedback}}\n
    \n \n
    \n
    {{{@question.answerCorrectFeedback}}}
    \n
    \n
    \n {{/if}}\n {{/if}}\n \n {{! Is true if the passed doShowAnswer parameter is true and if the quiz is not a graded quiz and if there is no score yet.\n see quiz-questions/question.js }}\n {{#if this.showShowAnswerBtn}}\n Show Answer\n {{#if this.showingCorrectAnswer}}\n
    \n \n
    \n
    {{@question.formattedCorrectAnswer}}
    \n
    \n
    \n {{/if}}\n {{/if}}\n
    \n */\n {\n \"id\": \"mkMT7Uwb\",\n \"block\": \"[[[41,[51,[28,[37,1],[[30,0,[\\\"quiz\\\",\\\"presentation\\\"]],\\\"single\\\"],null]],[[[1,\\\" \\\"],[10,0],[15,\\\"received\\\",[28,[37,3],[[30,1,[\\\"points_received\\\"]],[30,1,[\\\"points\\\"]]],null]],[15,0,[29,[\\\"question-index active \\\",[30,1,[\\\"correct\\\"]]]]],[12],[1,\\\"Question \\\"],[1,[28,[35,4],[[30,2],1],null]],[1,[30,0,[\\\"questionIndexPostfix\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[15,0,[29,[\\\"quiz-question full-width \\\",[30,1,[\\\"type\\\"]],\\\" active\\\"]]],[15,1,[29,[\\\"question-\\\",[30,1,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quizzes\\\",\\\"isTimedQuiz\\\"]],[[[41,[28,[37,6],[[28,[37,7],[[30,0,[\\\"hasAnswer\\\"]]],null],[30,0,[\\\"hasAnswerChanged\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"empty-answer-warning\\\"],[12],[1,\\\"\\\\n Warning: Empty answers do not get saved.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"question-content \\\",[30,1,[\\\"type\\\"]],\\\" bootable-area\\\"]]],[14,\\\"role\\\",\\\"heading\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Question \\\"],[1,[28,[35,4],[[30,2],1],null]],[1,\\\": \\\"],[13],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"textFormatted\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[46,[30,3],null,[[\\\"question\\\",\\\"index\\\",\\\"quizzes\\\",\\\"quiz\\\"],[[30,1],[30,2],[30,4],[30,5]]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"showCheckAnswerBtn\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@question\\\",\\\"@onCheckAnswer\\\",\\\"@disabled\\\"],[[30,1],[28,[37,10],[[30,0,[\\\"setShowingAnswerCorrectFeedback\\\"]],true],null],[28,[37,11],[[28,[37,7],[[30,0,[\\\"hasAnswer\\\"]]],null],[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]]],null]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showingAnswerCorrectFeedback\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"question-checker\\\"],[15,1,[29,[\\\"question-\\\",[30,1,[\\\"id\\\"]],\\\"-modal\\\"]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"label\\\"],[24,0,\\\"close-question-modal\\\"],[16,\\\"for\\\",[29,[\\\"quiz-\\\",[30,5,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-checker\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"setShowingAnswerCorrectFeedback\\\"]],false],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-checker-body\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"answer-results bootable-area\\\"],[12],[2,[30,1,[\\\"answerCorrectFeedback\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showShowAnswerBtn\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,11],[[28,[37,7],[[30,0,[\\\"hasAnswer\\\"]]],null],[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]]],null]],[16,0,[29,[\\\"show-answer \\\",[52,[28,[37,11],[[28,[37,7],[[30,0,[\\\"hasAnswer\\\"]]],null],[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]]],null],\\\"disabled\\\"]]]],[24,4,\\\"button\\\"],[4,[38,13],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"setShowingCorrectAnswer\\\"]],true],null]],null],[12],[1,\\\"Show Answer\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showingCorrectAnswer\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"question-checker\\\"],[15,1,[29,[\\\"question-\\\",[30,1,[\\\"id\\\"]],\\\"-modal\\\"]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"label\\\"],[24,0,\\\"close-question-modal\\\"],[16,\\\"for\\\",[29,[\\\"quiz-\\\",[30,5,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-checker\\\"]]],[4,[38,13],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"setShowingCorrectAnswer\\\"]],false],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-checker-body\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"answer-results bootable-area\\\"],[12],[1,[30,1,[\\\"formattedCorrectAnswer\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[13]],[\\\"@question\\\",\\\"@index\\\",\\\"@questionComponent\\\",\\\"@quizzes\\\",\\\"@quiz\\\"],[\\\"unless\\\",\\\"same\\\",\\\"div\\\",\\\"percentage\\\",\\\"sum\\\",\\\"if\\\",\\\"and\\\",\\\"not\\\",\\\"component\\\",\\\"quiz/check-answer\\\",\\\"fn\\\",\\\"or\\\",\\\"label\\\",\\\"on\\\",\\\"i\\\",\\\"button\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/question.hbs\",\n \"isStrictMode\": false\n });\n var Question2 = _component.default.extend(_boot.default, {\n givenAnswerObserver: (0, _object.observer)(\"question.given_answer\", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var _this = this;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n this.hasAnswerChanged = true;\n /** This is using PromiseQueue because the onAnswerChange call needs to happen\n * right away and it also needs to happen before the user is potentially told\n * that time is up and thus before the quiz is submit (time-is-up dialog also uses PromiseQueue).\n */\n _context2.n = 1;\n return _promiseQueue.default.enqueue(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n if ((0, _lodash.default)(_this.question.given_answer, _this.question.default_answer)) {\n _context.n = 1;\n break;\n }\n _context.n = 1;\n return _this.question.onAnswerChange();\n case 1:\n return _context.a(2);\n }\n }, _callee);\n })));\n case 1:\n return _context2.a(2);\n }\n }, _callee2, this);\n })))\n });\n var Question = _exports.default = (_class = /*#__PURE__*/function (_Question2) {\n function Question() {\n var _this2;\n _classCallCheck(this, Question);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this2 = _callSuper(this, Question, [].concat(args));\n _initializerDefineProperty(_this2, \"confirmDialog\", _descriptor, _this2);\n _initializerDefineProperty(_this2, \"showingCorrectAnswer\", _descriptor2, _this2);\n _initializerDefineProperty(_this2, \"showingAnswerCorrectFeedback\", _descriptor3, _this2);\n _initializerDefineProperty(_this2, \"currentAnswer\", _descriptor4, _this2);\n _initializerDefineProperty(_this2, \"questionInitialized\", _descriptor5, _this2);\n _initializerDefineProperty(_this2, \"hasAnswerChanged\", _descriptor6, _this2);\n _defineProperty(_this2, \"gotAnswerCorrect\", false);\n _defineProperty(_this2, \"numAttempts\", 0);\n return _this2;\n }\n _inherits(Question, _Question2);\n return _createClass(Question, [{\n key: \"init\",\n value: function init() {\n var _this3 = this;\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _superPropGet(Question, \"init\", this, 3)(args);\n this.questionIndexPostfix = this.quizzes.questionIndexPostfix;\n if (!this.quizzes.hasScore) {\n this.quizzes.addNextQuestionCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n if ((0, _lodash.default)(_this3.question.given_answer, _this3.question.default_answer)) {\n _context3.n = 1;\n break;\n }\n _context3.n = 1;\n return _this3.question.onNextOrFinish();\n case 1:\n return _context3.a(2);\n }\n }, _callee3);\n })));\n }\n this.questionInitialized = true;\n }\n }, {\n key: \"didInsertElement\",\n value: function didInsertElement() {\n var _this4 = this;\n if (this.quizzes.performedInitialRender) {\n var node = (0, _jquery.default)(this.element).find(\".bootable-area\");\n if (node && node.length) {\n // Boot each bootable-area node found in this component\n var promises = [];\n /* eslint-disable-next-line ember/no-jquery */\n node.each(function (i, n) {\n return promises.push(_this4.boot_area((0, _jquery.default)(n), false, true, false, false, true));\n });\n Promise.all(promises);\n }\n }\n }\n }, {\n key: \"showCheckAnswerBtn\",\n get: function get() {\n return this.question.doCheckAnswer && this.notGradedAndNoScore();\n }\n }, {\n key: \"showShowAnswerBtn\",\n get: function get() {\n return this.question.doShowAnswer && this.notGradedAndNoScore();\n }\n }, {\n key: \"showNextBtn\",\n get: function get() {\n return this.active && this.quiz.presentation == \"single\" && this.index < this.quiz.quiz_questions.length - 1;\n }\n }, {\n key: \"hasAnswer\",\n get: function get() {\n return this.question.hasAnswer;\n }\n }, {\n key: \"answerNeeded\",\n get: function get() {\n return this.question.answerNeeded;\n }\n }, {\n key: \"notGradedAndNoScore\",\n value: function notGradedAndNoScore() {\n var score = null;\n if (this.quiz.quiz_attempt) {\n score = this.quiz.quiz_attempt.score;\n }\n return !this.quiz.is_graded && score == null;\n }\n }, {\n key: \"setShowingAnswerCorrectFeedback\",\n value: function setShowingAnswerCorrectFeedback(showing) {\n this.showingAnswerCorrectFeedback = showing;\n if (showing) {\n this.numAttempts = this.numAttempts + 1;\n }\n }\n }, {\n key: \"setShowingCorrectAnswer\",\n value: function setShowingCorrectAnswer(showing) {\n var numAttemptsLeft = 3 - this.numAttempts;\n if (this.question.isAnswerCorrect()) {\n this.gotAnswerCorrect = true;\n }\n if (numAttemptsLeft > 0 && !this.gotAnswerCorrect) {\n this.confirmDialog.show({\n subtitle: \"Please check your answer \".concat(numAttemptsLeft, \" more time\").concat(numAttemptsLeft > 1 ? \"s\" : \"\", \".\")\n });\n } else {\n this.showingCorrectAnswer = showing;\n }\n }\n }, {\n key: \"nextQuestion\",\n value: function nextQuestion() {\n this.quizzes.nextQuestion(this.index + 1);\n }\n }]);\n }(Question2), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showingCorrectAnswer\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showingAnswerCorrectFeedback\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentAnswer\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"questionInitialized\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasAnswerChanged\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"setShowingAnswerCorrectFeedback\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setShowingAnswerCorrectFeedback\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShowingCorrectAnswer\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setShowingCorrectAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextQuestion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextQuestion\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, Question);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-all-graded\", [\"exports\", \"@ember/component\", \"@ember/service\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _service, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.quizzes.isTimedQuiz}}\n {{#each this.quizzes.questions as |question i|}}\n
    \n \n
    \n {{/each}}\n {{/unless}}\n \n \n */\n {\n \"id\": \"bPPoC9wp\",\n \"block\": \"[[[41,[51,[30,0,[\\\"quizzes\\\",\\\"isTimedQuiz\\\"]]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"quizzes\\\",\\\"questions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-question-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@question\\\",\\\"@quiz\\\",\\\"@quizzes\\\",\\\"@index\\\",\\\"@questionComponent\\\"],[[30,1],[30,0,[\\\"quizzes\\\",\\\"quiz\\\"]],[30,0,[\\\"quizzes\\\"]],[30,2],[30,1,[\\\"component\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null]],[]],null],[1,\\\"\\\\n\\\"],[8,[39,5],null,[[\\\"@onRetry\\\",\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\",\\\"retryQuiz\\\"]],[30,0,[\\\"quizzes\\\"]]]],null]],[\\\"question\\\",\\\"i\\\"],[\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"quiz-questions/question\\\",\\\"quiz/results\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-all-graded.hbs\",\n \"isStrictMode\": false\n });\n var QuizSingleGradedResults = _exports.default = /*#__PURE__*/function (_Component) {\n function QuizSingleGradedResults() {\n _classCallCheck(this, QuizSingleGradedResults);\n return _callSuper(this, QuizSingleGradedResults, arguments);\n }\n _inherits(QuizSingleGradedResults, _Component);\n return _createClass(QuizSingleGradedResults, [{\n key: \"didInsertElement\",\n value: function didInsertElement() {\n this.quizzes.element = this.element;\n }\n }]);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizSingleGradedResults);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-all\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.quizzes.isTimedQuiz}}\n \n {{#if this.quizzes.timeRemainingFormatted}}\n
    {{this.quizzes.timeRemainingFormatted}}
    \n {{/if}}\n {{/if}}\n \n {{#each this.quizzes.questions as |question i|}}\n
    \n \n
    \n {{/each}}\n \n
    \n {{#if @quizzes.gradingQuiz}}\n
    \n \n Grading Quiz. Please wait...\n
    \n {{else if this.showFinishQuiz}}\n \n {{else if this.session.gradeLock}}\n
    \n The grading period for this course has concluded. As a result, quizzes are no longer\n submittable. Please contact your instructor and arrange to submit the answers manually if they\n permitted you to submit the work late.\n
    \n {{/if}}\n \n saved at:\n {{this.quizzes.savedAt}}\n
    \n \n */\n {\n \"id\": \"J8XSH7c7\",\n \"block\": \"[[[41,[30,0,[\\\"quizzes\\\",\\\"isTimedQuiz\\\"]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quizzes\\\",\\\"timeRemainingFormatted\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-timer\\\"],[12],[1,[30,0,[\\\"quizzes\\\",\\\"timeRemainingFormatted\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"quizzes\\\",\\\"questions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-question-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@question\\\",\\\"@quiz\\\",\\\"@quizzes\\\",\\\"@index\\\",\\\"@questionComponent\\\",\\\"@text\\\"],[[30,1],[30,0,[\\\"quizzes\\\",\\\"quiz\\\"]],[30,0,[\\\"quizzes\\\"]],[30,2],[30,1,[\\\"component\\\"]],[30,1,[\\\"textFormatted\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"quiz-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"gradingQuiz\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-quiz\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n Grading Quiz. Please wait...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"showFinishQuiz\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@quizzes\\\",\\\"@disabled\\\"],[[30,0,[\\\"quizzes\\\"]],[30,0,[\\\"finishDisabled\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"session\\\",\\\"gradeLock\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-concluded-message\\\"],[12],[1,\\\"\\\\n The grading period for this course has concluded. As a result, quizzes are no longer\\\\n submittable. Please contact your instructor and arrange to submit the answers manually if they\\\\n permitted you to submit the work late.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]]],[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"quiz-saved-at\\\\n \\\",[52,[51,[28,[37,9],[[30,0,[\\\"quizzes\\\",\\\"savedAt\\\"]],[28,[37,10],[[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]]],null]],null]],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n saved at:\\\\n \\\"],[1,[30,0,[\\\"quizzes\\\",\\\"savedAt\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"question\\\",\\\"i\\\",\\\"@quizzes\\\"],[\\\"if\\\",\\\"quiz/submitted-in\\\",\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"quiz-questions/question\\\",\\\"i\\\",\\\"quiz/finish-quiz\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-all.hbs\",\n \"isStrictMode\": false\n });\n var QuizAll = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuizAll() {\n var _this;\n _classCallCheck(this, QuizAll);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuizAll, [].concat(args));\n _initializerDefineProperty(_this, \"features\", _descriptor, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor2, _this);\n return _this;\n }\n _inherits(QuizAll, _Component);\n return _createClass(QuizAll, [{\n key: \"showFinishQuiz\",\n get: function get() {\n var allowSubmit = !this.features.isEnabled(\"staticContent\");\n\n ///This logic is taken from what used to be in app/templates/quiz.hbs\n var additionalLogic = this.quizzes.isGraded ? !this.session.gradeLock : true;\n return allowSubmit && !this.quizzes.hasScore && !this.quizzes.gradingQuiz && additionalLogic;\n }\n }, {\n key: \"finishDisabled\",\n get: function get() {\n return this.quizzes.uploadingQuestion || this.quizzes.gradingQuiz;\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"features\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizAll);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-instructor\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _tracking, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"8edVibFG\",\n \"block\": \"[[],[],[]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-instructor.hbs\",\n \"isStrictMode\": false\n });\n var QuizInstructor = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuizInstructor() {\n var _this;\n _classCallCheck(this, QuizInstructor);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuizInstructor, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"showStats\", _descriptor2, _this);\n return _this;\n }\n _inherits(QuizInstructor, _Component);\n return _createClass(QuizInstructor, [{\n key: \"toggleShowStats\",\n value: function toggleShowStats() {\n this.showStats = !this.showStats;\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showStats\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleShowStats\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowStats\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizInstructor);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-intercept\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.noTimeLeft}}\n You have no time left in your quiz.\n {{/if}}\n \n {{#if (or @quizzes.startingQuiz @quizzes.gradingQuiz)}}\n
    \n \n Please wait...\n
    \n {{else}}\n {{this.submitButtonText}}\n {{/if}}\n */\n {\n \"id\": \"8GZS3qoG\",\n \"block\": \"[[[41,[30,0,[\\\"noTimeLeft\\\"]],[[[1,\\\" You have no time left in your quiz.\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,1],[[30,1,[\\\"startingQuiz\\\"]],[30,1,[\\\"gradingQuiz\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-intercept-spinner\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n Please wait...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"button quiz-intercept-submit-button\\\\n \\\",[52,[28,[37,1],[[30,1,[\\\"startingQuiz\\\"]],[30,1,[\\\"gradingQuiz\\\"]]],null],\\\"disabled\\\"]]]],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"submitButtonCallback\\\"]]],null]],null],[12],[1,[30,0,[\\\"submitButtonText\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@quizzes\\\"],[\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"i\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-intercept.hbs\",\n \"isStrictMode\": false\n });\n var QuizIntercept = _exports.default = /*#__PURE__*/function (_Component) {\n function QuizIntercept() {\n _classCallCheck(this, QuizIntercept);\n return _callSuper(this, QuizIntercept, arguments);\n }\n _inherits(QuizIntercept, _Component);\n return _createClass(QuizIntercept, [{\n key: \"noTimeLeft\",\n get: function get() {\n return this.quizzes.hasAttempt && !this.quizzes.isRetrying && !this.quizzes.hasTimeLeft;\n }\n }, {\n key: \"submitButtonCallback\",\n get: function get() {\n if (this.noTimeLeft) {\n return this.quizzes.submitQuiz;\n } else {\n return this.quizzes.startQuiz;\n }\n }\n }, {\n key: \"submitButtonText\",\n get: function get() {\n if (this.noTimeLeft) {\n return \"Submit Quiz\";\n } else {\n return \"Start Quiz\";\n }\n }\n }]);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizIntercept);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-single-graded-results\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.quizzes.isTimedQuiz}}\n \n {{/unless}}\n \n */\n {\n \"id\": \"NE1/Q1t5\",\n \"block\": \"[[[41,[51,[30,0,[\\\"quizzes\\\",\\\"isTimedQuiz\\\"]]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@quizzes\\\"],[\\\"this.quizzes\\\"]],null],[1,\\\"\\\\n\\\"]],[]],null],[8,[39,2],null,[[\\\"@onRetry\\\",\\\"@quizzes\\\"],[[30,1,[\\\"retryQuiz\\\"]],[30,1]]],null]],[\\\"@quizzes\\\"],[\\\"unless\\\",\\\"quiz/previous-questions\\\",\\\"quiz/results\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-single-graded-results.hbs\",\n \"isStrictMode\": false\n });\n var QuizSingleGradedResults = _exports.default = /*#__PURE__*/function (_Component) {\n function QuizSingleGradedResults() {\n _classCallCheck(this, QuizSingleGradedResults);\n return _callSuper(this, QuizSingleGradedResults, arguments);\n }\n _inherits(QuizSingleGradedResults, _Component);\n return _createClass(QuizSingleGradedResults);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizSingleGradedResults);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-single-graded-reviewing\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n
    \n \n \n {{#if this.quizzes.questionShown}}\n
    \n \n
    \n {{/if}}\n \n {{! Show a 'next' button if the quiz type is single and not the last question }}\n {{#if (lessthan (sum this.quizzes.questionIndex 1) (total this.quizzes.questions))}}\n Next\n {{/if}}\n \n View Results\n */\n {\n \"id\": \"2YZAwRW4\",\n \"block\": \"[[[10,0],[14,0,\\\"quiz-single-graded-reviewing-header\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,1],null,[[\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"quiz-single-grade \\\",[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"correct\\\"]]]]],[15,\\\"received\\\",[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"points_received\\\"]]],[15,\\\"possible\\\",[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"points\\\"]]],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"quizzes\\\",\\\"questionShown\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-question-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,3],null,[[\\\"@question\\\",\\\"@quiz\\\",\\\"@quizzes\\\",\\\"@index\\\",\\\"@questionComponent\\\"],[[30,0,[\\\"quizzes\\\",\\\"question\\\"]],[30,0,[\\\"quizzes\\\",\\\"quiz\\\"]],[30,0,[\\\"quizzes\\\"]],[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"component\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[28,[37,5],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],1],null],[28,[37,6],[[30,0,[\\\"quizzes\\\",\\\"questions\\\"]]],null]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"question-next\\\\n \\\",[52,[28,[37,8],[[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]],[28,[37,8],[[30,0,[\\\"quizzes\\\",\\\"uploadingQuestion\\\"]],[30,0,[\\\"quizzes\\\",\\\"uploadFailed\\\"]]],null]],null],\\\"disabled\\\"],\\\"\\\\n \\\",[52,[28,[37,4],[[28,[37,5],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],1],null],[28,[37,6],[[30,0,[\\\"quizzes\\\",\\\"quiz\\\",\\\"quiz_questions\\\"]]],null]],null],\\\"active\\\"]]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"quizzes\\\",\\\"nextQuestion\\\"]],[28,[37,5],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],1],null]],null]],null],[12],[1,\\\"Next\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"finish-quiz results-button\\\"],[16,\\\"for\\\",[29,[\\\"quiz-\\\",[30,0,[\\\"quizzes\\\",\\\"quiz\\\",\\\"id\\\"]],\\\"-finish-quiz-handle\\\"]]],[24,4,\\\"button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"quizzes\\\",\\\"setQuestionIndex\\\"]],null],null]],null],[12],[1,\\\"View Results\\\"],[13]],[],[\\\"div\\\",\\\"quiz/previous-questions\\\",\\\"if\\\",\\\"quiz-questions/question\\\",\\\"lessthan\\\",\\\"sum\\\",\\\"total\\\",\\\"button\\\",\\\"or\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-single-graded-reviewing.hbs\",\n \"isStrictMode\": false\n });\n var QuizSingleGradedReviewing = _exports.default = /*#__PURE__*/function (_Component) {\n function QuizSingleGradedReviewing() {\n _classCallCheck(this, QuizSingleGradedReviewing);\n return _callSuper(this, QuizSingleGradedReviewing, arguments);\n }\n _inherits(QuizSingleGradedReviewing, _Component);\n return _createClass(QuizSingleGradedReviewing, [{\n key: \"didInsertElement\",\n value: function didInsertElement() {\n var _this = this;\n $(function () {\n if (!_this.quizzes.quiz.introduction) {\n $(_this.element).find(\".question-index\").first().css(\"border-top\", \"none\");\n }\n });\n }\n }]);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizSingleGradedReviewing);\n});","define(\"bocce/components/expandable-list\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{yield this.result this.expandable}}\n */\n {\n \"id\": \"fJ1wVcXJ\",\n \"block\": \"[[[18,1,[[30,0,[\\\"result\\\"]],[30,0,[\\\"expandable\\\"]]]]],[\\\"&default\\\"],[\\\"yield\\\"]]\",\n \"moduleName\": \"bocce/components/expandable-list.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n expandable: (0, _object.computed)(\"elements\", \"threshold\", function () {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"elements.length\") > this.threshold;\n }),\n result: (0, _object.computed)(\"elements\", \"threshold\", \"expanded\", function () {\n if (this.expanded) {\n return this.elements;\n } else {\n var threshold = this.threshold;\n return this.elements.slice(0, threshold);\n }\n })\n }));\n});","define(\"bocce/components/grade-student-list/list-item\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.hasSavedAssessments}}\n \n {{/if}}\n {{yield}}\n */\n {\n \"id\": \"bn9rpvgU\",\n \"block\": \"[[[41,[30,0,[\\\"hasSavedAssessments\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-pencil\\\"],[14,5,\\\"\\\\n position: absolute;\\\\n right: 2px;\\\\n top: 2px;\\\\n font-size: 12px;\\\\n \\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[18,1,null]],[\\\"&default\\\"],[\\\"if\\\",\\\"i\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"bocce/components/grade-student-list/list-item.hbs\",\n \"isStrictMode\": false\n });\n /*\n li element for grade-student-list.\n \n Accepts as parameters:\n * submission: submission data that dynamically adds classes to the li\n * currentSubmissionId: used to determine if submission is the one we're\n viewing right now.\n * ariaLabel: binds to the 'aria-label' attribute. If none is provided,\n provides a default one based on the submission property.\n * role: binds to the 'role' attribute; default is \"button\"\n * clickAction: action that triggers on click\n * actionParam: the parameter to send to the action (typically a\n submission id)\n */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"li\",\n classNames: [\"clearfix\"],\n classNameBindings: [\"graded\", \"my_submission\", \"current\", \"currentAuthor:current-author\", \"unread\"],\n attributeBindings: [\"getRole:role\", \"getAriaLabel:aria-label\"],\n localStorageService: (0, _service.inject)(\"local-storage\"),\n session: (0, _service.inject)(),\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n var rubricKey = \"rubric_assessments_\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\"));\n if (this.session.get(\"isInstructor\")) {\n this.hasSavedAssessments = !!this.localStorageService.getItem(rubricKey);\n this.localStorageService.registerCallback(rubricKey, function (newValue) {\n _this.hasSavedAssessments = !!newValue;\n _this.notifyPropertyChange(\"hasSavedAssessments\");\n });\n }\n },\n // returns a default value if it's not provided by the template\n getRole: (0, _object.computed)(\"role\", function () {\n if (this.role) {\n return this.role;\n } else {\n return \"button\";\n }\n }),\n getAriaLabel: (0, _object.computed)(\"submission.user.short_name\", \"ariaLabel\", function () {\n var ariaLabel = this.ariaLabel;\n if (ariaLabel) {\n return ariaLabel;\n } else {\n /* eslint-disable-next-line ember/no-get */\n var name = this.get(\"submission.user.short_name\");\n if (name) {\n return \"Assignment submission belonging to \".concat(name);\n } else {\n return \"Assignment submission\";\n }\n }\n }),\n graded: (0, _object.computed)(\"submission.grade\", function () {\n /* eslint-disable-next-line ember/no-get */\n return Boolean(this.get(\"submission.grade\"));\n }),\n my_submission: (0, _computed.reads)(\"submission.my_submission\"),\n current: (0, _object.computed)(\"submission.id\", \"currentSubmissionId\", function () {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"submission.id\") === this.currentSubmissionId;\n }),\n currentAuthor: (0, _object.computed)(\"submission.user.id\", \"currentSubmissionAuthor\", function () {\n if (!this.currentSubmissionAuthor) return false;\n /* eslint-disable-next-line ember/no-get */\n return String(this.get(\"submission.user.id\")) === String(this.currentSubmissionAuthor);\n }),\n unread: (0, _object.computed)(\"submission.read\", function () {\n //Since a submission is marked as read when editing the grade (and thus a local draft is saved), we shouldn't ever -- barring caching oddities --\n //be in a state where a submission is read and there are saved, local assessments. But, just in case, the submission should be considered unread since\n //we will be showing an icon to indicate an unsaved draft and we don't want both icons displaying.\n return !this.get(\"submission.read\") && !this.hasSavedAssessments;\n }),\n // triggers clickAction on click\n click: function click() {\n this.clickAction();\n }\n }));\n});","define(\"bocce/components/grade-student-list/list\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each (if @model.assignment @model.assignment.submissions @model.submissions) as |submission|}}\n \n
    \n \n
    \n
    \n {{#if submission.my_submission}}\n
    Your submission\n
    \n {{else}}\n
    \n {{submission.user.short_name}}\n \n
    \n {{/if}}\n {{#if submission.needs_grading_count}} ({{submission.needs_grading_count}}){{/if}}\n \n {{#if @isInstructor}}\n {{#if submission.grade}}\n {{#if submission.grade_matches_current_submission}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n \n \n \n \n {{else}}\n {{if\n (same \"0\" submission.score)\n \"NC\"\n submission.grade\n }}\n {{#unless (same \"0\" submission.score)}}\n {{#if submission.percentage}}\n {{submission.percentage}}%\n {{else}}\n {{#if submission.score}}\n {{submission.score}}\n {{/if}}\n {{/if}}\n {{else}}\n NC\n {{/unless}}\n \n {{/if}}\n {{else}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n \n \n \n \n
    \n {{else}}\n \n {{/if}}\n {{/if}}\n {{else}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n \n \n \n \n {{else}}\n Submitted\n {{/if}}\n {{/if}}\n {{/if}}\n \n {{#if submission.my_submission}}\n {{#if submission.grade}}\n {{#if submission.grade_matches_current_submission}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n \n \n \n \n
    \n {{else}}\n {{if\n (same \"0\" submission.score)\n \"NC\"\n submission.grade\n }}\n {{#unless (same \"0\" submission.score)}}\n {{#if submission.percentage}}\n {{submission.percentage}}%\n {{else}}\n {{#if submission.score}}\n {{submission.score}}\n {{/if}}\n {{/if}}\n {{else}}\n NC\n {{/unless}}\n \n {{/if}}\n {{else}}\n {{#if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n \n \n \n \n
    \n {{else}}\n \n {{/if}}\n {{/if}}\n {{else if (same submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n \n \n \n \n
    \n {{/if}}\n {{/if}}\n
    \n \n {{/each}}\n */\n {\n \"id\": \"BAJ63luj\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[52,[30,1,[\\\"assignment\\\"]],[30,1,[\\\"assignment\\\",\\\"submissions\\\"]],[30,1,[\\\"submissions\\\"]]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,3],null,[[\\\"@submission\\\",\\\"@role\\\",\\\"@currentSubmissionId\\\",\\\"@currentSubmissionAuthor\\\",\\\"@clickAction\\\"],[[30,2],\\\"button\\\",[30,1,[\\\"id\\\"]],[30,3],[28,[37,4],[[30,0,[\\\"sendViewSubmission\\\"]],[30,2,[\\\"id\\\"]]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"list-item-left\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,2,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"list-item-right\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"my_submission\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-source\\\"],[12],[1,\\\"Your submission\\\\n \\\"],[8,[39,7],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,2,[\\\"user\\\"]],[30,4]]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-source\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,7],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,2,[\\\"user\\\"]],[30,4]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[41,[30,2,[\\\"needs_grading_count\\\"]],[[[1,\\\" (\\\"],[1,[30,2,[\\\"needs_grading_count\\\"]]],[1,\\\")\\\"]],[]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,4],[[[41,[30,2,[\\\"grade\\\"]],[[[41,[30,2,[\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,8],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"submission-list-grade\\\"],[14,\\\"aria-label\\\",\\\"Submission Grade:\\\"],[12],[1,[52,[28,[37,8],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],\\\"NC\\\",[30,2,[\\\"grade\\\"]]]],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,8],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null]],[[[41,[30,2,[\\\"percentage\\\"]],[[[1,\\\" \\\"],[1,[30,2,[\\\"percentage\\\"]]],[1,\\\"%\\\\n\\\"]],[]],[[[41,[30,2,[\\\"score\\\"]],[[[1,\\\" \\\"],[1,[30,2,[\\\"score\\\"]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],[[[1,\\\" NC\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,8],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Activity needs to be resubmitted\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],[[[41,[28,[37,8],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"submitted-confirm\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Submitted\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"my_submission\\\"]],[[[41,[30,2,[\\\"grade\\\"]],[[[41,[30,2,[\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,8],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Activity needs to be resubmitted\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"submission-list-grade\\\"],[14,\\\"aria-label\\\",\\\"Submission Grade:\\\"],[12],[1,[52,[28,[37,8],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],\\\"NC\\\",[30,2,[\\\"grade\\\"]]]],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,8],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null]],[[[41,[30,2,[\\\"percentage\\\"]],[[[1,\\\" \\\"],[1,[30,2,[\\\"percentage\\\"]]],[1,\\\"%\\\\n\\\"]],[]],[[[41,[30,2,[\\\"score\\\"]],[[[1,\\\" \\\"],[1,[30,2,[\\\"score\\\"]]],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],[[[1,\\\" NC\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,8],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Activity needs to be resubmitted\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],[[[41,[28,[37,8],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Activity needs to be resubmitted\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[2]],null]],[\\\"@model\\\",\\\"submission\\\",\\\"@currentSubmissionAuthor\\\",\\\"@isInstructor\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"grade-student-list/list-item\\\",\\\"fn\\\",\\\"div\\\",\\\"user-portrait\\\",\\\"user-icons\\\",\\\"same\\\",\\\"span\\\",\\\"i\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"bocce/components/grade-student-list/list.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n userprofileService: (0, _service.inject)(\"userprofile\"),\n init: function init() {\n this._super.apply(this, arguments);\n this.hasSavedAssessments = !!localStorage.getItem(\"rubric_assessments_\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\")));\n },\n submissions: (0, _object.computed)(\"model.assignment.content.submissions\", function () {\n var _this$model$assignmen;\n return ((_this$model$assignmen = this.model.assignment) === null || _this$model$assignmen === void 0 || (_this$model$assignmen = _this$model$assignmen.content) === null || _this$model$assignmen === void 0 ? void 0 : _this$model$assignmen.hasMany(\"submissions\").value()) || [];\n }),\n sendToggleProfile: (0, _object.action)(function (id) {\n this.toggleProfile(id);\n }),\n sendViewSubmission: (0, _object.action)(function (id) {\n this.viewSubmission(id);\n })\n }));\n});","define(\"bocce/components/gradebook\", [\"exports\", \"@ember/component\", \"jquery\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _jquery, _service, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if this.showGradesDueAt}}\n
    \n NOTE:\n Final grades are due\n \n {{this.gradesDueAtEastern}}\n \n
    \n {{/if}}\n \n
    \n {{#if this.assignmentHeaders.columns}}\n
    \n {{#if this.lateGradingPolicyEmpty}}\n \n Set Late Grading Policy\n {{/if}}\n
    \n Unmute Ungraded Submissions\n Hide Muted Submissions\n
    \n
    \n \n
    \n
    \n \n All\n \n
    or
    \n
    \n
    \n \n Assignments\n \n
    \n
    \n \n Quizzes\n \n
    \n
    \n \n Discussions/Exercises\n \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n
    \n \n \n \n {{#each this.assignmentHeaders.columns as |column index|}}\n {{#if (same index \"0\")}}\n \n {{else}}\n {{#unless column.name}}\n {{#if (same column \"Total\")}}\n \n {{else if (startswith column \"Live Class Participation\")}}\n {{! Hide live class participation calc column by request from Mareika/Boriana }}\n {{!-- --}}\n {{else}}\n \n {{/if}}\n {{else}}\n {{#if (same column.grading_standard_id 2)}}\n \n {{else}}\n \n {{safehtml column.name}}\n {{#if\n (and\n (lessthan column.points_possible \"100\")\n (morethan column.points_possible \"2\")\n )\n }}\n
    (Out of {{column.points_possible}})
    \n {{/if}}\n {{#if (or (morethan column.points_possible \"0\") column.quiz_id)}}\n
    \n {{#if (morethan column.points_possible \"0\")}}\n {{#if column.omit_from_final_grade}}\n \n {{else}}\n
    \n {{/if}}\n {{/if}}\n {{#if column.quiz_id}}\n \n {{/if}}\n \n {{/if}}\n \n {{/if}}\n {{/unless}}\n {{/if}}\n {{else}}\n
    \n {{/each}}\n \n {{#each this.assignmentUsers as |user indx|}}\n \n {{#each user.columns as |column index|}}\n {{#if column.submitted_at}}\n \n {{#if (same column.points_possible \"2\")}}\n
    \n {{#if (same column.score \"0\")}}\n \n {{else if (same column.score \"1\")}}\n \n {{else if (same column.score \"2\")}}\n \n {{/if}}\n
    \n
    \n \n
    \n
    \n \n \n \n \n \n
    \n
    \n \n Submitting\n
    \n {{else}}\n
    \n {{column.grade}}\n
    \n \n {{#unless (same column.grading_standard_id \"2\")}}\n
    \n \n
    \n
    \n \n \n \n
    \n
    \n \n Submitting\n
    \n {{/unless}}\n {{/if}}\n \n {{else}}\n {{#if (same index \"0\")}}\n
    \n \n {{#if user.accommodation}}\n
    \n {{/if}}\n
    \n
    {{safehtml column.name}}
    {{if\n column.program\n column.program\n column.type\n }}
    {{#if user.enrolled_late}}ENROLLED LATE ({{user.enrolled_late}}){{/if}}\n {{else if (startswith column.calcType \"Assignments\")}}\n
    \n {{else if (startswith column.calcType \"Discussion Participation\")}}\n \n {{else if (startswith column.calcType \"Live Class Participation\")}}\n {{! Hide live class participation calc column by request from Mareika/Borianas }}\n {{!-- --}}\n {{else if (startswith column.calcType \"Total\")}}\n \n {{else if (same column.grading_standard_id \"2\")}}\n {{#if this.session.readOnly}}\n {{#if column.passfail}}\n \n {{else}}\n \n {{/if}}\n {{else}}\n {{#if column.passfail}}\n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{else if column.score}}\n {{#unless column.calcType}}\n {{#each (dropdown-scale column.points_possible) as |item|}}{{item}}{{/each}}\n {{else}}\n {{column.score}}
    {{column.grade}}
    \n {{/unless}}\n {{else if (same column.type \"custom\")}}\n {{column.content}}\n {{else}}\n {{#unless column.cached_due_date}}\n {{#each (dropdown-scale column.points_possible) as |item|}}{{item}}{{/each}}\n {{else}}\n \n {{/unless}}\n {{/if}}\n {{/if}}\n {{/each}}\n
    \n {{/each}}\n \n
    {{column}}\n {{#each this.filters as |filter index|}}{{#unless (same filter \"All\")}}{{if\n index\n \", \"\n \" \"\n }}{{filter}}{{/unless}}{{else}}
    {{/each}}{{column}}\n
    {{column}}{{column}}{{safehtml column.name}}\n Fetching Grades...
    {{column.score}}
    {{column.grade}}
    {{column.score}}
    {{column.grade}}
    {{column.score}}
    {{column.grade}}
    {{column.score}}\n
    {{column.grade}}
    {{#each this.passfail as |grade|}}{{grade.display}}{{/each}}{{#each this.grades as |grade|}}{{grade}}{{/each}}{{#each this.passfail as |grade|}}{{grade.display}}{{/each}}{{#each this.grades as |grade|}}{{grade}}{{/each}}
    \n
    \n
    \n
    \n */\n {\n \"id\": \"Icxk6PZF\",\n \"block\": \"[[[10,0],[14,0,\\\"gradebook-container active\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showGradesDueAt\\\"]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"grades-due \\\",[52,[30,0,[\\\"gradesUrgent\\\"]],\\\"urgent\\\"]]]],[12],[10,\\\"b\\\"],[12],[10,\\\"i\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"fa-regular fa-alarm-exclamation\\\"],[12],[13],[1,\\\"\\\\n NOTE:\\\"],[13],[1,\\\"\\\\n Final grades are due\\\\n \\\"],[10,1],[14,0,\\\"gradebook-grades-due-tooltip\\\"],[15,\\\"tooltip\\\",[29,[[30,0,[\\\"gradesDueAtLocal\\\"]],\\\" local\\\"]]],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"gradesDueAtEastern\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"assignmentHeaders\\\",\\\"columns\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"table-options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lateGradingPolicyEmpty\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"set-late-grading-policy\\\"],[24,\\\"aria-label\\\",\\\"Set Late Grading Policy in Preferences\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"openLateGradingPolicy\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-triangle-exclamation\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Set Late Grading Policy\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"mute-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"mute-unmute-grades \\\",[52,[30,0,[\\\"unmuteAllGrades\\\"]],\\\"checked\\\"]]]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"weighNotYetDueGrades\\\"]]],null],[12],[1,\\\"Unmute Ungraded Submissions\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"hide-show-muted-grades \\\",[52,[30,0,[\\\"hideMutedGrades\\\"]],\\\"checked\\\"]]]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"hideMuted\\\"]]],null],[12],[1,\\\"Hide Muted Submissions\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"show-filters\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Showing:\\\\n \\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"filters\\\"]]],null]],null],null,[[[1,[52,[30,2],\\\", \\\"]],[1,[30,1]]],[1,2]],null],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-angle-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown-option separate\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"filter-checkbox \\\",[52,[28,[37,9],[\\\"All\\\",[30,0,[\\\"filters\\\"]]],null],\\\"checked\\\"]]]],[24,1,\\\"checkbox-all\\\"],[24,3,\\\"filter\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"changeFilter\\\"]],\\\"All\\\"],null]],null],[12],[1,\\\"\\\\n All\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"border-text\\\"],[12],[1,\\\"or\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown-option\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"filter-checkbox\\\\n \\\",[52,[28,[37,11],[[28,[37,12],[[28,[37,9],[\\\"All\\\",[30,0,[\\\"filters\\\"]]],null]],null],[28,[37,9],[\\\"Assignments\\\",[30,0,[\\\"filters\\\"]]],null]],null],\\\"checked\\\"]]]],[24,1,\\\"checkbox-assignments\\\"],[24,3,\\\"filter\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"changeFilter\\\"]],\\\"Assignments\\\"],null]],null],[12],[1,\\\"\\\\n Assignments\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown-option\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"filter-checkbox\\\\n \\\",[52,[28,[37,11],[[28,[37,12],[[28,[37,9],[\\\"All\\\",[30,0,[\\\"filters\\\"]]],null]],null],[28,[37,9],[\\\"Quizzes\\\",[30,0,[\\\"filters\\\"]]],null]],null],\\\"checked\\\"]]]],[24,1,\\\"checkbox-quizzes\\\"],[24,3,\\\"filter\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"changeFilter\\\"]],\\\"Quizzes\\\"],null]],null],[12],[1,\\\"\\\\n Quizzes\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown-option\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"filter-checkbox\\\\n \\\",[52,[28,[37,11],[[28,[37,12],[[28,[37,9],[\\\"All\\\",[30,0,[\\\"filters\\\"]]],null]],null],[28,[37,9],[\\\"Discussions\\\",[30,0,[\\\"filters\\\"]]],null]],null],\\\"checked\\\"]]]],[24,1,\\\"checkbox-discussions\\\"],[24,3,\\\"filter\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"changeFilter\\\"]],\\\"Discussions\\\"],null]],null],[12],[1,\\\"\\\\n Discussions/Exercises\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"download\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"generateCSV\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-download\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"tg-wrap\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"assignmentHeaders\\\",\\\"columns\\\"]]],null]],null],null,[[[41,[28,[37,16],[[30,4],\\\"0\\\"],null],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"sticky left\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,3,[\\\"name\\\"]]],[[[41,[28,[37,16],[[30,3],\\\"Total\\\"],null],[[[1,\\\" \\\"],[10,\\\"th\\\"],[15,0,[29,[\\\"sticky right-t has-options \\\",[52,[51,[30,0,[\\\"ungradedAsZero\\\"]]],\\\"as-zero\\\"]]]],[12],[1,\\\"\\\\n \\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"filters\\\"]]],null]],null],null,[[[41,[51,[28,[37,16],[[30,5],\\\"All\\\"],null]],[[[1,[52,[30,6],\\\", \\\",\\\" \\\"]],[1,[30,5]]],[]],null]],[5,6]],[[[10,\\\"br\\\"],[12],[13]],[]]],[1,[30,3]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,3],\\\"Live Class Participation\\\"],null],[[],[]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]]],[]],[[[41,[28,[37,16],[[30,3,[\\\"grading_standard_id\\\"]],2],null],[[[1,\\\" \\\"],[10,\\\"th\\\"],[14,0,\\\"sticky right\\\"],[12],[1,[28,[35,21],[[30,3,[\\\"name\\\"]]],null]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[15,0,[29,[\\\"has-options\\\\n \\\",[52,[30,3,[\\\"omit_from_final_grade\\\"]],\\\"omitted\\\"],\\\"\\\\n \\\",[52,[28,[37,11],[[30,3,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,21],[[30,3,[\\\"name\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[28,[37,22],[[30,3,[\\\"points_possible\\\"]],\\\"100\\\"],null],[28,[37,23],[[30,3,[\\\"points_possible\\\"]],\\\"2\\\"],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"subhead\\\"],[12],[1,\\\"(Out of \\\"],[1,[30,3,[\\\"points_possible\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,24],[[28,[37,23],[[30,3,[\\\"points_possible\\\"]],\\\"0\\\"],null],[30,3,[\\\"quiz_id\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"header-options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,23],[[30,3,[\\\"points_possible\\\"]],\\\"0\\\"],null],[[[41,[30,3,[\\\"omit_from_final_grade\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-cut\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"option\\\"],[16,\\\"title\\\",[29,[[52,[30,3,[\\\"muted\\\"]],\\\"Unmute\\\",\\\"Mute\\\"]]]],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"muteToggleAssignment\\\"]],[30,4]],null]],null],[12],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular\\\\n \\\",[52,[30,3,[\\\"muted\\\"]],\\\"fa-microphone\\\",\\\"fa-microphone-slash\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,3,[\\\"quiz_id\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"option\\\"],[24,\\\"title\\\",\\\"View\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"view\\\"]],[30,3,[\\\"quiz_id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-eye\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[3,4]],[[[1,\\\" \\\"],[10,\\\"th\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Fetching Grades...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"assignmentUsers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,7,[\\\"columns\\\"]]],null]],null],null,[[[41,[30,9,[\\\"submitted_at\\\"]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[30,9,[\\\"late\\\"]],\\\"late\\\"],\\\"\\\\n \\\",[52,[28,[37,11],[[30,9,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"muted\\\"]],\\\"muted\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"isEditing\\\"]],\\\"editing\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"low_order\\\"]],\\\"dropped\\\"]]]],[15,1,[29,[\\\"cell-\\\",[30,9,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,9,[\\\"points_possible\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"def-score\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,16],[[30,9,[\\\"score\\\"]],\\\"0\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,9,[\\\"score\\\"]],\\\"1\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-star-half-stroke\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,9,[\\\"score\\\"]],\\\"2\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-star\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"grade-edit-on\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"gradeEditOn\\\"]],[30,9,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade-editor\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[4,[38,6],[\\\"change\\\",[28,[37,10],[[30,0,[\\\"assignGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,16],[[30,9,[\\\"score\\\"]],\\\"0\\\"],null]],[14,2,\\\"0\\\"],[12],[1,\\\"0\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,16],[[30,9,[\\\"score\\\"]],\\\"1\\\"],null]],[14,2,\\\"1\\\"],[12],[1,\\\"1/2\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,16],[[30,9,[\\\"score\\\"]],\\\"2\\\"],null]],[14,2,\\\"2\\\"],[12],[1,\\\"1\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade-submitting\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Submitting\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"def-score\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,9,[\\\"grade\\\"]]],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"paren-text\\\"],[15,\\\"truncated\\\",[28,[37,28],[[30,9,[\\\"score\\\"]]],null]],[15,\\\"full\\\",[30,9,[\\\"score\\\"]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,16],[[30,9,[\\\"grading_standard_id\\\"]],\\\"2\\\"],null]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"grade-edit-on\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"gradeEditOn\\\"]],[30,9,[\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade-editor\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,29],[[24,\\\"placeholder\\\",\\\"Score\\\"]],[[\\\"@value\\\",\\\"@enter\\\"],[[30,9,[\\\"score\\\"]],[28,[37,10],[[30,0,[\\\"assignGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]],[30,9,[\\\"score\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,0,\\\"fa-regular fa-check-circle\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"assignGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]],[30,9,[\\\"score\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,0,\\\"fa-regular fa-times-circle\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"gradeEditOff\\\"]],[30,9,[\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grade-submitting\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Submitting\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,10],\\\"0\\\"],null],[[[1,\\\" \\\"],[11,\\\"td\\\"],[24,0,\\\"sticky-f left student-info\\\"],[4,[38,6],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[10,0],[14,0,\\\"gradebook-avatar-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"gradebook-avatar\\\"],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[15,\\\"src\\\",[29,[[30,9,[\\\"avatar\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,7,[\\\"accommodation\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"gradebook-user-accommodation\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-universal-access accommodation\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"name-cont\\\"],[12],[1,[28,[35,21],[[30,9,[\\\"name\\\"]]],null]],[10,0],[14,0,\\\"program\\\"],[12],[1,[52,[30,9,[\\\"program\\\"]],[30,9,[\\\"program\\\"]],[30,9,[\\\"type\\\"]]]],[13],[13],[41,[30,7,[\\\"enrolled_late\\\"]],[[[10,0],[14,0,\\\"user-late-add\\\"],[12],[1,\\\"ENROLLED LATE (\\\"],[1,[30,7,[\\\"enrolled_late\\\"]]],[1,\\\")\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,9,[\\\"calcType\\\"]],\\\"Assignments\\\"],null],[[[1,\\\" \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"score\\\"]]],[1,\\\" \\\"],[10,0],[14,0,\\\"paren-text\\\"],[12],[1,[30,9,[\\\"grade\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,9,[\\\"calcType\\\"]],\\\"Discussion Participation\\\"],null],[[[1,\\\" \\\"],[10,\\\"td\\\"],[12],[1,[30,9,[\\\"score\\\"]]],[1,\\\" \\\"],[10,0],[14,0,\\\"paren-text\\\"],[12],[1,[30,9,[\\\"grade\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[[30,9,[\\\"calcType\\\"]],\\\"Live Class Participation\\\"],null],[[],[]],[[[41,[28,[37,20],[[30,9,[\\\"calcType\\\"]],\\\"Total\\\"],null],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"sticky-f right-t\\\"],[12],[1,[30,9,[\\\"score\\\"]]],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"paren-text\\\"],[12],[1,[30,9,[\\\"grade\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,16],[[30,9,[\\\"grading_standard_id\\\"]],\\\"2\\\"],null],[[[41,[30,0,[\\\"session\\\",\\\"readOnly\\\"]],[[[41,[30,9,[\\\"passfail\\\"]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"sticky-f right\\\"],[12],[11,\\\"select\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"assignFinalGrade\\\"]]],null],[12],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"passfail\\\"]]],null]],null],null,[[[10,\\\"option\\\"],[15,2,[29,[[30,11,[\\\"value\\\"]]]]],[15,\\\"selected\\\",[28,[37,16],[[30,11,[\\\"value\\\"]],[30,9,[\\\"grade\\\"]]],null]],[12],[1,[30,11,[\\\"display\\\"]]],[13]],[11]],null],[13],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"sticky-f right\\\"],[12],[11,\\\"select\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"assignFinalGrade\\\"]]],null],[12],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"grades\\\"]]],null]],null],null,[[[10,\\\"option\\\"],[15,2,[29,[[30,12]]]],[15,\\\"selected\\\",[28,[37,16],[[30,12],[30,9,[\\\"grade\\\"]]],null]],[12],[1,[30,12]],[13]],[12]],null],[13],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,9,[\\\"passfail\\\"]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"sticky-f right\\\"],[12],[11,\\\"select\\\"],[4,[38,6],[\\\"change\\\",[28,[37,10],[[30,0,[\\\"assignFinalGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"passfail\\\"]]],null]],null],null,[[[10,\\\"option\\\"],[15,2,[29,[[30,13,[\\\"value\\\"]]]]],[15,\\\"selected\\\",[28,[37,16],[[30,13,[\\\"value\\\"]],[30,9,[\\\"grade\\\"]]],null]],[12],[1,[30,13,[\\\"display\\\"]]],[13]],[13]],null],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[14,0,\\\"sticky-f right\\\"],[12],[11,\\\"select\\\"],[4,[38,6],[\\\"change\\\",[28,[37,10],[[30,0,[\\\"assignFinalGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"grades\\\"]]],null]],null],null,[[[10,\\\"option\\\"],[15,2,[29,[[30,14]]]],[15,\\\"selected\\\",[28,[37,16],[[30,14],[30,9,[\\\"grade\\\"]]],null]],[12],[1,[30,14]],[13]],[14]],null],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],[[[41,[30,9,[\\\"score\\\"]],[[[41,[51,[30,9,[\\\"calcType\\\"]]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,11],[[30,9,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"muted\\\"]],\\\"muted\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"omit_from_final_grade\\\"]],\\\"muted\\\"]]]],[12],[11,\\\"select\\\"],[4,[38,6],[\\\"change\\\",[28,[37,10],[[30,0,[\\\"assignGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[42,[28,[37,8],[[28,[37,8],[[28,[37,31],[[30,9,[\\\"points_possible\\\"]]],null]],null]],null],null,[[[10,\\\"option\\\"],[15,2,[29,[[30,15]]]],[15,\\\"selected\\\",[28,[37,16],[[30,15],[30,9,[\\\"score\\\"]]],null]],[12],[1,[30,15]],[13]],[15]],null],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,11],[[30,9,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"muted\\\"]],\\\"muted\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"omit_from_final_grade\\\"]],\\\"muted\\\"]]]],[12],[1,[30,9,[\\\"score\\\"]]],[1,\\\" \\\"],[10,0],[14,0,\\\"paren-text\\\"],[12],[1,[30,9,[\\\"grade\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[28,[37,16],[[30,9,[\\\"type\\\"]],\\\"custom\\\"],null],[[[1,\\\" \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,11],[[30,9,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"muted\\\"]],\\\"muted\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"omit_from_final_grade\\\"]],\\\"muted\\\"]]]],[12],[1,[30,9,[\\\"content\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,9,[\\\"cached_due_date\\\"]]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,11],[[30,9,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"muted\\\"]],\\\"muted\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"omit_from_final_grade\\\"]],\\\"muted\\\"]]]],[12],[11,\\\"select\\\"],[4,[38,6],[\\\"change\\\",[28,[37,10],[[30,0,[\\\"assignGrade\\\"]],[30,9,[\\\"assignment_id\\\"]],[30,9,[\\\"id\\\"]],[30,7,[\\\"id\\\"]]],null]],null],[12],[42,[28,[37,8],[[28,[37,8],[[28,[37,31],[[30,9,[\\\"points_possible\\\"]]],null]],null]],null],null,[[[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,16],[[30,16],[30,9,[\\\"score\\\"]]],null]],[12],[1,[30,16]],[13]],[16]],null],[13],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"td\\\"],[15,0,[29,[[52,[28,[37,11],[[30,9,[\\\"muted\\\"]],[30,0,[\\\"hideMutedGrades\\\"]]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"muted\\\"]],\\\"muted\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"low_order\\\"]],\\\"dropped\\\"],\\\"\\\\n \\\",[52,[30,9,[\\\"omit_from_final_grade\\\"]],\\\"muted\\\"]]]],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-minus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[9,10]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"filter\\\",\\\"index\\\",\\\"column\\\",\\\"index\\\",\\\"filter\\\",\\\"index\\\",\\\"user\\\",\\\"indx\\\",\\\"column\\\",\\\"index\\\",\\\"grade\\\",\\\"grade\\\",\\\"grade\\\",\\\"grade\\\",\\\"item\\\",\\\"item\\\"],[\\\"div\\\",\\\"if\\\",\\\"b\\\",\\\"i\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"inarray\\\",\\\"fn\\\",\\\"and\\\",\\\"not\\\",\\\"table\\\",\\\"tbody\\\",\\\"tr\\\",\\\"same\\\",\\\"th\\\",\\\"unless\\\",\\\"br\\\",\\\"startswith\\\",\\\"safehtml\\\",\\\"lessthan\\\",\\\"morethan\\\",\\\"or\\\",\\\"td\\\",\\\"select\\\",\\\"option\\\",\\\"format-grade\\\",\\\"input\\\",\\\"img\\\",\\\"dropdown-scale\\\"]]\",\n \"moduleName\": \"bocce/components/gradebook.hbs\",\n \"isStrictMode\": false\n });\n // app/components/gradebook.js\n /*\n Passed in props:\n * closeGradebook: closes this gradebook\n * discussions: discussions controller, used in model\n */\n\n /* eslint-disable-next-line ember/no-observers */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n model: [],\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n this.filters = this.filters || [\"All\"];\n this.store.findAll(\"gradebook\", {\n reload: true\n }).then(function (gradebook) {\n return _this.set(\"model\", gradebook);\n });\n },\n didUpdateAttrs: function didUpdateAttrs() {\n var _this2 = this;\n this._super.apply(this, arguments);\n this.store.findAll(\"gradebook\", {\n reload: true\n }).then(function (gradebook) {\n _this2.set(\"model\", gradebook);\n });\n },\n userprofileService: (0, _service.inject)(\"userprofile\"),\n gradeCalculator: (0, _service.inject)(\"grade-calculator\"),\n router: (0, _service.inject)(),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n confirmDialog: (0, _service.inject)(),\n ungradedAsZero: true,\n assignmentHeaders: (0, _object.computed)(\"model\", \"model.content\", function () {\n var headers = this.model[0];\n if (headers) {\n var _iterator = _createForOfIteratorHelper(headers.columns),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var column = _step.value;\n if (column.muted) {\n column.muted = false;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n return headers;\n }),\n assignmentUsers: (0, _object.computed)(\"model\", \"model.content\", function () {\n return this.model.slice(1);\n }),\n grades: (0, _object.computed)(function () {\n return [\"-\", \"A\", \"A-\", \"B+\", \"B\", \"B-\", \"C+\", \"C\", \"C-\", \"D\", \"F\", \"I\"];\n }),\n passfail: (0, _object.computed)(\"session.aFNonCredit\", function () {\n var retval = [{\n display: \"-\",\n value: \"-\"\n }, {\n display: \"Pass\",\n value: \"A\"\n }, {\n display: \"Fail\",\n value: \"F\"\n }];\n\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.aFNonCredit\")) {\n retval = [{\n display: \"-\",\n value: \"-\"\n }, {\n display: \"Pass\",\n value: \"A\"\n }, {\n display: \"Fail\",\n value: \"F\"\n }, {\n display: \"A\",\n value: \"A\"\n }, {\n display: \"A-\",\n value: \"A-\"\n }, {\n display: \"B+\",\n value: \"B+\"\n }, {\n display: \"B\",\n value: \"B\"\n }, {\n display: \"B-\",\n value: \"B-\"\n }, {\n display: \"C+\",\n value: \"C+\"\n }, {\n display: \"C\",\n value: \"C\"\n }, {\n display: \"C-\",\n value: \"C-\"\n }, {\n display: \"D\",\n value: \"D\"\n }, {\n display: \"F\",\n value: \"F\"\n }, {\n display: \"I\",\n value: \"I\"\n }];\n }\n return retval;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n gradesDueAtLocal: (0, _object.computed)(function () {\n /* eslint-disable-next-line ember/no-get */\n return moment(this.get(\"session.gradeLockAt\")).format(\"MMM DD, h:mm A\");\n }),\n gradesDueAtEastern: (0, _object.computed)(function () {\n return moment(this.get(\"session.gradeLockAt\")).tz(\"America/New_York\").format(\"MMM DD, h:mm A\") + \" ET\";\n }),\n lateGradingPolicyEmpty: (0, _object.computed)(\"session.lateGradingPolicy\", \"session.isInstructor\", function () {\n if (!this.get(\"session.isInstructor\")) {\n return false;\n }\n var policy = this.get(\"session.lateGradingPolicy\");\n return !policy || !policy.trim();\n }),\n openLateGradingPolicy: (0, _object.action)(function () {\n if (this.openPrefsToLateGradingPolicy) {\n this.openPrefsToLateGradingPolicy();\n }\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n showGradesDueAt: (0, _object.computed)(\"session.gradeLockAt\", function () {\n /**\n * When interface receives a term update without a grade cutoff date, it is intended that there is no cutoff date. In this case,\n * the date is set to the year 9999, which is a date that more than likely will never be reached. Javascript's date's .getYear() returns\n * the number of years since 1900. So, in checking equality to 9999 - 1900, we are checking if the year is 9999, and thus if there is a grade\n * cutoff.\n */\n return this.get(\"session.gradeLockAt\") && !(this.get(\"session.gradeLockAt\").getYear() == 9999 - 1900);\n }),\n unmuteAllGrades: false,\n hideMutedGrades: false,\n /* eslint-disable-next-line ember/no-observers */\n calcGrades: (0, _object.observer)(\"assignmentHeaders.@each.muted\", \"ungradedAsZero\", \"unmuteAllGrades\", \"filters\", function () {\n var _this3 = this;\n var usersPrp = this.assignmentUsers,\n unmuteAllGrades = this.unmuteAllGrades,\n ungradedAsZero = this.ungradedAsZero;\n var _loop = function _loop() {\n var allUserAssignments = usersPrp[h].get(\"columns\");\n var finalGrades = _this3.get(\"gradeCalculator\").calculateFinalGrade(allUserAssignments, unmuteAllGrades, ungradedAsZero);\n\n // Assign total grades to each category (assignment type)\n var _loop2 = function _loop2(i) {\n var indx = usersPrp[h].get(\"columns\").findIndex(function (m) {\n return m && m.calcType && m.calcType.indexOf(finalGrades.categoryGrades[i].category) > -1;\n });\n var scoreCalc = finalGrades.categoryGrades[i].score;\n var gradeCalc = finalGrades.categoryGrades[i].grade;\n _this3.set(\"assignmentUsers.\" + h + \".columns.\" + indx + \".score\", scoreCalc);\n _this3.set(\"assignmentUsers.\" + h + \".columns.\" + indx + \".grade\", gradeCalc);\n };\n for (var i = 0; i < finalGrades.categoryGrades.length; i++) {\n _loop2(i);\n }\n\n // Assign total grades to the final grade columns\n var totalIndx = usersPrp[h].get(\"columns\").findIndex(function (m) {\n return m && m.calcType === \"Total\";\n });\n _this3.set(\"assignmentUsers.\" + h + \".columns.\" + totalIndx + \".score\", finalGrades.weightedScore);\n _this3.set(\"assignmentUsers.\" + h + \".columns.\" + totalIndx + \".grade\", finalGrades.finalGrade);\n };\n for (var h = 0; h < usersPrp.length; h++) {\n _loop();\n }\n }),\n weighNotYetDueGrades: (0, _object.action)(function () {\n this.toggleProperty(\"unmuteAllGrades\");\n }),\n hideMuted: (0, _object.action)(function () {\n this.toggleProperty(\"hideMutedGrades\");\n }),\n muteToggleAssignment: (0, _object.action)(function (assignment_index) {\n var usersPrp = this.assignmentUsers;\n for (var i = 0; i < usersPrp.length; i++) {\n var _isMuted = this.get(\"assignmentUsers.\" + i + \".columns.\" + assignment_index + \".muted\");\n this.set(\"assignmentUsers.\" + i + \".columns.\" + assignment_index + \".muted\", !_isMuted);\n }\n var isMuted = this.get(\"assignmentHeaders.columns.\" + assignment_index + \".muted\");\n this.set(\"assignmentHeaders.columns.\" + assignment_index + \".muted\", !isMuted);\n this.calcGrades();\n }),\n ungradedAsZeroToggle: (0, _object.action)(function () {\n var asZero = this.ungradedAsZero;\n this.set(\"ungradedAsZero\", !asZero);\n }),\n gradeEditOn: (0, _object.action)(function (column) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content .tg-wrap table td#cell-\" + column).addClass(\"editing\");\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content .tg-wrap table td#cell-\" + column + \" input\").focus();\n }),\n gradeEditOff: (0, _object.action)(function (column) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content .tg-wrap table td#cell-\" + column).removeClass(\"editing\");\n }),\n assignGrade: (0, _object.action)(function (assignment_id, submission_id, student_id, score) {\n var _this4 = this;\n var usr = this.assignmentUsers,\n inx = usr.findIndex(function (m) {\n return m && m.id === student_id;\n }),\n indx = usr[inx].get(\"columns\").findIndex(function (m) {\n return m && m.assignment_id === assignment_id;\n });\n if (!score || _typeof(score) === \"object\") {\n score = event.target.value;\n }\n var cellId = usr[inx].get(\"columns\")[indx].id;\n /* eslint-disable-next-line ember/no-jquery */\n var $cell = (0, _jquery.default)(\".gradebook-container .content .tg-wrap table td#cell-\" + cellId);\n $cell.removeClass(\"editing\").addClass(\"submitting\");\n usr[inx].set(\"columns.\" + indx + \".score\", score);\n\n /* eslint-disable-next-line ember/no-get */\n this.store.nestResources(\"submission\", [{\n section: this.get(\"session.section.id\")\n }, {\n assignment: assignment_id\n }]);\n this.store.findRecord(\"submission\", submission_id + \"_\" + student_id).then(function (sub) {\n sub.set(\"posted_grade\", score);\n sub.save().then(function () {\n usr[inx].set(\"columns.\" + indx + \".score\", sub.get(\"score\"));\n usr[inx].set(\"columns.\" + indx + \".grade\", sub.get(\"grade\"));\n\n // PRM: I hate these confirmations _so_ much.\n /* eslint-disable-next-line ember/no-get */\n if (!_this4.get(\"session.user.hideGradebookConfirmations\")) {\n _this4.confirmDialog.show({\n subtitle: \"Your grade has been successfully submitted.\"\n });\n }\n _this4.calcGrades();\n (0, _object.notifyPropertyChange)(_this4, \"assignmentUsers\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content .tg-wrap table td\").removeClass(\"editing submitting\");\n }, function (err) {\n var prompt = \"Please try again in a few minutes.\";\n if (err.errors && err.errors.length > 0) {\n var status = err.errors[0].status;\n if (status === \"401\") {\n prompt = \"You do not have permission to grade in this course. Please make sure you are enrolled as an instructor.\";\n } else if (status === \"501\") {\n prompt = \"Something went wrong with the server. Please contact support.\";\n } else if (status === \"503\") {\n prompt = \"Please try again in a few minutes.\";\n } else {\n prompt = \"Please contact suppot with the following error: \" + err.errors[0].detail;\n }\n }\n _this4.confirmDialog.show({\n subtitle: \"Unable to save your grade. \" + prompt\n });\n $cell.removeClass(\"submitting\");\n });\n });\n }),\n assignFinalGrade: (0, _object.action)(function (assignment_id, submission_id, student_id) {\n var _this5 = this;\n var grade = event.target.value;\n\n // Lock out grading after session ends\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.readOnly\")) {\n this.confirmDialog.show({\n subtitle: \"Final grades for this course are now locked. Please contact the registrar directly to modify any final student grades.\"\n });\n return;\n }\n var usr = this.assignmentUsers,\n inx = usr.findIndex(function (m) {\n return m && m.id === student_id;\n }),\n indx = usr[inx].get(\"columns\").findIndex(function (m) {\n return m && m.assignment_id === assignment_id;\n });\n usr[inx].set(\"columns.\" + indx + \".grade\", grade);\n\n /* eslint-disable-next-line ember/no-get */\n this.store.nestResources(\"submission\", [{\n section: this.get(\"session.section.id\")\n }, {\n assignment: assignment_id\n }]);\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content\").addClass(\"editing\");\n this.store.findRecord(\"submission\", submission_id + \"_\" + student_id).then(function (sub) {\n sub.set(\"posted_grade\", grade);\n sub.save().then(function () {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/final-grade-conf\",\n data: JSON.stringify({\n section_id: _this5.get(\"session.section.id\"),\n term_name: _this5.get(\"session.course.term.name\")\n }),\n success: function success(data) {\n var dbFailurePrompt = \"Unable to write the grade to the database. Please try again. If this error persists, please contact support with the following information: the grade you attempted to submit, the name of the student whose grade you attempted to submit, and any error messages you may have received. This information will help us resolve the issue as quickly as possible. We apologize for the inconvenience.\";\n if (data !== null && data !== void 0 && data.success) {\n // Verify the just-submitted grade made it to the DB by looking\n // it up in the gradedStudents list returned by final-grade-conf.\n var gradedStudents = data.message.gradedStudents || [];\n var currentStudentGraded = gradedStudents.find(function (gradedStudent) {\n return parseInt(gradedStudent.userId) === parseInt(student_id);\n });\n var currentStudentGradeMatches = currentStudentGraded && currentStudentGraded.grade === grade;\n if (currentStudentGradeMatches) {\n /* eslint-disable-next-line ember/no-get */\n if (!_this5.get(\"session.user.hideGradebookConfirmations\")) {\n _this5.confirmDialog.show({\n subtitle: \"Your grade has been successfully submitted.\"\n });\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content .tg-wrap table td\").removeClass(\"editing\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content\").removeClass(\"editing\");\n } else {\n _this5.confirmDialog.show({\n subtitle: dbFailurePrompt\n });\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content\").removeClass(\"editing\");\n // Blank out grade to reflect that the grade was not successfully written to the database\n usr[inx].set(\"columns.\" + indx + \".grade\", null);\n }\n } else {\n _this5.confirmDialog.show({\n subtitle: dbFailurePrompt\n });\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content\").removeClass(\"editing\");\n // Blank out grade to reflect that the grade was not successfully written to the database\n usr[inx].set(\"columns.\" + indx + \".grade\", null);\n }\n },\n error: function error(jqXHR, textStatus) {\n console.log(\"Error: \" + textStatus);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content\").removeClass(\"editing\");\n // Blank out grade to reflect that the grade was not successfully written to the database\n usr[inx].set(\"columns.\" + indx + \".grade\", null);\n }\n });\n }, function (err) {\n var prompt = \"Please try again in a few minutes.\";\n if (err.errors && err.errors.length > 0) {\n var status = err.errors[0].status;\n if (status === \"401\") {\n prompt = \"You do not have permission to grade in this course. Please make sure you are enrolled as an instructor.\";\n } else if (status === \"501\") {\n prompt = \"Something went wrong with the server. Please contact support.\";\n } else if (status === \"503\") {\n prompt = \"Please try again in a few minutes.\";\n } else {\n prompt = \"Please contact suppot with the following error: \" + err.errors[0].detail;\n }\n }\n _this5.confirmDialog.show({\n subtitle: \"Unable to save your grade. \" + prompt\n });\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".gradebook-container .content\").removeClass(\"editing\");\n // Blank out grade to reflect that the grade was not successfully written to the database\n usr[inx].set(\"columns.\" + indx + \".grade\", null);\n });\n });\n }),\n generateCSV: (0, _object.action)(function () {\n var csvArr = [],\n rowsTemp = [];\n\n /* eslint-disable-next-line ember/no-get */\n var headersPrp = this.get(\"assignmentHeaders.columns\"),\n usersPrp = this.assignmentUsers;\n for (var i = 0; i < headersPrp.length; i++) {\n var text = headersPrp[i].name || headersPrp[i].title || headersPrp[i];\n //surround with couples of double quotes in case the header title has a comma in it\n rowsTemp.push('\"' + text.replaceAll(/\"/gm, '\"\"') + '\"');\n }\n csvArr.push(rowsTemp);\n for (var _i = 0; _i < usersPrp.length; _i++) {\n rowsTemp = [];\n for (var j = 0; j < usersPrp[_i].get(\"columns\").length; j++) {\n var current = usersPrp[_i].get(\"columns\")[j];\n var _text = \"\";\n if (!current) {\n _text = \"-\";\n } else if (current.grading_standard_id === 2) {\n // final grade column\n _text = current.grade ? current.grade : \"-\";\n } else if (current.grade) {\n if (current.grade === \"Complete\") {\n _text = \"+\";\n } else if (current.grade === \"N/A\" || !current.score || current.score === \"N/A\") {\n _text = \"0% (F)\";\n } else {\n _text = current.score + (current.score.toString().includes(\"%\") ? \"\" : \"%\") + \" (\" + current.grade + \")\";\n }\n } else if (current.score) {\n _text = current.score;\n } else if (current.content) {\n // live class attendance column\n _text = current.content;\n } else if (current.name) {\n _text = current.name;\n } else {\n _text = \"-\";\n }\n if (current && current.late) {\n _text += \" (LATE)\";\n }\n rowsTemp.push('\"' + _text.replaceAll(/\"/gm, '\"\"') + '\"');\n }\n csvArr.push(rowsTemp);\n }\n var csvContent = \"data:text/csv;charset=utf-8,\" + csvArr.map(function (e) {\n return e.join(\",\");\n }).join(\"\\n\");\n var encodedUri = encodeURI(csvContent);\n var link = document.createElement(\"a\");\n link.setAttribute(\"href\", encodedUri);\n /* eslint-disable-next-line ember/no-get */\n link.setAttribute(\"download\", this.get(\"session.course.code\") + \"_\" + this.get(\"session.course.term.name\") + \"_gradebook.csv\");\n document.body.appendChild(link); // Required for FF\n link.click(); // This will download the data file named \"my_data.csv\".\n }),\n changeFilter: (0, _object.action)(function (filter) {\n var currentFilters = this.filters;\n if (filter === \"All\") {\n this.set(\"filters\", [\"All\"]);\n } else {\n if (currentFilters.includes(filter)) {\n currentFilters = currentFilters.filter(function (curFilter) {\n return curFilter !== filter;\n });\n } else {\n currentFilters.push(filter);\n }\n currentFilters = currentFilters.filter(function (curFilter) {\n return curFilter !== \"All\";\n });\n if (currentFilters.length === 0) {\n currentFilters.push(\"All\");\n }\n this.set(\"filters\", currentFilters);\n }\n\n // set columns to be muted based on the current filter\n var usersPrp = this.assignmentUsers;\n for (var i = 0; i < usersPrp.length; i++) {\n for (var j = 0; j < usersPrp[i].columns.length; j++) {\n var itm = usersPrp[i].columns[j];\n if (itm.assignment_type && !this.filters.includes(\"All\")) {\n var filterAssignments = itm.assignment_type.includes(\"Assignment\") && !this.filters.includes(\"Assignments\");\n var filterQuizzes = itm.assignment_type.includes(\"Quiz\") && !this.filters.includes(\"Quizzes\");\n // filterDiscussions is a catch-all for the rest of the assignments not included in assignments or quizzes\n var filterDiscussions = !itm.assignment_type.includes(\"Assignment\") && !itm.assignment_type.includes(\"Quiz\") && !this.filters.includes(\"Discussions\");\n var isFiltered = filterAssignments || filterDiscussions || filterQuizzes;\n this.set(\"assignmentUsers.\" + i + \".columns.\" + j + \".muted\", isFiltered);\n this.set(\"assignmentHeaders.columns.\" + j + \".muted\", isFiltered);\n } else if (itm.assignment_type && this.filters.includes(\"All\")) {\n this.set(\"assignmentUsers.\" + i + \".columns.\" + j + \".muted\", false);\n this.set(\"assignmentHeaders.columns.\" + j + \".muted\", false);\n }\n }\n }\n }),\n view: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(quizId) {\n var quiz, item;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return store.findRecord(\"quiz\", quizId);\n case 1:\n quiz = _context.v;\n _context.n = 2;\n return store.findRecord(\"item\", quiz.id);\n case 2:\n item = _context.v;\n this.router.transitionTo(\"classroom.lessons\", item.lesson.id, item.id);\n this.closeGradebook();\n case 3:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }())\n }));\n});","define(\"bocce/components/interactions/guitar/main\", [\"exports\", \"@ember/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _component.default.extend({\n didInsertElement: function didInsertElement() {\n console.log(\"guitar main!\");\n }\n });\n});","define(\"bocce/components/kaltura-player\", [\"exports\", \"@ember/component\", \"@ember/debug\", \"@ember/template-factory\"], function (_exports, _component, _debug, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/debug\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"TKlltwrC\",\n \"block\": \"[[],[],[]]\",\n \"moduleName\": \"bocce/components/kaltura-player.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n kalturaEmbed: function kalturaEmbed() {\n if (window.kWidget) {\n var kalturaRecording = this.kalturaRecording;\n var kEmbedObject = {\n targetId: this.elementId,\n flashvars: {\n autoPlay: false\n },\n wid: \"_2588802\",\n uiconf_id: 44413892,\n entry_id: kalturaRecording.kalturaId\n };\n var embedResult = window.kWidget.embed(kEmbedObject);\n (false && !(embedResult !== false) && (0, _debug.assert)(\"kWidget.embed is called on an existing DOM element\", embedResult !== false));\n }\n },\n didRender: function didRender() {\n this.kalturaEmbed();\n }\n }));\n});","define(\"bocce/components/legacy-boot\", [\"exports\", \"@ember/component\", \"jquery\", \"bocce/mixins/boot\", \"@ember/template-factory\"], function (_exports, _component, _jquery, _boot, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"jquery\",0,\"bocce/mixins/boot\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{{this.content}}}\n
    \n */\n {\n \"id\": \"vb/oZQKJ\",\n \"block\": \"[[[10,0],[14,0,\\\"bootable-area\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"content\\\"]]],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/legacy-boot.hbs\",\n \"isStrictMode\": false\n });\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_boot.default, {\n didInsertElement: function didInsertElement() {\n this.bootContent();\n },\n didUpdate: function didUpdate() {\n this.bootContent();\n },\n bootContent: function bootContent() {\n /* eslint-disable-next-line ember/no-jquery */\n var node = (0, _jquery.default)(this.element).find(\".bootable-area\");\n if (node && node.length) {\n return this.boot_area(node, false, true, false, false, true);\n } else {\n return null;\n }\n }\n }));\n});","define(\"bocce/components/lessons/event-new-collapsible\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n \n {{#if @event.incomplete}}{{sum @index 1}}{{else}}{{/if}}\n
    \n
    \n
    \n {{if\n @event.titleInput\n @event.titleInput\n \"Untitled Session\"\n }}\n
    \n \n \n
    \n
    \n
    \n \n {{if @event.startDate_date @event.startDate_date \"No date\"}}\n ·\n \n {{if @event.startDate_time @event.startDate_time \"No time\"}}\n
    \n
    \n \n \n */\n {\n \"id\": \"feb1WUNd\",\n \"block\": \"[[[11,0],[16,0,[29,[\\\"single-event__collapsible-container\\\\n \\\",[52,[30,1],\\\"single-event__collapsible-container--active\\\"]]]],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"single-event__header-index\\\\n \\\",[52,[51,[30,3,[\\\"incomplete\\\"]]],\\\"single-event__header-index--complete\\\"]]]],[12],[1,\\\"\\\\n \\\"],[41,[30,3,[\\\"incomplete\\\"]],[[[1,[28,[35,4],[[30,4],1],null]]],[]],[[[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13]],[]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-details\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-row1\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"single-event__header-title\\\"],[12],[1,[52,[30,3,[\\\"titleInput\\\"]],[30,3,[\\\"titleInput\\\"]],\\\"Untitled Session\\\"]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__header-action-btn\\\"],[24,\\\"aria-label\\\",\\\"Edit this session\\\"],[4,[38,2],[\\\"click\\\",[30,2]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"single-event__header-action-btn single-event__header-action-btn--delete\\\"],[24,\\\"aria-label\\\",\\\"Delete this session\\\"],[4,[38,2],[\\\"click\\\",[30,5]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-trash-can\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__header-row2\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[52,[30,3,[\\\"startDate_date\\\"]],[30,3,[\\\"startDate_date\\\"]],\\\"No date\\\"]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"single-event__header-sep\\\"],[12],[1,\\\"·\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,[52,[30,3,[\\\"startDate_time\\\"]],[30,3,[\\\"startDate_time\\\"]],\\\"No time\\\"]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@isActive\\\",\\\"@toggleShowEventDetails\\\",\\\"@event\\\",\\\"@index\\\",\\\"@deleteEvent\\\"],[\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"unless\\\",\\\"sum\\\",\\\"i\\\",\\\"span\\\",\\\"button\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/event-new-collapsible.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"event-new-collapsible\"));\n});","define(\"bocce/components/lessons/event-new-template-manager\", [\"exports\", \"@ember/component\", \"bocce/config/environment\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _environment, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"bocce/config/environment\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
      \n {{#each @templates as |template index|}}\n
    • \n
      \n {{template.name}}\n
      \n
      \n Rename\n Select\n \n \n \n
      \n
    • \n {{/each}}\n
    \n
    \n */\n {\n \"id\": \"eyls1PfQ\",\n \"block\": \"[[[11,0],[24,\\\"aria-hidden\\\",\\\"true\\\"],[24,0,\\\"popup-backdrop\\\"],[4,[38,1],[\\\"click\\\",[30,1]],null],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[15,0,[29,[\\\"template-manager \\\",[52,[51,[30,2]],\\\"template-manager--hidden\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"template-manager__list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,3]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"template-manager__list-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-manager__template-name\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,4,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"template-manager__options-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Rename\\\"],[24,0,\\\"template-manager__rename-button button button--sm button--black-ghost\\\"],[24,\\\"aria-label\\\",\\\"Rename Template\\\"],[4,[38,1],[\\\"click\\\",[28,[37,8],[[30,6],[30,4,[\\\"name\\\"]],[30,4,[\\\"id\\\"]]],null]],null],[12],[1,\\\"Rename\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Select\\\"],[24,0,\\\"template-manager__select-button button button--sm button--black-ghost\\\"],[24,\\\"aria-label\\\",\\\"Use Template\\\"],[4,[38,1],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"useTemplate\\\"]],[30,5]],null]],null],[12],[1,\\\"Select\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"hint\\\",\\\"Delete\\\"],[24,0,\\\"template-manager__delete-button button button--sm button--black-ghost\\\"],[24,\\\"aria-label\\\",\\\"Permanently Delete Template\\\"],[4,[38,1],[\\\"click\\\",[28,[37,8],[[30,7],[30,4,[\\\"id\\\"]],[30,4,[\\\"name\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-trash\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@hideTemplateManager\\\",\\\"@templateManagerShown\\\",\\\"@templates\\\",\\\"template\\\",\\\"index\\\",\\\"@renameTemplate\\\",\\\"@deleteTemplate\\\"],[\\\"div\\\",\\\"on\\\",\\\"unless\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"button\\\",\\\"fn\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/event-new-template-manager.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n confirmDialog: (0, _service.inject)(),\n didInsertElement: function didInsertElement() {\n //Move this template to the 'template-manager__root' div, which is in 'event-new.hbs'. The design\n //was much easier with this pattern.\n $(this.element).appendTo(\"#new-event__template-manager-root\");\n },\n changeTemplate: function changeTemplate(index) {\n this.onTemplateChange(index);\n this.hideTemplateManager();\n },\n useTemplate: (0, _object.action)(function (index) {\n var self = this;\n if (!this.contentNotDirty) {\n //User has made changes without saving, confirm they want to change templates.\n this.confirmDialog.show({\n subtitle: _environment.default.APP.text.confirmChangeTemplate,\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"No\") {\n return false;\n }\n self.changeTemplate(index);\n });\n } else {\n self.changeTemplate(index);\n }\n })\n }));\n});","define(\"bocce/components/lessons/lesson-wrapper\", [\"exports\", \"@ember/component\", \"@ember/debug\", \"bocce/mixins/notify\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _debug, _notify, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/component\",0,\"bocce/mixins/notify\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{yield}}\n */\n {\n \"id\": \"/QxUb1DM\",\n \"block\": \"[[[18,1,null]],[\\\"&default\\\"],[\\\"yield\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/lesson-wrapper.hbs\",\n \"isStrictMode\": false\n });\n /*\n lessons/lesson-wrapper Component\n \n This component helps support some of the functionality\n from the old-style Views. Components are the way of the future;\n if you're building new stuff, avoid this component and put\n your new feature in a component.\n \n */\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_notify.default, {\n classNames: [\"main-panel\"],\n didInsertElement: function didInsertElement() {\n var ctl = this.parent;\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"img\").on(\"error\", function () {\n /* eslint-disable-next-line ember/no-jquery */\n var imgSrc = (0, _jquery.default)(this).attr(\"src\");\n if (imgSrc && imgSrc.length > 0 && this.getAttribute(\"att\") !== \"2\") {\n this.setAttribute(\"att\", \"2\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(this).attr(\"src\", imgSrc + \"&att=2\");\n (0, _debug.debug)(\"Missing image - attempting to fetch again\");\n } else {\n (0, _debug.debug)(\"Already tried fetching image once during this runtime. Giving up.\");\n }\n });\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom__main-content\")\n /* eslint-disable-next-line ember/no-jquery */.on(\"scrollstart\", _jquery.default.proxy(this.didScroll, this))\n /* eslint-disable-next-line ember/no-jquery */.on(\"scrollstop\", _jquery.default.proxy(this.scrollStop, this));\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\")\n /* eslint-disable-next-line ember/no-jquery */.on(\"scrollstart\", _jquery.default.proxy(this.sidePanelScrollStart, this))\n /* eslint-disable-next-line ember/no-jquery */.on(\"scrollstop\", _jquery.default.proxy(this.sidePanelScrollStop, this));\n this.sidePanelScrollStop();\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel-container\").on(\"resize\", _jquery.default.proxy(this.didResize, this));\n\n // Temporary stopgap so boot functions run while refactoring\n ctl.getThingsRolling();\n },\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n // kill all event handlers!\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"img\").off(\"error\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom__main-content\").off(\"scrollstart\").off(\"scrollstop\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").off(\"scrollstart\").off(\"scrollstop\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel-container\").off(\"resize\");\n },\n willDestroyElement: function willDestroyElement() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom__main-content\")\n /* eslint-disable-next-line ember/no-jquery */.off(\"scrollstart\", _jquery.default.proxy(this.didScroll, this))\n /* eslint-disable-next-line ember/no-jquery */.off(\"scrollstop\", _jquery.default.proxy(this.scrollStop, this));\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\")\n /* eslint-disable-next-line ember/no-jquery */.on(\"scrollstart\", _jquery.default.proxy(this.sidePanelScrollStart, this))\n /* eslint-disable-next-line ember/no-jquery */.on(\"scrollstop\", _jquery.default.proxy(this.sidePanelScrollStop, this));\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel-container\").off(\"resize\", _jquery.default.proxy(this.didResize, this));\n },\n // Scrolling tracker\n didScroll: function didScroll() {\n //Show current course topic display when scrolling\n this.set(\"amScrolling\", true);\n },\n scrollStop: function scrollStop() {\n //Check to make sure nothing is loading\n /* eslint-disable-next-line ember/no-jquery */\n if ((0, _jquery.default)(\".main-panel.no-scroll\").length > 0) {\n return;\n }\n //Update current topic, if necessary\n this.parent.send(\"updatePath\");\n this.parent.set(\"amScrolling\", false);\n },\n sidePanelScrollStart: function sidePanelScrollStart() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".lesson-divider\").removeClass(\"current-lesson\");\n },\n sidePanelScrollStop: function sidePanelScrollStop() {\n /* eslint-disable-next-line ember/no-jquery */\n var firstItem = (0, _jquery.default)(\".syllabus > a:in-viewport\").first(),\n currHeader = firstItem.prevAll(\".syllabus-divider\").first();\n if (currHeader.length === 0) {\n /* eslint-disable-next-line ember/no-jquery */\n currHeader = (0, _jquery.default)(\".syllabus .syllabus-divider\").first();\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".syllabus-divider\").removeClass(\"current-lesson\");\n currHeader.addClass(\"current-lesson\");\n var lessonNum = currHeader.attr(\"lesson_number\");\n var lessonTitle = currHeader.attr(\"lesson_title\");\n var newTitle;\n if (lessonNum === \"0\") {\n newTitle = \"Getting Started\";\n } else {\n newTitle = \"\".concat(lessonNum, \" - \").concat(lessonTitle);\n }\n this.parent.send(\"updateShortcutsDrawer\", newTitle);\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".shortcut-list-item\").removeClass(\"current\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".shortcut-list-item:nth(\" + currHeader.attr(\"lesson_number\") + \")\").addClass(\"current\");\n },\n // Half-height infinite scroll resizer\n didResize: function didResize() {\n this.parent.send(\"resetHeight\");\n }\n }));\n});","define(\"bocce/components/lessons/topic-body\", [\"exports\", \"@ember/component\", \"bocce/mixins/boot\", \"bocce/mixins/quiz\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _boot, _quiz, _object, _service, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"bocce/mixins/boot\",0,\"bocce/mixins/quiz\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.templateForType}}\n {{#if (same this.item.type \"Assignment\")}}\n \n {{else if (same this.item.type \"Discussion\")}}\n \n {{else if (same this.item.type \"Quiz\")}}\n \n {{/if}}\n {{else}}\n {{#unless\n (or\n this.session.course.isArchived\n this.session.course.isGettingStarted\n this.session.course.isPublic\n this.session.course.isExam\n )\n }}\n {{#unless (inarray this.item.db_id this.bookmarks.allBookmarkContentTagIds)}}\n \n \n \n \n {{else}}\n \n \n \n \n {{/unless}}\n {{/unless}}\n
    \n {{{this.topicbody.body}}}\n
    \n {{/if}}\n */\n {\n \"id\": \"p6drMrKW\",\n \"block\": \"[[[41,[30,0,[\\\"templateForType\\\"]],[[[41,[28,[37,1],[[30,0,[\\\"item\\\",\\\"type\\\"]],\\\"Assignment\\\"],null],[[[1,\\\" \\\"],[8,[39,2],null,[[\\\"@assignmentcontents\\\",\\\"@sendParentAction\\\"],[[30,0,[\\\"assignmentcontents\\\"]],[30,0,[\\\"sendParentAction\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,0,[\\\"item\\\",\\\"type\\\"]],\\\"Discussion\\\"],null],[[[1,\\\" \\\"],[8,[39,3],null,[[\\\"@discussioncontents\\\",\\\"@sendParentAction\\\",\\\"@viewModal\\\"],[[30,0,[\\\"discussioncontents\\\"]],[30,0,[\\\"sendParentAction\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,1],[[30,0,[\\\"item\\\",\\\"type\\\"]],\\\"Quiz\\\"],null],[[[1,\\\" \\\"],[8,[39,4],null,[[\\\"@item\\\",\\\"@data\\\"],[[30,0,[\\\"item\\\"]],[30,0,[\\\"data\\\"]]]],null],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]]]],[]],[[[41,[51,[28,[37,6],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isArchived\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isPublic\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],null]],[[[41,[51,[28,[37,7],[[30,0,[\\\"item\\\",\\\"db_id\\\"]],[30,0,[\\\"bookmarks\\\",\\\"allBookmarkContentTagIds\\\"]]],null]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Bookmark This Page\\\"],[24,0,\\\"lesson-content__bookmark-button icon-button icon-hover-button icon-button__white\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"addBookmark\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-bookmark\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-plus\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Page already bookmarked. Click to view Bookmark Manager.\\\"],[24,0,\\\"lesson-content__bookmark-button icon-button icon-hover-button icon-button__white\\\"],[4,[38,9],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"setBookmarkManagerShown\\\"]],true],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-bookmark\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-folder\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"bootable-area\\\"],[14,\\\"aria-label\\\",\\\"Lesson Content\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"topicbody\\\",\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@viewModal\\\"],[\\\"if\\\",\\\"same\\\",\\\"classroom/lessons/assignment-content\\\",\\\"classroom/lessons/discussion-content\\\",\\\"classroom/lessons/quiz-content\\\",\\\"unless\\\",\\\"or\\\",\\\"inarray\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"fn\\\",\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/lessons/topic-body.hbs\",\n \"isStrictMode\": false\n });\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_boot.default, {\n bookmarks: (0, _service.inject)(),\n session: (0, _service.inject)(),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n didInsertElement: function didInsertElement() {\n // run boot function on this topic's element\n this.bootContent();\n this.addLinkTargets();\n },\n bootContent: function bootContent() {\n var _this = this;\n /* eslint-disable-next-line ember/no-jquery */\n var node = (0, _jquery.default)(this.element).find(\".bootable-area\");\n if (node && node.length) {\n // Boot each bootable-area node found in this component\n var promises = [];\n /* eslint-disable-next-line ember/no-jquery */\n node.each(function (i, n) {\n return promises.push(_this.boot_area((0, _jquery.default)(n)));\n });\n return Promise.all(promises);\n } else {\n return Promise.resolve(null);\n }\n },\n addLinkTargets: function addLinkTargets() {\n // TODO-FIXME:\n // This is ugly. Is there a way to do this in the CMS?\n // Give every link a target=\"_blank\" property\n // This will ensure all links open in new tab/window\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(this.element).find(\"a[href]:not(.ember-view)\").attr(\"target\", \"_blank\");\n },\n templateForType: (0, _object.computed)(\"item.type\", function () {\n var templates = {\n assignment: \"assignment-contents\",\n discussion: \"discussion-contents\",\n quiz: \"quiz\"\n };\n /* eslint-disable-next-line ember/no-get */\n var type = this.get(\"item.type\").toLowerCase();\n return templates[type] || null;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n discussioncontents: (0, _object.computed)(\"item\", \"data\", function () {\n /* eslint-disable-next-line ember/no-get */\n var type = this.get(\"item.type\").toLowerCase();\n if (type === \"discussion\") {\n return this.data;\n }\n return null;\n }),\n discussionLastReply: (0, _object.computed)(\"discussioncontents\", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var discussion, responses, latestResponse;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n discussion = this.discussioncontents;\n if (!discussion) {\n _context.n = 2;\n break;\n }\n _context.n = 1;\n return discussion.get(\"responses\");\n case 1:\n responses = _context.v;\n latestResponse = responses.content ? responses.content[0] : null;\n return _context.a(2, latestResponse);\n case 2:\n return _context.a(2, null);\n }\n }, _callee, this);\n }))),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n assignmentcontents: (0, _object.computed)(\"item\", \"data\", function () {\n /* eslint-disable-next-line ember/no-get */\n var type = this.get(\"item.type\").toLowerCase();\n if (type === \"assignment\") {\n return this.data;\n }\n return null;\n }),\n topicbody: (0, _object.computed)(\"templateForType\", \"data\", function () {\n if (this.templateForType === null) {\n return this.data;\n }\n return null;\n }),\n sendParentAction: (0, _object.action)(function (action) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n this[action].apply(this, args);\n }),\n setBookmarkManagerShown: (0, _object.action)(function (shown) {\n this.bookmarks.setBookmarkManagerShown(shown);\n }),\n addBookmark: (0, _object.action)(function () {\n var lesson = this.lessons.get(\"model.lesson\");\n var lesson_id = lesson.get(\"id\");\n var lesson_name = lesson.get(\"title\");\n this.bookmarks.addBookmark(this.item.db_id, this.item.id, this.item.title, this.topicbody.body, lesson_id, lesson_name);\n })\n }));\n});","define(\"bocce/components/loading-mask\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n
    \n
    \n */\n {\n \"id\": \"AL2oz9wV\",\n \"block\": \"[[[10,0],[14,0,\\\"loading-mask\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading-spinner\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/loading-mask.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"loading-mask\"));\n});","define(\"bocce/components/loading-message\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    Loading...
    \n */\n {\n \"id\": \"IYVrC7sH\",\n \"block\": \"[[[10,0],[14,0,\\\"loading-message\\\"],[12],[1,\\\"Loading...\\\"],[13]],[],[\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/loading-message.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"loading-message\"));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-scenarios/quiz-single\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.quizzes.isTimedQuiz}}\n \n {{/if}}\n
    \n {{#unless this.quizzes.previousQuestionsLocked}}\n \n {{/unless}}\n {{#if (and this.quizzes.isTimedQuiz this.quizzes.timeRemainingFormatted)}}\n
    {{this.quizzes.timeRemainingFormatted}}
    \n {{/if}}\n
    \n \n {{#if this.quizzes.questionShown}}\n
    \n \n
    \n {{/if}}\n \n
    \n \n
    \n saved at:\n {{this.quizzes.savedAt}}\n
    \n
    \n */\n {\n \"id\": \"LhMW6Gv3\",\n \"block\": \"[[[41,[30,0,[\\\"quizzes\\\",\\\"isTimedQuiz\\\"]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,0,\\\"quiz-header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"quizzes\\\",\\\"previousQuestionsLocked\\\"]]],[[[1,\\\" \\\"],[8,[39,4],null,[[\\\"@quizzes\\\"],[[30,0,[\\\"quizzes\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,5],[[30,0,[\\\"quizzes\\\",\\\"isTimedQuiz\\\"]],[30,0,[\\\"quizzes\\\",\\\"timeRemainingFormatted\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-timer\\\"],[12],[1,[30,0,[\\\"quizzes\\\",\\\"timeRemainingFormatted\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"quizzes\\\",\\\"questionShown\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-question-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@question\\\",\\\"@quiz\\\",\\\"@quizzes\\\",\\\"@index\\\",\\\"@questionComponent\\\"],[[30,0,[\\\"quizzes\\\",\\\"question\\\"]],[30,0,[\\\"quizzes\\\",\\\"quiz\\\"]],[30,0,[\\\"quizzes\\\"]],[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"component\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"quiz-footer\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-footer-actions\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-quiz\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n Grading Quiz. Please wait...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,8],[[28,[37,9],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],1],null],[28,[37,10],[[30,0,[\\\"quizzes\\\",\\\"questions\\\"]]],null]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"question-next question-next-or-finish\\\\n \\\",[52,[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"nextOrFinishDisabled\\\"]],\\\"disabled\\\"],\\\"\\\\n \\\",[52,[28,[37,8],[[28,[37,9],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],1],null],[28,[37,10],[[30,0,[\\\"quizzes\\\",\\\"quiz\\\",\\\"quiz_questions\\\"]]],null]],null],\\\"active\\\"]]]],[24,4,\\\"button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"quizzes\\\",\\\"nextQuestion\\\"]],[28,[37,9],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]],1],null]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,14],[[30,0,[\\\"quizzes\\\",\\\"uploadingQuestion\\\"]],[30,0,[\\\"quizzes\\\",\\\"gradingQuiz\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Next\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showFinishQuiz\\\"]],[[[1,\\\" \\\"],[8,[39,15],null,[[\\\"@quizzes\\\",\\\"@disabled\\\"],[[30,0,[\\\"quizzes\\\"]],[30,0,[\\\"quizzes\\\",\\\"question\\\",\\\"nextOrFinishDisabled\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"quiz-saved-at \\\",[52,[28,[37,16],[[30,0,[\\\"quizzes\\\",\\\"savedAt\\\"]]],null],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n saved at:\\\\n \\\"],[1,[30,0,[\\\"quizzes\\\",\\\"savedAt\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"if\\\",\\\"quiz/submitted-in\\\",\\\"div\\\",\\\"unless\\\",\\\"quiz/previous-questions\\\",\\\"and\\\",\\\"quiz-questions/question\\\",\\\"i\\\",\\\"lessthan\\\",\\\"sum\\\",\\\"total\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"or\\\",\\\"quiz/finish-quiz\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-scenarios/quiz-single.hbs\",\n \"isStrictMode\": false\n });\n\n //import { computed, observer, action } from '@ember/object';\n var QuizSingle = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuizSingle() {\n var _this;\n _classCallCheck(this, QuizSingle);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuizSingle, [].concat(args));\n _initializerDefineProperty(_this, \"features\", _descriptor, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor2, _this);\n return _this;\n }\n _inherits(QuizSingle, _Component);\n return _createClass(QuizSingle, [{\n key: \"showFinishQuiz\",\n get: function get() {\n var _this$quizzes$questio;\n var allowSubmit = !this.features.isEnabled(\"staticContent\");\n var numQuizQuestions = (_this$quizzes$questio = this.quizzes.questions) === null || _this$quizzes$questio === void 0 ? void 0 : _this$quizzes$questio.length;\n var maxQuestionIndexUsed = this.quizzes.maxQuestionIndexUsed;\n\n //This logic is taken from what used to be in app/templates/quiz.hbs pre quiz-rewrite.\n var additionalLogic = this.quizzes.isGraded ? !this.session.gradeLock : true;\n return allowSubmit && !this.quizzes.hasScore && !this.quizzes.gradingQuiz && maxQuestionIndexUsed == numQuizQuestions - 1 && additionalLogic;\n }\n }, {\n key: \"finishQuizDisabled\",\n get: function get() {\n var question = this.quizzes.question;\n if (question) {\n return this.quizzes.gradingQuiz;\n } else {\n return true;\n }\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"features\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizSingle);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/question-statistics-manual\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! Used for essay and file-upload question types. }}\n \n
    \n
    {{{this.statistics.question_text}}}
    \n {{#if this.statistics.responses}}\n \n ({{this.stats.percentageSubmitted}}%)\n
    \n {{#if (same this.stats.percentageGraded 100)}}\n \n have been graded.\n {{else if (same this.stats.percentageUngraded 100)}}\n \n All submissions\n \n have not been graded.\n {{else}}\n \n graded,\n \n {{this.stats.percentageUngraded}}%\n \n ungraded\n {{/if}}\n {{else}}\n
    \n no responses\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"5dFSXkIR\",\n \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"question-statistics-manual\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bootable-area\\\"],[12],[2,[30,0,[\\\"statistics\\\",\\\"question_text\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statistics\\\",\\\"responses\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"question-stat\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"showUsers\\\"]],[30,0,[\\\"stats\\\",\\\"usernames\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"stats\\\",\\\"numResponses\\\"]]],[1,\\\"\\\\n submissions\\\\n \\\"],[13],[1,\\\"\\\\n (\\\"],[1,[30,0,[\\\"stats\\\",\\\"percentageSubmitted\\\"]]],[1,\\\"%)\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"stats\\\",\\\"percentageGraded\\\"]],100],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"question-stat\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"showScores\\\"]],[30,0,[\\\"stats\\\",\\\"scores\\\"]],\\\"graded\\\"],null]],null],[12],[1,\\\"\\\\n All submissions\\\\n \\\"],[13],[1,\\\"\\\\n have been graded.\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"stats\\\",\\\"percentageUngraded\\\"]],100],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"question-stat\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"showScores\\\"]],[30,0,[\\\"stats\\\",\\\"scores\\\"]],\\\"ungraded\\\"],null]],null],[12],[1,\\\"\\\\n All submissions\\\\n \\\"],[13],[1,\\\"\\\\n have not been graded.\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"question-stat\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"showScores\\\"]],[30,0,[\\\"stats\\\",\\\"scores\\\"]],\\\"graded\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"stats\\\",\\\"percentageGraded\\\"]]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n graded,\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"question-stat\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,0,[\\\"showScores\\\"]],[30,0,[\\\"stats\\\",\\\"scores\\\"]],\\\"ungraded\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"stats\\\",\\\"percentageUngraded\\\"]]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n ungraded\\\\n \\\"]],[]]]],[]]]],[]],[[[1,\\\" \\\"],[10,0],[14,5,\\\"font-style: italic\\\"],[12],[1,\\\"\\\\n no responses\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[],[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"br\\\",\\\"same\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/question-statistics-manual.hbs\",\n \"isStrictMode\": false\n });\n\n //Used for essay and file upload question types.\n\n //this.statistics gets passed in to the component. Origin is canvas quiz stats api.\n var QuestionStatisticsManual = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuestionStatisticsManual() {\n var _this;\n _classCallCheck(this, QuestionStatisticsManual);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuestionStatisticsManual, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor2, _this);\n return _this;\n }\n _inherits(QuestionStatisticsManual, _Component);\n return _createClass(QuestionStatisticsManual, [{\n key: \"init\",\n value: function init() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _superPropGet(QuestionStatisticsManual, \"init\", this, 3)(args);\n this.stats = this.getStats();\n }\n }, {\n key: \"getStats\",\n value: function getStats() {\n var stats = {};\n var scores = {\n graded: [],\n ungraded: []\n };\n var numResponses = this.statistics.responses;\n var usernames = [];\n var numUngraded = 0;\n var _iterator = _createForOfIteratorHelper(this.statistics.answers),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var answer = _step.value;\n var _iterator2 = _createForOfIteratorHelper(answer.user_names),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var username = _step2.value;\n if (answer.id == \"ungraded\") {\n scores.ungraded.push({\n name: username,\n score: -1\n });\n } else {\n scores.graded.push({\n name: username,\n score: answer.score\n });\n }\n usernames.push(username);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (answer.id == \"ungraded\") {\n numUngraded += answer.responses;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n var numStudents = this.session.get(\"section.numStudents\");\n\n //First, we run the calculation, then we convert it to a float, then we ensure we only have two decimal places, finally,\n //we strip off trailing zeros with the '+' at the front of this calculation. For example, the '+' makes sure that '100.00' gets stored\n //in the string as '100', '100.10' as '100.1', etc.\n stats.percentageUngraded = \"\".concat(+parseFloat(numUngraded / numResponses * 100).toFixed(2));\n stats.percentageGraded = \"\".concat(+parseFloat((numResponses - numUngraded) / numResponses * 100).toFixed(2));\n stats.percentageSubmitted = \"\".concat(+parseFloat(numResponses / numStudents * 100).toFixed(2));\n stats.scores = scores;\n stats.usernames = usernames;\n stats.numResponses = numResponses;\n return stats;\n }\n }, {\n key: \"showUsers\",\n value: function showUsers(usernames) {\n var usersHtml = \"\\n \";\n for (var _i = 0, _arr = _toConsumableArray(new Set(usernames.sort())); _i < _arr.length; _i++) {\n var user = _arr[_i];\n usersHtml += \"\\n \\n \");\n }\n usersHtml += \"
    \".concat(user, \"
    \";\n this.confirmDialog.show({\n choices: [\"OK\"],\n body: usersHtml\n });\n }\n }, {\n key: \"showScores\",\n value: function showScores(scores, type) {\n var scoresHtml = \"\\n \";\n if (type == \"graded\") {\n scoresHtml += \"\\n \\n \\n \\n \";\n }\n var _iterator3 = _createForOfIteratorHelper(scores[type]),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var score = _step3.value;\n scoresHtml += \"\\n \\n \").concat(type == \"graded\" ? \"\") : \"\", \"\\n \");\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n scoresHtml += \"
    UserScore
    \".concat(score.name, \"\".concat(score.score, \"
    \";\n this.confirmDialog.show({\n choices: [\"OK\"],\n body: scoresHtml,\n additionalClasses: [\"quiz-stats-essay-scores\"]\n });\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"showUsers\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showUsers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showScores\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showScores\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuestionStatisticsManual);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/question-statistics-multiple\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"jquery\", \"@ember/runloop\", \"bocce/mixins/boot\", \"@ember/template-factory\"], function (_exports, _component, _object, _tracking, _service, _jquery, _runloop, _boot, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/runloop\",0,\"bocce/mixins/boot\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! Used for fill in multiple blanks and multiple dropdowns.\n \n Shows overall stats for the entire question and then blank-specific\n stats in a modal upon request (i.e.: placeholder click). Blank-specific stats\n are rendered in the page with visibility:hidden by default and then\n inserted into the modal upon request. }}\n \n
    \n
    {{{this.questionText}}}
    \n
    \n \n {{! this.answers is calculated based upon the placeholder id }}\n \n
    \n {{#if this.statistics.responses}}\n {{#each this.blanks as |blank|}}\n
    {{blank}}\n -\n \n {{array-item (array-item this.blankPercentages blank) \"correct\"}}%\n \n correct\n {{/each}}\n {{else}}\n
    no responses
    \n {{/if}}\n
    \n */\n {\n \"id\": \"8KnEsJx1\",\n \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"question-statistics-multiple\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-stats-question-text\\\"],[12],[2,[30,0,[\\\"questionText\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-statistics-multiple-blank-stats\\\"],[14,5,\\\"visibility:hidden; position: fixed\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[8,[39,1],null,[[\\\"@statistics\\\",\\\"@answers\\\",\\\"@quizzes\\\",\\\"@answersString\\\",\\\"@showHeading\\\"],[[30,1],[30,0,[\\\"answers\\\"]],[30,2],[30,0,[\\\"answersString\\\"]],true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statistics\\\",\\\"responses\\\"]],[[[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"blanks\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[12],[13],[10,1],[14,5,\\\"font-weight: bold\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n -\\\\n \\\"],[11,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"showUsers\\\"]],[28,[37,9],[[28,[37,9],[[30,0,[\\\"blankPercentages\\\"]],[30,3]],null],\\\"usernames\\\"],null]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,9],[[28,[37,9],[[30,0,[\\\"blankPercentages\\\"]],[30,3]],null],\\\"correct\\\"],null]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n correct\\\\n\\\"]],[3]],null]],[]],[[[1,\\\" \\\"],[10,0],[14,5,\\\"font-style: italic\\\"],[12],[1,\\\"no responses\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@statistics\\\",\\\"@quizzes\\\",\\\"blank\\\"],[\\\"div\\\",\\\"quiz-stats/question-statistics-single\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"array-item\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/question-statistics-multiple.hbs\",\n \"isStrictMode\": false\n });\n var QuestionStatisticsMultiple2 = _component.default.extend(_boot.default, {});\n\n //Used for Fill in Multiple Blanks and Multiple Dropdowns.\n\n //this.statistics gets passed in to the component. Origin is canvas quiz stats api.\n var QuestionStatisticsMultiple = _exports.default = (_class = /*#__PURE__*/function (_QuestionStatisticsMu) {\n function QuestionStatisticsMultiple() {\n var _this;\n _classCallCheck(this, QuestionStatisticsMultiple);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuestionStatisticsMultiple, [].concat(args));\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n _initializerDefineProperty(_this, \"placeholderId\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"answers\", _descriptor3, _this);\n return _this;\n }\n _inherits(QuestionStatisticsMultiple, _QuestionStatisticsMu);\n return _createClass(QuestionStatisticsMultiple, [{\n key: \"init\",\n value: function init() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n _superPropGet(QuestionStatisticsMultiple, \"init\", this, 3)(args);\n this.placeholderId = this.statistics.answer_sets[0].text;\n this.blankPercentages = this.getBlankPercentages();\n this.setAnswers();\n }\n }, {\n key: \"didInsertElement\",\n value: function didInsertElement() {\n var _this2 = this;\n var self = this;\n\n //When the user clicks on a placeholder, change the placeholder id. This triggers the stats to be recalculated\n //and then re-rendered. After this happens, show the stats html inside a modal.\n (0, _jquery.default)(this.element).find(\".question-stats-placeholder\").off(\"click.questionStatsPlaceholder\").on(\"click.questionStatsPlaceholder\", function (event) {\n self.changePlaceholder(event.target.textContent);\n (0, _runloop.scheduleOnce)(\"afterRender\", _this2, function () {\n this.confirmDialog.show({\n choices: [\"OK\"],\n body: (0, _jquery.default)(this.element).find(\".question-statistics-multiple-blank-stats\").html()\n });\n });\n });\n this.boot_area((0, _jquery.default)(this.element).find(\".question-stats-question-text\"), true, true, true, false, true);\n }\n\n /**\n * /(?<=\\[).+?(?=\\])/g) - lookbehind doesn't work in Safari <= 16.3\n \n get blanksOrdered() {\n let ret = []\n let question_text = this.statistics.question_text\n for(const m of question_text.matchAll(/(?<=\\[).+?(?=\\])/g)) {\n ret.push(m[0])\n }\n return ret\n }*/\n }, {\n key: \"getBlankPercentages\",\n value: function getBlankPercentages() {\n var stats = {};\n var totalResponses = this.statistics.responses;\n var _iterator = _createForOfIteratorHelper(this.statistics.answer_sets),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var answerSet = _step.value;\n stats[answerSet.text] = {};\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n var _iterator2 = _createForOfIteratorHelper(this.statistics.answer_sets),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _answerSet = _step2.value;\n var percentageCorrect = \"0%\";\n var usernames = [];\n var answerResponses = 0;\n var _iterator3 = _createForOfIteratorHelper(_answerSet.answers),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var answer = _step3.value;\n if (answer.correct) {\n percentageCorrect = \"\".concat(+parseFloat(answer.responses / totalResponses * 100).toFixed(2));\n usernames.push.apply(usernames, _toConsumableArray(answer.user_names));\n }\n if (answer.id != \"none\") {\n answerResponses += answer.responses;\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n stats[_answerSet.text].correct = percentageCorrect;\n stats[_answerSet.text].usernames = usernames;\n stats[_answerSet.text].answered = +parseFloat(answerResponses / totalResponses * 100).toFixed(2);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n return stats;\n }\n }, {\n key: \"blanks\",\n get: function get() {\n return this.statistics.answer_sets.map(function (as) {\n return as.text;\n });\n }\n }, {\n key: \"questionText\",\n get: function get() {\n var text = this.statistics.question_text;\n this.statistics.answer_sets.forEach(function (as) {\n text = text.replace(\"[\".concat(as.text, \"]\"), \"\".concat(as.text, \"\"));\n });\n return text;\n }\n }, {\n key: \"changePlaceholder\",\n value: function changePlaceholder(placeholderId) {\n this.placeholderId = placeholderId;\n this.setAnswers();\n }\n }, {\n key: \"showUsers\",\n value: function showUsers(users) {\n var usersHtml = \"\\n \";\n var _iterator4 = _createForOfIteratorHelper(users.sort()),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var user = _step4.value;\n usersHtml += \"\\n \\n \");\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n usersHtml += \"
    \".concat(user, \"
    \";\n this.confirmDialog.show({\n choices: [\"OK\"],\n body: usersHtml\n });\n }\n }, {\n key: \"setAnswers\",\n value: function setAnswers() {\n var _this3 = this;\n var answerSet = this.statistics.answer_sets.find(function (as) {\n return as.text == _this3.placeholderId;\n });\n if (answerSet) {\n this.answers = answerSet.answers;\n } else {\n this.answers = [];\n }\n }\n }]);\n }(QuestionStatisticsMultiple2), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"placeholderId\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"answers\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"changePlaceholder\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changePlaceholder\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showUsers\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showUsers\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuestionStatisticsMultiple);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/question-statistics-single\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"bocce/mixins/boot\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _tracking, _boot, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"bocce/mixins/boot\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! Used for multiple choice, multiple answer, fill in the blank, and true/false. }}\n \n {{#if @questionText}}\n
    {{{@questionText}}}
    \n {{/if}}\n \n {{! Shows all the answers and the individual stats for this question }}\n
    \n
    \n \n \n {{#if @showHeading}}\n \n \n \n {{/if}}\n {{#each-in this.stats.answerStats as |key stats|}}\n \n \n \n {{/each-in}}\n \n
    Answer
    \n {{{stats.text}}}\n \n {{#if this.statistics.responses}}\n
    \n {{#if (total stats.users)}}\n \n ({{stats.responsePercentage}})\n {{else}}\n 0 respondents\n {{/if}}\n
    \n {{/if}}\n
    \n
    \n
    \n {{#if this.statistics.responses}}\n percentage correct:\n {{this.stats.percentageCorrect}}\n {{else}}\n no responses\n {{/if}}\n
    \n
    \n */\n {\n \"id\": \"oxe9XaHZ\",\n \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bootable-area question-statistics-question-text\\\"],[12],[2,[30,1]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"question-stats question-statistics-single\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-stats-top\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Answer\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,7],[[30,0,[\\\"stats\\\",\\\"answerStats\\\"]]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[15,0,[29,[\\\"question-stat-answer \\\",[52,[30,3,[\\\"correct\\\"]],\\\"correct\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,3,[\\\"text\\\"]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"statistics\\\",\\\"responses\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"question-stat-respondents\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,3,[\\\"users\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[4,[38,11],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"showUsers\\\"]],[30,3,[\\\"users\\\"]]],null]],null],[12],[1,[28,[35,9],[[30,3,[\\\"users\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[28,[37,13],[[28,[37,9],[[30,3,[\\\"users\\\"]]],null],1],null],[[[1,\\\" respondents\\\\n\\\"]],[]],[[[1,\\\" respondent\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n (\\\"],[1,[30,3,[\\\"responsePercentage\\\"]]],[1,\\\")\\\\n\\\"]],[]],[[[1,\\\" 0 respondents\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-stats-bottom\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"statistics\\\",\\\"responses\\\"]],[[[1,\\\" percentage correct:\\\\n \\\"],[1,[30,0,[\\\"stats\\\",\\\"percentageCorrect\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" no responses\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@questionText\\\",\\\"@showHeading\\\",\\\"stats\\\",\\\"key\\\"],[\\\"if\\\",\\\"div\\\",\\\"table\\\",\\\"tbody\\\",\\\"tr\\\",\\\"th\\\",\\\"each\\\",\\\"-each-in\\\",\\\"td\\\",\\\"total\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"morethan\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/question-statistics-single.hbs\",\n \"isStrictMode\": false\n });\n var QuestionStatisticsSingle2 = _component.default.extend(_boot.default, {});\n\n //Used for multiple choice, multiple answer, fill in the blank, and true/false.\n\n //this.statistics gets passed in to the component. Origin is canvas quiz stats api.\n var QuestionStatisticsSingle = _exports.default = (_class = /*#__PURE__*/function (_QuestionStatisticsSi) {\n function QuestionStatisticsSingle() {\n var _this;\n _classCallCheck(this, QuestionStatisticsSingle);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuestionStatisticsSingle, [].concat(args));\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n _initializerDefineProperty(_this, \"answersTracked\", _descriptor2, _this);\n return _this;\n }\n _inherits(QuestionStatisticsSingle, _QuestionStatisticsSi);\n return _createClass(QuestionStatisticsSingle, [{\n key: \"didInsertElement\",\n value: function didInsertElement() {\n this.boot_area($(this.element).find(\".bootable-area\"), true, true, true, false, true);\n }\n\n //Triggers the stats getter to recalculate and thus the UI to update with new stats.\n //So hacky, but it was the only way I could get this to re-render when the 'answers' arg changed\n //as in the case of fill-in-multiple-blanks or multiple-dropdowns\n }, {\n key: \"willRender\",\n value: function willRender() {\n this.answersTracked = this.answers;\n }\n }, {\n key: \"stats\",\n get: function get() {\n var stats = {};\n var scores = this.quizzes.quiz.scores;\n stats.answerStats = {};\n var _iterator = _createForOfIteratorHelper(this.answersTracked),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var answer = _step.value;\n if (answer.correct) {\n //First, we run the calculation, then we convert it to a float, then we ensure we only have two decimal places, finally,\n //we strip off trailing zeros with the '+' at the front of this calculation. For example, the '+' makes sure that '100.00' gets stored\n //in the string as '100', '100.10' as '100.1', etc.\n stats.percentageCorrect = +parseFloat(answer.user_ids.length / this.statistics.responses * 100).toFixed(2);\n }\n if (!stats.answerStats[answer.id]) {\n stats.answerStats[answer.id] = {};\n }\n stats.answerStats[answer.id].correct = answer.correct;\n stats.answerStats[answer.id].text = answer.text;\n stats.answerStats[answer.id].responsePercentage = \"\".concat(+parseFloat(answer.user_ids.length / this.statistics.responses * 100).toFixed(2), \"%\");\n stats.answerStats[answer.id].users = answer.user_ids.map(function (ui) {\n return \"\".concat(scores[ui].name);\n });\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return stats;\n }\n }, {\n key: \"showUsers\",\n value: function showUsers(users) {\n var usersHtml = \"\\n \";\n var _iterator2 = _createForOfIteratorHelper(users.sort()),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var user = _step2.value;\n usersHtml += \"\\n \\n \");\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n usersHtml += \"
    \".concat(user, \"
    \";\n this.confirmDialog.show({\n choices: [\"OK\"],\n body: usersHtml\n });\n }\n }]);\n }(QuestionStatisticsSingle2), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"answersTracked\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"showUsers\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showUsers\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuestionStatisticsSingle);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/quiz-stats-actions\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\", \"bocce/js/utils\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _tracking, _utils, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"bocce/js/utils\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if (or this.hasEssays this.hasAttachments)}}\n
    \n \n \n
    \n {{else}}\n \n {{/if}}\n */\n {\n \"id\": \"/cwO8XnC\",\n \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"hasEssays\\\"]],[30,0,[\\\"hasAttachments\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-stats-actions-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[16,\\\"disabled\\\",[30,0,[\\\"working\\\"]]],[24,0,\\\"quiz-stats-actions\\\"],[4,[38,4],[\\\"change\\\",[30,0,[\\\"setAction\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[15,\\\"selected\\\",[28,[37,6],[[30,0,[\\\"action\\\"]],\\\"show-quiz\\\"],null]],[14,2,\\\"show-quiz\\\"],[14,0,\\\"button quiz-stats-header-action\\\"],[12],[1,\\\"Show Quiz\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasAttachments\\\"]],[[[1,\\\" \\\"],[11,\\\"option\\\"],[16,\\\"selected\\\",[28,[37,6],[[30,0,[\\\"action\\\"]],\\\"download-attachments\\\"],null]],[24,2,\\\"download-attachments\\\"],[24,0,\\\"button quiz-stats-header-action attachments\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"downloadAttachments\\\"]]],null],[12],[1,\\\"\\\\n Download All Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasEssays\\\"]],[[[1,\\\" \\\"],[11,\\\"option\\\"],[16,\\\"selected\\\",[28,[37,6],[[30,0,[\\\"action\\\"]],\\\"download-essays\\\"],null]],[24,2,\\\"download-essays\\\"],[24,0,\\\"button quiz-stats-header-action essays\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"downloadEssays\\\"]]],null],[12],[1,\\\"\\\\n Download All Essays\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"performAction\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"working\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Do it\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button quiz-stats-header-action\\\"],[4,[38,4],[\\\"click\\\",[30,1]],null],[12],[1,\\\"Show Quiz\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@toggleShowStats\\\"],[\\\"if\\\",\\\"or\\\",\\\"div\\\",\\\"select\\\",\\\"on\\\",\\\"option\\\",\\\"same\\\",\\\"button\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/quiz-stats-actions.hbs\",\n \"isStrictMode\": false\n });\n var QuizStatsActions = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuizStatsActions() {\n var _this;\n _classCallCheck(this, QuizStatsActions);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuizStatsActions, [].concat(args));\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n _initializerDefineProperty(_this, \"answersTracked\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"working\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"action\", _descriptor4, _this);\n return _this;\n }\n _inherits(QuizStatsActions, _Component);\n return _createClass(QuizStatsActions, [{\n key: \"willRender\",\n value:\n //So hacky, but it was the only way I could get this to re-render when the 'answers' arg changed\n //as in the case of fill-in-multiple-blanks or multiple-dropdowns\n function willRender() {\n this.answersTracked = this.answers;\n }\n }, {\n key: \"hasAttachments\",\n get: function get() {\n return this.has(\"file_upload_question\");\n }\n }, {\n key: \"hasEssays\",\n get: function get() {\n return this.has(\"essay_question\");\n }\n }, {\n key: \"has\",\n value: function has(type) {\n var retval = false;\n var _iterator = _createForOfIteratorHelper(this.quizzes.quiz.quiz_statistics.question_statistics.slice()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var questionStats = _step.value;\n if (questionStats.get(\"question_type\") == type && questionStats.get(\"responses\") > 0) {\n retval = true;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return retval;\n }\n }, {\n key: \"setAction\",\n value: function setAction(event) {\n this.action = event.target.value;\n }\n }, {\n key: \"performAction\",\n value: function performAction() {\n if (this.action == \"download-attachments\") {\n this.downloadAttachments();\n } else if (this.action == \"download-essays\") {\n this.downloadEssays();\n } else if (this.action == \"show-quiz\") {\n this.toggleShowStats();\n }\n }\n }, {\n key: \"downloadAttachments\",\n value: function () {\n var _downloadAttachments = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var _this2 = this;\n var numAttempts, _getAttachments;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n numAttempts = 0;\n _getAttachments = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var path, response, blob, _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n _this2.working = true;\n _context.p = 1;\n path = _this2.quizzes.quiz.quiz_statistics.quiz_submissions_zip_url;\n _context.n = 2;\n return fetch(path, {\n cache: \"no-cache\"\n });\n case 2:\n response = _context.v;\n if (response.ok) {\n _context.n = 3;\n break;\n }\n throw new Error();\n case 3:\n if (response.url.indexOf(\"s3.amazonaws\")) {\n _context.n = 5;\n break;\n }\n numAttempts++;\n if (!(numAttempts > 30)) {\n _context.n = 4;\n break;\n }\n _this2.working = false;\n _this2.confirmDialog.show({\n subtitle: \"No attachments found\"\n });\n return _context.a(2);\n case 4:\n setTimeout(_getAttachments, 1000);\n return _context.a(2);\n case 5:\n _context.n = 6;\n return response.blob();\n case 6:\n blob = _context.v;\n (0, _utils.saveFile)(\"attachments.zip\", \"application/zip\", blob);\n _this2.working = false;\n _context.n = 8;\n break;\n case 7:\n _context.p = 7;\n _t = _context.v;\n _this2.working = false;\n _this2.confirmDialog.show({\n subtitle: \"No attachments found.\"\n });\n case 8:\n return _context.a(2);\n }\n }, _callee, null, [[1, 7]]);\n }));\n return function getAttachments() {\n return _ref.apply(this, arguments);\n };\n }();\n _getAttachments();\n case 1:\n return _context2.a(2);\n }\n }, _callee2);\n }));\n function downloadAttachments() {\n return _downloadAttachments.apply(this, arguments);\n }\n return downloadAttachments;\n }()\n }, {\n key: \"downloadEssays\",\n value: function () {\n var _downloadEssays = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {\n var path, response, blob, _t2;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.p = _context3.n) {\n case 0:\n _context3.p = 0;\n this.working = true;\n path = \"/interface/sections/\".concat(session.get(\"section.id\"), \"/quizzes/\").concat(this.quizzes.quiz.id, \"/get_essay_responses/-1\");\n _context3.n = 1;\n return fetch(path);\n case 1:\n response = _context3.v;\n if (response.ok) {\n _context3.n = 2;\n break;\n }\n throw new Error();\n case 2:\n _context3.n = 3;\n return response.blob();\n case 3:\n blob = _context3.v;\n (0, _utils.saveFile)(\"\".concat(this.quizzes.quiz.title.substring(0, 20), \"-essay-responses.zip\"), \"application/zip\", blob);\n this.working = false;\n _context3.n = 5;\n break;\n case 4:\n _context3.p = 4;\n _t2 = _context3.v;\n this.working = false;\n this.confirmDialog.show({\n subtitle: \"No essays found.\"\n });\n case 5:\n return _context3.a(2);\n }\n }, _callee3, this, [[0, 4]]);\n }));\n function downloadEssays() {\n return _downloadEssays.apply(this, arguments);\n }\n return downloadEssays;\n }()\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"answersTracked\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"working\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"action\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"show-quiz\";\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"setAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"performAction\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"performAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"downloadAttachments\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"downloadAttachments\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"downloadEssays\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"downloadEssays\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizStatsActions);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/quiz-stats\", [\"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 var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n
    \n \n {{! Render each of the quiz stats components }}\n {{#each @quizzes.quiz.quiz_statistics_components as |comp index|}}\n
    Question {{sum index 1}}
    \n
    \n {{component comp.path statistics=comp.statistics quizzes=@quizzes}}\n
    \n
    \n {{/each}}\n \n \n \n \n \n \n \n {{#each-in @quizzes.quiz.scores as |key score|}}\n \n \n \n \n {{/each-in}}\n \n
    UserQuiz Score
    {{score.name}}{{score.score}}%
    \n
    \n */\n {\n \"id\": \"tzUWHO8C\",\n \"block\": \"[[[10,0],[14,0,\\\"quiz-stats\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-stats-question-selector\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,5,\\\"text-align: center\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"goToQuestion\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[12],[1,\\\"-Go to Question-\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,1,[\\\"questions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[30,3]],[12],[1,\\\"Question \\\"],[1,[28,[35,6],[[30,3],1],null]],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,1,[\\\"quiz\\\",\\\"quiz_statistics_components\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"question-stats-index\\\"],[12],[1,\\\"Question \\\"],[1,[28,[35,6],[[30,5],1],null]],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"question-stats-wrapper \\\",[30,4,[\\\"type\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[46,[30,4,[\\\"path\\\"]],null,[[\\\"statistics\\\",\\\"quizzes\\\"],[[30,4,[\\\"statistics\\\"]],[30,1]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"quiz-stats-user-scores\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"User\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Quiz Score\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,13],[[30,1,[\\\"quiz\\\",\\\"scores\\\"]]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,6,[\\\"score\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[6,7]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@quizzes\\\",\\\"_\\\",\\\"index\\\",\\\"comp\\\",\\\"index\\\",\\\"score\\\",\\\"key\\\"],[\\\"div\\\",\\\"select\\\",\\\"on\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"sum\\\",\\\"component\\\",\\\"br\\\",\\\"table\\\",\\\"tbody\\\",\\\"tr\\\",\\\"th\\\",\\\"-each-in\\\",\\\"td\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/quiz-stats.hbs\",\n \"isStrictMode\": false\n });\n var QuizStatsActions = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuizStatsActions() {\n _classCallCheck(this, QuizStatsActions);\n return _callSuper(this, QuizStatsActions, arguments);\n }\n _inherits(QuizStatsActions, _Component);\n return _createClass(QuizStatsActions, [{\n key: \"goToQuestion\",\n value: function goToQuestion(event) {\n if (+event.target.value != null) {\n //JS: I don't like hard-coding selectors, but I couldn't think of any other way to do this.\n document.querySelectorAll(\".question-stats-index\")[+event.target.value].scrollIntoView();\n }\n }\n }]);\n }(_component.default), _applyDecoratedDescriptor(_class.prototype, \"goToQuestion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"goToQuestion\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizStatsActions);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/types/essay-question-statistics\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"bocce/js/utils\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _utils, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"bocce/js/utils\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.hasEssays}}\n \n {{else}}\n no responses\n {{/if}}\n */\n {\n \"id\": \"hhm056kV\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\"],[[30,1]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasEssays\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button question-stats-essay-responses\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"getEssayResponses\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"downloadingEssays\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Download Essays\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" no responses\\\\n\\\"]],[]]]],[\\\"@statistics\\\"],[\\\"quiz-stats/question-statistics-manual\\\",\\\"if\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/essay-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var QuestionStatisticsSingle = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function QuestionStatisticsSingle() {\n var _this;\n _classCallCheck(this, QuestionStatisticsSingle);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuestionStatisticsSingle, [].concat(args));\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n _initializerDefineProperty(_this, \"downloadingEssays\", _descriptor2, _this);\n return _this;\n }\n _inherits(QuestionStatisticsSingle, _Component);\n return _createClass(QuestionStatisticsSingle, [{\n key: \"hasEssays\",\n get: function get() {\n return this.statistics.responses > 0;\n }\n }, {\n key: \"getEssayResponses\",\n value: function () {\n var _getEssayResponses = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var path, response, blob, _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n _context.p = 0;\n this.downloadingEssays = true;\n path = \"/interface/sections/\".concat(session.section.id, \"/quizzes/\").concat(this.quizzes.quiz.id, \"/get_essay_responses/\").concat(this.statistics.id);\n _context.n = 1;\n return fetch(path, {\n cache: \"no-cache\"\n });\n case 1:\n response = _context.v;\n if (response.ok) {\n _context.n = 2;\n break;\n }\n throw new Error();\n case 2:\n _context.n = 3;\n return response.blob();\n case 3:\n blob = _context.v;\n (0, _utils.saveFile)(\"essay.zip\", \"application/zip\", blob);\n this.downloadingEssays = false;\n _context.n = 5;\n break;\n case 4:\n _context.p = 4;\n _t = _context.v;\n this.downloadingEssays = false;\n this.confirmDialog.show({\n subtitle: \"No essays found.\"\n });\n case 5:\n return _context.a(2);\n }\n }, _callee, this, [[0, 4]]);\n }));\n function getEssayResponses() {\n return _getEssayResponses.apply(this, arguments);\n }\n return getEssayResponses;\n }()\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"downloadingEssays\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"getEssayResponses\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"getEssayResponses\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuestionStatisticsSingle);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz-stats/types/short-answer-question-statistics\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"bocce/js/utils\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _utils, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"bocce/js/utils\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"9g5RLRoA\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\",\\\"@answers\\\",\\\"@quizzes\\\",\\\"@questionText\\\"],[[30,1],[30,1,[\\\"answers\\\"]],[30,2],[30,1,[\\\"question_text\\\"]]]],null]],[\\\"@statistics\\\",\\\"@quizzes\\\"],[\\\"quiz-stats/question-statistics-single\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/short-answer-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var ShortAnswerQuestionStatistics = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ShortAnswerQuestionStatistics() {\n var _this;\n _classCallCheck(this, ShortAnswerQuestionStatistics);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ShortAnswerQuestionStatistics, [].concat(args));\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n return _this;\n }\n _inherits(ShortAnswerQuestionStatistics, _Component);\n return _createClass(ShortAnswerQuestionStatistics, [{\n key: \"showUsers\",\n value: function () {\n var _showUsers = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(users) {\n var usersHtml, _iterator, _step, user;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n usersHtml = \"\\n \";\n _iterator = _createForOfIteratorHelper(users.sort());\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n user = _step.value;\n usersHtml += \"\\n \\n \");\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n usersHtml += \"
    \".concat(user, \"
    \";\n this.confirmDialog.show({\n choices: [\"OK\"],\n body: usersHtml\n });\n case 1:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function showUsers(_x) {\n return _showUsers.apply(this, arguments);\n }\n return showUsers;\n }()\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"showUsers\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showUsers\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ShortAnswerQuestionStatistics);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\"], function (_exports, _component, _tracking, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var Quiz = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function Quiz() {\n var _this;\n _classCallCheck(this, Quiz);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, Quiz, [].concat(args));\n _initializerDefineProperty(_this, \"timedQuizStarted\", _descriptor, _this);\n return _this;\n }\n _inherits(Quiz, _Component);\n return _createClass(Quiz, [{\n key: \"startQuiz\",\n value: function startQuiz() {\n this.timedQuizStarted = true;\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"timedQuizStarted\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"startQuiz\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startQuiz\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz/finish-quiz\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if @disabled}}\n \n {{else}}\n Finish Quiz\n {{/if}}\n \n */\n {\n \"id\": \"cF36kRLz\",\n \"block\": \"[[[11,\\\"button\\\"],[16,0,[29,[\\\"finish-quiz question-next-or-finish\\\\n \\\",[52,[28,[37,2],[[30,1],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],null],\\\"disabled\\\"]]]],[16,\\\"disabled\\\",[28,[37,2],[[30,1],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],null]],[16,\\\"title\\\",[52,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"Instructors are not allowed to submit quizzes.\\\"]],[24,4,\\\"button\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,2,[\\\"submitQuiz\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Finish Quiz\\\\n\\\"]],[]]],[13]],[\\\"@disabled\\\",\\\"@quizzes\\\"],[\\\"button\\\",\\\"if\\\",\\\"or\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/finish-quiz.hbs\",\n \"isStrictMode\": false\n });\n var FinishQuiz = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function FinishQuiz() {\n var _this;\n _classCallCheck(this, FinishQuiz);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, FinishQuiz, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(FinishQuiz, _Component);\n return _createClass(FinishQuiz);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, FinishQuiz);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz/previous-questions\", [\"exports\", \"@ember/component\", \"@ember/object\", \"lodash.isequal\", \"@ember/template-factory\"], function (_exports, _component, _object, _lodash, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"lodash.isequal\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if (isnull this.quizzes.questionIndex)}}\n \n {{/if}}\n \n {{#each this.questionData as |data i|}}\n \n {{data.text}}\n \n {{/each}}\n \n */\n {\n \"id\": \"ZfUOSfIm\",\n \"block\": \"[[[11,\\\"select\\\"],[16,\\\"disabled\\\",[30,0,[\\\"dropdownDisabled\\\"]]],[24,0,\\\"previous-questions\\\"],[4,[38,1],[\\\"change\\\",[30,0,[\\\"setQuestionIndex\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"option\\\"],[14,\\\"selected\\\",\\\"true\\\"],[12],[1,\\\"Review Quiz\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"questionData\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[30,2]],[15,\\\"received\\\",[28,[37,7],[[30,1,[\\\"question\\\",\\\"points_received\\\"]]],null]],[15,\\\"possible\\\",[28,[37,7],[[30,1,[\\\"question\\\",\\\"points\\\"]]],null]],[15,\\\"disabled\\\",[30,1,[\\\"disabled\\\"]]],[15,\\\"selected\\\",[28,[37,8],[[30,2],[30,0,[\\\"quizzes\\\",\\\"questionIndex\\\"]]],null]],[15,0,[29,[\\\"previous-question-index \\\",[30,1,[\\\"question\\\",\\\"correct\\\"]],\\\" \\\",[52,[30,1,[\\\"disabled\\\"]],\\\"disabled\\\"]]]],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"text\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[13]],[\\\"data\\\",\\\"i\\\"],[\\\"select\\\",\\\"on\\\",\\\"if\\\",\\\"isnull\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"two-decimals\\\",\\\"same\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/previous-questions.hbs\",\n \"isStrictMode\": false\n });\n var PreviousQuestions = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function PreviousQuestions() {\n _classCallCheck(this, PreviousQuestions);\n return _callSuper(this, PreviousQuestions, arguments);\n }\n _inherits(PreviousQuestions, _Component);\n return _createClass(PreviousQuestions, [{\n key: \"didInsertElement\",\n value: function didInsertElement() {\n var maxWidth = 0;\n $(\".previous-questions .previous-question-index\").each(function (index, element) {\n var curWidth = $(element).width();\n if (maxWidth < curWidth) {\n maxWidth = curWidth;\n }\n });\n\n // Set all buttons to the max width\n $(\".previous-questions .previous-question-index\").width(maxWidth);\n }\n }, {\n key: \"dropdownDisabled\",\n get: function get() {\n return this.quizzes.gradingQuiz || this.quizzes.uploadingQuestion;\n }\n }, {\n key: \"questionData\",\n get: function get() {\n var _this$quizzes$questio,\n _this = this;\n return (_this$quizzes$questio = this.quizzes.questions) === null || _this$quizzes$questio === void 0 ? void 0 : _this$quizzes$questio.map(function (question, index) {\n var text = \"Question \".concat(index + 1);\n if (_this.quizzes.hasScore) {\n /**\n * Possible values for question.correct:\n * undefined: manually graded question without a score\n * defined: manually graded question with a score\n * partial: partially right answer, ex: multiple fill in the blanks\n * where one of the blanks is right and the other is wrong\n * correct/incorrect: fully right or wrong answer, ex: multiple choice, multiple dropdowns\n */\n\n // trim the decimal places for points received and total points to 2\n question.points_received = parseFloat(question.points_received).toFixed(2);\n question.points = parseFloat(question.points).toFixed(2);\n if (question.correct === \"undefined\") {\n text += \" - pending\";\n } else if (question.correct === \"defined\" || question.correct === \"partial\") {\n text += \" - \".concat(question.points_received, \" / \").concat(question.points);\n } else {\n text += \" - \".concat(question.correct);\n }\n } else if ((0, _lodash.default)(question.given_answer, question.default_answer) && index <= _this.quizzes.maxQuestionIndexUsed && index != _this.quizzes.questionIndex) {\n text += \" - unanswered\";\n }\n var disabled = _this.quizzes.hasScore ? false : index > _this.quizzes.maxQuestionIndexUsed;\n return {\n question: question,\n disabled: disabled,\n text: text\n };\n });\n }\n }, {\n key: \"setQuestionIndex\",\n value: function setQuestionIndex(event) {\n var index = +event.target.value;\n this.quizzes.setQuestionIndex(index);\n }\n }]);\n }(_component.default), _applyDecoratedDescriptor(_class.prototype, \"setQuestionIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setQuestionIndex\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, PreviousQuestions);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz/quiz-overview\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n \n {{@quizzes.quiz.quiz_questions.length}}\n
    \n
    \n \n {{@quizzes.quizTimeLimit}}\n
    \n
    \n \n \n {{#if (same @quizzes.quiz.allowed_attempts -1)}}\n Unlimited\n {{else}}\n {{@quizzes.quiz.allowed_attempts}}\n {{/if}}\n
    \n {{#if (and @quizzes.quiz.quiz_attempt (not (same @quizzes.quiz.quiz_attempt.left -1)))}}\n
    \n \n {{#if (same @quizzes.quiz.quiz_attempt.left -1)}}\n Unlimited\n {{else}}\n {{@quizzes.quiz.quiz_attempt.left}}\n {{/if}}\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"lY7Dzhs7\",\n \"block\": \"[[[10,0],[14,0,\\\"quiz-overview\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"data quiz-overview-questions\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-overview-questions-label\\\"],[12],[1,\\\"\\\\n Questions\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[1,[30,1,[\\\"quiz\\\",\\\"quiz_questions\\\",\\\"length\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"data quiz-overview-time-limit\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n Time Limit\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"quizTimeLimit\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"data quiz-overview-allowed-attempts\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-overview-allowed-attempts-label\\\"],[12],[1,\\\"\\\\n Allowed Attempts\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,3],[[30,1,[\\\"quiz\\\",\\\"allowed_attempts\\\"]],-1],null],[[[1,\\\" Unlimited\\\\n\\\"]],[]],[[[1,\\\" \\\"],[1,[30,1,[\\\"quiz\\\",\\\"allowed_attempts\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\"]],[28,[37,5],[[28,[37,3],[[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"left\\\"]],-1],null]],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"data quiz-overview-attempts-left\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-overview-attempts-left-label\\\"],[12],[1,\\\"\\\\n Attempts left\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"left\\\"]],-1],null],[[[1,\\\" Unlimited\\\\n\\\"]],[]],[[[1,\\\" \\\"],[1,[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"left\\\"]]],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@quizzes\\\"],[\\\"div\\\",\\\"label\\\",\\\"if\\\",\\\"same\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/quiz-overview.hbs\",\n \"isStrictMode\": false\n });\n var QuizOverview = _exports.default = /*#__PURE__*/function (_Component) {\n function QuizOverview() {\n _classCallCheck(this, QuizOverview);\n return _callSuper(this, QuizOverview, arguments);\n }\n _inherits(QuizOverview, _Component);\n return _createClass(QuizOverview, [{\n key: \"init\",\n value:\n //@service quizzes;\n\n function init() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _superPropGet(QuizOverview, \"init\", this, 3)(args);\n }\n }]);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizOverview);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/quiz/results\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if @quizzes.hasScore}}\n \n
    \n

    \n

    Quiz Complete!

    \n {{#unless @quizzes.isTimedQuiz}}\n {{#if @quizzes.quizNotFullyGraded}}\n
    \n Final score not known until all questions are graded.\n
    \n {{else}}\n Final Score: \n Correctly answered questions: \n {{/if}}\n {{/unless}}\n
    \n {{#if @quizzes.quizNotFullyGraded}}\n
    \n Final score not known until all questions are graded.\n
    \n {{else}}\n
    \n {{percentage @quizzes.score @quizzes.quiz.quiz_attempt.possible}}%\n
    \n
    \n {{@quizzes.score}}\n {{@quizzes.quiz.quiz_attempt.possible}}\n {{this.correctQuestionsLength}}/{{this.gradedQuestionsLength}}\n {{#unless (same @quizzes.quiz.quiz_attempt.left -1)}}\n Attempts Remaining:\n {{@quizzes.quiz.quiz_attempt.left}}\n {{/unless}}\n
    \n {{/if}}\n \n {{#if @quizzes.quiz.quiz_attempt.left}}\n
    Retry
    \n {{/if}}\n \n
    \n {{/if}}\n \n */\n {\n \"id\": \"JJ9S2Coh\",\n \"block\": \"[[[10,0],[14,0,\\\"final-results\\\"],[15,1,[29,[\\\"quiz-\\\",[30,1,[\\\"quiz\\\",\\\"id\\\"]],\\\"-final-results\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"hasScore\\\"]],[[[1,\\\" \\\"],[10,0],[14,\\\"role\\\",\\\"heading\\\"],[15,\\\"aria-label\\\",[29,[\\\"Quiz \\\",[30,1,[\\\"quiz\\\",\\\"title\\\"]],\\\" Results\\\"]]],[14,0,\\\"quiz-results\\\"],[14,\\\"aria-live\\\",\\\"assertive\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-results-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-star\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Quiz Complete!\\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"isTimedQuiz\\\"]]],[[[41,[30,1,[\\\"quizNotFullyGraded\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-not-fully-graded\\\"],[12],[1,\\\"\\\\n Final score not known until all questions are graded.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"h4\\\"],[14,0,\\\"final-grade\\\"],[15,\\\"grade\\\",[29,[[28,[37,6],[[30,1,[\\\"score\\\"]],[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"possible\\\"]]],null]]]],[12],[1,\\\"Final Score: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[14,0,\\\"correct-questions\\\"],[15,\\\"total\\\",[29,[[28,[37,7],[[30,1,[\\\"gradedQuestions\\\"]]],null]]]],[15,\\\"answered\\\",[29,[[28,[37,7],[[30,1,[\\\"correctQuestions\\\"]]],null]]]],[12],[1,\\\"Correctly answered questions: \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"quizNotFullyGraded\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-not-fully-graded\\\"],[12],[1,\\\"\\\\n Final score not known until all questions are graded.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-final-score\\\"],[12],[1,\\\"\\\\n \\\"],[1,[28,[35,6],[[30,1,[\\\"score\\\"]],[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"possible\\\"]]],null]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-final-stats\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"quiz-final-stat\\\"],[14,\\\"subtitle\\\",\\\"Score\\\"],[12],[1,[30,1,[\\\"score\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"quiz-final-stat\\\"],[14,\\\"subtitle\\\",\\\"Possible\\\"],[12],[1,[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"possible\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"quiz-final-stat\\\"],[14,\\\"subtitle\\\",\\\"Correct\\\"],[12],[1,[30,0,[\\\"correctQuestionsLength\\\"]]],[1,\\\"/\\\"],[1,[30,0,[\\\"gradedQuestionsLength\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,9],[[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"left\\\"]],-1],null]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"quiz-final-stat\\\"],[12],[1,\\\"Attempts Remaining:\\\\n \\\"],[1,[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"left\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"quiz\\\",\\\"quiz_attempt\\\",\\\"left\\\"]],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"retry-quiz\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,2]],null]],null],[12],[1,\\\"Retry\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[8,[39,12],null,[[\\\"@quizzes\\\"],[[30,1]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@quizzes\\\",\\\"@onRetry\\\"],[\\\"div\\\",\\\"if\\\",\\\"h3\\\",\\\"i\\\",\\\"unless\\\",\\\"h4\\\",\\\"percentage\\\",\\\"total\\\",\\\"span\\\",\\\"same\\\",\\\"on\\\",\\\"fn\\\",\\\"quiz/previous-questions\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/results.hbs\",\n \"isStrictMode\": false\n });\n var QuizOverview = _exports.default = /*#__PURE__*/function (_Component) {\n function QuizOverview() {\n _classCallCheck(this, QuizOverview);\n return _callSuper(this, QuizOverview, arguments);\n }\n _inherits(QuizOverview, _Component);\n return _createClass(QuizOverview, [{\n key: \"init\",\n value: function init() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _superPropGet(QuizOverview, \"init\", this, 3)(args);\n }\n }, {\n key: \"gradedQuestionsLength\",\n get: function get() {\n return this.quizzes.gradedQuestions.length;\n }\n }, {\n key: \"correctQuestionsLength\",\n get: function get() {\n return this.quizzes.correctQuestions.length;\n }\n }]);\n }(_component.default);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, QuizOverview);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/reply\", [\"exports\", \"@glimmer/component\", \"@ember/modifier\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _modifier, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _Reply; // Displayed above the RTE in the discussion when a post is being replied to.\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/modifier\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var Reply = _exports.default = /*#__PURE__*/function (_Component) {\n function Reply() {\n _classCallCheck(this, Reply);\n return _callSuper(this, Reply, arguments);\n }\n _inherits(Reply, _Component);\n return _createClass(Reply);\n }(_component.default);\n _Reply = Reply;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @replyId}}\n
    \n \n \n {{if @isEditing \"Editing reply to:\" \"Replying to:\"}}\n {{@replyAuthor}}\n \n \n \n {{#if @isEditing}}\n Cancel edit\n {{/if}}\n \n
    \n {{else if @isEditing}}\n
    \n \n Editing comment\n \n \n Cancel\n edit\n \n
    \n {{else if @isEditing}}\n
    \n \n Editing comment\n \n \n \n
    \n {{/if}}\n */\n {\n \"id\": \"a8YV1JD2\",\n \"block\": \"[[[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"replying-to-discussion-indicator\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-reply\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,2],\\\"Editing reply to:\\\",\\\"Replying to:\\\"]],[1,\\\"\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,[30,3]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-button__gray icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Cancel reply\\\"],[24,4,\\\"button\\\"],[4,[32,0],[\\\"click\\\",[30,4]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,2],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip tooltip--right replying-to-discussion-indicator__cancel-label\\\"],[12],[1,\\\"Cancel edit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\" \\\"],[10,0],[14,0,\\\"replying-to-discussion-indicator\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Editing comment\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-button__gray icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Cancel edit\\\"],[24,4,\\\"button\\\"],[4,[32,0],[\\\"click\\\",[30,4]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip tooltip--right replying-to-discussion-indicator__cancel-label\\\"],[12],[1,\\\"Cancel\\\\n edit\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\" \\\"],[10,0],[14,0,\\\"replying-to-discussion-indicator\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Editing comment\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-button__gray icon-button--sm\\\"],[24,\\\"aria-label\\\",\\\"Cancel edit\\\"],[24,4,\\\"button\\\"],[4,[32,0],[\\\"click\\\",[30,4]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[\\\"@replyId\\\",\\\"@isEditing\\\",\\\"@replyAuthor\\\",\\\"@replyCancel\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/reply.js\",\n \"scope\": function scope() {\n return [_modifier.on];\n },\n \"isStrictMode\": true\n }), _Reply);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/rte\", [\"exports\", \"@ember/modifier\", \"bocce/helpers/and\", \"ember-modifier\", \"@glimmer/component\", \"sanitize-html\", \"@ember/service\", \"@ember/object\", \"jquery\", \"@ember/runloop\", \"bocce/js/editor/service\", \"bocce/components/drafts\", \"@glimmer/tracking\", \"bocce/components/modals/dark-backdrop\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _modifier, _and, _emberModifier, _component, _sanitizeHtml, _service, _object, _jquery, _runloop, _service2, _drafts, _tracking, _darkBackdrop, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _RteInput;\n /*\n RTE Input Component\n \n Usage:\n {{rte userInput=variable}}\n \n userInput is the HTML string that the user types. At the point where\n the data leaves this component, it should already be cleaned up,\n sanitized, etc, so that all the container has to do is process it.\n \n */\n /* eslint-disable-next-line ember/no-observers */\n 0; //eaimeta@70e063a35619d71f0,\"@ember/modifier\",0,\"bocce/helpers/and\",0,\"ember-modifier\",0,\"@glimmer/component\",0,\"sanitize-html\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/runloop\",0,\"bocce/js/editor/service\",0,\"bocce/components/drafts\",0,\"@glimmer/tracking\",0,\"bocce/components/modals/dark-backdrop\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n function cleanup(string) {\n var cleaned = string;\n // convert curly quotes to straight quotes:\n cleaned = cleaned.replace(/[\\u2018\\u2019]/g, \"'\");\n cleaned = cleaned.replace(/[\\u201C\\u201D]/g, '\"');\n //get rid of certain strings\n var noNoWords = [];\n //Empty lines (doesn't affect display but HTML looks nicer)\n noNoWords.push(/^[\\r\\n]/gm);\n // empty comments\n noNoWords.push(//g);\n //get rid of all noNoWords\n for (var _i = 0, _noNoWords = noNoWords; _i < _noNoWords.length; _i++) {\n var pattern = _noNoWords[_i];\n cleaned = cleaned.replace(pattern, \"\");\n }\n return cleaned;\n }\n function archiverSaveAnimation() {\n /* eslint-disable-next-line ember/no-jquery */var archiver = (0, _jquery.default)(\"#archiver\");\n archiver.addClass(\"saving\");\n archiver.one(\"webkitAnimationEnd oanimationend msAnimationEnd animationend\", function () {\n archiver.removeClass(\"saving\");\n });\n }\n var RteInput = _exports.default = (_class = (_RteInput = /*#__PURE__*/function (_Component) {\n function RteInput() {\n var _this;\n _classCallCheck(this, RteInput);\n _this = _callSuper(this, RteInput, arguments);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor, _this);\n _initializerDefineProperty(_this, \"rtePositioning\", _descriptor2, _this);\n _defineProperty(_this, \"rtePositioningSession\", null);\n /*\n * initialization\n */\n _defineProperty(_this, \"classNames\", [\"rte-input\"]);\n _defineProperty(_this, \"userInput\", void 0);\n _defineProperty(_this, \"element\", void 0);\n _initializerDefineProperty(_this, \"isFullScreen\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"isDraftsOpen\", _descriptor4, _this);\n _defineProperty(_this, \"ignoreMakeRteSticky\", false);\n _defineProperty(_this, \"init\", (0, _emberModifier.modifier)(function (element) {\n _this.element = element;\n if (!_this.editor) {\n _this.userInput = _this.args.userInput;\n _this.editor = new _service2.default(_this, element);\n _this.args.controller.setRteService(_this.editor);\n if (_this.userInput && _this.userInput.length > 0) {\n _this.editor.replace(_this.userInput);\n }\n }\n _this.rtePositioningSession = _this.rtePositioning.attach({\n element: element,\n wrapper: _this.args.wrapper,\n behavior: _this.args.positioningBehavior || \"resize\",\n scrollRootSelector: _this.args.positioningScrollRootSelector || \".classroom__main-content\",\n isDisabled: function isDisabled() {\n return _this.isDraftsOpen || _this.ignoreMakeRteSticky || _this.isFullScreen;\n }\n });\n return function () {\n if (!_this.isFullScreen) {\n var _this$rtePositioningS;\n (_this$rtePositioningS = _this.rtePositioningSession) === null || _this$rtePositioningS === void 0 || _this$rtePositioningS.destroy();\n _this.rtePositioningSession = null;\n }\n };\n }));\n _this.boundOnInsert = _this.onInsert.bind(_this);\n _this.onDeleteBound = _this.onDelete.bind(_this);\n return _this;\n }\n _inherits(RteInput, _Component);\n return _createClass(RteInput, [{\n key: \"resetRteStickyStyling\",\n value: function resetRteStickyStyling() {\n var _this$rtePositioningS2;\n (_this$rtePositioningS2 = this.rtePositioningSession) === null || _this$rtePositioningS2 === void 0 || _this$rtePositioningS2.reset();\n }\n }, {\n key: \"onRteEditorClick\",\n value: function onRteEditorClick(e) {\n var _this$editor;\n var qlEditorEl = e.target.querySelector(\".ql-editor\");\n var quill = (_this$editor = this.editor) === null || _this$editor === void 0 ? void 0 : _this$editor.quill;\n if (!qlEditorEl || !quill) {\n return;\n }\n if (document.activeElement !== qlEditorEl) {\n var end = Math.max(0, quill.getLength() - 1);\n quill.focus();\n quill.setSelection(end, 0, \"silent\");\n }\n }\n }, {\n key: \"destroyEditor\",\n value: function destroyEditor() {\n this._super();\n this.editor.clear();\n }\n }, {\n key: \"toggleFullscreen\",\n value: function () {\n var _toggleFullscreen = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var wrapper, rect, computedStyle;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n wrapper = this._rteWrapper || this.element.querySelector(\".rte\");\n if (!this.isFullScreen) {\n this.isFullScreen = true;\n this._rteWrapper = wrapper;\n // Important: clear any existing sticky/fixed-bottom inline styles first.\n this.resetRteStickyStyling();\n this._windowScrollX = window.scrollX;\n this._windowScrollY = window.scrollY;\n rect = wrapper.getBoundingClientRect();\n computedStyle = window.getComputedStyle(wrapper);\n this._rtePlaceholder = document.createElement(\"div\");\n this._rtePlaceholder.className = \"rte-placeholder\";\n Object.assign(this._rtePlaceholder.style, {\n width: \"\".concat(rect.width, \"px\"),\n height: \"\".concat(rect.height, \"px\"),\n marginTop: computedStyle.marginTop,\n marginRight: computedStyle.marginRight,\n marginBottom: computedStyle.marginBottom,\n marginLeft: computedStyle.marginLeft,\n overflowAnchor: \"none\"\n });\n wrapper.parentNode.insertBefore(this._rtePlaceholder, wrapper);\n // Save original inline styles so they can be restored exactly.\n this._rteOriginalStyle = wrapper.getAttribute(\"style\");\n wrapper.classList.add(\"rte--fullscreen\");\n document.body.classList.add(\"rte-fullscreen-open\");\n document.documentElement.classList.add(\"rte-fullscreen-open\");\n document.body.appendChild(wrapper);\n Object.assign(wrapper.style, {\n position: \"fixed\",\n top: \"0\",\n right: \"0\",\n bottom: \"0\",\n left: \"0\",\n width: \"100vw\",\n height: \"100dvh\",\n maxWidth: \"none\",\n maxHeight: \"none\",\n margin: \"0\",\n zIndex: \"1000\",\n overflow: \"hidden\",\n boxSizing: \"border-box\",\n transform: \"none\"\n });\n this.ignoreMakeRteSticky = true;\n } else {\n this.isFullScreen = false;\n wrapper.classList.remove(\"rte--fullscreen\");\n document.body.classList.remove(\"rte-fullscreen-open\");\n document.documentElement.classList.remove(\"rte-fullscreen-open\");\n if (this._rteOriginalStyle === null) {\n wrapper.removeAttribute(\"style\");\n } else {\n wrapper.setAttribute(\"style\", this._rteOriginalStyle);\n }\n this._rtePlaceholder.parentNode.insertBefore(wrapper, this._rtePlaceholder);\n this._rtePlaceholder.remove();\n this._rtePlaceholder = null;\n this._rteOriginalStyle = null;\n this.ignoreMakeRteSticky = false;\n }\n case 1:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function toggleFullscreen() {\n return _toggleFullscreen.apply(this, arguments);\n }\n return toggleFullscreen;\n }()\n }, {\n key: \"toggleDrafts\",\n value: function toggleDrafts() {\n if (this.isFullScreen) {\n this.toggleFullscreen();\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n this.isDraftsOpen = true;\n });\n } else {\n this.isDraftsOpen = !this.isDraftsOpen;\n }\n }\n }, {\n key: \"sanitize\",\n value: function sanitize(string) {\n string = cleanup(string);\n var sanitizeHtmlOptions = {\n // options for the sanitize-html package. see docs:\n // https://www.npmjs.com/package/sanitize-html#htmlparser2-options\n allowedTags: _sanitizeHtml.default.defaults.allowedTags.concat([\"h2\", \"u\"]),\n transformTags: {\n h1: \"h2\",\n a: function a(tagName, attribs) {\n // filter out useless links because apparently the geniuses\n // at Microsoft decided to start including THOSE now\n if (!attribs[\"href\"] || attribs[\"href\"] === \"\") {\n return false;\n } else {\n return {\n tagName: tagName,\n attribs: {\n href: attribs.href\n }\n };\n }\n }\n }\n };\n return (0, _sanitizeHtml.default)(string, sanitizeHtmlOptions);\n }\n }, {\n key: \"updateUserInput\",\n value: function updateUserInput() {\n var editorHTML = this.editor.html;\n /* eslint-disable-next-line ember/no-get */\n var userInput = this.userInput;\n if (editorHTML !== userInput) {\n var _this$args, _this$args$setBodyInp;\n this.userInput = this.editor.isEmpty ? \"\" : editorHTML;\n (_this$args = this.args) === null || _this$args === void 0 || (_this$args = _this$args.controller) === null || _this$args === void 0 || (_this$args$setBodyInp = _this$args.setBodyInput) === null || _this$args$setBodyInp === void 0 || _this$args$setBodyInp.call(_this$args, this.userInput);\n }\n }\n }, {\n key: \"sendUpdateArchive\",\n value: function sendUpdateArchive() {\n if (this.args.updateArchive) {\n this.args.updateArchive();\n }\n }\n }, {\n key: \"moveCursorToEndOfInsertedContent\",\n value: function moveCursorToEndOfInsertedContent() {\n // Locate the marker\n var marker = document.querySelector(\"span[data-cursor-marker]\");\n if (marker) {\n var range = document.createRange();\n var selection = window.getSelection();\n //Set the range to the position right after the marker\n range.setStartAfter(marker);\n //Collapse the range to its start, effectively moving the cursor to this position\n range.collapse(true);\n //Apply the range to the selection\n selection.removeAllRanges();\n selection.addRange(range);\n //Remove the marker from the document\n marker.parentNode.removeChild(marker);\n }\n }\n }, {\n key: \"detectShiftEnter\",\n value: function detectShiftEnter() {\n if (event.key === \"Enter\" && event.shiftKey) {\n event.preventDefault(); // Prevents the default action of the enter key (new line)\n this.send(\"sendMessageAction\");\n } else {\n return true;\n }\n }\n }, {\n key: \"saveArchive\",\n value: function saveArchive(state) {\n var _this2 = this;\n archiverSaveAnimation();\n var namedDialog;\n if (localStorage.localDocRunner) {\n // if localDocRunner exists, then we already have a record name\n namedDialog = Promise.resolve({\n recName: localStorage.localDocRunner,\n name: localStorage.localDocRunnerName\n });\n } else {\n // ... otherwise, we need to get it from the user.\n namedDialog = this.confirmDialog.show({\n subtitle: \"Please enter a short title for your draft.\",\n choices: [\"Save and Continue\", \"Cancel\"],\n body: \"
    Note: These drafts are stored locally. They will ONLY be available on this device.
    \",\n inputType: \"textarea\"\n }).then(function (name) {\n // confirmDialog returns false if the user clicks \"cancel\"\n if (name === false) {\n return false;\n }\n // generate recName and assign it to the localStorage object\n var recName = name + \"_\" + new Date().getTime();\n localStorage.localDocRunner = recName;\n localStorage.localDocRunnerName = name;\n // return both name and the generated recName\n return {\n name: name,\n recName: recName\n };\n });\n }\n namedDialog.then(function (result) {\n // result === false when user clicks Cancel\n if (!result) {\n return;\n }\n var name = result.name,\n recName = result.recName;\n var myText = {\n isText: true,\n textContent: _this2.sanitize(_this2.editor.html),\n type: \"text\",\n name: name,\n recName: recName\n };\n var cas;\n if (localStorage.localDocs) {\n cas = JSON.parse(localStorage.localDocs);\n } else {\n cas = {};\n }\n cas[recName] = myText;\n localStorage.localDocs = JSON.stringify(cas);\n _this2.sendUpdateArchive();\n });\n }\n // used in the template to decide how to display buttons\n }, {\n key: \"mobileUpload\",\n get: function get() {\n /* eslint-disable-next-line ember/no-jquery */return _jquery.default.isMobile;\n }\n }, {\n key: \"drafts\",\n get: function get() {\n return this.args.localDocs || this.args.controller.localDocs;\n }\n }, {\n key: \"draftsElement\",\n get: function get() {\n return document.getElementById(\"modal-container\");\n }\n }, {\n key: \"onClose\",\n value: function onClose() {}\n }, {\n key: \"onPreview\",\n value: function onPreview() {}\n }, {\n key: \"onInsert\",\n value: function onInsert(text) {\n this.editor.appendOrReplace(text.textContent);\n }\n }, {\n key: \"onDelete\",\n value: function () {\n var _onDelete = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file) {\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n _context2.n = 1;\n return this.args.controller.deleteArchivedText(file, false);\n case 1:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function onDelete(_x) {\n return _onDelete.apply(this, arguments);\n }\n return onDelete;\n }() // NK: The rte-input component and the editable mixin are more\n // tightly coupled than I'd like when it comes to the drafts saving\n // feature, but I don't have time at the moment to untangle them.\n }, {\n key: \"viewArchive\",\n value: function viewArchive() {\n /* eslint-disable-next-line ember/no-jquery */(0, _jquery.default)(\".pop-attachment-drawer\").removeClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".floating-modal.active\").addClass(\"drawer-open\");\n this.sendUpdateArchive();\n // TODO (NK): We really don't need the runloop to handle this, but I want\n // to minimize the changes I'm making right now. the .video-archive\n // element class list has conditionals in the property list which get\n // updated after calling sendUpdateArchive(). This causes the entire class\n // list to be reset, and we lose any classes we added manually. We should\n // rewrite this so we declaratively apply the class as needed in the\n // template, rather than imperatively changing it via actions.\n (0, _runloop.schedule)(\"afterRender\", function () {\n /* eslint-disable-next-line ember/no-jquery */(0, _jquery.default)(\".video-archive\").toggleClass(\"visible\");\n });\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n
    \n {{#unless this.mobileUpload}}\n
    \n
    \n
    \n \n \n \n \n
    \n \n \n \n \n \n
    \n \n \n \n
    \n {{#unless @hideDrafts}}\n \n \n \n \n {{/unless}}\n
    \n
    \n \n \n \n
    \n
    \n \n {{else}}\n
    \n \n
    \n \n Tap and hold text to format\n
    \n {{/unless}}\n \n \n
    \n \n {{#if (and this.isTimedAssignment this.timedAssignmentEditable)}}\n
    \n Follow the instructions to start the timed assignment\n
    \n {{/if}}\n
    \n {{#unless @hideFooter}}\n
    \n {{yield}}\n
    \n {{/unless}}\n \n
    \n \n \n {{#if this.isDraftsOpen}}\n {{#in-element this.draftsElement}}\n \n \n {{/in-element}}\n {{/if}}\n */\n {\n \"id\": \"q81Lxn2x\",\n \"block\": \"[[[11,0],[4,[30,0,[\\\"init\\\"]],null,null],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"rte\\\\n \\\",[52,[30,0,[\\\"args\\\",\\\"freezeHeight\\\"]],\\\"rte--freeze-height\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isFullScreen\\\"]],\\\"rte--fullscreen\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isDraftsOpen\\\"]],\\\"rte--drafts-open\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"mobileUpload\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rte__toolbar-spacer\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__toolbar-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__toolbar\\\"],[12],[1,\\\"\\\\n \\\"],[3,\\\" Add a bold button \\\"],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-bold\\\"],[12],[3,\\\"This inner HTML gets set/overidden by quill initialization .js\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-italic\\\"],[12],[3,\\\"This inner HTML gets set/overidden by quill initialization .js\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-underline\\\"],[12],[3,\\\"This inner HTML gets set/overidden by quill initialization .js\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__divider\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,2,\\\"2\\\"],[14,0,\\\"rte__toolbar-button ql-header\\\"],[12],[3,\\\"This inner HTML gets set/overidden by quill initialization .js\\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" Add subscript and superscript buttons \\\"],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,2,\\\"bullet\\\"],[14,0,\\\"rte__toolbar-button ql-list\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-list-dots\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,2,\\\"ordered\\\"],[14,0,\\\"rte__toolbar-button ql-list\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-list-ol\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-code-block\\\"],[12],[3,\\\"This inner HTML gets set/overidden by quill initialization .js\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__divider\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-sharp\\\"],[12],[1,\\\"♯\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-flat\\\"],[12],[1,\\\"♭\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-natural\\\"],[12],[1,\\\"♮\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__divider\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,1]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"rte__toolbar-button ql-save\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Save draft\\\"],[14,0,\\\"rte__toolbar-button far\\\"],[14,1,\\\"archiver\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"ql-archive rte__toolbar-button\\\"],[24,\\\"aria-label\\\",\\\"Open saved drafts\\\"],[16,\\\"aria-expanded\\\",[30,0,[\\\"isDraftsOpen\\\"]]],[4,[32,0],[\\\"click\\\",[30,0,[\\\"toggleDrafts\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-folder-open\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__toolbar-button rte__size-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"aria-label\\\",[52,[30,0,[\\\"isFullScreen\\\"]],\\\"Exit fullscreen\\\",\\\"Enter fullscreen\\\"]],[16,\\\"title\\\",[52,[30,0,[\\\"isFullScreen\\\"]],\\\"Exit fullscreen\\\",\\\"Enter fullscreen\\\"]],[4,[32,0],[\\\"click\\\",[30,0,[\\\"toggleFullscreen\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fas \\\",[52,[30,0,[\\\"isFullScreen\\\"]],\\\"fa-compress-alt\\\",\\\"fa-expand-alt\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rte__toolbar\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,1,\\\"discussion-rte\\\"],[14,0,\\\"rte__format-tooltip\\\"],[14,\\\"role\\\",\\\"note\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-hand-pointer\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Tap and hold text to format\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n \\\"],[3,\\\"Gets filled in by quill\\\"],[1,\\\"\\\\n \\\"],[11,0],[24,\\\"role\\\",\\\"textbox\\\"],[24,0,\\\"rte__editor\\\"],[4,[32,0],[\\\"click\\\",[30,0,[\\\"onRteEditorClick\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[32,1],[[30,0,[\\\"isTimedAssignment\\\"]],[30,0,[\\\"timedAssignmentEditable\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rte__instruction\\\"],[14,\\\"contenteditable\\\",\\\"false\\\"],[14,\\\"role\\\",\\\"textbox\\\"],[12],[1,\\\"\\\\n Follow the instructions to start the timed assignment\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,2]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rte__footer\\\"],[12],[1,\\\"\\\\n \\\"],[18,3,null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"rte__footer-spacer\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"isDraftsOpen\\\"]],[[[40,[[[1,\\\" \\\"],[8,[32,2],null,[[\\\"@drafts\\\",\\\"@onClose\\\",\\\"@onInsert\\\",\\\"@onDelete\\\"],[[30,0,[\\\"drafts\\\"]],[30,0,[\\\"toggleDrafts\\\"]],[30,0,[\\\"boundOnInsert\\\"]],[30,0,[\\\"onDeleteBound\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[32,3],null,[[\\\"@action\\\"],[[30,0,[\\\"toggleDrafts\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],\\\"%cursor:0%\\\",[28,[31,4],[[30,0,[\\\"draftsElement\\\"]]],null]]],[]],null]],[\\\"@hideDrafts\\\",\\\"@hideFooter\\\",\\\"&default\\\"],[\\\"if\\\",\\\"unless\\\",\\\"yield\\\",\\\"in-element\\\",\\\"-in-el-null\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/rte.js\",\n \"scope\": function scope() {\n return [_modifier.on, _and.default, _drafts.default, _darkBackdrop.default];\n },\n \"isStrictMode\": true\n }), _RteInput), _RteInput), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"rtePositioning\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isFullScreen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isDraftsOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"onRteEditorClick\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onRteEditorClick\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyEditor\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleFullscreen\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleFullscreen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDrafts\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDrafts\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"detectShiftEnter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"detectShiftEnter\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/rubric/assessment\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.hasAssessments}}\n
    \n
    \n {{@submission.grade}}\n {{@submission.percentage}}%\n
    \n \n {{#if this.detailsShown}}\n \n \n {{#each this.data as |a|}}\n \n \n \n {{#if a.assessment.comments}}\n \n \n \n {{/if}}\n \n {{/each}}\n {{#if (or this.lateDeduction this.lateDeductionComment)}}\n \n \n \n {{/if}}\n {{#if this.lateDeductionComment}}\n \n \n \n {{/if}}\n \n
    \n
    \n
    {{a.criterion.title}}
    \n {{{a.criterion.description}}}
    \n \n
    \n {{a.assessment.points}}\n /\n {{a.criterion.points}}\n
    \n
    \n \n {{#each this.session.section.teachers as |teacher|}}\n \n {{/each}}\n
    {{a.assessment.comments}}
    \n \n
    \n
    \n
    \n Late Assignment\n Deduction\n {{this.submission.daysLate}} late\n
    \n
    Points\n deducted due to late submission.
    \n
    \n
    -\n {{this.lateDeduction}}
    \n
    \n \n {{#each this.session.section.teachers as |teacher|}}\n \n {{/each}}\n
    {{this.lateDeductionComment}}
    \n \n
    \n {{/if}}\n \n \n {{#if this.detailsShown}}\n Collapse Details\n \n {{else}}\n Expand Details\n \n {{/if}}\n \n
    \n {{else}}\n Note: Due to a system error, the grading rubric for\n this submission is not available. This has no impact on the final grade for the submission.\n \n {{/if}}\n */\n {\n \"id\": \"jXCGoQFF\",\n \"block\": \"[[[41,[30,0,[\\\"hasAssessments\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-assessment\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-header grade-wrap\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"grade\\\"]]],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"percentage\\\"]]],[1,\\\"%\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"detailsShown\\\"]],[[[1,\\\" \\\"],[10,\\\"table\\\"],[14,0,\\\"grading-rubric-assessment-details\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"grading-rubric-assessment-criterion-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"grading-rubric-assessment-criterion\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-criterion-title\\\"],[12],[1,[30,2,[\\\"criterion\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-criterion-description\\\"],[12],[2,[30,2,[\\\"criterion\\\",\\\"description\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-criterion-assessment\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"assessment\\\",\\\"points\\\"]]],[1,\\\"\\\\n /\\\\n \\\"],[1,[30,2,[\\\"criterion\\\",\\\"points\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"assessment\\\",\\\"comments\\\"]],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Criteria comment\\\"],[14,0,\\\"grading-rubric-assessment-comment-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"session\\\",\\\"section\\\",\\\"teachers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,8],null,[[\\\"@user\\\"],[[30,3]]],null],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-comment\\\"],[12],[1,[30,2,[\\\"assessment\\\",\\\"comments\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"tr\\\"],[14,0,\\\"grading-rubric-assessment-spacer\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[2]],null],[41,[28,[37,9],[[30,0,[\\\"lateDeduction\\\"]],[30,0,[\\\"lateDeductionComment\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"grading-rubric-assessment-late-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-late-overview\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-late-overview-title-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"grading-rubric-assessment-late-overview-title\\\"],[12],[1,\\\"Late Assignment\\\\n Deduction\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"grading-rubric-assessment-late-overview-days-late\\\"],[12],[1,[30,0,[\\\"submission\\\",\\\"daysLate\\\"]]],[1,\\\" late\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-late-overview-points-deducted-copy\\\"],[12],[1,\\\"Points\\\\n deducted due to late submission.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-late-overview-points-deducted\\\"],[12],[1,\\\"-\\\\n \\\"],[1,[30,0,[\\\"lateDeduction\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"lateDeductionComment\\\"]],[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"late deduction comment\\\"],[14,0,\\\"grading-rubric-assessment-comment-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"session\\\",\\\"section\\\",\\\"teachers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,8],null,[[\\\"@user\\\"],[[30,4]]],null],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-assessment-comment\\\"],[12],[1,[30,0,[\\\"lateDeductionComment\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"detailsShown\\\"]],\\\"Collapse grade details\\\",\\\"Show grade details\\\"]]]],[24,0,\\\"rubric-details-collapse\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"toggleDetailsShown\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"detailsShown\\\"]],[[[1,\\\" Collapse Details\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-up\\\"],[14,\\\"aria-label\\\",\\\"Grade Matches Current Submission\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Expand Details\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[14,\\\"aria-label\\\",\\\"Grade Matches Current Submission\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"grading-rubric-assessment-missing\\\"],[12],[1,\\\"Note: Due to a system error, the grading rubric for\\\\n this submission is not available. This has no impact on the final grade for the submission.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@submission\\\",\\\"a\\\",\\\"teacher\\\",\\\"teacher\\\"],[\\\"if\\\",\\\"div\\\",\\\"table\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"user-portrait\\\",\\\"or\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/rubric/assessment.hbs\",\n \"isStrictMode\": false\n });\n var RubricAssessment = _exports.default = (_dec = (0, _service.inject)(\"rubric\"), _dec2 = (0, _service.inject)(\"assessment-events\"), _class = /*#__PURE__*/function (_Component) {\n function RubricAssessment() {\n var _this;\n _classCallCheck(this, RubricAssessment);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, RubricAssessment, [].concat(args));\n _initializerDefineProperty(_this, \"detailsShown\", _descriptor, _this);\n _initializerDefineProperty(_this, \"data\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"rubricService\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"assessmentEvents\", _descriptor6, _this);\n return _this;\n }\n _inherits(RubricAssessment, _Component);\n return _createClass(RubricAssessment, [{\n key: \"toggleDetailsShown\",\n value: function toggleDetailsShown() {\n if (this.onToggleDetailsShown) {\n this.onToggleDetailsShown();\n } else {\n this.detailsShown = !this.detailsShown;\n }\n }\n\n /**\n * Warning! When included in the submission's template, this component only gets initialized once!\n * So, don't put anything in this 'init' method that needs to get executed each time when switching between submissions.\n * Those things should instead be put in something like 'didReceiveAttrs'.\n */\n }, {\n key: \"init\",\n value: function init() {\n _superPropGet(RubricAssessment, \"init\", this, 3)(arguments);\n this.assessmentEvents.on(\"refresh-assessment\", this, this.setData);\n }\n\n //This component is re-rendered and not created anew when switching between submissions. The 'didReceiveAttrs' function gets triggered when switching\n //since the attributes are being updated. When need to update this component's data when this happens. So, that is why\n //the data is getting set here and not in the init method.\n }, {\n key: \"didReceiveAttrs\",\n value: function didReceiveAttrs() {\n var _superPropGet2;\n (_superPropGet2 = _superPropGet(RubricAssessment, \"didReceiveAttrs\", this, 3)) === null || _superPropGet2 === void 0 || _superPropGet2([]);\n this.setData();\n }\n }, {\n key: \"willDestroyElement\",\n value: function willDestroyElement() {\n this.assessmentEvents.off(\"refresh-assessment\", this, this.setData);\n }\n }, {\n key: \"setData\",\n value: function setData() {\n var _this2 = this;\n var data = [];\n this.get(\"criteria\").forEach(function (criterion) {\n var assessment = _this2.store.peekRecord(\"assessment\", \"\".concat(_this2.get(\"submission_id\"), \"_\").concat(_this2.get(\"submission.attempt\"), \"_\").concat(criterion.get(\"id\")));\n if (assessment) {\n data.push({\n assessment: {\n points: assessment.points,\n comments: assessment.comments\n },\n criterion: criterion\n });\n }\n });\n this.data = data;\n }\n }, {\n key: \"hasAssessments\",\n get: function get() {\n var data = this.data;\n if (data) {\n return this.data.some(function (d) {\n var _d$assessment;\n return (_d$assessment = d.assessment) === null || _d$assessment === void 0 ? void 0 : _d$assessment.points;\n });\n } else {\n return false;\n }\n }\n }, {\n key: \"lateDeduction\",\n get: function get() {\n var assessment = this.store.peekRecord(\"assessment\", \"\".concat(this.get(\"submission_id\"), \"_\").concat(this.get(\"submission.attempt\"), \"_-1\"));\n return assessment === null || assessment === void 0 ? void 0 : assessment.get(\"points\");\n }\n }, {\n key: \"lateDeductionComment\",\n get: function get() {\n var assessment = this.store.peekRecord(\"assessment\", \"\".concat(this.get(\"submission_id\"), \"_\").concat(this.get(\"submission.attempt\"), \"_-1\"));\n return assessment === null || assessment === void 0 ? void 0 : assessment.get(\"comments\");\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"detailsShown\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"data\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rubricService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"assessmentEvents\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleDetailsShown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDetailsShown\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RubricAssessment);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/rubric/grading\", [\"exports\", \"@ember/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"lodash.isequal\", \"@ember/runloop\", \"bocce/js/utils\", \"@ember/template-factory\"], function (_exports, _component, _tracking, _object, _service, _lodash, _runloop, _utils, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"lodash.isequal\",0,\"@ember/runloop\",0,\"bocce/js/utils\",0,\"bocce/js/utils\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n
    Assignment Grader
    \n
    \n \n Need a reference? You can use\n this guide\n to help make fair grading decisions.\n \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n Criteria\n
    \n
    \n Private Comment\n
    \n
    \n Points\n
    \n
    \n
    \n {{#each this.assessmentData as |d|}}\n
    \n
    \n {{d.criterion.title}}
    \n {{safehtml d.criterion.description}}
    \n
    \n
    \n \n
    \n \n
    \n \n /\n {{d.criterion.points}}\n
    \n
    \n {{/each}}\n {{#if @submission.daysLate}}\n
    \n
    \n
    \n
    Late Assignment Deduction
    \n {{@submission.daysLate}} late
    \n
    \n
    You can check your\n notes on this student to see if an extension was requested\n here
    \n
    \n
    \n \n
    \n
    \n \n \n
    \n
    \n {{/if}}\n \n \n \n {{yield}}\n \n
    \n \n
    \n \n */\n {\n \"id\": \"3H7T24Mz\",\n \"block\": \"[[[10,0],[14,0,\\\"grading-rubric-grading\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-header-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-header-title\\\"],[12],[1,\\\"Assignment Grader\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"grading-rubric-grading-reference-guide\\\"],[12],[1,\\\"\\\\n Need a reference? You can use\\\\n \\\"],[11,1],[24,0,\\\"grading-rubric-grading-reference-guide-action\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"showGuide\\\"]]],null],[12],[1,\\\"this guide\\\"],[13],[1,\\\"\\\\n to help make fair grading decisions.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grading-rubric-grading-no-credit\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onNoCredit\\\"]]],null],[12],[1,\\\"\\\\n No Credit\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"grading-rubric-grading-max-credit\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"onMaxCredit\\\"]]],null],[12],[1,\\\"\\\\n Max Credit\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"table\\\"],[14,0,\\\"grading-rubric-grading-rubric\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"rowgroup\\\"],[14,0,\\\"grading-rubric-grading-rubric-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"columnheader\\\"],[14,0,\\\"grading-rubric-grading-rubric-header-criteria\\\"],[12],[1,\\\"\\\\n Criteria\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"columnheader\\\"],[14,0,\\\"grading-rubric-grading-rubric-header-comment\\\"],[12],[1,\\\"\\\\n Private Comment\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"columnheader\\\"],[14,0,\\\"grading-rubric-grading-rubric-header-grade\\\"],[12],[1,\\\"\\\\n Points\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"assessmentData\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,\\\"role\\\",\\\"rowgroup\\\"],[14,0,\\\"grading-rubric-grading-rubric-criteria-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"cell\\\"],[14,0,\\\"grading-rubric-grading-rubric-criteria-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,\\\"aria-label\\\",[29,[[30,1,[\\\"criterion\\\",\\\"title\\\"]]]]],[14,0,\\\"grading-rubric-grading-rubric-criteria\\\"],[12],[1,[30,1,[\\\"criterion\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[15,\\\"aria-label\\\",[29,[[30,1,[\\\"criterion\\\",\\\"description\\\"]]]]],[14,0,\\\"grading-rubric-grading-rubric-criteria-description\\\"],[12],[1,[28,[35,6],[[30,1,[\\\"criterion\\\",\\\"description\\\"]]],null]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"cell\\\"],[14,0,\\\"grading-rubric-grading-rubric-comments\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,7],[[16,\\\"aria-label\\\",[29,[\\\"Add a private note for criterion \\\",[30,1,[\\\"criterion\\\",\\\"title\\\"]]]]],[24,\\\"placeholder\\\",\\\"Add a private note to the student\\\"],[24,4,\\\"text\\\"]],[[\\\"@value\\\"],[[30,1,[\\\"assessment\\\",\\\"comments\\\"]]]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"cell\\\"],[14,0,\\\"grading-rubric-grading-rubric-points-column\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,8],[[24,0,\\\"grading-rubric-grading-rubric-points\\\"],[24,\\\"placeholder\\\",\\\"0\\\"],[16,\\\"aria-label\\\",[29,[\\\"Edit points for criterion \\\",[30,1,[\\\"criterion\\\",\\\"title\\\"]]]]],[4,[38,2],[\\\"wheel\\\",[30,0,[\\\"handleWheelEvent\\\"]]],null]],[[\\\"@type\\\",\\\"@max\\\",\\\"@min\\\",\\\"@value\\\"],[\\\"number\\\",[30,1,[\\\"criterion\\\",\\\"points\\\"]],0,[30,1,[\\\"assessment\\\",\\\"points\\\"]]]],null],[1,\\\"\\\\n /\\\\n \\\"],[10,1],[14,0,\\\"grading-rubric-grading-rubric-points-total\\\"],[12],[1,[30,1,[\\\"criterion\\\",\\\"points\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[41,[30,2,[\\\"daysLate\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction-header\\\"],[12],[1,\\\"Late Assignment Deduction\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction-days-late\\\"],[12],[1,[30,2,[\\\"daysLate\\\"]]],[1,\\\" late\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction-check-notes\\\"],[12],[1,\\\"You can check your\\\\n notes on this student to see if an extension was requested\\\\n \\\"],[11,1],[24,0,\\\"grading-rubric-grading-rubric-deduction-check-notes-action\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,2,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"here\\\"],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-rubric-deduction-note\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,7],[[24,\\\"aria-label\\\",\\\"Add a private note for late assignment deduction\\\"],[24,\\\"placeholder\\\",\\\"Add a private note to the student\\\"],[24,4,\\\"text\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"lateDeductionAssessment\\\",\\\"comments\\\"]]]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-deduction-amount-column\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-minus\\\"],[12],[13],[1,\\\"\\\\n \\\"],[8,[39,8],[[24,\\\"aria-label\\\",\\\"Edit points for late assignment deduction\\\"],[24,0,\\\"grading-rubric-grading-deduction-amount\\\"],[24,\\\"placeholder\\\",\\\"0\\\"],[24,4,\\\"number\\\"],[4,[38,2],[\\\"wheel\\\",[30,0,[\\\"handleWheelEvent\\\"]]],null]],[[\\\"@min\\\",\\\"@max\\\",\\\"@value\\\",\\\"@aria-label\\\"],[\\\"0\\\",[30,0,[\\\"assessedPoints\\\"]],[30,0,[\\\"lateDeductionAssessment\\\",\\\"points\\\"]],\\\"Late Deduction Points\\\"]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-footer-score\\\"],[12],[1,\\\"\\\\n Total:\\\\n \\\"],[1,[30,0,[\\\"grade\\\"]]],[1,\\\"\\\\n /\\\\n \\\"],[1,[30,2,[\\\"assignment\\\",\\\"points_possible\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,0,[\\\"percentage\\\"]]],[1,\\\"%\\\\n \\\"],[10,1],[14,0,\\\"grading-rubric-grading-footer-score__letter-grade\\\"],[12],[1,[30,0,[\\\"letterGrade\\\"]]],[13],[1,\\\")\\\\n\\\"],[41,[30,0,[\\\"hasSavedAssessments\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-unsubmitted-draft\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-exclamation-triangle\\\"],[12],[13],[1,\\\"\\\\n Unsubmitted\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[18,5,null],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-footer\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-grading-footer-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"grading-rubric-grading-exit-grader \\\",[52,[30,3],\\\"working\\\"]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"exitGrader\\\"]]],null],[12],[1,\\\"Exit Grader\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[52,[30,4],false,true]],[16,0,[29,[\\\"grading-rubric-grading-submit-grade\\\\n \\\",[52,[30,3],\\\"working\\\"],\\\"\\\\n \\\",[52,[28,[37,13],[[28,[37,14],[[30,4]],null],[28,[37,14],[[30,3]],null]],null],\\\"requirements-not-met\\\"]]]],[4,[38,2],[\\\"click\\\",[30,0,[\\\"submitGrade\\\"]]],null],[12],[1,\\\"Submit Grade\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"d\\\",\\\"@submission\\\",\\\"@attachmentsUploading\\\",\\\"@requirementsMet\\\",\\\"&default\\\"],[\\\"div\\\",\\\"span\\\",\\\"on\\\",\\\"button\\\",\\\"each\\\",\\\"-track-array\\\",\\\"safehtml\\\",\\\"textarea\\\",\\\"input\\\",\\\"if\\\",\\\"fn\\\",\\\"i\\\",\\\"yield\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/rubric/grading.hbs\",\n \"isStrictMode\": false\n });\n var RubricGrading2 = _component.default.extend({\n assessmentObserver: (0, _object.observer)(\"submission.rubric_assessments.@each.{points}\", \"lateDeductionAssessment.{points}\", function () {\n var assessedPoints = this.assessedPoints;\n if (!assessedPoints) {\n this.set(\"grade\", 0);\n return;\n }\n\n //Sanitizing\n this.assessmentData.forEach(function (d) {\n //Don't allow more points than the maximum.\n if (d.assessment.points > d.criterion.points) {\n d.assessment.set(\"points\", d.criterion.points);\n } else if (d.assessment.points < 0) {\n //Don't allow negative points\n d.assessment.set(\"points\", 0);\n }\n });\n\n //Late deduction points can't be more than the assessed points\n if (this.lateDeductionAssessment.get(\"points\") > assessedPoints) {\n this.lateDeductionAssessment.set(\"points\", assessedPoints);\n } else if (this.lateDeductionAssessment.get(\"points\") < 0) {\n this.lateDeductionAssessment.set(\"points\", 0);\n }\n this.set(\"grade\", this.assessedPoints - (this.lateDeductionAssessment.get(\"points\") || 0));\n }),\n //Keep track of whether the content is dirty.\n contentDirtyObserver: (0, _object.observer)(\"submission.rubric_assessments.@each.{points,comments}\", \"lateDeductionAssessment.{points,comments}\", function () {\n var grading = {\n assessments: this.assessmentData.map(function (d) {\n return {\n id: d.assessment.id,\n points: d.assessment.points,\n comments: d.assessment.comments\n };\n }),\n lateDeduction: {\n points: +this.lateDeductionAssessment.get(\"points\"),\n comments: this.lateDeductionAssessment.get(\"comments\")\n }\n };\n this.set(\"contentIsDirty\", !(0, _lodash.default)(this.get(\"defaultGrading\"), grading));\n if (this.get(\"contentIsDirty\")) {\n //Save the assessment for cases when the user re-visits an incomplete rubric after having navigated away from the page.\n this.localStorageService.setItem(\"rubric_assessments_\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\")), JSON.stringify(grading));\n this.markSubmissionRead();\n }\n })\n });\n var RubricGrading = _exports.default = (_dec = (0, _service.inject)(\"rubric\"), _dec2 = (0, _service.inject)(\"userprofile\"), _dec3 = (0, _service.inject)(\"local-storage\"), _dec4 = (0, _service.inject)(\"assessment-events\"), _class = /*#__PURE__*/function (_RubricGrading2) {\n function RubricGrading() {\n var _this;\n _classCallCheck(this, RubricGrading);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, RubricGrading, [].concat(args));\n _initializerDefineProperty(_this, \"detailsShown\", _descriptor, _this);\n _initializerDefineProperty(_this, \"grade\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"lateDeductionAssessment\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"rubricService\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"working\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"userprofileService\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"initialized\", _descriptor8, _this);\n _defineProperty(_this, \"data\", []);\n _initializerDefineProperty(_this, \"hasSavedAssessments\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"assessmentData\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"localStorageService\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"assessmentEvents\", _descriptor10, _this);\n _defineProperty(_this, \"previousSubmissionId\", null);\n _initializerDefineProperty(_this, \"session\", _descriptor11, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor12, _this);\n _defineProperty(_this, \"localStorageCallback\", function (newValue) {\n _this.hasSavedAssessments = !!newValue;\n });\n //Seemed like the simplest way to not call resetAssessment when exiting the grader upon a grade being given.\n _defineProperty(_this, \"ignoreResetAssessmentCall\", false);\n return _this;\n }\n _inherits(RubricGrading, _RubricGrading2);\n return _createClass(RubricGrading, [{\n key: \"didReceiveAttrs\",\n value:\n //This component is re-rendered and not created anew when switching between submissions. The 'didReceiveAttrs' function gets triggered when switching\n //since the attributes are being updated. When need to update this component when this happens. So, that is why\n //the data is getting set here and not in the init method.\n function didReceiveAttrs() {\n var _superPropGet2;\n (_superPropGet2 = _superPropGet(RubricGrading, \"didReceiveAttrs\", this, 3)) === null || _superPropGet2 === void 0 || _superPropGet2([]);\n if (this.get(\"submission.db_id\") != this.previousSubmissionId) {\n this.setup();\n }\n this.previousSubmissionId = this.get(\"submission.db_id\");\n }\n }, {\n key: \"setup\",\n value: function setup() {\n var _this2 = this;\n var gradingId = \"\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\"));\n this.localStorageService.registerCallback(\"rubric_assessments_\".concat(gradingId), this.localStorageCallback);\n this.setAssessmentData();\n\n //Used when exiting the grader and also for determining when content is dirty.\n this.set(\"defaultGrading\", {\n assessments: this.assessmentData.map(function (d) {\n return {\n id: d.assessment.id,\n points: d.assessment.points,\n comments: d.assessment.comments\n };\n }),\n lateDeduction: {\n points: +this.lateDeductionAssessment.get(\"points\"),\n comments: this.lateDeductionAssessment.get(\"comments\")\n }\n });\n\n //Sets submission controller callbacks. First one is used to determine if the content is dirty. Second\n //one is used to reset the rubric assessment when the editor is destroyed.\n this.setRubricAssessmentIsDirtyCallback(function () {\n return _this2.rubricService.isGrading && _this2.get(\"contentIsDirty\");\n });\n this.setSubmissionComponentCleanupCallback(function () {\n _this2.cleanup();\n });\n var savedGrading = this.localStorageService.getItem(\"rubric_assessments_\".concat(gradingId));\n var savedAssessments = null;\n var savedLateDeduction = null;\n if (savedGrading) {\n savedGrading = JSON.parse(savedGrading);\n savedAssessments = savedGrading.assessments;\n savedLateDeduction = savedGrading.lateDeduction;\n this.hasSavedAssessments = true;\n } else {\n this.hasSavedAssessments = false;\n }\n var assessments = [];\n this.get(\"criteria\").forEach(function (criterion) {\n var _savedAssessments;\n var assessmentId = \"\".concat(gradingId, \"_\").concat(criterion.id);\n var assessment = _this2.store.peekRecord(\"assessment\", assessmentId);\n var savedAssessment = (_savedAssessments = savedAssessments) === null || _savedAssessments === void 0 ? void 0 : _savedAssessments.find(function (a) {\n return a.id === assessmentId;\n });\n if (savedAssessment) {\n assessment.set(\"points\", savedAssessment.points);\n assessment.set(\"comments\", savedAssessment.comments);\n }\n assessments.push(assessment);\n });\n this.get(\"submission\").set(\"rubric_assessments\", assessments);\n if (savedLateDeduction) {\n this.lateDeductionAssessment.set(\"points\", savedLateDeduction.points);\n this.lateDeductionAssessment.set(\"comments\", savedLateDeduction.comments);\n }\n this.setupListener();\n }\n }, {\n key: \"setupListener\",\n value: function setupListener() {\n var _this3 = this;\n this.shortcutListener = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {\n var stopEvent, selection, _selection;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n stopEvent = function stopEvent() {\n event.preventDefault();\n event.stopImmediatePropagation();\n };\n if (!(event.key === \"Escape\" || event.keyCode === 27)) {\n _context.n = 1;\n break;\n }\n stopEvent();\n _this3.controller.send(\"closeModals\", false);\n _context.n = 5;\n break;\n case 1:\n if (!_this3.get(\"contentIsDirty\")) {\n _context.n = 5;\n break;\n }\n if (!(0, _utils.isForwardShortcut)(event)) {\n _context.n = 3;\n break;\n }\n stopEvent();\n _context.n = 2;\n return _this3.confirmDialog.show({\n subtitle: \"Are you sure you want to go forward a page? All unsaved work will be lost.\",\n choices: [\"Yes\", \"No\"]\n });\n case 2:\n selection = _context.v;\n if (selection === \"Yes\") {\n _this3.cleanup();\n history.forward();\n }\n _context.n = 5;\n break;\n case 3:\n if (!(0, _utils.isBackShortcut)(event)) {\n _context.n = 5;\n break;\n }\n stopEvent();\n _context.n = 4;\n return _this3.confirmDialog.show({\n subtitle: \"Are you sure you want to go back a page? All unsaved work will be lost.\",\n choices: [\"Yes\", \"No\"]\n });\n case 4:\n _selection = _context.v;\n if (_selection === \"Yes\") {\n _this3.cleanup();\n history.back();\n }\n case 5:\n return _context.a(2);\n }\n }, _callee);\n }));\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }();\n addEventListener(\"keydown\", this.shortcutListener, true);\n }\n }, {\n key: \"markSubmissionRead\",\n value: function markSubmissionRead() {\n if (!this.submission.get(\"read\")) {\n this.submission.set(\"read\", true);\n // Advance the read high-water mark so a heartbeat replay of the comments\n // we just read doesn't re-flag the submission as unread.\n this.submission.markCommentsRead();\n /* eslint-disable-next-line ember/no-jquery */\n $.get(\"/interface/sections/\".concat(this.session.get(\"section.id\"), \"/assignments/\").concat(this.submission.get(\"assignment.id\"), \"/submissions/\").concat(this.submission.get(\"id\"), \"/read\"));\n }\n }\n }, {\n key: \"didInsertElement\",\n value: function didInsertElement() {\n //Necessary to trigger the observers\n this.set(\"submission.rubric_assessments\", this.get(\"submission.rubric_assessments\") || []);\n $(this.element).find(\".grading-rubric-grading-rubric-points, .grading-rubric-grading-deduction-amount\").on(\"keypress\", function (e) {\n if (e.which == 13) {\n //Not doing this via an @enter on the inputs because that is too slow.\n e.target.blur();\n }\n });\n $(this.element).find(\".grading-rubric-grading-rubric-comments textarea\").on(\"input\", function (e) {\n if (this.scrollHeight > this.clientHeight) {\n this.style.height = \"\".concat(this.scrollHeight, \"px\");\n }\n });\n }\n }, {\n key: \"willDestroyElement\",\n value: function willDestroyElement() {\n this.cleanup();\n }\n }, {\n key: \"cleanup\",\n value: function cleanup() {\n //This method is called both when exiting the submission modal and also when assigning a grade. We don't want to reset the assessment\n //when assigning a grade. So, this is why this logic is in place.\n if (!this.ignoreResetAssessmentCall) {\n this.resetAssessment();\n }\n removeEventListener(\"keydown\", this.shortcutListener, true);\n this.setSubmissionComponentCleanupCallback(null);\n }\n\n //criteria-related and also late-deduction related\n }, {\n key: \"setAssessmentData\",\n value: function setAssessmentData() {\n var _this4 = this;\n var assessmentData = [];\n this.get(\"criteria\").forEach(function (criterion) {\n var assessmentId = \"\".concat(_this4.get(\"submission.db_id\"), \"_\").concat(_this4.get(\"submission.attempt\"), \"_\").concat(criterion.get(\"id\"));\n var assessment = _this4.store.peekRecord(\"assessment\", assessmentId);\n if (!assessment) {\n assessment = _this4.store.createRecord(\"assessment\", {\n id: assessmentId,\n points: \"\",\n comments: \"\"\n });\n }\n assessmentData.push({\n assessment: assessment,\n criterion: criterion\n });\n });\n this.assessmentData = assessmentData;\n\n //The late deduction criteria's id ends in '-1'\n var deductionAssessmentId = \"\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\"), \"_-1\");\n var assessment = this.store.peekRecord(\"assessment\", deductionAssessmentId);\n\n //Do we have a late deduction?\n if (assessment) {\n this.lateDeductionAssessment = assessment;\n } else {\n this.lateDeductionAssessment = this.store.createRecord(\"assessment\", {\n id: deductionAssessmentId,\n points: 0,\n comments: \"\"\n });\n }\n }\n }, {\n key: \"assessedPoints\",\n get: function get() {\n var total = 0;\n\n /**\n * return null if nothing has any points. i.e.:\n * this.assessmentData.some(d => !!+d.assessment.points) returns true if anything has points (+ converts to int, !! converts to boolean)\n * So, !this.assessmentData.some(d => !!+d.assessment.points) means that nothing has any points.\n */\n if (!this.assessmentData.some(function (d) {\n return !!+d.assessment.points;\n })) {\n return null;\n }\n this.assessmentData.forEach(function (d) {\n if (+d.assessment.points) {\n total += +d.assessment.points;\n }\n });\n return total;\n }\n }, {\n key: \"percentage\",\n get: function get() {\n return Math.round(100 * this.get(\"grade\") / this.get(\"submission.assignment.points_possible\"));\n }\n }, {\n key: \"letterGrade\",\n get: function get() {\n return (0, _utils.scoreToLetter)(this.percentage);\n }\n }, {\n key: \"resetAssessment\",\n value: function resetAssessment() {\n var defaultGrading = this.get(\"defaultGrading\");\n if (this.get(\"submission.rubric_assessments\")) {\n this.get(\"submission.rubric_assessments\").forEach(function (a) {\n var assessment = defaultGrading.assessments.find(function (p) {\n return p.id == a.get(\"id\");\n });\n if (assessment) {\n (0, _object.set)(a, \"points\", assessment.points);\n (0, _object.set)(a, \"comments\", assessment.comments);\n }\n });\n }\n this.set(\"lateDeductionAssessment.points\", defaultGrading.lateDeduction.points);\n this.set(\"lateDeductionAssessment.comments\", defaultGrading.lateDeduction.comments);\n this.localStorageCleanup();\n }\n }, {\n key: \"localStorageCleanup\",\n value: function localStorageCleanup() {\n this.localStorageService.removeItem(\"rubric_assessments_\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\")));\n var gradingId = \"\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\"));\n this.localStorageService.unregisterCallback(\"rubric_assessments_\".concat(gradingId), this.localStorageCallback);\n }\n }, {\n key: \"handleWheelEvent\",\n value: function handleWheelEvent(event) {\n //Unfocus the input while scrolling so that the points don't change accidentally.\n event.currentTarget.blur();\n }\n }, {\n key: \"onNoCredit\",\n value: function onNoCredit() {\n this.assessmentData.forEach(function (d) {\n (0, _object.set)(d.assessment, \"points\", 0);\n });\n this.lateDeductionAssessment.set(\"points\", 0);\n this.element.scrollIntoView(false);\n }\n }, {\n key: \"onMaxCredit\",\n value: function onMaxCredit() {\n var _this5 = this;\n var gradingId = \"\".concat(this.get(\"submission.db_id\"), \"_\").concat(this.get(\"submission.attempt\"));\n this.get(\"criteria\").forEach(function (criterion) {\n var assessmentId = \"\".concat(gradingId, \"_\").concat(criterion.id);\n var assessment = _this5.store.peekRecord(\"assessment\", assessmentId);\n if (assessment) {\n assessment.set(\"points\", criterion.points);\n }\n });\n this.element.scrollIntoView(false);\n }\n }, {\n key: \"submitGrade\",\n value: function submitGrade() {\n var _this6 = this;\n this.working = true;\n var hasAllCriteria = true;\n this.assessmentData.forEach(function (d) {\n if (d.assessment.points === \"\") {\n hasAllCriteria = false;\n return;\n }\n });\n if (!hasAllCriteria) {\n this.confirmDialog.show({\n subtitle: \"Please make sure all criteria are given point values before submitting.\"\n }).then(function () {\n $(_this6.element).find(\".grading-rubric-grading-rubric-points\").each(function () {\n if (!$(this).val()) {\n $(this).toggleClass(\"incomplete\");\n }\n });\n $(_this6.element).find(\".grading-rubric-grading-rubric-points\").on(\"input\", function () {\n if (!$(this).val()) {\n $(this).addClass(\"incomplete\");\n } else {\n $(this).removeClass(\"incomplete\");\n }\n });\n });\n this.working = false;\n return;\n }\n if (this.lateDeductionAssessment.get(\"points\") === \"\") {\n this.lateDeduction = 0;\n }\n\n //If the late deduction amount was changed.\n if (this.get(\"defaultGrading.lateDeduction\") != this.lateDeductionAssessment.get(\"points\") || this.get(\"defaultGrading.lateDeductionComment\") != this.lateDeductionAssessment.get(\"comments\")) {\n var id = \"\".concat(this.submission_id, \"_\").concat(this.attempt, \"_-1\");\n var r = this.store.peekRecord(\"assessment\", id);\n\n //We don't store a late deduction with every assessment. If there is no late deduction\n //assessment, create one. If we do have one, update the points.\n if (!r) {\n var lateDeductionAssessment = this.store.createRecord(\"assessment\", {\n id: id,\n points: this.lateDeductionAssessment.get(\"points\"),\n comments: this.lateDeductionAssessment.get(\"comments\")\n });\n\n // Native push (not pushObject): array prototype extensions are off\n // (config/environment.js), so ember-data's relationship array has no\n // MutableArray methods. push is proxied through addToRelatedRecords, so\n // the new assessment is added to the relationship and onSubmitGrade\n // serializes it into rubric_assessment_objects.\n this.get(\"submission.rubric_assessments\").push(lateDeductionAssessment);\n } else {\n r.set(\"points\", this.lateDeductionAssessment.get(\"points\"));\n }\n }\n this.ignoreResetAssessmentCall = true;\n this.onSubmitGrade(this.get(\"grade\"), function () {\n //On complete\n (0, _runloop.scheduleOnce)(\"afterRender\", function () {\n _this6.rubricService.isGrading = false;\n _this6.working = false;\n _this6.assessmentEvents.trigger(\"refresh-assessment\");\n _this6.localStorageService.removeItem(\"rubric_assessments_\".concat(_this6.get(\"submission.db_id\"), \"_\").concat(_this6.get(\"submission.attempt\")));\n });\n });\n }\n }, {\n key: \"showGuide\",\n value: function showGuide() {\n var pointsPossible = this.get(\"submission.assignment.points_possible\");\n var range = Math.floor(pointsPossible * 0.1);\n var ratings = [{\n name: \"Excellent\"\n }, {\n name: \"Good\"\n }, {\n name: \"Fair\"\n }, {\n name: \"Needs Improvement\"\n }, {\n name: \"Fail\"\n }];\n for (var i = 0; i < ratings.length; i++) {\n ratings[i].range = \"(\".concat(pointsPossible - range * (i + 1) - i, \"-\").concat(pointsPossible - range * i - i, \")\");\n }\n var html = \"\".concat(ratings.map(function (r) {\n return \"\");\n }).join(\"\"), \"
    \".concat(r.name, \"\").concat(r.range, \"
    \");\n this.confirmDialog.show({\n body: html\n });\n }\n }, {\n key: \"exitGrader\",\n value: function () {\n var _exitGrader = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var result;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n result = \"Exit Grader\";\n if (!this.get(\"contentIsDirty\")) {\n _context2.n = 2;\n break;\n }\n _context2.n = 1;\n return this.confirmDialog.show({\n choices: [\"Go Back\", \"Exit Grader\"],\n body: \"\\n
    \\n
    Are you sure you want to exit the grader?
    \\n
    Your changes will not be saved.
    \\n
    \\n \",\n additionalClasses: [\"grading-rubric-grading-exit\"]\n });\n case 1:\n result = _context2.v;\n case 2:\n if (result == \"Exit Grader\") {\n this.rubricService.isGrading = false;\n }\n case 3:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function exitGrader() {\n return _exitGrader.apply(this, arguments);\n }\n return exitGrader;\n }()\n }]);\n }(RubricGrading2), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"detailsShown\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"grade\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"lateDeductionAssessment\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"rubricService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"working\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"userprofileService\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"initialized\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasSavedAssessments\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"assessmentData\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"localStorageService\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"assessmentEvents\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"handleWheelEvent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleWheelEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onNoCredit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onNoCredit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMaxCredit\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"onMaxCredit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submitGrade\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"submitGrade\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showGuide\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"showGuide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"exitGrader\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"exitGrader\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RubricGrading);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/rubric/instructor-graded\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"jquery\", \"@ember/runloop\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _jquery, _runloop, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/runloop\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n {{#if (same @submission.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n
    \n \n Resubmit Requested\n
    \n
    \n The student has been notified to submit a new attempt.\n
    \n
    \n {{else}}\n Graded:\n {{#if @submission.score}}\n {{@submission.grade}}\n ({{@submission.percentage}}%)\n {{else}}\n No Credit\n {{/if}}\n {{/if}}\n \n
    \n
    \n {{#unless (same @submission.teacher_requires_resubmission \"needs_resubmit\")}}\n \n \n Request Resubmit\n \n {{/unless}}\n \n
    \n \n */\n {\n \"id\": \"TYJFzUSm\",\n \"block\": \"[[[10,0],[14,0,\\\"grading-rubric-instructor-graded\\\"],[15,5,[52,[28,[37,2],[[28,[37,3],[[30,1,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[28,[37,4],[[30,1,[\\\"score\\\"]]],null]],null],\\\"background: var(--gray-xlight)\\\"]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-instructor-graded-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,3],[[30,1,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fas fa-repeat\\\"],[12],[13],[1,\\\"\\\\n Resubmit Requested\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-italic\\\"],[12],[1,\\\"\\\\n The student has been notified to submit a new attempt.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Graded:\\\\n\\\"],[41,[30,1,[\\\"score\\\"]],[[[1,\\\" \\\"],[1,[30,1,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,1,[\\\"percentage\\\"]]],[1,\\\"%)\\\\n\\\"]],[]],[[[1,\\\" No Credit\\\\n\\\"]],[]]]],[]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-instructor-graded-actions\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,3],[[30,1,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"grading-rubric-instructor-graded-request-resubmit\\\"],[4,[38,8],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fas fa-repeat\\\"],[12],[13],[1,\\\"\\\\n Request Resubmit\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"grading-rubric-instructor-graded-edit-grade\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"editGrade\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasSavedRubricAssessments\\\"]],[[[1,\\\" Resume Editing Grade\\\\n\\\"]],[]],[[[1,\\\" Edit Grade\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@submission\\\",\\\"@requestResubmit\\\"],[\\\"div\\\",\\\"if\\\",\\\"or\\\",\\\"same\\\",\\\"not\\\",\\\"i\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/components/rubric/instructor-graded.hbs\",\n \"isStrictMode\": false\n });\n var RubricGraded = _exports.default = (_dec = (0, _service.inject)(\"rubric\"), _class = /*#__PURE__*/function (_Component) {\n function RubricGraded() {\n var _this;\n _classCallCheck(this, RubricGraded);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, RubricGraded, [].concat(args));\n _initializerDefineProperty(_this, \"rubricService\", _descriptor, _this);\n _defineProperty(_this, \"hasSavedRubricAssessments\", void 0);\n return _this;\n }\n _inherits(RubricGraded, _Component);\n return _createClass(RubricGraded, [{\n key: \"init\",\n value: function init() {\n _superPropGet(RubricGraded, \"init\", this, 3)(arguments);\n var gradingId = \"\".concat(this.submission.get(\"db_id\"), \"_\").concat(this.submission.get(\"attempt\"));\n this.hasSavedRubricAssessments = !!localStorage.getItem(\"rubric_assessments_\".concat(gradingId));\n }\n }, {\n key: \"editGrade\",\n value: function editGrade() {\n this.rubricService.toggleIsGrading();\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n var $el = (0, _jquery.default)(\".grading-rubric-grading\");\n if ($el.length) {\n $el[0].scrollIntoView();\n }\n });\n }\n }]);\n }(_component.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"rubricService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"editGrade\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"editGrade\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RubricGraded);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/rubric/rubric\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"showdown\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _showdown, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"showdown\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.data}}\n

    Grading Rubric

    \n \n \n \n \n \n \n \n \n {{#each this.data as |criterion|}}\n \n \n \n \n {{/each}}\n \n
    CriteriaPossible Points
    \n
    {{criterion.title}}
    \n {{{criterion.description}}}\n
    {{criterion.points}}
    \n {{/if}}\n */\n {\n \"id\": \"f2++Ds0w\",\n \"block\": \"[[[41,[30,0,[\\\"data\\\"]],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Grading Rubric\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"grading-rubric-rubric\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"grading-rubric-rubric-criteria-copy\\\"],[12],[1,\\\"Criteria\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[14,0,\\\"grading-rubric-rubric-possible-points-copy\\\"],[12],[1,\\\"Possible Points\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"data\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"grading-rubric-rubric-criterion-description-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-rubric-criterion-description\\\"],[12],[2,[30,1,[\\\"description\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"grading-rubric-rubric-criterion-points\\\"],[12],[1,[30,1,[\\\"points\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"criterion\\\"],[\\\"if\\\",\\\"h2\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/rubric/rubric.hbs\",\n \"isStrictMode\": false\n });\n var RubricComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function RubricComponent() {\n var _this;\n _classCallCheck(this, RubricComponent);\n _this = _callSuper(this, RubricComponent, arguments);\n _initializerDefineProperty(_this, \"detailsShown\", _descriptor, _this);\n if (_this.args.criteria && _this.args.criteria.length) {\n var converter = new _showdown.default.Converter();\n\n //For some reason, ember likes to dynamically mess with the criteria\n //under some circumstances if this property is tracked or a getter property. I have no idea why.\n //There could be some better, deeper fix than to make it static, but I have no idea what that is.\n _this.data = _this.args.criteria.map(function (c) {\n var _c$description;\n return {\n points: c.points,\n description: converter.makeHtml((_c$description = c.description) !== null && _c$description !== void 0 ? _c$description : \"\"),\n title: c.title\n };\n });\n }\n return _this;\n }\n _inherits(RubricComponent, _Component);\n return _createClass(RubricComponent, [{\n key: \"toggleDetailsShown\",\n value: function toggleDetailsShown() {\n this.detailsShown = !this.detailsShown;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"detailsShown\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleDetailsShown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDetailsShown\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RubricComponent);\n});","define(\"bocce/components/modals/cover-backdrop\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"K/b6blPa\",\n \"block\": \"[[],[],[]]\",\n \"moduleName\": \"bocce/components/modals/cover-backdrop.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n classNames: [\"cover-backdrop\"]\n }));\n});","define(\"bocce/components/modals/dark-backdrop\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"+EZeTRmD\",\n \"block\": \"[[],[],[]]\",\n \"moduleName\": \"bocce/components/modals/dark-backdrop.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n classNames: [\"dark-backdrop\"],\n click: function click() {\n this.action();\n }\n }));\n});","define(\"bocce/components/new-activity\", [\"exports\", \"@ember/component\", \"@ember/debug\", \"jquery\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/embed-parser\", \"bocce/mixins/uploadable\", \"bocce/mixins/editable\", \"bocce/mixins/polls\", \"bocce/mixins/nested-resources\", \"@ember/object\", \"@ember/object/computed\", \"@ember/array/proxy\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _debug, _jquery, _audioRec, _videoRec, _rtcRec, _embedParser, _uploadable, _editable, _polls, _nestedResources, _object, _computed, _proxy, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/component\",0,\"jquery\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/embed-parser\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/polls\",0,\"bocce/mixins/nested-resources\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/array/proxy\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    {{this.modalTitle}}
    \n
    \n \n
    \n \n {{#if this.isAnnouncement}}Announcement{{else}}Discussion{{/if}}\n Copy\n *\n \n \n \n
    \n
    \n {{#if (or this.isAnnouncement this.session.isInstructor)}}\n {{#if this.isAnnouncement}}\n {{#if this.otherCurrentTermSections}}\n
    \n \n {{#if this.multiSectionPicker}}\n
    \n This announcement will also be\n posted to the selected sections.\n
    \n {{#each this.userSectionCodes as |section|}}\n \n {{/each}}\n
    \n
    \n {{/if}}\n
    \n {{/if}}\n {{/if}}\n {{#if this.session.isInstructor}}\n
    \n \n {{#if this.pollDrawerOpen}}\n \n {{/if}}\n
    \n {{/if}}\n {{/if}}\n
    \n Attachments\n \n \n Add attachment\n
    \n
    \n \n Cancel\n \n \n \n Post\n \n
    \n
    \n \n */\n {\n \"id\": \"L2HDH8fD\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"new-activity \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[14,1,\\\"new-discussion\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-activity__title\\\"],[14,1,\\\"new-acitivity-title\\\"],[12],[1,[30,0,[\\\"modalTitle\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"new-activity__content \\\",[52,[30,0,[\\\"noRec\\\"]],\\\"no-rec\\\"]]]],[14,\\\"aria-label\\\",\\\"New Discussion\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-activity__title-label\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n \\\"],[41,[30,0,[\\\"isAnnouncement\\\"]],[[[1,\\\"Announcement\\\"]],[]],[[[1,\\\"Discussion\\\"]],[]]],[1,\\\"\\\\n Title\\\\n \\\"],[10,1],[14,0,\\\"new-activity__required-asterisk\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[8,[39,4],[[24,\\\"autofocus\\\",\\\"\\\"],[24,\\\"maxlength\\\",\\\"250\\\"],[24,0,\\\"subject new\\\"],[24,1,\\\"discussion-title\\\"],[24,\\\"placeholder\\\",\\\"Title (Max length 250)\\\"],[24,\\\"aria-label\\\",\\\"New Discussion Title\\\"]],[[\\\"@value\\\",\\\"@aria-required\\\"],[[30,0,[\\\"titleInput\\\"]],\\\"true\\\"]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-activity__rte-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-activity__label\\\"],[12],[1,\\\"\\\\n \\\"],[41,[30,0,[\\\"isAnnouncement\\\"]],[[[1,\\\"Announcement\\\"]],[]],[[[1,\\\"Discussion\\\"]],[]]],[1,\\\"\\\\n Copy\\\\n \\\"],[10,1],[14,0,\\\"new-activity__required-asterisk\\\"],[12],[1,\\\"*\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"New Discussion Text Editor\\\"],[15,0,[29,[\\\"reply-container reply-quick\\\\n \\\",[52,[30,0,[\\\"inEditor\\\"]],\\\"active-editor\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isAnnouncement\\\"]],\\\"is-announcement\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"has-poll\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@controller\\\",\\\"@userInput\\\",\\\"@updateArchive\\\"],[[30,0],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"isAnnouncement\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],null],[[[41,[30,0,[\\\"isAnnouncement\\\"]],[[[41,[30,0,[\\\"otherCurrentTermSections\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-activity__section\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-activity__section-toggle select\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],[[24,\\\"aria-label\\\",\\\"Send this announcement to multiple sections.\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"toggleMultiSectionPicker\\\"]]],null]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"multiSectionPicker\\\"]]]],null],[1,\\\"\\\\n Multisection Announcement?\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"multiSectionPicker\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-activity__multisection\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-activity__multisection-infotext\\\"],[12],[1,\\\"This announcement will also be\\\\n posted to the selected sections.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-activity__multisection-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"userSectionCodes\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"new-activity__multisection-option select\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,4,\\\"checkbox\\\"],[4,[38,7],[\\\"change\\\",[28,[37,10],[[30,0,[\\\"toggleSection\\\"]],[30,1,[\\\"sectionId\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"courseTitle\\\"]]],[1,\\\"-\\\"],[1,[30,1,[\\\"sectionLabel\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-activity__section\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-activity__section-toggle select\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[30,0,[\\\"pollDrawerOpen\\\"]]],[24,\\\"aria-label\\\",\\\"Send this announcement to multiple sections.\\\"],[24,4,\\\"checkbox\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"togglePollsDrawer\\\"]]],null],[12],[13],[1,\\\"\\\\n Add a poll?\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pollDrawerOpen\\\"]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@pollChoices\\\",\\\"@addPollEntries\\\",\\\"@minmizePollsDrawer\\\",\\\"@clearPollChoice\\\"],[[30,0,[\\\"pollChoices\\\"]],[30,0,[\\\"addPollEntries\\\"]],[30,0,[\\\"minmizePollsDrawer\\\"]],[30,0,[\\\"clearPollChoice\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"new-activity__attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-activity__label\\\"],[12],[1,\\\"Attachments\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,12],null,[[\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\"],[[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button--gray-ghost new-activity__add-attachment-button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"openAttachmentDrawer\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Add attachment\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-activity__button-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button--gray-ghost\\\"],[24,\\\"aria-label\\\",\\\"Cancel new discussion\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"cancelNewDiscussion\\\"]]],null],[12],[1,\\\"\\\\n Cancel\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button--primary\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"readyToSave\\\"]]],true,null]],[24,\\\"aria-label\\\",\\\"Post new discussion.\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"saveDiscussion\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Post\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"section\\\"],[\\\"div\\\",\\\"if\\\",\\\"label\\\",\\\"span\\\",\\\"input\\\",\\\"rte\\\",\\\"or\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"fn\\\",\\\"polls/poll-drawer\\\",\\\"attachments-container\\\",\\\"button\\\",\\\"i\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"bocce/components/new-activity.hbs\",\n \"isStrictMode\": false\n });\n // app/controllers/new-discussion.js\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_uploadable.default, _editable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _embedParser.default, _polls.default, _nestedResources.default, {\n tagName: \"\",\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n router: (0, _service.inject)(),\n accessibility: (0, _service.inject)(),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n this.multiSections = this.multiSections || _proxy.default.create({\n content: []\n });\n this.files = [];\n this.file_ids = [], this.promises = [];\n this.controller.setConfirmTransition(function () {\n return _this.editorHasContent || _this.get(\"titleInput\").length;\n });\n },\n titleInput: \"\",\n isAnnouncement: false,\n modalTitle: (0, _object.computed)(\"multipleSectionsSelected\", \"isAnnouncement\", function () {\n if (this.isAnnouncement) {\n if (this.multipleSectionsSelected) {\n return \"New Multi-Section Announcement\";\n } else {\n return \"New Announcement\";\n }\n } else {\n return \"New Conversation\";\n }\n }),\n multipleSectionsSelected: (0, _computed.gt)(\"multiSections.length\", 0),\n userSectionCodes: (0, _object.computed)(\"multiSections.[]\", \"otherCurrentTermSections\", function () {\n /* eslint-disable-next-line ember/no-get */\n var sectionCodes = this.otherCurrentTermSections;\n return sectionCodes && sectionCodes.length > 0 ? sectionCodes : false;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n readyToSave: (0, _object.computed)(\"titleInput\", \"postable\", function () {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"titleInput.length\") > 0 && this.postable;\n }),\n postToSection: function postToSection(sections, recObject) {\n var _this2 = this;\n var pollObject = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n // Track Ember Data records created by this action so they can be removed\n // from the local store if the overall multi-step operation fails.\n var createdRecords = [];\n var trackCreatedRecord = function trackCreatedRecord(record) {\n createdRecords.push(record);\n return record;\n };\n var rollbackCreatedRecords = function rollbackCreatedRecords() {\n createdRecords.forEach(function (record) {\n if (!record || record.get(\"isDeleted\") || record.get(\"isDestroying\")) {\n return;\n }\n if (record.get(\"isNew\")) {\n record.rollbackAttributes();\n } else {\n record.unloadRecord();\n }\n });\n };\n var poll;\n if (pollObject) {\n var pollRecord = trackCreatedRecord(this.store.createRecord(\"poll\", pollObject));\n poll = pollRecord.save();\n } else {\n poll = Promise.resolve(false);\n }\n var discussionRecord = trackCreatedRecord(this.store.createRecord(\"discussion\", recObject));\n var discussion = discussionRecord.save();\n var currentSectionCreation = Promise.all([poll, discussion]).then(function (res) {\n var discussion = res[1];\n if (pollObject) {\n var _poll = res[0];\n discussion.set(\"poll_id\", _poll.id);\n }\n discussion.set(\"subscribed\", true);\n return discussion.save();\n });\n var postableDiscussion = {\n discussion: recObject\n },\n pollsPromise,\n discussionsPromise;\n\n // if there's a poll, send the requests to create the poll\n // otherwise, simply return a promise with 'false'\n if (pollObject) {\n var postablePoll = {\n poll: pollObject\n };\n pollsPromise = this.createNestedResources(\"polls\", postablePoll, \"sections\", sections);\n } else {\n pollsPromise = Promise.resolve(false);\n }\n\n // send the requests to create the discussion in all sections\n discussionsPromise = this.createNestedResources(\"discussions\", postableDiscussion, \"sections\", sections);\n\n // Wait for all promises to resolve, then modify the returned\n // discussion objects to subscribe & attach poll ids.\n // If there are no other sections, this resolves right away.\n var otherSectionsCreation = Promise.all([pollsPromise, discussionsPromise]).then(function (res) {\n var polls = res[0],\n discussions = res[1];\n for (var i = 0; i < discussions.length; i++) {\n // subscribe to each newly-created discussion\n discussions[i].discussion.subscribed = true;\n\n // if there's a poll, attach each poll's id to the\n // respective discussion object\n if (polls) {\n var poll_id = polls[i].poll[0].id;\n discussions[i].discussion.poll_id = poll_id;\n }\n }\n return _this2.updateNestedResources([\"discussion\", \"discussions\"], discussions, [\"section\", \"sections\"]);\n });\n\n // Once the current section and other sections\n // have successfully posted, clean things up\n // and close the modal.\n Promise.all([currentSectionCreation, otherSectionsCreation]).then(function () {\n //Clear the body and title before transitioning so the transition\n //confirmation dialog is not shown.\n _this2.set(\"bodyInput\", \"\");\n _this2.set(\"titleInput\", \"\");\n _this2.controller.ignoreTransitionConfirmation = true;\n _this2.router.transitionTo(\"classroom.activity\");\n _this2.accessibility.focus(\".activities:not(.todo)\", false, false, 500);\n _this2.accessibility.announce(\"Your new message has been posted.\");\n }).catch(function (err) {\n rollbackCreatedRecords();\n (0, _debug.debug)(err, \"Posting announcement failed\");\n _this2.set(\"uploadInProgress\", false);\n _this2.set(\"multiSections\", []);\n alert(\"This message failed to post. Please retry.\");\n });\n },\n toggleMultiSectionPicker: (0, _object.action)(function () {\n this.toggleProperty(\"multiSectionPicker\");\n }),\n addFile: (0, _object.action)(function (file) {\n var _this3 = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.push(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this3.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this3.encoding_videos.setObject(_this3.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this3.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n deleteAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n saveDiscussion: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n var usr = this.get(\"session.user\"),\n title = this.titleInput,\n message = this.parseEmbed(this.bodyInput),\n date = new Date(),\n recObject,\n pollObject,\n pollQuestions = [],\n multiSections = this.multiSections || [],\n pollChoices = this.pollChoices.map(function (pc) {\n return pc.text;\n }),\n /* eslint-disable-next-line ember/no-get */\n term = this.get(\"session.course.term\");\n\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(message.replace(/ /g, \" \").replace(//g, \" \")).length === 0 || _jquery.default.trim(title.replace(/ /g, \" \").replace(//g, \" \")).length === 0) {\n // Text is all whitespace. Don't post.\n return;\n }\n\n // Add any video embeds\n message = message + this.videoEmbedString;\n\n // Is there a poll?\n if (this.pollStarted) {\n for (var i = 0; i < pollChoices.length; i++) {\n if (pollChoices[i].length > 0) {\n pollQuestions.push({\n text: pollChoices[i],\n is_correct: true,\n position: i + 1\n });\n }\n }\n\n // the database's poll description column has a limit of 255 characters\n var description = message.substring(0, 255);\n if (pollQuestions.length < 2) {\n this.confirmDialog.show({\n subtitle: \"Your poll only has one option. Please add more or delete the poll before posting.\"\n });\n return;\n }\n pollObject = {\n question: title,\n description: description,\n choices: JSON.stringify(pollQuestions)\n };\n (0, _debug.debug)(\"Creating Poll...\");\n }\n if (!this.working && this.file_ids.length > 0) {\n this.set(\"uploadInProgress\", true);\n recObject = {\n // user: usr,\n message: message,\n date: date,\n attachments: this.file_ids,\n title: title,\n is_announcement: this.isAnnouncement,\n admin_announcement_term: term.get(\"id\"),\n subscribed: !this.isAnnouncement\n };\n\n // Send out announcement to any marked sections\n this.postToSection(multiSections, recObject, pollObject);\n } else {\n this.set(\"uploadInProgress\", true);\n recObject = {\n // user: usr,\n date: date,\n message: message,\n title: title,\n is_announcement: this.isAnnouncement || this.isAdminAnnouncement,\n is_admin_announcement: this.isAdminAnnouncement,\n admin_announcement_term: term.get(\"id\")\n };\n\n // Send out announcement to any marked sections\n this.postToSection(multiSections, recObject, pollObject);\n }\n }),\n toggleSection: (0, _object.action)(function (sectionId) {\n var index = this.multiSections.indexOf(sectionId);\n if (index !== -1) {\n this.multiSections.removeObject(sectionId);\n } else {\n this.multiSections.pushObject(sectionId);\n }\n }),\n cancelNewDiscussion: (0, _object.action)(function () {\n window.history.back();\n })\n }));\n});","define(\"bocce/components/next-live-class\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n

    \n Next Live Class

    \n {{#if @upcomingLiveClass}}\n
    \n {{@upcomingLiveClass.event_start_at_formatted}}\n
    \n
    \n
    \n {{@upcomingLiveClass.course_name}}\n

    With\n {{@upcomingLiveClass.teacher_name}}\n

    \n
    \n {{#if @upcomingLiveClass.is_ongoing}}\n Join\n Live Class\n {{/if}}\n
    \n {{else}}\n
    \n

    No upcoming Live Classes

    \n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"pkJ8hIoy\",\n \"block\": \"[[[10,0],[14,0,\\\"dashboard-widget next-live-class-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"dashboard-widget__header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"live-class-clock far fa-video\\\"],[12],[13],[1,\\\"\\\\n Next Live Class\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"next-live-class-brief-time\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"event_start_at_formatted\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"next-live-class-moreinfo\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"next-live-class__course\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[15,6,[29,[[30,1,[\\\"url\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"next-live-class__course-title\\\"],[12],[1,[30,1,[\\\"course_name\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"next-live-class__course-instructor\\\"],[12],[1,\\\"With\\\\n \\\"],[1,[30,1,[\\\"teacher_name\\\"]]],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"contact-teacher\\\"],[4,[38,7],[\\\"click\\\",[28,[37,8],[[30,2],[30,1,[\\\"teacher_id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"is_ongoing\\\"]],[[[1,\\\" \\\"],[10,3],[15,6,[29,[[30,1,[\\\"url\\\"]]]]],[14,0,\\\"next-live-class__button\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"Join\\\\n Live Class\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"next-live-class__no-class\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"No upcoming Live Classes\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[13]],[\\\"@upcomingLiveClass\\\",\\\"@contactTeacher\\\"],[\\\"div\\\",\\\"h2\\\",\\\"i\\\",\\\"if\\\",\\\"a\\\",\\\"p\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/next-live-class.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"next-live-class\"));\n});","define(\"bocce/components/notification-item\", [\"exports\", \"@ember/component\", \"@ember/debug\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _debug, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @notification.avatar_url}}\n \n {{else}}\n
    \n
    \n
    \n {{/if}}\n
    \n
    {{@notification.user.short_name}}\n
    {{@notification.verbose_message}}\n
    \n \n */\n {\n \"id\": \"zTVcm21d\",\n \"block\": \"[[[41,[30,1,[\\\"avatar_url\\\"]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@user\\\",\\\"@suppressClick\\\"],[\\\"notification.user\\\",true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"portrait\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"icon \\\",[30,1,[\\\"type\\\"]]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[10,0],[14,0,\\\"notification-details\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"notification-link\\\"],[12],[1,[30,1,[\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,[30,1,[\\\"verbose_message\\\"]]],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"notification-dismiss\\\"],[24,\\\"aria-label\\\",\\\"Dismiss Notification\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"dismiss\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@notification\\\"],[\\\"if\\\",\\\"user-portrait\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/notification-item.hbs\",\n \"isStrictMode\": false\n });\n /*\n NotificationItem component\n \n * Requires a @notification property to be passed in by the template\n * On click, triggers the @action function (also passed in from template)\n * To make notifications dismissable, define @dismissAction in the parent\n template.\n */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"li\",\n classNames: [\"notification\"],\n attributeBindings: [\"role\", \"ariaLabel:aria-label\"],\n role: \"button\",\n ariaLabel: \"Go to selected notification\",\n click: (0, _object.action)(function () {\n var type = this.notification.type;\n var id = this.notification.notification_id;\n if (this.action) {\n this.action(type, id); // action defined by parent template\n } else {\n (0, _debug.debug)(\"click action is not supplied on NotificationItem\");\n }\n }),\n // @dismissAction must be defined in the parent!\n dismiss: (0, _object.action)(function () {\n if (this.dismissAction) {\n var id = this.notification.notification_id;\n this.dismissAction(id);\n } else {\n (0, _debug.debug)(\"dismissAction is not defined.\");\n }\n })\n }));\n});","define(\"bocce/components/polls/poll-drawer\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n Poll Choices\n
      \n {{#each @pollChoices as |pollChoice index|}}\n
    • \n
      \n
      \n \n
      {{pollChoice.remainingChars}}
      \n
      \n {{#if (morethan @pollChoices.length 2)}}\n \n {{/if}}\n
      \n
    • \n {{/each}}\n
    \n Add Another Poll Choice\n */\n {\n \"id\": \"gJ9ZTvk+\",\n \"block\": \"[[[10,1],[14,0,\\\"poll-drawer__title\\\"],[12],[1,\\\"Poll Choices\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"ul\\\"],[14,0,\\\"poll-drawer__option-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"poll-drawer__option\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"poll-drawer__option-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"poll-drawer__input-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],[[24,\\\"required\\\",\\\"true\\\"],[24,0,\\\"poll-drawer__option-text\\\"],[24,\\\"placeholder\\\",\\\"Poll option\\\"],[24,\\\"maxlength\\\",\\\"255\\\"]],[[\\\"@type\\\",\\\"@value\\\",\\\"@aria-required\\\"],[\\\"text\\\",[30,2,[\\\"text\\\"]],\\\"false\\\"]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"poll-drawer__word-count\\\"],[12],[1,[30,2,[\\\"remainingChars\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,1,[\\\"length\\\"]],2],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"poll-drawer__delete-button\\\"],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,4],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-trash-can\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[13],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[52,[28,[37,8],[[30,1,[\\\"length\\\"]],5],null],\\\"disabled\\\"]],[24,0,\\\"poll-drawer__add-button\\\"],[4,[38,10],[\\\"click\\\",[30,5]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-plus\\\"],[12],[13],[1,\\\"Add Another Poll Choice\\\"],[13]],[\\\"@pollChoices\\\",\\\"pollChoice\\\",\\\"index\\\",\\\"@clearPollChoice\\\",\\\"@addPollEntries\\\"],[\\\"span\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"div\\\",\\\"input\\\",\\\"if\\\",\\\"morethan\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/polls/poll-drawer.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n classNames: [\"poll-drawer\"]\n }));\n});","define(\"bocce/components/quiz-questions/essay\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"unCT5iJJ\",\n \"block\": \"[[[11,\\\"textarea\\\"],[24,0,\\\"quiz-question-choice\\\"],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,2,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-textarea\\\"]]],[16,3,[29,[\\\"quiz-\\\",[30,2,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[16,2,[29,[[30,1,[\\\"given_answer\\\"]]]]],[4,[38,1],[\\\"input\\\",[30,0,[\\\"setAnswer\\\"]]],null],[12],[13]],[\\\"@question\\\",\\\"@quiz\\\"],[\\\"textarea\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/essay.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n setAnswer: (0, _object.action)(function (event) {\n (0, _object.set)(this.question, \"given_answer\", event.target.value);\n })\n }));\n});","define(\"bocce/components/quiz-questions/multianswer\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each @question.answers as |answer indexA|}}\n \n \n
    {{letter indexA}}
    \n {{#unless\n (and\n @quizzes.isScoredTimedQuizWithRemainingAttempts\n (not (same @question.given_answer answer.id))\n )\n }}\n {{{answer.text}}}\n {{/unless}}\n \n {{/each}}\n */\n {\n \"id\": \"yR/kkrx5\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[28,[37,3],[[30,2,[\\\"id\\\"]],[30,1,[\\\"given_answer\\\"]]],null]],[16,0,[29,[\\\"question-choice-cb sr-only \\\",[52,[30,2,[\\\"correct\\\"]],\\\"correct\\\"]]]],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[16,3,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"changeAnswer\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-question-choice bootable-area\\\"],[15,\\\"choice-letter\\\",[29,[[28,[37,8],[[30,3]],null]]]],[15,\\\"for\\\",[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"letter\\\"],[12],[1,[28,[35,8],[[30,3]],null]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,11],[[30,5,[\\\"isScoredTimedQuizWithRemainingAttempts\\\"]],[28,[37,12],[[28,[37,13],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null]],null]],null]],[[[1,\\\" \\\"],[2,[30,2,[\\\"text\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null]],[\\\"@question\\\",\\\"answer\\\",\\\"indexA\\\",\\\"@quiz\\\",\\\"@quizzes\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"inarray\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"label\\\",\\\"letter\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"same\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/multianswer.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n if (!this.question.get(\"given_answer\")) {\n (0, _object.set)(this.question, \"given_answer\", []);\n }\n },\n changeAnswer: (0, _object.action)(function (answerId, event) {\n var givenAnswer = this.question.get(\"given_answer\");\n if (event.target.checked) {\n givenAnswer.push(answerId);\n } else {\n givenAnswer.splice(givenAnswer.indexOf(answerId), 1);\n }\n (0, _object.set)(this.question, \"given_answer\", _toConsumableArray(givenAnswer));\n })\n }));\n});","define(\"bocce/components/quiz-questions/multichoice\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! This is here to support archived quiz question types which have type of \"multichoice\" }}\n {{#each @question.answers as |answer indexA|}}\n \n \n
    {{letter indexA}}
    \n {{#unless\n (and\n @quizzes.isScoredTimedQuizWithRemainingAttempts\n (not (same @question.given_answer answer.id))\n )\n }}\n {{{answer.text}}}\n {{/unless}}\n \n {{/each}}\n */\n {\n \"id\": \"f+OOwWKa\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[28,[37,3],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null]],[16,0,[29,[\\\"question-choice-cb sr-only \\\",[52,[30,2,[\\\"correct\\\"]],\\\"correct\\\"]]]],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[16,3,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[24,4,\\\"radio\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"setAnswer\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-question-choice bootable-area\\\"],[15,\\\"choice-letter\\\",[29,[[28,[37,8],[[30,3]],null]]]],[15,\\\"for\\\",[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"letter\\\"],[12],[1,[28,[35,8],[[30,3]],null]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,11],[[30,5,[\\\"isScoredTimedQuizWithRemainingAttempts\\\"]],[28,[37,12],[[28,[37,3],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null]],null]],null]],[[[1,\\\" \\\"],[2,[30,2,[\\\"text\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null]],[\\\"@question\\\",\\\"answer\\\",\\\"indexA\\\",\\\"@quiz\\\",\\\"@quizzes\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"same\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"label\\\",\\\"letter\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/multichoice.hbs\",\n \"isStrictMode\": false\n });\n //This is here to support archived quiz question types which have type of \"multichoice\"\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n setAnswer: (0, _object.action)(function (answer) {\n (0, _object.set)(this.question, \"given_answer\", answer);\n })\n }));\n});","define(\"bocce/components/quiz-questions/multiple-answers\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each @question.answers as |answer indexA|}}\n \n \n
    {{letter indexA}}
    \n {{#unless\n (and\n @quizzes.isScoredTimedQuizWithRemainingAttempts\n (not (inarray answer.id @question.given_answer))\n )\n }}\n {{{answer.text}}}\n {{/unless}}\n \n {{/each}}\n */\n {\n \"id\": \"lBmrE2wj\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[28,[37,3],[[30,2,[\\\"id\\\"]],[30,1,[\\\"given_answer\\\"]]],null]],[16,0,[29,[\\\"question-choice-cb sr-only \\\",[52,[30,2,[\\\"correct\\\"]],\\\"correct\\\"]]]],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[16,3,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"changeAnswer\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-question-choice bootable-area\\\"],[15,\\\"choice-letter\\\",[29,[[28,[37,8],[[30,3]],null]]]],[15,\\\"for\\\",[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"letter\\\"],[12],[1,[28,[35,8],[[30,3]],null]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,11],[[30,5,[\\\"isScoredTimedQuizWithRemainingAttempts\\\"]],[28,[37,12],[[28,[37,3],[[30,2,[\\\"id\\\"]],[30,1,[\\\"given_answer\\\"]]],null]],null]],null]],[[[1,\\\" \\\"],[2,[30,2,[\\\"text\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null]],[\\\"@question\\\",\\\"answer\\\",\\\"indexA\\\",\\\"@quiz\\\",\\\"@quizzes\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"inarray\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"label\\\",\\\"letter\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/multiple-answers.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n if (!this.question.get(\"given_answer\")) {\n (0, _object.set)(this.question, \"given_answer\", []);\n }\n },\n changeAnswer: (0, _object.action)(function (answerId, event) {\n var givenAnswer = this.question.get(\"given_answer\");\n if (event.target.checked) {\n givenAnswer.push(answerId);\n } else {\n givenAnswer.splice(givenAnswer.indexOf(answerId), 1);\n }\n (0, _object.set)(this.question, \"given_answer\", _toConsumableArray(givenAnswer));\n })\n }));\n});","define(\"bocce/components/quiz-questions/multiple-choice\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each @question.answers as |answer indexA|}}\n \n \n
    {{letter indexA}}
    \n {{#unless\n (and\n @quizzes.isScoredTimedQuizWithRemainingAttempts\n (not (same @question.given_answer answer.id))\n )\n }}\n {{{answer.text}}}\n {{/unless}}\n \n {{/each}}\n */\n {\n \"id\": \"rkCErnz6\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[28,[37,3],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null]],[16,0,[29,[\\\"question-choice-cb sr-only \\\",[52,[30,2,[\\\"correct\\\"]],\\\"correct\\\"]]]],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[16,3,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[24,4,\\\"radio\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"setAnswer\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-question-choice bootable-area\\\"],[15,\\\"choice-letter\\\",[29,[[28,[37,8],[[30,3]],null]]]],[15,\\\"for\\\",[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"letter\\\"],[12],[1,[28,[35,8],[[30,3]],null]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,11],[[30,5,[\\\"isScoredTimedQuizWithRemainingAttempts\\\"]],[28,[37,12],[[28,[37,3],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null]],null]],null]],[[[1,\\\" \\\"],[2,[30,2,[\\\"text\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null]],[\\\"@question\\\",\\\"answer\\\",\\\"indexA\\\",\\\"@quiz\\\",\\\"@quizzes\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"same\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\",\\\"label\\\",\\\"letter\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/multiple-choice.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n setAnswer: (0, _object.action)(function (answer) {\n (0, _object.set)(this.question, \"given_answer\", answer);\n })\n }));\n});","define(\"bocce/components/quiz-questions/short-answer\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"p2U/8wad\",\n \"block\": \"[[[11,\\\"input\\\"],[24,0,\\\"quiz-question-choice\\\"],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,2,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-input\\\"]]],[16,3,[29,[\\\"quiz-\\\",[30,2,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[16,2,[29,[[30,1,[\\\"given_answer\\\"]]]]],[24,4,\\\"text\\\"],[4,[38,1],[\\\"input\\\",[30,0,[\\\"setAnswer\\\"]]],null],[12],[13]],[\\\"@question\\\",\\\"@quiz\\\"],[\\\"input\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/short-answer.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n setAnswer: (0, _object.action)(function (event) {\n (0, _object.set)(this.question, \"given_answer\", event.target.value);\n })\n }));\n});","define(\"bocce/components/quiz-questions/true-false\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each @question.answers as |answer indexA|}}\n \n \n
    {{letter indexA}}
    \n {{#unless\n (and\n @quizzes.isScoredTimedQuizWithRemainingAttempts\n (not (same @question.given_answer answer.id))\n )\n }}\n {{{answer.text}}}\n {{/unless}}\n \n {{/each}}\n */\n {\n \"id\": \"YDF8r53P\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[52,[28,[37,4],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null],\\\"true\\\"]],[16,0,[29,[\\\"question-choice-cb sr-only \\\",[52,[30,2,[\\\"correct\\\"]],\\\"correct\\\"]]]],[16,\\\"question-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[16,1,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[16,3,[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choices\\\"]]],[24,4,\\\"radio\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"setAnswer\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"quiz-question-choice bootable-area\\\"],[15,\\\"choice-letter\\\",[29,[[28,[37,8],[[30,3]],null]]]],[15,\\\"for\\\",[29,[\\\"quiz-\\\",[30,4,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-choice-\\\",[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"letter\\\"],[12],[1,[28,[35,8],[[30,3]],null]],[13],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,11],[[30,5,[\\\"isScoredTimedQuizWithRemainingAttempts\\\"]],[28,[37,12],[[28,[37,4],[[30,1,[\\\"given_answer\\\"]],[30,2,[\\\"id\\\"]]],null]],null]],null]],[[[1,\\\" \\\"],[2,[30,2,[\\\"text\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2,3]],null]],[\\\"@question\\\",\\\"answer\\\",\\\"indexA\\\",\\\"@quiz\\\",\\\"@quizzes\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"input\\\",\\\"if\\\",\\\"same\\\",\\\"on\\\",\\\"fn\\\",\\\"label\\\",\\\"letter\\\",\\\"div\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-questions/true-false.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n setAnswer: (0, _object.action)(function (answer) {\n (0, _object.set)(this.question, \"given_answer\", answer);\n })\n }));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/rubric/ungraded\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@ember/service\", \"jquery\", \"@ember/runloop\", \"@glimmer/tracking\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _service, _jquery, _runloop, _tracking, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"jquery\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if (not (same @submission.teacher_requires_resubmission \"needs_resubmit\"))}}\n
    \n Assignment Grader{{#if (not @submission.grade_matches_current_submission)}}\n (New Attempt){{/if}}\n
    \n {{else}}\n
    \n
    \n \n Resubmit Requested\n
    \n
    \n The student has been notified to submit a new attempt.\n
    \n
    \n {{/if}}\n
    \n {{#unless (same @submission.teacher_requires_resubmission \"needs_resubmit\")}}\n \n {{/unless}}\n \n
    \n
    \n {{#if (morethan @submissionHistory.length 1)}}\n {{#if @submissionHistory.firstObject.grade_matches_current_submission}}\n
    \n \n
    View previous attempt (Graded:\n {{@submissionHistory.firstObject.percentage}}%)
    \n
    \n {{else}}\n
    \n \n
    Resubmit request completed.
    \n
    \n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"2So225+H\",\n \"block\": \"[[[10,0],[14,0,\\\"grading-rubric-ungraded\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,2],[[28,[37,3],[[30,1,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-ungraded-heading\\\"],[12],[1,\\\"\\\\n Assignment Grader\\\"],[41,[28,[37,2],[[30,1,[\\\"grade_matches_current_submission\\\"]]],null],[[[1,\\\"\\\\n (New Attempt)\\\"]],[]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-ungraded-resubmit-requested\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fas fa-repeat\\\"],[12],[13],[1,\\\"\\\\n Resubmit Requested\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-italic\\\"],[12],[1,\\\"\\\\n The student has been notified to submit a new attempt.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-ungraded-actions-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,3],[[30,1,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--black-ghost button-md\\\"],[4,[38,7],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fas fa-repeat\\\"],[12],[13],[1,\\\"\\\\n Request Resubmit\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--black button-md\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"startGrading\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasSavedRubricAssessments\\\"]],[[[1,\\\" Resume\\\\n\\\"]],[]],[[[1,\\\" Start\\\\n\\\"]],[]]],[1,\\\" Grading\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,3,[\\\"length\\\"]],1],null],[[[41,[30,3,[\\\"firstObject\\\",\\\"grade_matches_current_submission\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-ungraded-view-previous-attempt\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fas fa-repeat\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,0],[4,[38,7],[\\\"click\\\",[30,0,[\\\"viewPreviousAttempt\\\"]]],null],[12],[1,\\\"View previous attempt (Graded:\\\\n \\\"],[1,[30,3,[\\\"firstObject\\\",\\\"percentage\\\"]]],[1,\\\"%)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grading-rubric-ungraded-resubmit-request-completed\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fas fa-repeat\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Resubmit request completed.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[\\\"@submission\\\",\\\"@requestResubmit\\\",\\\"@submissionHistory\\\"],[\\\"div\\\",\\\"if\\\",\\\"not\\\",\\\"same\\\",\\\"i\\\",\\\"unless\\\",\\\"button\\\",\\\"on\\\",\\\"morethan\\\"]]\",\n \"moduleName\": \"bocce/components/rubric/ungraded.hbs\",\n \"isStrictMode\": false\n });\n var RubricUngraded = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function RubricUngraded() {\n var _this;\n _classCallCheck(this, RubricUngraded);\n _this = _callSuper(this, RubricUngraded, arguments);\n _initializerDefineProperty(_this, \"rubric\", _descriptor, _this);\n _initializerDefineProperty(_this, \"hasSavedRubricAssessments\", _descriptor2, _this);\n var gradingId = \"\".concat(_this.args.submission.get(\"db_id\"), \"_\").concat(_this.args.submission.get(\"attempt\"));\n _this.hasSavedRubricAssessments = !!localStorage.getItem(\"rubric_assessments_\".concat(gradingId));\n return _this;\n }\n _inherits(RubricUngraded, _Component);\n return _createClass(RubricUngraded, [{\n key: \"viewPreviousAttempt\",\n value: function viewPreviousAttempt() {\n //I don't like this. But the alternative seemed to be a non-trivial solution that might not\n //have been worth the effort.\n (0, _jquery.default)(\".assignment-version label\")[0].click();\n (0, _jquery.default)(\".assignment-version label\")[0].scrollIntoView();\n }\n }, {\n key: \"startGrading\",\n value: function startGrading() {\n this.rubric.toggleIsGrading();\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n (0, _jquery.default)(\".grading-rubric-grading\")[0].scrollIntoView();\n });\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"rubric\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasSavedRubricAssessments\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"viewPreviousAttempt\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewPreviousAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startGrading\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startGrading\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, RubricUngraded);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/screen-reader-announcer\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! app/components/screen-reader-announcer.hbs }}\n
    \n {{this.accessibility.politeMessage}}
    \n {{this.accessibility.assertiveMessage}}\n \n */\n {\n \"id\": \"j4kUI057\",\n \"block\": \"[[[10,0],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"status\\\"],[14,\\\"aria-atomic\\\",\\\"true\\\"],[14,0,\\\"sr-announcer sr-announcer--polite\\\"],[12],[1,[30,0,[\\\"accessibility\\\",\\\"politeMessage\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-live\\\",\\\"assertive\\\"],[14,\\\"role\\\",\\\"alert\\\"],[14,\\\"aria-atomic\\\",\\\"true\\\"],[14,0,\\\"sr-announcer sr-announcer--assertive\\\"],[12],[1,[30,0,[\\\"accessibility\\\",\\\"assertiveMessage\\\"]]],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\"]]\",\n \"moduleName\": \"bocce/components/screen-reader-announcer.hbs\",\n \"isStrictMode\": false\n });\n // app/components/screen-reader-announcer.js\n var ScreenReaderAnnouncerComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function ScreenReaderAnnouncerComponent() {\n var _this;\n _classCallCheck(this, ScreenReaderAnnouncerComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ScreenReaderAnnouncerComponent, [].concat(args));\n _initializerDefineProperty(_this, \"accessibility\", _descriptor, _this);\n return _this;\n }\n _inherits(ScreenReaderAnnouncerComponent, _Component);\n return _createClass(ScreenReaderAnnouncerComponent);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"accessibility\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, ScreenReaderAnnouncerComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-nav\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _service, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.session.course.isExam}}\n
    \n {{/unless}}\n */\n {\n \"id\": \"pjp25FRf\",\n \"block\": \"[[[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],[[[1,\\\" \\\"],[10,\\\"nav\\\"],[15,0,[29,[\\\"side-nav \\\",[52,[30,1],\\\"side-nav--open\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"sr-only first-time-sr-guide\\\"],[14,\\\"aria-label\\\",\\\"First Time ScreenReader Guide\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,1,\\\"first-time-sr-guide-label\\\"],[12],[1,\\\"Welcome to Berklee Online!\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"We are excited to have you join our online learning environment!\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Press SHIFT+Question Mark to read out the navigation keyboard shortcuts.\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Please report any issues to support@online.berklee.edu\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"side-nav__panel-selectors\\\"],[14,\\\"role\\\",\\\"tablist\\\"],[14,\\\"aria-label\\\",\\\"Side Panels\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,7],null,[[\\\"@route\\\",\\\"@models\\\"],[\\\"classroom.lessons\\\",[28,[37,8],[-1,-1],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@panelName\\\"],[\\\"Syllabus\\\",\\\"syllabus\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-book-open\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Syllabus\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\\n\\\"],[41,[30,2,[\\\"section\\\",\\\"number\\\"]],[[[41,[30,2,[\\\"course\\\",\\\"isPublic\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@notificationCount\\\",\\\"@label\\\",\\\"@panelName\\\",\\\"@disabled\\\"],[0,\\\"Activity\\\",\\\"activity\\\",true]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-bell\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Activity\\\\n \\\"],[13]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@notificationCount\\\",\\\"@label\\\",\\\"@panelName\\\",\\\"@disabled\\\"],[0,\\\"Work\\\",\\\"work\\\",true]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Work\\\\n \\\"],[13]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@notificationCount\\\",\\\"@label\\\",\\\"@panelName\\\",\\\"@disabled\\\"],[0,\\\"Live\\\",\\\"chat\\\",true]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Live\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@notificationCount\\\",\\\"@label\\\",\\\"@panelName\\\",\\\"@disabled\\\"],[0,\\\"Roster\\\",\\\"course\\\",true]],[[\\\"default\\\"],[[[[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-user-magnifying-glass\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Roster\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"course\\\",\\\"isInteractive\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@route\\\"],[\\\"classroom.activity\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@notificationCount\\\",\\\"@label\\\",\\\"@panelName\\\",\\\"@srOnlyText\\\"],[[30,3,[\\\"length\\\"]],\\\"Activity\\\",\\\"activity\\\",\\\"{{@unreadActivities.length}} New items.\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-bell\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Activity\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Panel. \\\"],[1,[30,3,[\\\"length\\\"]]],[1,\\\" New items.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[51,[30,2,[\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@route\\\"],[\\\"classroom.work\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@panelName\\\",\\\"@notificationCount\\\"],[\\\"Work\\\",\\\"work\\\",[30,4,[\\\"length\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Work\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Panel. \\\"],[1,[30,4,[\\\"length\\\"]]],[1,\\\" New items.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,2,[\\\"isSimplifiedTerm\\\"]]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@route\\\"],[\\\"classroom.live\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@notificationCount\\\",\\\"@label\\\",\\\"@panelName\\\"],[[52,[30,2,[\\\"anyChatsRunning\\\"]],\\\"!\\\",0],\\\"Live\\\",\\\"chat\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon far fa-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Live\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Zoom classes.\\\\n \\\"],[1,[52,[30,2,[\\\"anyChatsRunning\\\"]],\\\"Live Class Running. Press SHIFT+L to browse live classes.\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showRoster\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@route\\\"],[\\\"classroom.roster\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@panelName\\\"],[\\\"Roster\\\",\\\"roster\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-user-magnifying-glass\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Roster\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showShowcase\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@onClick\\\"],[\\\"Showcase\\\",[30,0,[\\\"viewShowcase\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-trophy\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Showcase\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showGrades\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@route\\\"],[\\\"classroom.grades\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@label\\\",\\\"@panelName\\\"],[\\\"Grades\\\",\\\"grades\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-badge-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Grades\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showForum\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@onClick\\\",\\\"@label\\\"],[[30,0,[\\\"viewDiscourse\\\"]],\\\"Forum\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fas fa-users\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Forum\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showSurveys\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@onClick\\\",\\\"@label\\\"],[[30,5],[29,[[52,[51,[30,6]],\\\"Survey results unavailable until final grades are submitted\\\",\\\"View Survey results\\\"]]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fas fa-chart-bar\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Surveys\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[41,[30,0,[\\\"showFeedback\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@onClick\\\",\\\"@label\\\"],[[30,7],\\\"Send Feedback\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-flag-alt\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Feedback\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showAdmin\\\"]],[[[1,\\\" \\\"],[8,[39,7],null,[[\\\"@route\\\"],[\\\"classroom.admin.cache\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@label\\\"],[\\\"Administrative Panel\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-cogs\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Admin\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"side-nav__extras\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button\\\"],[4,[38,13],[\\\"click\\\",[30,8]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-piano-keyboard\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"showBob\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button\\\"],[4,[38,13],[\\\"click\\\",[30,9]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-layers fa-fw side-nav__bob-icon\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-message-dot\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-solid fa-sparkle fa-inverse\\\"],[14,\\\"data-fa-transform\\\",\\\"shrink-8 up-6 right-7\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@sideNavVisible\\\",\\\"@session\\\",\\\"@unreadActivities\\\",\\\"@incompleteWork\\\",\\\"@viewSurveyResults\\\",\\\"@teacherCanSeeSurveys\\\",\\\"@sendFeedback\\\",\\\"@togglePiano\\\",\\\"@openBob\\\"],[\\\"unless\\\",\\\"nav\\\",\\\"if\\\",\\\"div\\\",\\\"h2\\\",\\\"p\\\",\\\"ul\\\",\\\"link-to\\\",\\\"array\\\",\\\"side-nav/toolbar-button\\\",\\\"i\\\",\\\"span\\\",\\\"button\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/components/side-nav.hbs\",\n \"isStrictMode\": false\n });\n var SideNavComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function SideNavComponent() {\n var _this;\n _classCallCheck(this, SideNavComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, SideNavComponent, [].concat(args));\n _initializerDefineProperty(_this, \"router\", _descriptor, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"toolsMenuOpen\", _descriptor4, _this);\n _defineProperty(_this, \"surveyLabel\", \"Survey\");\n return _this;\n }\n _inherits(SideNavComponent, _Component);\n return _createClass(SideNavComponent, [{\n key: \"viewShowcase\",\n value: function viewShowcase() {\n /* eslint-disable-next-line ember/no-get */\n var showcaseCourseID = this.args.session.section.showcase_course_id;\n window.open(\"/#/\" + showcaseCourseID + \"/\", \"_blank\");\n }\n }, {\n key: \"viewDiscourse\",\n value: function viewDiscourse() {\n var discourseURL = this.args.session.discourseUrl;\n window.open(discourseURL, \"_blank\");\n }\n }, {\n key: \"sendFeedback\",\n value: function sendFeedback() {\n // opens a form where the user can send feedback, which opens a Salesforce case.\n /* eslint-disable-next-line ember/no-get */\n var userEmail = this.args.session.user.get(\"email\");\n window.open(\"https://online.berklee.edu/form_assembly?id=4708322&URLemail=\".concat(userEmail), \"_blank\");\n }\n }, {\n key: \"openSettingsPanel\",\n value: function openSettingsPanel() {\n this.session.set(\"panel\", \"settings\");\n }\n }, {\n key: \"unreadInboxCount\",\n get: function get() {\n return this.store.peekAll(\"conversation\").filter(function (c) {\n return c.active && c.workflow_state === \"unread\";\n }).length;\n }\n }, {\n key: \"openInbox\",\n value: function openInbox() {\n window.open(\"/#/dashboard?nav=inbox\", \"_blank\");\n }\n }, {\n key: \"isDYS\",\n get: function get() {\n var _this$session$course;\n return !!((_this$session$course = this.session.course) !== null && _this$session$course !== void 0 && _this$session$course.isDYS);\n }\n }, {\n key: \"showRoster\",\n get: function get() {\n if (this.session.isInstructor || this.session.isAdminOrStaff) return true;\n return !this.session.isLimitedStudentTerm && !this.isDYS;\n }\n }, {\n key: \"showShowcase\",\n get: function get() {\n var _this$session$section;\n if (!!((_this$session$section = this.session.section) !== null && _this$session$section !== void 0 && _this$session$section.showcase_course_id)) {\n if (this.session.isInstructor || this.session.isAdminOrStaff) return true;\n return !this.session.isLimitedStudentTerm && !this.isDYS;\n }\n }\n }, {\n key: \"showGrades\",\n get: function get() {\n return !this.session.isStaticContent && (this.session.isInstructor || this.session.isAdminOrStaff);\n }\n }, {\n key: \"showForum\",\n get: function get() {\n return !this.session.isStaticContent && !this.session.isLimitedStudentTerm && !!this.args.hasDiscourse;\n }\n }, {\n key: \"showSurveys\",\n get: function get() {\n return !this.session.isStaticContent && !this.session.isLimitedStudentTerm && this.session.isInstructor;\n }\n }, {\n key: \"showFeedback\",\n get: function get() {\n return !this.session.isLimitedStudentTerm && !this.session.isStaticContent && !this.isDYS;\n }\n }, {\n key: \"showAdmin\",\n get: function get() {\n return !this.session.isStaticContent && this.session.isStaff;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"toolsMenuOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"viewShowcase\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewShowcase\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewDiscourse\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"viewDiscourse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"sendFeedback\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"sendFeedback\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSettingsPanel\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSettingsPanel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openInbox\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openInbox\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, SideNavComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-nav/toolbar-button\", [\"exports\", \"@glimmer/component\", \"@ember/routing\", \"@ember/modifier\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/helper\", \"@ember/service\", \"bocce/helpers/eq\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _routing, _modifier, _object, _tracking, _helper, _service, _eq, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _ToolbarButton;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/routing\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/helper\",0,\"@ember/service\",0,\"bocce/helpers/eq\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ToolbarButton = _exports.default = (_class = (_ToolbarButton = /*#__PURE__*/function (_Component) {\n function ToolbarButton(owner, args) {\n var _this;\n _classCallCheck(this, ToolbarButton);\n _this = _callSuper(this, ToolbarButton, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"transition\", _descriptor2, _this);\n _this.boundOnClick = _this.onClick.bind(_this);\n return _this;\n }\n _inherits(ToolbarButton, _Component);\n return _createClass(ToolbarButton, [{\n key: \"onClick\",\n value: function onClick(event) {\n var _this$args$onClick, _this$args;\n if (this.args.disabled) {\n event.preventDefault();\n return;\n }\n (_this$args$onClick = (_this$args = this.args).onClick) === null || _this$args$onClick === void 0 || _this$args$onClick.call(_this$args);\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if @notificationCount}}\n
    {{@notificationCount}}
    \n {{/if}}\n {{yield}}\n \n */\n {\n \"id\": \"DZdY8ba/\",\n \"block\": \"[[[11,\\\"li\\\"],[24,\\\"role\\\",\\\"tab\\\"],[16,0,[29,[\\\"toolbar-button\\\\n \\\",[52,[28,[32,0],[[30,0,[\\\"session\\\",\\\"panel\\\"]],[30,1]],null],\\\"toolbar-button--active\\\"],\\\"\\\\n \\\",[52,[30,2],\\\"disabled\\\"]]]],[16,\\\"aria-label\\\",[30,3]],[4,[32,1],[\\\"click\\\",[30,0,[\\\"boundOnClick\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,4],[[[1,\\\" \\\"],[10,0],[14,0,\\\"toolbar-button__notification\\\"],[12],[1,[30,4]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[18,5,null],[1,\\\"\\\\n\\\"],[13]],[\\\"@panelName\\\",\\\"@disabled\\\",\\\"@label\\\",\\\"@notificationCount\\\",\\\"&default\\\"],[\\\"if\\\",\\\"yield\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-nav/toolbar-button.js\",\n \"scope\": function scope() {\n return [_eq.default, _modifier.on];\n },\n \"isStrictMode\": true\n }), _ToolbarButton), _ToolbarButton), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"transition\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"bocce/models/discussion\", \"bocce/models/assignment\", \"bocce/models/quiz\", \"bocce/utils/layout\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _tracking, _object, _discussion, _assignment, _quiz, _layout, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"bocce/models/discussion\",0,\"bocce/models/assignment\",0,\"bocce/models/quiz\",0,\"bocce/utils/layout\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.session.course.isExam}}\n \n {{#if (eq this.session.panel \"syllabus\")}}\n \n \n {{else if (eq this.session.panel \"activity\")}}\n \n \n {{else if (eq this.session.panel \"work\")}}\n \n \n {{else if (eq this.session.panel \"chat\")}}\n \n \n {{else if\n (and\n (eq this.session.panel \"roster\")\n (or (not this.session.course.isDYS) this.session.isInstructor this.session.isAdminOrStaff)\n )\n }}\n \n \n {{else if (eq this.session.panel \"conversations\")}}\n \n \n {{else if (eq this.session.panel \"settings\")}}\n \n {{/if}}\n \n {{/unless}}\n */\n {\n \"id\": \"X2Y1lTov\",\n \"block\": \"[[[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],[[[1,\\\" \\\"],[11,0],[16,0,[29,[\\\"side-panel \\\",[52,[30,1],\\\"side-panel--open\\\"]]]],[24,\\\"role\\\",\\\"region\\\"],[24,\\\"aria-labelledby\\\",\\\"panel-filters-title\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"clickingLinkClosesSideNav\\\"]]],null],[4,[38,4],[[30,0,[\\\"clearFilters\\\"]],[30,0,[\\\"session\\\",\\\"panel\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"syllabus\\\"],null],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@panelTitle\\\",\\\"@toggleFilter\\\",\\\"@activeFilters\\\",\\\"@filters\\\",\\\"@search\\\",\\\"@searchValue\\\"],[\\\"Syllabus\\\",[30,0,[\\\"toggleFilter\\\"]],[30,0,[\\\"activeFilters\\\"]],[28,[37,7],[\\\"Unread\\\",\\\"Assignments\\\",\\\"Discussions\\\",\\\"Quizzes\\\",\\\"Exercises\\\"],null],[30,0,[\\\"search\\\"]],[30,0,[\\\"searchValue\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,8],null,[[\\\"@model\\\",\\\"@syllabusTransport\\\",\\\"@viewModal\\\",\\\"@shortcutsDrawerLabel\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[[30,2],[30,3],[30,4],[30,5],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"searchValue\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"activity\\\"],null],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@panelTitle\\\",\\\"@toggleFilter\\\",\\\"@activeFilters\\\",\\\"@filters\\\",\\\"@filterCounts\\\",\\\"@search\\\",\\\"@searchValue\\\"],[\\\"Activity\\\",[30,0,[\\\"toggleFilter\\\"]],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"activityFilters\\\"]],[30,0,[\\\"activityFilterCounts\\\"]],[30,0,[\\\"search\\\"]],[30,0,[\\\"searchValue\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@iSubmitted\\\",\\\"@lastWeek\\\",\\\"@declineAdviceCardSubmission\\\",\\\"@submitAdviceCardPrompt\\\",\\\"@adviceCardsURL\\\",\\\"@newAdviceCards\\\",\\\"@showAdviceCardPage\\\",\\\"@assignments\\\",\\\"@discussions\\\",\\\"@loading\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[28,[37,10],[[30,12],true],null],[30,13],[30,14],[30,15],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"searchValue\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"work\\\"],null],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@panelTitle\\\",\\\"@filters\\\",\\\"@filterCounts\\\",\\\"@toggleFilter\\\",\\\"@activeFilters\\\",\\\"@search\\\",\\\"@searchValue\\\",\\\"@showLateGradingPolicy\\\"],[\\\"Work\\\",[30,0,[\\\"workFilters\\\"]],[30,0,[\\\"workFilterCounts\\\"]],[30,0,[\\\"toggleFilter\\\"]],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"search\\\"]],[30,0,[\\\"searchValue\\\"]],true]],null],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@loading\\\",\\\"@iSubmitted\\\",\\\"@lastWeek\\\",\\\"@declineAdviceCardSubmission\\\",\\\"@showAdviceCardPage\\\",\\\"@submitAdviceCardPrompt\\\",\\\"@adviceCardsURL\\\",\\\"@assignments\\\",\\\"@discussions\\\",\\\"@quizzes\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[[30,16],[30,6],[30,7],[30,8],[28,[37,10],[[30,12],true],null],[30,9],[30,10],[30,13],[30,17],[30,18],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"searchValue\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"chat\\\"],null],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@panelTitle\\\",\\\"@toggleFilter\\\",\\\"@activeFilters\\\",\\\"@search\\\",\\\"@toggleFilter\\\",\\\"@filters\\\",\\\"@searchValue\\\",\\\"@sort\\\",\\\"@sorting\\\"],[\\\"Live\\\",[30,0,[\\\"toggleFilter\\\"]],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"search\\\"]],[30,0,[\\\"toggleFilter\\\"]],[28,[37,7],[\\\"New\\\",\\\"Watched\\\"],null],[30,0,[\\\"searchValue\\\"]],[30,0,[\\\"toggleSort\\\"]],[30,0,[\\\"sorting\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,12],null,[[\\\"@eventsLoaded\\\",\\\"@eventsModel\\\",\\\"@otherCurrentTermSections\\\",\\\"@userSectionCodes\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\",\\\"@sorting\\\"],[[30,19],[30,20],[30,21],[30,22],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"searchValue\\\"]],[30,0,[\\\"sorting\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,13],[[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"roster\\\"],null],[28,[37,14],[[28,[37,15],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isDYS\\\"]]],null],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"session\\\",\\\"isAdminOrStaff\\\"]]],null]],null],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@panelTitle\\\",\\\"@toggleFilter\\\",\\\"@activeFilters\\\",\\\"@search\\\",\\\"@searchValue\\\",\\\"@filters\\\"],[\\\"Roster\\\",[30,0,[\\\"toggleFilter\\\"]],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"search\\\"]],[30,0,[\\\"searchValue\\\"]],[30,0,[\\\"rosterFilters\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,16],null,[[\\\"@model\\\",\\\"@searchValue\\\",\\\"@activeFilters\\\"],[[30,2],[30,0,[\\\"searchValue\\\"]],[30,0,[\\\"activeFilters\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"conversations\\\"],null],[[[1,\\\" \\\"],[8,[39,6],null,[[\\\"@panelTitle\\\",\\\"@toggleFilter\\\",\\\"@activeFilters\\\",\\\"@search\\\",\\\"@searchValue\\\"],[\\\"Inbox\\\",[30,0,[\\\"toggleFilter\\\"]],[30,0,[\\\"activeFilters\\\"]],[30,0,[\\\"search\\\"]],[30,0,[\\\"searchValue\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,17],null,[[\\\"@conversationsLoaded\\\",\\\"@model\\\"],[[30,23],[30,24]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,5],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"settings\\\"],null],[[[1,\\\" \\\"],[8,[39,18],null,[[\\\"@openPrefsPanel\\\"],[[30,25]]],null],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@sideNavVisible\\\",\\\"@model\\\",\\\"@syllabusTransport\\\",\\\"@viewModal\\\",\\\"@shortcutsDrawerLabel\\\",\\\"@iSubmitted\\\",\\\"@isLastWeekOfCourse\\\",\\\"@declineAdviceCardSubmission\\\",\\\"@submitAdviceCardPrompt\\\",\\\"@adviceCardsURL\\\",\\\"@newAdviceCards\\\",\\\"@viewAdviceCards\\\",\\\"@courseAssignments\\\",\\\"@courseDiscussions\\\",\\\"@activityContentLoading\\\",\\\"@workContentLoading\\\",\\\"@courseRequiredDiscussions\\\",\\\"@courseQuizzes\\\",\\\"@eventsLoaded\\\",\\\"@eventsModel\\\",\\\"@otherCurrentTermSections\\\",\\\"@userSectionCodes\\\",\\\"@conversationsLoaded\\\",\\\"@conversationsModel\\\",\\\"@openPrefsPanel\\\"],[\\\"unless\\\",\\\"div\\\",\\\"if\\\",\\\"on\\\",\\\"did-update\\\",\\\"eq\\\",\\\"side-panel/panel-filters\\\",\\\"array\\\",\\\"side-panel/syllabus\\\",\\\"side-panel/activity\\\",\\\"fn\\\",\\\"side-panel/work\\\",\\\"side-panel/events\\\",\\\"and\\\",\\\"or\\\",\\\"not\\\",\\\"classlist\\\",\\\"conversations\\\",\\\"side-panel/settings\\\"]]\",\n \"moduleName\": \"bocce/components/side-panel.hbs\",\n \"isStrictMode\": false\n });\n var SidePanel = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function SidePanel(owner, args) {\n var _this;\n _classCallCheck(this, SidePanel);\n _this = _callSuper(this, SidePanel, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"searchValue\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"sorting\", _descriptor3, _this);\n //Note: not using TrackedArray b/c classic components do not react to changes properly\n _initializerDefineProperty(_this, \"activeFilters\", _descriptor4, _this);\n _this.syncFiltersToSession();\n return _this;\n }\n\n // The activity-panel assignment route opens the first ungraded submission\n // when the \"Ungraded\" filter is active, but activeFilters is component-local.\n // Mirror it onto the session singleton (which the route can reach) whenever\n // it changes so the route can see which filters are active.\n _inherits(SidePanel, _Component);\n return _createClass(SidePanel, [{\n key: \"syncFiltersToSession\",\n value: function syncFiltersToSession() {\n this.session.set(\"activeFilters\", this.activeFilters);\n }\n }, {\n key: \"clickingLinkClosesSideNav\",\n value: function clickingLinkClosesSideNav(e) {\n // Only auto-close when the panel is an overlay drawer. In wide mode the\n // panel is docked and shares its open state with the hamburger, so\n // collapsing it on every item click would yank it out from under the user.\n if (e.target.closest(\"a\") && (0, _layout.isNarrowLayout)()) {\n var _this$args$closePanel, _this$args;\n (_this$args$closePanel = (_this$args = this.args).closePanel) === null || _this$args$closePanel === void 0 || _this$args$closePanel.call(_this$args);\n }\n }\n }, {\n key: \"toggleSort\",\n value: function toggleSort() {\n this.sorting = !this.sorting;\n }\n }, {\n key: \"toggleFilter\",\n value: function toggleFilter(filter) {\n var lowercaseFilter = filter.toLowerCase();\n var index = this.activeFilters.indexOf(lowercaseFilter);\n if (index !== -1) {\n this.activeFilters = this.activeFilters.filter(function (f) {\n return f !== lowercaseFilter;\n });\n } else {\n this.activeFilters = [].concat(_toConsumableArray(this.activeFilters), [lowercaseFilter]);\n }\n this.syncFiltersToSession();\n }\n }, {\n key: \"clearFilters\",\n value: function clearFilters() {\n this.activeFilters = [];\n this.searchValue = \"\";\n this.sorting = false;\n this.syncFiltersToSession();\n }\n }, {\n key: \"search\",\n value: function search(value) {\n this.searchValue = value;\n }\n\n //only show roster filters for instructors\n }, {\n key: \"rosterFilters\",\n get: function get() {\n if (this.session.isInstructor) {\n return [\"Degree Student\", \"Accommodation\", \"Enrolled Late\"];\n } else {\n return [];\n }\n }\n }, {\n key: \"activityFilters\",\n get: function get() {\n // The two roles get different filters. \"Ungraded\" surfaces assignments\n // awaiting grading — instructor-only. \"Incomplete\" (item.todo) keys off the\n // current user's own submission, so it's a student \"my unfinished work\"\n // concept; instructors never submit, so it would match every assignment and\n // is omitted for them.\n if (this.session.isInstructor) {\n return [\"Announcements\", \"Ungraded\", \"User Discussions\", \"Unread\", \"Work\", \"Assignments\"];\n }\n return [\"Announcements\", \"User Discussions\", \"Unread\", \"Incomplete\", \"Work\", \"Assignments\"];\n }\n }, {\n key: \"workFilters\",\n get: function get() {\n return [\"Unread\", \"Incomplete\", \"Assignments\", \"Discussions\", \"Quizzes\", \"Exercises\"];\n }\n\n // Mirrors components/side-panel/activity.js, which builds the Activity list\n // from unlocked discussions plus assignments and then narrows it with the\n // chip filters (matchingFilter). We reproduce the same base set here so each\n // chip badge counts only items the list can actually show — locked\n // discussions (lessons the student can't access yet) are excluded, matching\n // discussionsArray. Assignments have no locked/availability flag, so the list\n // includes them all and so do we. Keep in sync with activity.js.\n }, {\n key: \"activityItems\",\n get: function get() {\n var discussions = (this.args.courseDiscussions || []).filter(function (d) {\n return !d.locked;\n });\n var assignments = this.args.courseAssignments || [];\n return [].concat(_toConsumableArray(discussions), _toConsumableArray(assignments));\n }\n }, {\n key: \"workItems\",\n get: function get() {\n var discussions = (this.args.courseDiscussions || []).filter(function (d) {\n return !d.locked;\n });\n var assignments = this.args.courseAssignments || [];\n var quizzes = this.args.courseQuizzes || [];\n return [].concat(_toConsumableArray(discussions), _toConsumableArray(assignments), _toConsumableArray(quizzes));\n }\n\n // The shared gate for every chip badge: an item is \"noteworthy\" when it's a\n // discussion/announcement with unread messages (unread === hasUnreadResponses:\n // unopened, or opened with new replies), a quiz with no attempts, or an assignment needing the user's\n // attention. Each chip narrows this further via filterCategoryMatches -- in\n // particular the \"unread\" chip excludes unsubmitted student work, so this\n // stays broad to keep the Incomplete/Work badges counting. Keys off `unread`\n // (not `read`) so the badge agrees with the displayed list and the side-nav\n // bubble, which also count threads with new replies.\n }, {\n key: \"isUnreadContribution\",\n value: function isUnreadContribution(item) {\n return item.unread === true || (this.session.isInstructor ? item.needsTeacherAttention : item.needsStudentAttention) || item instanceof _quiz.default && item.todo;\n }\n\n // True when an unread item belongs to a filter's category. Mirrors the per-filter\n // logic in components/side-panel/activity.js#matchingFilter and components/side-panel/activity.js#matchingFilter\n // so the chip counts agree with what each filter shows. \"unread\" spans the whole\n // set, so every unread item counts toward it.\n }, {\n key: \"filterCategoryMatches\",\n value: function filterCategoryMatches(item, filter) {\n switch (filter) {\n case \"announcements\":\n return item.is_announcement;\n case \"assignments\":\n return item instanceof _assignment.default;\n case \"ungraded\":\n return item.hasUngradedSubmission;\n case \"discussions\":\n return item instanceof _discussion.default && !item.title.toLowerCase().includes(\"exercise\");\n case \"exercises\":\n return item.title.toLowerCase().includes(\"exercise\");\n case \"user discussions\":\n return item instanceof _discussion.default && !item.is_required && !item.is_announcement && !item.is_admin_announcement;\n case \"work\":\n return Boolean(item.due_at);\n case \"incomplete\":\n // Assignments and required discussions the student hasn't completed.\n // Conversations, announcements, and other types never count.\n return item instanceof _assignment.default && Boolean(item.todo) || item instanceof _discussion.default && item.is_required && !item.is_announcement && Boolean(item.todo);\n case \"new\":\n {\n var lastWeek = new Date();\n lastWeek.setDate(lastWeek.getDate() - 7);\n return item.sortDate > lastWeek;\n }\n case \"unread\":\n // The Unread badge counts genuinely unread items only: a discussion with\n // unread messages (unopened or with new replies) or, for students, an\n // assignment with unread feedback on their own submission. Unsubmitted\n // work belongs to the Incomplete chip. Instructors keep the broader gate.\n return this.session.isInstructor || item.isStudentUnread || item.unread === true;\n case \"quizzes\":\n return item instanceof _quiz.default;\n default:\n return false;\n }\n }\n\n // How many unread items each Activity filter contributes, keyed by chip label\n // for direct template lookup. Counts intentionally overlap (an unread\n // announcement counts under both \"Announcements\" and \"Unread\"), so they don't\n // sum to the bubble total.\n }, {\n key: \"activityFilterCounts\",\n get: function get() {\n var _this2 = this;\n var items = this.activityItems;\n var counts = {};\n var _iterator = _createForOfIteratorHelper(this.activityFilters),\n _step;\n try {\n var _loop = function _loop() {\n var label = _step.value;\n var filter = label.toLowerCase();\n var matching = items.filter(function (item) {\n return _this2.isUnreadContribution(item) && _this2.filterCategoryMatches(item, filter);\n });\n // The \"Ungraded\" chip counts submissions awaiting a grade, not the\n // assignments that contain them, so one assignment with three ungraded\n // submissions contributes three. Every other chip counts matching items.\n counts[label] = filter === \"ungraded\" ? matching.reduce(function (sum, item) {\n return sum + (item.numUngradedSubmissions || 0);\n }, 0) : matching.length;\n };\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n _loop();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return counts;\n }\n\n // Similar to activityFilterCounts, but for the work panel\n }, {\n key: \"workFilterCounts\",\n get: function get() {\n var _this3 = this;\n var items = this.workItems;\n var counts = {};\n var _iterator2 = _createForOfIteratorHelper(this.workFilters),\n _step2;\n try {\n var _loop2 = function _loop2() {\n var label = _step2.value;\n var filter = label.toLowerCase();\n var matching = items.filter(function (item) {\n return _this3.isUnreadContribution(item) && _this3.filterCategoryMatches(item, filter);\n });\n // The \"Ungraded\" chip counts submissions awaiting a grade, not the\n // assignments that contain them, so one assignment with three ungraded\n // submissions contributes three. Every other chip counts matching items.\n counts[label] = matching.length;\n };\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n _loop2();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n return counts;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"searchValue\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return \"\";\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"sorting\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"activeFilters\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"clickingLinkClosesSideNav\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clickingLinkClosesSideNav\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSort\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSort\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleFilter\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleFilter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"clearFilters\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"search\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"search\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, SidePanel);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/activity-card\", [\"exports\", \"@glimmer/component\", \"@ember/routing\", \"@ember/service\", \"bocce/models/quiz\", \"bocce/models/assignment\", \"bocce/models/discussion\", \"bocce/components/side-panel/activity/activity-due\", \"bocce/components/side-panel/activity/announcement\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _routing, _service, _quiz, _assignment, _discussion, _activityDue, _announcement, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _ActivityCard; // See work-card.gjs for the rationale. activity.assignments redirects to\n // submission / submission-new / no-submissions; the latter two share\n // assignment_id so @current-when handles them, while submission is keyed by\n // submission_id and is detected via URL match.\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/routing\",0,\"@ember/service\",0,\"bocce/models/quiz\",0,\"bocce/models/assignment\",0,\"bocce/models/discussion\",0,\"bocce/components/side-panel/activity/activity-due\",0,\"bocce/components/side-panel/activity/announcement\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ASSIGNMENT_CURRENT_WHEN = [\"classroom.activity.assignments\", \"classroom.activity.submission-new\", \"classroom.activity.no-submissions\"].join(\" \");\n var ACTIVITY_TYPES = {\n DISCUSSION_DUE: \"discussion\",\n ASSIGNMENT_DUE: \"assignment\",\n QUIZ_DUE: \"quiz\",\n ANNOUNCEMENT: \"announcement\"\n };\n var ActivityCard = _exports.default = (_class = (_ActivityCard = /*#__PURE__*/function (_Component) {\n function ActivityCard() {\n var _this;\n _classCallCheck(this, ActivityCard);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ActivityCard, [].concat(args));\n _initializerDefineProperty(_this, \"router\", _descriptor, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor2, _this);\n return _this;\n }\n _inherits(ActivityCard, _Component);\n return _createClass(ActivityCard, [{\n key: \"itemType\",\n get: function get() {\n if (this.args.activity instanceof _discussion.default && !this.args.activity.is_announcement) {\n return ACTIVITY_TYPES.DISCUSSION_DUE;\n } else if (this.args.activity instanceof _assignment.default) {\n return ACTIVITY_TYPES.ASSIGNMENT_DUE;\n } else if (this.args.activity instanceof _quiz.default) {\n return ACTIVITY_TYPES.QUIZ_DUE;\n } else if (this.args.activity.is_announcement) {\n return ACTIVITY_TYPES.ANNOUNCEMENT;\n } else {\n console.error(\"ActivityCard: unsupported activity type\");\n return undefined;\n }\n }\n }, {\n key: \"activityComponent\",\n get: function get() {\n switch (this.itemType) {\n case ACTIVITY_TYPES.DISCUSSION_DUE:\n case ACTIVITY_TYPES.ASSIGNMENT_DUE:\n case ACTIVITY_TYPES.QUIZ_DUE:\n return _activityDue.default;\n case ACTIVITY_TYPES.ANNOUNCEMENT:\n return _announcement.default;\n default:\n return undefined;\n }\n }\n }, {\n key: \"activityRoute\",\n get: function get() {\n switch (this.itemType) {\n case ACTIVITY_TYPES.DISCUSSION_DUE:\n return \"discussion\";\n case ACTIVITY_TYPES.ASSIGNMENT_DUE:\n return \"assignments\";\n case ACTIVITY_TYPES.QUIZ_DUE:\n return \"quiz\";\n case ACTIVITY_TYPES.ANNOUNCEMENT:\n return \"discussion\";\n default:\n return undefined;\n }\n }\n }, {\n key: \"assignmentCurrentWhen\",\n get: function get() {\n return this.itemType === ACTIVITY_TYPES.ASSIGNMENT_DUE ? ASSIGNMENT_CURRENT_WHEN : undefined;\n }\n // The submission route is keyed by submission_id, not assignment_id,\n // so @current-when can't match it via @model.\n // Check if the link should have .active class by\n // looking up the in-store submission and comparing its assignment id to the given activity id\n }, {\n key: \"isActiveSubmission\",\n get: function get() {\n if (this.itemType !== ACTIVITY_TYPES.ASSIGNMENT_DUE) return false;\n var url = this.router.currentURL || \"\";\n var match = url.match(/\\/submission\\/([^/?#]+)/);\n if (!match) return false;\n var submission = this.store.peekRecord(\"submission\", match[1]);\n if (!submission) return false;\n return submission.belongsTo(\"assignment\").id() === this.args.activity.id;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.itemType}}\n \n {{component this.activityComponent activity=@activity}}\n \n {{/if}}\n */\n {\n \"id\": \"aYn+SCAI\",\n \"block\": \"[[[41,[30,0,[\\\"itemType\\\"]],[[[1,\\\" \\\"],[8,[32,0],[[16,0,[29,[\\\"activity-card__link \\\",[52,[30,0,[\\\"isActiveSubmission\\\"]],\\\"active\\\"]]]]],[[\\\"@route\\\",\\\"@model\\\",\\\"@current-when\\\"],[[29,[\\\"classroom.activity.\\\",[30,0,[\\\"activityRoute\\\"]]]],[30,0,[\\\"args\\\",\\\"activity\\\",\\\"id\\\"]],[30,0,[\\\"assignmentCurrentWhen\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[46,[30,0,[\\\"activityComponent\\\"]],null,[[\\\"activity\\\"],[[30,1]]],null],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@activity\\\"],[\\\"if\\\",\\\"component\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/activity-card.js\",\n \"scope\": function scope() {\n return [_routing.LinkTo];\n },\n \"isStrictMode\": true\n }), _ActivityCard), _ActivityCard), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/activity/activity-due\", [\"exports\", \"@glimmer/component\", \"bocce/models/discussion\", \"bocce/models/assignment\", \"bocce/models/quiz\", \"@ember/service\", \"bocce/utilities/date-format\", \"bocce/helpers/eq\", \"bocce/components/chips/chip-submission\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _discussion, _assignment, _quiz, _service, _dateFormat, _eq, _chipSubmission, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _ActivityDue;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"bocce/models/discussion\",0,\"bocce/models/assignment\",0,\"bocce/models/quiz\",0,\"@ember/service\",0,\"bocce/utilities/date-format\",0,\"bocce/helpers/eq\",0,\"bocce/components/chips/chip-submission\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ITEM_TYPES = {\n DISCUSSION: \"discussion\",\n ASSIGNMENT: \"assignment\",\n QUIZ: \"quiz\"\n };\n var ActivityDue = _exports.default = (_class = (_ActivityDue = /*#__PURE__*/function (_Component) {\n function ActivityDue() {\n var _this;\n _classCallCheck(this, ActivityDue);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ActivityDue, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(ActivityDue, _Component);\n return _createClass(ActivityDue, [{\n key: \"title\",\n get: function get() {\n return this.args.activity.title;\n }\n }, {\n key: \"formattedDueDate\",\n get: function get() {\n var dueDate = this.args.activity.due_at;\n if (!dueDate) {\n return false;\n }\n return (0, _dateFormat.formatWithSuffix)(dueDate);\n }\n }, {\n key: \"formattedPostedDate\",\n get: function get() {\n var dueDate = this.args.activity.due_at;\n if (dueDate) {\n // If there is a due date, it's a required activity, so we show the due date instead of the posted date\n return false;\n }\n var postedDate = this.args.activity.date;\n if (!postedDate) {\n return false;\n }\n return (0, _dateFormat.formatWithSuffix)(postedDate, {\n todayAsTime: true\n });\n }\n }, {\n key: \"formattedReplyDate\",\n get: function get() {\n // lastUpdatedDate (Canvas's last_reply_at) goes stale in the interface's\n // cache, so the discussion model derives the real value from its loaded\n // responses; it's null when there are no replies.\n var replyDate = this.args.activity.lastReplyDate;\n if (!replyDate) {\n return false;\n }\n return (0, _dateFormat.formatWithSuffix)(replyDate, {\n todayAsTime: true\n });\n }\n }, {\n key: \"dueStatus\",\n get: function get() {\n if (this.args.activity.pastDue) {\n return \"overdue\";\n } else if (this.args.activity.dueToday) {\n return \"due-today\";\n } else {\n return \"upcoming\";\n }\n }\n }, {\n key: \"icon\",\n get: function get() {\n if (this.args.activity instanceof _discussion.default) {\n //check if exercise based on title\n if (this.args.activity.title.includes(\"Exercise\")) {\n return \"\";\n } else {\n return \"\";\n }\n } else if (this.args.activity instanceof _assignment.default) {\n return \"\";\n } else if (this.args.activity instanceof _quiz.default) {\n return \"\";\n } else {\n console.error(\"ActivityCard: unsupported activity type\");\n return \"\";\n }\n }\n }, {\n key: \"activityUnread\",\n get: function get() {\n var activity = this.args.activity;\n if (activity instanceof _discussion.default) {\n // Students: new unviewed activity, or a required discussion not yet\n // completed (stays bold until done). Instructors: just new activity.\n return this.session.isInstructor ? activity.unread === true : activity.needsStudentAttention;\n } else if (activity instanceof _assignment.default) {\n // Stays bold until completed: unfinished work or unread feedback.\n return this.session.isInstructor ? activity.needsTeacherAttention : activity.needsStudentAttention;\n } else {\n return false;\n }\n }\n // The teacher kicked the submission back for another attempt. Only\n // assignments carry teacher_requires_resubmission.\n }, {\n key: \"requiresResubmission\",\n get: function get() {\n return this.args.activity instanceof _assignment.default && this.args.activity.teacher_requires_resubmission === \"needs_resubmit\";\n }\n }, {\n key: \"itemStatus\",\n get: function get() {\n var item = this.args.activity;\n // A requested resubmission takes precedence: the work isn't \"done\" even\n // though a submission exists.\n if (this.requiresResubmission) {\n return _chipSubmission.STATUS.RESUBMIT;\n }\n var isSubmitted = false;\n if (item instanceof _discussion.default) {\n isSubmitted = !!item.i_submitted;\n } else if (item instanceof _assignment.default) {\n isSubmitted = !!item.currentUserSubmission;\n } else if (item instanceof _quiz.default) {\n var attempts = item.hasMany(\"attempts\").value();\n isSubmitted = !!(attempts !== null && attempts !== void 0 && attempts.length);\n }\n if (isSubmitted) {\n return _chipSubmission.STATUS.SUBMITTED;\n } else {\n // Not submitted\n var pastDue = item.due_at ? new Date() > new Date(item.due_at) : false;\n return pastDue ? _chipSubmission.STATUS.OVERDUE : _chipSubmission.STATUS.NOT_SUBMITTED;\n }\n }\n // Only assignments expose a per-submission grade, and only show it once the grade matches the current submission\n }, {\n key: \"itemGrade\",\n get: function get() {\n var item = this.args.activity;\n if (!(item instanceof _assignment.default)) return null;\n if (item.currentUserSubmission && item.grade_matches_current_submission) {\n return item.currentUserSubmissionGrade || item.currentUserSubmissionScore;\n }\n return null;\n }\n // Instructor-only count of submissions still awaiting a grade, surfaced\n // beneath the assignment card so graders can see workload at a glance. 0 for\n // students and non-assignments, which hides the line in the template.\n }, {\n key: \"ungradedCount\",\n get: function get() {\n if (!this.session.isInstructor || !(this.args.activity instanceof _assignment.default)) {\n return 0;\n }\n return this.args.activity.numUngradedSubmissions || 0;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n {{{this.icon}}}\n
    \n
    \n
    \n {{{@activity.title}}}\n
    \n
    \n
    \n {{#if this.formattedReplyDate}}\n Last Reply\n {{this.formattedReplyDate}}\n {{else}}\n {{#if this.formattedPostedDate}}\n Posted\n {{this.formattedPostedDate}}\n {{else}}\n Due\n {{this.formattedDueDate}}\n {{/if}}\n {{/if}}\n
    \n {{#unless this.session.isInstructor}}\n \n \n {{/unless}}\n
    \n {{#if this.ungradedCount}}\n
    \n {{this.ungradedCount}}\n ungraded\n {{if (eq this.ungradedCount 1) \"submission\" \"submissions\"}}\n
    \n {{/if}}\n
    \n
    \n */\n {\n \"id\": \"dcNVFOLz\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"activity-card \\\",[52,[30,0,[\\\"activityUnread\\\"]],\\\"activity-card--unread\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"activity-card__image activity-card__image--\\\",[30,0,[\\\"dueStatus\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"icon\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__metadata\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__time\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"formattedReplyDate\\\"]],[[[1,\\\" Last Reply\\\\n \\\"],[1,[30,0,[\\\"formattedReplyDate\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"formattedPostedDate\\\"]],[[[1,\\\" Posted\\\\n \\\"],[1,[30,0,[\\\"formattedPostedDate\\\"]]],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Due\\\\n \\\"],[1,[30,0,[\\\"formattedDueDate\\\"]]],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"work-card__divider fa-regular fa-pipe\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[8,[32,0],null,[[\\\"@status\\\",\\\"@grade\\\"],[[30,0,[\\\"itemStatus\\\"]],[30,0,[\\\"itemGrade\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"ungradedCount\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"activity-card__ungraded\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"ungradedCount\\\"]]],[1,\\\"\\\\n ungraded\\\\n \\\"],[1,[52,[28,[32,1],[[30,0,[\\\"ungradedCount\\\"]],1],null],\\\"submission\\\",\\\"submissions\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@activity\\\"],[\\\"if\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/activity/activity-due.js\",\n \"scope\": function scope() {\n return [_chipSubmission.default, _eq.default];\n },\n \"isStrictMode\": true\n }), _ActivityDue), _ActivityDue), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/activity/announcement\", [\"exports\", \"@glimmer/component\", \"bocce/utilities/date-format\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _dateFormat, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _ActivityDue;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"bocce/utilities/date-format\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var ITEM_TYPES = {\n DISCUSSION: \"discussion\",\n ASSIGNMENT: \"assignment\",\n QUIZ: \"quiz\"\n };\n var ActivityDue = _exports.default = /*#__PURE__*/function (_Component) {\n function ActivityDue() {\n _classCallCheck(this, ActivityDue);\n return _callSuper(this, ActivityDue, arguments);\n }\n _inherits(ActivityDue, _Component);\n return _createClass(ActivityDue, [{\n key: \"formattedPostTime\",\n get: function get() {\n return (0, _dateFormat.formatWithSuffix)(this.args.activity.date);\n }\n }, {\n key: \"activityUnread\",\n get: function get() {\n // Unread messages: unopened, or opened with new replies.\n return this.args.activity.unread === true;\n }\n }]);\n }(_component.default);\n _ActivityDue = ActivityDue;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n
    \n
    \n
    \n {{{@activity.title}}}\n
    \n
    \n Posted\n {{this.formattedPostTime}}\n
    \n
    \n
    \n */\n {\n \"id\": \"458tv61R\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"activity-card \\\",[52,[30,0,[\\\"activityUnread\\\"]],\\\"activity-card--unread\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__image activity-card__image--announcement\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-bullhorn\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"activity-card__time\\\"],[12],[1,\\\"\\\\n Posted\\\\n \\\"],[1,[30,0,[\\\"formattedPostTime\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@activity\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/activity/announcement.js\",\n \"isStrictMode\": true\n }), _ActivityDue);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/event-card\", [\"exports\", \"@ember/modifier\", \"@ember/helper\", \"@ember/routing\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"bocce/helpers/not\", \"bocce/helpers/or\", \"bocce/helpers/and\", \"bocce/utilities/webex\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _modifier, _helper, _routing, _component, _tracking, _service, _object, _not, _or, _and, _webex, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _EventCard;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/modifier\",0,\"@ember/helper\",0,\"@ember/routing\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"bocce/helpers/not\",0,\"bocce/helpers/or\",0,\"bocce/helpers/and\",0,\"bocce/utilities/webex\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var EventCard = _exports.default = (_class = (_EventCard = /*#__PURE__*/function (_Component) {\n function EventCard() {\n var _this;\n _classCallCheck(this, EventCard);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, EventCard, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"router\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"isRsvpLoading\", _descriptor3, _this);\n return _this;\n }\n _inherits(EventCard, _Component);\n return _createClass(EventCard, [{\n key: \"handleToggleRsvp\",\n value: function () {\n var _handleToggleRsvp = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(eventId, willAttend) {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n this.isRsvpLoading = true;\n _context.p = 1;\n _context.n = 2;\n return this.args.toggleRsvp(eventId, willAttend);\n case 2:\n _context.p = 2;\n this.isRsvpLoading = false;\n return _context.f(2);\n case 3:\n return _context.a(2);\n }\n }, _callee, this, [[1,, 2, 3]]);\n }));\n function handleToggleRsvp(_x, _x2) {\n return _handleToggleRsvp.apply(this, arguments);\n }\n return handleToggleRsvp;\n }()\n }, {\n key: \"watchRecording\",\n value: function watchRecording(e) {\n var _this$args$event$meet;\n var meetingKeys = (_this$args$event$meet = this.args.event.meetingKeys) !== null && _this$args$event$meet !== void 0 ? _this$args$event$meet : [];\n (0, _webex.recordParticipation)(this.session, meetingKeys);\n if (this.args.kalturaEvent) {\n this.router.transitionTo(\"classroom.live.event\", this.args.event);\n } else if (this.args.watchUrl) {\n window.open(this.args.watchUrl, \"_blank\");\n }\n }\n }, {\n key: \"joinAsHost\",\n value: function joinAsHost() {\n this.args.rejoinChatAsHost(this.args.event, this.args.event.id);\n }\n }, {\n key: \"joinAsStudent\",\n value: function joinAsStudent() {\n this.args.joinChat(this.args.event, this.args.event.id);\n }\n }, {\n key: \"canShowStartButton\",\n get: function get() {\n return this.args.event.currentUserIsOwner &&\n // Instructor is logged into zoom\n this.session.hasZoomId && !this.args.isPast && !this.args.isCurrentChat;\n }\n }, {\n key: \"currentUserRsvp\",\n get: function get() {\n var _reservations$find,\n _this2 = this;\n var reservations = this.args.event.reservations;\n if (!Array.isArray(reservations)) return null;\n return (_reservations$find = reservations.find(function (r) {\n return String(r.user_id) === String(_this2.session.user.id);\n })) !== null && _reservations$find !== void 0 ? _reservations$find : null;\n }\n }, {\n key: \"rsvpIsYes\",\n get: function get() {\n var _this$currentUserRsvp;\n return ((_this$currentUserRsvp = this.currentUserRsvp) === null || _this$currentUserRsvp === void 0 ? void 0 : _this$currentUserRsvp.willAttend) === true;\n }\n // Rsvp exists and is no\n }, {\n key: \"rsvpIsNo\",\n get: function get() {\n var _this$currentUserRsvp2;\n return ((_this$currentUserRsvp2 = this.currentUserRsvp) === null || _this$currentUserRsvp2 === void 0 ? void 0 : _this$currentUserRsvp2.willAttend) === false;\n }\n }, {\n key: \"showRsvp\",\n get: function get() {\n if (this.session.isInstructor || this.args.isPast || this.args.isCurrentChat) return false;\n if (this.args.event.privateLessonStudentId) {\n return this.session.user.acsUserId === this.args.event.privateLessonStudentId;\n }\n return true;\n }\n }, {\n key: \"reservationDenominator\",\n get: function get() {\n return this.args.event.privateLessonStudentId ? 1 : this.session.section.numStudents;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n \n \n {{@event.title}}\n \n \n \n \n \n
    \n \n {{@event.title}}\n
    \n
    \n
    \n {{@event.formattedStartTime}}\n
    \n
    |
    \n
    \n \n {{if @event.reservationCount @event.reservationCount 0}}/{{this.reservationDenominator}}\n
    \n
    \n \n {{! Current: Live indicator + Join button in one row }}\n {{#if @isCurrentChat}}\n
    \n
    \n Live\n
    \n {{#if this.session.isInstructor}}\n \n Join the meeting\n \n {{else}}\n \n Join the meeting\n \n {{/if}}\n
    \n {{/if}}\n \n {{! Upcoming: Start button }}\n {{#if this.canShowStartButton}}\n
    \n Start Live Class\n \n
    \n {{/if}}\n \n {{#if this.showRsvp}}\n
    \n Will you attend?\n Yes\n No\n {{#if this.isRsvpLoading}}\n \n {{/if}}\n
    \n {{/if}}\n \n {{! Past: Watch button }}\n {{#if (or @watchUrl @kalturaEvent)}}\n
    \n {{/if}}\n \n \n */\n {\n \"id\": \"+gMQ5pHd\",\n \"block\": \"[[[10,\\\"li\\\"],[14,\\\"role\\\",\\\"listitem\\\"],[15,0,[29,[\\\"event-card\\\\n \\\",[52,[30,1],\\\"current-event\\\",[52,[30,2],\\\"past-event\\\",\\\"upcoming\\\"]],\\\"\\\\n \\\",[52,[30,3],[28,[32,0],[\\\"event-id-\\\",[30,3]],null]],\\\"\\\\n \\\",[52,[30,4],\\\"within-upcoming-chats instructor-chat\\\"],\\\"\\\\n \\\",[52,[30,5],\\\"starts-within-a-week\\\"],\\\"\\\\n \\\",[52,[28,[32,1],[[30,2],[28,[32,2],[[30,6,[\\\"watched\\\"]]],null]],null],\\\"event-card--unwatched\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[32,3],[[24,0,\\\"event-container__link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"classroom.live.event\\\",[30,6]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,[30,6,[\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\\n \\\"],[10,0],[15,0,[29,[\\\"event-card__event-type-icon\\\\n \\\",[52,[30,1],\\\"event-card__event-type-icon--current-event\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-card__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"event-card__title\\\\n \\\",[52,[28,[32,1],[[30,2],[28,[32,2],[[30,6,[\\\"watched\\\"]]],null]],null],\\\"event-card__title--unwatched\\\"]]]],[12],[1,\\\"\\\\n \\\"],[1,[30,6,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-card__details-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-card__start-time\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,6,[\\\"formattedStartTime\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-card__pipe_divider\\\"],[12],[1,\\\" | \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-card__reservation-count\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-user event-card__reservation-count-icon\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[52,[30,6,[\\\"reservationCount\\\"]],[30,6,[\\\"reservationCount\\\"]],0]],[1,\\\"/\\\"],[1,[30,0,[\\\"reservationDenominator\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-card__action-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-card__live-indicator button button--primary button--sm-md\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-signal-stream\\\"],[12],[13],[1,\\\"\\\\n Live\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link event-card__join-meeting-button\\\"],[4,[32,4],[\\\"click\\\",[30,0,[\\\"joinAsHost\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"\\\\n Join the meeting\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link event-card__join-meeting-button\\\"],[4,[32,4],[\\\"click\\\",[30,0,[\\\"joinAsStudent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"\\\\n Join the meeting\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canShowStartButton\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-card__action-row\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"aria-disabled\\\",[52,[28,[32,5],[[28,[32,2],[[30,6,[\\\"runnable\\\"]]],null],[30,7]],null],\\\"true\\\",\\\"false\\\"]],[16,\\\"disabled\\\",[52,[28,[32,5],[[28,[32,2],[[30,6,[\\\"runnable\\\"]]],null],[30,7]],null],true]],[16,0,[29,[\\\"event-card__start-class-button button-link\\\\n \\\",[52,[28,[32,5],[[28,[32,2],[[30,6,[\\\"runnable\\\"]]],null],[30,7]],null],\\\"disabled\\\"]]]],[4,[32,4],[\\\"click\\\",[28,[32,6],[[30,8],[30,6],[30,6,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"Start Live Class\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showRsvp\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-card__rsvp-buttons\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Will you attend?\\\"],[12],[1,\\\"\\\\n Will you attend?\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"event-card__button button button--sm-md\\\\n \\\",[52,[30,0,[\\\"rsvpIsYes\\\"]],\\\"button--black\\\",\\\"button--black-ghost\\\"]]]],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"rsvpIsYes\\\"]],\\\"Will attend selected\\\",\\\"Switch selection to will attend\\\"]]]],[4,[32,4],[\\\"click\\\",[28,[32,6],[[30,0,[\\\"handleToggleRsvp\\\"]],[30,6,[\\\"id\\\"]],true],null]],null],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"event-card__button button button--sm-md\\\\n \\\",[52,[30,0,[\\\"rsvpIsNo\\\"]],\\\"button--black\\\",\\\"button--black-ghost\\\"]]]],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"rsvpIsNo\\\"]],\\\"Will not attend selected\\\",\\\"Switch selection to will not attend\\\"]]]],[4,[32,4],[\\\"click\\\",[28,[32,6],[[30,0,[\\\"handleToggleRsvp\\\"]],[30,6,[\\\"id\\\"]],false],null]],null],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isRsvpLoading\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[32,5],[[30,9],[30,10]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[32,4],[\\\"click\\\",[30,0,[\\\"watchRecording\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[1,\\\"\\\\n Watch\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@isCurrentChat\\\",\\\"@isPast\\\",\\\"@eventId\\\",\\\"@withinUpcoming\\\",\\\"@startsWithinAWeek\\\",\\\"@event\\\",\\\"@isWorking\\\",\\\"@startChat\\\",\\\"@watchUrl\\\",\\\"@kalturaEvent\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/event-card.js\",\n \"scope\": function scope() {\n return [_helper.concat, _and.default, _not.default, _routing.LinkTo, _modifier.on, _or.default, _helper.fn];\n },\n \"isStrictMode\": true\n }), _EventCard), _EventCard), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isRsvpLoading\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"handleToggleRsvp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"handleToggleRsvp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"watchRecording\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"watchRecording\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"joinAsHost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"joinAsHost\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"joinAsStudent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"joinAsStudent\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/events\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/service\", \"@ember/object\", \"@ember/object/observers\", \"bocce/utilities/webex\", \"bocce/controllers/classroom/live/event-new\", \"bocce/utilities/rsvp\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _service, _object, _observers, _webex, _eventNew, _rsvp, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object/observers\",0,\"bocce/utilities/webex\",0,\"bocce/controllers/classroom/live/event-new\",0,\"bocce/utilities/rsvp\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @eventsLoaded}}\n {{#if this.hasChats}}\n
    \n {{#if this.eventsService.isWorking}}\n
  • \n \n {{! TODO: Need to alert the screen reader? }}\n Request sent to Zoom, waiting for response...\n
  • \n {{/if}}\n {{#if this.currentChat}}\n
    \n \n
    \n {{/if}}\n {{#if this.hasUpcoming}}\n \n \n {{#if this.hasUpcoming}}\n \n Upcoming\n \n \n {{#unless this.upcomingCollapsed}}\n \n {{#each results as |event|}}\n \n {{/each}}\n \n {{/unless}}\n {{/if}}\n
    \n {{/if}}\n {{#if this.pastChats}}\n \n \n Recorded\n \n \n {{#unless this.pastCollapsed}}\n {{#each this.sortedPastChats as |event|}}\n {{#if event.kalturaRecordings}}\n \n {{else}}\n {{#each event.meetings as |meeting|}}\n {{#if meeting.stream_url}}\n \n {{/if}}\n {{/each}}\n {{/if}}\n {{/each}}\n {{/unless}}\n \n {{/if}}\n \n {{/if}}\n {{#if this.session.isInstructor}}\n {{#unless this.session.hasZoomId}}\n \n {{/unless}}\n {{else if this.session.allowStudentChats}}\n {{#unless this.session.hasZoomId}}\n \n {{/unless}}\n {{/if}}\n {{#if this.session.isInstructor}}\n \n <:items>\n {{#if this.session.hasZoomId}}\n {{#if @otherCurrentTermSections}}\n Start Now (Multi-section)\n \n {{else}}\n Start Live Class Now\n \n {{/if}}\n {{/if}}\n \n Schedule Live Classes\n \n {{#if this.session.hasZoomId}}\n Test Live Class\n \n {{else}}\n Login to Zoom\n \n {{/if}}\n \n <:buttonContent as |isOpen|>\n \n Live Class\n \n \n {{/if}}\n {{else}}\n \n
    \n \n Loading...\n
    \n {{/if}}\n */\n {\n \"id\": \"mfBEsyEu\",\n \"block\": \"[[[41,[30,1],[[[41,[30,0,[\\\"hasChats\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"events-container\\\"],[14,\\\"role\\\",\\\"navigation\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"event-card events-container__loading-message\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\" Request sent to Zoom, waiting for response...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"currentChat\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"events-container__group events-container__group--current\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@event\\\",\\\"@eventId\\\",\\\"@isCurrentChat\\\",\\\"@rejoinChatAsHost\\\",\\\"@joinChat\\\"],[[30,0,[\\\"currentChat\\\"]],[30,0,[\\\"currentChat\\\",\\\"id\\\"]],true,[30,0,[\\\"rejoinChatAsHost\\\"]],[30,0,[\\\"joinChat\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"hasUpcoming\\\"]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"events-container__group\\\\n \\\",[52,[30,0,[\\\"upcomingCollapsed\\\"]],\\\"events-container__group--collapsed\\\"],\\\"\\\\n \\\",[52,[30,2],\\\"events-container__group--order-2\\\"]]]],[12],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"hasUpcoming\\\"]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"events-container__event-group-header upcoming-chats\\\\n \\\",[52,[30,0,[\\\"upcomingCollapsed\\\"]],\\\"collapsed\\\"]]]],[16,\\\"aria-expanded\\\",[28,[37,5],[[30,0,[\\\"upcomingCollapsed\\\"]]],null]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"toggleUpcomingCollapsed\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Upcoming\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far \\\",[52,[30,0,[\\\"upcomingCollapsed\\\"]],\\\"fa-chevron-down\\\",\\\"fa-chevron-up\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"upcomingCollapsed\\\"]]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@elements\\\",\\\"@expanded\\\"],[[30,0,[\\\"sortedUpcomingChats\\\"]],[30,0,[\\\"upcomingChatsExpanded\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n\\\"],[42,[28,[37,11],[[28,[37,11],[[30,3]],null]],null],null,[[[1,\\\" \\\"],[8,[39,4],null,[[\\\"@event\\\",\\\"@eventId\\\",\\\"@withinUpcoming\\\",\\\"@startsWithinAWeek\\\",\\\"@startChat\\\",\\\"@isWorking\\\",\\\"@toggleRsvp\\\"],[[30,5],[30,5,[\\\"id\\\"]],true,[30,5,[\\\"startsWithinAWeek\\\"]],[30,0,[\\\"startChat\\\"]],[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],[30,0,[\\\"toggleRsvp\\\"]]]],null],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\" \\\"]],[3,4]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"pastChats\\\"]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"events-container__group\\\\n \\\",[52,[30,0,[\\\"pastCollapsed\\\"]],\\\"events-container__group--collapsed\\\"],\\\"\\\\n \\\",[52,[30,2],\\\"events-container__group--order-1\\\"]]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,0,[29,[\\\"events-container__event-group-header past-event\\\\n \\\",[52,[30,0,[\\\"pastCollapsed\\\"]],\\\"collapsed\\\"]]]],[16,\\\"aria-expanded\\\",[28,[37,5],[[30,0,[\\\"pastCollapsed\\\"]]],null]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"togglePastCollapsed\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Recorded\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far \\\",[52,[30,0,[\\\"pastCollapsed\\\"]],\\\"fa-chevron-down\\\",\\\"fa-chevron-up\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"pastCollapsed\\\"]]],[[[42,[28,[37,11],[[28,[37,11],[[30,0,[\\\"sortedPastChats\\\"]]],null]],null],null,[[[41,[30,6,[\\\"kalturaRecordings\\\"]],[[[1,\\\" \\\"],[8,[39,4],null,[[\\\"@event\\\",\\\"@isPast\\\",\\\"@kalturaEvent\\\"],[[30,6],true,[30,6,[\\\"kalturaRecordings\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,11],[[28,[37,11],[[30,6,[\\\"meetings\\\"]]],null]],null],null,[[[41,[30,7,[\\\"stream_url\\\"]],[[[1,\\\" \\\"],[8,[39,4],null,[[\\\"@event\\\",\\\"@isPast\\\",\\\"@watchUrl\\\",\\\"@watchChatUrl\\\"],[[30,6],true,[30,7,[\\\"stream_url\\\"]],[30,0,[\\\"watchChatUrl\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[7]],null]],[]]]],[6]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[41,[51,[30,0,[\\\"session\\\",\\\"hasZoomId\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"zoom-login-copy\\\"],[12],[1,\\\"We've detected that you've never logged into berklee.zoom.us\\\\n before.\\\\n \\\"],[11,1],[24,0,\\\"zoom-login-link\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"zoomLoginRedirect\\\"]]],null],[12],[1,\\\"Please take a moment to\\\\n login before you proceed.\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"session\\\",\\\"allowStudentChats\\\"]],[[[41,[51,[30,0,[\\\"session\\\",\\\"hasZoomId\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"zoom-login-copy\\\"],[12],[1,\\\"We've detected that you've never logged into berklee.zoom.us\\\\n before.\\\\n \\\"],[11,1],[24,0,\\\"zoom-login-link\\\"],[4,[38,6],[\\\"click\\\",[30,0,[\\\"zoomLoginRedirect\\\"]]],null],[12],[1,\\\"Please take a moment to\\\\n login before you proceed.\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"]],[]],null]],[]]],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[8,[39,12],null,null,[[\\\"items\\\",\\\"buttonContent\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"hasZoomId\\\"]],[[[41,[30,8],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"aria-disabled\\\",[29,[[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"true\\\",\\\"false\\\"]]]],[16,\\\"disabled\\\",[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],true]],[16,0,[29,[\\\"events-container__multi-button multi-button__button\\\\n \\\",[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"disabled\\\"]]]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"startQuickEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon far fa-video\\\"],[12],[13],[1,\\\"Start Now (Multi-section)\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"aria-disabled\\\",[29,[[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"true\\\",\\\"false\\\"]]]],[16,\\\"disabled\\\",[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],true]],[16,0,[29,[\\\"events-container__multi-button multi-button__button\\\\n \\\",[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"disabled\\\"]]]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"createSingleSectionQuickEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon far fa-video\\\"],[12],[13],[1,\\\"Start Live Class Now\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[8,[39,15],[[24,0,\\\"events-container__multi-button multi-button__link\\\"]],[[\\\"@route\\\"],[\\\"classroom.live.event-new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon far fa-calendar-plus\\\"],[12],[13],[1,\\\"Schedule Live Classes\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"hasZoomId\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"aria-disabled\\\",[29,[[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"true\\\",\\\"false\\\"]]]],[16,0,[29,[\\\"events-container__multi-button multi-button__button\\\\n \\\",[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"disabled\\\"]]]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"testChat\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon far fa-flask\\\"],[12],[13],[1,\\\"Test Live Class\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"aria-disabled\\\",[29,[[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"true\\\",\\\"false\\\"]]]],[16,0,[29,[\\\"events-container__multi-button multi-button__button\\\\n \\\",[52,[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]],\\\"disabled\\\"]]]],[4,[38,6],[\\\"click\\\",[30,0,[\\\"zoomLoginRedirect\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon far fa-right-to-bracket\\\"],[12],[13],[1,\\\"Login to Zoom\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"]],[]],[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular \\\",[52,[30,9],\\\"fa-times\\\",\\\"fa-plus\\\"]]]],[12],[13],[1,\\\"\\\\n Live Class\\\\n \\\"]],[9]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[3,\\\" if the events aren't finished loading \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-sidebar-loading-message\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"@eventsLoaded\\\",\\\"@sorting\\\",\\\"results\\\",\\\"expandable\\\",\\\"event\\\",\\\"event\\\",\\\"meeting\\\",\\\"@otherCurrentTermSections\\\",\\\"isOpen\\\"],[\\\"if\\\",\\\"div\\\",\\\"li\\\",\\\"i\\\",\\\"side-panel/event-card\\\",\\\"not\\\",\\\"on\\\",\\\"span\\\",\\\"unless\\\",\\\"expandable-list\\\",\\\"each\\\",\\\"-track-array\\\",\\\"buttons/multi-button\\\",\\\":items\\\",\\\"button\\\",\\\"link-to\\\",\\\":buttonContent\\\"]]\",\n \"moduleName\": \"bocce/components/side-panel/events.hbs\",\n \"isStrictMode\": false\n });\n var SidePanelEventsComponent = _exports.default = (_dec = (0, _service.service)(\"events\"), _dec2 = (0, _service.service)(\"userprofile\"), _class = /*#__PURE__*/function (_Component) {\n function SidePanelEventsComponent(owner, args) {\n var _this;\n _classCallCheck(this, SidePanelEventsComponent);\n _this = _callSuper(this, SidePanelEventsComponent, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"eventsService\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"router\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"userprofileService\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"showOnlyInstructorChats\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"upcomingChatsExpanded\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"upcomingCollapsed\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"pastCollapsed\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"otherSectionChats\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"hasOtherSectionChats\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"runningChatMeetingKey\", _descriptor11, _this);\n _this.runningChatMeetingKey = _this.session.runningChatMeetingKey;\n (0, _observers.addObserver)(_this.session, \"time\", _this, \"checkOtherSectionChats\");\n (0, _observers.addObserver)(_this.session, \"runningChatMeetingKey\", _this, \"syncRunningChatMeetingKey\");\n return _this;\n }\n _inherits(SidePanelEventsComponent, _Component);\n return _createClass(SidePanelEventsComponent, [{\n key: \"willDestroy\",\n value: function willDestroy() {\n _superPropGet(SidePanelEventsComponent, \"willDestroy\", this, 3)([]);\n (0, _observers.removeObserver)(this.session, \"time\", this, \"checkOtherSectionChats\");\n (0, _observers.removeObserver)(this.session, \"runningChatMeetingKey\", this, \"syncRunningChatMeetingKey\");\n }\n }, {\n key: \"syncRunningChatMeetingKey\",\n value: function syncRunningChatMeetingKey() {\n this.runningChatMeetingKey = this.session.runningChatMeetingKey;\n }\n }, {\n key: \"eventsList\",\n get: function get() {\n var _this$args$eventsMode;\n return (_this$args$eventsMode = this.args.eventsModel) !== null && _this$args$eventsMode !== void 0 ? _this$args$eventsMode : [];\n }\n }, {\n key: \"hasUpcoming\",\n get: function get() {\n return !!(this.runningChatMeetingKey || this.upcomingChats.length);\n }\n }, {\n key: \"checkOtherSectionChats\",\n value: function checkOtherSectionChats() {\n var _this2 = this;\n // JRW: If the next chat starts within +/-10 minutes, check if it's a multisection chat.\n var chats = this.sortedUpcomingChats.filter(function (e) {\n return !e.get(\"isStudentChat\");\n }),\n now = moment(),\n tenMinutesInMilliseconds = 1000 * 60 * 10,\n nextUpcomingChat = chats.at(0);\n if (this.session.isInstructor && nextUpcomingChat) {\n var start = moment(nextUpcomingChat.get(\"startAt\"));\n if (start - tenMinutesInMilliseconds < now && start + tenMinutesInMilliseconds > now) {\n this.eventsService.setIsWorking(true);\n this.eventsService.getOtherSectionChats(this.args.userSectionCodes, nextUpcomingChat.get(\"title\"), nextUpcomingChat.get(\"startAt\")).then(function (otherSectionChats) {\n _this2.eventsService.setIsWorking(false);\n if (Array.isArray(otherSectionChats) && otherSectionChats.length !== 0) {\n _this2.otherSectionChats = otherSectionChats;\n _this2.hasOtherSectionChats = true;\n } else {\n _this2.hasOtherSectionChats = false;\n }\n });\n return;\n }\n }\n this.hasOtherSectionChats = false;\n }\n }, {\n key: \"pastChats\",\n get: function get() {\n var now = new Date(),\n currentUserAcsId = this.session.user.acsUserId,\n isInstructor = this.session.isInstructor,\n isStaff = this.session.isStaff,\n canShow = true;\n return this.eventsList.filter(function (e) {\n var hasMedia = e.get(\"meetings.length\") > 0 || e.get(\"s3Recordings.length\") > 0 || e.get(\"kalturaRecordings.length\") > 0,\n isPastTime = moment(e.get(\"endAt\")) < now;\n if (e.get(\"privateLessonStudentId\")) {\n canShow = e.get(\"privateLessonStudentId\") === currentUserAcsId || isInstructor || isStaff;\n }\n return isPastTime && canShow && hasMedia;\n });\n }\n }, {\n key: \"sortedChats\",\n get: function get() {\n return _toConsumableArray(this.eventsList).sort(function (a, b) {\n return new Date(a.get(\"startAt\")) - new Date(b.get(\"startAt\"));\n });\n }\n }, {\n key: \"currentChat\",\n get: function get() {\n var _this3 = this,\n _chats$at;\n if (!this.runningChatMeetingKey) {\n return null;\n }\n var chats = this.sortedChats.filter(function (chat) {\n if (chat.meeting_key != _this3.runningChatMeetingKey) {\n return false;\n }\n if (chat.get(\"privateLessonStudentId\")) {\n return chat.get(\"privateLessonStudentId\") === _this3.session.user.acsUserId || _this3.session.isInstructor || _this3.session.isStaff;\n }\n return true;\n });\n return (_chats$at = chats.at(0)) !== null && _chats$at !== void 0 ? _chats$at : null;\n }\n }, {\n key: \"upcomingChats\",\n get: function get() {\n var now = new Date(),\n chats = this.eventsList,\n cur = this.currentChat,\n currentUserAcsId = this.session.user.acsUserId,\n isInstructor = this.session.isInstructor,\n isStaff = this.session.isStaff,\n canShow = true;\n if (chats.length === 0) {\n return [];\n }\n return chats.filter(function (e) {\n // Allow all classes to be started 30min early\n var canStart = moment(e.get(\"startAt\")) > now - 30 * 60 * 1000,\n isNotCurrent = !cur || !cur.id || e.id != cur.id;\n if (e.get(\"privateLessonStudentId\")) {\n canShow = e.get(\"privateLessonStudentId\") === currentUserAcsId || isInstructor || isStaff;\n }\n return canStart && isNotCurrent && canShow;\n });\n }\n }, {\n key: \"chatStartingSoon\",\n get: function get() {\n var candidate = this.sortedUpcomingChats.at(0);\n if (!candidate) {\n return null;\n }\n var start = moment(candidate.get(\"startAt\"));\n if (start - moment() < 1800000) {\n return candidate;\n }\n return null;\n }\n }, {\n key: \"filterChats\",\n value: function filterChats(list) {\n var filters = this.args.activeFilters || [];\n var q = (this.args.searchValue || \"\").trim().toLowerCase();\n if (filters.includes(\"watched\")) {\n list = list.filter(function (e) {\n return e && e.watched;\n });\n } else if (filters.includes(\"new\")) {\n list = list.filter(function (e) {\n return e && !e.watched;\n });\n }\n if (q) {\n list = list.filter(function (e) {\n if (!e) return false;\n var get = function get(prop) {\n return e.get ? e.get(prop) : e[prop];\n };\n var title = (get(\"title\") || \"\").toString().toLowerCase();\n var desc = (get(\"description\") || \"\").toString().toLowerCase();\n return title.includes(q) || desc.includes(q);\n });\n }\n return list;\n }\n }, {\n key: \"sortByStartAt\",\n value: function sortByStartAt(list) {\n var dir = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"asc\";\n return _toConsumableArray(list).sort(function (a, b) {\n var aVal = new Date(a.get ? a.get(\"startAt\") : a.startAt);\n var bVal = new Date(b.get ? b.get(\"startAt\") : b.startAt);\n return dir === \"asc\" ? aVal - bVal : bVal - aVal;\n });\n }\n }, {\n key: \"filteredUpcomingChats\",\n get: function get() {\n return this.filterChats(this.upcomingChats || []);\n }\n }, {\n key: \"filteredPastChats\",\n get: function get() {\n return this.filterChats(this.pastChats || []);\n }\n\n // When sorting=true the user has reversed the default order.\n }, {\n key: \"sortedUpcomingChats\",\n get: function get() {\n return this.sortByStartAt(this.filteredUpcomingChats, this.args.sorting ? \"desc\" : \"asc\");\n }\n }, {\n key: \"sortedPastChats\",\n get: function get() {\n return this.sortByStartAt(this.filteredPastChats, this.args.sorting ? \"asc\" : \"desc\");\n }\n }, {\n key: \"currentEventId\",\n get: function get() {\n var _this$router$currentR;\n return (_this$router$currentR = this.router.currentRoute) === null || _this$router$currentR === void 0 || (_this$router$currentR = _this$router$currentR.params) === null || _this$router$currentR === void 0 ? void 0 : _this$router$currentR.event_id;\n }\n }, {\n key: \"hasChats\",\n get: function get() {\n return this.eventsList && this.eventsList.length > 0;\n }\n\n // --- Actions ---\n }, {\n key: \"startChat\",\n value: function startChat(meeting_details, meeting_id) {\n var _webexStartChat,\n _this4 = this;\n if (!this.session.course.isOpen) {\n this.confirmDialog.show({\n subtitle: \"Live classes cannot be started before the course opens.\"\n });\n return;\n }\n this.eventsService.setIsWorking(true);\n (_webexStartChat = (0, _webex.startChat)(this.session.section.id, meeting_details, meeting_id, this.confirmDialog)) === null || _webexStartChat === void 0 || _webexStartChat.finally(function () {\n return _this4.eventsService.setIsWorking(false);\n });\n }\n }, {\n key: \"rejoinChatAsHost\",\n value: function rejoinChatAsHost(meeting_details, meeting_id) {\n var _webexRejoinChatAsHos,\n _this5 = this;\n this.eventsService.setIsWorking(true);\n (_webexRejoinChatAsHos = (0, _webex.rejoinChatAsHost)(this.session.section.id, meeting_details, meeting_id, this.confirmDialog)) === null || _webexRejoinChatAsHos === void 0 || _webexRejoinChatAsHos.finally(function () {\n return _this5.eventsService.setIsWorking(false);\n });\n }\n }, {\n key: \"joinChat\",\n value: function joinChat() {\n var _webexJoinChat,\n _this6 = this;\n this.eventsService.setIsWorking(true);\n (_webexJoinChat = (0, _webex.joinChat)(this.session, this.router, this.confirmDialog)) === null || _webexJoinChat === void 0 || _webexJoinChat.finally(function () {\n return _this6.eventsService.setIsWorking(false);\n });\n }\n }, {\n key: \"watchChatUrl\",\n value: function watchChatUrl(value) {\n (0, _webex.watchChatUrl)(value);\n }\n }, {\n key: \"zoomLoginRedirect\",\n value: function zoomLoginRedirect() {\n (0, _webex.zoomLoginRedirect)();\n }\n }, {\n key: \"testChat\",\n value: function testChat() {\n (0, _webex.testChat)(this.session.section.id, false, this.confirmDialog);\n }\n }, {\n key: \"startQuickEvent\",\n value: function () {\n var _startQuickEvent = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var otherSections, options, selected, now, section, course, courseId, eventDataList;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n if (this.session.course.isOpen) {\n _context.n = 1;\n break;\n }\n dialog(\"Live classes can be started when the course opens.\");\n return _context.a(2);\n case 1:\n otherSections = this.args.otherCurrentTermSections || [];\n if (!(otherSections.length === 0)) {\n _context.n = 2;\n break;\n }\n // No other sections — start immediately for this section only\n this.createSingleSectionQuickEvent();\n return _context.a(2);\n case 2:\n options = otherSections.map(function (section) {\n return {\n label: \"\".concat(section.courseTitle, \" \\u2013 Section \").concat(section.sectionLabel),\n value: section,\n checked: false\n };\n });\n _context.n = 3;\n return this.confirmDialog.show({\n title: \"Start Live Class Now\",\n subtitle: \"Include other sections?\",\n checkboxOptions: options,\n choices: [\"Start\", \"Cancel\"],\n inputType: \"checkbox\"\n });\n case 3:\n selected = _context.v;\n if (!(selected === false)) {\n _context.n = 4;\n break;\n }\n return _context.a(2);\n case 4:\n now = moment().tz(\"America/New_York\");\n this.eventsService.setIsWorking(true);\n section = this.session.section;\n course = section.get(\"course\");\n courseId = course.get(\"id\");\n eventDataList = [{\n event: {\n title: \"Live Class\",\n description: \"\",\n futureEvent: true,\n startAt: now.format(\"YYYY-MM-DDTHH:mm:ss\"),\n endAt: now.clone().add(\"1\", \"hours\").format(\"YYYY-MM-DDTHH:mm:ss\"),\n course: course\n },\n courseIds: [courseId].concat(_toConsumableArray(selected.map(function (s) {\n return s.courseId;\n })))\n }];\n _eventNew.sendEventsToInterfaceAndSendEmail.call(this, eventDataList, true);\n case 5:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function startQuickEvent() {\n return _startQuickEvent.apply(this, arguments);\n }\n return startQuickEvent;\n }()\n }, {\n key: \"createSingleSectionQuickEvent\",\n value: function createSingleSectionQuickEvent() {\n if (!this.session.course.isOpen) {\n dialog(\"Live classes can be started when the course opens.\");\n return;\n }\n var now = moment().tz(\"America/New_York\");\n this.eventsService.setIsWorking(true);\n var section = this.session.section;\n var course = section.get(\"course\");\n var courseId = course.get(\"id\");\n var eventDataSingle = {\n event: {\n title: \"Live Class\",\n description: \"\",\n futureEvent: true,\n startAt: now.format(\"YYYY-MM-DDTHH:mm:ss\"),\n endAt: now.add(\"1\", \"hours\").format(\"YYYY-MM-DDTHH:mm:ss\"),\n course: course\n },\n courseIds: [courseId]\n };\n _eventNew.sendEventsToInterfaceAndSendEmail.call(this, [eventDataSingle], true);\n }\n }, {\n key: \"dismissStartChatConfirmation\",\n value: function dismissStartChatConfirmation() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".chat-confirmation\").addClass(\"hidden\");\n }\n }, {\n key: \"toggleExpandUpcomingChats\",\n value: function toggleExpandUpcomingChats() {\n this.upcomingChatsExpanded = !this.upcomingChatsExpanded;\n }\n }, {\n key: \"toggleUpcomingCollapsed\",\n value: function toggleUpcomingCollapsed() {\n this.upcomingCollapsed = !this.upcomingCollapsed;\n }\n }, {\n key: \"togglePastCollapsed\",\n value: function togglePastCollapsed() {\n this.pastCollapsed = !this.pastCollapsed;\n }\n }, {\n key: \"setShowOnlyInstructorChats\",\n value: function setShowOnlyInstructorChats(value) {\n this.showOnlyInstructorChats = value;\n // TODO: Move these DOM side effects to class bindings in the template.\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".events-instructor-chat-toggle-container\").toggleClass(\"checked\", value);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".event.student-chat\").toggleClass(\"hidden\", value);\n }\n }, {\n key: \"toggleRsvp\",\n value: function () {\n var _toggleRsvp = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(eventId, willAttend) {\n var event, _event$reservations, result, _t;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.p = _context2.n) {\n case 0:\n event = this.eventsList.find(function (e) {\n return e.id === eventId;\n });\n if (event) {\n _context2.n = 1;\n break;\n }\n return _context2.a(2);\n case 1:\n _context2.p = 1;\n _context2.n = 2;\n return (0, _rsvp.toggleRsvp)(this.session.course.id, eventId, this.session.user.id, (_event$reservations = event.reservations) !== null && _event$reservations !== void 0 ? _event$reservations : [], willAttend);\n case 2:\n result = _context2.v;\n if (result) {\n event.reservations = result.reservations;\n event.reservationCount = result.reservationCount;\n }\n _context2.n = 4;\n break;\n case 3:\n _context2.p = 3;\n _t = _context2.v;\n console.error(\"Error toggling RSVP:\", _t);\n case 4:\n return _context2.a(2);\n }\n }, _callee2, this, [[1, 3]]);\n }));\n function toggleRsvp(_x, _x2) {\n return _toggleRsvp.apply(this, arguments);\n }\n return toggleRsvp;\n }()\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"eventsService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"userprofileService\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"showOnlyInstructorChats\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"upcomingChatsExpanded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"upcomingCollapsed\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"pastCollapsed\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"otherSectionChats\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"hasOtherSectionChats\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"runningChatMeetingKey\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return undefined;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"startChat\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startChat\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rejoinChatAsHost\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rejoinChatAsHost\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"joinChat\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"joinChat\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"watchChatUrl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"watchChatUrl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"zoomLoginRedirect\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"zoomLoginRedirect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"testChat\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"testChat\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startQuickEvent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startQuickEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createSingleSectionQuickEvent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"createSingleSectionQuickEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dismissStartChatConfirmation\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"dismissStartChatConfirmation\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpandUpcomingChats\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpandUpcomingChats\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleUpcomingCollapsed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleUpcomingCollapsed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePastCollapsed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePastCollapsed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setShowOnlyInstructorChats\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setShowOnlyInstructorChats\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleRsvp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleRsvp\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, SidePanelEventsComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/filter-dropdown\", [\"exports\", \"@glimmer/component\", \"@ember/modifier\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/helper\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _modifier, _object, _tracking, _helper, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _FilterDropdown;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/helper\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n var FilterDropdown = _exports.default = /*#__PURE__*/function (_Component) {\n function FilterDropdown() {\n _classCallCheck(this, FilterDropdown);\n return _callSuper(this, FilterDropdown, arguments);\n }\n _inherits(FilterDropdown, _Component);\n return _createClass(FilterDropdown);\n }(_component.default);\n _FilterDropdown = FilterDropdown;\n (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    Filters
    \n \n
    \n
    \n
    \n
    Status
    \n
    \n \n \n \n \n
    \n
    \n
    \n
    Work
    \n
    \n \n \n \n \n
    \n
    \n
    \n
    Sort
    \n
    \n \n \n \n \n \n \n
    \n
    \n
    \n
    Activity
    \n
    \n \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n \n
    \n Cancel\n \n
    \n
    \n
    \n */\n {\n \"id\": \"NGhahuqc\",\n \"block\": \"[[[10,0],[14,0,\\\"filter-dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__title\\\"],[12],[1,\\\"Filters\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"icon-button icon-button__white icon-button--sm\\\"],[4,[32,0],[\\\"click\\\",[30,1]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__filter-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__filter-title\\\"],[12],[1,\\\"Status\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__input-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"New\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Incomplete\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Unread\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Resubmissions\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__filter-title\\\"],[12],[1,\\\"Work\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__input-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Assignments\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Discussions\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Quizzes\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Exercises\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__filter-title\\\"],[12],[1,\\\"Sort\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__input-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"sort\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"Date (newest)\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"sort\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"Date (oldest)\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"sort\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"Course week (newest)\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"sort\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"Course week (oldest)\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"sort\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"Lesson (newest)\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,3,\\\"sort\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"Lesson (oldest)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__filter-title\\\"],[12],[1,\\\"Activity\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__input-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Announcements\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Conversations\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Deadlines\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Live\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Grades\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Roster\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"Polls\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__button-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button-link button-link--full-size\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-broom\\\"],[12],[13],[1,\\\"Clear filters\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"filter-dropdown__right-button-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link button-link--full-size\\\"],[4,[32,0],[\\\"click\\\",[30,1]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--blue\\\"],[12],[1,\\\"Search\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@closeFilters\\\"],[]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/filter-dropdown.js\",\n \"scope\": function scope() {\n return [_modifier.on];\n },\n \"isStrictMode\": true\n }), _FilterDropdown);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/panel-filters\", [\"exports\", \"@glimmer/component\", \"bocce/components/chips/chip-filter\", \"bocce/components/side-panel/filter-dropdown\", \"@ember/routing\", \"@ember/modifier\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/helper\", \"@ember/component\", \"bocce/helpers/inarray\", \"@ember/template-factory\"], function (_exports, _component, _chipFilter, _filterDropdown, _routing, _modifier, _object, _tracking, _helper, _component2, _inarray, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _PanelFilters;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"bocce/components/chips/chip-filter\",0,\"bocce/components/side-panel/filter-dropdown\",0,\"@ember/routing\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/helper\",0,\"@ember/component\",0,\"bocce/helpers/inarray\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var PanelFilters = _exports.default = (_class = (_PanelFilters = /*#__PURE__*/function (_Component) {\n function PanelFilters() {\n var _this;\n _classCallCheck(this, PanelFilters);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, PanelFilters, [].concat(args));\n _initializerDefineProperty(_this, \"expandedFilters\", _descriptor, _this);\n return _this;\n }\n _inherits(PanelFilters, _Component);\n return _createClass(PanelFilters, [{\n key: \"search\",\n value: function search(event) {\n this.args.search(event.target.value);\n }\n }, {\n key: \"toggleExpandedFilters\",\n value: function toggleExpandedFilters() {\n this.expandedFilters = !this.expandedFilters;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n {{@panelTitle}}
    \n
    \n
    \n \n
    \n
    \n
    \n {{! Simple sort by date filter. For events }}\n {{#if @sort}}\n \n \n \n {{/if}}\n
    \n {{#each @filters as |filter|}}\n {{filter}}{{#let (get @filterCounts filter) as |count|}}{{#if count}}{{count}}{{/if}}{{/let}}\n {{/each}}\n
    \n
    \n {{#if this.expandedFilters}}\n \n {{/if}}\n {{#if @showLateGradingPolicy}}\n
    \n \n \n \n
    \n {{/if}}\n \n */\n {\n \"id\": \"lFa8xQX4\",\n \"block\": \"[[[10,0],[14,0,\\\"panel-filters\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"panel-filters__title-bar\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"panel-filters__title\\\"],[14,1,\\\"panel-filters-title\\\"],[14,\\\"role\\\",\\\"heading\\\"],[14,\\\"aria-level\\\",\\\"2\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"panel-search\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"panel-search__search-icon\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-search\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[8,[32,0],[[24,\\\"autocomplete\\\",\\\"off\\\"],[24,0,\\\"panel-search__input\\\"],[4,[32,1],[\\\"input\\\",[30,0,[\\\"search\\\"]]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[30,2]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"panel-filters__filter-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"icon-button icon-button__white icon-button__sm \\\",[52,[30,4],\\\"active\\\"]]]],[16,\\\"title\\\",[52,[30,4],\\\"Newest first\\\",\\\"Oldest first\\\"]],[4,[32,1],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular \\\",[52,[30,4],\\\"fa-arrow-down-short-wide\\\",\\\"fa-arrow-up-short-wide\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"panel-filters__chip-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[31,2],[[28,[31,2],[[30,5]],null]],null],null,[[[1,\\\" \\\"],[8,[32,2],null,[[\\\"@active\\\",\\\"@toggleFilter\\\"],[[28,[32,3],[[30,6],[30,7]],null],[28,[32,4],[[30,8],[30,6]],null]]],[[\\\"default\\\"],[[[[1,[30,6]],[44,[[28,[32,5],[[30,9],[30,6]],null]],[[[41,[30,10],[[[10,1],[14,0,\\\"chip__count\\\"],[12],[1,[30,10]],[13]],[]],null]],[10]]]],[]]]]],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"expandedFilters\\\"]],[[[1,\\\" \\\"],[8,[32,6],null,[[\\\"@closeFilters\\\"],[[30,0,[\\\"toggleExpandedFilters\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,11],[[[1,\\\" \\\"],[10,0],[14,0,\\\"late-grading-policy__container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[32,7],null,[[\\\"@route\\\"],[\\\"classroom.work.late-grading-policy\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"late-grading-policy__button button-link button-link--black\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"late-grading-policy__icon fa-regular fa-info-circle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Instructor Late Grading Policy\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@panelTitle\\\",\\\"@searchValue\\\",\\\"@sort\\\",\\\"@sorting\\\",\\\"@filters\\\",\\\"filter\\\",\\\"@activeFilters\\\",\\\"@toggleFilter\\\",\\\"@filterCounts\\\",\\\"count\\\",\\\"@showLateGradingPolicy\\\"],[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"let\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/panel-filters.js\",\n \"scope\": function scope() {\n return [_component2.Input, _modifier.on, _chipFilter.default, _inarray.default, _helper.fn, _helper.get, _filterDropdown.default, _routing.LinkTo];\n },\n \"isStrictMode\": true\n }), _PanelFilters), _PanelFilters), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"expandedFilters\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"search\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"search\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleExpandedFilters\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleExpandedFilters\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/settings\", [\"exports\", \"@glimmer/component\", \"@ember/modifier\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _modifier, _object, _tracking, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _SyllabusLesson;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var SyllabusLesson = _exports.default = (_class = (_SyllabusLesson = /*#__PURE__*/function (_Component) {\n function SyllabusLesson() {\n var _this;\n _classCallCheck(this, SyllabusLesson);\n _this = _callSuper(this, SyllabusLesson, arguments);\n _initializerDefineProperty(_this, \"lessonExpanded\", _descriptor, _this);\n return _this;\n }\n _inherits(SyllabusLesson, _Component);\n return _createClass(SyllabusLesson, [{\n key: \"formattedLessonNumber\",\n get: function get() {\n return this.args.lesson.number > 0 ? this.args.lesson.number : \"i\";\n }\n }, {\n key: \"toggleLessonExpanded\",\n value: function toggleLessonExpanded() {\n this.lessonExpanded = !this.lessonExpanded;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    Settings
    \n
    \n \n
    \n
    \n */\n {\n \"id\": \"W7GBRS3n\",\n \"block\": \"[[[10,0],[14,0,\\\"settings\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"settings__header\\\"],[12],[1,\\\"Settings\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"settings__nav\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"settings__nav-option\\\"],[4,[32,0],[\\\"click\\\",[30,1]],null],[12],[1,\\\"Edit Profile\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@openPrefsPanel\\\"],[]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/settings.js\",\n \"scope\": function scope() {\n return [_modifier.on];\n },\n \"isStrictMode\": true\n }), _SyllabusLesson), _SyllabusLesson), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"lessonExpanded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleLessonExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleLessonExpanded\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/syllabus\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _object, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#each @model.classroom.lessons as |lesson|}}\n \n {{/each}}\n
    \n */\n {\n \"id\": \"7+Vs2F18\",\n \"block\": \"[[[10,0],[14,0,\\\"syllabus-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,1,[\\\"classroom\\\",\\\"lessons\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,3],null,[[\\\"@lesson\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[[30,2],[30,3],[30,4]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"@model\\\",\\\"lesson\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"side-panel/syllabus/syllabus-lesson\\\"]]\",\n \"moduleName\": \"bocce/components/side-panel/syllabus.hbs\",\n \"isStrictMode\": false\n });\n var SyllabusComponent = _exports.default = (_class = /*#__PURE__*/function (_Component) {\n function SyllabusComponent() {\n var _this;\n _classCallCheck(this, SyllabusComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, SyllabusComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"router\", _descriptor2, _this);\n _defineProperty(_this, \"firstItemId\", function (lesson) {\n if (!lesson.hasMany(\"items\")) {}\n return lesson.hasMany(\"items\").value().at(0);\n });\n return _this;\n }\n _inherits(SyllabusComponent, _Component);\n return _createClass(SyllabusComponent, [{\n key: \"lessonLoaded\",\n get: function get() {\n return this.session.lessonLoaded;\n }\n }, {\n key: \"addCalendarEvent\",\n value: function addCalendarEvent(itemName, itemDate_arg) {\n var url_chunk = \"https://www.google.com/calendar/render?action=TEMPLATE&text=\" + itemName + \"&location=Berklee+online&calendar-label=Discussion&dates=\",\n itemDate = new Date(itemDate_arg.valueOf() + itemDate_arg.getTimezoneOffset() * 60000),\n yyyy = itemDate.getFullYear().toString(),\n MM = (\"0\" + (itemDate.getMonth() + 1).toString()).slice(-2),\n dd = (\"0\" + itemDate.getDate().toString()).slice(-2),\n hh = (\"0\" + itemDate.getHours()).slice(-2),\n mm = (\"0\" + itemDate.getMinutes()).slice(-2),\n ss = (\"0\" + itemDate.getSeconds()).slice(-2),\n formattedDate_init = yyyy + MM + dd + \"T\" + hh + mm + ss + \"Z\",\n formattedDate = formattedDate_init + \"/\" + formattedDate_init,\n url = url_chunk + formattedDate + \"&details=\" + encodeURIComponent(\"https://canvas.online-dev.berklee.edu/\" + event.target.closest(\"a\").getAttribute(\"href\"));\n window.open(url, \"_blank\");\n }\n }, {\n key: \"closeTOC\",\n value: function closeTOC() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#shortcuts-drawer-handle\").prop(\"checked\", false);\n }\n }, {\n key: \"scrollToHeader\",\n value: function scrollToHeader(item, lesson) {\n var _this2 = this;\n var y;\n if (typeof item === \"number\") {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".syllabus-divider.lesson-\" + item).get(0).scrollIntoView();\n /* eslint-disable-next-line ember/no-jquery */\n y = (0, _jquery.default)(\".side-panel\").scrollTop(); //your current y position on the page\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").scrollTop(y + 20);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#shortcuts-drawer-handle\").prop(\"checked\", false);\n } else {\n event.target.scrollIntoView();\n }\n lesson.items.then(function (items) {\n _this2.router.transitionTo(\"classroom.lessons\", lesson.get(\"id\"), items.at(0));\n });\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"addCalendarEvent\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addCalendarEvent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTOC\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTOC\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"scrollToHeader\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"scrollToHeader\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, SyllabusComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/syllabus/lesson-item\", [\"exports\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/modifier\", \"@ember/object\", \"@ember/routing\", \"@ember/helper\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _service, _tracking, _modifier, _object, _routing, _helper, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _LessonItem;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@ember/routing\",0,\"@ember/helper\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var LessonItem = _exports.default = (_class = (_LessonItem = /*#__PURE__*/function (_Component) {\n function LessonItem() {\n var _this;\n _classCallCheck(this, LessonItem);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, LessonItem, [].concat(args));\n _initializerDefineProperty(_this, \"bookmarks\", _descriptor, _this);\n return _this;\n }\n _inherits(LessonItem, _Component);\n return _createClass(LessonItem, [{\n key: \"hasMetadata\",\n get: function get() {\n return this.args.topic.formattedDate;\n }\n }, {\n key: \"topicType\",\n get: function get() {\n if (this.args.topic.type.toLowerCase() === \"discussion\") return \"\";\n if (this.args.topic.type.toLowerCase() === \"assignment\") return \"\";\n if (this.args.topic.type.toLowerCase() === \"quiz\") return \"\";\n }\n }, {\n key: \"canBeBookmarked\",\n get: function get() {\n return this.args.topic.type.toLowerCase() === \"page\";\n }\n }, {\n key: \"isBookmarked\",\n get: function get() {\n return this.bookmarks.allBookmarkContentTagIds.indexOf(this.args.topic.db_id) > -1;\n }\n }, {\n key: \"isFiltered\",\n get: function get() {\n var matchingSearchFilter = this.matchingSearchFilter();\n var matchingFilter = this.matchingFilter();\n return !this.matchingSearchFilter() || !this.matchingFilter();\n }\n }, {\n key: \"matchingSearchFilter\",\n value: function matchingSearchFilter() {\n if (this.args.searchValue.trim() === \"\") {\n return true;\n }\n return this.args.topic.title.toLowerCase().includes(this.args.searchValue.toLowerCase());\n }\n }, {\n key: \"matchingFilter\",\n value: function matchingFilter() {\n var activeFilters = this.args.activeFilters;\n if (activeFilters.length === 0) {\n return true;\n }\n var topic = this.args.topic;\n var type = topic.type;\n var title = topic.title;\n var matchingFilter = false;\n //check unread filter\n matchingFilter || (matchingFilter = activeFilters.includes(\"unread\") && !topic.read);\n //check assignments filter\n matchingFilter || (matchingFilter = activeFilters.includes(\"assignments\") && type.toLowerCase() === \"assignment\");\n //check discussions filter\n matchingFilter || (matchingFilter = activeFilters.includes(\"discussions\") && type.toLowerCase() === \"discussion\" && !title.toLowerCase().includes(\"exercise\"));\n //check quizzes filter\n matchingFilter || (matchingFilter = activeFilters.includes(\"quizzes\") && type.toLowerCase() === \"quiz\");\n //check exercises filter\n matchingFilter || (matchingFilter = activeFilters.includes(\"exercises\") && title.toLowerCase().includes(\"exercise\"));\n return matchingFilter;\n }\n }, {\n key: \"addBookmark\",\n value: function addBookmark(event) {\n event.preventDefault();\n event.stopPropagation();\n var lesson = this.args.lesson;\n if (!lesson) {\n // defensively avoid runtime errors if parent forgets to pass @lesson\n return;\n }\n var lesson_id = lesson.id;\n var lesson_name = lesson.title;\n this.bookmarks.addBookmark(this.args.topic.db_id, this.args.topic.id, this.args.topic.title, \"\", lesson_id, lesson_name);\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.isFiltered}}\n
  • \n \n \n {{#if this.topicType}}\n
    {{{this.topicType}}}
    \n {{/if}}\n
    \n \n {{{@topic.title}}}\n
    \n {{#if this.hasMetadata}}\n
    \n
    Due {{@topic.formattedDate}}
    \n
    \n {{/if}}\n \n {{#if this.isBookmarked}}\n \n Bookmarked\n {{else if this.canBeBookmarked}}\n \n \n {{/if}}\n \n \n
  • \n {{/unless}}\n */\n {\n \"id\": \"WgPip+jC\",\n \"block\": \"[[[41,[51,[30,0,[\\\"isFiltered\\\"]]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"syllabus-lesson__content-item\\\"],[12],[1,\\\"\\\\n \\\"],[8,[32,0],[[16,\\\"aria-label\\\",[30,1,[\\\"title\\\"]]],[24,0,\\\"syllabus-lesson__link\\\"]],[[\\\"@route\\\",\\\"@models\\\",\\\"@classNameBindings\\\"],[\\\"classroom.lessons\\\",[28,[32,1],[[30,2,[\\\"id\\\"]],[30,1,[\\\"id\\\"]]],null],\\\"lesson.linkClass\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[15,1,[29,[\\\"lesson-item-\\\",[30,1,[\\\"db_id\\\"]]]]],[15,0,[29,[\\\"lesson-item \\\",[52,[51,[30,1,[\\\"read\\\"]]],\\\"lesson-item--unread\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"topicType\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"lesson-item__icon-container\\\"],[12],[2,[30,0,[\\\"topicType\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"lesson-item__info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"lesson-item__title \\\",[52,[51,[30,0,[\\\"topicType\\\"]]],\\\"lesson-item__title--indented\\\"]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasMetadata\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"lesson-item__metadata\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Due \\\"],[1,[30,1,[\\\"formattedDate\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isBookmarked\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"lesson-item__bookmark-icon fas fa-bookmark\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Bookmarked\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"canBeBookmarked\\\"]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[24,0,\\\"lesson-item__bookmark-icon far fa-bookmark syllabus-bookmark\\\"],[4,[32,2],[\\\"click\\\",[30,0,[\\\"addBookmark\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"sr-only\\\"],[4,[32,2],[\\\"click\\\",[30,0,[\\\"addBookmark\\\"]]],null],[12],[1,\\\"\\\\n Bookmark\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@topic\\\",\\\"@lesson\\\"],[\\\"unless\\\",\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/syllabus/lesson-item.js\",\n \"scope\": function scope() {\n return [_routing.LinkTo, _helper.array, _modifier.on];\n },\n \"isStrictMode\": true\n }), _LessonItem), _LessonItem), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"bookmarks\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"addBookmark\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"addBookmark\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/syllabus/syllabus-lesson\", [\"exports\", \"@glimmer/component\", \"bocce/components/side-panel/syllabus/lesson-item\", \"@ember/routing\", \"@ember/modifier\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/helper\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _lessonItem, _routing, _modifier, _object, _tracking, _helper, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _SyllabusLesson;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"bocce/components/side-panel/syllabus/lesson-item\",0,\"@ember/routing\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/helper\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var SyllabusLesson = _exports.default = (_class = (_SyllabusLesson = /*#__PURE__*/function (_Component) {\n function SyllabusLesson() {\n var _this;\n _classCallCheck(this, SyllabusLesson);\n _this = _callSuper(this, SyllabusLesson, arguments);\n _initializerDefineProperty(_this, \"lessonExpanded\", _descriptor, _this);\n _this.lessonExpanded = true;\n return _this;\n }\n _inherits(SyllabusLesson, _Component);\n return _createClass(SyllabusLesson, [{\n key: \"formattedLessonNumber\",\n get: function get() {\n return this.args.lesson.number > 0 ? this.args.lesson.number : '';\n }\n }, {\n key: \"toggleLessonExpanded\",\n value: function toggleLessonExpanded() {\n this.lessonExpanded = !this.lessonExpanded;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n
    {{{this.formattedLessonNumber}}}
    \n {{{@lesson.title}}}\n
    \n
    \n {{#if this.lessonExpanded}}\n \n {{else}}\n \n {{/if}}\n
    \n
    \n
      \n {{#if this.lessonExpanded}}\n {{#each @lesson.items as |topic|}}\n \n {{/each}}\n {{/if}}\n
    \n
    \n */\n {\n \"id\": \"E5z3iZAc\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"syllabus-lesson \\\",[52,[30,1,[\\\"locked\\\"]],\\\"syllabus-lesson--locked\\\"]]]],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"syllabus-lesson__header\\\"],[4,[32,0],[\\\"click\\\",[30,0,[\\\"toggleLessonExpanded\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-lesson__info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-lesson__lesson-number\\\"],[12],[2,[30,0,[\\\"formattedLessonNumber\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"syllabus-lesson__lesson-title\\\"],[12],[2,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lessonExpanded\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-up\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[15,0,[29,[\\\"syllabus-lesson__content \\\",[52,[30,1,[\\\"locked\\\"]],\\\"syllabus-lesson__content--locked\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"lessonExpanded\\\"]],[[[42,[28,[31,2],[[28,[31,2],[[30,1,[\\\"items\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@topic\\\",\\\"@lesson\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[[30,2],[30,1],[30,3],[30,4]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@lesson\\\",\\\"topic\\\",\\\"@activeFilters\\\",\\\"@searchValue\\\"],[\\\"if\\\",\\\"each\\\",\\\"-track-array\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/syllabus/syllabus-lesson.js\",\n \"scope\": function scope() {\n return [_modifier.on, _lessonItem.default];\n },\n \"isStrictMode\": true\n }), _SyllabusLesson), _SyllabusLesson), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"lessonExpanded\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleLessonExpanded\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleLessonExpanded\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/side-panel/work-card\", [\"exports\", \"@glimmer/component\", \"bocce/components/chips/chip-submission\", \"@ember/routing\", \"@ember/helper\", \"@ember/service\", \"bocce/models/discussion\", \"bocce/models/assignment\", \"bocce/models/quiz\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _chipSubmission, _routing, _helper, _service, _discussion, _assignment, _quiz, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _WorkCard; // The work.assignments route redirects to one of three siblings:\n // submission, submission-new, or no-submissions. submission-new and\n // no-submissions are keyed by assignment_id so @current-when matches them\n // with the same @models. submission is keyed by submission_id, so we detect\n // it via a URL check against currentUserSubmission (a submission id string).\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"bocce/components/chips/chip-submission\",0,\"@ember/routing\",0,\"@ember/helper\",0,\"@ember/service\",0,\"bocce/models/discussion\",0,\"bocce/models/assignment\",0,\"bocce/models/quiz\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ASSIGNMENT_CURRENT_WHEN = [\"classroom.work.assignments\", \"classroom.work.submission-new\", \"classroom.work.no-submissions\"].join(\" \");\n var CARD_TYPES = {\n DISCUSSION: \"discussion\",\n ASSIGNMENT: \"assignment\",\n QUIZ: \"quiz\"\n };\n var WorkCard = _exports.default = (_class = (_WorkCard = /*#__PURE__*/function (_Component) {\n function WorkCard() {\n var _this;\n _classCallCheck(this, WorkCard);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, WorkCard, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"router\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"store\", _descriptor3, _this);\n return _this;\n }\n _inherits(WorkCard, _Component);\n return _createClass(WorkCard, [{\n key: \"itemType\",\n get: function get() {\n if (this.args.item instanceof _discussion.default) {\n return CARD_TYPES.DISCUSSION;\n } else if (this.args.item instanceof _assignment.default) {\n return CARD_TYPES.ASSIGNMENT;\n } else if (this.args.item instanceof _quiz.default) {\n return CARD_TYPES.QUIZ;\n } else {\n console.error(\"WorkCard: unsupported item type\");\n return undefined;\n }\n }\n }, {\n key: \"itemIcon\",\n get: function get() {\n if (this.itemType === CARD_TYPES.DISCUSSION) return \"\";else if (this.itemType === CARD_TYPES.ASSIGNMENT) return \"\";else if (this.itemType === CARD_TYPES.QUIZ) return \"\";else return \"\";\n }\n }, {\n key: \"itemRoute\",\n get: function get() {\n if (this.itemType === CARD_TYPES.DISCUSSION) return \"discussion\";else if (this.itemType === CARD_TYPES.ASSIGNMENT) return \"assignments\";else if (this.itemType === CARD_TYPES.QUIZ) return \"quiz\";else return \"\";\n }\n }, {\n key: \"assignmentCurrentWhen\",\n get: function get() {\n return this.itemType === CARD_TYPES.ASSIGNMENT ? ASSIGNMENT_CURRENT_WHEN : undefined;\n }\n // The submission route is keyed by submission_id, not assignment_id,\n // so @current-when can't match it via @model.\n // Check if the link should have .active class by\n // looking up the in-store submission and comparing its assignment id to the given activity id\n }, {\n key: \"isActiveSubmission\",\n get: function get() {\n if (this.itemType !== CARD_TYPES.ASSIGNMENT) return false;\n var url = this.router.currentURL || \"\";\n var match = url.match(/\\/submission\\/([^/?#]+)/);\n if (!match) return false;\n var submission = this.store.peekRecord(\"submission\", match[1]);\n if (!submission) return false;\n return submission.belongsTo(\"assignment\").id() === this.args.item.id;\n }\n // The teacher kicked the submission back for another attempt. Only\n // assignments carry teacher_requires_resubmission.\n }, {\n key: \"requiresResubmission\",\n get: function get() {\n return this.itemType === CARD_TYPES.ASSIGNMENT && this.args.item.teacher_requires_resubmission === \"needs_resubmit\";\n }\n }, {\n key: \"itemStatus\",\n get: function get() {\n var item = this.args.item;\n // A requested resubmission takes precedence: the work isn't \"done\" even\n // though a submission exists.\n if (this.requiresResubmission) {\n return _chipSubmission.STATUS.RESUBMIT;\n }\n var isSubmitted = false;\n if (this.itemType === CARD_TYPES.DISCUSSION) {\n isSubmitted = !!item.i_submitted;\n } else if (this.itemType === CARD_TYPES.ASSIGNMENT) {\n isSubmitted = !!item.currentUserSubmission;\n } else if (this.itemType === CARD_TYPES.QUIZ) {\n var attempts = item.hasMany(\"attempts\").value();\n isSubmitted = !!(attempts !== null && attempts !== void 0 && attempts.length);\n } else {\n isSubmitted = false;\n }\n // let isSubmitted = !!(item.i_submitted || item.currentUserSubmission || item.latestAttempt);\n if (isSubmitted) {\n return _chipSubmission.STATUS.SUBMITTED;\n } else {\n //Not submitted\n var pastDue = item.due_at ? new Date() > new Date(item.due_at) : false;\n return pastDue ? _chipSubmission.STATUS.OVERDUE : _chipSubmission.STATUS.NOT_SUBMITTED;\n }\n }\n // Only assignments expose a per-submission grade, and only show it once the grade matches the current submission\n }, {\n key: \"itemGrade\",\n get: function get() {\n if (this.itemType !== CARD_TYPES.ASSIGNMENT) return null;\n var item = this.args.item;\n if (item.currentUserSubmission && item.grade_matches_current_submission) {\n return item.currentUserSubmissionGrade || item.currentUserSubmissionScore;\n }\n return null;\n }\n }, {\n key: \"itemUnread\",\n get: function get() {\n var item = this.args.item;\n // Stays bold until completed: students see unfinished work or new activity;\n // instructors see new discussion activity / assignments needing attention.\n if (this.itemType === CARD_TYPES.DISCUSSION) {\n return this.session.isInstructor ? item.unread === true : item.needsStudentAttention;\n } else if (this.itemType === CARD_TYPES.ASSIGNMENT) {\n return this.session.isInstructor ? item.needsTeacherAttention : item.needsStudentAttention;\n } else return false;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.itemType}}\n \n
    \n
    {{{this.itemIcon}}}
    \n
    \n
    {{{@item.title}}}
    \n
    \n
    Due {{@item.formattedDueDate}}
    \n {{#unless this.session.isInstructor}}\n \n \n {{/unless}}\n
    \n
    \n
    \n \n {{/if}}\n */\n {\n \"id\": \"w7X4oVtu\",\n \"block\": \"[[[41,[30,0,[\\\"itemType\\\"]],[[[1,\\\" \\\"],[8,[32,0],[[16,\\\"aria-label\\\",[30,1,[\\\"title\\\"]]],[16,0,[29,[\\\"work-panel__card-link \\\",[52,[30,0,[\\\"isActiveSubmission\\\"]],\\\"active\\\"]]]]],[[\\\"@route\\\",\\\"@models\\\",\\\"@current-when\\\"],[[29,[\\\"classroom.work.\\\",[30,0,[\\\"itemRoute\\\"]]]],[28,[32,1],[[30,1,[\\\"id\\\"]]],null],[30,0,[\\\"assignmentCurrentWhen\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"work-card \\\",[52,[30,0,[\\\"itemUnread\\\"]],\\\"work-card--unread\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"work-card__icon-container\\\"],[12],[2,[30,0,[\\\"itemIcon\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"work-card__info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[2,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"work-card__metadata\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"work-card__due-date\\\"],[12],[1,\\\"Due \\\"],[1,[30,1,[\\\"formattedDueDate\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"work-card__divider fa-regular fa-pipe\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[8,[32,2],null,[[\\\"@status\\\",\\\"@grade\\\"],[[30,0,[\\\"itemStatus\\\"]],[30,0,[\\\"itemGrade\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@item\\\"],[\\\"if\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/side-panel/work-card.js\",\n \"scope\": function scope() {\n return [_routing.LinkTo, _helper.array, _chipSubmission.default];\n },\n \"isStrictMode\": true\n }), _WorkCard), _WorkCard), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"store\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/submission-footer\", [\"exports\", \"@glimmer/component\", \"@ember/object\", \"bocce/components/drag-and-drop\", \"bocce/components/quick-grader\", \"@ember/component\", \"bocce/components/rte\", \"bocce/components/attachments-container\", \"bocce/helpers/same\", \"@ember/modifier\", \"@ember/helper\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _dragAndDrop, _quickGrader, _component2, _rte, _attachmentsContainer, _same, _modifier, _helper, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _SubmissionFooter;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"bocce/components/drag-and-drop\",0,\"bocce/components/quick-grader\",0,\"@ember/component\",0,\"bocce/components/rte\",0,\"bocce/components/attachments-container\",0,\"bocce/helpers/same\",0,\"@ember/modifier\",0,\"@ember/helper\",0,\"@ember/service\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n var SubmissionFooter = _exports.default = (_class = (_SubmissionFooter = /*#__PURE__*/function (_Component) {\n function SubmissionFooter() {\n var _this;\n _classCallCheck(this, SubmissionFooter);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, SubmissionFooter, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(SubmissionFooter, _Component);\n return _createClass(SubmissionFooter, [{\n key: \"postComment\",\n value: function postComment() {\n //If we were to directly call the passed in postSubmissionComment function from the template,\n //Ember would include a pointer event. We don't want that, which is why we are calling it through\n //an action.\n this.args.postSubmissionComment();\n }\n }, {\n key: \"rtePositioning\",\n get: function get() {\n return this.session.isInstructor ? \"\" : \"fixed-bottom\";\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n \n \n \n {{#if @showSpeedGrader}}\n {{#if @session.isInstructor}}\n {{#unless @session.gradeLock}}\n \n {{/unless}}\n {{/if}}\n {{/if}}\n \n
    \n \n }}\n
    \n \n \n \n
    \n */\n {\n \"id\": \"uWcEUmeK\",\n \"block\": \"[[[8,[32,0],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\"],[[30,1],[30,2],[30,3]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Assignment Submission Comment Text Editor\\\"],[15,0,[29,[\\\"reply-container reply-quick \\\",[52,[30,4],\\\"active-editor\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"style\\\"],[12],[1,\\\"\\\\n .rte-editor-input:hover {\\\\n overflow-y: auto;\\\\n }\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5],[[[41,[30,6,[\\\"isInstructor\\\"]],[[[41,[51,[30,6,[\\\"gradeLock\\\"]]],[[[1,\\\" \\\"],[8,[32,1],null,[[\\\"@grades\\\",\\\"@submission\\\",\\\"@switchSubmissionGrade\\\",\\\"@stageGrade\\\",\\\"@stagedScore\\\"],[[30,7],[30,8],[30,9],[30,10],[30,11]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[8,[32,2],null,[[\\\"@userInput\\\",\\\"@updateArchive\\\",\\\"@controller\\\",\\\"@positioningBehavior\\\",\\\"@wrapper\\\",\\\"@freezeHeight\\\"],[[30,12],[30,13],[30,3],[30,0,[\\\"rtePositioning\\\"]],\\\".reply-container\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-footer\\\"],[12],[1,\\\"\\\\n \\\"],[8,[32,3],null,[[\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\"],[[30,14],[30,15],[30,16],[30,17]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__footer-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn rte__attach\\\"],[24,\\\"aria-label\\\",\\\"Attach Files.\\\"],[4,[32,4],[\\\"click\\\",[30,18]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,19]],[[[41,[30,20],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[[30,21],\\\" rte__post\\\"]]],[24,\\\"aria-label\\\",\\\"Post Submission Comment\\\"],[4,[32,4],[\\\"click\\\",[30,0,[\\\"postComment\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[14,\\\"aria-label\\\",\\\"Post Assignment Comment\\\"],[15,\\\"attachments-uploading\\\",[30,22]],[14,\\\"disabled\\\",\\\"\\\"],[15,0,[29,[[30,21],\\\" rte__post working\\\"]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]]],[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@inEditor\\\",\\\"@showSpeedGrader\\\",\\\"@session\\\",\\\"@grades\\\",\\\"@submission\\\",\\\"@switchSubmissionGrade\\\",\\\"@stageGrade\\\",\\\"@stagedScore\\\",\\\"@bodyInput\\\",\\\"@updateArchive\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@hideAddComment\\\",\\\"@requirementsMet\\\",\\\"@postAdditionalClasses\\\",\\\"@attachmentsUploading\\\"],[\\\"if\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/submission-footer.js\",\n \"scope\": function scope() {\n return [_dragAndDrop.default, _quickGrader.default, _rte.default, _attachmentsContainer.default, _modifier.on];\n },\n \"isStrictMode\": true\n }), _SubmissionFooter), _SubmissionFooter), _applyDecoratedDescriptor(_class.prototype, \"postComment\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"postComment\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/submission-no-rubric\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/service\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _component2, _service, _tracking, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/service\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n

    \n {{{@openAssignment.title}}}\n

    \n \n Due\n {{@openAssignment.formattedDate}}\n \n

    \n {{#if @openAssignmentView.grade}}\n Grade:\n {{@openAssignmentView.grade}}.\n {{#if @openAssignmentView.daysLate}}Late: {{@openAssignmentView.daysLate}} days.{{/if}}\n {{else}}\n Assignment not yet graded.\n {{/if}}\n

    \n \n
    \n \n
    \n {{#if @openAssignmentView.user}}\n
    \n Hide Instructions\n \n {{#if @showcaseOpen}}\n {{#if this.session.isInstructor}}\n \n {{/if}}\n {{/if}}\n \n {{#if @controller.submissionNavigation.loading}}\n
    \n \n Loading Submission...\n
    \n {{/if}}\n
    \n
    \n \n \n \n {{@openAssignmentView.user.short_name}}\n \n \n Submitted\n {{longdate @openAssignmentView.date}}{{#if @openAssignmentView.late}},\n {{@openAssignmentView.daysLate}}\n late{{/if}}\n \n
    \n {{#if @openAssignmentView.grade}}\n {{#if this.session.isInstructor}}\n
    \n {{#if @openAssignmentView.grade_matches_current_submission}}\n {{#if (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")}}\n \n \n \n \n \n
    \n {{/if}}\n {{else}}{{#unless\n (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n \n Previous\n {{/unless}}{{/if}}\n \n {{#unless\n (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n {{#if (same \"0\" @openAssignmentView.score)}}\n
    \n \n No Credit\n
    \n {{else}}\n
    \n \n {{@openAssignmentView.grade}}\n ({{@openAssignmentView.percentage}}%)\n
    \n {{/if}}\n \n {{#unless @openAssignmentView.grade_matches_current_submission}}Pending Re-grade
    {{/unless}}\n \n {{#unless (same @openAssignmentView.user.profile.can_showcase \"no\")}}\n \n {{if @showcaseOpen \"Cancel Showcase\" \"Showcase\"}}\n \n {{else}}\n
    \n Can't Showcase\n
    \n {{/unless}}\n \n {{else}}\n {{#unless @openAssignmentView.grade_matches_current_submission}}\n {{#unless\n (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n \n
    Pending Re-grade
    \n {{else}}\n \n \n \n \n \n \n {{/unless}}\n {{/unless}}\n {{/unless}}\n \n {{else}}\n
    \n {{#if @openAssignmentView.grade_matches_current_submission}}\n {{#if (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")}}\n {{#unless this.session.readOnly}}\n {{#if @openAssignmentView.my_submission}}\n \n \n \n \n \n
    \n Resubmit\n {{/if}}\n {{/unless}}\n {{else}}\n {{#if (same \"0\" @openAssignmentView.score)}}\n
    \n \n Submission Rejected\n
    \n {{else}}\n
    \n \n {{@openAssignmentView.grade}}\n ({{@openAssignmentView.percentage}}%)\n
    \n {{#if @canResubmit}}\n Resubmit\n {{/if}}\n {{/if}}\n {{/if}}\n {{else if\n (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n \n
    Pending Re-grade
    \n {{else}}\n \n Previous\n {{/if}}\n {{#unless @openAssignmentView.grade_matches_current_submission}}\n {{#unless\n (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n {{#if (same \"0\" @openAssignmentView.score)}}\n
    \n No Credit\n
    \n {{else}}\n
    \n {{@openAssignmentView.grade}}\n ({{@openAssignmentView.percentage}}%)\n
    \n {{/if}}\n
    \n
    \n Pending Re-grade\n
    \n {{/unless}}\n {{/unless}}\n \n {{/if}}\n {{else}}\n {{#if this.session.isInstructor}}\n {{#if (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n
    \n \n \n \n \n
    \n
    \n {{else}}\n
    \n Not yet graded\n
    \n {{/if}}\n {{/if}}\n {{#if @openAssignmentView.my_submission}}\n {{#if (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")}}\n
    \n
    \n \n \n \n \n
    \n Resubmit\n
    \n {{/if}}\n {{/if}}\n {{/if}}\n \n
    \n {{#if this.session.isAdmin}}\n
    \n {{/if}}\n {{{@openAssignmentView.body}}}\n \n {{#if @openAssignmentView.attachments}}\n
      \n
    • \n Attachments\n
    • \n {{#each @openAssignmentView.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n This assignment was submitted after the timer ran out.
    \n \n {{#if @submissionHistory}}\n
    \n
    \n Older Versions:
    \n
      \n {{#each @submissionHistory as |version|}}\n \n
    • \n {{#if this.session.isAdmin}}\n \n {{/if}}\n
    • \n {{/each}}\n
    \n
    \n {{/if}}\n {{/if}}\n \n \n
    \n {{#if @openAssignmentView.user}}\n {{#if this.comments}}\n \n
    \n Hide Comments\n \n
    \n
    \n Show Comments\n \n
    \n \n
      \n {{#each @commentTimeline as |comment|}}\n \n {{/each}}\n
    \n {{/if}}\n {{#unless this.session.readOnly}}\n
    \n {{#if (same @openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")}}\n {{#unless this.session.readOnly}}\n {{#if @openAssignmentView.my_submission}}\n Resubmit Assignment\n

    Or Comment on it Below:

    \n {{/if}}\n {{/unless}}\n {{/if}}\n
    \n \n {{/unless}}\n {{/if}}\n
    \n \n {{#if @isWorking}}\n
    \n {{/if}}\n */\n {\n \"id\": \"IFzuqGeH\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"assignment-v1 active \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[14,1,\\\"assignment\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,\\\"aria-label\\\",[29,[\\\"Assignment Submission Contents - \\\",[30,1,[\\\"title\\\"]]]]],[15,0,[29,[\\\"submission-container scrollbar\\\\n \\\",[52,[51,[30,2,[\\\"user\\\"]]],\\\"no-submissions\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"submission-body-instructor\\\"]]]],[14,\\\"tabindex\\\",\\\"0\\\"],[14,1,\\\"submission-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,3],null,[[\\\"@assignment\\\",\\\"@onClick\\\"],[[30,2],[30,0,[\\\"toggleStudentList\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-due-date\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment due date: \\\",[30,0,[\\\"activeAssignment\\\",\\\"formattedDate\\\"]]]]],[12],[1,\\\"\\\\n Due\\\\n \\\"],[1,[30,1,[\\\"formattedDate\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"grade\\\"]],[[[1,\\\" Grade:\\\\n \\\"],[1,[30,2,[\\\"grade\\\"]]],[1,\\\".\\\\n \\\"],[41,[30,2,[\\\"daysLate\\\"]],[[[1,\\\"Late: \\\"],[1,[30,2,[\\\"daysLate\\\"]]],[1,\\\" days.\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Assignment not yet graded.\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"drawer-instructions\\\"],[14,3,\\\"assignment-instructions-handle\\\"],[14,1,\\\"assignment-instructions-handle\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-instructions\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Submission Instructions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,8],null,[[\\\"@content\\\"],[[30,1,[\\\"description\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"user\\\"]],[[[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"assignment-instructions-handle\\\"],[14,\\\"for\\\",\\\"assignment-instructions-handle\\\"],[12],[10,0],[14,0,\\\"view-instructions button-link\\\"],[12],[1,\\\"\\\\n Show Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[10,0],[14,0,\\\"hide-instructions button-link\\\"],[12],[1,\\\"\\\\n Hide Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[13],[1,\\\"\\\\n\\\"],[41,[30,3],[[[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[8,[39,11],null,[[\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\"],[[30,4],[30,5],[30,6],[30,7],[28,[37,12],[[30,8],[30,9,[\\\"id\\\"]],[30,9,[\\\"showcase\\\",\\\"id\\\"]],[30,9,[\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],[30,2,[\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,\\\"data-test-selector\\\",\\\"submission-body\\\"],[15,0,[29,[\\\"submission-body\\\\n \\\",[52,[30,10,[\\\"submissionNavigation\\\",\\\"loading\\\"]],\\\"submission-body--loading\\\"]]]],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Submission Body\\\"],[15,1,[29,[\\\"assignment-version-\\\",[30,2,[\\\"id\\\"]],\\\"-\\\",[30,2,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,10,[\\\"submissionNavigation\\\",\\\"loading\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-body__loading-indicator\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading Submission...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"submission-details\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-author-details\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,13],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,2,[\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name author-submission\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,2,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"user-name-info\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,16],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,2,[\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"discussion-reply-time \\\",[52,[30,2,[\\\"late\\\"]],\\\"assn-late\\\"]]]],[12],[10,1],[14,0,\\\"submitted-confirm\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Submitted\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,17],[[30,2,[\\\"date\\\"]]],null]],[41,[30,2,[\\\"late\\\"]],[[[1,\\\",\\\\n \\\"],[1,[30,2,[\\\"daysLate\\\"]]],[1,\\\"\\\\n late\\\"]],[]],null],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"grade\\\"]],[[[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"]],[]],[[[41,[51,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Previous\\\\n \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[41,[28,[37,18],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grade-wrap grade-no-credit\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-minus-circle\\\"],[14,\\\"aria-label\\\",\\\"Submission has been rejected\\\"],[12],[13],[1,\\\"\\\\n No Credit\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grade-wrap\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check-circle\\\"],[14,\\\"aria-label\\\",\\\"Grade Matches Current Submission\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,2,[\\\"percentage\\\"]]],[1,\\\"%)\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n \\\"],[41,[51,[30,2,[\\\"grade_matches_current_submission\\\"]]],[[[10,0],[14,0,\\\"regrade-assignment\\\"],[12],[1,\\\"Pending Re-grade\\\"],[13]],[]],null],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[28,[37,18],[[30,2,[\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],\\\"no\\\"],null]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,11],[30,2,[\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,3],\\\"Cancel Showcase\\\",\\\"Showcase\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-button\\\"],[12],[1,\\\"\\\\n Can't Showcase\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,2,[\\\"grade_matches_current_submission\\\"]]],[[[41,[51,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"regrade-assignment\\\"],[12],[1,\\\"Pending Re-grade\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[41,[30,2,[\\\"my_submission\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,12],[30,2,[\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],[[[41,[28,[37,18],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grade-wrap grade-no-rejected\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-minus-circle\\\"],[14,\\\"aria-label\\\",\\\"Submission has been rejected\\\"],[12],[13],[1,\\\"\\\\n Submission Rejected\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grade-wrap\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check-circle\\\"],[14,\\\"aria-label\\\",\\\"Grade Matches Current Submission\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,2,[\\\"percentage\\\"]]],[1,\\\"%)\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,13],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,12],[30,2,[\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]],[[[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"regrade-assignment\\\"],[12],[1,\\\"Pending Re-grade\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Previous\\\\n \\\"]],[]]]],[]]],[41,[51,[30,2,[\\\"grade_matches_current_submission\\\"]]],[[[41,[51,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[41,[28,[37,18],[\\\"0\\\",[30,2,[\\\"score\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grade-wrap grade-no-credit\\\"],[12],[1,\\\"\\\\n No Credit\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"grade-wrap\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,2,[\\\"percentage\\\"]]],[1,\\\"%)\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"regrade-assignment\\\"],[12],[1,\\\"\\\\n Pending Re-grade\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n Not yet graded\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[41,[30,2,[\\\"my_submission\\\"]],[[[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-file-alt fa-stack-1x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sync fa-stack-2x text-danger\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,12],[30,2,[\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-body-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"submission-body-delete far fa-trash\\\"],[4,[38,15],[\\\"click\\\",[30,14]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[2,[30,2,[\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"assignment-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,2,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,24],null,[[\\\"@showDelete\\\",\\\"@attachment\\\",\\\"@deleteAttachment\\\"],[[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,15],[30,16]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[15]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"late-assignment-marker\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n This assignment was submitted after the timer ran out.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,17],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignment-history\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"presentations\\\"],[14,0,\\\"submission-comments-header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Older Versions:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"reply-list\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Previous Submissions\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,17]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"assignment-version-post\\\"],[15,\\\"version\\\",[29,[[30,18,[\\\"attempt\\\"]]]]],[15,1,[29,[\\\"assignment-version-\\\",[30,2,[\\\"id\\\"]],\\\"-\\\",[30,18,[\\\"attempt\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"assignment-version\\\"],[15,\\\"version\\\",[29,[[30,18,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"submission-history-delete far fa-trash\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,19],[30,18,[\\\"attempt\\\"]],[30,18,[\\\"attachments\\\"]],[30,2,[\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"assignment-version-post-label\\\"],[15,\\\"for\\\",[29,[\\\"assignment-version-\\\",[30,2,[\\\"id\\\"]],\\\"-\\\",[30,18,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Submitted:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,17],[[30,18,[\\\"submitted_at\\\"]]],null]],[1,\\\"\\\\n\\\"],[41,[30,18,[\\\"grade_matches_current_submission\\\"]],[[[41,[30,18,[\\\"grade\\\"]],[[[1,\\\" |\\\\n \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Grade:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-grade\\\"],[12],[1,[30,18,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,18,[\\\"percentage\\\"]]],[1,\\\"%)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" |\\\\n \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Not Graded\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-version-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-version-body\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,18,[\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,18,[\\\"attachment_objects\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"assignment-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,18,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,24],null,[[\\\"@attachment\\\"],[[30,20]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[20]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link view-in-comments\\\"],[24,4,\\\"button\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,10,[\\\"scrollToComment\\\"]],[30,18,[\\\"attempt\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-comment\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n View in comments\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[18]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,25],null,[[\\\"@showHeader\\\",\\\"@currentSubmissionAuthor\\\",\\\"@isInstructor\\\",\\\"@openAssignment\\\",\\\"@openAssignmentView\\\",\\\"@viewSubmission\\\",\\\"@prevSubmission\\\",\\\"@nextSubmission\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@onClose\\\",\\\"@closed\\\"],[true,[30,2,[\\\"user\\\",\\\"id\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,1],[30,2],[30,21],[30,22],[30,23],[30,24],[30,0,[\\\"closeStudentList\\\"]],[28,[37,26],[[30,0,[\\\"showStudentList\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-comments\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"user\\\"]],[[[41,[30,0,[\\\"comments\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submission-comments-header button-link\\\\n \\\",[52,[30,0,[\\\"commentsHidden\\\"]],\\\"comments-hidden\\\"]]]],[24,\\\"aria-expanded\\\",\\\"false\\\"],[24,\\\"aria-controls\\\",\\\"reply-list\\\"],[4,[38,15],[\\\"click\\\",[30,0,[\\\"toggleComments\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"view-comments button-link\\\"],[12],[1,\\\"\\\\n Hide Comments\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"hide-comments button-link\\\"],[12],[1,\\\"\\\\n Show Comments\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"reply-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,23],[[28,[37,23],[[30,25]],null]],null],null,[[[1,\\\" \\\"],[8,[39,27],null,[[\\\"@response\\\",\\\"@isInstructor\\\",\\\"@userId\\\",\\\"@scrollToAssignment\\\",\\\"@repostSubmissionComment\\\",\\\"@deleteAssignmentComment\\\",\\\"@deleteSubmissionCommentAttachment\\\",\\\"@isAdmin\\\",\\\"@assignmentId\\\",\\\"@sectionId\\\",\\\"@openAssignmentId\\\"],[[30,26],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"session\\\",\\\"user\\\",\\\"id\\\"]],[30,27],[30,28],[30,29],[30,30],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,2,[\\\"assignment\\\",\\\"db_id\\\"]],[30,0,[\\\"session\\\",\\\"section\\\",\\\"id\\\"]],[30,2,[\\\"id\\\"]]]],null],[1,\\\"\\\\n\\\"]],[26]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"submission-comment-entry \\\",[52,[30,31],\\\"uploading\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,2,[\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[41,[30,2,[\\\"my_submission\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,15],[\\\"click\\\",[28,[37,12],[[30,12],[30,2,[\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-comment-header\\\"],[12],[1,\\\"Or Comment on it Below:\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,28],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateArchive\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\",\\\"@postAdditionalClasses\\\",\\\"@showSpeedGrader\\\",\\\"@submission\\\",\\\"@switchSubmissionGrade\\\",\\\"@stageGrade\\\",\\\"@stagedScore\\\",\\\"@session\\\",\\\"@grades\\\"],[[30,32],[30,33],[30,10],[30,34],[30,35],[30,36],[30,37],[30,38],[30,16],[30,39],[30,40],[30,41],[30,42],[30,43],[30,44],[30,45],\\\"btn btn-black\\\",true,[30,2],[30,46],[30,47],[30,48],[30,0,[\\\"session\\\"]],[30,49]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,50],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bocce-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-2x fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@openAssignment\\\",\\\"@openAssignmentView\\\",\\\"@showcaseOpen\\\",\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\",\\\"@response\\\",\\\"@controller\\\",\\\"@toggleShowcase\\\",\\\"@assignmentSubmission\\\",\\\"@canResubmit\\\",\\\"@deleteSubmissionBody\\\",\\\"attachment\\\",\\\"@deleteAttachment\\\",\\\"@submissionHistory\\\",\\\"version\\\",\\\"@deleteHistoricSubmission\\\",\\\"attachment\\\",\\\"@viewAssignmentSubmission\\\",\\\"@prev_submission\\\",\\\"@next_submission\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@commentTimeline\\\",\\\"comment\\\",\\\"@scrollToAssignment\\\",\\\"@repostSubmissionComment\\\",\\\"@deleteAssignmentComment\\\",\\\"@deleteSubmissionCommentAttachment\\\",\\\"@uploadInProgress\\\",\\\"@files\\\",\\\"@store\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@attachmentsToContainer\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\",\\\"@switchSubmissionGrade\\\",\\\"@stageGrade\\\",\\\"@stagedScore\\\",\\\"@grades\\\",\\\"@isWorking\\\"],[\\\"div\\\",\\\"if\\\",\\\"unless\\\",\\\"submissions-list-button\\\",\\\"h2\\\",\\\"span\\\",\\\"p\\\",\\\"input\\\",\\\"legacy-boot\\\",\\\"label\\\",\\\"i\\\",\\\"showcase-post\\\",\\\"fn\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"on\\\",\\\"user-icons\\\",\\\"longdate\\\",\\\"same\\\",\\\"br\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\",\\\"quickgrader-student-list\\\",\\\"not\\\",\\\"assignment/assignment-comment\\\",\\\"submission-footer\\\"]]\",\n \"moduleName\": \"bocce/components/submission-no-rubric.hbs\",\n \"isStrictMode\": false\n });\n var SubmissionNoRubricComponent = _exports.default = (_dec = (0, _service.service)(\"userprofile\"), _class = /*#__PURE__*/function (_Component) {\n function SubmissionNoRubricComponent() {\n var _this;\n _classCallCheck(this, SubmissionNoRubricComponent);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, SubmissionNoRubricComponent, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"userprofileService\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"commentsHidden\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"showStudentList\", _descriptor4, _this);\n return _this;\n }\n _inherits(SubmissionNoRubricComponent, _Component);\n return _createClass(SubmissionNoRubricComponent, [{\n key: \"comments\",\n get: function get() {\n var _this$args$openAssign;\n var comments = (_this$args$openAssign = this.args.openAssignmentView) === null || _this$args$openAssign === void 0 || (_this$args$openAssign = _this$args$openAssign.hasMany(\"comments\")) === null || _this$args$openAssign === void 0 ? void 0 : _this$args$openAssign.value();\n return comments || [];\n }\n }, {\n key: \"toggleComments\",\n value: function toggleComments() {\n this.commentsHidden = !this.commentsHidden;\n }\n }, {\n key: \"closeStudentList\",\n value: function closeStudentList() {\n this.showStudentList = false;\n }\n }, {\n key: \"toggleStudentList\",\n value: function toggleStudentList() {\n this.showStudentList = !this.showStudentList;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"userprofileService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"commentsHidden\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"showStudentList\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleComments\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleComments\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeStudentList\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeStudentList\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleStudentList\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleStudentList\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, SubmissionNoRubricComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/submission-view\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _component2, _tracking, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor, _descriptor2;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless @controller.rubric_criteria}}\n \n {{else}}\n
    \n \n \n

    \n {{{@controller.openAssignment.title}}}\n

    \n \n Due\n {{@controller.openAssignment.formattedDate}}\n \n

    \n {{#if @openAssignmentView.grade}}\n Grade:\n {{@openAssignmentView.grade}}.\n {{#if @openAssignmentView.daysLate}}Late: {{@openAssignmentView.daysLate}} days.{{/if}}\n {{else}}\n Assignment not yet graded.\n {{/if}}\n

    \n \n
    \n \n \n
    \n {{#if @controller.openAssignmentView.user}}\n
    \n Hide Instructions\n \n {{#if @controller.showcaseOpen}}\n {{#if @controller.session.isInstructor}}\n \n {{/if}}\n {{/if}}\n \n {{#if @controller.submissionNavigation.loading}}\n
    \n \n Loading Submission...\n
    \n {{/if}}\n
    \n
    \n {{log\n \"userprofile\"\n this.userprofileService\n this.userprofileService.toggleUserProfile\n }}\n \n \n \n {{@controller.openAssignmentView.user.short_name}}\n \n \n Submitted\n {{longdate @controller.openAssignmentView.date}}{{#if\n @controller.openAssignmentView.late\n }},\n {{@controller.openAssignmentView.daysLate}}\n late{{/if}}\n \n
    \n {{#if @controller.openAssignmentView.grade}}\n {{#if @controller.session.isInstructor}}\n
    \n {{#unless\n (same\n @controller.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\"\n )\n }}\n {{#if\n (and\n @controller.openAssignmentView.grade_matches_current_submission\n @controller.openAssignmentView.score\n )\n }}\n {{#if (not @controller.isWorking)}}\n \n {{/if}}\n {{/if}}\n \n {{#unless (same @controller.openAssignmentView.user.profile.can_showcase \"no\")}}\n \n {{if @controller.showcaseOpen \"Cancel Showcase\" \"Showcase\"}}\n
    \n {{else}}\n
    \n Can't Showcase\n
    \n {{/unless}}\n {{/unless}}\n
    \n {{else}}\n
    \n {{#if @controller.openAssignmentView.grade_matches_current_submission}}\n {{#if\n (same\n @controller.openAssignmentView.teacher_requires_resubmission\n \"needs_resubmit\"\n )\n }}\n {{#unless @controller.session.readOnly}}\n {{#if @controller.openAssignmentView.my_submission}}\n Resubmit\n {{/if}}\n {{/unless}}\n {{else}}\n {{#if (same \"0\" @controller.openAssignmentView.score)}}\n Submission Rejected\n {{else}}\n {{#if (not @controller.isWorking)}}\n \n {{/if}}\n {{#if @controller.canResubmit}}\n Resubmit\n {{/if}}\n {{/if}}\n {{/if}}\n {{else if\n (same\n @controller.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\"\n )\n }}\n \n \n \n \n
    \n
    Resubmit Assignment
    \n
    You must submit a new\n attempt in order to receive a grade
    \n
    \n
    \n Resubmit\n {{else}}\n {{#if (same \"0\" @controller.openAssignmentView.score)}}\n No Credit\n {{else}}\n
    \n
    \n
    Current Grade:\n {{@controller.openAssignmentView.percentage}}%
    \n
    \n Pending Re-grade\n
    \n
    \n {{@controller.openAssignmentView.grade}}
    \n \n {{/if}}\n {{/if}}\n \n {{/if}}\n {{else}}\n {{#if @controller.openAssignmentView.my_submission}}\n {{#if\n (same\n @controller.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\"\n )\n }}\n
    \n \n \n \n \n
    \n
    Resubmit Assignment
    \n
    You must submit a new attempt in\n order to receive a grade
    \n
    \n
    \n Resubmit\n \n {{/if}}\n {{/if}}\n {{/if}}\n \n
    \n {{#if @controller.session.isAdmin}}\n
    \n {{/if}}\n {{{@controller.openAssignmentView.body}}}\n \n {{#if @controller.openAssignmentView.attachments}}\n
      \n
    • \n Attachments\n
    • \n {{#each @controller.openAssignmentView.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n This assignment was submitted after the timer ran out.
    \n \n {{#if @controller.submissionHistory}}\n
    \n
    \n Older Versions:
    \n
      \n {{#each @controller.submissionHistory as |version|}}\n \n
    • \n {{#if @controller.session.isAdmin}}\n \n {{/if}}\n
    • \n {{/each}}\n
    \n
    \n {{/if}}\n {{/if}}\n \n \n
    \n {{#if @controller.openAssignmentView.user}}\n {{#if @controller.comments}}\n \n
    \n Hide Comments\n \n
    \n
    \n Show Comments\n \n
    \n \n
      \n {{#each @controller.commentTimeline as |comment|}}\n \n {{/each}}\n
    \n {{/if}}\n {{#if (and @controller.session.isInstructor @controller.rubricService.isGrading)}}\n \n
    \n \n
    \n \n {{/if}}\n \n {{#unless\n (or\n @controller.session.readOnly\n (and @controller.session.isInstructor @controller.rubricService.isGrading)\n )\n }}\n \n {{#if\n (same @controller.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n {{#unless @controller.session.readOnly}}\n {{#if @controller.openAssignmentView.my_submission}}\n Resubmit Assignment\n

    Or Comment on it Below:

    \n {{/if}}\n {{/unless}}\n {{/if}}\n \n
    \n {{/unless}}\n \n {{#if (and @controller.session.isInstructor (not @controller.rubricService.isGrading))}}\n
    \n {{#if\n (and\n (notnull @controller.openAssignmentView.score)\n @controller.openAssignmentView.grade_matches_current_submission\n )\n }}\n \n {{else}}\n \n {{/if}}\n
    \n {{/if}}\n {{/if}}\n \n \n {{#if @controller.isWorking}}\n
    \n {{/if}}\n {{/unless}}\n */\n {\n \"id\": \"U+mFusNW\",\n \"block\": \"[[[41,[51,[30,1,[\\\"rubric_criteria\\\"]]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@assignments\\\",\\\"@canResubmit\\\",\\\"@attachment\\\",\\\"@goToAssignment\\\",\\\"@openAssignment\\\",\\\"@closeModals\\\",\\\"@prev_submission\\\",\\\"@viewAssignmentSubmission\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@next_submission\\\",\\\"@showcaseOpen\\\",\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\",\\\"@assignmentSubmission\\\",\\\"@submissionHistory\\\",\\\"@commentTimeline\\\",\\\"@comment\\\",\\\"@scrollToAssignment\\\",\\\"@repostSubmissionComment\\\",\\\"@deleteAssignmentComment\\\",\\\"@deleteSubmissionCommentAttachment\\\",\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@attachmentsToContainer\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\",\\\"@openAssignmentView\\\",\\\"@switchSubmissionGrade\\\",\\\"@stageGrade\\\",\\\"@stagedScore\\\",\\\"@grades\\\",\\\"@closeModals\\\",\\\"@isWorking\\\",\\\"@toggleShowcase\\\",\\\"@deleteHistoricSubmission\\\",\\\"@deleteSubmissionBody\\\"],[[30,1,[\\\"assignments\\\"]],[30,1,[\\\"canResubmit\\\"]],[30,1,[\\\"attachment\\\"]],[30,1,[\\\"goToAssignment\\\"]],[30,1,[\\\"openAssignment\\\"]],[30,1,[\\\"closeModals\\\"]],[30,1,[\\\"prev_submission\\\"]],[30,1,[\\\"viewAssignmentSubmission\\\"]],[30,1,[\\\"setAssignmentSubmissionsHiddenStatus\\\"]],[30,1,[\\\"next_submission\\\"]],[30,1,[\\\"showcaseOpen\\\"]],[30,1,[\\\"showcaseTitle\\\"]],[30,1,[\\\"showcaseComment\\\"]],[30,1,[\\\"readyToShowcase\\\"]],[30,1,[\\\"changeShowcaseWeek\\\"]],[30,1,[\\\"postShowcase\\\"]],[30,1,[\\\"assignmentSubmission\\\"]],[30,1,[\\\"submissionHistory\\\"]],[30,1,[\\\"commentTimeline\\\"]],[30,1,[\\\"comment\\\"]],[30,1,[\\\"scrollToAssignment\\\"]],[30,1,[\\\"repostSubmissionComment\\\"]],[30,1,[\\\"deleteAssignmentComment\\\"]],[30,1,[\\\"deleteSubmissionCommentAttachment\\\"]],[30,1,[\\\"files\\\"]],[30,1,[\\\"store\\\"]],[30,1],[30,1,[\\\"noRec\\\"]],[30,1,[\\\"inEditor\\\"]],[30,1,[\\\"bodyInput\\\"]],[30,1,[\\\"updateLocalDocs\\\"]],[30,1,[\\\"attachmentsToContainer\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1,[\\\"encodingVideosToContainer\\\"]],[30,1,[\\\"renameAttachment\\\"]],[30,1,[\\\"requirementsMet\\\"]],[30,1,[\\\"addFile\\\"]],[30,1,[\\\"postSubmissionComment\\\"]],[30,1,[\\\"attachmentsUploading\\\"]],[30,1,[\\\"openAttachmentDrawer\\\"]],[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"switchSubmissionGrade\\\"]],[30,1,[\\\"stageGrade\\\"]],[30,1,[\\\"stagedScore\\\"]],[30,1,[\\\"grades\\\"]],[30,1,[\\\"closeModals\\\"]],[30,1,[\\\"isWorking\\\"]],[30,1,[\\\"toggleShowcase\\\"]],[30,2],[30,1,[\\\"deleteSubmissionBody\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"assignment-v1 active \\\",[52,[30,1,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[14,1,\\\"assignment\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,\\\"aria-label\\\",[29,[\\\"Assignment Submission Contents - \\\",[30,3,[\\\"title\\\"]]]]],[15,0,[29,[\\\"submission-container scrollbar\\\\n \\\",[52,[51,[30,4,[\\\"user\\\"]]],\\\"no-submissions\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"submission-body-instructor\\\"]]]],[14,\\\"tabindex\\\",\\\"0\\\"],[14,1,\\\"submission-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@assignment\\\",\\\"@onClick\\\"],[[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"toggleStudentList\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"openAssignment\\\",\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-due-date\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment due date: \\\",[30,1,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]]]],[12],[1,\\\"\\\\n Due\\\\n \\\"],[1,[30,1,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,4,[\\\"grade\\\"]],[[[1,\\\" Grade:\\\\n \\\"],[1,[30,4,[\\\"grade\\\"]]],[1,\\\".\\\\n \\\"],[41,[30,4,[\\\"daysLate\\\"]],[[[1,\\\"Late: \\\"],[1,[30,4,[\\\"daysLate\\\"]]],[1,\\\" days.\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Assignment not yet graded.\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"drawer-instructions\\\"],[14,3,\\\"assignment-instructions-handle\\\"],[14,1,\\\"assignment-instructions-handle\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-instructions\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Submission Instructions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@content\\\"],[[30,1,[\\\"openAssignment\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@criteria\\\"],[[30,1,[\\\"rubric_criteria\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"openAssignmentView\\\",\\\"user\\\"]],[[[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"assignment-instructions-handle\\\"],[14,\\\"for\\\",\\\"assignment-instructions-handle\\\"],[12],[10,0],[14,0,\\\"view-instructions button-link\\\"],[12],[1,\\\"\\\\n Show Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[10,0],[14,0,\\\"hide-instructions button-link\\\"],[12],[1,\\\"\\\\n Hide Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"showcaseOpen\\\"]],[[[41,[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\"],[[30,1,[\\\"showcaseTitle\\\"]],[30,1,[\\\"showcaseComment\\\"]],[30,1,[\\\"readyToShowcase\\\"]],[30,1,[\\\"changeShowcaseWeek\\\"]],[28,[37,14],[[30,1,[\\\"postShowcase\\\"]],[30,1,[\\\"response\\\",\\\"id\\\"]],[30,1,[\\\"response\\\",\\\"showcase\\\",\\\"id\\\"]],[30,1,[\\\"response\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,\\\"data-test-selector\\\",\\\"submission-body\\\"],[15,0,[29,[\\\"submission-body\\\\n \\\",[52,[30,1,[\\\"submissionNavigation\\\",\\\"loading\\\"]],\\\"submission-body--loading\\\"]]]],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Submission Body\\\"],[15,1,[29,[\\\"assignment-version-\\\",[30,1,[\\\"openAssignmentView\\\",\\\"id\\\"]],\\\"-\\\",[30,1,[\\\"openAssignmentView\\\",\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"submissionNavigation\\\",\\\"loading\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-body__loading-indicator\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading Submission...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"submission-details \\\",[52,[30,0,[\\\"rubricDetailsShown\\\"]],\\\"rubric-open\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-author-details\\\"],[12],[1,\\\"\\\\n \\\"],[1,[54,[\\\"userprofile\\\",[30,0,[\\\"userprofileService\\\"]],[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]]]]],[1,\\\"\\\\n \\\"],[8,[39,16],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,1,[\\\"openAssignmentView\\\",\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name author-submission\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"user-name-info\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,19],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,1,[\\\"openAssignmentView\\\",\\\"user\\\"]],[30,1,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"discussion-reply-time\\\\n \\\",[52,[30,1,[\\\"openAssignmentView\\\",\\\"late\\\"]],\\\"assn-late\\\"]]]],[12],[10,1],[14,0,\\\"submitted-confirm\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Submitted\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,20],[[30,1,[\\\"openAssignmentView\\\",\\\"date\\\"]]],null]],[41,[30,1,[\\\"openAssignmentView\\\",\\\"late\\\"]],[[[1,\\\",\\\\n \\\"],[1,[30,1,[\\\"openAssignmentView\\\",\\\"daysLate\\\"]]],[1,\\\"\\\\n late\\\"]],[]],null],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"openAssignmentView\\\",\\\"grade\\\"]],[[[41,[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,21],[[30,1,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[41,[28,[37,22],[[30,1,[\\\"openAssignmentView\\\",\\\"grade_matches_current_submission\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[[[41,[28,[37,23],[[30,1,[\\\"isWorking\\\"]]],null],[[[1,\\\" \\\"],[8,[39,24],null,[[\\\"@submission\\\",\\\"@submission_id\\\",\\\"@criteria\\\",\\\"@detailsShown\\\",\\\"@onToggleDetailsShown\\\"],[[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"db_id\\\"]],[30,1,[\\\"rubric_criteria\\\"]],[30,0,[\\\"rubricDetailsShown\\\"]],[30,0,[\\\"toggleRubricDetailsShown\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,21],[[30,1,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],\\\"no\\\"],null]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"toggleShowcase\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,1,[\\\"showcaseOpen\\\"]],\\\"Cancel Showcase\\\",\\\"Showcase\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-button no-showcase\\\"],[12],[1,\\\"\\\\n Can't Showcase\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"openAssignmentView\\\",\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,21],[[30,1,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[51,[30,1,[\\\"session\\\",\\\"readOnly\\\"]]],[[[41,[30,1,[\\\"openAssignmentView\\\",\\\"my_submission\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"assignmentSubmission\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],[[[41,[28,[37,21],[\\\"0\\\",[30,1,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[[[1,\\\" Submission Rejected\\\\n\\\"]],[]],[[[41,[28,[37,23],[[30,1,[\\\"isWorking\\\"]]],null],[[[1,\\\" \\\"],[8,[39,24],null,[[\\\"@submission\\\",\\\"@submission_id\\\",\\\"@criteria\\\",\\\"@detailsShown\\\",\\\"@onToggleDetailsShown\\\"],[[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"db_id\\\"]],[30,1,[\\\"rubric_criteria\\\"]],[30,0,[\\\"rubricDetailsShown\\\"]],[30,0,[\\\"toggleRubricDetailsShown\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"canResubmit\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"assignmentSubmission\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]],[[[41,[28,[37,21],[[30,1,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-copy-subheader\\\"],[12],[1,\\\"You must submit a new\\\\n attempt in order to receive a grade\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"assignmentSubmission\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,21],[\\\"0\\\",[30,1,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[[[1,\\\" No Credit\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"pending-regrade-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pending-regrade-current-grade\\\"],[12],[1,\\\"Current Grade:\\\\n \\\"],[1,[30,1,[\\\"openAssignmentView\\\",\\\"percentage\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"regrade-assignment pending-regrade-copy\\\"],[12],[1,\\\"\\\\n Pending Re-grade\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pending-regrade-grade\\\"],[12],[1,[30,1,[\\\"openAssignmentView\\\",\\\"grade\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,1,[\\\"openAssignmentView\\\",\\\"my_submission\\\"]],[[[41,[28,[37,21],[[30,1,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade submission-grade-resubmission\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-subheader\\\"],[12],[1,\\\"You must submit a new attempt in\\\\n order to receive a grade\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"assignmentSubmission\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-body-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"session\\\",\\\"isAdmin\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"submission-body-delete far fa-trash\\\"],[4,[38,18],[\\\"click\\\",[30,1,[\\\"deleteSubmissionBody\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[2,[30,1,[\\\"openAssignmentView\\\",\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"openAssignmentView\\\",\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"assignment-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,1,[\\\"openAssignmentView\\\",\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,29],null,[[\\\"@showDelete\\\",\\\"@attachment\\\",\\\"@deleteAttachment\\\"],[[30,1,[\\\"session\\\",\\\"isAdmin\\\"]],[30,5],[28,[37,14],[[30,1,[\\\"deleteSubmissionAttachment\\\"]],[30,1,[\\\"session\\\",\\\"section\\\",\\\"id\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"id\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"db_id\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"id\\\"]],[30,5,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"late-assignment-marker\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n This assignment was submitted after the timer ran out.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"submissionHistory\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignment-history\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"presentations\\\"],[14,0,\\\"submission-comments-header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Older Versions:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"reply-list\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Previous Submissions\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,1,[\\\"submissionHistory\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"assignment-version-post\\\"],[15,\\\"version\\\",[29,[[30,6,[\\\"attempt\\\"]]]]],[15,1,[29,[\\\"assignment-version-\\\",[30,1,[\\\"openAssignmentView\\\",\\\"id\\\"]],\\\"-\\\",[30,6,[\\\"attempt\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"assignment-version\\\"],[15,\\\"version\\\",[29,[[30,6,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"session\\\",\\\"isAdmin\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"submission-history-delete far fa-trash\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"deleteHistoricSubmission\\\"]],[30,6,[\\\"attempt\\\"]],[30,6,[\\\"attachments\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"assignment-version-post-label\\\"],[15,\\\"for\\\",[29,[\\\"assignment-version-\\\",[30,1,[\\\"openAssignmentView\\\",\\\"id\\\"]],\\\"-\\\",[30,6,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Submitted:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,20],[[30,6,[\\\"submitted_at\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"grade_matches_current_submission\\\"]],[[[41,[30,6,[\\\"grade\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Grade:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-grade\\\"],[12],[1,[30,6,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,6,[\\\"percentage\\\"]]],[1,\\\"%)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Not Graded\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"resubmit-requested\\\"],[12],[1,\\\"Resubmit Requested\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-version-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-version-body\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,6,[\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"grade_matches_current_submission\\\"]],[[[1,\\\" \\\"],[8,[39,24],null,[[\\\"@submission\\\",\\\"@submission_id\\\",\\\"@criteria\\\",\\\"@previous\\\"],[[30,6],[30,1,[\\\"openAssignmentView\\\",\\\"db_id\\\"]],[30,1,[\\\"rubric_criteria\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"resubmit-requested\\\"],[12],[1,\\\"Resubmit Requested\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,6,[\\\"attachment_objects\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"assignment-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,6,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,29],null,[[\\\"@attachment\\\"],[[30,7]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link view-in-comments\\\"],[24,4,\\\"button\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"scrollToComment\\\"]],[30,6,[\\\"attempt\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-comment\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n View in comments\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,30],null,[[\\\"@showHeader\\\",\\\"@isInstructor\\\",\\\"@currentSubmissionAuthor\\\",\\\"@openAssignment\\\",\\\"@openAssignmentView\\\",\\\"@viewSubmission\\\",\\\"@prevSubmission\\\",\\\"@nextSubmission\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@onClose\\\",\\\"@closed\\\"],[true,[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[30,4,[\\\"user\\\",\\\"id\\\"]],[30,1,[\\\"openAssignment\\\"]],[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"viewAssignmentSubmission\\\"]],[30,1,[\\\"prev_submission\\\"]],[30,1,[\\\"next_submission\\\"]],[30,1,[\\\"setAssignmentSubmissionsHiddenStatus\\\"]],[30,1,[\\\"closeStudentList\\\"]],[28,[37,23],[[30,1,[\\\"showStudentList\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-comments\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"openAssignmentView\\\",\\\"user\\\"]],[[[41,[30,1,[\\\"comments\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submission-comments-header button-link\\\\n \\\",[52,[30,1,[\\\"commentsHidden\\\"]],\\\"comments-hidden\\\"]]]],[24,\\\"aria-expanded\\\",\\\"false\\\"],[24,\\\"aria-controls\\\",\\\"reply-list\\\"],[4,[38,18],[\\\"click\\\",[30,1,[\\\"toggleComments\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"view-comments button-link\\\"],[12],[1,\\\"\\\\n Hide Comments\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"hide-comments button-link\\\"],[12],[1,\\\"\\\\n Show Comments\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"reply-list\\\"],[14,\\\"aria-label\\\",\\\"Assignment Submission Comments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,28],[[28,[37,28],[[30,1,[\\\"commentTimeline\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,31],null,[[\\\"@response\\\",\\\"@isInstructor\\\",\\\"@userId\\\",\\\"@scrollToAssignment\\\",\\\"@repostSubmissionComment\\\",\\\"@deleteAssignmentComment\\\",\\\"@deleteSubmissionCommentAttachment\\\",\\\"@isAdmin\\\",\\\"@assignmentId\\\",\\\"@sectionId\\\",\\\"@openAssignmentId\\\"],[[30,8],[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[30,1,[\\\"session\\\",\\\"user\\\",\\\"id\\\"]],[30,1,[\\\"scrollToAssignment\\\"]],[30,1,[\\\"repostSubmissionComment\\\"]],[30,1,[\\\"deleteAssignmentComment\\\"]],[30,1,[\\\"deleteSubmissionCommentAttachment\\\"]],[30,1,[\\\"session\\\",\\\"isAdmin\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"db_id\\\"]],[30,1,[\\\"session\\\",\\\"section\\\",\\\"id\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"id\\\"]]]],null],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,22],[[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[30,1,[\\\"rubricService\\\",\\\"isGrading\\\"]]],null],[[[1,\\\" \\\"],[8,[39,32],null,[[\\\"@requirementsMet\\\",\\\"@attachmentsUploading\\\",\\\"@setRubricAssessmentIsDirtyCallback\\\",\\\"@submission\\\",\\\"@criteria\\\",\\\"@controller\\\",\\\"@onSubmitGrade\\\",\\\"@setSubmissionComponentCleanupCallback\\\"],[[30,1,[\\\"requirementsMet\\\"]],[30,1,[\\\"attachmentsUploading\\\"]],[30,1,[\\\"setRubricAssessmentIsDirtyCallback\\\"]],[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"rubric_criteria\\\"]],[30,1],[30,1,[\\\"onSubmitGrade\\\"]],[30,1,[\\\"setSubmissionComponentCleanupCallback\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-rte\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,33],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateArchive\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\",\\\"@hideAddComment\\\"],[[30,1,[\\\"files\\\"]],[30,1,[\\\"store\\\"]],[30,1],[30,1,[\\\"noRec\\\"]],[30,1,[\\\"inEditor\\\"]],[30,1,[\\\"bodyInput\\\"]],[30,1,[\\\"updateLocalDocs\\\"]],[30,1,[\\\"attachmentsToContainer\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1,[\\\"encodingVideosToContainer\\\"]],[30,1,[\\\"renameAttachment\\\"]],[30,1,[\\\"requirementsMet\\\"]],[30,1,[\\\"addFile\\\"]],[30,1,[\\\"postSubmissionComment\\\"]],[30,1,[\\\"attachmentsUploading\\\"]],[30,1,[\\\"openAttachmentDrawer\\\"]],true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,34],[[30,1,[\\\"session\\\",\\\"readOnly\\\"]],[28,[37,22],[[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[30,1,[\\\"rubricService\\\",\\\"isGrading\\\"]]],null]],null]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"submission-comment-entry\\\\n \\\",[52,[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"submission-comment-entry__instructor\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,1,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[51,[30,1,[\\\"session\\\",\\\"readOnly\\\"]]],[[[41,[30,1,[\\\"openAssignmentView\\\",\\\"my_submission\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,18],[\\\"click\\\",[28,[37,14],[[30,1,[\\\"assignmentSubmission\\\"]],[30,1,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-comment-header\\\"],[12],[1,\\\"Or Comment on it Below:\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[8,[39,33],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateArchive\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\"],[[30,9],[30,10],[30,1],[30,1,[\\\"noRec\\\"]],[30,1,[\\\"inEditor\\\"]],[30,1,[\\\"bodyInput\\\"]],[30,1,[\\\"updateLocalDocs\\\"]],[30,1,[\\\"attachmentsToContainer\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1,[\\\"encodingVideosToContainer\\\"]],[30,1,[\\\"renameAttachment\\\"]],[30,1,[\\\"requirementsMet\\\"]],[30,1,[\\\"addFile\\\"]],[30,1,[\\\"postSubmissionComment\\\"]],[30,1,[\\\"attachmentsUploading\\\"]],[30,1,[\\\"openAttachmentDrawer\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[30,1,[\\\"session\\\",\\\"isInstructor\\\"]],[28,[37,23],[[30,1,[\\\"rubricService\\\",\\\"isGrading\\\"]]],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rubric-instructor-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,22],[[28,[37,35],[[30,1,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[30,1,[\\\"openAssignmentView\\\",\\\"grade_matches_current_submission\\\"]]],null],[[[1,\\\" \\\"],[8,[39,36],null,[[\\\"@submission\\\",\\\"@edit\\\",\\\"@requestResubmit\\\"],[[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"rubricService\\\",\\\"toggleIsGrading\\\"]],[30,1,[\\\"requestResubmit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[8,[39,37],null,[[\\\"@submission\\\",\\\"@submissionHistory\\\",\\\"@requestResubmit\\\"],[[30,1,[\\\"openAssignmentView\\\"]],[30,1,[\\\"submissionHistory\\\"]],[30,1,[\\\"requestResubmit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bocce-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-2x fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"@controller\\\",\\\"@deleteHistoricSubmission\\\",\\\"@openAssignment\\\",\\\"@openAssignmentView\\\",\\\"attachment\\\",\\\"version\\\",\\\"attachment\\\",\\\"comment\\\",\\\"@files\\\",\\\"@store\\\"],[\\\"unless\\\",\\\"submission-no-rubric\\\",\\\"div\\\",\\\"if\\\",\\\"submissions-list-button\\\",\\\"h2\\\",\\\"span\\\",\\\"p\\\",\\\"input\\\",\\\"legacy-boot\\\",\\\"rubric/rubric\\\",\\\"label\\\",\\\"i\\\",\\\"showcase-post\\\",\\\"fn\\\",\\\"log\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"on\\\",\\\"user-icons\\\",\\\"longdate\\\",\\\"same\\\",\\\"and\\\",\\\"not\\\",\\\"rubric/assessment\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\",\\\"quickgrader-student-list\\\",\\\"assignment/assignment-comment\\\",\\\"rubric/grading\\\",\\\"submission-footer\\\",\\\"or\\\",\\\"notnull\\\",\\\"rubric/instructor-graded\\\",\\\"rubric/ungraded\\\"]]\",\n \"moduleName\": \"bocce/components/submission-view.hbs\",\n \"isStrictMode\": false\n });\n var SubmissionView = _exports.default = (_dec = (0, _service.service)(\"userprofile\"), _class = /*#__PURE__*/function (_Component) {\n function SubmissionView() {\n var _this;\n _classCallCheck(this, SubmissionView);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, SubmissionView, [].concat(args));\n _initializerDefineProperty(_this, \"userprofileService\", _descriptor, _this);\n _initializerDefineProperty(_this, \"rubricDetailsShown\", _descriptor2, _this);\n return _this;\n }\n _inherits(SubmissionView, _Component);\n return _createClass(SubmissionView, [{\n key: \"toggleRubricDetailsShown\",\n value: function toggleRubricDetailsShown() {\n this.rubricDetailsShown = !this.rubricDetailsShown;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"userprofileService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"rubricDetailsShown\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleRubricDetailsShown\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleRubricDetailsShown\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, SubmissionView);\n});","define(\"bocce/components/quiz-stats/types/file-upload-question-statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"hwlDMl/n\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\"],[[30,1]]],null]],[\\\"@statistics\\\"],[\\\"quiz-stats/question-statistics-manual\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/file-upload-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"file-upload-question-statistics\"));\n});","define(\"bocce/components/quiz-stats/types/fill-in-multiple-blanks-question-statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"InAIoaFI\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\",\\\"@quizzes\\\"],[[30,1],[30,2]]],null]],[\\\"@statistics\\\",\\\"@quizzes\\\"],[\\\"quiz-stats/question-statistics-multiple\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/fill-in-multiple-blanks-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"fill-in-multiple-blanks-question-statistics\"));\n});","define(\"bocce/components/quiz-stats/types/multiple-answers-question-statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"oEV/nu5h\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\",\\\"@answers\\\",\\\"@quizzes\\\",\\\"@questionText\\\"],[[30,1],[30,1,[\\\"answers\\\"]],[30,2],[30,1,[\\\"question_text\\\"]]]],null]],[\\\"@statistics\\\",\\\"@quizzes\\\"],[\\\"quiz-stats/question-statistics-single\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/multiple-answers-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"multiple-answers-question-statistics\"));\n});","define(\"bocce/components/quiz-stats/types/multiple-choice-question-statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"/+4cRYxS\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\",\\\"@answers\\\",\\\"@quizzes\\\",\\\"@questionText\\\"],[[30,1],[30,1,[\\\"answers\\\"]],[30,2],[30,1,[\\\"question_text\\\"]]]],null]],[\\\"@statistics\\\",\\\"@quizzes\\\"],[\\\"quiz-stats/question-statistics-single\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/multiple-choice-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"multiple-choice-question-statistics\"));\n});","define(\"bocce/components/quiz-stats/types/multiple-dropdowns-question-statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"mqTyhIl9\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\",\\\"@quizzes\\\"],[[30,1],[30,2]]],null]],[\\\"@statistics\\\",\\\"@quizzes\\\"],[\\\"quiz-stats/question-statistics-multiple\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/multiple-dropdowns-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"multiple-dropdowns-question-statistics\"));\n});","define(\"bocce/components/quiz-stats/types/true-false-question-statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"LLY5Aq4M\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@statistics\\\",\\\"@answers\\\",\\\"@quizzes\\\",\\\"@questionText\\\"],[[30,1],[30,1,[\\\"answers\\\"]],[30,2],[30,1,[\\\"question_text\\\"]]]],null]],[\\\"@statistics\\\",\\\"@quizzes\\\"],[\\\"quiz-stats/question-statistics-single\\\"]]\",\n \"moduleName\": \"bocce/components/quiz-stats/types/true-false-question-statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"true-false-question-statistics\"));\n});","define(\"bocce/components/quiz/answer-feedback\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n
    \n Checking answer. Please wait...
    \n
    {{#if\n @question.correct_feedback\n }}{{{@question.correct_feedback}}}{{else}}Correct!{{/if}}
    \n
    {{#if\n @question.wrong_feedback\n }}{{{@question.wrong_feedback}}}{{else}}Incorrect{{/if}}
    \n
    \n */\n {\n \"id\": \"8wXCWyYU\",\n \"block\": \"[[[10,0],[14,0,\\\"question-checker\\\"],[15,1,[29,[\\\"question-\\\",[30,1,[\\\"id\\\"]],\\\"-modal\\\"]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"label\\\"],[24,0,\\\"close-question-modal\\\"],[16,\\\"for\\\",[29,[\\\"quiz-\\\",[30,2,[\\\"id\\\"]],\\\"-question-\\\",[30,1,[\\\"id\\\"]],\\\"-checker\\\"]]],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,3]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-loading\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-3x fa-fw\\\"],[12],[13],[1,\\\"\\\\n Checking answer. Please wait...\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-correct bootable-area\\\"],[12],[41,[30,1,[\\\"correct_feedback\\\"]],[[[2,[30,1,[\\\"correct_feedback\\\"]]]],[]],[[[1,\\\"Correct!\\\"]],[]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-wrong bootable-area\\\"],[12],[41,[30,1,[\\\"wrong_feedback\\\"]],[[[2,[30,1,[\\\"wrong_feedback\\\"]]]],[]],[[[1,\\\"Incorrect\\\"]],[]]],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@question\\\",\\\"@quiz\\\",\\\"@onCloseModal\\\"],[\\\"div\\\",\\\"label\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\",\\\"if\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/answer-feedback.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"answer-feedback\"));\n});","define(\"bocce/components/quiz/check-answer\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n Check Answer\n \n Check Answer\n \n */\n {\n \"id\": \"425QtzWG\",\n \"block\": \"[[[11,\\\"button\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[16,0,[29,[\\\"check-answer \\\",[52,[30,1],\\\"disabled\\\"],\\\" button-link\\\"]]],[16,\\\"for\\\",[29,[\\\"quiz-\\\",[30,2],\\\"-question-\\\",[30,3,[\\\"d\\\"]],\\\"-checker\\\"]]],[16,\\\"disabled\\\",[30,1]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,4],[30,3],false],null]],null],[12],[1,\\\"\\\\n Check Answer\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[11,\\\"button\\\"],[24,0,\\\"sr-only check-answer submit-question-button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,3],[[30,4],[30,3],true],null]],null],[12],[1,\\\"Check Answer\\\\n\\\"],[13]],[\\\"@disabled\\\",\\\"@quizId\\\",\\\"@question\\\",\\\"@onCheckAnswer\\\"],[\\\"button\\\",\\\"if\\\",\\\"on\\\",\\\"fn\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/check-answer.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"check-answer\"));\n});","define(\"bocce/components/quiz/statistics\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each @quiz.quiz_statistics as |stats|}}\n {{#each stats.question_statistics as |qstats|}}\n
    ---{{qstats.question_text}}---


    \n {{#each qstats.answers as |answer|}}\n {{answer.text}}
    \n {{#each answer.user_ids as |user_id|}}\n {{user_id}}\n {{/each}}\n

    \n {{/each}}\n {{/each}}\n {{/each}}\n */\n {\n \"id\": \"4LVD9Xhg\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"quiz_statistics\\\"]]],null]],null],null,[[[42,[28,[37,1],[[28,[37,1],[[30,2,[\\\"question_statistics\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[12],[1,\\\"---\\\"],[1,[30,3,[\\\"question_text\\\"]]],[1,\\\"---\\\"],[13],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,3,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[1,[30,4,[\\\"text\\\"]]],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,4,[\\\"user_ids\\\"]]],null]],null],null,[[[1,\\\" \\\"],[1,[30,5]],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\" \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[4]],null]],[3]],null]],[2]],null]],[\\\"@quiz\\\",\\\"stats\\\",\\\"qstats\\\",\\\"answer\\\",\\\"user_id\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"br\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/statistics.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"statistics\"));\n});","define(\"bocce/components/quiz/submitted-in\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @quizzes.quizSubmittedInText}}\n
    \n \n {{@quizzes.quizSubmittedInText}}\n \n \n
    \n {{/if}}\n */\n {\n \"id\": \"NbQJN4mx\",\n \"block\": \"[[[41,[30,1,[\\\"quizSubmittedInText\\\"]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"submitted-in-group submitted-in \\\",[52,[30,1,[\\\"quizSubmittedInText\\\"]],\\\"animate\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submitted-in-time\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"quizSubmittedInText\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,1],[24,0,\\\"submitted-in-close\\\"],[4,[38,3],[\\\"click\\\",[28,[37,4],[[30,1,[\\\"closeTimeRemaining\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times fa-fw\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@quizzes\\\"],[\\\"if\\\",\\\"div\\\",\\\"span\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/quiz/submitted-in.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"submitted-in\"));\n});","define(\"bocce/components/recipient-filter\", [\"exports\", \"@ember/component\", \"jquery\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _jquery, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
      \n {{#each this.recipients as |recipient|}}\n
    • \n
      \n \n \n
      \n
      \n {{recipient.name}}\n
      \n \n
    • \n {{/each}}\n
    • \n \n
    • \n
    \n \n
  • Searching...
  • \n
  • No users found.
  • \n {{#each this.filteredList as |recipient|}}\n {{#unless (same recipient.modelName \"conversation\")}}\n {{recipient.name}}\n {{else unless (same recipient.record.participants.length 2)}}\n \n \n {{#each recipient.record.participants as |participant|}}\n {{#unless (same participant.id @session.user.id)}}\n {{participant.name}}\n {{else}}\n You\n {{/unless}}\n {{/each}}\n \n {{/unless}}\n {{/each}}\n \n
    \n \n
    \n */\n {\n \"id\": \"YmQnJSxi\",\n \"block\": \"[[[11,\\\"ul\\\"],[24,0,\\\"recipient-bank\\\"],[24,\\\"aria-label\\\",\\\"New Conversation Recipient list\\\"],[4,[38,1],[\\\"click\\\",[30,0,[\\\"focusRI\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"recipients\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"recipient-card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"recipient-card-portrait\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,1,[\\\"avatar_url\\\"]]]]],[12],[13],[1,\\\"\\\\n \\\"],[8,[39,7],null,[[\\\"@user\\\"],[[30,1]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"recipient-card-name\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"remove-recipient\\\"],[16,\\\"aria-label\\\",[29,[\\\"Remove \\\",[30,1,[\\\"name\\\"]],\\\" from thread\\\"]]],[4,[38,1],[\\\"click\\\",[28,[37,9],[[30,2],[30,1,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"recipient-input\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],[[24,\\\"aria-label\\\",\\\"Start typing a name to find recipients -- SHIFT+E to browse suggestions\\\"],[24,0,\\\"recipient-filter-input\\\"],[24,\\\"placeholder\\\",\\\"Add user...\\\"],[4,[38,1],[\\\"keyup\\\",[30,0,[\\\"recipientSearch\\\"]]],null]],[[\\\"@aria-required\\\",\\\"@value\\\"],[\\\"true\\\",[30,0,[\\\"filter\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,\\\"ul\\\"],[14,0,\\\"recipient-filter-list hidden\\\"],[14,\\\"aria-label\\\",\\\"Message recipients search results -- SHIFT+E to return to search bar\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"loading-graphic hidden\\\"],[12],[1,\\\"Searching...\\\"],[10,0],[14,0,\\\"loading-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"no-results hidden\\\"],[12],[1,\\\"No users found.\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"filteredList\\\"]]],null]],null],null,[[[41,[51,[28,[37,13],[[30,3,[\\\"modelName\\\"]],\\\"conversation\\\"],null]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"aria-label\\\",[29,[\\\"Add \\\",[30,3,[\\\"name\\\"]],\\\" to private message thread\\\"]]],[4,[38,1],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"chooseRecipient\\\"]],[30,3]],null]],null],[12],[10,\\\"img\\\"],[15,\\\"src\\\",[29,[[30,3,[\\\"avatar_url\\\"]]]]],[12],[13],[1,\\\" \\\"],[1,[30,3,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,13],[[30,3,[\\\"record\\\",\\\"participants\\\",\\\"length\\\"]],2],null]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,0,\\\"existing\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Go to existing discussion\\\"],[4,[38,1],[\\\"click\\\",[28,[37,9],[[30,0,[\\\"chooseRecipient\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-users\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,5,\\\" \\\"],[12],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,3,[\\\"record\\\",\\\"participants\\\"]]],null]],null],null,[[[41,[51,[28,[37,13],[[30,4,[\\\"id\\\"]],[30,5,[\\\"user\\\",\\\"id\\\"]]],null]],[[[1,\\\" \\\"],[10,1],[12],[1,[30,4,[\\\"name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[12],[1,\\\"You\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]]],[3]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,1,\\\"recipientId\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@type\\\",\\\"@value\\\"],[[30,0,[\\\"hidden\\\"]],[30,0,[\\\"recipientId\\\"]]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"recipient\\\",\\\"@removeRecipient\\\",\\\"recipient\\\",\\\"participant\\\",\\\"@session\\\"],[\\\"ul\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"div\\\",\\\"img\\\",\\\"user-dot\\\",\\\"button\\\",\\\"fn\\\",\\\"i\\\",\\\"input\\\",\\\"unless\\\",\\\"same\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/components/recipient-filter.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n filter: null,\n filteredList: null,\n recipientId: null,\n recipients: [],\n currentListPosition: null,\n // The reason there is a keyUp function AND a keyPress function is because\n // keyUp recognized the arrow keys but not the enter key. And keyPress recognizes\n // the enter key and not the arrow keys. At least that's how it was on my macbook\n // air work computer - JRW.\n keyUp: function keyUp(keyEvent) {\n if (keyEvent.key === \"ArrowUp\" || keyEvent.key === \"ArrowDown\") {\n /* eslint-disable-next-line ember/no-jquery */\n var listLength = (0, _jquery.default)(\".recipient-filter-list li\").length;\n var currentListPosition = this.currentListPosition;\n if (keyEvent.key === \"ArrowUp\") {\n if (currentListPosition === 0 || currentListPosition === null) {\n this.set(\"currentListPosition\", listLength - 1);\n } else {\n this.set(\"currentListPosition\", this.currentListPosition - 1);\n }\n } else {\n // it's the ArrowDown\n if (currentListPosition === listLength - 1) {\n // we're at the end, go back to the beginning\n this.set(\"currentListPosition\", 0);\n } else {\n if (currentListPosition >= 0 && currentListPosition !== null) {\n this.set(\"currentListPosition\", this.currentListPosition + 1);\n } else {\n this.set(\"currentListPosition\", 0);\n }\n }\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list li\").eq(this.currentListPosition).addClass(\"active\");\n } else {\n // A new word has been autocompleted, set the list position\n // to zero.\n this.set(\"currentListPosition\", null);\n }\n },\n recipientSearch: (0, _object.action)(function () {\n if (!this.filter) {\n this.set(\"filteredList\", []);\n this.set(\"recipientId\", null);\n }\n this.autoComplete(this.filter);\n }),\n focusRI: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-input\").focus();\n }),\n chooseRecipient: (0, _object.action)(function (recipient) {\n if (recipient.modelName === \"conversation\") {\n this.viewConversation(recipient.id);\n return;\n }\n /* eslint-disable-next-line ember/no-get */\n this.choose(recipient);\n this.set(\"filteredList\", []);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-input\").val(\"\").focus();\n this._super();\n })\n }));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/user-menu\", [\"exports\", \"@glimmer/component\", \"@ember/routing\", \"bocce/utilities/logout\", \"@ember/service\", \"@ember/modifier\", \"@ember/object\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _routing, _logout, _service, _modifier, _object, _component2, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _UserMenu;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/routing\",0,\"bocce/utilities/logout\",0,\"@ember/service\",0,\"@ember/modifier\",0,\"@ember/object\",0,\"@ember/component\",0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var UserMenu = _exports.default = (_class = (_UserMenu = /*#__PURE__*/function (_Component) {\n function UserMenu() {\n var _this;\n _classCallCheck(this, UserMenu);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, UserMenu, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"router\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"survey\", _descriptor4, _this);\n return _this;\n }\n _inherits(UserMenu, _Component);\n return _createClass(UserMenu, [{\n key: \"exportCalendar\",\n value: function exportCalendar() {\n var currentUser = this.session.user;\n var icsLink = \"https://\" + window.location.hostname + \"/interface/calendar-export/\" + currentUser.get(\"calendarHash\");\n var bodyMarkup = \"\";\n /* eslint-disable-next-line ember/no-jquery */\n if (!$.isMobile) {\n bodyMarkup += '';\n }\n bodyMarkup += \"
    or download the feed.\";\n var message = \"Copy the link below and paste it into any calendar app that takes iCal feeds (Google Calendar, iCal, Outlook, etc.)\";\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Dismiss\"],\n body: bodyMarkup\n });\n }\n }, {\n key: \"logOut\",\n value: function logOut() {\n (0, _logout.default)();\n }\n // Course-specific restrictions (DYS terms, BCM, etc.) only apply when\n // there is an active classroom section. On the dashboard there is no\n // section context, so we show the full menu regardless of stale session data.\n }, {\n key: \"hasClassroomContext\",\n get: function get() {\n return !!this.session.section;\n }\n }, {\n key: \"isLimitedStudentTerm\",\n get: function get() {\n if (this.session.isInstructor || this.session.isAdminOrStaff) return false;\n return this.hasClassroomContext && this.session.isLimitedStudentTerm;\n }\n }, {\n key: \"isBCM\",\n get: function get() {\n return this.hasClassroomContext && this.session.isBCM;\n }\n }, {\n key: \"isSimplifiedTerm\",\n get: function get() {\n return this.hasClassroomContext && this.session.isSimplifiedTerm;\n }\n }, {\n key: \"isLiveWorkshop\",\n get: function get() {\n return this.hasClassroomContext && this.session.isLiveWorkshop;\n }\n }, {\n key: \"isStaticContent\",\n get: function get() {\n return this.hasClassroomContext && this.session.isStaticContent;\n }\n }, {\n key: \"isInstructor\",\n get: function get() {\n return this.hasClassroomContext && this.session.isInstructor;\n }\n }, {\n key: \"isDashboard\",\n get: function get() {\n return this.router.currentRouteName === \"dashboard\";\n }\n }, {\n key: \"showMyHome\",\n get: function get() {\n var _this$session$course;\n return !this.isLimitedStudentTerm && !this.isBCM && !this.isSimplifiedTerm && !((_this$session$course = this.session.course) !== null && _this$session$course !== void 0 && _this$session$course.isExam);\n }\n }, {\n key: \"showInbox\",\n get: function get() {\n var _this$session$course2;\n return !this.isBCM && !((_this$session$course2 = this.session.course) !== null && _this$session$course2 !== void 0 && _this$session$course2.isExam);\n }\n // Opens the survey for this course, or the user's dashboard of all their\n // surveys when this course has nothing due. The dashboard route lives under\n // the classroom, so there's nothing to link to from the dashboard page.\n }, {\n key: \"showSurvey\",\n get: function get() {\n return !this.isDashboard && this.hasClassroomContext && this.survey.isAvailable;\n }\n }, {\n key: \"openSurvey\",\n value: function openSurvey() {\n this.survey.open();\n }\n }, {\n key: \"showCourseDashboard\",\n get: function get() {\n return !this.isLimitedStudentTerm && !this.isBCM && !this.isSimplifiedTerm && !this.isStaticContent && !this.isLiveWorkshop && !this.isDashboard;\n }\n }, {\n key: \"showForums\",\n get: function get() {\n var _this$session$course3;\n return !this.isLimitedStudentTerm && !this.isBCM && !this.isSimplifiedTerm && !this.isStaticContent && !this.isLiveWorkshop && !((_this$session$course3 = this.session.course) !== null && _this$session$course3 !== void 0 && _this$session$course3.isExam);\n }\n }, {\n key: \"showAdvisorLinks\",\n get: function get() {\n return !this.isLimitedStudentTerm && !this.isBCM && !this.isSimplifiedTerm;\n }\n }, {\n key: \"showLibraryResources\",\n get: function get() {\n return this.showAdvisorLinks && !this.isLiveWorkshop;\n }\n }, {\n key: \"showTechnicalHelp\",\n get: function get() {\n return !this.isLimitedStudentTerm && !this.isBCM;\n }\n }, {\n key: \"showCalendarAndSettings\",\n get: function get() {\n return !this.isLimitedStudentTerm && !this.isStaticContent;\n }\n }, {\n key: \"showProfileNudge\",\n get: function get() {\n var _this$session$course4, _this$session$user;\n return !((_this$session$course4 = this.session.course) !== null && _this$session$course4 !== void 0 && _this$session$course4.isGettingStarted) && !((_this$session$user = this.session.user) !== null && _this$session$user !== void 0 && (_this$session$user = _this$session$user.profile) !== null && _this$session$user !== void 0 && _this$session$user.can_showcase) && !this.session.isInstructor;\n }\n }]);\n }(_component.default), (0, _component2.setComponentTemplate)((0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
      \n {{#if this.showMyHome}}\n
    • \n \n
      \n
      My Home
      \n \n
      \n
    • \n {{/if}}\n {{#if this.showInbox}}\n
    • \n
      \n
      Inbox
      \n
    • \n {{/if}}\n {{#if this.showSurvey}}\n \n
      \n
      {{this.survey.title}}
      \n {{#if this.survey.dueCount}}\n
      {{this.survey.dueCount}}
      \n {{/if}}\n \n {{/if}}\n {{#if this.showCourseDashboard}}\n
    • \n \n
      \n
      Course Dashboard
      \n
      \n
    • \n {{/if}}\n {{#if this.showForums}}\n
    • \n \n
      \n
      Forums
      \n \n
      \n
    • \n {{/if}}\n {{#if this.showTechnicalHelp}}\n
    • \n \n
      \n
      Technical Help
      \n \n
      \n
    • \n {{/if}}\n {{#if this.showAdvisorLinks}}\n
    • \n \n
      \n
      Contact Advisor
      \n \n \n
    • \n {{/if}}\n {{#if this.showLibraryResources}}\n
    • \n \n
      \n
      Library Resources
      \n \n \n
    • \n {{/if}}\n {{#if this.showAdvisorLinks}}\n
    • \n \n
      \n
      Academic Policies
      \n \n \n
    • \n {{/if}}\n {{#if this.showCalendarAndSettings}}\n \n
      \n
      Export My Calendar
      \n \n \n {{#if this.showProfileNudge}}\n
      !
      \n {{/if}}\n
      \n
      Settings & Profile
      \n \n {{/if}}\n
    \n \n \n Sign Out\n \n
    \n */\n {\n \"id\": \"k5DEO+am\",\n \"block\": \"[[[11,0],[24,0,\\\"user-menu\\\"],[17,1],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"submenu-list\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showMyHome\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to MyHome\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/my_home\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"submenu-link\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-home\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"My Home\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link submenu__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showInbox\\\"]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Open Inbox\\\"],[24,0,\\\"submenu-item\\\"],[4,[32,0],[\\\"click\\\",[30,2]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Inbox\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showSurvey\\\"]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"aria-label\\\",[29,[\\\"Open \\\",[30,0,[\\\"survey\\\",\\\"title\\\"]]]]],[24,0,\\\"submenu-item\\\"],[4,[32,0],[\\\"click\\\",[30,0,[\\\"openSurvey\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-pen-square\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,[30,0,[\\\"survey\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"survey\\\",\\\"dueCount\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"notification-count\\\"],[12],[1,[30,0,[\\\"survey\\\",\\\"dueCount\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showCourseDashboard\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to my course dashboard\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[8,[32,1],[[24,\\\"target\\\",\\\"_blank\\\"],[24,0,\\\"submenu-link\\\"]],[[\\\"@route\\\"],[\\\"dashboard\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-tachometer-alt\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Course Dashboard\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showForums\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to Berklee POPP Forum\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[15,6,[30,0,[\\\"session\\\",\\\"discourseUrl\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"submenu-link\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-users\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Forums\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link submenu__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showTechnicalHelp\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to Help page\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/help\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"submenu-link\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-question-circle\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Technical Help\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link submenu__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showAdvisorLinks\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to Advisor page\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/about/contact-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"submenu-link\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-comments\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Contact Advisor\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link submenu__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showLibraryResources\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to Library Page\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/school/lms/library-links\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"submenu-link\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-book\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Library Resources\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link submenu__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showAdvisorLinks\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"role\\\",\\\"button\\\"],[14,\\\"aria-label\\\",\\\"Go to Academic Policies page\\\"],[14,0,\\\"submenu-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"https://online.berklee.edu/about/berklee-online-general-policies\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,0,\\\"submenu-link\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-graduation-cap\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Academic Policies\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link submenu__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"showCalendarAndSettings\\\"]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Export my Calendar to CSV\\\"],[24,0,\\\"submenu-item\\\"],[4,[32,0],[\\\"click\\\",[30,0,[\\\"exportCalendar\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Export My Calendar\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Open Settings and Profile creator\\\"],[24,0,\\\"submenu-item\\\"],[4,[32,0],[\\\"click\\\",[30,3]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showProfileNudge\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"notification-count\\\"],[12],[1,\\\"!\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"submenu-icon\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-cog\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submenu-text\\\"],[12],[1,\\\"Settings & Profile\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submenu-button\\\\n \\\",[52,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]],\\\"limited\\\"],\\\"\\\\n button--black button--black--small\\\"]]],[4,[32,0],[\\\"click\\\",[30,0,[\\\"logOut\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sign-out\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Sign Out\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"&attrs\\\",\\\"@openInbox\\\",\\\"@openPrefsPanel\\\"],[\\\"if\\\"]]\",\n \"moduleName\": \"/web/bocce/packages/bocce/bocce/components/user-menu.js\",\n \"scope\": function scope() {\n return [_modifier.on, _routing.LinkTo];\n },\n \"isStrictMode\": true\n }), _UserMenu), _UserMenu), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"survey\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"exportCalendar\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"exportCalendar\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"logOut\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"logOut\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openSurvey\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openSurvey\"), _class.prototype), _class);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/components/video-player\", [\"exports\", \"@ember/component\", \"@glimmer/component\", \"@ember/object\", \"@glimmer/tracking\", \"@ember/service\", \"jquery\", \"bocce/mixins/kaltura-upload\", \"bocce/utils/video-engines/html5\", \"bocce/utils/video-engines/wistia\", \"@ember/template-factory\"], function (_exports, _component, _component2, _object, _tracking, _service, _jquery, _kalturaUpload, _html, _wistia, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _dec, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24;\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/service\",0,\"jquery\",0,\"bocce/mixins/kaltura-upload\",0,\"bocce/utils/video-engines/html5\",0,\"bocce/utils/video-engines/wistia\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! Singleton video player. The service moves this DOM node into a }}\n {{! trigger button's parent on activation, mirroring the pre-refactor behavior. }}\n \n \n \n

    Keyboard Shortcuts

    \n
      \n
    • Space - Play/Pause
    • \n
    • Left Arrow - Rewind 5 seconds
    • \n
    • Right Arrow - Fast Forward 5 seconds
    • \n
    • Up Arrow - Increase volume
    • \n
    • Down Arrow - Decrease volume
    • \n
    • J - Jump Forward 10 seconds
    • \n
    • I - Jump Back 10 seconds
    • \n
    • . - Increase Playback Speed
    • \n
    • , - Decrease Playback Speed
    • \n
    • ] - Jump to Next subtitle cue
    • \n
    • [ - Jump to Previous subtitle cue
    • \n
    • M - Mute/Unmute
    • \n
    • C - Toggle Closed Captioning
    • \n
    • F - Toggle Fullscreen
    • \n
    • Esc - Exit Fullscreen
    • \n
    \n CLOSE\n \n \n \n
    \n
    \n {{#each this.speedOptions as |opt|}}\n {{opt.label}}\n {{/each}}\n
    \n
    \n
    \n
    \n {{#each-in this.session.kaltura_flavors as |flavor|}}\n {{flavor}}\n {{/each-in}}\n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n shortcut SPACE\n shortcut SPACE\n shortcut left arrow\n shortcut right arrow\n
    \n {{this.currentTimeFormatted}}\n |\n {{this.durationFormatted}}\n Time indicator available, use seek slider to navigate\n
    \n
    \n
    \n {{#unless this.hideVolumeControls}}\n shortcut M\n
    \n \n \n
    \n {{/unless}}\n shortcut L\n shortcut C\n shortcut F\n \n
    \n
    \n \n \n shortcut left arrow\n shortcut right arrow\n shortcut SPACE\n shortcut SPACE\n \n \n
    Our LAvideo provider is experiencing difficulties - this video is\n temporarily unavailable
    \n \n \n \n

    Your browser does not support HTML5 video. Please upgrade your browser.

    \n \n {{! Wistia embeds itself here; the embed brings its own controls, so the CSS }}\n {{! hides our control bar while `.wistia` is on the root. }}\n
    \n
    \n \n \n {{! Legacy Kaltura player. Kept as-is for now; manipulated directly by the }}\n {{! av-players service via #kalturaPlayer / #kalturaContainer ids. }}\n \n
    \n \n \n
    \n \n */\n {\n \"id\": \"W0Ghyoh+\",\n \"block\": \"[[[11,0],[16,0,[29,[\\\"video-player\\\\n \\\",[52,[30,0,[\\\"isPlaying\\\"]],\\\"playing\\\",\\\"paused\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isMinified\\\"]],\\\"minified\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isHidden\\\"]],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isOpen\\\"]],\\\"active\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isFullscreen\\\"]],\\\"fullscreen\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"hasError\\\"]],\\\"has-error\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"isWistia\\\"]],\\\"wistia\\\"],\\\"\\\\n \\\",[52,[51,[30,0,[\\\"hasCC\\\"]]],\\\"noCC\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"smallMobile\\\"]],\\\"small-mobile\\\"]]]],[24,\\\"aria-label\\\",\\\"BOCCE Video Player\\\"],[24,\\\"data-at-shortcutkeys\\\",\\\"{\\\\n \\\\\\\"space\\\\\\\": \\\\\\\"Play/Pause video\\\\\\\",\\\\n \\\\\\\"left\\\\\\\": \\\\\\\"Rewind 5 seconds\\\\\\\",\\\\n \\\\\\\"right\\\\\\\": \\\\\\\"Fast forward 5 seconds\\\\\\\",\\\\n \\\\\\\"up\\\\\\\": \\\\\\\"Increase volume\\\\\\\",\\\\n \\\\\\\"down\\\\\\\": \\\\\\\"Decrease volume\\\\\\\",\\\\n \\\\\\\"j\\\\\\\": \\\\\\\"Jump forward 10 seconds\\\\\\\",\\\\n \\\\\\\"i\\\\\\\": \\\\\\\"Jump back 10 seconds\\\\\\\",\\\\n \\\\\\\"period\\\\\\\": \\\\\\\"Increase playback speed\\\\\\\",\\\\n \\\\\\\"comma\\\\\\\": \\\\\\\"Decrease playback speed\\\\\\\",\\\\n \\\\\\\"]\\\\\\\": \\\\\\\"Jump to next subtitle cue\\\\\\\",\\\\n \\\\\\\"[\\\\\\\": \\\\\\\"Jump to previous subtitle cue\\\\\\\",\\\\n \\\\\\\"m\\\\\\\": \\\\\\\"Mute/Unmute\\\\\\\",\\\\n \\\\\\\"f\\\\\\\": \\\\\\\"Toggle fullscreen\\\\\\\",\\\\n \\\\\\\"escape\\\\\\\": \\\\\\\"Exit fullscreen\\\\\\\",\\\\n \\\\\\\"c\\\\\\\": \\\\\\\"Toggle closed captioning\\\\\\\"\\\\n }\\\"],[4,[38,3],[[30,0,[\\\"registerRoot\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"video-player-help \\\",[52,[30,0,[\\\"helpOpen\\\"]],\\\"active\\\"]]]],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-labelledby\\\",\\\"keyboard-shortcuts-heading\\\"],[15,\\\"aria-hidden\\\",[29,[[52,[51,[30,0,[\\\"helpOpen\\\"]]],\\\"true\\\",\\\"false\\\"]]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"help-button-open\\\"],[24,\\\"aria-label\\\",\\\"Open Help Guide\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"openHelp\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-info-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,1,\\\"keyboard-shortcuts-heading\\\"],[12],[1,\\\"Keyboard Shortcuts\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Space\\\"],[13],[1,\\\" - Play/Pause\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Left Arrow\\\"],[13],[1,\\\" - Rewind 5 seconds\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Right Arrow\\\"],[13],[1,\\\" - Fast Forward 5 seconds\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Up Arrow\\\"],[13],[1,\\\" - Increase volume\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Down Arrow\\\"],[13],[1,\\\" - Decrease volume\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"J\\\"],[13],[1,\\\" - Jump Forward 10 seconds\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"I\\\"],[13],[1,\\\" - Jump Back 10 seconds\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\".\\\"],[13],[1,\\\" - Increase Playback Speed\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\",\\\"],[13],[1,\\\" - Decrease Playback Speed\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"]\\\"],[13],[1,\\\" - Jump to Next subtitle cue\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"[\\\"],[13],[1,\\\" - Jump to Previous subtitle cue\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"M\\\"],[13],[1,\\\" - Mute/Unmute\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"C\\\"],[13],[1,\\\" - Toggle Closed Captioning\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"F\\\"],[13],[1,\\\" - Toggle Fullscreen\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[10,\\\"b\\\"],[12],[1,\\\"Esc\\\"],[13],[1,\\\" - Exit Fullscreen\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"help-button-close\\\"],[24,\\\"aria-label\\\",\\\"Close Help Guide\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"closeHelp\\\"]]],null],[12],[1,\\\"CLOSE\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[15,0,[29,[\\\"video-settings-controls \\\",[52,[30,0,[\\\"settingsOpen\\\"]],\\\"active\\\"]]]],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Video Settings\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"video-speed\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Playback Speed Controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"video-speed-selector\\\"],[14,\\\"role\\\",\\\"radiogroup\\\"],[14,\\\"aria-label\\\",\\\"Select Playback Speed\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,12],[[28,[37,12],[[30,0,[\\\"speedOptions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,1,[30,1,[\\\"id\\\"]]],[16,\\\"speed\\\",[30,1,[\\\"speed\\\"]]],[16,0,[29,[\\\"option \\\",[52,[28,[37,13],[[30,1,[\\\"speed\\\"]],[30,0,[\\\"playbackRate\\\"]]],null],\\\"current\\\"]]]],[16,\\\"aria-label\\\",[30,1,[\\\"aria\\\"]]],[16,\\\"aria-checked\\\",[29,[[52,[28,[37,13],[[30,1,[\\\"speed\\\"]],[30,0,[\\\"playbackRate\\\"]]],null],\\\"true\\\",\\\"false\\\"]]]],[24,\\\"role\\\",\\\"radio\\\"],[4,[38,5],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"selectSpeed\\\"]],[30,1,[\\\"speed\\\"]]],null]],null],[12],[1,[30,1,[\\\"label\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"video-resolution\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Video Resolution Controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"video-resolution-selector\\\"],[14,\\\"role\\\",\\\"radiogroup\\\"],[14,\\\"aria-label\\\",\\\"Select Video Resolution\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[30,0,[\\\"session\\\",\\\"kaltura_flavors\\\"]]],null],null,[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,1,[29,[\\\"video-resolution-\\\",[30,3]]]],[16,\\\"resolution\\\",[29,[[30,3]]]],[16,0,[29,[\\\"option\\\\n \\\",[52,[28,[37,13],[[30,3],\\\"Uncompressed\\\"],null],\\\"uncompressed\\\"],\\\"\\\\n \\\",[52,[28,[37,13],[[30,3],[30,0,[\\\"currentRes\\\"]]],null],\\\"current\\\"]]]],[16,\\\"aria-label\\\",[29,[\\\"Resolution \\\",[30,3]]]],[16,\\\"aria-checked\\\",[29,[[52,[28,[37,13],[[30,3],[30,0,[\\\"currentRes\\\"]]],null],\\\"true\\\",\\\"false\\\"]]]],[24,\\\"role\\\",\\\"radio\\\"],[4,[38,5],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"selectResolution\\\"]],[30,3]],null]],null],[12],[1,[30,3]],[13],[1,\\\"\\\\n\\\"]],[2,3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"media-player-controls\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Video Controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"play-slider\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"video-seek-slider\\\"],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Seek Video Position\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"video-seek-slider\\\"],[24,0,\\\"play-slider-input\\\"],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"1000\\\"],[24,\\\"step\\\",\\\"1\\\"],[16,2,[30,0,[\\\"seekValue\\\"]]],[24,\\\"aria-label\\\",\\\"Seek Video Position\\\"],[24,\\\"aria-valuemin\\\",\\\"0\\\"],[24,\\\"aria-valuemax\\\",\\\"1000\\\"],[16,\\\"aria-valuenow\\\",[30,0,[\\\"seekValue\\\"]]],[16,\\\"aria-valuetext\\\",[29,[[30,0,[\\\"currentTimeFormatted\\\"]],\\\" of \\\",[30,0,[\\\"durationFormatted\\\"]]]]],[24,4,\\\"range\\\"],[4,[38,5],[\\\"input\\\",[30,0,[\\\"seek\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"playback-controls\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Playback Controls\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa fa-play play-button video-play-button\\\"],[24,\\\"aria-label\\\",\\\"Play Video\\\"],[16,\\\"aria-hidden\\\",[29,[[52,[30,0,[\\\"isPlaying\\\"]],\\\"true\\\",\\\"false\\\"]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"play\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut SPACE\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa fa-pause pause-button video-pause-button\\\"],[24,\\\"aria-label\\\",\\\"Pause Video\\\"],[16,\\\"aria-hidden\\\",[29,[[52,[30,0,[\\\"isPlaying\\\"]],\\\"false\\\",\\\"true\\\"]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"pause\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut SPACE\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa fa-arrow-rotate-left video-rewind-button\\\"],[24,\\\"aria-label\\\",\\\"Rewind 5 seconds\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"rewind\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut left arrow\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa fa-arrow-rotate-right video-forward-button\\\"],[24,\\\"aria-label\\\",\\\"Forward 5 seconds\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"forward\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut right arrow\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"video-time-code\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"video-time-code-current\\\"],[12],[1,[30,0,[\\\"currentTimeFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"video-time-code-separator\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"|\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"video-time-code-total\\\"],[12],[1,[30,0,[\\\"durationFormatted\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Time indicator available, use seek slider to navigate\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"audio-controls\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"Audio Controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideVolumeControls\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"volume-button-mute fa-regular \\\",[52,[30,0,[\\\"muted\\\"]],\\\"fa-volume-off\\\",\\\"fa-volume\\\"]]]],[24,\\\"aria-label\\\",\\\"Toggle Mute\\\"],[16,\\\"aria-pressed\\\",[29,[[30,0,[\\\"muted\\\"]]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleMute\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut M\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"volume-slider\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"video-volume-slider\\\"],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Volume\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"video-volume-slider\\\"],[24,0,\\\"volume-slider-input\\\"],[24,\\\"min\\\",\\\"0\\\"],[24,\\\"max\\\",\\\"100\\\"],[24,\\\"step\\\",\\\"1\\\"],[16,2,[30,0,[\\\"volume\\\"]]],[24,\\\"aria-label\\\",\\\"Adjust Volume\\\"],[24,\\\"aria-valuemin\\\",\\\"0\\\"],[24,\\\"aria-valuemax\\\",\\\"100\\\"],[16,\\\"aria-valuenow\\\",[30,0,[\\\"volume\\\"]]],[16,\\\"aria-valuetext\\\",[29,[[30,0,[\\\"volume\\\"]],\\\" percent volume\\\"]]],[24,4,\\\"range\\\"],[4,[38,5],[\\\"input\\\",[30,0,[\\\"changeVolume\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa-regular fa-repeat video-loop-toggle \\\",[52,[30,0,[\\\"looping\\\"]],\\\"active\\\"]]]],[24,\\\"aria-label\\\",\\\"Toggle Loop\\\"],[16,\\\"aria-pressed\\\",[29,[[30,0,[\\\"looping\\\"]]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleLoop\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut L\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"fa-regular fa-closed-captioning video-cc-toggle \\\",[52,[30,0,[\\\"ccActive\\\"]],\\\"active\\\"]]]],[24,\\\"aria-label\\\",\\\"Toggle Closed Captioning\\\"],[16,\\\"aria-pressed\\\",[29,[[30,0,[\\\"ccActive\\\"]]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleCC\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut C\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa fa-expand-wide video-fullscreen\\\"],[24,\\\"aria-label\\\",\\\"Toggle Full Screen\\\"],[16,\\\"aria-pressed\\\",[29,[[30,0,[\\\"isFullscreen\\\"]]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleFullScreen\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut F\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-ellipsis-vertical extra-options-toggle\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"toggleSettings\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-window-restore minmax-button\\\"],[24,\\\"aria-label\\\",\\\"Maximize Video Player\\\"],[16,\\\"aria-expanded\\\",[29,[[52,[51,[30,0,[\\\"isMinified\\\"]]],\\\"true\\\",\\\"false\\\"]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"minmax\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-arrow-rotate-left video-rewind-button\\\"],[24,\\\"aria-label\\\",\\\"Rewind 5 seconds\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"rewind\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut left arrow\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-arrow-rotate-right video-forward-button\\\"],[24,\\\"aria-label\\\",\\\"Forward 5 seconds\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"forward\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut right arrow\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-play-circle play-button\\\"],[24,\\\"aria-label\\\",\\\"Play Video\\\"],[16,\\\"aria-hidden\\\",[29,[[52,[30,0,[\\\"isPlaying\\\"]],\\\"true\\\",\\\"false\\\"]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"play\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut SPACE\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-pause pause-button\\\"],[24,\\\"aria-label\\\",\\\"Pause Video\\\"],[16,\\\"aria-hidden\\\",[29,[[52,[30,0,[\\\"isPlaying\\\"]],\\\"false\\\",\\\"true\\\"]]]],[4,[38,5],[\\\"click\\\",[30,0,[\\\"pause\\\"]]],null],[12],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"shortcut SPACE\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"fa-regular fa-times-circle video-close-button\\\"],[24,\\\"aria-label\\\",\\\"Close Video\\\"],[4,[38,5],[\\\"click\\\",[30,0,[\\\"close\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"player-error-background \\\",[52,[51,[30,0,[\\\"hasError\\\"]]],\\\"hidden\\\"]]]],[14,\\\"aria-live\\\",\\\"assertive\\\"],[14,\\\"role\\\",\\\"alert\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"player-error-panel\\\"],[12],[1,\\\"Our LAvideo provider is experiencing difficulties - this video is\\\\n temporarily unavailable\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"video\\\"],[24,0,\\\"player\\\"],[24,\\\"crossorigin\\\",\\\"anonymous\\\"],[24,\\\"controlsList\\\",\\\"nodownload\\\"],[24,\\\"tabindex\\\",\\\"-1\\\"],[4,[38,3],[[30,0,[\\\"registerVideoEl\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"source\\\"],[14,\\\"src\\\",\\\"\\\"],[14,4,\\\"video/mp4\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Your browser does not support HTML5 video. Please upgrade your browser.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[11,0],[24,0,\\\"player wistia-mount\\\"],[4,[38,3],[[30,0,[\\\"registerWistiaMount\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-live\\\",\\\"assertive\\\"],[14,0,\\\"sr-only video-status-announcer\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,0,\\\"video-player paused minified hidden\\\"],[14,1,\\\"kalturaPlayer\\\"],[14,\\\"aria-label\\\",\\\"BOCCE Kaltura Player\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"kalturaContainer\\\"],[14,\\\"aria-label\\\",\\\"Kaltura Video Player\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"fa-regular fa-times-circle\\\"],[14,\\\"aria-label\\\",\\\"Close Video\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"fa-regular fa-window-restore\\\"],[14,\\\"aria-label\\\",\\\"Maximize Video Player\\\"],[14,\\\"aria-expanded\\\",\\\"false\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,0,\\\"sr-only kaltura-status-announcer\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"opt\\\",\\\"( unused value )\\\",\\\"flavor\\\"],[\\\"div\\\",\\\"if\\\",\\\"unless\\\",\\\"did-insert\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"h1\\\",\\\"ul\\\",\\\"li\\\",\\\"b\\\",\\\"each\\\",\\\"-track-array\\\",\\\"same\\\",\\\"fn\\\",\\\"-each-in\\\",\\\"label\\\",\\\"input\\\",\\\"span\\\",\\\"video\\\",\\\"source\\\",\\\"p\\\"]]\",\n \"moduleName\": \"bocce/components/video-player.hbs\",\n \"isStrictMode\": false\n });\n\n // eslint-disable-next-line ember/no-mixins\n\n // Singleton player. Playback itself lives in an engine (app/utils/video-engines)\n // chosen per source; everything here is chrome: placement, minify, transcript,\n // keyboard and analytics.\n var VideoPlayerComponent = _exports.default = (_dec = (0, _service.inject)(\"av-players\"), _class = /*#__PURE__*/function (_Component) {\n function VideoPlayerComponent(owner, args) {\n var _window$matchMedia$ma, _window$matchMedia, _window;\n var _this;\n _classCallCheck(this, VideoPlayerComponent);\n _this = _callSuper(this, VideoPlayerComponent, [owner, args]);\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n _initializerDefineProperty(_this, \"accessibility\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"avPlayers\", _descriptor3, _this);\n // -- Tracked UI state --------------------------------------------------\n _initializerDefineProperty(_this, \"isOpen\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"isMinified\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"isPlaying\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"isHidden\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"isFullscreen\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"isWistia\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"hasError\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"hasCC\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"ccActive\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"looping\", _descriptor11, _this);\n _initializerDefineProperty(_this, \"muted\", _descriptor12, _this);\n _initializerDefineProperty(_this, \"settingsOpen\", _descriptor13, _this);\n _initializerDefineProperty(_this, \"helpOpen\", _descriptor14, _this);\n _initializerDefineProperty(_this, \"currentTime\", _descriptor15, _this);\n _initializerDefineProperty(_this, \"duration\", _descriptor16, _this);\n _initializerDefineProperty(_this, \"seekValue\", _descriptor17, _this);\n _initializerDefineProperty(_this, \"volume\", _descriptor18, _this);\n _initializerDefineProperty(_this, \"playbackRate\", _descriptor19, _this);\n _initializerDefineProperty(_this, \"currentRes\", _descriptor20, _this);\n _initializerDefineProperty(_this, \"noFlavors\", _descriptor21, _this);\n _initializerDefineProperty(_this, \"uncompressed\", _descriptor22, _this);\n _initializerDefineProperty(_this, \"smallMobile\", _descriptor23, _this);\n _initializerDefineProperty(_this, \"hideVolumeControls\", _descriptor24, _this);\n // -- Internal refs (not tracked - never read in template) -------------\n _defineProperty(_this, \"rootEl\", null);\n _defineProperty(_this, \"videoEl\", null);\n _defineProperty(_this, \"wistiaMountEl\", null);\n _defineProperty(_this, \"triggerEl\", null);\n _defineProperty(_this, \"homeParent\", null);\n _defineProperty(_this, \"homeAnchor\", null);\n _defineProperty(_this, \"engine\", null);\n _defineProperty(_this, \"intersectionObserver\", null);\n _defineProperty(_this, \"sizeFrame\", null);\n _defineProperty(_this, \"transcriptEl\", null);\n _defineProperty(_this, \"transcriptItems\", []);\n _defineProperty(_this, \"cueTimes\", []);\n _defineProperty(_this, \"currentCueIndex\", -1);\n // A tap can leave :hover stuck on a touch screen, which would wedge\n // auto-scroll off, so only trust hover where there's a real pointer.\n _defineProperty(_this, \"canHover\", (_window$matchMedia$ma = (_window$matchMedia = (_window = window).matchMedia) === null || _window$matchMedia === void 0 || (_window$matchMedia = _window$matchMedia.call(_window, \"(hover: hover)\")) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.matches) !== null && _window$matchMedia$ma !== void 0 ? _window$matchMedia$ma : true);\n _defineProperty(_this, \"isMinmaxing\", false);\n _defineProperty(_this, \"speedOptions\", [{\n speed: 2,\n id: \"video-speed-2\",\n label: \"2X\",\n aria: \"Speed 2X\"\n }, {\n speed: 1.75,\n id: \"video-speed-175\",\n label: \"1.75X\",\n aria: \"Speed 1.75X\"\n }, {\n speed: 1.5,\n id: \"video-speed-15\",\n label: \"1.5X\",\n aria: \"Speed 1.5X\"\n }, {\n speed: 1.25,\n id: \"video-speed-125\",\n label: \"1.25X\",\n aria: \"Speed 1.25X\"\n }, {\n speed: 1,\n id: \"video-speed-1\",\n label: \"1X\",\n aria: \"Speed 1X\"\n }, {\n speed: 0.75,\n id: \"video-speed-75\",\n label: \"0.75X\",\n aria: \"Speed 0.75X\"\n }, {\n speed: 0.5,\n id: \"video-speed-05\",\n label: \"0.5X\",\n aria: \"Speed 0.5X\"\n }, {\n speed: 0.25,\n id: \"video-speed-25\",\n label: \"0.25X\",\n aria: \"Speed 0.25X\"\n }]);\n // Minifying, maximizing and window resizes all change the box; let the engine\n // re-fit itself once the change has actually been painted, and coalesce\n // bursts of resize events into one measurement.\n _defineProperty(_this, \"_syncEngineSize\", function () {\n if (_this.sizeFrame) {\n cancelAnimationFrame(_this.sizeFrame);\n }\n _this.sizeFrame = requestAnimationFrame(function () {\n var _this$engine;\n _this.sizeFrame = null;\n (_this$engine = _this.engine) === null || _this$engine === void 0 || _this$engine.resize();\n });\n });\n // Track fullscreen state\n _defineProperty(_this, \"_onFullscreenChange\", function () {\n var _this$rootEl;\n var fsEl = document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;\n var isFs = fsEl === _this.rootEl;\n _this.isFullscreen = isFs;\n (_this$rootEl = _this.rootEl) === null || _this$rootEl === void 0 || _this$rootEl.classList.toggle(\"fullscreen\", isFs);\n\n // Going fullscreen makes the video not intersect with the page\n // Which turns the video into the sticky mini-player\n // So clear the minified state in that case\n if (isFs && _this.isMinified) {\n var _this$rootEl2;\n _this.isMinified = false;\n (_this$rootEl2 = _this.rootEl) === null || _this$rootEl2 === void 0 || _this$rootEl2.classList.remove(\"minified\");\n }\n _this._syncEngineSize();\n });\n _this.currentRes = _this.session.currentVideoRes;\n return _this;\n }\n _inherits(VideoPlayerComponent, _Component);\n return _createClass(VideoPlayerComponent, [{\n key: \"currentSource\",\n get: function get() {\n var _this$engine2;\n return ((_this$engine2 = this.engine) === null || _this$engine2 === void 0 ? void 0 : _this$engine2.url) || \"\";\n }\n\n // -- Insert / register / teardown -------------------------------------\n }, {\n key: \"registerRoot\",\n value: function registerRoot(element) {\n var _this2 = this;\n this.rootEl = element;\n this.homeParent = element.parentNode;\n this.homeAnchor = document.createComment(\"video-player-home\");\n this.homeParent.insertBefore(this.homeAnchor, element);\n this.avPlayers.registerVideoPlayer(this);\n\n // Block context menu on the root.\n element.addEventListener(\"contextmenu\", function (e) {\n return e.preventDefault();\n });\n // Register fullscreen state tracking listener\n this._fullscreenAbortController = new AbortController();\n var signal = this._fullscreenAbortController.signal;\n [\"fullscreenchange\", \"webkitfullscreenchange\", \"mozfullscreenchange\", \"MSFullscreenChange\"].forEach(function (evtName) {\n return document.addEventListener(evtName, _this2._onFullscreenChange, {\n signal: signal\n });\n });\n // The Wistia embed runs with videoFoam off, so nothing re-measures it on a\n // window resize unless we ask.\n window.addEventListener(\"resize\", this._syncEngineSize, {\n signal: signal\n });\n }\n }, {\n key: \"registerVideoEl\",\n value: function registerVideoEl(element) {\n this.videoEl = element;\n }\n }, {\n key: \"registerWistiaMount\",\n value: function registerWistiaMount(element) {\n this.wistiaMountEl = element;\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n var _this$engine3, _this$_fullscreenAbor;\n _superPropGet(VideoPlayerComponent, \"willDestroy\", this, 3)([]);\n if (this.sizeFrame) {\n cancelAnimationFrame(this.sizeFrame);\n }\n (_this$engine3 = this.engine) === null || _this$engine3 === void 0 || _this$engine3.destroy();\n this.engine = null;\n this._teardownObserver();\n this._teardownTranscript();\n if (this.homeAnchor && this.homeAnchor.parentNode) {\n this.homeAnchor.remove();\n }\n (_this$_fullscreenAbor = this._fullscreenAbortController) === null || _this$_fullscreenAbor === void 0 || _this$_fullscreenAbor.abort();\n this.avPlayers.unregisterVideoPlayer(this);\n }\n\n // -- Public API (called by service) -----------------------------------\n }, {\n key: \"openWith\",\n value: function openWith(_ref) {\n var _trigger$closest;\n var trigger = _ref.trigger,\n source = _ref.source,\n track = _ref.track,\n poster = _ref.poster,\n kaltura = _ref.kaltura,\n wistia = _ref.wistia,\n noFlavors = _ref.noFlavors,\n standalone = _ref.standalone,\n uncompressed = _ref.uncompressed;\n if (!this.rootEl || !this.videoEl) {\n return;\n }\n this.doClose({\n keepStateForReopen: true\n });\n this.triggerEl = trigger;\n this.isWistia = !!wistia;\n // Wistia serves its own renditions, so there are no flavors to offer.\n this.noFlavors = !!noFlavors || this.isWistia;\n this.uncompressed = !!uncompressed;\n\n // Show spinner on the trigger icon.\n var inf = trigger.querySelector(\"i\");\n if (inf) {\n inf.classList.remove(\"fa-play\");\n inf.classList.add(\"fa-spinner-third\");\n inf.classList.add(\"fa-spin\");\n }\n\n // Place the player into the trigger's parent so it appears inline.\n var triggerParent = (_trigger$closest = trigger.closest(\".video-asset\")) === null || _trigger$closest === void 0 ? void 0 : _trigger$closest.parentElement;\n if (triggerParent) {\n var rect = triggerParent.lastElementChild.getBoundingClientRect();\n this.rootEl.style.width = rect.width + \"px\";\n this.rootEl.style.height = rect.height + \"px\";\n triggerParent.prepend(this.rootEl);\n }\n this.rootEl.classList.add(\"standalone\");\n this.rootEl.classList.toggle(\"noFlavors\", this.noFlavors);\n this.rootEl.classList.toggle(\"uncompressed\", this.uncompressed);\n this.isOpen = true;\n this.isMinified = false;\n this.isHidden = false;\n this.hasError = false;\n this.hasCC = true;\n this.settingsOpen = false;\n\n // Disable on iPhone - let the native controls handle it.\n this.smallMobile = /iPhone|iPod/i.test(navigator.userAgent);\n // Remove audio controls and set video volume to 100% if on mobile\n this.hideVolumeControls = !!_jquery.default.isMobile;\n if (this.hideVolumeControls) {\n this.volume = 100;\n }\n if (!standalone) {\n this.rootEl.setAttribute(\"playsInline\", \"true\");\n }\n this._start({\n source: source,\n track: track,\n poster: poster,\n kaltura: kaltura,\n wistia: wistia,\n standalone: standalone\n });\n\n // Disable observer for standalone players.\n if (!standalone) {\n this._setupObserver();\n }\n }\n }, {\n key: \"doClose\",\n value: function doClose() {\n var _this$engine4, _this$session$set, _this$session;\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref2$keepStateForReo = _ref2.keepStateForReopen,\n keepStateForReopen = _ref2$keepStateForReo === void 0 ? false : _ref2$keepStateForReo;\n if (!this.rootEl || !this.videoEl) {\n return;\n }\n (_this$engine4 = this.engine) === null || _this$engine4 === void 0 || _this$engine4.destroy();\n this.engine = null;\n (_this$session$set = (_this$session = this.session).set) === null || _this$session$set === void 0 || _this$session$set.call(_this$session, \"currentVideo\", false);\n this._teardownObserver();\n this._teardownTranscript();\n this._resetTriggerIcons();\n\n // Move element back to home position.\n if (this.homeAnchor && this.homeAnchor.parentNode) {\n this.homeAnchor.parentNode.insertBefore(this.rootEl, this.homeAnchor);\n }\n this.rootEl.classList.remove(\"standalone\", \"active\", \"noFlavors\", \"uncompressed\");\n this.rootEl.style.width = \"\";\n this.rootEl.style.height = \"\";\n this.isOpen = false;\n this.isMinified = true;\n this.isHidden = true;\n this.isPlaying = false;\n this.isWistia = false;\n this.hasError = false;\n this.settingsOpen = false;\n if (!keepStateForReopen) {\n this.triggerEl = null;\n this.currentTime = 0;\n this.seekValue = 0;\n }\n }\n }, {\n key: \"maximize\",\n value: function maximize() {\n if (!this.rootEl) {\n return;\n }\n this.isMinmaxing = true;\n this.isMinified = false;\n this.rootEl.classList.remove(\"minified\");\n this.rootEl.scrollIntoView(true);\n this.avPlayers.videoUnfocus = false;\n this._syncEngineSize();\n }\n }, {\n key: \"_start\",\n value: // -- Engine lifecycle --------------------------------------------------\n function () {\n var _start2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {\n var engine, _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n engine = options.wistia ? new _wistia.default(this, this.wistiaMountEl) : new _html.default(this, this.videoEl);\n this.engine = engine;\n _context.p = 1;\n _context.n = 2;\n return engine.load(_objectSpread(_objectSpread({}, options), {}, {\n noFlavors: this.noFlavors,\n nativeControls: this.smallMobile\n }));\n case 2:\n _context.n = 4;\n break;\n case 3:\n _context.p = 3;\n _t = _context.v;\n // A newer open superseded this one while we were loading.\n if (this.engine === engine) {\n this.onEngineError((_t === null || _t === void 0 ? void 0 : _t.message) || _t);\n }\n return _context.a(2);\n case 4:\n if (!(this.engine !== engine)) {\n _context.n = 5;\n break;\n }\n return _context.a(2);\n case 5:\n this.avPlayers.uploadVideoAnalytics(_kalturaUpload.EVENT_IDS.START, this.currentSource);\n this._resetTriggerIcons();\n engine.applySettings({\n playbackRate: this.playbackRate,\n volume: this.volume / 100,\n muted: this.muted,\n loop: this.looping\n });\n this.rootEl.classList.remove(\"minified\");\n this.rootEl.classList.add(\"active\");\n this.isMinified = false;\n _context.n = 6;\n return engine.play();\n case 6:\n if (!(this.engine !== engine)) {\n _context.n = 7;\n break;\n }\n return _context.a(2);\n case 7:\n this._markTriggerActive();\n this.isHidden = false;\n this.avPlayers.videoUnfocus = false;\n this.accessibility.focus(\".video-player.active\", false, \"Unable to focus on video. SHIFT+V to try again.\", 500);\n case 8:\n return _context.a(2);\n }\n }, _callee, this, [[1, 3]]);\n }));\n function _start(_x) {\n return _start2.apply(this, arguments);\n }\n return _start;\n }() // -- Engine callbacks --------------------------------------------------\n }, {\n key: \"onEnginePlay\",\n value: function onEnginePlay() {\n var _this$rootEl3, _this$rootEl4, _this$engine5;\n this.isPlaying = true;\n (_this$rootEl3 = this.rootEl) === null || _this$rootEl3 === void 0 || _this$rootEl3.classList.remove(\"paused\");\n (_this$rootEl4 = this.rootEl) === null || _this$rootEl4 === void 0 || _this$rootEl4.classList.add(\"playing\");\n this.duration = ((_this$engine5 = this.engine) === null || _this$engine5 === void 0 ? void 0 : _this$engine5.duration) || this.duration;\n this._syncTriggerToWindowRestore();\n }\n }, {\n key: \"onEnginePause\",\n value: function onEnginePause() {\n var _this$rootEl5, _this$rootEl6;\n this.isPlaying = false;\n (_this$rootEl5 = this.rootEl) === null || _this$rootEl5 === void 0 || _this$rootEl5.classList.add(\"paused\");\n (_this$rootEl6 = this.rootEl) === null || _this$rootEl6 === void 0 || _this$rootEl6.classList.remove(\"playing\");\n }\n }, {\n key: \"onEngineEnded\",\n value: function onEngineEnded() {\n this.avPlayers.uploadVideoAnalytics(_kalturaUpload.EVENT_IDS.PROGRESS_100, this.currentSource);\n }\n }, {\n key: \"onEngineTime\",\n value: function onEngineTime(currentTime, duration) {\n this.currentTime = currentTime;\n if (duration) {\n this.duration = duration;\n this.seekValue = currentTime / duration * 1000;\n }\n this._highlightTranscript(currentTime);\n this._trackProgress(currentTime, duration);\n }\n }, {\n key: \"onEngineCaptions\",\n value: function onEngineCaptions(_ref3) {\n var hasCC = _ref3.hasCC,\n cues = _ref3.cues;\n this.hasCC = hasCC;\n this._renderTranscript(cues);\n }\n }, {\n key: \"onEngineClick\",\n value: function onEngineClick() {\n if (this.smallMobile) {\n return;\n }\n this.avPlayers.videoUnfocus = false;\n this.togglePlay();\n this.settingsOpen = false;\n }\n }, {\n key: \"onEngineError\",\n value: function onEngineError(error) {\n this._markTriggerActive();\n this.isHidden = false;\n this.hasError = true;\n this._report(\"broken-video\", this.currentSource, error);\n }\n }, {\n key: \"onEngineBrokenCC\",\n value: function onEngineBrokenCC(error) {\n this._report(\"broken-cc\", this.currentSource, error);\n }\n }, {\n key: \"onEngineRecovered\",\n value: function onEngineRecovered() {\n var _this$engine6;\n this.hasError = false;\n (_this$engine6 = this.engine) === null || _this$engine6 === void 0 || _this$engine6.resume();\n }\n\n // -- Trigger icons -----------------------------------------------------\n }, {\n key: \"_resetTriggerIcons\",\n value: function _resetTriggerIcons() {\n document.querySelectorAll(\".video-asset i\").forEach(function (icon) {\n icon.classList.remove(\"fa-window-restore\");\n icon.classList.remove(\"paused\");\n icon.classList.add(\"fa-play\");\n });\n }\n }, {\n key: \"_markTriggerActive\",\n value: function _markTriggerActive() {\n var _this$triggerEl;\n var inf = (_this$triggerEl = this.triggerEl) === null || _this$triggerEl === void 0 ? void 0 : _this$triggerEl.querySelector(\"i\");\n if (!inf) {\n return;\n }\n inf.classList.add(\"fa-window-restore\");\n inf.classList.remove(\"fa-spinner-third\");\n inf.classList.remove(\"fa-spin\");\n inf.classList.remove(\"paused\");\n }\n }, {\n key: \"_syncTriggerToWindowRestore\",\n value: function _syncTriggerToWindowRestore() {\n var _this$rootEl7;\n var component = (_this$rootEl7 = this.rootEl) === null || _this$rootEl7 === void 0 ? void 0 : _this$rootEl7.closest(\".video_component, .video-component\");\n var videoTriggers = component ? [component.querySelector(\".video-asset .fa-play\")] : Array.from(document.querySelectorAll(\".video-asset .fa-play\"));\n videoTriggers.filter(Boolean).forEach(function (icon) {\n icon.classList.remove(\"fa-play\");\n icon.classList.add(\"fa-window-restore\");\n icon.classList.remove(\"paused\");\n });\n }\n\n // -- User actions ------------------------------------------------------\n }, {\n key: \"play\",\n value: function play() {\n var _this$engine7;\n if (this._legacyKaltura(\"play\")) {\n return;\n }\n (_this$engine7 = this.engine) === null || _this$engine7 === void 0 || _this$engine7.resume();\n }\n }, {\n key: \"pause\",\n value: function pause() {\n var _this$engine8;\n if (this._legacyKaltura(\"pause\")) {\n return;\n }\n (_this$engine8 = this.engine) === null || _this$engine8 === void 0 || _this$engine8.pause();\n }\n }, {\n key: \"togglePlay\",\n value: function togglePlay() {\n if (this.isPlaying) {\n this.pause();\n } else {\n this.play();\n }\n }\n\n // The legacy #kalturaContainer embed (see av-players) shares these buttons.\n }, {\n key: \"_legacyKaltura\",\n value: function _legacyKaltura(command) {\n var container = document.getElementById(\"kalturaContainer\");\n if (!(container !== null && container !== void 0 && container.sendNotification)) {\n return false;\n }\n container.sendNotification(command);\n return true;\n }\n }, {\n key: \"rewind\",\n value: function rewind() {\n var _this$engine9;\n (_this$engine9 = this.engine) === null || _this$engine9 === void 0 || _this$engine9.seekBy(-5);\n }\n }, {\n key: \"forward\",\n value: function forward() {\n var _this$engine0;\n (_this$engine0 = this.engine) === null || _this$engine0 === void 0 || _this$engine0.seekBy(10);\n }\n }, {\n key: \"seek\",\n value: function seek(event) {\n var _this$engine1;\n var duration = (_this$engine1 = this.engine) === null || _this$engine1 === void 0 ? void 0 : _this$engine1.duration;\n if (!duration) {\n return;\n }\n this.engine.seek(event.target.value * duration / 1000);\n }\n }, {\n key: \"changeVolume\",\n value: function changeVolume(event) {\n var _this$engine10, _this$engine11;\n this.volume = Number(event.target.value);\n this.muted = this.volume === 0;\n (_this$engine10 = this.engine) === null || _this$engine10 === void 0 || _this$engine10.setVolume(this.volume / 100);\n (_this$engine11 = this.engine) === null || _this$engine11 === void 0 || _this$engine11.setMuted(this.muted);\n }\n }, {\n key: \"changeVolumeDelta\",\n value: function changeVolumeDelta(delta) {\n var _this$engine12, _this$engine13;\n this.volume = Math.max(0, Math.min(100, this.volume + delta * 100));\n this.muted = this.volume === 0;\n (_this$engine12 = this.engine) === null || _this$engine12 === void 0 || _this$engine12.setVolume(this.volume / 100);\n (_this$engine13 = this.engine) === null || _this$engine13 === void 0 || _this$engine13.setMuted(this.muted);\n }\n }, {\n key: \"toggleMute\",\n value: function toggleMute() {\n var _this$engine14;\n this.muted = !this.muted;\n (_this$engine14 = this.engine) === null || _this$engine14 === void 0 || _this$engine14.setMuted(this.muted);\n }\n }, {\n key: \"toggleLoop\",\n value: function toggleLoop() {\n var _this$engine15;\n this.looping = !this.looping;\n (_this$engine15 = this.engine) === null || _this$engine15 === void 0 || _this$engine15.setLoop(this.looping);\n }\n }, {\n key: \"toggleCC\",\n value: function toggleCC() {\n var _this$engine16;\n this.ccActive = ((_this$engine16 = this.engine) === null || _this$engine16 === void 0 ? void 0 : _this$engine16.toggleCC()) || false;\n }\n }, {\n key: \"toggleFullScreen\",\n value: function toggleFullScreen() {\n var isFs = document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;\n if (isFs) {\n if (document.exitFullscreen) {\n document.exitFullscreen();\n } else if (document.webkitExitFullscreen) {\n document.webkitExitFullscreen();\n } else if (document.mozCancelFullScreen) {\n document.mozCancelFullScreen();\n } else if (document.msExitFullscreen) {\n document.msExitFullscreen();\n }\n return;\n }\n var el = this.rootEl;\n if (!el) {\n return;\n }\n if (el.requestFullscreen) {\n el.requestFullscreen();\n } else if (el.mozRequestFullScreen) {\n el.mozRequestFullScreen();\n } else if (el.webkitRequestFullscreen) {\n el.webkitRequestFullscreen();\n } else if (el.msRequestFullscreen) {\n el.msRequestFullscreen();\n } else if (el.webkitEnterFullscreen) {\n el.webkitEnterFullscreen();\n }\n }\n }, {\n key: \"toggleSettings\",\n value: function toggleSettings(event) {\n var _event$preventDefault;\n event === null || event === void 0 || (_event$preventDefault = event.preventDefault) === null || _event$preventDefault === void 0 || _event$preventDefault.call(event);\n this.settingsOpen = !this.settingsOpen;\n }\n }, {\n key: \"openHelp\",\n value: function openHelp(event) {\n var _event$preventDefault2;\n event === null || event === void 0 || (_event$preventDefault2 = event.preventDefault) === null || _event$preventDefault2 === void 0 || _event$preventDefault2.call(event);\n this.helpOpen = true;\n }\n }, {\n key: \"closeHelp\",\n value: function closeHelp(event) {\n var _event$preventDefault3;\n event === null || event === void 0 || (_event$preventDefault3 = event.preventDefault) === null || _event$preventDefault3 === void 0 || _event$preventDefault3.call(event);\n this.helpOpen = false;\n }\n }, {\n key: \"selectSpeed\",\n value: function selectSpeed(speed, event) {\n var _event$preventDefault4, _this$engine17;\n event === null || event === void 0 || (_event$preventDefault4 = event.preventDefault) === null || _event$preventDefault4 === void 0 || _event$preventDefault4.call(event);\n this.playbackRate = speed;\n (_this$engine17 = this.engine) === null || _this$engine17 === void 0 || _this$engine17.setRate(speed);\n }\n }, {\n key: \"changeSpeedDelta\",\n value: function changeSpeedDelta(direction) {\n var _this3 = this;\n var idx = this.speedOptions.findIndex(function (o) {\n return o.speed === _this3.playbackRate;\n });\n if (idx === -1) {\n return;\n }\n // The list runs fastest-first, so a step up is a step back.\n var nextIdx = direction === 1 ? idx - 1 : idx + 1;\n if (nextIdx < 0 || nextIdx >= this.speedOptions.length) {\n return;\n }\n this.selectSpeed(this.speedOptions[nextIdx].speed);\n }\n }, {\n key: \"selectResolution\",\n value: function selectResolution(res, event) {\n var _event$preventDefault5;\n event === null || event === void 0 || (_event$preventDefault5 = event.preventDefault) === null || _event$preventDefault5 === void 0 || _event$preventDefault5.call(event);\n this.requestResolution(res);\n }\n\n // Also called by the engine when playback is too slow to start.\n }, {\n key: \"requestResolution\",\n value: function requestResolution(res) {\n var _this$engine18, _this$session$set2, _this$session2;\n if (res === this.currentRes || !((_this$engine18 = this.engine) !== null && _this$engine18 !== void 0 && _this$engine18.supportsResolution)) {\n return;\n }\n (_this$session$set2 = (_this$session2 = this.session).set) === null || _this$session$set2 === void 0 || _this$session$set2.call(_this$session2, \"videoRes\", res);\n try {\n localStorage.setItem(\"bocceVideoRes\", res);\n } catch (_unused) {\n // ignore\n }\n this.currentRes = res;\n this.engine.setResolution(res);\n this.isHidden = false;\n }\n }, {\n key: \"close\",\n value: function close() {\n this.doClose({});\n }\n }, {\n key: \"minmax\",\n value: function minmax(event) {\n var _event$preventDefault6;\n event === null || event === void 0 || (_event$preventDefault6 = event.preventDefault) === null || _event$preventDefault6 === void 0 || _event$preventDefault6.call(event);\n if (!this.rootEl) {\n return;\n }\n if (this.isMinified) {\n this.maximize();\n } else {\n this.isMinified = true;\n this.rootEl.classList.add(\"minified\");\n this._syncEngineSize();\n }\n }\n\n // -- Intersection observer (auto-minimize when scrolled away) ---------\n }, {\n key: \"_setupObserver\",\n value: function _setupObserver() {\n var _this4 = this;\n this._teardownObserver();\n // Root the observer at the element that actually scrolls and clips the\n // content (`.classroom__main-content`), not the `.main-panel` wrapper.\n // `.main-panel` grows to fit its content and never clips, so an observer\n // rooted there always sees the player as intersecting and never minifies\n // it as the reader scrolls away.\n var root = document.querySelector(\".classroom__main-content\") || document.querySelector(\".main-panel\");\n var options = {\n root: root,\n rootMargin: \"0px\",\n threshold: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1]\n };\n this.intersectionObserver = new IntersectionObserver(function (entries) {\n return _this4._onIntersect(entries);\n }, options);\n this.intersectionObserver.observe(this.rootEl);\n }\n }, {\n key: \"_teardownObserver\",\n value: function _teardownObserver() {\n if (this.intersectionObserver) {\n this.intersectionObserver.disconnect();\n this.intersectionObserver = null;\n }\n }\n }, {\n key: \"_onIntersect\",\n value: function _onIntersect(entries) {\n var _this5 = this;\n entries.forEach(function (entry) {\n if (!entry.isIntersecting && !entry.target.classList.contains(\"minified\") && !_this5.isMinmaxing && !_this5.isFullscreen) {\n // Don't minify if any ancestor is hidden.\n var parent = entry.target.parentElement;\n var blocked = false;\n while (parent) {\n if (parent.classList.contains(\"hidden\") || parent.style.display === \"none\") {\n blocked = true;\n break;\n } else if (parent.classList.contains(\"interaction_content\")) {\n _this5.pause();\n blocked = true;\n break;\n }\n parent = parent.parentElement;\n }\n if (blocked) {\n return;\n }\n _this5.isMinified = true;\n entry.target.classList.add(\"minified\");\n _this5._syncEngineSize();\n } else if (_this5.isMinmaxing) {\n _this5.isMinmaxing = false;\n }\n });\n }\n\n // -- Transcript -------------------------------------------------------\n }, {\n key: \"_renderTranscript\",\n value: function _renderTranscript(cues) {\n var _this6 = this,\n _this$triggerEl2;\n this._teardownTranscript();\n if (!cues || cues.length === 0) {\n return;\n }\n var transcript = document.createElement(\"p\");\n transcript.classList.add(\"transcript\");\n cues.forEach(function (cue) {\n var span = document.createElement(\"span\");\n span.classList.add(\"transcriptItem\");\n span.setAttribute(\"data-time\", cue.time);\n span.innerHTML = cue.text;\n transcript.appendChild(span);\n });\n\n // One delegated listener rather than one per cue; the toggle below falls\n // through it because it isn't a .transcriptItem.\n transcript.addEventListener(\"click\", function (e) {\n var _e$target$closest, _e$target;\n var item = (_e$target$closest = (_e$target = e.target).closest) === null || _e$target$closest === void 0 ? void 0 : _e$target$closest.call(_e$target, \".transcriptItem\");\n if (item) {\n var _this6$engine;\n (_this6$engine = _this6.engine) === null || _this6$engine === void 0 || _this6$engine.seek(parseFloat(item.getAttribute(\"data-time\")) + 0.01);\n }\n });\n var toggle = document.createElement(\"button\");\n toggle.classList.add(\"transcriptShowHide\");\n toggle.innerHTML = \"Show Transcript\";\n toggle.addEventListener(\"click\", function () {\n var shown = transcript.classList.toggle(\"active\");\n toggle.innerHTML = shown ? \"Hide Transcript\" : \"Show Transcript\";\n // Catch up to wherever playback got to while it was collapsed.\n if (shown) {\n _this6._scrollTranscriptTo(_this6.transcriptItems[_this6.currentCueIndex]);\n }\n });\n transcript.appendChild(toggle);\n var videoAsset = (_this$triggerEl2 = this.triggerEl) === null || _this$triggerEl2 === void 0 ? void 0 : _this$triggerEl2.closest(\".video-asset\");\n (videoAsset || this.rootEl).after(transcript);\n this.transcriptEl = transcript;\n this.transcriptItems = Array.from(transcript.querySelectorAll(\".transcriptItem\"));\n // Cue times as numbers, so the per-tick path below never parses attributes.\n this.cueTimes = cues.map(function (cue) {\n return cue.time;\n });\n this.currentCueIndex = -1;\n }\n\n // Runs on every time update, so it does no DOM work unless the cue actually\n // changed. Cues are ordered, and playback usually advances by one, so walking\n // from the last index beats rescanning the list.\n }, {\n key: \"_highlightTranscript\",\n value: function _highlightTranscript(currentTime) {\n var _this$transcriptItems;\n var times = this.cueTimes;\n if (times.length === 0) {\n return;\n }\n var idx = this.currentCueIndex;\n while (idx + 1 < times.length && times[idx + 1] <= currentTime) {\n idx++;\n }\n while (idx >= 0 && times[idx] > currentTime) {\n idx--;\n }\n if (idx === this.currentCueIndex) {\n return;\n }\n (_this$transcriptItems = this.transcriptItems[this.currentCueIndex]) === null || _this$transcriptItems === void 0 || _this$transcriptItems.classList.remove(\"current\");\n this.currentCueIndex = idx;\n if (idx < 0) {\n return;\n }\n var item = this.transcriptItems[idx];\n item.classList.add(\"current\");\n this._scrollTranscriptTo(item);\n }\n\n // Keeps the current line pinned to the top of the box. Hover is the pause\n // signal and it's read on demand, so following along costs no listeners:\n // while the pointer is over the transcript (its scrollbar included) the\n // reader's own scroll position is left alone.\n }, {\n key: \"_scrollTranscriptTo\",\n value: function _scrollTranscriptTo(item) {\n var container = this.transcriptEl;\n if (!item || !(container !== null && container !== void 0 && container.classList.contains(\"active\"))) {\n return;\n }\n if (this.canHover && container.matches(\":hover\")) {\n return;\n }\n container.scrollTop += item.getBoundingClientRect().top - container.getBoundingClientRect().top;\n }\n }, {\n key: \"_teardownTranscript\",\n value: function _teardownTranscript() {\n if (this.transcriptEl) {\n this.transcriptEl.remove();\n this.transcriptEl = null;\n }\n this.transcriptItems = [];\n this.cueTimes = [];\n this.currentCueIndex = -1;\n }\n }, {\n key: \"jumpCue\",\n value: function jumpCue(prev) {\n var _this$engine19;\n if (this.cueTimes.length === 0) {\n return;\n }\n var idx = this.currentCueIndex + (prev ? -1 : 1);\n idx = Math.max(0, Math.min(this.cueTimes.length - 1, idx));\n (_this$engine19 = this.engine) === null || _this$engine19 === void 0 || _this$engine19.seek(this.cueTimes[idx] || 0);\n }\n\n // -- Analytics --------------------------------------------------------\n }, {\n key: \"_trackProgress\",\n value: function _trackProgress(currentTime, duration) {\n if (!currentTime || !duration) {\n return;\n }\n var reached = this.avPlayers.playingVideo.completionPercent || 0;\n var pct = currentTime / duration;\n var next = reached;\n if (pct >= 0.75 && reached < 0.75) {\n next = 0.75;\n this.avPlayers.uploadVideoAnalytics(_kalturaUpload.EVENT_IDS.PROGRESS_75, this.currentSource);\n } else if (pct >= 0.5 && reached < 0.5) {\n next = 0.5;\n this.avPlayers.uploadVideoAnalytics(_kalturaUpload.EVENT_IDS.PROGRESS_50, this.currentSource);\n } else if (pct >= 0.25 && reached < 0.25) {\n next = 0.25;\n this.avPlayers.uploadVideoAnalytics(_kalturaUpload.EVENT_IDS.PROGRESS_25, this.currentSource);\n }\n if (next !== reached) {\n this.avPlayers.playingVideo = _objectSpread(_objectSpread({}, this.avPlayers.playingVideo), {}, {\n completionPercent: next\n });\n }\n }\n }, {\n key: \"_report\",\n value: function _report(endpoint, videoId, error) {\n try {\n // eslint-disable-next-line ember/no-jquery\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/system/\".concat(endpoint, \"?vidURL=\").concat(encodeURIComponent(videoId), \"&vidError=\").concat(encodeURIComponent(error))\n });\n } catch (_unused2) {\n // ignore\n }\n }\n\n // -- Keyboard shortcuts -----------------------------------------------\n }, {\n key: \"handleKeyDown\",\n value: function handleKeyDown(e) {\n var _this$engine20, _this$engine21, _this$engine22, _this$engine23;\n switch (e.keyCode) {\n case 32:\n // space\n e.preventDefault();\n this.togglePlay();\n break;\n case 37:\n // left\n e.preventDefault();\n (_this$engine20 = this.engine) === null || _this$engine20 === void 0 || _this$engine20.seekBy(-5);\n break;\n case 39:\n // right\n e.preventDefault();\n (_this$engine21 = this.engine) === null || _this$engine21 === void 0 || _this$engine21.seekBy(5);\n break;\n case 38:\n // up\n e.preventDefault();\n this.changeVolumeDelta(0.1);\n break;\n case 40:\n // down\n e.preventDefault();\n this.changeVolumeDelta(-0.1);\n break;\n case 70:\n // f\n e.preventDefault();\n this.toggleFullScreen();\n break;\n case 67:\n // c\n e.preventDefault();\n this.toggleCC();\n break;\n case 77:\n // m\n e.preventDefault();\n this.toggleMute();\n break;\n case 74:\n // j\n e.preventDefault();\n (_this$engine22 = this.engine) === null || _this$engine22 === void 0 || _this$engine22.seekBy(10);\n break;\n case 73:\n // i\n e.preventDefault();\n (_this$engine23 = this.engine) === null || _this$engine23 === void 0 || _this$engine23.seekBy(-10);\n break;\n case 190:\n // .\n e.preventDefault();\n this.changeSpeedDelta(1);\n break;\n case 188:\n // ,\n e.preventDefault();\n this.changeSpeedDelta(-1);\n break;\n case 221:\n // ]\n e.preventDefault();\n this.jumpCue(false);\n break;\n case 219:\n // [\n e.preventDefault();\n this.jumpCue(true);\n break;\n // no default\n }\n }\n\n // -- Template helpers --------------------------------------------------\n }, {\n key: \"currentTimeFormatted\",\n get: function get() {\n return this._formatTime(this.currentTime);\n }\n }, {\n key: \"durationFormatted\",\n get: function get() {\n return this._formatTime(this.duration);\n }\n }, {\n key: \"_formatTime\",\n value: function _formatTime(t) {\n if (!t || isNaN(t)) {\n return \"0:00\";\n }\n var h = Math.floor(t / 3600);\n var m = Math.floor(t % 3600 / 60);\n var s = Math.floor(t % 3600 % 60);\n return (h > 0 ? h + \":\" + (m < 10 ? \"0\" : \"\") : \"\") + m + \":\" + (s < 10 ? \"0\" : \"\") + s;\n }\n }]);\n }(_component2.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"accessibility\", [_service.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"avPlayers\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isMinified\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isPlaying\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isHidden\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isFullscreen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isWistia\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"hasError\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"hasCC\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"ccActive\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"looping\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"muted\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"settingsOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"helpOpen\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"currentTime\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"duration\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"seekValue\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"volume\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 100;\n }\n }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"playbackRate\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 1;\n }\n }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"currentRes\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"noFlavors\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"uncompressed\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"smallMobile\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"hideVolumeControls\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"registerRoot\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerRoot\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerVideoEl\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerVideoEl\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"registerWistiaMount\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"registerWistiaMount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"play\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"play\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pause\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"pause\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"togglePlay\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"togglePlay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"rewind\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"rewind\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"forward\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"forward\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"seek\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"seek\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changeVolume\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"changeVolume\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleMute\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleMute\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleLoop\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleLoop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleCC\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleCC\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleFullScreen\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleFullScreen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleSettings\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleSettings\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openHelp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"openHelp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeHelp\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeHelp\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectSpeed\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectSpeed\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectResolution\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"selectResolution\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"minmax\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"minmax\"), _class.prototype), _class);\n (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, VideoPlayerComponent);\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/controllers/classroom/admin/cache\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _regeneratorValues(e) { if (null != e) { var t = e[\"function\" == typeof Symbol && Symbol.iterator || \"@@iterator\"], r = 0; if (t) return t.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + \" is not iterable\"); }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var _default = _exports.default = _controller.default.extend({\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n quizUsers: [],\n selectedQuizUser: {},\n selectedQuiz: {},\n canFlushQuizCache: (0, _object.computed)(\"selectedQuizUser\", function () {\n if (Object.keys(this.get(\"selectedQuizUser\")).length !== 0) {\n return true;\n }\n return false;\n }),\n sendFlushRequest: function sendFlushRequest(path) {\n var _this = this;\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"course\";\n var reload = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n showElements(\".floating-modal.admin .cache-management .status .in-progress\");\n var basePath = \"/interface/system/flush/\";\n if (type === \"quiz\") {\n basePath = \"/interface/\";\n }\n return fetch(\"\".concat(basePath).concat(path), {\n method: \"POST\"\n }).then(function (response) {\n return response.json();\n }).then(function (responseJSON) {\n if (reload) {\n _this.flushResponseHandler(responseJSON);\n }\n });\n },\n flushResponseHandler: function flushResponseHandler(retval) {\n hideElements(\".floating-modal.admin .cache-management .status .in-progress\");\n // Success\n if (retval === \"success\") {\n // The cache call was successful\n showElements(\".floating-modal.admin .cache-management .status .success\");\n hideElements(\".floating-modal.admin .cache-management .status .failure\");\n // Refresh the browser\n setTimeout(function () {\n location.reload();\n }, 3000);\n } else {\n // Unsuccessful\n showElements(\".floating-modal.admin .cache-management .status .failure\");\n hideElements(\".floating-modal.admin .cache-management .status .success\");\n }\n },\n loadQuizUsers: function () {\n var _loadQuizUsers = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(quizId) {\n var path, data, firstUserId;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n path = \"/interface/sections/\".concat(this.get(\"session.section.id\"), \"/quizzes/\").concat(quizId, \"/submission_users\");\n _context.n = 1;\n return $.get(path);\n case 1:\n data = _context.v;\n if (data.quiz_submission_users.users) {\n firstUserId = data.quiz_submission_users.users[0].id;\n this.setSelectedQuizUser(firstUserId);\n this.set(\"quizUsers\", data.quiz_submission_users.users);\n }\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function loadQuizUsers(_x) {\n return _loadQuizUsers.apply(this, arguments);\n }\n return loadQuizUsers;\n }(),\n setSelectedQuizUser: function () {\n var _setSelectedQuizUser = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(userId) {\n var thisUser;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n _context2.n = 1;\n return this.store.findRecord(\"user\", userId);\n case 1:\n thisUser = _context2.v;\n this.set(\"selectedQuizUser\", thisUser);\n case 2:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n function setSelectedQuizUser(_x2) {\n return _setSelectedQuizUser.apply(this, arguments);\n }\n return setSelectedQuizUser;\n }(),\n setSelectedQuiz: function () {\n var _setSelectedQuiz = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(quizId) {\n var thisQuiz;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n _context3.n = 1;\n return this.store.findRecord(\"quiz\", quizId);\n case 1:\n thisQuiz = _context3.v;\n this.set(\"selectedQuiz\", thisQuiz);\n case 2:\n return _context3.a(2);\n }\n }, _callee3, this);\n }));\n function setSelectedQuiz(_x3) {\n return _setSelectedQuiz.apply(this, arguments);\n }\n return setSelectedQuiz;\n }(),\n toggleCacheClearConfirm: (0, _object.action)(function (selector) {\n selector = \".\".concat(selector);\n var element = document.querySelector(selector);\n if (element) {\n element.classList.toggle(\"hidden\");\n }\n }),\n clearCache: (0, _object.action)(function (type) {\n /* eslint-disable-next-line ember/no-get */\n var courseId = this.get(\"session.course.id\"),\n /* eslint-disable-next-line ember/no-get */\n sectionId = this.get(\"session.section.id\"),\n path;\n switch (type) {\n case \"lessons\":\n path = \"courses/\".concat(courseId, \"/modules\");\n break;\n case \"assignment\":\n path = \"courses/\".concat(courseId, \"/assignments\");\n break;\n case \"discussion\":\n path = \"courses/\".concat(courseId, \"/discussion_topics\");\n break;\n case \"events\":\n path = \"calendar_events?context_codes[]=course_\".concat(courseId, \"&all_events=true\");\n break;\n case \"enrollments\":\n path = \"sections/\".concat(sectionId, \"/enrollments\");\n break;\n case \"course\":\n path = \"courses/\".concat(courseId);\n break;\n case \"quiz\":\n path = \"quiz-admin/flush-context/\".concat(courseId, \"/\").concat(this.get(\"selectedQuiz.search_id\"), \"/\").concat(this.get(\"selectedQuizUser.id\"));\n break;\n }\n this.sendFlushRequest(path, type);\n }),\n flushAllUserQuizzes: (0, _object.action)(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {\n var _this2 = this;\n var users, paths, i, j, requestObject, startingMilliseconds, finishedObject, _loop, _i, _paths;\n return _regenerator().w(function (_context5) {\n while (1) switch (_context5.n) {\n case 0:\n _context5.n = 1;\n return this.store.findAll(\"user\");\n case 1:\n users = _context5.v;\n paths = [];\n for (i = 0; i < this.model.length; i++) {\n for (j = 0; j < users.length; j++) {\n requestObject = {\n path: \"quiz-admin/flush-context/\".concat(this.get(\"session.course.id\"), \"/\").concat(this.model.objectAt(i).get(\"search_id\"), \"/\").concat(users.objectAt(j).get(\"id\")),\n courseId: this.get(\"session.course.id\"),\n quizSearchId: this.model.objectAt(i).get(\"search_id\"),\n userId: users.objectAt(j).get(\"id\")\n };\n paths.push(requestObject);\n }\n }\n\n //Queue up a bunch of requests\n startingMilliseconds = 500, finishedObject = {\n path: \"\"\n };\n paths.push(finishedObject);\n _loop = /*#__PURE__*/_regenerator().m(function _loop() {\n var singleRequestObject;\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n singleRequestObject = _paths[_i];\n setTimeout(function () {\n if (singleRequestObject.path) {\n $(\".clear-all-user-quizzes-results\").text(\"Flushing Quiz \".concat(singleRequestObject.quizSearchId, \" for User \").concat(singleRequestObject.userId));\n _this2.sendFlushRequest(singleRequestObject.path, \"quiz\", false);\n } else {\n $(\".clear-all-user-quizzes-results\").text(\"Finished clearing caches, Reloading...\");\n location.reload();\n }\n }, startingMilliseconds);\n startingMilliseconds += 500;\n case 1:\n return _context4.a(2);\n }\n }, _loop);\n });\n _i = 0, _paths = paths;\n case 2:\n if (!(_i < _paths.length)) {\n _context5.n = 4;\n break;\n }\n return _context5.d(_regeneratorValues(_loop()), 3);\n case 3:\n _i++;\n _context5.n = 2;\n break;\n case 4:\n return _context5.a(2);\n }\n }, _callee4, this);\n }))),\n selectQuiz: (0, _object.action)(/*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(event) {\n var quizId;\n return _regenerator().w(function (_context6) {\n while (1) switch (_context6.n) {\n case 0:\n quizId = event.target.value;\n $(\".quizzes .quiz-options .quiz-users\").removeClass(\"hidden\");\n this.setSelectedQuiz(quizId);\n _context6.n = 1;\n return this.loadQuizUsers(quizId);\n case 1:\n return _context6.a(2);\n }\n }, _callee5, this);\n }));\n return function (_x4) {\n return _ref2.apply(this, arguments);\n };\n }()),\n selectQuizUser: (0, _object.action)(function (event) {\n var userId = event.target.value;\n this.setSelectedQuizUser(userId);\n })\n });\n function hideElements(selector) {\n var _iterator = _createForOfIteratorHelper(document.querySelectorAll(selector)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var element = _step.value;\n element.classList.add(\"hidden\");\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n function showElements(selector) {\n var _iterator2 = _createForOfIteratorHelper(document.querySelectorAll(selector)),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var element = _step2.value;\n element.classList.remove(\"hidden\");\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/controllers/classroom/survey\", [\"exports\", \"@ember/controller\", \"bocce/mixins/enmodal\", \"@ember/object\", \"@ember/service\", \"@glimmer/tracking\"], function (_exports, _controller, _enmodal, _object, _service, _tracking) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5; // app/controllers/classroom/survey.js\n /* eslint-disable-next-line ember/no-mixins */\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/enmodal\",0,\"@ember/object\",0,\"@ember/service\",0,\"@glimmer/tracking\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var ClassroomSurveyController = _exports.default = (_class = /*#__PURE__*/function (_Controller$extend) {\n function ClassroomSurveyController() {\n var _this;\n _classCallCheck(this, ClassroomSurveyController);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, ClassroomSurveyController, [].concat(args));\n _initializerDefineProperty(_this, \"classroom\", _descriptor, _this);\n // required by EnmodalMixin\n _initializerDefineProperty(_this, \"confirmDialog\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"session\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"survey\", _descriptor4, _this);\n // Lets a developer opt past the \"this is a real survey\" warning\n _initializerDefineProperty(_this, \"showTestingWarning\", _descriptor5, _this);\n return _this;\n }\n _inherits(ClassroomSurveyController, _Controller$extend);\n return _createClass(ClassroomSurveyController, [{\n key: \"display\",\n value: function display() {\n var _this$survey$qualtric;\n this.showTestingWarning = !!((_this$survey$qualtric = this.survey.qualtrics) !== null && _this$survey$qualtric !== void 0 && _this$survey$qualtric.isTestingEnvironment);\n this.session.set(\"panel\", \"survey\");\n }\n }, {\n key: \"devTakeSurvey\",\n value: function devTakeSurvey() {\n this.showTestingWarning = false;\n }\n }, {\n key: \"closeSurvey\",\n value: function closeSurvey() {\n this.survey.dismissNudge();\n this.survey.close();\n }\n\n // A locked survey only closes once it's actually done, so re-check on demand\n // rather than making the user wait for the next poll\n }, {\n key: \"attemptCloseSurvey\",\n value: function () {\n var _attemptCloseSurvey = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return this.survey.refresh();\n case 1:\n if (!this.survey.isLocked) {\n _context.n = 2;\n break;\n }\n this.confirmDialog.show({\n subtitle: \"It looks like this survey isn't finished yet. Please complete it to get back into the course.\\n\\n(If you just submitted it, give it a moment and try again.)\"\n });\n return _context.a(2);\n case 2:\n this.survey.close();\n case 3:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function attemptCloseSurvey() {\n return _attemptCloseSurvey.apply(this, arguments);\n }\n return attemptCloseSurvey;\n }()\n }]);\n }(_controller.default.extend(_enmodal.default)), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"classroom\", [_controller.inject], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"confirmDialog\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"survey\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"showTestingWarning\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"display\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"display\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"devTakeSurvey\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"devTakeSurvey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeSurvey\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeSurvey\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"attemptCloseSurvey\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"attemptCloseSurvey\"), _class.prototype), _class);\n});","define(\"bocce/components/showcase-post\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n Posting showcase. Please wait...
    \n \n \n
    \n \n
    \n
    \n
    \n */\n {\n \"id\": \"9rChhyLk\",\n \"block\": \"[[[10,0],[14,0,\\\"showcase-body\\\"],[14,5,\\\"padding-bottom: 0px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"showcase-wait\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin fa-fw\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Posting showcase. Please wait...\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,2],[[24,0,\\\"showcase-subject\\\"],[24,\\\"placeholder\\\",\\\"Title of Showcase\\\"]],[[\\\"@value\\\",\\\"@aria-required\\\"],[[30,1],\\\"true\\\"]],null],[1,\\\"\\\\n \\\"],[8,[39,3],[[24,0,\\\"showcase-comment\\\"],[24,\\\"placeholder\\\",\\\"Please elaborate on why you're choosing to showcase this item...\\\"]],[[\\\"@value\\\"],[[30,2]]],null],[1,\\\" \\\"],[11,0],[24,0,\\\"styled-select\\\"],[4,[38,4],[\\\"change\\\",[30,3]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"select\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[12],[1,\\\"Choose Week\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[12],[1,\\\"Week 1\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[12],[1,\\\"Week 2\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[12],[1,\\\"Week 3\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"4\\\"],[12],[1,\\\"Week 4\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"5\\\"],[12],[1,\\\"Week 5\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"6\\\"],[12],[1,\\\"Week 6\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"7\\\"],[12],[1,\\\"Week 7\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"8\\\"],[12],[1,\\\"Week 8\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"9\\\"],[12],[1,\\\"Week 9\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[12],[1,\\\"Week 10\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[12],[1,\\\"Week 11\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[12],[1,\\\"Week 12\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[16,0,[29,[\\\"post-showcase \\\",[52,[51,[30,4]],\\\"waiting\\\"]]]],[4,[38,4],[\\\"click\\\",[30,5]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@changeShowcaseWeek\\\",\\\"@readyToShowcase\\\",\\\"@postShowcase\\\"],[\\\"div\\\",\\\"i\\\",\\\"input\\\",\\\"textarea\\\",\\\"on\\\",\\\"select\\\",\\\"option\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"bocce/components/showcase-post.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"showcase-post\"));\n});","define(\"bocce/components/side-panel/activity\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/service\", \"@ember/debug\", \"@ember/array/proxy\", \"bocce/models/discussion\", \"bocce/models/assignment\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _service, _debug, _proxy, _discussion, _assignment, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/array/proxy\",0,\"bocce/models/discussion\",0,\"bocce/models/assignment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if @loading}}\n
  • \n \n
    Loading...
    \n
  • \n {{else}}\n {{#if (and this.showAnnouncement this.latestAnnouncement)}}\n
    \n
    \n
    \n \n
    \n
    \n
    \n ANNOUNCEMENT\n
    \n
    \n {{this.latestAnnouncement.title}}\n
    \n
    \n \n \n \n \n
    \n
    \n
    \n
    \n {{/if}}\n
    \n {{#if this.activitiesThisWeek.length}}\n
    \n This Week\n
    \n
      \n {{#each this.activitiesThisWeek as |activity|}}\n
    • \n \n
    • \n {{/each}}\n
    \n {{/if}}\n {{#if this.activitiesUpcoming.length}}\n
    \n Upcoming\n
    \n
      \n {{#each this.activitiesUpcoming as |activity|}}\n
    • \n \n
    • \n {{/each}}\n
    \n {{/if}}\n {{#if this.activitiesPast.length}}\n
    \n Past\n
    \n
      \n {{#each this.activitiesPast as |activity|}}\n
    • \n \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n {{/if}}\n {{#if this.showMultiButton}}\n \n <:items>\n {{#if this.session.isInstructor}}\n \n Announcement\n \n {{/if}}\n \n Conversation\n \n \n <:buttonContent as |isOpen|>\n \n New\n \n \n {{/if}}\n */\n {\n \"id\": \"6cc+BY0r\",\n \"block\": \"[[[41,[30,1],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"activity-panel__loading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Loading...\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,4],[[30,0,[\\\"showAnnouncement\\\"]],[30,0,[\\\"latestAnnouncement\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"announcement-card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"announcement-card__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"announcement-card__icon\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-bullhorn\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"announcement-card__info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"announcement-card__heading\\\"],[12],[1,\\\"\\\\n ANNOUNCEMENT\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"announcement-card__title\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"latestAnnouncement\\\",\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"announcement-card__actions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@route\\\",\\\"@model\\\"],[\\\"classroom.activity.discussion\\\",[30,0,[\\\"latestAnnouncement\\\",\\\"id\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button--purple button--sm\\\"],[12],[1,\\\"Read Now\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button--white button--sm\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"hideAnnouncement\\\"]]],null],[12],[1,\\\"Read Later\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"activity-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"activitiesThisWeek\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"activity-content__header\\\"],[12],[1,\\\"\\\\n This Week\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"activity-content__list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"activitiesThisWeek\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@activity\\\"],[[30,2]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"activitiesUpcoming\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"activity-content__header\\\"],[12],[1,\\\"\\\\n Upcoming\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"activity-content__list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"activitiesUpcoming\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@activity\\\"],[[30,3]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"activitiesPast\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"activity-content__header\\\"],[12],[1,\\\"\\\\n Past\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"activity-content__list\\\"],[14,\\\"role\\\",\\\"navigation\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"activitiesPast\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@activity\\\"],[[30,4]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"showMultiButton\\\"]],[[[1,\\\" \\\"],[8,[39,12],null,null,[[\\\"items\\\",\\\"buttonContent\\\"],[[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[8,[39,5],[[24,0,\\\"multi-button__link\\\"]],[[\\\"@route\\\"],[\\\"classroom.activity.announcement-new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon fa-regular fa-bullhorn\\\"],[12],[13],[1,\\\"Announcement\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[8,[39,5],[[24,0,\\\"multi-button__link\\\"]],[[\\\"@route\\\"],[\\\"classroom.activity.discussion-new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"multi-button__popup-icon fa-regular fa-messages\\\"],[12],[13],[1,\\\"Conversation\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"]],[]],[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular \\\",[52,[30,5],\\\"fa-times\\\",\\\"fa-plus\\\"]]]],[12],[13],[1,\\\"\\\\n New\\\\n \\\"]],[5]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@loading\\\",\\\"activity\\\",\\\"activity\\\",\\\"activity\\\",\\\"isOpen\\\"],[\\\"if\\\",\\\"li\\\",\\\"i\\\",\\\"div\\\",\\\"and\\\",\\\"link-to\\\",\\\"button\\\",\\\"on\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"side-panel/activity-card\\\",\\\"buttons/multi-button\\\",\\\":items\\\",\\\":buttonContent\\\"]]\",\n \"moduleName\": \"bocce/components/side-panel/activity.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n showAnnouncement: true,\n session: (0, _service.inject)(),\n router: (0, _service.inject)(),\n // Element info\n\n classNames: [\"activity-panel\"],\n // Default empty arrays for when assignments or discussions is falsey\n // These arrays are also responsible for filtering out locked items.\n discussionsArray: (0, _object.computed)(\"discussions.@each.locked\", function () {\n var discussions = this.discussions || [];\n return discussions.filter(function (d) {\n return !d.get(\"locked\");\n });\n }),\n assignmentsArray: (0, _object.computed)(\"assignments\", function () {\n return this.assignments || _proxy.default.create();\n }),\n // The \"unread\" list means something different per role: instructors see\n // assignments needing their attention, students see only assignments with\n // unread feedback on their own submission (not merely unsubmitted work).\n assignmentsNeedingAttention: (0, _object.computed)(\"session.isInstructor\", \"assignmentsArray.@each.{needsTeacherAttention,isStudentUnread}\", function () {\n var assignments = this.assignmentsArray;\n /* eslint-disable-next-line ember/no-get */\n var filter = this.get(\"session.isInstructor\") ? \"needsTeacherAttention\" : \"isStudentUnread\";\n return assignments.filter(function (assignment) {\n return assignment[filter] === true;\n });\n }),\n // Sets the type of model to filter on.\n // possible values:\n // * 'all'\n // * 'assignments'\n // * 'discussions'\n // * 'requiredDiscussions'\n // * 'announcements'\n filterType: \"all\",\n // Sets whether to show unread items (and what constitutes 'unread')\n // Possible values:\n // * 'all'\n // * 'unread'\n // * 'ungraded'\n // * 'resubmission'\n // * 'comments'\n // * 'new'\n filterUnread: \"all\",\n // This computed property makes the filter template easier to read.\n filterString: (0, _object.computed)(\"filterType\", \"filterUnread\", function () {\n var type = this.filterType;\n var unread = this.filterUnread;\n // For development/testing builds, this is a safety check to try and catch\n // if we're accidentally setting either filter option to an unsupported value.\n (false && !([\"all\", \"assignments\", \"conversations\", \"requiredDiscussions\", \"announcements\"].includes(type)) && (0, _debug.assert)(\"filterType must be a supported type: \".concat(type), [\"all\", \"assignments\", \"conversations\", \"requiredDiscussions\", \"announcements\"].includes(type)));\n (false && !([\"all\", \"unread\", \"ungraded\", \"resubmission\", \"comments\", \"new\", \"unsubmitted\"].includes(unread)) && (0, _debug.assert)(\"filterUnread must be a supported type: \".concat(unread), [\"all\", \"unread\", \"ungraded\", \"resubmission\", \"comments\", \"new\", \"unsubmitted\"].includes(unread)));\n return \"\".concat(this.filterType, \"_\").concat(this.filterUnread);\n }),\n // Functions for filtered categories\n\n all_all: (0, _object.computed)(\"discussionsArray.[]\", \"assignmentsArray.[]\", function () {\n var discussions = this.discussionsArray.slice();\n var assignments = this.assignmentsArray.slice();\n return _proxy.default.create({\n content: [].concat(_toConsumableArray(discussions), _toConsumableArray(assignments))\n });\n }),\n all_unread: (0, _object.computed)(\"discussionsArray.@each.unread\", \"assignmentsNeedingAttention.[]\", function () {\n var discussions = this.discussionsArray.filter(function (discussion) {\n return discussion.unread === true;\n });\n var assignments = this.assignmentsNeedingAttention;\n return _proxy.default.create({\n content: [].concat(_toConsumableArray(discussions), _toConsumableArray(assignments))\n });\n }),\n announcements_all: (0, _object.computed)(\"discussionsArray\", function () {\n return this.discussionsArray.filter(function (discussion) {\n return discussion.is_announcement === true;\n });\n }),\n announcements_unread: (0, _computed.filterBy)(\"announcements_all\", \"unread\"),\n latestAnnouncement: (0, _object.computed)(\"announcements_all.[]\", function () {\n return this.announcements_all.find(function (a) {\n return !a.read;\n });\n }),\n assignments_all: (0, _computed.alias)(\"assignmentsArray\"),\n assignments_unsubmitted: (0, _computed.filterBy)(\"assignments_all\", \"isStudentIncomplete\"),\n assignments_ungraded: (0, _object.computed)(\"assignmentsArray.@each.numUngradedSubmissions\", function () {\n var ungraded = this.assignmentsArray.filter(function (assignment) {\n return assignment.numUngradedSubmissions;\n });\n return ungraded;\n }),\n assignments_comments: (0, _computed.filterBy)(\"assignments_all\", \"numUnreadSubmissions\"),\n assignments_resubmission: (0, _computed.filterBy)(\"assignments_all\", \"numResubmissionsPending\"),\n nonAnnouncements: (0, _computed.filterBy)(\"discussionsArray\", \"isNotAnnouncement\"),\n requiredDiscussions_all: (0, _object.computed)(\"nonAnnouncements.@each.is_required\", \"session.isInstructor\", function () {\n var required = this.nonAnnouncements.filter(function (na) {\n return na.is_required;\n });\n\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.isInstructor\")) {\n required = required.filter(function (d) {\n var now = moment();\n var due = moment(d.get(\"due_at\"));\n return !d.get(\"due_at\") || due < now || d.get(\"dueWithinOneWeek\") || d.get(\"dueWithinTwoWeeks\");\n });\n }\n return required;\n }),\n requiredDiscussions_unread: (0, _computed.filterBy)(\"requiredDiscussions_all\", \"unread\"),\n conversations_all: (0, _computed.filterBy)(\"nonAnnouncements\", \"isConversation\"),\n conversations_unread: (0, _computed.filterBy)(\"conversations_all\", \"unread\"),\n // activities computed property selects the correct filter computed property,\n // and returns that value. Activities is also responsible for sorting.\n activities: (0, _object.computed)(\"filterString\", \"all_all.[]\", \"all_unread.[]\", \"announcements_all.[]\", \"announcements_unread.[]\", \"assignments_all.[]\", \"assignments_unsubmitted.[]\", \"assignments_ungraded.[]\", \"assignments_comments.[]\", \"assignments_resubmission.[]\", \"requiredDiscussions_all.[]\", \"requiredDiscussions_unread.[]\", \"conversations_all.[]\", \"conversations_unread.[]\", function () {\n var filter = this.filterString;\n var result = this.get(filter);\n result = this.filterBuggedAnnouncements(this.announcements_all, result);\n (false && !(result !== undefined) && (0, _debug.assert)(\"\".concat(filter, \" must be defined on activity class\"), result !== undefined));\n return result.sort(function (a, b) {\n return new Date(b.get(\"sortDate\")) - new Date(a.get(\"sortDate\"));\n });\n }),\n filteredActivities: (0, _object.computed)(\"activities.[]\", \"activeFilters.[]\", \"searchValue\", function () {\n var _this = this;\n return this.activities.filter(function (activity) {\n return _this.matchingSearchFilter(activity) && _this.matchingFilter(activity);\n });\n }),\n matchingSearchFilter: function matchingSearchFilter(item) {\n if (this.searchValue.trim() === \"\") {\n return true;\n }\n return item.title.toLowerCase().includes(this.searchValue.toLowerCase());\n },\n matchingFilter: function matchingFilter(item) {\n if (this.activeFilters.length === 0) {\n return true;\n }\n var matchingFilter = false;\n //check \"announcements\" filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"announcements\") && item.is_announcement;\n // check \"assignments\" filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"assignments\") && item instanceof _assignment.default;\n //check \"ungraded\" filter — assignments with a submission still awaiting a\n //grade (resubmission-marked submissions count as graded; see\n //assignment.hasUngradedSubmission). Discussions lack this property, so\n //they're naturally excluded.\n matchingFilter = matchingFilter || this.activeFilters.includes(\"ungraded\") && item.hasUngradedSubmission;\n //check \"unread\" filter: a discussion/announcement with unread messages\n //(unopened, or opened with new replies), or (students) an assignment with\n //unread feedback on their own submission / (instructors) an assignment\n //needing their attention. Unsubmitted work is the \"incomplete\" filter below.\n matchingFilter = matchingFilter || this.activeFilters.includes(\"unread\") && (item.unread === true || (this.session.isInstructor ? item.needsTeacherAttention : item.isStudentUnread));\n //check \"new\" filter, get all items from the last week\n var lastWeek = new Date();\n lastWeek.setDate(lastWeek.getDate() - 7);\n matchingFilter = matchingFilter || this.activeFilters.includes(\"new\") && item.sortDate > lastWeek;\n //check \"incomplete\" filter: assignments and required discussions the student\n //hasn't completed (no submission / awaiting resubmission, or an unanswered\n //required discussion). Conversations, announcements, and quizzes don't count.\n var incomplete = item instanceof _assignment.default && item.todo || item instanceof _discussion.default && item.is_required && !item.is_announcement && item.todo;\n matchingFilter = matchingFilter || this.activeFilters.includes(\"incomplete\") && incomplete;\n //check work filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"work\") && item.due_at;\n //check \"user discussions\" filter — discussions that are not required, not announcements, not admin announcements\n matchingFilter = matchingFilter || this.activeFilters.includes(\"user discussions\") && item instanceof _discussion.default && !item.is_required && !item.is_announcement && !item.is_admin_announcement;\n return matchingFilter;\n },\n activitiesThisWeek: (0, _object.computed)(\"filteredActivities.[]\", function () {\n var _this2 = this;\n return this.filteredActivities.filter(function (activity) {\n var _this2$currentWeekRan = _this2.currentWeekRange(),\n firstDayOfWeek = _this2$currentWeekRan.firstDayOfWeek,\n lastDayOfWeek = _this2$currentWeekRan.lastDayOfWeek;\n // Graded work (assignments, required discussions) buckets by due\n // date; conversations and announcements by their latest activity.\n var activityDate = activity.due_at ? new Date(activity.due_at) : new Date(activity.lastReplyDate || activity.date);\n return activityDate >= firstDayOfWeek && activityDate <= lastDayOfWeek;\n })\n //sort ascending\n .sort(function (a, b) {\n var dateA = a.is_announcement ? new Date(a.date) : new Date(a.due_at || a.lastReplyDate || a.date);\n var dateB = b.is_announcement ? new Date(b.date) : new Date(b.due_at || b.lastReplyDate || b.date);\n return dateA - dateB;\n });\n }),\n activitiesUpcoming: (0, _object.computed)(\"filteredActivities.[]\", function () {\n var _this3 = this;\n return this.filteredActivities.filter(function (activity) {\n var _this3$currentWeekRan = _this3.currentWeekRange(),\n lastDayOfWeek = _this3$currentWeekRan.lastDayOfWeek;\n var activityDate = activity.is_announcement ? new Date(activity.date) : new Date(activity.due_at);\n return activityDate > lastDayOfWeek;\n })\n //sort ascending\n .sort(function (a, b) {\n var dateA = a.is_announcement ? new Date(a.date) : new Date(a.due_at || a.lastReplyDate || a.date);\n var dateB = b.is_announcement ? new Date(b.date) : new Date(b.due_at || b.lastReplyDate || b.date);\n return dateA - dateB;\n });\n }),\n activitiesPast: (0, _object.computed)(\"filteredActivities.[]\", function () {\n var _this4 = this;\n return this.filteredActivities.filter(function (activity) {\n var _this4$currentWeekRan = _this4.currentWeekRange(),\n firstDayOfWeek = _this4$currentWeekRan.firstDayOfWeek;\n var activityDate = activity.due_at ? new Date(activity.due_at) : new Date(activity.lastReplyDate || activity.date);\n return activityDate < firstDayOfWeek;\n });\n }),\n filterBuggedAnnouncements: function filterBuggedAnnouncements(announcements_all, result) {\n var dupes = [];\n var find_dupes_helper = new Set();\n var dirty_announcements = announcements_all.filter(function (announcement) {\n return announcement.hasDirtyAttributes;\n });\n dirty_announcements = dirty_announcements.map(function (item) {\n return item.idSlug;\n });\n var _iterator = _createForOfIteratorHelper(announcements_all),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (find_dupes_helper.has(item.db_id)) {\n dupes.push(item.db_id);\n }\n find_dupes_helper.add(item.db_id);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return result.filter(function (item) {\n return !(dirty_announcements.includes(item.idSlug) && dupes.includes(item.db_id));\n });\n },\n currentWeekRange: function currentWeekRange() {\n // get first day (monday) of week\n var firstDayOfWeek = new Date();\n var currentDay = firstDayOfWeek.getDay();\n // if sunday, go back 6 days. otherwise take difference from monday\n var diff = currentDay === 0 ? -6 : 1 - currentDay;\n firstDayOfWeek.setDate(firstDayOfWeek.getDate() + diff);\n firstDayOfWeek.setHours(0, 0, 0, 0);\n\n // get last day (sunday) of week\n var lastDayOfWeek = new Date();\n currentDay = lastDayOfWeek.getDay();\n // if sunday, stay. otherwise go forward to sunday\n diff = currentDay === 0 ? 0 : 7 - currentDay;\n lastDayOfWeek.setDate(lastDayOfWeek.getDate() + diff);\n lastDayOfWeek.setHours(23, 59, 59, 9999);\n return {\n firstDayOfWeek: firstDayOfWeek,\n lastDayOfWeek: lastDayOfWeek\n };\n },\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n totalUngradedSubmissions: (0, _object.computed)(\"assignmentsArray.@each.numUngradedSubmissions\", function () {\n var ungraded = 0;\n this.assignments_ungraded.forEach(function (assignment) {\n ungraded += assignment.get(\"numUngradedSubmissions\");\n });\n return ungraded;\n }),\n showMultiButton: (0, _object.computed)(\"session.{isInstructor,readOnly,isLimitedStudentTerm}\", function () {\n return !this.session.readOnly && (this.session.isInstructor || !this.session.isLimitedStudentTerm);\n }),\n changeFilter: (0, _object.action)(function (type) {\n var unread = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"all\";\n if (typeof unread !== \"string\") {\n var _unread;\n (false && !(((_unread = unread) === null || _unread === void 0 || (_unread = _unread.target) === null || _unread === void 0 ? void 0 : _unread.value) && typeof unread.target.value === \"string\") && (0, _debug.assert)(\"If not a string, unread must be an event\", ((_unread = unread) === null || _unread === void 0 || (_unread = _unread.target) === null || _unread === void 0 ? void 0 : _unread.value) && typeof unread.target.value === \"string\"));\n unread = unread.target.value;\n }\n this.set(\"filterType\", type);\n this.set(\"filterUnread\", unread);\n }),\n hideAnnouncement: (0, _object.action)(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n this.set(\"showAnnouncement\", false);\n case 1:\n return _context.a(2);\n }\n }, _callee, this);\n })))\n }));\n});","define(\"bocce/components/side-panel/late-grading-policy\", [\"exports\", \"@ember/component\", \"@ember/service\", \"@ember/object\", \"bocce/config/environment\", \"@ember/template-factory\"], function (_exports, _component, _service, _object, _environment, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"@ember/object\",0,\"bocce/config/environment\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
    \n
    Late Grading Policy
    \n \n
    \n \n {{! Note, the html content is 'minified' because the white-space is preserved via\n 'white-space:pre-wrap', which shows all white space inside the element. This is used in this case to preserve the white space\n the professor has in their late grading policy description; new lines for example. }}\n
    {{this.lateGradingPolicy}}\n
    \n \n */\n {\n \"id\": \"0/Kf1lwo\",\n \"block\": \"[[[11,0],[24,\\\"aria-hidden\\\",\\\"true\\\"],[24,0,\\\"late-grading-policy-dialog-backdrop\\\"],[4,[38,1],[\\\"click\\\",[30,1]],null],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-describedby\\\",\\\"late-grading-policy\\\"],[14,0,\\\"late-grading-policy-dialog active\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"late-grading-policy-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"late-grading-policy-title\\\"],[14,1,\\\"late-grading-policy\\\"],[12],[1,\\\"Late Grading Policy\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Close Late Grading Policy Panel\\\"],[24,0,\\\"late-grading-policy-close\\\"],[4,[38,1],[\\\"click\\\",[30,1]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,\\\"tabindex\\\",\\\"0\\\"],[14,0,\\\"late-grading-policy-content\\\"],[12],[1,[30,0,[\\\"lateGradingPolicy\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@closeLateGradingPolicy\\\"],[\\\"div\\\",\\\"on\\\",\\\"button\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/components/side-panel/late-grading-policy.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n session: (0, _service.inject)(),\n didInsertElement: function didInsertElement() {\n var _this = this;\n this.keyupCallback = function (evt) {\n evt = evt || window.event;\n var isEscape = false;\n if (\"key\" in evt) {\n isEscape = evt.key === \"Escape\" || evt.key === \"Esc\";\n } else {\n isEscape = evt.keyCode === 27;\n }\n if (isEscape) {\n _this.closeLateGradingPolicy();\n }\n };\n document.addEventListener(\"keyup\", this.keyupCallback);\n },\n willDestroyElement: function willDestroyElement() {\n document.removeEventListener(\"keyup\", this.keyupCallback);\n },\n lateGradingPolicy: (0, _object.computed)(\"session\", function () {\n return this.get(\"session.lateGradingPolicyWithDefault\");\n })\n }));\n});","define(\"bocce/components/side-panel/work\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"bocce/models/discussion\", \"bocce/models/assignment\", \"bocce/models/quiz\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _discussion, _assignment, _quiz, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"bocce/models/discussion\",0,\"bocce/models/assignment\",0,\"bocce/models/quiz\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n To-Do\n \n (incomplete) assignments.\n {{#if this.unread_count}}{{this.unread_count}} unread.{{/if}}\n \n \n {{#if this.todoOpen}}\n
      \n {{#if @loading}}\n
    • \n \n Loading...\n
    • \n {{else}}\n {{#each this.todo as |item|}}\n \n {{else}}\n
    • \n Your work is all done for now!\n
    • \n {{/each}}\n {{/if}}\n
    \n {{/if}}\n
    \n
    \n Complete\n Assignments\n \n \n {{#if this.completedOpen}}\n
      \n {{#if @loading}}\n
    • \n \n Loading...\n
    • \n {{else}}\n {{#each this.done as |item|}}\n \n {{/each}}\n {{/if}}\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"d6fQA0Ie\",\n \"block\": \"[[[10,0],[14,0,\\\"work-panel__scroll-group\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"h3\\\"],[24,1,\\\"todo-heading\\\"],[24,0,\\\"work-panel__scroll-group-header\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"tabindex\\\",\\\"0\\\"],[16,\\\"aria-expanded\\\",[52,[30,0,[\\\"todoOpen\\\"]],\\\"true\\\",\\\"false\\\"]],[24,\\\"aria-controls\\\",\\\"todo-list\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleTodo\\\"]]],null],[4,[38,3],[\\\"keydown\\\",[30,0,[\\\"activateOnKey\\\"]]],null],[12],[1,\\\"To-Do\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n (incomplete) assignments.\\\\n \\\"],[41,[30,0,[\\\"unread_count\\\"]],[[[1,[30,0,[\\\"unread_count\\\"]]],[1,\\\" unread.\\\"]],[]],null],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far \\\",[52,[30,0,[\\\"todoOpen\\\"]],\\\"fa-chevron-up\\\",\\\"fa-chevron-down\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"todoOpen\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,1,\\\"todo-list\\\"],[14,0,\\\"work-panel__card-container\\\"],[14,\\\"aria-labelledby\\\",\\\"todo-heading\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"work-panel__loading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"todo\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,10],null,[[\\\"@item\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[2]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n Your work is all done for now!\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"work-panel__scroll-group\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"h3\\\"],[24,1,\\\"completed-heading\\\"],[24,0,\\\"work-panel__scroll-group-header\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"tabindex\\\",\\\"0\\\"],[16,\\\"aria-expanded\\\",[52,[30,0,[\\\"completedOpen\\\"]],\\\"true\\\",\\\"false\\\"]],[24,\\\"aria-controls\\\",\\\"completed-list\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"toggleCompleted\\\"]]],null],[4,[38,3],[\\\"keydown\\\",[30,0,[\\\"activateOnKey\\\"]]],null],[12],[1,\\\"Complete\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Assignments\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far \\\",[52,[30,0,[\\\"completedOpen\\\"]],\\\"fa-chevron-up\\\",\\\"fa-chevron-down\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"completedOpen\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,1,\\\"completed-list\\\"],[14,0,\\\"work-panel__card-container\\\"],[14,\\\"aria-labelledby\\\",\\\"completed-heading\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"work-panel__loading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"done\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,10],null,[[\\\"@item\\\"],[[30,3]]],null],[1,\\\"\\\\n\\\"]],[3]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"@loading\\\",\\\"item\\\",\\\"item\\\"],[\\\"div\\\",\\\"h3\\\",\\\"if\\\",\\\"on\\\",\\\"span\\\",\\\"i\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"side-panel/work-card\\\"]]\",\n \"moduleName\": \"bocce/components/side-panel/work.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n session: (0, _service.service)(),\n todoOpen: true,\n completedOpen: false,\n classNames: [\"activities\", \"work-panel\"],\n assignmentsArray: (0, _object.computed)(\"assignments\", function () {\n return this.assignments || [];\n }),\n discussionsArray: (0, _object.computed)(\"discussions\", function () {\n return this.discussions || [];\n }),\n quizzesArray: (0, _object.computed)(\"quizzes\", function () {\n return this.quizzes || [];\n }),\n all: (0, _object.computed)(\"quizzesArray.[]\", \"assignmentsArray.@each.locked\", \"discussionsArray.@each.locked\", function () {\n var quizzesArray = this.quizzesArray,\n assignmentsArray = this.assignmentsArray,\n discussionsArray = this.discussionsArray;\n var all = [].concat(_toConsumableArray(quizzesArray), _toConsumableArray(assignmentsArray.filter(function (a) {\n return !a.get(\"locked\");\n })), _toConsumableArray(discussionsArray.filter(function (a) {\n return !a.get(\"locked\");\n })));\n all.sort(function (a, b) {\n return new Date(b.get(\"sortDate\")) - new Date(a.get(\"sortDate\"));\n });\n return all;\n }),\n todo: (0, _object.computed)(\"all.@each.todo\", \"activeFilters\", \"searchValue\", function () {\n var _this = this;\n var all = this.all;\n return all.filter(function (item) {\n return item.get(\"todo\");\n }).filter(function (item) {\n return _this.matchingSearchFilter(item) && _this.matchingFilter(item);\n });\n }),\n matchingSearchFilter: function matchingSearchFilter(item) {\n if (this.searchValue.trim() === \"\") {\n return true;\n }\n return item.title.toLowerCase().includes(this.searchValue.toLowerCase());\n },\n matchingFilter: function matchingFilter(item) {\n if (this.activeFilters.length === 0) {\n return true;\n }\n var matchingFilter = false;\n //check \"unread\" filter: a discussion with unread messages (unopened or with\n //new replies), or (students) an assignment with unread feedback on their own\n //submission. Unsubmitted work is the \"incomplete\" filter below, not here.\n matchingFilter = matchingFilter || this.activeFilters.includes(\"unread\") && (item.unread === true || (this.session.isInstructor ? item.needsTeacherAttention : item.isStudentUnread));\n //check \"incomplete\" filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"incomplete\") && item.todo;\n //check assignments filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"assignments\") && item instanceof _assignment.default;\n //check discussions filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"discussions\") && item instanceof _discussion.default && !item.title.toLowerCase().includes(\"exercise\");\n //check quizzes filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"quizzes\") && item instanceof _quiz.default;\n //check exercises filter\n matchingFilter = matchingFilter || this.activeFilters.includes(\"exercises\") && item.title.toLowerCase().includes(\"exercise\");\n return matchingFilter;\n },\n // Counts unread work for the To-Do summary: assignments with unread feedback\n // on the student's own submission (assignment.isStudentUnread) and unread\n // discussions. Unfinished work is conveyed by the To-Do list itself, not this\n // count. Quizzes never count toward this header.\n unread_count: (0, _object.computed)(\"all.@each.{unread,isStudentUnread}\", function () {\n var unreadCount = this.all.filter(function (item) {\n if (item instanceof _assignment.default) {\n return item.isStudentUnread;\n }\n if (item instanceof _discussion.default) {\n return item.unread;\n }\n return false;\n }).length;\n return unreadCount > 0 ? unreadCount : false;\n }),\n done: (0, _object.computed)(\"all.@each.todo\", \"activeFilters\", \"searchValue\", function () {\n var _this2 = this;\n return this.all.filter(function (item) {\n return !item.get(\"todo\");\n }).filter(function (item) {\n return _this2.matchingSearchFilter(item) && _this2.matchingFilter(item);\n });\n }),\n setShowLateGradingPolicy: (0, _object.action)(function (show) {\n this.set(\"showLateGradingPolicy\", show);\n }),\n toggleTodo: (0, _object.action)(function () {\n this.set(\"todoOpen\", !this.get(\"todoOpen\"));\n }),\n toggleCompleted: (0, _object.action)(function () {\n this.set(\"completedOpen\", !this.get(\"completedOpen\"));\n }),\n // The To-Do / Complete headers are role=\"button\" so VoiceOver / keyboard\n // users can collapse and expand them. Activate on Enter and Space, which\n // is what role=\"button\" implies semantically.\n activateOnKey: (0, _object.action)(function (event) {\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n event.target.click();\n }\n })\n }));\n});","define(\"bocce/components/submission-new-view\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/component/template-only\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
    \n

    \n {{{@controller.activeAssignment.title}}}\n

    \n \n Due\n {{@controller.activeAssignment.formattedDate}}\n \n \n View in Lesson\n {{@controller.isAssignment}}\n \n \n \n {{#if @controller.activeAssignment.rubric_criteria}}\n \n {{/if}}\n {{#if @controller.activeAssignment.is_timed}}\n {{#unless @controller.assignmentTimer}}\n {{#if @controller.activeAssignment.timed_assignment.no_timer}}\n {{#if @controller.activeAssignment.timed_assignment}}\n
    \n
    \n Prompt:\n
    \n {{{@controller.activeAssignment.timed_assignment.question}}}\n
    \n {{/if}}\n {{else}}\n
    \n {{#unless @controller.timerStarting}}\n Start Timed Assignment\n {{else}}\n \n {{/unless}}\n
    \n {{/if}}\n {{else}}\n {{#if @controller.activeAssignment.timed_assignment}}\n
    \n
    \n Prompt:\n
    \n {{{@controller.activeAssignment.timed_assignment.question}}}\n
    \n {{/if}}\n {{/unless}}\n {{/if}}\n
    \n {{#if @controller.activeAssignment.overdue}}\n \n \n Overdue\n \n {{/if}}\n
    \n {{#unless (and @controller.activeAssignment.is_timed (not @controller.assignmentTimer))}}\n {{#if @controller.assignmentTimer}}\n {{#unless @controller.lockdown}}\n \n {{@controller.assignmentTimer}}\n remaining...
    \n {{else}}\n \n Time's up! Please submit ASAP. ({{@controller.assignmentTimer}}\n past due...)\n {{/unless}}\n {{else}}\n {{#if @controller.activeAssignment.timed_assignment.no_timer}}\n
    \n TIMER DISABLED
    \n {{/if}}\n {{/if}}\n \n {{/unless}}\n \n \n */\n {\n \"id\": \"9a/ng5/s\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"active unsubmitted\\\\n \\\",[52,[30,1,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"],\\\"\\\\n \\\",[52,[30,1,[\\\"replyInProgress\\\"]],\\\"replying\\\"]]]],[14,1,\\\"assignment\\\"],[12],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"submission-instructions active\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,1,\\\"assignment-submission-instructions\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"activeAssignment\\\",\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"submission-due-date \\\",[52,[30,1,[\\\"activeAssignment\\\",\\\"overdue\\\"]],\\\"submission-overdue\\\"]]]],[15,\\\"aria-label\\\",[29,[\\\"Assignment due date: \\\",[30,1,[\\\"activeAssignment\\\",\\\"formattedDate\\\"]]]]],[12],[1,\\\"\\\\n Due\\\\n \\\"],[1,[30,1,[\\\"activeAssignment\\\",\\\"formattedDate\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"discussion-header__metadata-separator fa-solid fa-dot\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link\\\"],[4,[38,6],[\\\"click\\\",[28,[37,7],[[30,1,[\\\"viewInLesson\\\"]],[30,1,[\\\"activeAssignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n View in Lesson\\\\n \\\"],[1,[30,1,[\\\"isAssignment\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,8],null,[[\\\"@content\\\"],[[30,1,[\\\"activeAssignment\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"activeAssignment\\\",\\\"rubric_criteria\\\"]],[[[1,\\\" \\\"],[8,[39,9],null,[[\\\"@criteria\\\"],[[30,1,[\\\"activeAssignment\\\",\\\"rubric_criteria\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,1,[\\\"activeAssignment\\\",\\\"is_timed\\\"]],[[[41,[51,[30,1,[\\\"assignmentTimer\\\"]]],[[[41,[30,1,[\\\"activeAssignment\\\",\\\"timed_assignment\\\",\\\"no_timer\\\"]],[[[41,[30,1,[\\\"activeAssignment\\\",\\\"timed_assignment\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"timed-assignment-instructions\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"timed-assignment-prompt-header\\\"],[12],[1,\\\"\\\\n Prompt:\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"activeAssignment\\\",\\\"timed_assignment\\\",\\\"question\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"start-button-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,1,[\\\"timerStarting\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"start-timer button--black button--sm\\\"],[24,\\\"aria-label\\\",\\\"Start timed assignment\\\"],[4,[38,6],[\\\"click\\\",[30,1,[\\\"startTimer\\\"]]],null],[12],[1,\\\"Start Timed Assignment\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"start-timer\\\"],[14,\\\"aria-label\\\",\\\"Start timed assignment\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync fa-spin fa-fw\\\"],[12],[13],[1,\\\"\\\\n Starting Timer...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,1,[\\\"activeAssignment\\\",\\\"timed_assignment\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"timed-assignment-instructions\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"timed-assignment-prompt-header\\\"],[12],[1,\\\"\\\\n Prompt:\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"activeAssignment\\\",\\\"timed_assignment\\\",\\\"question\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"activeAssignment\\\",\\\"overdue\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"assignment-overdue-notice\\\"],[14,\\\"aria-label\\\",\\\"This assignment is overdue\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-exclamation-triangle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Overdue\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"modal-content \\\",[52,[30,1,[\\\"noRec\\\"]],\\\"no-rec\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,11],[[30,1,[\\\"activeAssignment\\\",\\\"is_timed\\\"]],[28,[37,12],[[30,1,[\\\"assignmentTimer\\\"]]],null]],null]],[[[41,[30,1,[\\\"assignmentTimer\\\"]],[[[41,[51,[30,1,[\\\"lockdown\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"timer\\\"],[15,\\\"aria-label\\\",[29,[\\\"You have \\\",[30,1,[\\\"assignmentTimer\\\"]],\\\" minutes to submit your assignment\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"assignmentTimer\\\"]]],[1,\\\"\\\\n remaining...\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"timer timer-late\\\"],[15,\\\"aria-label\\\",[29,[\\\"Time's up! You are \\\",[30,1,[\\\"assignmentTimer\\\"]],\\\" minutes past due\\\"]]],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Time's up! Please submit ASAP. (\\\"],[1,[30,1,[\\\"assignmentTimer\\\"]]],[1,\\\"\\\\n past due...)\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,1,[\\\"activeAssignment\\\",\\\"timed_assignment\\\",\\\"no_timer\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"timer\\\"],[14,\\\"aria-label\\\",\\\"Timer disabled. Take as much time as you need\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n TIMER DISABLED\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\" \\\"],[8,[39,13],null,[[\\\"@files\\\",\\\"@controller\\\",\\\"@addFile\\\",\\\"@updateLocalDocs\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@deleteAttachment\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@submitAssignment\\\",\\\"@timedAssignmentEditable\\\",\\\"@isTimedAssignment\\\"],[[30,1,[\\\"files\\\"]],[30,1],[30,1,[\\\"addFile\\\"]],[30,1,[\\\"updateLocalDocs\\\"]],[30,1,[\\\"toggleLocalArchive\\\"]],[30,1,[\\\"previewArchivedText\\\"]],[30,1,[\\\"useArchivedText\\\"]],[30,1,[\\\"deleteAttachment\\\"]],[30,1,[\\\"renameAttachment\\\"]],[30,1,[\\\"openAttachmentDrawer\\\"]],[30,1,[\\\"submitAssignment\\\"]],true,true]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@controller\\\"],[\\\"div\\\",\\\"if\\\",\\\"h2\\\",\\\"span\\\",\\\"i\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"legacy-boot\\\",\\\"rubric/rubric\\\",\\\"unless\\\",\\\"and\\\",\\\"not\\\",\\\"assignment-submission-box\\\"]]\",\n \"moduleName\": \"bocce/components/submission-new-view.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, (0, _templateOnly.default)(undefined, \"submission-new-view\"));\n});","define(\"bocce/components/submissions-list-button\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/object/computed\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _computed, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n \n \n \n {{#each this.previewUsers as |user|}}\n {{#if @user.image_url}}\n \n {{else}}\n {{#if @user.avatar_url}}\n \n {{else}}\n {{#if @svgPlaceHolder}}\n \n \n \n \n {{this.initials}}\n \n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{/if}}\n {{/each}}\n \n \n {{#if this.currentPosition}}{{this.currentPosition}}/{{/if}}{{this.totalSubmissions}}\n \n \n \n \n \n \n
    \n */\n {\n \"id\": \"Qb8744r5\",\n \"block\": \"[[[10,0],[14,0,\\\"submissions-list-button-group\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submissions-list-nav submissions-list-nav--prev \\\",[52,[51,[30,0,[\\\"canNavigate\\\"]]],\\\"hidden\\\"]]]],[24,\\\"aria-label\\\",\\\"View previous submission\\\"],[16,\\\"disabled\\\",[28,[37,3],[[30,0,[\\\"prevSubmissionId\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goPrev\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-chevron-left\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"submissions-list-button\\\"],[24,\\\"aria-label\\\",\\\"Open submissions list\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,1]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submissions-portraits\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[30,0,[\\\"previewUsers\\\"]]],null]],null],null,[[[41,[30,3,[\\\"image_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[29,[\\\"User avatar of \\\",[30,3,[\\\"name\\\"]]]]],[15,\\\"src\\\",[29,[[30,3,[\\\"image_url\\\"]]]]],[14,0,\\\"submission-preview-portrait\\\"],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,3,[\\\"avatar_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[29,[\\\"User avatar of \\\",[30,3,[\\\"name\\\"]]]]],[15,\\\"src\\\",[29,[[30,3,[\\\"avatar_url\\\"]]]]],[14,0,\\\"submission-preview-portrait\\\"],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,4],[[[1,\\\" \\\"],[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,\\\"height\\\",\\\"100%\\\"],[14,\\\"fill\\\",\\\"#b4b4b4\\\"],[12],[13],[1,\\\"\\\\n \\\"],[3,\\\" Background \\\"],[1,\\\"\\\\n \\\"],[10,\\\"text\\\"],[14,\\\"x\\\",\\\"50%\\\"],[14,\\\"y\\\",\\\"50%\\\"],[14,\\\"alignment-baseline\\\",\\\"central\\\"],[14,\\\"text-anchor\\\",\\\"middle\\\"],[14,\\\"font-family\\\",\\\"Arial\\\"],[14,\\\"font-size\\\",\\\"30\\\"],[14,\\\"fill\\\",\\\"#ffffff\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"initials\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[14,0,\\\"submission-preview-portrait\\\"],[14,\\\"src\\\",\\\"front_end/css/style-assets/no-avatar.gif\\\"],[15,\\\"alt\\\",[29,[\\\"No user avatar available for \\\",[30,3,[\\\"name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submissions-count\\\"],[12],[1,\\\"\\\\n \\\"],[41,[30,0,[\\\"currentPosition\\\"]],[[[1,[30,0,[\\\"currentPosition\\\"]]],[1,\\\"/\\\"]],[]],null],[1,[30,0,[\\\"totalSubmissions\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-list\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submissions-list-nav submissions-list-nav--next \\\",[52,[51,[30,0,[\\\"canNavigate\\\"]]],\\\"hidden\\\"]]]],[24,\\\"aria-label\\\",\\\"View next submission\\\"],[16,\\\"disabled\\\",[28,[37,3],[[30,0,[\\\"nextSubmissionId\\\"]]],null]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"goNext\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-chevron-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"@onClick\\\",\\\"user\\\",\\\"@user\\\",\\\"@svgPlaceHolder\\\"],[\\\"div\\\",\\\"button\\\",\\\"unless\\\",\\\"not\\\",\\\"on\\\",\\\"i\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"if\\\",\\\"img\\\",\\\"svg\\\",\\\"rect\\\",\\\"text\\\"]]\",\n \"moduleName\": \"bocce/components/submissions-list-button.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n // Expected args:\n // @assignment - the current openAssignmentView (a submission); used to derive\n // the parent assignment and the list of sibling submissions.\n // @onClick - action to open submissions dialog/list\n // @viewSubmission - action that navigates to a submission by id\n tagName: \"\",\n router: (0, _service.inject)(),\n session: (0, _service.inject)(),\n submissionNavigation: (0, _service.inject)(),\n submissions: (0, _object.computed)(\"assignment.assignment.submissions.[]\", \"assignment.submissions.[]\", function () {\n var _model$content, _model$content$hasMan, _model$content$hasMan2;\n var a = this.assignment;\n if (!a) return [];\n var model = a.assignment ? a.assignment : a;\n var fromHasMany = model === null || model === void 0 || (_model$content = model.content) === null || _model$content === void 0 || (_model$content$hasMan = _model$content.hasMany) === null || _model$content$hasMan === void 0 || (_model$content$hasMan = _model$content$hasMan.call(_model$content, \"submissions\")) === null || _model$content$hasMan === void 0 || (_model$content$hasMan2 = _model$content$hasMan.value) === null || _model$content$hasMan2 === void 0 ? void 0 : _model$content$hasMan2.call(_model$content$hasMan);\n return fromHasMany || (model === null || model === void 0 ? void 0 : model.submissions) || [];\n }),\n totalSubmissions: (0, _object.computed)(\"submissions.[]\", function () {\n return (this.submissions || []).length;\n }),\n // Prev/next only make sense with siblings to move between. Guarded with a\n // real comparison rather than the `lessthan` helper, which treats a count of\n // 0 as falsy and so renders inconsistently (shown at 0, hidden at exactly 1).\n canNavigate: (0, _computed.gt)(\"totalSubmissions\", 1),\n currentPosition: (0, _object.computed)(\"currentIndex\", function () {\n return this.currentIndex >= 0 ? this.currentIndex + 1 : null;\n }),\n previewUsers: (0, _object.computed)(\"submissions.[]\", function () {\n var subs = this.submissions || [];\n var users = [];\n var seen = new Set();\n for (var i = 0; i < subs.length && users.length < 3; i++) {\n var _subs$i, _u$id, _subs$i2;\n var u = (_subs$i = subs[i]) === null || _subs$i === void 0 ? void 0 : _subs$i.user;\n var id = (_u$id = u === null || u === void 0 ? void 0 : u.id) !== null && _u$id !== void 0 ? _u$id : (_subs$i2 = subs[i]) === null || _subs$i2 === void 0 ? void 0 : _subs$i2.user_id;\n if (u && !seen.has(id)) {\n seen.add(id);\n users.push(u);\n }\n }\n return users;\n }),\n currentIndex: (0, _object.computed)(\"submissions.[]\", \"assignment.id\", function () {\n var _this$assignment;\n var id = (_this$assignment = this.assignment) === null || _this$assignment === void 0 ? void 0 : _this$assignment.id;\n if (!id) return -1;\n var subs = this.submissions || [];\n for (var i = 0; i < subs.length; i++) {\n var _subs$i3;\n if (((_subs$i3 = subs[i]) === null || _subs$i3 === void 0 ? void 0 : _subs$i3.id) === id) return i;\n }\n return -1;\n }),\n prevSubmissionId: (0, _object.computed)(\"submissions.[]\", \"currentIndex\", function () {\n var _this$submissions;\n var i = this.currentIndex;\n if (i <= 0) return null;\n return ((_this$submissions = this.submissions[i - 1]) === null || _this$submissions === void 0 ? void 0 : _this$submissions.id) || null;\n }),\n nextSubmissionId: (0, _object.computed)(\"submissions.[]\", \"currentIndex\", function () {\n var _subs;\n var i = this.currentIndex;\n var subs = this.submissions || [];\n if (i < 0 || i >= subs.length - 1) return null;\n return ((_subs = subs[i + 1]) === null || _subs === void 0 ? void 0 : _subs.id) || null;\n }),\n goPrev: (0, _object.action)(function () {\n this._navigate(this.prevSubmissionId);\n }),\n goNext: (0, _object.action)(function () {\n this._navigate(this.nextSubmissionId);\n }),\n _navigate: function _navigate(submissionId) {\n var _this = this;\n if (!submissionId) return;\n this.submissionNavigation.loading = true;\n\n // Clear the loading state once the route transition settles. If the user\n // cancels (e.g. unsaved-changes prompt) and no transition occurs, the\n // fallback timer drops the flag so it doesn't get stuck.\n var cleanup = function cleanup() {\n _this.submissionNavigation.loading = false;\n _this.router.off(\"routeDidChange\", onRouteDidChange);\n clearTimeout(timer);\n };\n var onRouteDidChange = function onRouteDidChange() {\n return cleanup();\n };\n this.router.on(\"routeDidChange\", onRouteDidChange);\n var timer = setTimeout(cleanup, 10000);\n if (typeof this.viewSubmission === \"function\") {\n this.viewSubmission(submissionId);\n } else {\n // Match the panel the user is in; instructors live in Activity, not Work.\n var route = this.session.get(\"panel\") === \"activity\" ? \"classroom.activity.submission\" : \"classroom.work.submission\";\n this.router.transitionTo(route, submissionId);\n }\n }\n }));\n});","define(\"bocce/components/syllabus\", [], function () {\n \"use strict\";\n\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n throw new Error(\"`bocce/components/syllabus.js` does not contain a `default export`. Did you forget to export the component class?\");\n});","define(\"bocce/components/upload-preview\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"jquery\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _jquery, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"jquery\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if is_audio}}\n \n \n \n {{else}}\n {{#if is_image}}\n \n {{else}}\n {{#if is_video}}\n \n {{else}}\n {{#if is_pdf}}\n \n {{else}}\n {{#if is_word}}\n \n {{else}}\n {{#if is_zip}}\n \n {{else}}\n {{#if is_quicktime}}\n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n */\n {\n \"id\": \"6j2v/Y2G\",\n \"block\": \"[[[41,[31,1],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"image-preview far fa-file-audio\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fa-regular fa-play-circle\\\"],[24,\\\"aria-label\\\",\\\"Play preview of audio attachment\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"audioPreview\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"far fa-stop-circle\\\"],[24,\\\"aria-label\\\",\\\"Stop preview of audio attachment\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"audioPreviewStop\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[31,4],[[[1,\\\" \\\"],[11,\\\"img\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"alt\\\",\\\"Click to preview uploaded image\\\"],[24,0,\\\"image-preview clickable\\\"],[16,\\\"src\\\",[29,[[37,6]]]],[4,[38,3],[\\\"click\\\",[30,0,[\\\"otherFilePreview\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[31,7],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"image-preview far fa-file-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[31,8],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Click to open attachment preview in new tab\\\"],[24,0,\\\"image-preview clickable far fa-file-pdf\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"otherFilePreview\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[31,9],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Click to open attachment preview in new tab\\\"],[24,0,\\\"image-preview clickable far fa-file-word\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"otherFilePreview\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[31,10],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Click to open attachment preview in new tab\\\"],[24,0,\\\"image-preview clickable far fa-file-archive\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"otherFilePreview\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[31,11],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Click to open attachment preview in new tab\\\"],[24,0,\\\"image-preview clickable far fa-file-video\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"otherFilePreview\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Click to open attachment preview in new tab\\\"],[24,0,\\\"image-preview clickable far fa-file\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"otherFilePreview\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[],[\\\"if\\\",\\\"is_audio\\\",\\\"i\\\",\\\"on\\\",\\\"is_image\\\",\\\"img\\\",\\\"generatedUrl\\\",\\\"is_video\\\",\\\"is_pdf\\\",\\\"is_word\\\",\\\"is_zip\\\",\\\"is_quicktime\\\"]]\",\n \"moduleName\": \"bocce/components/upload-preview.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n classNames: [\"upload-preview\"],\n file: (0, _computed.reads)(\"model.file\"),\n uploadedId: (0, _computed.reads)(\"model.uploaded_id\"),\n type: (0, _computed.reads)(\"file.type\"),\n previewStopped: function previewStopped() {\n var id = this.uploadedId;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#file-id-\".concat(id)).removeClass(\"playing\");\n this.currentPreviewAudio\n /* eslint-disable-next-line ember/no-jquery */.off(\"playing\", _jquery.default.proxy(this.previewPlaying, this))\n /* eslint-disable-next-line ember/no-jquery */.off(\"pause\", _jquery.default.proxy(this.previewStopped, this))\n /* eslint-disable-next-line ember/no-jquery */.off(\"ended\", _jquery.default.proxy(this.previewStopped, this));\n },\n previewPlaying: function previewPlaying() {\n var id = this.uploadedId;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#file-id-\".concat(id)).addClass(\"playing\");\n },\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n is_image: (0, _object.computed)(\"attachment\", function () {\n var type = this.type;\n return type === \"image/jpeg\" || type === \"image/png\" || type === \"image/gif\";\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n is_video: (0, _object.computed)(\"attachment\", function () {\n var type = this.type;\n return type === \"video/mp4\";\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n is_quicktime: (0, _object.computed)(\"attachment\", function () {\n var type = this.type;\n return type === \"video/quicktime\";\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n is_audio: (0, _object.computed)(\"attachment\", function () {\n var type = this.type;\n return type === \"audio/mpeg3\" || type === \"audio/mp3\" || type === \"audio/mpeg\";\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n is_word: (0, _object.computed)(\"attachment\", function () {\n var type = this.type;\n return type === \"application/msword\";\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n is_pdf: (0, _object.computed)(\"attachment\", function () {\n var type = this.type;\n return type === \"application/pdf\";\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n generatedUrl: (0, _object.computed)(\"attachment\", function () {\n if (!this.file.url) {\n return URL.createObjectURL(this.file);\n }\n\n // Grab Kaltura thumbnail\n /* eslint-disable-next-line ember/no-get */\n var url = this.get(\"file.url\");\n var kaltura = url.split(\"https://cdnapisec.kaltura.com/p/2588802/sp/258880200/playManifest/entryId/\");\n if (kaltura.length > 1) {\n kaltura = kaltura[1].split(\"/format/url/protocol/https/flavorParamId/4128/name/course_video.mp4\");\n var thumbnailUrl = \"https://cdnsecakmi.kaltura.com/p/2588802/thumbnail/entry_id/\" + kaltura[0] + \"/width/250\";\n return thumbnailUrl;\n }\n return url;\n }),\n audioPreview: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n var audio = (0, _jquery.default)(\"#attachment-audio-player\").get(0);\n audio.attributes.src.value = this.generatedUrl;\n audio.load();\n audio.play();\n\n /* eslint-disable-next-line ember/no-jquery */\n this.set(\"currentPreviewAudio\", (0, _jquery.default)(audio));\n this.currentPreviewAudio\n /* eslint-disable-next-line ember/no-jquery */.on(\"playing\", _jquery.default.proxy(this.previewPlaying, this))\n /* eslint-disable-next-line ember/no-jquery */.on(\"pause\", _jquery.default.proxy(this.previewStopped, this))\n /* eslint-disable-next-line ember/no-jquery */.on(\"ended\", _jquery.default.proxy(this.previewStopped, this));\n }),\n audioPreviewStop: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#attachment-audio-player\").get(0).pause();\n }),\n videoPreview: (0, _object.action)(function () {\n if (event.target.paused) {\n event.target.play();\n } else {\n event.target.pause();\n }\n }),\n otherFilePreview: (0, _object.action)(function () {\n var url = this.generatedUrl;\n window.open(url, \"_blank\");\n })\n }));\n});","define(\"bocce/components/user-dot\", [\"exports\", \"@ember/component\", \"@ember/template-factory\"], function (_exports, _component, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n */\n {\n \"id\": \"Co1EJoxv\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"green-dot \\\",[52,[51,[30,1,[\\\"isPresent\\\"]]],\\\"offline\\\"]]]],[12],[13]],[\\\"@user\\\"],[\\\"div\\\",\\\"unless\\\"]]\",\n \"moduleName\": \"bocce/components/user-dot.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"span\"\n }));\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/controllers/classroom/work/late-grading-policy\", [\"exports\", \"@ember/controller\", \"@ember/service\"], function (_exports, _controller, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n var BlogPostController = _exports.default = (_class = /*#__PURE__*/function (_Controller) {\n function BlogPostController() {\n var _this;\n _classCallCheck(this, BlogPostController);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, BlogPostController, [].concat(args));\n _initializerDefineProperty(_this, \"session\", _descriptor, _this);\n return _this;\n }\n _inherits(BlogPostController, _Controller);\n return _createClass(BlogPostController);\n }(_controller.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_service.service], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _class);\n});","define(\"bocce/components/user-icons\", [\"exports\", \"@ember/component\", \"@ember/object/computed\", \"@ember/object\", \"@ember/template-factory\"], function (_exports, _component, _computed, _object, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.showIcons}}\n \n {{#if @alignIcons}}\n \n {{#if @user.isDegreeStudent}}\n Degree student\n {{/if}}\n \n \n \n {{#if @user.hasAccommodation}}\n Accommodation\n {{/if}}\n \n \n \n {{#if (and @showClock @user.enrolled_late)}}\n Enrolled late\n {{/if}}\n \n \n \n {{#if @user.hasNotes}}\n Has a note\n {{/if}}\n \n \n {{else}}\n {{#if @user.isDegreeStudent}}\n \n {{/if}}\n {{#if @user.hasAccommodation}}\n \n {{/if}}\n {{#if (and @showClock @user.enrolled_late)}}\n \n {{/if}}\n {{#if @user.hasNotes}}\n \n {{/if}}\n {{/if}}\n \n {{/if}}\n */\n {\n \"id\": \"vToasR2w\",\n \"block\": \"[[[41,[30,0,[\\\"showIcons\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"user-icons\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1],[[[1,\\\" \\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isDegreeStudent\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"Degree student\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular fa-graduation-cap \\\",[52,[51,[30,2,[\\\"isDegreeStudent\\\"]]],\\\"invisible\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"hasAccommodation\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"Accommodation\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular fa-universal-access \\\",[52,[51,[30,2,[\\\"hasAccommodation\\\"]]],\\\"invisible\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,4],[[30,3],[30,2,[\\\"enrolled_late\\\"]]],null],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"Enrolled late\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular fa-clock \\\",[52,[51,[28,[37,4],[[30,3],[30,2,[\\\"enrolled_late\\\"]]],null]],\\\"invisible\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"hasNotes\\\"]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"Has a note\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa-regular fa-note-sticky \\\",[52,[51,[30,2,[\\\"hasNotes\\\"]]],\\\"invisible\\\"]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2,[\\\"isDegreeStudent\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-graduation-cap degree\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"hasAccommodation\\\"]],[[[1,\\\" \\\"],[10,1],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-universal-access\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,4],[[30,3],[30,2,[\\\"enrolled_late\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-clock\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,2,[\\\"hasNotes\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-note-sticky\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"@alignIcons\\\",\\\"@user\\\",\\\"@showClock\\\"],[\\\"if\\\",\\\"span\\\",\\\"i\\\",\\\"unless\\\",\\\"and\\\"]]\",\n \"moduleName\": \"bocce/components/user-icons.hbs\",\n \"isStrictMode\": false\n });\n /*\n Inline icons to show info about a user.\n \n Pass the following in from the parent template:\n * user: the model for the person the icons are about.\n * isInstructor: bool, usually from session.isInstructor. Determines if\n \tthe icons should be visible.\n \tuseClock: bool, whether to show the clock icon for late enrollment.\n \talignIcons: bool, whether to keep spaces for icons even if they aren't shown,\n \tto keep alignment in places like the roster tab.\n */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n tagName: \"\",\n needsIcons: (0, _computed.reads)(\"isInstructor\"),\n showIcons: (0, _object.computed)(\"needsIcons\", \"args.user.{isDegreeStudent,hasAccommodation,enrolled_late}\", \"args.showClock\", function () {\n var _this$user, _this$user2, _this$user3;\n return this.needsIcons && (((_this$user = this.user) === null || _this$user === void 0 ? void 0 : _this$user.get(\"isDegreeStudent\")) || ((_this$user2 = this.user) === null || _this$user2 === void 0 ? void 0 : _this$user2.get(\"hasAccommodation\")) || this.showClock && ((_this$user3 = this.user) === null || _this$user3 === void 0 ? void 0 : _this$user3.get(\"enrolled_late\")));\n })\n }));\n});","define(\"bocce/components/user-portrait\", [\"exports\", \"@ember/component\", \"@ember/object\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _object, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if @user.image_url}}\n \n {{else}}\n {{#if @user.avatar_url}}\n \n {{else}}\n {{#if @svgPlaceHolder}}\n \n \n \n \n {{this.initials}}\n \n \n {{else}}\n \n {{/if}}\n {{/if}}\n {{/if}}\n \n \n */\n {\n \"id\": \"XYptMsZL\",\n \"block\": \"[[[10,1],[14,0,\\\"user-portrait\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,1,[\\\"image_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[29,[\\\"User avatar of \\\",[30,1,[\\\"name\\\"]]]]],[15,\\\"src\\\",[29,[[30,1,[\\\"image_url\\\"]]]]],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,1,[\\\"avatar_url\\\"]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[29,[\\\"User avatar of \\\",[30,1,[\\\"name\\\"]]]]],[15,\\\"src\\\",[29,[[30,1,[\\\"avatar_url\\\"]]]]],[14,\\\"onerror\\\",\\\"this.src='/images/avatar.png'\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,2],[[[1,\\\" \\\"],[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"100\\\"],[14,\\\"height\\\",\\\"100\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,\\\"width\\\",\\\"100%\\\"],[14,\\\"height\\\",\\\"100%\\\"],[14,\\\"fill\\\",\\\"#b4b4b4\\\"],[12],[13],[1,\\\"\\\\n \\\"],[3,\\\" Background \\\"],[1,\\\"\\\\n \\\"],[10,\\\"text\\\"],[14,\\\"x\\\",\\\"50%\\\"],[14,\\\"y\\\",\\\"50%\\\"],[14,\\\"alignment-baseline\\\",\\\"central\\\"],[14,\\\"text-anchor\\\",\\\"middle\\\"],[14,\\\"font-family\\\",\\\"Arial\\\"],[14,\\\"font-size\\\",\\\"30\\\"],[14,\\\"fill\\\",\\\"#ffffff\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"initials\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[29,[\\\"No avatar available for \\\",[30,1,[\\\"name\\\"]]]]],[14,\\\"src\\\",\\\"front_end/css/style-assets/no-avatar.gif\\\"],[15,\\\"alt\\\",[29,[\\\"No user avatar available for \\\",[30,1,[\\\"name\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]]],[1,\\\" \\\"],[8,[39,6],null,[[\\\"@user\\\"],[[30,1]]],null],[1,\\\"\\\\n\\\"],[13]],[\\\"@user\\\",\\\"@svgPlaceHolder\\\"],[\\\"span\\\",\\\"if\\\",\\\"img\\\",\\\"svg\\\",\\\"rect\\\",\\\"text\\\",\\\"user-dot\\\"]]\",\n \"moduleName\": \"bocce/components/user-portrait.hbs\",\n \"isStrictMode\": false\n });\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend({\n userprofileService: (0, _service.inject)(\"userprofile\"),\n tagName: \"button\",\n classNames: [\"avatar\"],\n attributeBindings: [\"ariaHidden:aria-hidden\", \"ariaLabel:aria-label\"],\n ariaHidden: \"true\",\n ariaLabel: (0, _object.computed)(\"user.name\", function () {\n /* eslint-disable-next-line ember/no-get */\n return \"View profile of \".concat(this.get(\"user.name\"));\n }),\n initials: (0, _object.computed)(\"user.name\", function () {\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"user.name\")) {\n return \"\";\n }\n var username = this.get(\"user.name\").split(\" \").map(function (part) {\n return part.charAt(0);\n }).join(\"\");\n // cut down to two initials\n return username.slice(0, 2);\n }),\n click: function click() {\n if (!this.suppressClick && this.user) {\n var user = this.user;\n if (user.get && user.get(\"id\")) {\n this.userprofileService.toggleUserProfile(user.get(\"id\"));\n } else {\n this.userprofileService.toggleUserProfile(user.id);\n }\n }\n }\n }));\n});","define(\"bocce/components/user-profile\", [\"exports\", \"@ember/component\", \"@ember/debug\", \"@ember/object\", \"jquery\", \"bocce/mixins/editable\", \"bocce/mixins/uploadable\", \"@ember/service\", \"@ember/template-factory\"], function (_exports, _component, _debug, _object, _jquery, _editable, _uploadable, _service, _templateFactory) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/debug\",0,\"@ember/object\",0,\"jquery\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/uploadable\",0,\"@ember/service\",0,\"@ember/template-factory\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n var __COLOCATED_TEMPLATE__ = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n
    \n \n
    \n
    \n
    \n {{this.userprofileService.activeUser.name}}\n {{#if (trim this.userprofileService.activeUser.profile.pronouns)}}\n ({{this.userprofileService.activeUser.profile.pronouns}})\n {{/if}}\n
    \n {{#if this.userprofileService.activeUser.profile.location}}\n
    \n {{this.userprofileService.activeUser.profile.location}}\n
    \n {{/if}}\n {{#if this.degree}}\n {{this.degree}}\n {{/if}}\n {{#if this.accommodation}}\n
    \n Accommodation:\n {{this.accommodation}}
    \n {{/if}}\n {{#if this.session.isInstructor}}\n {{#if this.userprofileService.activeUser.enrolled_late}}\n
    ENROLLED LATE ({{this.userprofileService.activeUser.enrolled_late}})
    \n {{/if}}\n {{/if}}\n
    \n
    \n {{#if this.userprofileService.activeUser.profile.bio}}\n
    \n {{this.userprofileService.activeUser.profile.bio}}\n
    \n {{else}}\n
    \n No bio yet!\n
    \n {{/if}}\n {{#unless this.session.isStaticContent}}\n {{#unless this.self}}\n
    \n
      \n {{#unless this.session.isLiveWorkshop}}\n
    • Message
    • \n {{/unless}}\n {{#unless this.session.isStudent}}\n {{#unless this.userprofileService.activeUser.teaching}}\n Report \"At Risk\"\n {{/unless}}\n \n {{#unless this.refreshingZoom}}\n {{#if this.zoomRefreshed}}\n \n {{else}}\n \n {{/if}}\n Refresh Zoom\n {{else}}\n Refreshing Zoom Credentials...\n {{/unless}}\n \n
    • Activity Report
    • \n \n {{#unless this.unlockingAssignments}}\n {{#if this.assignmentsLocked}}\n \n {{else}}\n \n {{/if}}\n Clear Assignment Timers\n {{else}}\n Clearing...\n {{/unless}}\n \n \n {{#unless this.strippingTimers}}\n {{#if this.timersStripped}}\n \n {{else}}\n \n {{/if}}\n Remove Timers From Locked Assignments\n {{else}}\n Working...\n {{/unless}}\n \n
    • Grade Report
    • \n {{/unless}}\n {{#if this.session.isStaff}}\n {{#unless this.session.isInstructor}}\n
    • Masquerade
    • \n {{#unless this.earlyAccessStatus}}\n {{#unless this.isEarlyUnlock}}\n
    • \n
      \n Unlock Early Access through week\n \n
      \n \n
    • \n {{else}}\n
    • \n Revoke early access granted through week {{this.isEarlyUnlock}}.\n \n
    • \n {{/unless}}\n {{else}}\n
    • {{this.earlyAccessStatus}}
    • \n {{/unless}}\n {{/unless}}\n {{/if}}\n
    \n
    \n {{/unless}}\n {{/unless}}\n {{#if (and this.session.isInstructor (not this.self))}}\n
    \n
    Notes on\n {{this.userprofileService.activeUser.name}}\n (private to, and seen by instructor only)
    \n {{#if this.userprofileService.isEditing}}\n \n
    \n \n \n
    \n {{else}}\n
    \n {{{this.userprofileService.notes}}}\n
    \n \n {{/if}}\n
    \n {{/if}}\n
    \n \n */\n {\n \"id\": \"aH4xCsj1\",\n \"block\": \"[[[10,0],[14,0,\\\"user-profile\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"user-profile-info\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"far fa-times\\\"],[24,\\\"aria-label\\\",\\\"Close user profile\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeProfile\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"user-portrait-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,3],null,[[\\\"@class\\\",\\\"@user\\\",\\\"@suppressClick\\\"],[\\\"user-portrait\\\",[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\"]],true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"user-info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"user-name\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"name\\\"]]],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"profile\\\",\\\"pronouns\\\"]]],null],[[[1,\\\" (\\\"],[1,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"profile\\\",\\\"pronouns\\\"]]],[1,\\\")\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"profile\\\",\\\"location\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-location\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"profile\\\",\\\"location\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"degree\\\"]],[[[1,\\\" \\\"],[1,[30,0,[\\\"degree\\\"]]],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"accommodation\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-accommodation\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-universal-access accommodation\\\"],[12],[13],[1,\\\"\\\\n Accommodation:\\\\n \\\"],[1,[30,0,[\\\"accommodation\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[41,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"enrolled_late\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-late-add\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"ENROLLED LATE (\\\"],[1,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"enrolled_late\\\"]]],[1,\\\")\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"profile\\\",\\\"bio\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-bio\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"profile\\\",\\\"bio\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-bio\\\"],[12],[1,\\\"\\\\n No bio yet!\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[51,[30,0,[\\\"session\\\",\\\"isStaticContent\\\"]]],[[[41,[51,[30,0,[\\\"self\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-profile-actions\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isLiveWorkshop\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"pm\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\" Message\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"session\\\",\\\"isStudent\\\"]]],[[[41,[51,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"teaching\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"reportAtRisk\\\"]],[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-exclamation-triangle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\"Report \\\\\\\"At Risk\\\\\\\"\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"refreshZoomId\\\"]],[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"refreshingZoom\\\"]]],[[[41,[30,0,[\\\"zoomRefreshed\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-redo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,1],[12],[1,\\\"Refresh Zoom\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[12],[1,\\\"Refreshing Zoom Credentials...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"activityReport\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-suitcase\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\" Activity Report\\\"],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"unlockAssignments\\\"]],[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"unlockingAssignments\\\"]]],[[[41,[30,0,[\\\"assignmentsLocked\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-unlock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,1],[12],[1,\\\" Clear Assignment Timers\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[12],[1,\\\" Clearing...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"stripAssignmentTimers\\\"]],[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"strippingTimers\\\"]]],[[[41,[30,0,[\\\"timersStripped\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-alarm-snooze\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[10,1],[12],[1,\\\" Remove Timers From Locked Assignments\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[12],[1,\\\" Working...\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"gradeReport\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-tachometer-alt\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\" Grade Report\\\"],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isStaff\\\"]],[[[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[1,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"masquerade\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-mask\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,1],[12],[1,\\\" Masquerade\\\"],[13],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"earlyAccessStatus\\\"]]],[[[41,[51,[30,0,[\\\"isEarlyUnlock\\\"]]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n Unlock Early Access through week\\\\n \\\"],[11,\\\"select\\\"],[24,1,\\\"unlock-week\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"changeUnlockWeek\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[12],[1,\\\"2\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[12],[1,\\\"3\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"4\\\"],[12],[1,\\\"4\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"5\\\"],[12],[1,\\\"5\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"6\\\"],[12],[1,\\\"6\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"7\\\"],[12],[1,\\\"7\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"8\\\"],[12],[1,\\\"8\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"9\\\"],[12],[1,\\\"9\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"10\\\"],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[12],[1,\\\"11\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[12],[1,\\\"12\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,0,\\\"far fa-unlock\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Unlock student early access\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"earlyUnlock\\\"]],[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"selector\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\" Revoke early access granted through week \\\"],[1,[30,0,[\\\"isEarlyUnlock\\\"]]],[1,\\\".\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,0,\\\"far fa-lock\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Revoke student early access\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"earlyLock\\\"]],[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"selector\\\"],[12],[1,[30,0,[\\\"earlyAccessStatus\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,13],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[28,[37,14],[[30,0,[\\\"self\\\"]]],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-notes\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"user-notes-heading\\\"],[12],[1,\\\"Notes on\\\\n \\\"],[1,[30,0,[\\\"userprofileService\\\",\\\"activeUser\\\",\\\"name\\\"]]],[1,\\\"\\\\n (private to, and seen by instructor only)\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"userprofileService\\\",\\\"isEditing\\\"]],[[[1,\\\" \\\"],[8,[39,15],null,[[\\\"@userInput\\\",\\\"@controller\\\",\\\"@hideDrafts\\\",\\\"@placeholderType\\\",\\\"@hideFooter\\\"],[[30,0,[\\\"userprofileService\\\",\\\"notesTemp\\\"]],[30,0,[\\\"userprofileService\\\",\\\"rteController\\\"]],true,\\\"generic\\\",true]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"user-notes-editing-action-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"userprofileService\\\",\\\"setIsEditing\\\"]],false],null]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"userprofileService\\\",\\\"modifyNotes\\\"]]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"user-notes-notes\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"userprofileService\\\",\\\"notes\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"user-notes-edit\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"userprofileService\\\",\\\"editNote\\\"]]],null],[12],[1,\\\"Edit Note\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"],[8,[39,17],null,[[\\\"@action\\\"],[[30,0,[\\\"closeProfile\\\"]]]],null]],[],[\\\"div\\\",\\\"i\\\",\\\"on\\\",\\\"user-portrait\\\",\\\"if\\\",\\\"trim\\\",\\\"unless\\\",\\\"ul\\\",\\\"li\\\",\\\"span\\\",\\\"fn\\\",\\\"select\\\",\\\"option\\\",\\\"and\\\",\\\"not\\\",\\\"rte\\\",\\\"button\\\",\\\"modals/dark-backdrop\\\"]]\",\n \"moduleName\": \"bocce/components/user-profile.hbs\",\n \"isStrictMode\": false\n });\n\n // app/components/user-profile.js\n\n /* eslint-disable-next-line ember/no-observers */\n var _default = _exports.default = (0, _component.setComponentTemplate)(__COLOCATED_TEMPLATE__, _component.default.extend(_editable.default, _uploadable.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n router: (0, _service.inject)(),\n session: (0, _service.inject)(),\n activeUser: false,\n assignmentsLocked: true,\n unlockWeek: 2,\n isEarlyUnlock: false,\n earlyAccessStatus: false,\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n self: (0, _object.computed)(\"userprofileService.activeUser\", function () {\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"userprofileService.activeUser.id\") === this.get(\"session.user.id\")) {\n return true;\n }\n return false;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n degree: (0, _object.computed)(\"userprofileService.activeUser\", function () {\n var _this = this;\n /* eslint-disable-next-line ember/no-get */\n var allEnrolled = this.get(\"userprofileService.activeUser.enrolled\");\n if (allEnrolled) {\n /* eslint-disable-next-line ember/no-get */\n var enrolledUser = allEnrolled.find(function (enrolled) {\n return enrolled.section.id === _this.classroom.model.section.id;\n });\n if (enrolledUser) {\n return enrolledUser.get(\"degree\");\n }\n }\n return \"\";\n }),\n /* eslint-disable-next-line ember/no-observers */\n earlyUnlockCheck: (0, _object.observer)(\"userprofileService.activeUser\", function () {\n var _this2 = this;\n /* eslint-disable-next-line ember/no-get */\n\n /*\n This observer gets called upon opening and closing a user profile. When closing,\n the active user is 'false' and there is no need to make a call to /interface/early_unlock_check.\n So, return if the active user is false.\n */\n if (!this.get(\"session.isStaff\") || !this.get(\"userprofileService.activeUser\")) {\n return;\n }\n /* eslint-disable-next-line ember/no-get */\n var userId = this.get(\"userprofileService.activeUser.id\");\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/early_unlock_check/\",\n data: JSON.stringify({\n user_id: userId,\n term_id: this.get(\"session.termID\")\n }),\n success: function success(latestUnlockWeek) {\n _this2.set(\"isEarlyUnlock\", latestUnlockWeek);\n }\n });\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n accommodation: (0, _object.computed)(\"userprofileService.activeUser\", function () {\n var _this3 = this;\n /* eslint-disable-next-line ember/no-get */\n var allEnrolled = this.get(\"userprofileService.activeUser.enrolled\"),\n enrolledUser;\n if (allEnrolled) {\n /* eslint-disable-next-line ember/no-get */\n enrolledUser = allEnrolled.find(function (enrollment) {\n return enrollment.section.id === _this3.classroom.model.section.id;\n });\n if (enrolledUser && enrolledUser.get(\"accommodation\")) {\n return enrolledUser.get(\"accommodation\");\n }\n }\n return false;\n }),\n unlockAssignments: (0, _object.action)(function (userId) {\n var _this4 = this;\n this.set(\"assignmentsLocked\", false);\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/sections/\".concat(this.session.get(\"section.id\"), \"/assignments/0/user/\").concat(userId, \"/purge_assignment/\"),\n data: {},\n dataType: \"text\",\n success: function success() {\n _this4.set(\"unlockingAssignments\", false);\n (0, _debug.debug)(\"Assignments purged successfully\");\n },\n error: function error(_error) {\n _this4.set(\"assignmentsLocked\", true);\n (0, _debug.debug)(\"Unable to purge assignments. Something went wrong: \");\n (0, _debug.debug)(_error);\n }\n });\n }),\n stripAssignmentTimers: (0, _object.action)(function (userId) {\n var _this5 = this;\n this.set(\"timersStripped\", false);\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/sections/\".concat(this.session.get(\"section.id\"), \"/assignments/0/user/\").concat(userId, \"/strip_timer/\"),\n data: {},\n dataType: \"text\",\n success: function success() {\n _this5.set(\"strippingTimers\", false);\n (0, _debug.debug)(\"Assignment timers stripped successfully\");\n },\n error: function error(_error2) {\n _this5.set(\"timersStripped\", true);\n (0, _debug.debug)(\"Unable to strip assignment timers. Something went wrong: \");\n (0, _debug.debug)(_error2);\n }\n });\n }),\n refreshZoomId: (0, _object.action)(function (userId) {\n var _this6 = this;\n /* eslint-disable-next-line ember/no-jquery */\n this.set(\"refreshingZoom\", true);\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/users/\".concat(userId, \"/refreshZoomId/\"),\n data: {},\n dataType: \"text\",\n success: function success() {\n _this6.set(\"refreshingZoom\", false);\n _this6.set(\"zoomRefreshed\", true);\n (0, _debug.debug)(\"Zoom Credentials refreshed successfully!\");\n },\n error: function error(_error3) {\n _this6.set(\"refreshingZoom\", false);\n (0, _debug.debug)(\"Unable to refresh user Zoom Credentials\");\n }\n });\n }),\n // Early lesson unlocking\n // Only usable by admins (requires auth)\n changeUnlockWeek: (0, _object.action)(function (event) {\n var weekNumber = event.target.value;\n this.set(\"unlockWeek\", weekNumber);\n }),\n // Revoke selected user's early access\n earlyLock: (0, _object.action)(function (userId) {\n var _this7 = this;\n this.set(\"earlyAccessStatus\", \"Locking...\");\n\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/early_lock/\",\n data: JSON.stringify({\n user_id: userId,\n course_id: this.get(\"session.course.id\"),\n term_id: this.get(\"session.termID\")\n }),\n success: function success() {\n console.log(\"User's early access has been revoked.\");\n _this7.set(\"isEarlyUnlock\", false);\n _this7.set(\"earlyAccessStatus\", false);\n },\n error: function error(e) {\n _this7.set(\"earlyAccessStatus\", false);\n (0, _debug.debug)(\"error occurred while locking\");\n (0, _debug.debug)(e);\n }\n });\n }),\n // Grant selected user early access up until week # \"unlockWeek\"\n earlyUnlock: (0, _object.action)(function (userId) {\n var _this8 = this;\n // This functionality is only available for admins\n // Interface will reject teacher (and student) attempts\n var unlockWeek = this.unlockWeek;\n /* eslint-disable-next-line ember/no-get */\n var termId = this.get(\"session.course.term.id\");\n /* eslint-disable-next-line ember/no-get */\n var courseId = this.get(\"session.course.id\");\n this.set(\"earlyAccessStatus\", \"Unlocking...\");\n\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/early_unlock/\",\n data: JSON.stringify({\n user_id: userId,\n term_id: termId,\n unlock_week: unlockWeek,\n course_id: courseId\n }),\n success: function success() {\n _this8.set(\"earlyAccessStatus\", false);\n _this8.set(\"isEarlyUnlock\", _this8.unlockWeek);\n },\n error: function error(e) {\n _this8.set(\"isEarlyUnlock\", false);\n _this8.set(\"earlyAccessStatus\", false);\n (0, _debug.debug)(\"error occurred while unlocking\");\n (0, _debug.debug)(e);\n }\n });\n }),\n closeProfile: (0, _object.action)(function () {\n this.userprofileService.activeUser = false;\n this.userprofileService.isEditing = false;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".user-profile\").removeClass(\"active floating-modal\");\n /* eslint-disable-next-line ember/no-jquery */\n }),\n pm: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n var id = this.get(\"userprofileService.activeUser.id\");\n this.send(\"closeProfile\");\n window.open(\"/#/dashboard?nav=inbox&userId=\".concat(id), \"_blank\");\n }),\n activityReport: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n var courseId = this.get(\"session.course.id\"),\n /* eslint-disable-next-line ember/no-get */\n userId = this.get(\"userprofileService.activeUser.id\");\n window.open(\"/courses/\" + courseId + \"/users/\" + userId + \"/usage\", \"_blank\");\n }),\n gradeReport: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n var courseId = this.get(\"session.course.id\"),\n /* eslint-disable-next-line ember/no-get */\n userId = this.get(\"userprofileService.activeUser.id\");\n window.open(\"/courses/\" + courseId + \"/grades/\" + userId + \"#tab-assignments\", \"_blank\");\n }),\n reportAtRisk: (0, _object.action)(function (user) {\n var name = user.get(\"name\"),\n email = user.get(\"email\");\n if (name && email) {\n var atRiskWindow = window.open(\"\", \"_blank\"),\n path = \"https://online.berklee.edu/at-risk-student-notification-form?student_name=\";\n path += name + \"&student_email=\" + email;\n atRiskWindow.location = path;\n }\n }),\n masquerade: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n var id = this.get(\"userprofileService.activeUser.id\");\n var path = \"/users/\".concat(id, \"/masquerade\");\n window.open(path, \"_blank\");\n })\n }));\n});","define(\"bocce/controllers/classroom\", [\"exports\", \"@ember/debug\", \"@ember/controller\", \"bocce/mixins/menus\", \"bocce/mixins/calendar-events\", \"bocce/mixins/notify\", \"bocce/mixins/enmodal\", \"@ember/object\", \"@ember/runloop\", \"@ember/object/computed\", \"jquery\", \"@ember/service\", \"@ember/array/proxy\", \"bocce/mixins/interactions/piano\"], function (_exports, _debug, _controller, _menus, _calendarEvents, _notify, _enmodal, _object, _runloop, _computed, _jquery, _service, _proxy, _piano) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/controller\",0,\"bocce/mixins/menus\",0,\"bocce/mixins/calendar-events\",0,\"bocce/mixins/notify\",0,\"bocce/mixins/enmodal\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/object/computed\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/array/proxy\",0,\"@ember/object\",0,\"bocce/mixins/interactions/piano\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } // app/controllers/classroom.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-observers */\n var _default = _exports.default = _controller.default.extend(_menus.default, _calendarEvents.default, _notify.default, _enmodal.default, {\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n submission: (0, _controller.inject)(\"classroom.work.submission\"),\n // loadHeartbeatData uses this\n accessibility: (0, _service.inject)(),\n conversations: (0, _controller.inject)(),\n discussions: (0, _controller.inject)(),\n classroom: (0, _controller.inject)(),\n // required by EnmodalMixin\n heartbeat: (0, _service.inject)(),\n session: (0, _service.inject)(),\n bookmarks: (0, _service.inject)(),\n router: (0, _service.inject)(),\n store: (0, _service.inject)(),\n survey: (0, _service.inject)(),\n transition: (0, _service.inject)(),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n bookmarksService: (0, _computed.alias)(\"bookmarks\"),\n queryParams: [\"start_panel\"],\n start_panel: false,\n bobMaximized: false,\n bobClosed: true,\n pianoMaximized: false,\n gradebookOpen: false,\n // Single source of truth for the side nav/panel drawer. Wide mode docks it\n // and toggles it with the collapse arrow; narrow mode overlays it and toggles\n // it with the hamburger. Both share this flag so a panel collapsed in wide\n // mode is reachable via the hamburger after the window narrows, and vice versa.\n sideNavVisible: true,\n prefsPanelOpen: false,\n focusLateGradingPolicy: false,\n switch_panel: (0, _object.observer)(\"start_panel\", function () {\n var startPanel = this.get(\"start_panel\");\n\n // Validate panel to make sure it is one of the following: syllabus, conversation, activity, roster\n if (startPanel && [\"syllabus\", \"conversation\", \"activity\", \"roster\"].includes(startPanel)) {\n this.send(\"swapPanel\", startPanel);\n }\n }),\n sessionPanelObserver: (0, _object.observer)(\"session.panel\", function () {\n this.send(\"swapPanel\", this.get(\"session.panel\"));\n }),\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n window.addEventListener(\"message\", function (event) {\n var _event$data;\n var bobOrigin = new URL(_this.bobSrc).origin;\n if (event.origin !== bobOrigin) {\n return;\n }\n if (((_event$data = event.data) === null || _event$data === void 0 ? void 0 : _event$data.type) === \"bob:request-embed-context\") {\n _this.send(\"sendIntroPayloadToBob\");\n }\n }, false);\n\n /* eslint-disable-next-line ember/no-jquery */\n if ((0, _jquery.default)(\"#bocce-piano .pianoContainer\").length === 0) {\n this.setupPiano();\n }\n },\n setupPiano: function setupPiano() {\n // Set up piano\n var config = {\n keyWidth: 30,\n noteLabels: \"true\",\n middleC: \"true\",\n hideKey: false,\n hotKeys: true,\n placementId: \"bocce-piano\",\n noKeys: false,\n keyDirs: {}\n };\n for (var i = 0; i < 85; i++) {\n config[\"keyDirs\"][\"key_\" + i] = \"https://intro.online.berklee.edu/audio/piano/key_\" + i + \".mp3\";\n }\n window.piano = new _piano.default(config);\n },\n // Variation on the Service Injection design pattern.\n // Using jQuery in the controller's unit tests breaks tests, since there is no DOM\n // and AJAX doesn't work with no interface to connect to. Referencing jQuery through\n // a property lets us mock the jQuery API in our unit tests.\n jQuery: _jquery.default,\n topicLoading: (0, _computed.reads)(\"lessons.topicLoading\"),\n isBCM: (0, _computed.alias)(\"model.classroom.term.isBCM\"),\n lessonLoaded: (0, _computed.alias)(\"session.lessonLoaded\"),\n /* eslint-disable-next-line ember/no-observers */\n convoScroller: (0, _object.observer)(\"activeConversation\", function () {\n var _this2 = this;\n if (!this.activeConversation) {\n /* eslint-disable-next-line ember/no-jquery */\n\n (0, _jquery.default)(\".modal-content\").off(\"scrollstop\", function (tgt) {\n if (tgt.target.scrollTop === 0) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".loading-prv\").addClass(\"active\");\n _this2.send(\"loadMoreMessages\");\n }\n });\n }\n }),\n nextLessonMap: (0, _object.computed)(\"model\", \"model.classroom.lessons\", function () {\n var map = {},\n model = this.model;\n var lessons = model.classroom.get(\"lessons\");\n if (lessons) {\n return lessons.then(function (l_objs) {\n l_objs.forEach(function (lesson) {\n map[lesson.get(\"number\")] = lesson;\n });\n return map;\n });\n }\n return map;\n }),\n bobSrc: (0, _object.computed)(function () {\n var bobUrl = this.get(\"session.course.bobUrl\");\n return \"https://\" + bobUrl + \"/?section=\" + this.get(\"session.course.id\");\n }),\n userSectionCodes: (0, _object.computed)(\"model.classroom.id\", \"session.user.sectionCodes\", function () {\n var _this3 = this;\n // Returns the other sections the user is enrolled in,\n // including courses from other terms.\n /* eslint-disable-next-line ember/no-get */\n var sectionCodes = this.get(\"session.user.sectionCodes\");\n if (sectionCodes === undefined) {\n return false;\n }\n sectionCodes = sectionCodes.filter(function (s) {\n /* eslint-disable-next-line ember/no-get */\n return Number(s.courseId) !== Number(_this3.get(\"model.classroom.id\"));\n });\n if (sectionCodes.length === 0) {\n return false;\n }\n sectionCodes.sort(function (a, b) {\n if (a.startsAt !== b.startsAt) {\n return a.startsAt > b.startsAt ? -1 : 1;\n } else if (a.courseTitle !== b.courseTitle) {\n return a.courseTitle < b.courseTitle ? -1 : 1;\n } else {\n return Number(a.sectionLabel) - Number(b.sectionLabel);\n }\n });\n return sectionCodes;\n }),\n otherCurrentTermSections: (0, _object.computed)(\"userSectionCodes\", \"session.course.term.name\", function () {\n var _this4 = this;\n // Returns the other sections the user is enrolled in,\n // ONLY including the current course's term.\n var userSectionCodes = this.userSectionCodes || [];\n var otherCurrentTermSections = userSectionCodes.filter(function (section) {\n /* eslint-disable-next-line ember/no-get */\n return section.termLabel === _this4.get(\"session.course.term.name\");\n });\n return otherCurrentTermSections;\n }),\n get teacherCanSeeSurveys() {\n return !!this.survey.teacherDashboardUrl;\n },\n hasDiscourse: (0, _object.computed)(\"model.classroom.discourseUrl\", function () {\n // Check session to see course code\n /* eslint-disable-next-line ember/no-get */\n var courseCode = this.get(\"session.course.code\");\n var limited = this.get(\"session.isLimitedStudentTerm\");\n // Check if the CourseCode contains 'OLART-220'\n if (courseCode.includes(\"OLART-220\") && !limited) {\n return true;\n }\n return false;\n }),\n loadConversations: function loadConversations() {\n var conversationsLoaded = this.conversationsLoaded || false,\n conversationsController = this.conversations,\n that = this;\n if (!conversationsLoaded) {\n return this.store.findAll(\"conversation\").then(function (conversations) {\n that.set(\"conversationsModel\", conversations);\n that.set(\"conversationsLoaded\", true);\n });\n }\n },\n loadEvents: function loadEvents() {\n var _this5 = this;\n var eventsLoaded = this.eventsLoaded || false;\n // session.course may be null during initial load?\n if (!this.get(\"session.course\")) {\n return;\n }\n // Reload events if we find ourselves in a different course\n if (this.currentCourseId != this.get(\"session.course.id\")) {\n eventsLoaded = false;\n // Setting eventsLoaded here to display the loading-message partial in events.hbs\n this.set(\"eventsLoaded\", false);\n this.set(\"eventsModel\", null);\n this.currentCourseId = this.get(\"session.course.id\");\n }\n // If there was a previous heartbeat error, restart the\n // heartbeat if we're within 30 minutes of a scheduled\n // event start time.\n var restart_heartbeat_if_needed = function restart_heartbeat_if_needed(events) {\n if (window.heartbeatFrequencyInMilliseconds > 0) {\n return;\n }\n var now = new Date();\n events.forEach(function (evt) {\n var start = new Date(evt.get(\"startAt\"));\n if (Math.abs(start - now) < 30 * 60 * 1000) {\n (0, _debug.debug)(\"Restarting heartbeat\");\n window.heartbeatFrequencyInMilliseconds = 30 * 1000;\n (0, _runloop.later)(_this5.heartbeat, \"heartbeat\", 100);\n }\n });\n };\n if (!eventsLoaded) {\n return this.store.findAll(\"event\", {\n reload: true\n }).then(function (events) {\n var teachingUser = _this5.session.teachingUser;\n if (teachingUser) {\n events.forEach(function (e) {\n // Use belongsTo reference id — avoids touching the async proxy and\n // triggering a findRecord(\"user\", \"1\") that Ember Data can't resolve.\n if (e.belongsTo(\"user\").id() === \"1\") {\n e.set(\"user\", teachingUser);\n }\n });\n }\n _this5.set(\"session.course.events\", events);\n _this5.set(\"eventsModel\", events);\n _this5.set(\"eventsLoaded\", true);\n restart_heartbeat_if_needed(events);\n });\n } else {\n /* eslint-disable-next-line ember/no-get */\n restart_heartbeat_if_needed(this.get(\"session.course.events\"));\n }\n },\n // lessonNumber and lessonTitle are given to the\n // Classroom::CurrentLessonItem component\n lessonNumber: (0, _computed.reads)(\"lessons.model.lesson.number\"),\n lessonTitle: (0, _computed.reads)(\"lessons.model.item.title\"),\n // this gets set using updateShortcutsDrawer action\n shortcutsDrawerLabel: \"Loading TOC...\",\n hCodeURL: (0, _object.computed)(\"session.section.id\", /* eslint-disable-next-line ember/no-get */\n function () {\n return \"/interface/sections/\" + this.get(\"session.section.id\") + \"/acceptHonorCode\";\n }),\n // courseDiscussions and courseAssignments are null at first, and are set\n // by the Route once the assignments/discussions findAll promises resolve.\n // These values are then passed to components.\n courseDiscussions: null,\n courseAssignments: null,\n courseRequiredDiscussions: null,\n courseQuizzes: null,\n activityContentLoading: (0, _object.computed)(\"courseDiscussions\", \"courseAssignments\", function () {\n return this.courseDiscussions === null || this.courseAssignments === null;\n }),\n workContentLoading: (0, _object.computed)(\"courseAssignments\", \"courseRequiredDiscussions\", \"courseQuizzes\", function () {\n return this.courseAssignments === null || this.courseRequiredDiscussions === null || this.courseQuizzes === null;\n }),\n newAdviceCards: (0, _object.computed)(\"session.section.adviceCards\", \"session.section.adviceCards.adviceCardsCount\", function () {\n var adviceCards = this.get(\"session.section.adviceCards\");\n if (adviceCards) {\n return adviceCards.adviceCardsCount;\n }\n return false;\n }),\n submitAdviceCardPrompt: (0, _object.computed)(\"session.section.adviceCards\", \"session.section.adviceCards.iSubmitted\", function () {\n var prefs = this.get(\"session.user.profile\");\n return !(prefs !== null && prefs !== void 0 && prefs.declinedAdviceCardSubmission || false);\n }),\n iSubmitted: (0, _object.computed)(\"session.section.adviceCards\", \"session.section.adviceCards.iSubmitted\", function () {\n return this.get(\"session.section.adviceCards.iSubmitted\");\n }),\n isLastWeekOfCourse: (0, _object.computed)(\"session.section.ends_at\", \"session.lessons\", function () {\n var _lessons$at;\n var lessons = this.get(\"session.lessons\");\n if (lessons !== null && lessons !== void 0 && (_lessons$at = lessons.at(lessons.length - 1)) !== null && _lessons$at !== void 0 && _lessons$at.locked) {\n return false;\n }\n // Last lesson week starts 14 days before the course closes (becomes read-only)\n var lastLessonStarts = 14 * 24 * 60 * 60 * 1000;\n var endsAt = new Date(this.get(\"session.section.ends_at\"));\n var now = new Date();\n var lastWeekNotifShown = localStorage.getItem(\"lastWeekNotifShown\");\n var isLastWeek = endsAt - now < lastLessonStarts;\n if (!lastWeekNotifShown && isLastWeek) {\n localStorage.setItem(\"lastWeekNotifShown\", true);\n this.confirmDialog.show({\n subtitle: \"

    You are in the last week of the course!

    Congrats on all of your hard work! As a reminder, your course goes into read-only mode one week after the end of the term. At this time, you will no longer be able to post/submit in the course. Please plan accordingly and, in addition, refer to your instructor\\u2019s course-specific late grading policy. If you wish to stay connected with your classmates and teachers, check out our BOL Forum!\"\n });\n }\n return isLastWeek;\n }),\n // TODO: NK: unreadActivities duplicates the logic from the all_unread\n // property on components/side-panel/activity.js. I'm leaving this as\n // duplicated code for now, but I'd like to find a way of DRYing this,\n // because we also use similar logic on the Work panel. Once the Work\n // panel is component-ized, that'll mean this same logic is needed in three\n // different places.\n unreadActivities: (0, _object.computed)(\"session.user.profile.declinedAdviceCardSubmission\", \"session.section.adviceCards\", \"session.section.adviceCards.{adviceCardsCount,iSubmitted,isLastWeek}\", \"courseDiscussions.@each.{unread,needsStudentAttention}\", \"courseAssignments.@each.{needsStudentAttention,needsTeacherAttention}\", \"session.isInstructor\", function () {\n /* eslint-disable-next-line ember/no-get */\n var isInstructor = this.get(\"session.isInstructor\");\n var discussions = this.courseDiscussions || _proxy.default.create();\n discussions = discussions.filter(function (d) {\n return !d.get(\"locked\");\n });\n // The Activity bubble counts the union of unsubmitted + unread work, the\n // same set that's bold in the lists: a discussion with new unviewed\n // activity (and, for students, a required discussion not yet posted to),\n // plus an assignment that's unsubmitted, awaiting resubmission, or has\n // unread feedback. needsStudentAttention rolls these up per item.\n var unreadDiscussions = discussions.filter(function (discussion) {\n return isInstructor ? discussion.unread === true : discussion.needsStudentAttention;\n });\n var assignments = this.courseAssignments || _proxy.default.create();\n var filter = isInstructor ? \"needsTeacherAttention\" : \"needsStudentAttention\";\n var unreadAssignments = assignments.filter(function (assignment) {\n return assignment[filter] === true;\n });\n var retval = _proxy.default.create({\n content: [].concat(_toConsumableArray(unreadDiscussions), _toConsumableArray(unreadAssignments))\n });\n if (isInstructor && this.session.section.adviceCards.adviceCardsCount) {\n for (var i = 0; i < this.session.section.adviceCards.adviceCardsCount; i++) {\n retval.pushObject([]);\n }\n }\n return retval;\n }),\n incompleteWork: (0, _object.computed)(\"courseRequiredDiscussions.@each.todo\", \"courseAssignments.@each.todo\", \"courseQuizzes.@each.todo\", function () {\n var discussions = this.courseRequiredDiscussions || [];\n var assignments = this.courseAssignments || [];\n var quizzes = this.courseQuizzes || [];\n var all = [].concat(_toConsumableArray(discussions), _toConsumableArray(assignments), _toConsumableArray(quizzes));\n return all.filter(function (item) {\n return !item.get(\"locked\") && item.get(\"todo\");\n });\n }),\n adviceCardsURL: (0, _object.computed)(\"session.course.id\", \"session.course.code\", \"session.section.id\", function () {\n var courseId = this.get(\"session.course.id\"),\n lastLessonNum = this.get(\"session.lessons.length\") - 1;\n return \"/#/\".concat(courseId, \"/\").concat(lastLessonNum, \"/peer-to-peer-support-advice-cards\");\n }),\n showBobInfoText: (0, _object.computed)(\"session.dismissedBobInfoText\", function () {\n var dismissedInfoText = localStorage.getItem(\"dismissedBobInfoText\");\n return !dismissedInfoText;\n }),\n setShowLateGradingPolicy: (0, _object.action)(function (show) {\n this.set(\"showLateGradingPolicy\", show);\n }),\n acceptHonorCode: (0, _object.action)(function (firstTime, skipCheck) {\n var _this6 = this;\n if (!skipCheck) {\n /* eslint-disable-next-line ember/no-jquery */\n if (!(0, _jquery.default)(\"#hcode-accept\").is(\":checked\")) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-accept-checkbox\").addClass(\"attention\");\n return;\n }\n } else {\n this.set(\"session.section.honorCodeAccepted\", true);\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-accept\").addClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-accept-checkbox\").addClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-working\").removeClass(\"hidden\");\n this.jQuery.ajax({\n type: \"POST\",\n url: this.hCodeURL,\n success: function success() {\n (0, _debug.debug)(\"Honor code accepted\");\n _this6.set(\"session.section.honorCodeAccepted\", true);\n _this6.accessibility.focus(\".first-time-sr-guide\", false, \"No topics found. SHIFT+S to go to syllabus.\", 500);\n },\n error: function error(_error) {\n _this6.set(\"session.section.honorCodeAccepted\", false);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-accept\").removeClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-accept-checkbox\").removeClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-working\").addClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".hcode-accept-checkbox\").removeClass(\"attention\");\n _this6.confirmDialog.show({\n subtitle: \"Unable to accept honor code. Something went wrong. Please try submitting again. If this error persists, contact support.\"\n });\n (0, _debug.debug)(\"Unable to accept honor code. Something went wrong: \");\n (0, _debug.debug)(_error);\n }\n });\n }),\n nextLesson: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(curLesson) {\n var _this7 = this;\n var model, lessons, idx, nxt, nextLesson;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n model = this.model;\n _context.n = 1;\n return model.classroom.get(\"lessons\");\n case 1:\n lessons = _context.v;\n idx = lessons.map(function (l) {\n return l.id;\n }).indexOf(curLesson.get(\"id\"));\n nxt = idx + 1;\n if (nxt < lessons.length) {\n nextLesson = lessons.at(nxt);\n nextLesson.items.then(function (items) {\n _this7.router.transitionTo(\"classroom.lessons\", nextLesson.get(\"id\"), items.at(0).id).then(function () {\n // focus on the first item in the next lesson\n /* eslint-disable-next-line ember/no-jquery */\n // focus on main course content area\n (0, _jquery.default)(\".main-panel\").scrollTop(0);\n var current_item_parent = (0, _jquery.default)(\".course-content-main\");\n _this7.accessibility.focus(current_item_parent, false, \"Unable to focus on main course content area.\", 500);\n });\n });\n }\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }()),\n shortcut: (0, _object.action)(function (lessonId) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").scrollTop(0)\n /* eslint-disable-next-line ember/no-jquery */.scrollTop((0, _jquery.default)(\".lesson-divider:nth(\" + lessonId + \")\").offset().top);\n }),\n openTOC: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#shortcuts-drawer-handle\").prop(\"checked\", true);\n }),\n syllabusTransport: (0, _object.action)(function (lessonId, topicId) {\n /* eslint-disable-next-line ember/no-jquery */\n var tgt = (0, _jquery.default)(\"#syllabus-item-\" + lessonId + \"-\" + topicId);\n if (!tgt.parent().hasClass(\"active\")) {\n // Remove UI flourish from sylabus items for now\n // $('.syllabus-entry').removeClass('pbar');\n // tgt.addClass('pbar');\n this.lessons.set(\"interactionsBooted\", false);\n }\n }),\n // Click to swap between different left-side panels\n swapPanel: (0, _object.action)(function (panel, noCollapse, noRefocus) {\n var _this8 = this;\n var that = this,\n $sp,\n $n;\n\n /* eslint-disable-next-line ember/no-jquery */\n $sp = (0, _jquery.default)(\".side-panel\");\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"session.panelPosition\")) {\n this.set(\"session.panelPosition\", {});\n }\n /* eslint-disable-next-line ember/no-get */\n this.set(\"session.panelPosition.\" + this.get(\"session.panel\"), $sp.scrollTop());\n $sp.scrollTop(0);\n $sp.removeClass(\"syllabus\");\n this.set(\"session.panel\", panel);\n if (panel === \"syllabus\") {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").addClass(\"syllabus\");\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.proxy(setTimeout(function () {\n $sp.scrollTop(that.get(\"session.panelPosition.\" + panel) || 0);\n if (!that.get(\"session.panelPosition.\" + panel)) {\n /* eslint-disable-next-line ember/no-jquery */\n $n = (0, _jquery.default)(\".side-panel .std-link.active\");\n if ($n.length > 0) {\n $sp.scrollTop($n.position().top - $sp.height() + 100 + $sp.scrollTop());\n }\n }\n if (!noRefocus) {\n _this8.accessibility.focusPanelHeader();\n }\n }, 100), this);\n\n // JRW: Late load these types only when requested.\n if (panel === \"conversations\") {\n this.loadConversations();\n } else if (panel === \"chat\") {\n this.loadEvents();\n } else if (panel === \"activity\") {\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"session.isInstructor\") && !this.studentActivityPanelFirstClick) {\n /* eslint-disable-next-line ember/no-jquery */\n if ((0, _jquery.default)(\".filter-unread-count.all\").length > 0) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".filter-unread-count.all\").click();\n }\n this.set(\"studentActivityPanelFirstClick\", true);\n }\n }\n }),\n gradeBook: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"session.allowOldGradebook\")) {\n this.set(\"session.panel\", \"grades\");\n } else {\n /* eslint-disable-next-line ember/no-get */\n var courseId = this.get(\"model.classroom.id\");\n window.open(\"/courses/\" + courseId + \"/gradebook\", \"_blank\");\n }\n }),\n viewShowcase: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-get */\n var showcaseCourseID = this.get(\"session.section.showcase_course_id\");\n window.open(\"/#/\" + showcaseCourseID + \"/\", \"_blank\");\n }),\n viewDiscourse: (0, _object.action)(function () {\n var discourseURL = this.get(\"session.discourseUrl\");\n window.open(discourseURL, \"_blank\");\n }),\n viewAdviceCards: (0, _object.action)(function () {\n if (this.get(\"session.isInstructor\")) {\n try {\n fetch(\"/interface/submit-advice-card/\".concat(this.get(\"session.section.id\"), \"/mark_seen\"), {\n method: \"POST\"\n });\n } catch (e) {\n console.log(e);\n }\n this.set(\"session.section.adviceCards.adviceCardsCount\", 0);\n }\n }),\n declineAdviceCardSubmission: (0, _object.action)(function () {\n var _this9 = this;\n var dialogPromise = this.confirmDialog.show({\n subtitle: \"Are you sure you want to remove this reminder? This cannot be undone.\",\n choices: [\"Yes\", \"No\"]\n });\n dialogPromise.then(function (selection) {\n if (selection === \"Yes\") {\n console.log(\"Declining advice card submission\");\n var prefs = _this9.get(\"session.user.profile\") || {};\n var courseCode = _this9.get(\"session.course.code\");\n prefs.declinedAdviceCardSubmission = courseCode;\n _this9.store.findRecord(\"user\", _this9.get(\"session.user.id\")).then(function (record) {\n record.set(\"profile_updated\", true);\n record.set(\"profile\", prefs);\n record.save();\n });\n _this9.set(\"classroom.submitAdviceCardPrompt\", false);\n // this.set('session.section.adviceCards.iSubmitted', true);\n }\n });\n }),\n closePopup: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container\").removeAttr(\"closeId\");\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container .content\").html(\"\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container\").removeClass(\"active\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-backdrop\").removeClass(\"active\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").removeClass(\"on-modal\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").removeClass(\"no-scroll\");\n }),\n toggleCourseList: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n var $chbx_toggle = (0, _jquery.default)(\"#chbx-course-select-drawer-handle\");\n /* eslint-disable-next-line ember/no-jquery */\n var $course_toggle = (0, _jquery.default)(\".course-select-drawer-handle\");\n /* eslint-disable-next-line ember/no-jquery */\n var $course_list = (0, _jquery.default)(\".course-list-courses\");\n if ($chbx_toggle.prop(\"checked\")) {\n $course_toggle.removeClass(\"open\");\n $course_list.removeClass(\"open\");\n } else {\n $course_toggle.addClass(\"open\");\n $course_list.addClass(\"open\");\n }\n }),\n closeCourseList: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#chbx-course-select-drawer-handle\").prop(\"checked\", false);\n }),\n //Change playback speed of audio player\n changePlaybackSpeed: (0, _object.action)(function (event) {\n var speedCalc = parseFloat(event.target.value) / 100;\n document.getElementById(\"publicPlayer\").playbackRate = speedCalc;\n }),\n // Submit bug report\n bugReport: (0, _object.action)(function () {\n //window.open('https://docs.google.com/forms/d/1TNgug-nMiauaMUmzju4EeGO8_BttNNyTUaSXebyuN8g/viewform', '_blank');\n // Using Luke's Simpler form\n window.open(\"https://online.berklee.edu/student-support-contact\", \"_blank\");\n }),\n viewSurveyResults: (0, _object.action)(function () {\n if (this.survey.teacherDashboardUrl) {\n window.open(this.survey.teacherDashboardUrl, \"_blank\");\n } else {\n this.confirmDialog.show({\n subtitle: \"The student survey results for this course will be made available once you submit all final grades for this course.\\n\\n(If you just finished grading, please refresh the page.)\"\n });\n }\n }),\n maxMinBob: (0, _object.action)(function () {\n this.set(\"bobMaximized\", !this.bobMaximized);\n this.set(\"bobClosed\", false);\n }),\n closeBob: (0, _object.action)(function () {\n this.set(\"bobClosed\", true);\n this.set(\"bobMaximized\", false);\n }),\n openBob: (0, _object.action)(function () {\n this.send(\"sendBobOpenedEvent\");\n this.send(\"sendIntroPayloadToBob\");\n this.set(\"bobClosed\", false);\n this.set(\"bobMaximized\", false);\n this.send(\"dismissBobInfoText\");\n }),\n sendIntroPayloadToBob: (0, _object.action)(function () {\n var bobIframe = document.querySelector(\"#bob-contents iframe\");\n if (bobIframe) {\n var fullUrl = window.location.href;\n var bobOrigin = new URL(this.get(\"bobSrc\")).origin;\n bobIframe.contentWindow.postMessage({\n type: \"bocce:embed-context\",\n bocce_url: fullUrl,\n early_unlock_hash: this.get(\"session.course.earlyUnlockHash\"),\n early_unlock_weeks: this.get(\"session.course.earlyUnlock\")\n }, bobOrigin);\n }\n }),\n sendBobOpenedEvent: (0, _object.action)(function () {\n var bobIframe = document.querySelector(\"#bob-contents iframe\");\n if (bobIframe) {\n var fullUrl = window.location.href;\n var bobOrigin = new URL(this.get(\"bobSrc\")).origin;\n bobIframe.contentWindow.postMessage({\n type: \"bocce:bob-opened\",\n bocce_url: fullUrl\n }, bobOrigin);\n }\n }),\n dismissBobInfoText: (0, _object.action)(function () {\n localStorage.setItem(\"dismissedBobInfoText\", \"true\");\n this.set(\"session.dismissedBobInfoText\", true);\n }),\n togglePiano: (0, _object.action)(function () {\n if (!this.pianoMaximized && _jquery.default.isSafari) {\n this.confirmDialog.show({\n subtitle: \"Due to a recent browser update, the piano tool is known to cause issues in Safari on MacOS and iOS. \" + \"We are working on a fix. Please close the piano when navigating around BOCCE if you experience any issues.\"\n });\n }\n this.set(\"pianoMaximized\", !this.pianoMaximized);\n var pianoInput = document.querySelector(\"#piano-hide-handle\");\n if (pianoInput) {\n pianoInput.checked = !pianoInput.checked;\n } else {\n console.warn(\"Could not find piano handle. Not opening piano.\");\n }\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n window.piano.run();\n });\n }),\n sendFeedback: (0, _object.action)(function () {\n // opens a form where the user can send feedback, which opens a Salesforce case.\n /* eslint-disable-next-line ember/no-get */\n var userEmail = this.get(\"session.user.email\");\n window.open(\"https://online.berklee.edu/form_assembly?id=4708322&URLemail=\".concat(userEmail), \"_blank\");\n }),\n openAdminModal: (0, _object.action)(function () {\n this.router.transitionTo(\"classroom.admin\");\n }),\n toggleMenus: (0, _object.action)(function () {\n this.set(\"sideNavVisible\", !this.sideNavVisible);\n }),\n closeMenus: (0, _object.action)(function () {\n this.set(\"sideNavVisible\", false);\n }),\n togglePrefsPanel: (0, _object.action)(function () {\n this.set(\"prefsPanelOpen\", !this.prefsPanelOpen);\n if (!this.prefsPanelOpen) {\n this.set(\"focusLateGradingPolicy\", false);\n }\n }),\n openPrefsToLateGradingPolicy: (0, _object.action)(function () {\n this.set(\"focusLateGradingPolicy\", true);\n this.set(\"prefsPanelOpen\", true);\n })\n });\n});","define(\"bocce/controllers/classroom/activity/announcement-new\", [\"exports\", \"bocce/controllers/classroom/activity/discussion-new\"], function (_exports, _discussionNew) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/activity/discussion-new\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _discussionNew.default.extend({});\n});","define(\"bocce/controllers/classroom/activity/discussion-new\", [\"exports\", \"@ember/controller\", \"bocce/mixins/enmodal\", \"bocce/mixins/editable\"], function (_exports, _controller, _enmodal, _editable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/editable\"eaimeta@70e063a35619d71f\n // app/controllers/new-discussion.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n // eslint-disable-next-line ember/no-classic-classes\n var _default = _exports.default = _controller.default.extend(_enmodal.default, _editable.default, {\n classroom: (0, _controller.inject)(),\n discussions: (0, _controller.inject)(),\n lessons: (0, _controller.inject)(\"classroom.lessons\") // required by UploadableMixin\n });\n});","define(\"bocce/controllers/classroom/activity/discussion\", [\"exports\", \"bocce/controllers/classroom/work/discussion\"], function (_exports, _discussion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/work/discussion\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _discussion.default.extend({});\n});","define(\"bocce/controllers/classroom/activity/no-submissions\", [\"exports\", \"bocce/controllers/classroom/work/no-submissions\"], function (_exports, _noSubmissions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/work/no-submissions\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _noSubmissions.default.extend({});\n});","define(\"bocce/controllers/classroom/activity/submission-new\", [\"exports\", \"bocce/controllers/classroom/work/submission-new\"], function (_exports, _submissionNew) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/work/submission-new\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _submissionNew.default.extend({});\n});","define(\"bocce/controllers/classroom/activity/submission\", [\"exports\", \"bocce/controllers/classroom/work/submission\"], function (_exports, _submission) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/work/submission\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _submission.default.extend({});\n});","define(\"bocce/controllers/classroom/admin\", [\"exports\", \"@ember/controller\", \"bocce/mixins/enmodal\", \"@ember/object\"], function (_exports, _controller, _enmodal, _object) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/enmodal\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, {\n _returnRoute: null,\n closeModals: (0, _object.action)(function () {\n var returnRoute = this._returnRoute;\n if (returnRoute !== null && returnRoute !== void 0 && returnRoute.name.startsWith(\"classroom.lessons\")) {\n this.router.transitionTo(\"classroom.lessons\", -1, -1);\n } else if (returnRoute) {\n var _this$router;\n var params = returnRoute.paramNames.map(function (p) {\n return returnRoute.params[p];\n });\n (_this$router = this.router).transitionTo.apply(_this$router, [returnRoute.name].concat(_toConsumableArray(params)));\n } else {\n this.router.transitionTo(\"classroom.lessons\", -1, -1);\n }\n })\n });\n});","define(\"bocce/controllers/classroom/admin/assignments\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _controller.default.extend({});\n});","define(\"bocce/controllers/classroom/admin/banners\", [\"exports\", \"@ember/controller\", \"@ember/object\", \"@ember/debug\", \"@ember/service\"], function (_exports, _controller, _object, _debug, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/debug\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var bannerTypes = {\n \"global instructors\": {\n dismiss_condition_id: 5,\n is_global: false\n },\n \"global students\": {\n dismiss_condition_id: 6,\n is_global: false\n },\n global: {\n dismiss_condition_id: null,\n is_global: true\n },\n grading: {\n dismiss_condition_id: 1,\n is_global: false\n },\n survey: {\n dismiss_condition_id: 2,\n is_global: false\n },\n user: {\n dismiss_condition_id: 3,\n is_global: false\n },\n course: {\n dismiss_condition_id: 4,\n is_global: false\n },\n \"dashboard-banner\": {\n dismiss_condition_id: 7,\n is_global: false\n }\n };\n\n // This is written as a fetch because the banners API doesn't\n // follow the structure that Ember expects:\n function addRecipientsToBanner(_x, _x2) {\n return _addRecipientsToBanner.apply(this, arguments);\n }\n function _addRecipientsToBanner() {\n _addRecipientsToBanner = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(bannerID, dataObject) {\n var url, body, response;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n url = \"/interface/banners/\".concat(bannerID, \"/add_recipients\");\n body = JSON.stringify(dataObject);\n _context2.n = 1;\n return fetch(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: body\n });\n case 1:\n response = _context2.v;\n if (response.ok) {\n _context2.n = 2;\n break;\n }\n return _context2.a(2, Promise.reject(response.status));\n case 2:\n _context2.n = 3;\n return response.json();\n case 3:\n return _context2.a(2, _context2.v);\n }\n }, _callee2);\n }));\n return _addRecipientsToBanner.apply(this, arguments);\n }\n function getTwoMonthsFromNow() {\n var twoMonths = (new Date().getMonth() + 1) % 12;\n var twoMonthsFromNow = new Date();\n twoMonthsFromNow.setMonth(twoMonths);\n return moment(twoMonthsFromNow);\n }\n function isValidUrl(url) {\n try {\n new URL(url);\n } catch (e) {\n return false;\n }\n return true;\n }\n var _default = _exports.default = _controller.default.extend({\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n newBannerMessage: \"\",\n newBannerDismissCondition: 5,\n newBannerIsGlobal: false,\n newBannerDismissAt: getTwoMonthsFromNow(),\n newBannerHyperlink: \"\",\n bannerTypeNames: Object.keys(bannerTypes),\n courseUsers: [],\n showUserDropDown: false,\n individualUserId: 0,\n // Sort banners by ID in descending order:\n sortedBanners: (0, _object.computed)(\"model.@each.id\", function () {\n var modelArray = this.model;\n var sortedModel = modelArray.toSorted(function (a, b) {\n return parseInt(b.id) - parseInt(a.id);\n });\n var filteredModel = sortedModel.filter(function (banner, index) {\n var type = banner.get(\"type\");\n if (type === \"Course Banner\" || type === \"Individual User Banner\" || type === \"Dashboard Banner\") {\n return false;\n } else {\n return true;\n }\n });\n return filteredModel;\n }),\n targetedBanners: (0, _object.computed)(\"model.@each.id\", function () {\n var models = this.model,\n courseUserIds = this.store.peekAll(\"user\").map(function (u) {\n return u.id;\n }),\n courseId = this.get(\"session.course.id\");\n var filteredBanners = models.filter(function (banner, index) {\n var type = banner.get(\"type\"),\n context_id = banner.get(\"context_id\");\n if ([\"Course Banner\", \"Dashboard Banner\"].includes(type) && courseId === context_id.toString()) {\n return true;\n }\n if (type === \"Individual User Banner\" && courseUserIds.includes(context_id.toString())) {\n return true;\n }\n return false;\n });\n return filteredBanners;\n }),\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n this.store.findAll(\"user\").then(function (users) {\n return _this.set(\"courseUsers\", users);\n });\n },\n createNewBanner: (0, _object.action)(function () {\n var _this2 = this;\n var message = this.newBannerMessage,\n dismiss_at = this.newBannerDismissAt.toDate(),\n link = this.newBannerHyperlink || null;\n if (message.length === 0) {\n alert(\"Banner Message cannot be empty.\");\n return;\n }\n if (dismiss_at <= new Date()) {\n alert(\"Dismiss date should be in the future.\");\n return;\n }\n if (link && !isValidUrl(link)) {\n alert(\"Invalid link format\");\n return;\n }\n var dismiss_condition_id = this.newBannerDismissCondition;\n var is_global = this.newBannerIsGlobal;\n var context_id = 0,\n targeted = false;\n if (dismiss_condition_id === 3) {\n context_id = this.get(\"individualUserId\");\n targeted = true;\n }\n if (dismiss_condition_id === 4 || dismiss_condition_id == 7) {\n context_id = this.get(\"session.course.id\");\n targeted = true;\n }\n var newBannerObject = {\n message: message,\n dismiss_condition_id: dismiss_condition_id,\n priority: 1,\n dismiss_at: dismiss_at,\n is_global: is_global,\n link: link,\n context_id: context_id\n };\n\n // Create banner:\n var banner = this.store.createRecord(\"banner\", newBannerObject);\n return banner.save().then(function () {\n // Add recipients to the banner\n /* eslint-disable-next-line ember/no-get */\n var term_id = _this2.get(\"session.termID\");\n var data = {\n term_id: term_id,\n by_course: true,\n user_id: _this2.get(\"individualUserId\"),\n course_id: _this2.get(\"session.course.id\") || 0\n };\n switch (dismiss_condition_id) {\n case 1:\n data.type = \"TeacherEnrollment\";\n break;\n case 2:\n data.type = \"StudentEnrollment\";\n break;\n case 3:\n data.type = \"IndividualUser\";\n break;\n case 4:\n data.type = \"Course\";\n break;\n case 5:\n data.type = \"TeacherEnrollment\";\n break;\n case 6:\n data.type = \"StudentEnrollment\";\n break;\n case 7:\n data.type = \"Course\";\n break;\n default:\n data.type = \"Global\";\n break;\n }\n var id = banner.get(\"id\");\n addRecipientsToBanner(id, data);\n if (targeted) {\n _this2.send(\"navigate\", \"targeted\");\n }\n _this2.set(\"newBannerMessage\", \"\");\n });\n }),\n deleteBanner: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(banner) {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return $.get(\"/interface/banners/\".concat(banner.id, \"/dismissAll\"));\n case 1:\n return _context.a(2, banner.destroyRecord());\n }\n }, _callee);\n }));\n return function (_x3) {\n return _ref.apply(this, arguments);\n };\n }()),\n setNewBannerTypeID: (0, _object.action)(function () {\n var _this3 = this;\n // 'event' is the click event\n var typeName = event.target.value;\n if (typeName === \"user\") {\n this.set(\"showUserDropDown\", true);\n this.courseUsers.then(function (users) {\n _this3.set(\"individualUserId\", users.at(0).get(\"id\"));\n });\n } else {\n this.set(\"showUserDropDown\", false);\n }\n (false && !(Object.keys(bannerTypes).includes(typeName)) && (0, _debug.assert)(\"typeName is in bannerTypes\", Object.keys(bannerTypes).includes(typeName)));\n var type = bannerTypes[typeName];\n var dismiss_condition_id = type.dismiss_condition_id,\n is_global = type.is_global;\n (false && !(typeof dismiss_condition_id !== \"undefined\") && (0, _debug.assert)(\"Banner type has dismiss_condition_id\", typeof dismiss_condition_id !== \"undefined\"));\n (false && !(typeof is_global !== \"undefined\") && (0, _debug.assert)(\"Banner type has is_global\", typeof is_global !== \"undefined\"));\n this.set(\"newBannerDismissCondition\", type.dismiss_condition_id);\n this.set(\"newBannerIsGlobal\", type.is_global);\n }),\n setIndividual: (0, _object.action)(function () {\n var user_id = event.target.value;\n this.set(\"individualUserId\", user_id);\n }),\n navigate: (0, _object.action)(function (tabName) {\n $(\".admin-banner-nav\").removeClass(\"selected\");\n $(\"table.global-banners\").removeClass(\"hidden\");\n $(\"table.targeted-banners\").removeClass(\"hidden\");\n if (tabName === \"global\") {\n $(\".admin-banner-nav.global\").addClass(\"selected\");\n $(\"table.targeted-banners\").addClass(\"hidden\");\n } else {\n $(\".admin-banner-nav.targeted\").addClass(\"selected\");\n $(\"table.global-banners\").addClass(\"hidden\");\n }\n })\n });\n});","define(\"bocce/controllers/classroom/admin/live\", [\"exports\", \"@ember/debug\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _debug, _controller, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var _default = _exports.default = _controller.default.extend({\n confirmDialog: (0, _service.inject)(),\n meetingKeyRequest: function () {\n var _meetingKeyRequest = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event, meetingKey, action) {\n var eventId, path, currentMeetingKeys, response, responseBody, index, _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n eventId = event.get(\"id\");\n /* eslint-disable-next-line ember/no-get */\n path = \"/interface/courses/\".concat(this.get(\"session.course.id\"), \"/events/\").concat(eventId, \"/\").concat(action, \"/\").concat(meetingKey), currentMeetingKeys = event.get(\"meetingKeys\") || [];\n _context.n = 1;\n return fetch(path, {\n method: \"POST\"\n });\n case 1:\n response = _context.v;\n _context.n = 2;\n return response.json();\n case 2:\n responseBody = _context.v;\n _t = responseBody;\n _context.n = _t === \"added\" ? 3 : _t === \"deleted\" ? 4 : 5;\n break;\n case 3:\n currentMeetingKeys.push(meetingKey);\n event.set(\"meetingKeys\", currentMeetingKeys);\n return _context.a(3, 6);\n case 4:\n index = currentMeetingKeys.indexOf(meetingKey);\n if (index > -1) {\n currentMeetingKeys.splice(index, 1);\n event.set(\"meetingKeys\", currentMeetingKeys);\n }\n return _context.a(3, 6);\n case 5:\n (0, _debug.debug)(\"Error making meeting key request: \".concat(action, \" ID: \").concat(eventId, \" meetingKey: \").concat(meetingKey));\n return _context.a(3, 6);\n case 6:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function meetingKeyRequest(_x, _x2, _x3) {\n return _meetingKeyRequest.apply(this, arguments);\n }\n return meetingKeyRequest;\n }(),\n toggleRemoveMeetingKeyConfirm: (0, _object.action)(function (meetingKey) {\n var selector = \".event-delete-\".concat(meetingKey, \"-confirm\");\n var element = document.querySelector(selector);\n if (element) {\n element.classList.toggle(\"hidden\");\n }\n }),\n addMeetingKey: (0, _object.action)(function (event) {\n var _this = this;\n this.confirmDialog.show({\n subtitle: \"Add Meeting Key\",\n choices: [\"Submit\", \"Cancel\"],\n body: \"Enter the nine digit meeting key to add to \\\"\".concat(event.get(\"title\"), \"\\\" ID: \").concat(event.get(\"id\")),\n inputType: \"textarea\"\n }).then(function (meetingKey) {\n if (meetingKey.length < 9 || meetingKey.length > 12) {\n alert(\"Meeting Key must contain between 9 and 12 integers\");\n return;\n }\n if (!/^\\d+$/.test(meetingKey)) {\n alert(\"Meeting Key must only contain numbers.\");\n return;\n }\n _this.meetingKeyRequest(event, meetingKey, \"addMeetingKey\");\n });\n }),\n removeMeetingKey: (0, _object.action)(function (event, meetingKey) {\n this.send(\"toggleRemoveMeetingKeyConfirm\", meetingKey);\n this.meetingKeyRequest(event, meetingKey, \"deleteMeetingKey\");\n }),\n refreshZoomUser: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(user) {\n var path, response, zoomID;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n path = \"/interface/zoom/refresh_user/\".concat(user.email, \"/\").concat(user.id);\n _context2.n = 1;\n return fetch(path);\n case 1:\n response = _context2.v;\n _context2.n = 2;\n return response.text();\n case 2:\n zoomID = _context2.v;\n $(\".reset-user-results\").text(\"Success: Zoom ID Set to \".concat(zoomID, \", please refresh\"));\n case 3:\n return _context2.a(2);\n }\n }, _callee2);\n }));\n return function (_x4) {\n return _ref.apply(this, arguments);\n };\n }())\n });\n});","define(\"bocce/controllers/classroom/admin/quizzes\", [\"exports\", \"@ember/runloop\", \"@ember/controller\", \"@ember/object\", \"@ember/service\"], function (_exports, _runloop, _controller, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"@ember/controller\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n var _default = _exports.default = _controller.default.extend({\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n quizUsers: null,\n selectedQuizId: \"\",\n selectedQuiz: null,\n selectedUser: null,\n result: null,\n page: 1,\n init: function init() {\n this._super.apply(this, arguments);\n this.set(\"operations\", [\"quiz-admin/unlock-for-next-attempt\"\n\n //commented out for now. When putting this back, consider restricting it to a subset of users.\n //Also, rename this to 'delete-all-attempts'...'quiz-admin/delete-latest-attempt'\n ]);\n },\n loadQuizUsers: function () {\n var _loadQuizUsers = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(quizId) {\n var path, data;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n path = \"/interface/sections/\".concat(this.get(\"session.section.id\"), \"/quizzes/\").concat(quizId, \"/submission_users\");\n _context.n = 1;\n return $.get(path);\n case 1:\n data = _context.v;\n this.set(\"quizUsers\", data.quiz_submission_users.users);\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function loadQuizUsers(_x) {\n return _loadQuizUsers.apply(this, arguments);\n }\n return loadQuizUsers;\n }(),\n selectQuiz: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(event) {\n var quizId, thisQuiz;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n quizId = event.target.value;\n this.set(\"selectedQuizId\", quizId);\n this.loadQuizUsers(quizId);\n _context2.n = 1;\n return this.store.findRecord(\"quiz\", quizId);\n case 1:\n thisQuiz = _context2.v;\n this.set(\"selectedQuiz\", thisQuiz);\n this.set(\"selectedUser\", null);\n case 2:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n return function (_x2) {\n return _ref.apply(this, arguments);\n };\n }()),\n expandOperations: (0, _object.action)(/*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(userId) {\n var _this = this;\n var user;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n _context3.n = 1;\n return this.store.findRecord(\"user\", userId);\n case 1:\n user = _context3.v;\n user.set(\"quizAttemptMade\", this.get(\"quizUsers\").find(function (u) {\n return u.id == userId;\n }).attempt_made);\n\n //Hacky, but this is the best way I could find to get the quiz operations to re-render when the selected user changes.\n this.set(\"selectedUser\", null);\n (0, _runloop.schedule)(\"afterRender\", function () {\n _this.set(\"selectedUser\", user);\n });\n case 2:\n return _context3.a(2);\n }\n }, _callee3, this);\n }));\n return function (_x3) {\n return _ref2.apply(this, arguments);\n };\n }())\n });\n});","define(\"bocce/controllers/classroom/conversation-new-with\", [\"exports\", \"bocce/controllers/classroom/conversation\", \"bocce/mixins/enmodal\"], function (_exports, _conversation, _enmodal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/conversation\",0,\"bocce/mixins/enmodal\"eaimeta@70e063a35619d71f\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _conversation.default.extend(_enmodal.default);\n});","define(\"bocce/controllers/classroom/conversation-new\", [\"exports\", \"@ember/debug\", \"@ember/controller\", \"bocce/mixins/discussable\", \"bocce/mixins/enmodal\", \"bocce/mixins/conversable\", \"bocce/mixins/editable\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"@ember/object\", \"@ember/runloop\", \"jquery\", \"@ember/service\"], function (_exports, _debug, _controller, _discussable, _enmodal, _conversable, _editable, _uploadable, _audioRec, _videoRec, _rtcRec, _object, _runloop, _jquery, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/controller\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/conversable\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } // app/controllers/conversation-new.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n window.conversationHeartbeatFrequency = 3 * 1000;\n var _default = _exports.default = _controller.default.extend(_conversable.default, _enmodal.default, _discussable.default, _editable.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.recipients = this.recipients || [];\n },\n conversation: (0, _controller.inject)(\"classroom.conversation\"),\n conversations: (0, _controller.inject)(),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n classroom: (0, _controller.inject)(),\n // required by DiscussableMixin and EnmodalMixin\n discussion: (0, _controller.inject)(\"classroom.work.discussion\"),\n // required by DiscussableMixin\n newDiscussion: (0, _controller.inject)(\"classroom.activity.discussion-new\"),\n // required by DiscussableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n\n scrollAndUpdateLocalConversation: function scrollAndUpdateLocalConversation(conversation) {\n (0, _runloop.later)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".existing-conversation .modal-content\").animate({\n scrollTop: (0, _jquery.default)(\".existing-conversation .modal-content\").prop(\"scrollHeight\")\n }, 1000);\n }, 500);\n conversation.set(\"last_authored_message_at\", new Date());\n conversation.set(\"last_message_at\", new Date());\n conversation.set(\"message_count\", conversation.get(\"message_count\") + 1);\n },\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n conversationModalContentMarginTop: (0, _object.computed)(\"model\", function () {\n /* eslint-disable-next-line ember/no-get */\n var participantRelationships = this.get(\"model.participantRelationships\");\n return participantRelationships * 26;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n sharedEnrollments: (0, _object.computed)(\"model\", function () {\n var conversation = this.model,\n retval = [],\n /* eslint-disable-next-line ember/no-get */\n currentUser = this.get(\"session.user\"),\n sectionCodes = currentUser.get(\"sectionCodes\");\n if (conversation) {\n var participantRelationships = conversation.get(\"participantRelationships\") || [];\n var partner = conversation.get(\"conversationPartners.firstObject\");\n participantRelationships.forEach(function (participantRelationship) {\n if (!sectionCodes) {\n return;\n }\n sectionCodes.forEach(function (sectionCode) {\n if (sectionCode.sectionId === participantRelationship.section) {\n retval.push({\n sectionId: sectionCode.sectionId,\n relationship: participantRelationship.relationship,\n courseTitle: sectionCode.courseTitle,\n sectionLabel: sectionCode.sectionLabel,\n user: partner\n });\n }\n });\n });\n }\n return retval;\n }),\n privateConversationHeartbeat: function privateConversationHeartbeat() {\n var _this = this;\n var store = this.store,\n _heartbeat = function heartbeat() {\n /* eslint-disable-next-line ember/no-get */\n var currentConversationId = _this.get(\"model.id\");\n store.nestResources(\"conversation-message\", [{\n conversation: currentConversationId\n }]);\n\n // Load in conversation messages\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.get(\"/interface/conversations/\" + currentConversationId).then(function (resolvedData) {\n var data = resolvedData,\n loaded_messages = store.peekAll(\"conversation-message\"),\n ids = loaded_messages.map(function (e) {\n return e.id;\n }),\n to_push = [];\n var _iterator = _createForOfIteratorHelper(data[\"conversation-message\"]),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var msg = _step.value;\n if (ids.indexOf(msg.id.toString()) === -1) {\n to_push.push(msg);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n if (to_push.length > 0) {\n store.pushPayload({\n \"conversation-message\": to_push\n });\n (0, _runloop.later)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".existing-conversation .modal-content\").animate({\n scrollTop: (0, _jquery.default)(\".existing-conversation .modal-content\").prop(\"scrollHeight\")\n }, 1000);\n }, 500);\n }\n }).always(function () {\n // When the modal is open, 'currentConversationId' is always set on the\n // conversation controller. When the modal is closed, this value is cleared out.\n // Only heartbeat if there is something stored in this value. - JRW\n if (_this.currentConversationId) {\n (0, _runloop.later)(_this, _heartbeat, window.conversationHeartbeatFrequency);\n }\n });\n };\n window.runPMHeartbeat = _heartbeat;\n (0, _runloop.later)(this, _heartbeat, window.conversationHeartbeatFrequency);\n },\n autoComplete: (0, _object.action)(function (param) {\n param = param.trim();\n if (param !== \"\" && param.length > 2) {\n var handle = this.autoCompleteTimeoutHandle;\n if (handle) {\n (0, _runloop.cancel)(handle);\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list\").removeClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list .loading-graphic\").removeClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list .no-results\").addClass(\"hidden\");\n this.set(\"filteredList\", []);\n var that = this;\n\n // Wait a moment before we spam the server with searches for \"jam\", \"jame\", and \"james\"\n // all at once\n handle = (0, _runloop.later)(function () {\n param = param.toLowerCase();\n param = encodeURIComponent(param);\n\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"get\",\n param: param,\n url: \"/interface/user-search/\" + param,\n success: function () {\n var _success = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(results) {\n var _this2 = this;\n var premd, res;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n _context2.n = 1;\n return that.store.peekAll(\"conversation\").filter(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(conversation) {\n var participants, matching_conversations;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return conversation.participants;\n case 1:\n participants = _context.v;\n matching_conversations = participants.filter(function (user) {\n if (typeof _this2.param !== \"string\") {\n return false;\n }\n var lc = _this2.param.toLowerCase();\n return user.get(\"name\").toLowerCase().indexOf(lc) > -1;\n });\n return _context.a(2, matching_conversations > 0);\n }\n }, _callee);\n }));\n return function (_x2) {\n return _ref.apply(this, arguments);\n };\n }());\n case 1:\n premd = _context2.v;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list .loading-graphic\").addClass(\"hidden\");\n res = results.length < 8 ? results : results.slice(0, 7);\n res = premd.concat(res);\n that.set(\"filteredList\", res);\n if (results.length === 0) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list .no-results\").removeClass(\"hidden\");\n }\n case 2:\n return _context2.a(2);\n }\n }, _callee2);\n }));\n function success(_x) {\n return _success.apply(this, arguments);\n }\n return success;\n }(),\n error: function error(_error) {\n (0, _debug.debug)(\"Error in conversation recipient list.\");\n (0, _debug.debug)(_error);\n }\n });\n }, 333);\n this.set(\"autoCompleteTimeoutHandle\", handle);\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list\").addClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list .loading-graphic\").addClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".recipient-filter-list .no-results\").addClass(\"hidden\");\n this.set(\"filteredList\", []);\n }\n }),\n // This choose action represents a user picking a\n // recipient from the autocomplete list above the conversations list\n startConversation: (0, _object.action)(function (recipient) {\n this.set(\"conversation.uploadInProgress\", true);\n var recipArray = [],\n recipURL = \"\";\n if (recipient) {\n recipArray = [recipient];\n }\n this.recipients.forEach(function (ob) {\n recipArray.push(ob.id);\n });\n recipURL += recipArray.join(\"-\");\n this.set(\"recipients\", []);\n\n // Check if a conversation with the user already exists\n var conversations = this.store.peekAll(\"conversation\"),\n existing = conversations.find(function (c) {\n var ob = c.get(\"conversationPartners\");\n if (ob.length > 0) {\n ob = ob.toArray();\n }\n if (!Array.isArray(ob) || !Array.isArray(recipArray) || recipArray.length !== ob.length) {\n return false;\n }\n var arr1 = ob.concat().sort(),\n arr2 = recipArray.concat().sort(),\n i;\n for (i = 0; i < arr1.length; i++) {\n if (parseInt(arr1[i].get(\"id\")) !== parseInt(arr2[i])) {\n return false;\n }\n }\n return true;\n });\n if (existing) {\n if (existing.get(\"archived\")) {\n existing.set(\"workflow_state\", \"active\");\n existing.save();\n }\n this.send(\"viewConversation\", existing.id);\n } else {\n this.send(\"createConversation\", recipURL);\n }\n this.set(\"conversation.uploadInProgress\", false);\n }),\n choose: (0, _object.action)(function (recipient) {\n this.set(\"recipients\", [].concat(_toConsumableArray(this.recipients), [recipient]));\n }),\n removeRecipient: (0, _object.action)(function (recipient_id) {\n this.set(\"recipients\", this.recipients.filter(function (recipient) {\n return recipient.id !== recipient_id;\n }));\n })\n });\n});","define(\"bocce/controllers/classroom/conversation\", [\"exports\", \"@ember/object/computed\", \"@ember/debug\", \"@ember/controller\", \"bocce/mixins/discussable\", \"bocce/mixins/enmodal\", \"bocce/mixins/conversable\", \"bocce/mixins/editable\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/helpers/heartbeat\", \"jquery\", \"@ember/object\", \"@ember/runloop\", \"@ember/service\"], function (_exports, _computed, _debug, _controller, _discussable, _enmodal, _conversable, _editable, _uploadable, _audioRec, _videoRec, _rtcRec, _heartbeat, _jquery, _object, _runloop, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/debug\",0,\"@ember/controller\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/conversable\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/helpers/heartbeat\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n window.conversationHeartbeatFrequency = 3 * 1000;\n var _default = _exports.default = _controller.default.extend(_conversable.default, _enmodal.default, _discussable.default, _editable.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n session: (0, _service.inject)(),\n router: (0, _service.inject)(),\n store: (0, _service.inject)(),\n conversationNew: (0, _controller.inject)(\"classroom.conversation-new\"),\n filteredList: (0, _computed.alias)(\"conversationNew.filteredList\"),\n discussions: (0, _controller.inject)(),\n // dashboard: inject(),\n submission: (0, _controller.inject)(\"classroom.work.submission\"),\n // loadHeartbeatData uses this\n classroom: (0, _controller.inject)(),\n // required by DiscussableMixin\n discussion: (0, _controller.inject)(\"classroom.work.discussion\"),\n // required by DiscussableMixin\n newDiscussion: (0, _controller.inject)(\"classroom.activity.discussion-new\"),\n // required by DiscussableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n init: function init() {\n this._super.apply(this, arguments);\n },\n currentConversationId: (0, _computed.reads)(\"model.id\"),\n inlineInbox: (0, _object.computed)(\"model\", \"target.currentRouteName\", function () {\n var currentRoute = this.get(\"target.currentRouteName\");\n return currentRoute === \"dashboard\";\n }),\n scrollAndUpdateLocalConversation: function scrollAndUpdateLocalConversation(conversation) {\n (0, _runloop.later)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".existing-conversation .modal-content\").animate({\n scrollTop: (0, _jquery.default)(\".existing-conversation .modal-content\").prop(\"scrollHeight\")\n }, 1000);\n }, 500);\n conversation.set(\"last_authored_message_at\", new Date());\n conversation.set(\"last_message_at\", new Date());\n conversation.set(\"message_count\", conversation.get(\"message_count\") + 1);\n },\n sortedMessages: (0, _object.computed)(\"model.messages\", function () {\n var _this$model;\n var messages = (_this$model = this.model) === null || _this$model === void 0 ? void 0 : _this$model.hasMany(\"messages\").value();\n if (!messages) {\n return [];\n }\n return messages.slice().sort(function (a, b) {\n var id_a = parseInt(a.get(\"id\"), 10),\n id_b = parseInt(b.get(\"id\"), 10);\n return id_a < id_b ? -1 : 1;\n });\n }),\n conversationModalContentMarginTop: (0, _object.computed)(\"model.{participants.[],participantRelationships.[]}\", function () {\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"model.participants.length\") > 2) {\n return 0;\n }\n /* eslint-disable-next-line ember/no-get */\n var participantRelationships = this.get(\"model.participantRelationships.length\");\n return participantRelationships * 26;\n }),\n sharedEnrollments: (0, _object.computed)(\"model.{participants.[],participantRelationships.@each.section}\", \"session.user.sectionCodes.[]\", function () {\n var conversation = this.model,\n retval = [],\n /* eslint-disable-next-line ember/no-get */\n currentUser = this.get(\"session.user\"),\n sectionCodes = currentUser.get(\"sectionCodes\");\n if (conversation) {\n if (conversation.get(\"participants.length\") > 2) {\n return [];\n }\n var participantRelationships = conversation.get(\"participantRelationships\") || [];\n var partner = conversation.get(\"conversationPartners.firstObject\");\n participantRelationships.forEach(function (participantRelationship) {\n if (!sectionCodes) {\n return;\n }\n sectionCodes.forEach(function (sectionCode) {\n if (sectionCode.sectionId === participantRelationship.section) {\n retval.push({\n sectionId: sectionCode.sectionId,\n relationship: participantRelationship.relationship,\n courseTitle: sectionCode.courseTitle,\n sectionLabel: sectionCode.sectionLabel,\n user: partner\n });\n }\n });\n });\n }\n return retval;\n }),\n addFile: (0, _object.action)(function (file) {\n var _this = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.pushObject(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this.encoding_videos.setObjects(_this.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n deleteAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n closeConversationModal: (0, _object.action)(function () {\n this._super();\n if (this.target.currentRouteName === \"dashboard\") {\n this.dashboard.set(\"messagePanelOn\", false);\n }\n return;\n }),\n startPrivateConversationHeartbeat: (0, _object.action)(function () {\n var _this2 = this;\n window.runPMHeartbeat = function () {\n var _messages;\n var convo_id = _this2.currentConversationId,\n messages = _this2.sortedMessages;\n if (!convo_id || !messages) {\n return;\n }\n var since_id = ((_messages = messages[messages.length - 1]) === null || _messages === void 0 ? void 0 : _messages.id) || 0;\n (0, _heartbeat.default)([\"/interface/conversations/\".concat(convo_id, \"/conversation-messages/since/\").concat(since_id)], _this2).always(function () {\n // When the modal is open, 'currentConversationId' is always set on the\n // conversation controller. When the modal is closed, this value is cleared out.\n // Only heartbeat if there is something stored in this value. - JRW\n (0, _runloop.later)(_this2, window.runPMHeartbeat, window.conversationHeartbeatFrequency);\n });\n };\n (0, _runloop.later)(this, window.runPMHeartbeat, window.conversationHeartbeatFrequency);\n }),\n loadMoreMessages: (0, _object.action)(/*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(defer) {\n var _this3 = this;\n var loaded, messages, num_loaded, user_id, args, min_id, i, id;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n // call \"convoController.send('loadMoreMessages')\" in console to test\n window.convoController = this;\n\n /* eslint-disable-next-line ember/no-get */\n loaded = this.get(\"session.loadedMessages\") || [];\n /* eslint-disable-next-line ember/no-get */\n if (!(loaded.indexOf(this.get(\"model.id\")) >= 0)) {\n _context2.n = 1;\n break;\n }\n if (defer) {\n defer.resolve();\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".loading-prv\").removeClass(\"active\");\n return _context2.a(2);\n case 1:\n _context2.n = 2;\n return this.model.messages;\n case 2:\n messages = _context2.v;\n if (messages) {\n _context2.n = 3;\n break;\n }\n if (defer) {\n defer.resolve();\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".loading-prv\").removeClass(\"active\");\n return _context2.a(2);\n case 3:\n num_loaded = messages.length, user_id = this.get(\"session.user.id\"), args = \"\";\n if (num_loaded > 0) {\n for (i = 0; i < num_loaded; i++) {\n id = parseInt(messages.at(i).get(\"id\"), 10);\n if (!min_id || id < min_id) {\n min_id = id;\n }\n }\n args = \"?page=\".concat(min_id);\n }\n setTimeout(function () {\n /* eslint-disable-next-line ember/no-jquery, ember/no-get */\n _jquery.default.get(\"/interface/conversations/\".concat(_this3.get(\"model.id\"), \"/conversation-messages\").concat(args)).then(function (data) {\n if (!data || !data[\"conversation-message\"] || data[\"conversation-message\"].length === 0) {\n /* eslint-disable-next-line ember/no-get */\n loaded.push(_this3.get(\"model.id\"));\n _this3.set(\"session.loadedMessages\", loaded);\n } else {\n var _iterator = _createForOfIteratorHelper(data[\"conversation-message\"]),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var m = _step.value;\n var auth_id = Number(m.author_id);\n if (auth_id === Number(user_id)) {\n m.belongsToSelf = true;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n _this3.store.pushPayload(data);\n }\n if (defer) {\n defer.resolve();\n }\n\n /* eslint-disable-next-line ember/no-jquery, ember/no-incorrect-calls-with-inline-anonymous-functions */\n (0, _runloop.scheduleOnce)(function () {\n (0, _jquery.default)(\".loading-prv\").removeClass(\"active\");\n });\n });\n }, 250);\n case 4:\n return _context2.a(2);\n }\n }, _callee2, this);\n }));\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }()),\n scrollToBottom: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions */\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n var _this4 = this;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".existing-conversation .modal-content\").animate({\n scrollTop: (0, _jquery.default)(\".existing-conversation .modal-content\").prop(\"scrollHeight\")\n }, 500);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".modal-content\").on(\"scrollstop\", function (tgt) {\n if (tgt.target.scrollTop === 0 && _this4.nxtScroll) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".loading-prv\").addClass(\"active\");\n _this4.send(\"loadMoreMessages\");\n } else if (!_this4.nxtScroll) {\n _this4.set(\"nxtScroll\", true);\n }\n });\n });\n }),\n autoComplete: (0, _object.action)(function (param) {\n this.conversationNew.send(\"autoComplete\", param);\n }),\n choose: (0, _object.action)(function (recipient) {\n var _this5 = this;\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n /* eslint-disable-next-line ember/no-get */\n url: \"/interface/conversations/\" + this.get(\"model.id\") + \"/addRecipient/\" + recipient.id,\n success: function success() {\n _this5.model.reload();\n (0, _debug.debug)(\"Recipient Added sucessfully\");\n },\n error: function error(_error) {\n (0, _debug.debug)(\"Unable to add recipient. Something went wrong: \");\n (0, _debug.debug)(_error);\n }\n });\n this.set(\"adding_member\", false);\n }),\n addUserToggle: (0, _object.action)(function () {\n if (this.adding_member) {\n this.set(\"adding_member\", false);\n } else {\n this.set(\"adding_member\", true);\n }\n }),\n toggleArchived: (0, _object.action)(function () {\n var convo = this.model;\n var isArchived = convo.get(\"workflow_state\") === \"archived\";\n var un = isArchived ? \"un\" : \"\";\n var dialogMessage = \"Are you sure you wish to \" + un + \"archive this conversation? To undo this action later, click the folder icon again.\";\n this.confirmDialog.show({\n subtitle: dialogMessage,\n choices: [\"Yes\", \"No\"]\n }).then(function (selection) {\n if (selection === \"Yes\") {\n convo.set(\"workflow_state\", isArchived ? \"read\" : \"archived\");\n convo.save();\n }\n });\n }),\n updateConversation: (0, _object.action)(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {\n var _this6 = this;\n var message, current_conversation, conversationPartners, new_conversation_message;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n message = this.parseEmbed(this.bodyInput);\n /* eslint-disable-next-line ember/no-jquery */\n if (!(_jquery.default.trim(message.replace(/ /g, \" \").replace(//g, \" \")).length === 0)) {\n _context3.n = 1;\n break;\n }\n return _context3.a(2);\n case 1:\n message = message.replace(\"\", \"\");\n message = message.trim();\n\n // Add any video embeds\n message = message + this.videoEmbedString;\n this.set(\"uploadInProgress\", true);\n current_conversation = this.model;\n _context3.n = 2;\n return current_conversation.get(\"conversationPartners\");\n case 2:\n conversationPartners = _context3.v;\n // Uploading attachments\n this.set(\"uploadInProgress\", true);\n\n // The first message is saved along with the original conversation\n if (current_conversation.get(\"isNew\")) {\n current_conversation.set(\"lastActivity\", new Date());\n current_conversation.set(\"new_message_body\", message);\n if (!this.working && this.file_ids.length > 0) {\n current_conversation.set(\"attachments\", this.file_ids);\n }\n current_conversation.save().then(function (savedConversation) {\n _this6.set(\"bodyInput\", \"\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".rte-editor-input\").html(\"\");\n _this6.send(\"clearAllFiles\");\n _this6.set(\"uploadInProgress\", false);\n savedConversation.set(\"last_authored_message\", message);\n }, function (err) {\n (0, _debug.debug)(err, \"Create new conversation to \" + conversationPartners.id);\n _this6.set(\"uploadInProgress\", false);\n window.alert(\"Unable to post message. Please try again.\");\n }).then(function () {\n _this6.router.transitionTo(\"classroom.conversation\", current_conversation.get(\"id\"));\n });\n } else {\n this.store.nestResources(\"conversation-message\", [{\n conversation: current_conversation.get(\"id\")\n }]);\n new_conversation_message = current_conversation.store.createRecord(\"conversation-message\");\n new_conversation_message.set(\"body\", message);\n new_conversation_message.set(\"createdAt\", new Date());\n new_conversation_message.set(\"belongsToSelf\", true);\n new_conversation_message.set(\"conversation\", current_conversation);\n new_conversation_message.set(\"conversationPartners\", conversationPartners);\n if (!this.working && this.file_ids.length > 0) {\n new_conversation_message.set(\"attachments\", this.file_ids);\n }\n new_conversation_message.save().then(function () {\n _this6.set(\"bodyInput\", \"\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".rte-editor-input\").html(\"\");\n _this6.send(\"clearAllFiles\");\n _this6.set(\"uploadInProgress\", false);\n current_conversation.set(\"last_authored_message\", message);\n current_conversation.set(\"last_message\", message);\n current_conversation.set(\"lastActivity\", new Date());\n }, function (err) {\n (0, _debug.debug)({\n Location: \"Post conversation reply\",\n Status: err.status,\n Message: err.message,\n Error: err.responseText\n });\n _this6.set(\"uploadInProgress\", false);\n window.alert(\"Unable to post message. Please try again.\");\n }).then(function () {\n _this6.scrollAndUpdateLocalConversation(current_conversation);\n });\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".pop-attachment-drawer\").addClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".floating-modal.active\").removeClass(\"drawer-open\");\n case 3:\n return _context3.a(2);\n }\n }, _callee3, this);\n }))),\n deleteUnsentConversation: (0, _object.action)(function () {\n var current_conversation = this.model;\n if (current_conversation && current_conversation.get(\"isNew\")) {\n current_conversation.destroyRecord();\n }\n }),\n destroyEditor: (0, _object.action)(function () {\n //This editorDestroyed logic is necessary because this method gets called twice,\n //once by 'closeModals', and the other time by 'destroyer'\n if (!this.editorDestroyed) {\n this._super();\n this.send(\"deleteUnsentConversation\");\n\n // Ensure that the heartbeat stops\n this.set(\"model\", null);\n this.editorDestroyed = true;\n }\n })\n });\n});","define(\"bocce/controllers/classroom/lessons\", [\"exports\", \"@ember/controller\", \"ember-data\", \"@ember/service\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"@ember/object\", \"jquery\", \"bocce/mixins/notify\", \"@ember/object/computed\"], function (_exports, _controller, _emberData, _service, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _object, _jquery, _notify, _computed) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"ember-data\",0,\"@ember/service\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"@ember/object\",0,\"jquery\",0,\"bocce/mixins/notify\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } /* eslint-disable-next-line ember/use-ember-data-rfc-395-imports */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-observers */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_notify.default, _editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _enmodal.default, {\n classroom: (0, _controller.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n submission: (0, _controller.inject)(\"classroom.work.submission\"),\n // loadHeartbeatData uses this\n\n heartbeat: (0, _service.inject)(),\n features: (0, _service.inject)(),\n bookmarks: (0, _service.inject)(),\n router: (0, _service.inject)(),\n bookmarksService: (0, _computed.alias)(\"bookmarks\"),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n topicsQueue: false,\n interactedWithInteractions: false,\n // Temporary function that we can call to start the misc. boot functions. Everything called from this should get\n // refactored; right now it mostly works, but is really hard to understand what does what and what relies on what.\n // Also, not all of it works.\n getThingsRolling: function getThingsRolling() {\n this.afterBoot();\n },\n getItemNode: function getItemNode() {\n /* eslint-disable-next-line ember/no-get */\n var itemId = \"#\".concat(this.get(\"model.item.cssString\"));\n /* eslint-disable-next-line ember/no-jquery */\n var itemNode = (0, _jquery.default)(itemId);\n return itemNode;\n },\n //Keep track of whether or not user has clicked within or entered keystrokes within an interaction,\n //which is what makes leaving the lesson ask for confirmation. Interactions that declare their\n //content disposable are exempt -- see bootInteraction in mixins/boot.js.\n //JARED_TODO: I haven't yet tested if the keystroke listener works\n setupInteractionListeners: (0, _object.action)(function (element) {\n var _this = this;\n this.interactedWithInteractions = false;\n var $root = jQuery(element);\n var $components = $root.find(\".interaction-component, .interaction_component\");\n $components.on(\"click keydown keypress keyup\", function (event) {\n // Interactions boot lazily as they scroll into view, well after this\n // runs, so whether one has declared its content disposable can only be\n // read off the node at event time.\n if (event.currentTarget.classList.contains(\"interaction_disposable\")) {\n return;\n }\n _this.interactedWithInteractions = true;\n });\n }),\n afterBoot: function afterBoot() {\n var _this2 = this;\n // Open up syllabus view on first load...\n /* eslint-disable-next-line ember/no-jquery */\n if ((0, _jquery.default)(\".classroom\").hasClass(\"loading\")) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom\").removeClass(\"loading\").addClass(\"active\");\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").addClass(\"no-scroll\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel-container\").off(\"resize\");\n setTimeout(function () {\n _this2.afterAfterBoot();\n }, 500);\n },\n afterAfterBoot: function afterAfterBoot() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").removeClass(\"no-scroll\");\n var current_item = this.getItemNode();\n if (current_item && current_item.length) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").scrollTop(0).scrollTop(current_item.offset().top - 230);\n }\n },\n nextLesson: (0, _object.computed)(\"classroom.nextLessonMap\", \"model.lesson.id\", function () {\n var _this3 = this;\n return _emberData.default.PromiseObject.create({\n promise: new Promise(function (resolve) {\n /* eslint-disable-next-line ember/no-get */\n _this3.get(\"classroom.nextLessonMap\").then(function (map) {\n /* eslint-disable-next-line ember/no-get */\n var nextLessonId = parseInt(_this3.get(\"model.lesson.id\")) + 1;\n resolve(map[nextLessonId]);\n });\n })\n });\n }),\n showNextLesson: (0, _object.computed)(\"nextLesson\", \"features.staticContent\", function () {\n var _this4 = this;\n return _emberData.default.PromiseObject.create({\n promise: new Promise(function (resolve) {\n /* eslint-disable-next-line ember/no-get */\n _this4.get(\"nextLesson\").then(function (nextLesson) {\n resolve(Boolean(!_this4.get(\"features.staticContent\") && nextLesson));\n });\n })\n });\n }),\n // this is sort of the equivalent to the modalId. It is needed because\n // there needs to be a parent for the response text and the lesson\n // can have an in page response\n replyContainerId: (0, _object.computed)(function () {\n return \"in-page-discussion\";\n }),\n nextLessonAvail: (0, _object.computed)(\"nextLesson\", function () {\n var retRes = false,\n nxt = this.nextLesson;\n if (nxt) {\n retRes = true;\n }\n return retRes;\n }),\n nextLessonLocked: (0, _object.computed)(\"nextLesson\", function () {\n var _this5 = this;\n return _emberData.default.PromiseObject.create({\n promise: new Promise(function (resolve) {\n _this5.nextLesson.then(function (next) {\n resolve(next && next.get(\"locked\"));\n });\n })\n });\n }),\n lastLesson: (0, _object.computed)(\"classroom.lastLesson\", \"model.lesson.id\", function () {\n var retRes = false,\n /* eslint-disable-next-line ember/no-get */\n last = this.get(\"classroom.lastLesson\");\n if (last && this.model.lesson.get(\"id\") === last.id) {\n retRes = true;\n }\n return retRes;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n discussionModel: (0, _computed.reads)(\"model.discussion\"),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n unlocks_at_formatted: (0, _object.computed)(\"nextLesson\", function () {\n /* eslint-disable-next-line ember/no-get */\n return moment(this.get(\"nextLesson.unlocks_at\")).tz(\"America/New_York\").format(\"MMM Do\");\n }),\n /* eslint-disable-next-line ember/no-observers */\n currentPathChanged: (0, _object.observer)(\"model.currentPath\", function () {\n var current_user = this.session.get(\"user\");\n\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"model.item\")) {\n return;\n }\n this.model.course.set(\"lastLesson\", this.model.lesson);\n this.model.course.set(\"lastItem\", this.model.item);\n\n // Mark the item as viewed in canvas.\n // Re-save this, even if it's already read, so we can track activity.\n if (!this.session.get(\"course.isReadOnly\")) {\n this.model.item.set(\"read\", true);\n this.model.item.save();\n }\n\n // current_user.then((user) => {\n var lv = current_user.get(\"lastviewed\");\n lv[this.model.course.get(\"course_id\")] = {\n lesson: this.model.lesson.get(\"id\"),\n item_id: this.model.item.get(\"id\"),\n item_db_id: this.model.item.get(\"db_id\")\n };\n current_user.set(\"lastviewed\", lv);\n current_user.save();\n // });\n }),\n lessonsController: (0, _object.computed)(function () {\n return this;\n }),\n goToNextLesson: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(curLesson) {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return this.nextLessonLocked;\n case 1:\n if (_context.v) {\n _context.n = 2;\n break;\n }\n this.classroom.send(\"nextLesson\", curLesson);\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n }()),\n showcaseDeleteItem: (0, _object.action)(function (item) {\n this.confirmDialog.show({\n subtitle: \"Are you sure you want to delete this lesson from the showcase? This action cannot be undone.\",\n choices: [\"Yes, delete it.\", \"Cancel\"]\n }).then(function (selection) {\n if (selection === \"Yes, delete it.\") {\n var lesson = item.get(\"lesson\");\n var destroyLesson = lesson.get(\"items\").length === 1 || false;\n item.destroyRecord();\n if (destroyLesson) {\n lesson.destroyRecord();\n }\n }\n });\n }),\n showcaseEditItem: (0, _object.action)(function () {\n this.set(\"editingLessonTitle\", true);\n }),\n cancelEdit: (0, _object.action)(function () {\n this.set(\"editingLessonTitle\", false);\n }),\n showcaseSaveItemTitle: (0, _object.action)(function (item) {\n /* eslint-disable-next-line ember/no-jquery */\n var newTitle = (0, _jquery.default)(\".lesson-edit-input-\".concat(item.id)).val();\n item.set(\"title\", newTitle);\n item.set(\"showcaseEdit\", true);\n item.save();\n this.set(\"editingLessonTitle\", false);\n }),\n updateShortcutsDrawer: (0, _object.action)(function (title) {\n this.classroom.set(\"shortcutsDrawerLabel\", title);\n }),\n submitAdviceCard: (0, _object.action)(function () {\n this.set(\"session.section.adviceCards.iSubmitted\", true);\n }),\n addBookmark: (0, _object.action)(function (item) {\n var lesson = this.model.lesson;\n var lesson_id = lesson.get(\"id\");\n var lesson_name = lesson.get(\"title\");\n this.bookmarksService.addBookmark(item.db_id, item.id, item.title, \"\", lesson_id, lesson_name);\n })\n });\n});","define(\"bocce/controllers/classroom/live/event-new\", [\"exports\", \"bocce/config/environment\", \"@ember/controller\", \"bocce/mixins/discussable\", \"bocce/mixins/editable\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/nested-resources\", \"bocce/mixins/enmodal\", \"bocce/utilities/webex\", \"@ember/runloop\", \"@ember/object\", \"jquery\", \"lodash.isequal\", \"@ember/array/proxy\", \"@ember/array\", \"@ember/service\"], function (_exports, _environment, _controller, _discussable, _editable, _uploadable, _audioRec, _videoRec, _rtcRec, _nestedResources, _enmodal, _webex, _runloop, _object, _jquery, _lodash, _proxy, _array, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.sendEventsToInterfaceAndSendEmail = sendEventsToInterfaceAndSendEmail;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/config/environment\",0,\"@ember/controller\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/nested-resources\",0,\"bocce/mixins/enmodal\",0,\"bocce/utilities/webex\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"jquery\",0,\"lodash.isequal\",0,\"@ember/array/proxy\",0,\"@ember/array\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } // app/controllers/classroom/lessons/event-new.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-observers */\n // create the default start time; default is the next half-hour increment\n function defaultTime() {\n var start = moment().tz(\"America/New_York\").add(5, \"minutes\");\n start.utcOffset(-5);\n if (start.minutes() < 30) {\n start.startOf(\"hour\").minute(30);\n } else {\n start.startOf(\"hour\").add(1, \"hour\");\n }\n return start;\n }\n var _default = _exports.default = _controller.default.extend(_discussable.default, _editable.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _nestedResources.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.eventsModel = this.eventsModel || _proxy.default.create({\n content: (0, _array.A)([{\n bodyInput: \"\",\n titleInput: \"\",\n startDate: defaultTime(),\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n }),\n shown: true\n }])\n });\n this.savedData = this.savedData || [{\n title: \"\",\n body: \"\"\n }];\n this.set(\"contentNotDirty\", true);\n this.set(\"saveButtonShaking\", false);\n this.extraSectionToggled = false;\n this.showTemplateManager = false;\n this.selectedSectionCourseIds = _proxy.default.create({\n content: (0, _array.A)([])\n });\n this.creationMode = \"manual\";\n this.manualEventsSnapshot = null;\n this.schedulerStep = 1;\n this.cascadeEnabled = false;\n this.editingTemplateIndex = null;\n this.editingTemplateName = \"\";\n this.saveAsTemplate = false;\n this.saveAsTemplateName = \"\";\n this.templatesService.onTemplateChange = this.actions.changeTemplate.bind(this);\n this.templatesService.onDeleteTemplate = this.actions.onDeleteTemplate.bind(this);\n },\n //Calculated event properties\n events: (0, _object.computed)(\"eventsModel.@each.{bodyInput,titleInput,startDate,shown,additionalSectionsCourseIds}\", function () {\n for (var i = 0; i < this.eventsModel.length; i++) {\n var event = this.eventsModel.objectAt(i);\n if (event.startDate) {\n (0, _object.set)(event, \"startDate_date\", event.startDate.format(\"YYYY-MM-DD\"));\n (0, _object.set)(event, \"startDate_time\", event.startDate.format(\"HH:mm\"));\n }\n (0, _object.set)(event, \"hideCascadeDate\", event === this.eventsModel.lastObject);\n (0, _object.set)(event, \"disableCascadeDate\", !!!event.startDate);\n var bodyWithSpaceForNewLines = event.bodyInput.replaceAll(/<\\s*br\\s*\\/?>/g, \" \");\n (0, _object.set)(event, \"bodyInputTextOnly\", (0, _jquery.default)(\"
    \").html(bodyWithSpaceForNewLines).text());\n (0, _object.set)(event, \"incomplete\", !!!event.startDate || !event.titleInput || !event.bodyInput);\n }\n return this.eventsModel;\n }),\n //Keep the 'contentNotDirty' property up-to-date\n eventsUpdatedObserver: (0, _object.observer)(\"eventsModel.@each.{bodyInput,titleInput,startDate,shown,additionalSectionsCourseIds}\", function () {\n var contentNotDirty = (0, _lodash.default)(this.savedData, this.events.map(function (em) {\n return {\n title: em.titleInput,\n body: em.bodyInput\n };\n }));\n this.set(\"contentNotDirty\", contentNotDirty);\n }),\n editorHasContent: (0, _object.computed)(\"contentNotDirty\", function () {\n return !this.get(\"contentNotDirty\");\n }),\n application: (0, _controller.inject)(),\n session: (0, _service.inject)(),\n templatesService: (0, _service.inject)(\"templates\"),\n router: (0, _service.inject)(),\n classroom: (0, _controller.inject)(),\n // required by DiscussableMixin\n discussion: (0, _controller.inject)(\"classroom.work.discussion\"),\n // required by DiscussableMixin\n newDiscussion: (0, _controller.inject)(\"classroom.activity.discussion-new\"),\n // required by DiscussableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n\n modalTitle: (0, _object.computed)(\"session.isInstructor\", function () {\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.isInstructor\")) {\n return \"New Live Class\";\n } else {\n return \"New Live Session\";\n }\n }),\n frequencyText: \"weeks\",\n sectionDrawerToggled: false,\n readyForDetailedEditorPage: (0, _object.computed)(\"eventsModel.@each.{startDate_date,startDate_time}\", \"creationMode\", \"templatesService.selectedTemplate\", function () {\n if (this.creationMode === \"template\") {\n return !!this.templatesService.selectedTemplate;\n }\n var firstEvent = this.eventsModel.objectAt(0);\n return !!firstEvent && !!firstEvent.startDate_date && !!firstEvent.startDate_time;\n }),\n readyToSave: (0, _object.computed)(\"eventsModel.@each.{bodyInput,titleInput,startDate}\", \"classroom.activeNewEvent\", \"isWorking\", \"saveAsTemplate\", \"saveAsTemplateName\", function () {\n var readyToSave = true;\n var events = this.get(\"events\");\n var self = this;\n events.forEach(function (event) {\n readyToSave = readyToSave && _jquery.default.trim(event.titleInput.replace(/ /g, \" \").replace(//g, \" \")).length > 0 && /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.trim(event.bodyInput.replace(/ /g, \" \").replace(//g, \" \")).length > 0 && !!event.startDate && event.startDate.isValid() && !self.isWorking;\n });\n if (this.saveAsTemplate) {\n readyToSave = readyToSave && _jquery.default.trim(this.saveAsTemplateName).length > 0;\n }\n /* eslint-disable-next-line ember/no-jquery */\n return readyToSave;\n }),\n templateNameMissing: (0, _object.computed)(\"saveAsTemplate\", \"saveAsTemplateName\", function () {\n return this.saveAsTemplate && _jquery.default.trim(this.saveAsTemplateName).length === 0;\n }),\n maxScheduleDate: (0, _object.computed)(\"session.course.term.endsOn\", function () {\n var endsOn = this.session.get(\"course.term.endsOn\");\n if (!endsOn || moment(endsOn).year() >= 9999) {\n return \"9999-12-31\";\n }\n return moment(endsOn).add(1, \"week\").format(\"YYYY-MM-DD\");\n }),\n minScheduleDate: (0, _object.computed)(\"session.course.startAt\", function () {\n var startAt = this.session.get(\"course.startAt\");\n return startAt ? moment(startAt).subtract(1, \"week\").format(\"YYYY-MM-DD\") : \"\";\n }),\n canSaveEditedTemplate: (0, _object.computed)(\"eventsModel.@each.{bodyInput,titleInput}\", \"editingTemplateName\", function () {\n var name = _jquery.default.trim(this.editingTemplateName || \"\");\n if (!name) return false;\n var ready = true;\n this.get(\"events\").forEach(function (event) {\n ready = ready && /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.trim(event.titleInput.replace(/ /g, \" \").replace(//g, \" \")).length > 0 && /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.trim(event.bodyInput.replace(/ /g, \" \").replace(//g, \" \")).length > 0;\n });\n return ready;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n otherEnrolledSections: (0, _object.computed)(function () {\n // returns the other current-term sections the user is enrolled in\n /* eslint-disable-next-line ember/no-get */\n var filteredCodes = this.get(\"classroom.otherCurrentTermSections\");\n if (filteredCodes.length > 6) {\n /* eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions */\n\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".floating-modal#new-event .rte-editor-input\").addClass(\"height-limited\");\n });\n }\n return filteredCodes || [];\n }),\n //Clear out the new event modal data.\n resetData: (0, _object.action)(function () {\n this.eventsModel.setObjects([{\n bodyInput: \"\",\n titleInput: \"\",\n startDate: defaultTime(),\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n }),\n shown: true\n }]);\n this.savedData = [{\n title: \"\",\n body: \"\"\n }];\n this.extraSectionToggled = false;\n this.selectedSectionCourseIds.setObjects([]);\n this.set(\"contentNotDirty\", true);\n this.set(\"schedulerStep\", 1);\n this.set(\"cascadeEnabled\", false);\n this.set(\"saveAsTemplate\", false);\n this.set(\"saveAsTemplateName\", \"\");\n this.templatesService.selectedTemplateIndex = -1;\n }),\n saveEvents: (0, _object.action)(function () {\n var _this = this;\n this.set(\"isWorking\", true);\n var section = this.session.get(\"section\");\n var course = section.get(\"course\");\n var now = moment().tz(\"America/New_York\"),\n self = this,\n courseId = course.get(\"id\"),\n eventData = [];\n var priorDate = false,\n invalidDate = false,\n preCourseOpenDate = false,\n duplicateDates = [],\n eventDates = [];\n this.eventsModel.forEach(function (em, index) {\n var start_time = em.startDate;\n var eventDataSingle = {\n courseIds: [],\n event: {}\n };\n if (start_time.unix() < now.unix()) {\n priorDate = true;\n _this.set(\"isWorking\", false);\n return;\n }\n if (start_time.unix() < moment(_this.session.get(\"course.startAt\")).unix()) {\n preCourseOpenDate = true;\n _this.set(\"isWorking\", false);\n return;\n }\n if (!start_time.isValid()) {\n invalidDate = true;\n _this.set(\"isWorking\", false);\n return;\n }\n\n // Force the value of the time input to avoid DST conversion\n start_time = \"\".concat(start_time.format(\"YYYY-MM-DD\"), \"T\").concat(em.startDate_time, \":00\");\n var start_time_moment = moment(start_time),\n end_time_moment = moment(start_time).add(\"1\", \"hours\");\n var startTimeMomentFormatted = start_time_moment.format(\"YYYY-MM-DDTHH:mm:ss\");\n eventDataSingle.event = {\n title: em.titleInput,\n description: _this.parseEmbed(em.bodyInput) ? _this.parseEmbed(em.bodyInput) : \"\",\n futureEvent: true,\n startAt: startTimeMomentFormatted,\n endAt: end_time_moment.format(\"YYYY-MM-DDTHH:mm:ss\")\n };\n\n //Keeping track of duplicate dates\n var duplicateDate = eventDates.find(function (ed) {\n return ed.date === startTimeMomentFormatted;\n });\n if (duplicateDate) {\n var title1 = duplicateDate.title;\n var title2 = em.titleInput;\n duplicateDates.push({\n title1: title1,\n title2: title2,\n date: startTimeMomentFormatted\n });\n }\n eventDates.push({\n title: em.titleInput,\n date: startTimeMomentFormatted\n });\n eventDataSingle.courseIds.push(courseId);\n em.additionalSectionsCourseIds.forEach(function (additionalSectionCourseId) {\n eventDataSingle.courseIds.push(additionalSectionCourseId);\n });\n eventData.push(eventDataSingle);\n });\n if (priorDate) {\n this.confirmDialog.show({\n subtitle: \"You can only schedule live classes in the future.\"\n });\n return;\n } else if (invalidDate) {\n this.confirmDialog.show({\n subtitle: \"Please choose a valid date for the scheduled live class.\"\n });\n return;\n } else if (preCourseOpenDate) {\n this.confirmDialog.show({\n subtitle: \"Live classes cannot start before the course opens.\"\n });\n } else if (duplicateDates.length > 0) {\n var _duplicateDates$ = duplicateDates[0],\n title1 = _duplicateDates$.title1,\n title2 = _duplicateDates$.title2,\n date = _duplicateDates$.date;\n this.confirmDialog.show({\n subtitle: \"You have two events scheduled for \".concat(moment(date).format(\"MMM Do, YYYY h:mm a\") + \" ET\", \": \").concat(title1, \", \").concat(title2, \". Are you sure you wish to proceed?\"),\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n if (_this.saveAsTemplate) {\n _this.templatesService.saveTemplate(_this.eventsModel, _this.saveAsTemplateName);\n }\n self.send(\"destroyEditor\");\n sendEventsToInterfaceAndSendEmail.call(_this, eventData);\n } else {\n _this.set(\"isWorking\", false);\n }\n });\n } else {\n if (this.saveAsTemplate) {\n this.templatesService.saveTemplate(this.eventsModel, this.saveAsTemplateName);\n }\n self.send(\"destroyEditor\");\n sendEventsToInterfaceAndSendEmail.call(this, eventData);\n }\n }),\n setFullDate: function setFullDate(event) {\n if (event.startDate_date && event.startDate_time) {\n var dateString = \"\".concat(event.startDate_date, \"T\").concat(event.startDate_time, \":00\"),\n startDate = moment.tz(dateString, \"America/New_York\");\n (0, _object.set)(event, \"startDate\", startDate);\n } else {\n (0, _object.set)(event, \"startDate\", \"\");\n }\n },\n setShowTemplateManager: (0, _object.action)(function (show) {\n this.set(\"showTemplateManager\", show);\n }),\n toggleTemplateManager: (0, _object.action)(function () {\n this.set(\"showTemplateManager\", !this.showTemplateManager);\n }),\n setCreationMode: (0, _object.action)(function (mode) {\n if (mode === \"template\" && this.creationMode !== \"template\") {\n this.manualEventsSnapshot = this.eventsModel.toArray().map(function (e) {\n return _objectSpread({}, e);\n });\n } else if (mode === \"manual\" && this.creationMode !== \"manual\") {\n if (this.manualEventsSnapshot) {\n this.eventsModel.setObjects(this.manualEventsSnapshot);\n this.manualEventsSnapshot = null;\n }\n this.templatesService.selectedTemplateIndex = -1;\n }\n this.set(\"creationMode\", mode);\n }),\n toggleCascade: (0, _object.action)(function () {\n this.set(\"cascadeEnabled\", !this.cascadeEnabled);\n }),\n toggleSaveAsTemplate: (0, _object.action)(function () {\n this.set(\"saveAsTemplate\", !this.saveAsTemplate);\n if (!this.saveAsTemplate) {\n this.set(\"saveAsTemplateName\", \"\");\n }\n }),\n updateSaveAsTemplateName: (0, _object.action)(function (e) {\n this.set(\"saveAsTemplateName\", e.target.value);\n }),\n attemptSaveEvents: (0, _object.action)(function () {\n console.log(\"[attemptSaveEvents] readyToSave:\", this.readyToSave);\n if (this.readyToSave) {\n this.promptSaveEvents();\n return;\n }\n var index = this.eventsModel.toArray().findIndex(function (e) {\n return e.incomplete;\n });\n console.log(\"[attemptSaveEvents] first incomplete index:\", index, \"events:\", this.eventsModel.toArray().map(function (e) {\n return {\n title: e.titleInput,\n shown: e.shown,\n incomplete: e.incomplete\n };\n }));\n if (index >= 0) {\n var event = this.eventsModel.objectAt(index);\n if (!event.shown) {\n console.log(\"[attemptSaveEvents] opening event at index\", index);\n this.eventsModel.forEach(function (e, i) {\n return (0, _object.set)(e, \"shown\", i === index);\n });\n }\n }\n setTimeout(function () {\n var all = document.querySelectorAll(\".new-event__event-content\");\n var visible = document.querySelectorAll(\".new-event__event-content:not(.hidden)\");\n console.log(\"[attemptSaveEvents] setTimeout - all event-content:\", all.length, \"visible:\", visible.length, \"targeting index:\", index);\n var el = visible[index];\n console.log(\"[attemptSaveEvents] el:\", el);\n if (el) el.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\"\n });\n }, 0);\n }),\n goToDetailedEditorPage: (0, _object.action)(function () {\n if (this.cascadeEnabled) {\n var _this$eventsModel$obj;\n var firstDate = (_this$eventsModel$obj = this.eventsModel.objectAt(0)) === null || _this$eventsModel$obj === void 0 ? void 0 : _this$eventsModel$obj.startDate;\n if (firstDate) {\n for (var i = 1; i < this.eventsModel.length; i++) {\n (0, _object.set)(this.eventsModel.objectAt(i), \"startDate\", moment(firstDate).add(7 * i, \"d\"));\n }\n }\n }\n // Collapse all events, then expand the first one that needs input\n this.eventsModel.forEach(function (e) {\n return (0, _object.set)(e, \"shown\", false);\n });\n var firstIncomplete = this.eventsModel.find(function (e) {\n return !e.titleInput || !e.bodyInput;\n });\n var firstShown = firstIncomplete || this.eventsModel.objectAt(0);\n this.actions.snapshotEvent.call(this, firstShown);\n (0, _object.set)(firstShown, \"shown\", true);\n this.set(\"schedulerStep\", 2);\n }),\n goToFirstPage: (0, _object.action)(function () {\n this.set(\"schedulerStep\", 1);\n }),\n openTutorial: (0, _object.action)(function () {\n window.open(_environment.default.APP.multiSchedulerOverviewUrl, \"_blank\").focus();\n }),\n onDeleteTemplate: (0, _object.action)(function () {\n if (this.templatesService.selectedTemplateIndex === -1) {\n this.resetData();\n }\n if (this.templatesService.templates.length === 0) {\n this.setShowTemplateManager(false);\n }\n }),\n changeTemplate: (0, _object.action)(function (template) {\n if (template && template.events) {\n var datesBeforeReset = this.eventsModel.toArray().map(function (e) {\n return e.startDate;\n });\n this.selectedSectionCourseIds.setObjects([]);\n this.eventsModel.setObjects(template.events.map(function (te, index) {\n return {\n titleInput: te.title,\n bodyInput: te.body,\n startDate: datesBeforeReset[index],\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n })\n };\n }));\n } else {\n this.resetData();\n }\n this.savedData = this.eventsModel.map(function (em) {\n return {\n title: em.titleInput,\n body: em.bodyInput\n };\n });\n }),\n updateDate: (0, _object.action)(function (index, e) {\n var event = this.events.objectAt(index);\n (0, _object.set)(event, \"startDate_date\", e.target.value);\n this.setFullDate(event);\n }),\n updateTime: (0, _object.action)(function (index, e) {\n var event = this.events.objectAt(index);\n (0, _object.set)(event, \"startDate_time\", e.target.value);\n this.setFullDate(event);\n }),\n cascadeDate: (0, _object.action)(function (index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n var date = this.eventsModel.objectAt(index).startDate;\n if (!date) {\n return;\n }\n for (var i = index + 1; i < this.eventsModel.length; i++) {\n var event = this.eventsModel.objectAt(i);\n (0, _object.set)(event, \"startDate\", moment(date).add(7 * (i - index), \"d\"));\n }\n }\n }),\n cascadeSection: (0, _object.action)(function (index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n var additionalSectionsCourseIds = this.eventsModel.objectAt(index).additionalSectionsCourseIds;\n for (var i = index + 1; i < this.eventsModel.length; i++) {\n var event = this.eventsModel.objectAt(i);\n event.additionalSectionsCourseIds.setObjects(additionalSectionsCourseIds);\n }\n }\n }),\n updateTemplate: (0, _object.action)(function () {\n this.templatesService.updateTemplate(this.eventsModel);\n }),\n saveTemplate: (0, _object.action)(function () {\n this.templatesService.saveTemplate(this.eventsModel);\n }),\n deleteEvent: (0, _object.action)(function (index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n var self = this;\n this.confirmDialog.show({\n subtitle: \"Are you sure you wish to delete this event?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n self.eventsModel.removeAt(index, 1);\n\n //Make sure that the single event is showing if it is the only one left.\n if (self.eventsModel.length === 1) {\n var event = self.eventsModel.objectAt(0);\n (0, _object.set)(event, \"shown\", true);\n }\n }\n });\n }\n }),\n destroyEditor: (0, _object.action)(function () {\n this.resetData();\n }),\n snapshotEvent: (0, _object.action)(function (event) {\n (0, _object.set)(event, \"snapshot\", {\n titleInput: event.titleInput,\n bodyInput: event.bodyInput,\n startDate: event.startDate,\n startDate_date: event.startDate_date,\n startDate_time: event.startDate_time\n });\n }),\n toggleShowEventDetails: (0, _object.action)(function (index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n var event = this.eventsModel.objectAt(index);\n var willShow = !event.shown;\n // Collapse all other events first\n this.eventsModel.forEach(function (e, i) {\n if (i !== index) {\n (0, _object.set)(e, \"shown\", false);\n }\n });\n if (willShow) {\n this.actions.snapshotEvent.call(this, event);\n }\n (0, _object.set)(event, \"shown\", willShow);\n }\n }),\n saveEventEdits: (0, _object.action)(function (index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n (0, _object.set)(this.eventsModel.objectAt(index), \"shown\", false);\n }\n }),\n discardEventEdits: (0, _object.action)(function (index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n var event = this.eventsModel.objectAt(index);\n this.confirmDialog.show({\n subtitle: \"Discard changes?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n var snap = event.snapshot;\n if (snap) {\n (0, _object.set)(event, \"titleInput\", snap.titleInput);\n (0, _object.set)(event, \"bodyInput\", snap.bodyInput);\n (0, _object.set)(event, \"startDate\", snap.startDate);\n (0, _object.set)(event, \"startDate_date\", snap.startDate_date);\n (0, _object.set)(event, \"startDate_time\", snap.startDate_time);\n }\n (0, _object.set)(event, \"shown\", false);\n }\n });\n }\n }),\n selectTemplate: (0, _object.action)(function (index) {\n this.set(\"creationMode\", \"template\");\n this.templatesService.changeTemplate(index);\n }),\n newTemplate: (0, _object.action)(function () {\n this.selectedSectionCourseIds.setObjects([]);\n this.eventsModel.setObjects([{\n bodyInput: \"\",\n titleInput: \"\",\n startDate: defaultTime(),\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n }),\n shown: true\n }]);\n this.set(\"editingTemplateIndex\", \"new\");\n this.set(\"editingTemplateName\", \"\");\n this.set(\"showTemplateManager\", false);\n }),\n editTemplate: (0, _object.action)(function (template) {\n var index = (this.templatesService.templates || []).indexOf(template);\n if (template && template.events) {\n this.selectedSectionCourseIds.setObjects([]);\n this.eventsModel.setObjects(template.events.map(function (te) {\n return {\n titleInput: te.title,\n bodyInput: te.body,\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n }),\n shown: true\n };\n }));\n }\n this.set(\"editingTemplateIndex\", index);\n this.set(\"editingTemplateName\", template ? template.name : \"\");\n this.set(\"showTemplateManager\", false);\n }),\n saveEditedTemplate: (0, _object.action)(function () {\n var index = this.editingTemplateIndex;\n if (index === \"new\") {\n var _name = this.editingTemplateName;\n if (!_name) {\n this.confirmDialog.show({\n subtitle: \"Please enter a template name.\"\n });\n return;\n }\n this.templatesService.saveTemplate(this.eventsModel, _name);\n this.set(\"editingTemplateIndex\", null);\n this.set(\"editingTemplateName\", \"\");\n this.resetData();\n this.set(\"showTemplateManager\", true);\n return;\n }\n var template = this.templatesService.templates[index];\n if (!template) {\n return;\n }\n var templateId = template.id;\n var name = this.editingTemplateName;\n var self = this;\n var events = this.eventsModel.map(function (em) {\n return {\n title: em.titleInput,\n body: em.bodyInput\n };\n });\n var sectionId = this.session.get(\"section.id\");\n this.set(\"isWorking\", true);\n _jquery.default.ajax({\n type: \"PUT\",\n url: \"/interface/sections/\".concat(sectionId, \"/event-scheduler-templates/\").concat(templateId),\n data: JSON.stringify({\n name: name,\n user_id: self.session.get(\"user.id\"),\n course_id: self.session.get(\"section.course.id\"),\n events: events\n }),\n success: function success(newTemplateId) {\n var updated = _toConsumableArray(self.templatesService.templates);\n updated.splice(index, 1, {\n id: newTemplateId,\n name: name,\n events: events\n });\n self.session.set(\"user.eventSchedulerTemplates\", updated);\n self.set(\"isWorking\", false);\n self.set(\"editingTemplateIndex\", null);\n self.set(\"editingTemplateName\", \"\");\n self.resetData();\n self.set(\"showTemplateManager\", true);\n },\n error: function error(jqXHR) {\n console.error(\"Update template error: \" + JSON.stringify(jqXHR));\n self.confirmDialog.show({\n subtitle: \"Failed to update template '\".concat(name, \"'. Please try again later.\")\n });\n self.set(\"isWorking\", false);\n }\n });\n }),\n cancelEditTemplate: (0, _object.action)(function () {\n this.set(\"editingTemplateIndex\", null);\n this.set(\"editingTemplateName\", \"\");\n this.resetData();\n this.set(\"showTemplateManager\", true);\n }),\n updateEditingTemplateName: (0, _object.action)(function (e) {\n this.set(\"editingTemplateName\", e.target.value);\n }),\n addEvent: (0, _object.action)(function () {\n var _this2 = this;\n this.set(\"creationMode\", \"manual\");\n this.set(\"sessionCountBounce\", false);\n (0, _runloop.later)(this, function () {\n return _this2.set(\"sessionCountBounce\", true);\n }, 0);\n (0, _runloop.later)(this, function () {\n return _this2.set(\"sessionCountBounce\", false);\n }, 120);\n this.eventsModel.forEach(function (em) {\n (0, _object.set)(em, \"shown\", false);\n });\n this.eventsModel.pushObject({\n bodyInput: \"\",\n titleInput: \"\",\n startDate: this.cascadeEnabled ? moment(this.eventsModel.objectAt(0).startDate || defaultTime()).add(7 * this.eventsModel.length, \"d\") : null,\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)(this.selectedSectionCourseIds.toArray())\n }),\n shown: true\n });\n }),\n removeLastEvent: (0, _object.action)(function () {\n var _this3 = this;\n this.set(\"creationMode\", \"manual\");\n this.set(\"sessionCountBounce\", false);\n (0, _runloop.later)(this, function () {\n return _this3.set(\"sessionCountBounce\", true);\n }, 0);\n (0, _runloop.later)(this, function () {\n return _this3.set(\"sessionCountBounce\", false);\n }, 120);\n if (this.eventsModel.length > 1) {\n this.eventsModel.removeAt(this.eventsModel.length - 1);\n // Show the last remaining event\n var lastEvent = this.eventsModel.objectAt(this.eventsModel.length - 1);\n (0, _object.set)(lastEvent, \"shown\", true);\n }\n }),\n promptSaveEvents: (0, _object.action)(function () {\n var _this4 = this;\n if (!this.extraSectionToggled && this.otherEnrolledSections.length > 0) {\n this.confirmDialog.show({\n subtitle: \"You have not added any additional sections. Continue?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n _this4.saveEvents();\n }\n });\n } else {\n this.saveEvents();\n }\n }),\n toggleExtraSection: (0, _object.action)(function (section, index) {\n if (index != null && index >= 0 && index < this.eventsModel.length) {\n var event = this.eventsModel.objectAt(index);\n var additionalSectionsCourseIds = event.additionalSectionsCourseIds,\n existingIndex = -1;\n additionalSectionsCourseIds.forEach(function (extraSection, esIndex) {\n if (extraSection === section.courseId) {\n existingIndex = esIndex;\n }\n });\n if (existingIndex >= 0) {\n additionalSectionsCourseIds.removeAt(existingIndex, 1);\n } else {\n additionalSectionsCourseIds.pushObject(section.courseId);\n }\n this.extraSectionToggled = true;\n }\n }),\n toggleExtraSectionAll: (0, _object.action)(function (section) {\n var selected = this.selectedSectionCourseIds;\n var isCurrentlySelected = selected.includes(section.courseId);\n if (isCurrentlySelected) {\n selected.removeObject(section.courseId);\n } else {\n selected.pushObject(section.courseId);\n }\n\n // Sync to all events\n for (var i = 0; i < this.eventsModel.length; i++) {\n this.eventsModel.objectAt(i).additionalSectionsCourseIds.setObjects(selected.toArray());\n }\n this.extraSectionToggled = true;\n }),\n closeEventModal: (0, _object.action)(function () {\n this.router.transitionTo(\"classroom.live\");\n })\n });\n function sendEventsToInterfaceAndSendEmail(eventData) {\n var start_chat = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var self = this;\n if (self.eventsService) {\n // Glimmer isWorking\n self.eventsService.setIsWorking(true);\n } else if (self.set) {\n // Controller isWorking\n self.set(\"isWorking\", true);\n }\n var batchEventData = [];\n eventData.forEach(function (ed) {\n ed.courseIds.forEach(function (courseId) {\n batchEventData.push({\n event: _objectSpread(_objectSpread({}, ed.event), {}, {\n course: courseId\n })\n });\n });\n });\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/batch-ops/batchEvent\",\n data: JSON.stringify({\n events: batchEventData\n }),\n success: function success(batchResult) {\n (0, _jquery.default)(\".activity-filters .filter-action .current\").click();\n if (self.eventsModel) {\n var resetModel = function resetModel() {\n self.eventsModel.setObjects([{\n bodyInput: \"\",\n titleInput: \"\",\n startDate: defaultTime(),\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n }),\n shown: true\n }]);\n };\n if (self.eventsModel.setObjects) {\n resetModel();\n }\n }\n //Key events off of course id\n var courseEvents = batchResult.events.reduce(function (aggregated, r) {\n var event = r.event;\n if (aggregated[event.course]) {\n aggregated[event.course].push(event);\n } else {\n aggregated[event.course] = [event];\n }\n return aggregated;\n }, {});\n var _sendEmail = function sendEmail() {\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/event-emails/scheduled\",\n data: JSON.stringify({\n events: courseEvents\n }),\n success: function success(data) {\n if (data.failedEmails && data.failedEmails.length > 0) {\n self.confirmDialog.show({\n subtitle: \"E-mails for the following courses failed to send: \".concat(data.failedEmails.join(\",\"))\n });\n }\n },\n error: function error(jqXHR, textStatus) {\n self.confirmDialog.show({\n subtitle: \"Unknown error occurred sending e-mails. Try again? Warning: this may send duplicate e-mails.\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n _sendEmail();\n }\n });\n }\n });\n };\n _sendEmail();\n if (start_chat) {\n var any_course_events = courseEvents[Object.keys(courseEvents)[0]];\n var any_chat = any_course_events[0];\n if (self.set) {\n self.set(\"isWorking\", false);\n }\n self.router.transitionTo(\"classroom.live\");\n self.confirmDialog.show({\n subtitle: \"Events successfully scheduled. It may be a minute or two before it starts up.\"\n });\n (0, _webex.startChat)(self.session.get(\"section.id\"), any_chat, any_chat.id, self.confirmDialog);\n if (self.eventsService) {\n self.eventsService.setIsWorking(false);\n }\n } else {\n if (self.set) {\n self.set(\"isWorking\", false);\n }\n self.router.transitionTo(\"classroom.live\");\n self.confirmDialog.show({\n subtitle: \"Events successfully scheduled. It may be a minute or two before you see them.\"\n });\n if (self.eventsService) {\n self.eventsService.setIsWorking(false);\n }\n }\n },\n error: function error(jqXHR, textStatus) {\n self.confirmDialog.show({\n subtitle: \"Failed to schedule event. Please retry.\"\n });\n if (self.eventsService) {\n self.eventsService.setIsWorking(false);\n //debug wip\n } else if (self.set) {\n self.set(\"isWorking\", false);\n }\n }\n });\n }\n});","define(\"bocce/controllers/classroom/live/event-quick-new\", [\"exports\", \"bocce/controllers/classroom/live/event-new\", \"@ember/array/proxy\", \"@ember/array\"], function (_exports, _eventNew, _proxy, _array) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/controllers/classroom/live/event-new\",0,\"@ember/array/proxy\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _eventNew.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n var baseEventDate = moment().tz(\"America/New_York\");\n this.eventsModel = _proxy.default.create({\n content: (0, _array.A)([{\n bodyInput: \"\",\n titleInput: \"Live Class\",\n startDate: baseEventDate,\n startDate_date: baseEventDate.format(\"YYYY-MM-DD\"),\n startDate_time: baseEventDate.format(\"HH:mm\"),\n additionalSectionsCourseIds: _proxy.default.create({\n content: (0, _array.A)([])\n }),\n shown: true\n }])\n });\n },\n isWorking: false,\n // saveEvents without invalid time check, since the time is now\n saveEvents: function saveEvents() {\n var section = this.session.get(\"section\");\n var course = section.get(\"course\");\n var courseId = course.get(\"id\"),\n eventData = [];\n this.eventsModel.forEach(function (em, index) {\n var start_time = moment().tz(\"America/New_York\");\n var eventDataSingle = {\n courseIds: [],\n event: {}\n };\n\n // Force the value of the time input to avoid DST conversion\n start_time = \"\".concat(start_time.format(\"YYYY-MM-DD\"), \"T\").concat(start_time.format(\"HH:mm\"), \":00\");\n var start_time_moment = moment(start_time),\n end_time_moment = moment(start_time).add(\"1\", \"hours\");\n var startTimeMomentFormatted = start_time_moment.format(\"YYYY-MM-DDTHH:mm:ss\");\n eventDataSingle.event = {\n title: \"Live Class\",\n description: \"\",\n futureEvent: true,\n startAt: startTimeMomentFormatted,\n endAt: end_time_moment.format(\"YYYY-MM-DDTHH:mm:ss\")\n };\n eventDataSingle.courseIds.push(courseId);\n em.additionalSectionsCourseIds.forEach(function (additionalSectionCourseId) {\n eventDataSingle.courseIds.push(additionalSectionCourseId);\n });\n eventData.push(eventDataSingle);\n });\n this.set(\"isWorking\", true);\n _eventNew.sendEventsToInterfaceAndSendEmail.call(this, eventData, true);\n }\n });\n});","define(\"bocce/controllers/classroom/live/event\", [\"exports\", \"@ember/debug\", \"bocce/config/environment\", \"@ember/controller\", \"bocce/mixins/enmodal\", \"bocce/mixins/editable\", \"bocce/utilities/webex\", \"bocce/utilities/rsvp\", \"bocce/mixins/nested-resources\", \"@ember/runloop\", \"@ember/service\", \"sanitize-html\", \"@ember/object\", \"jquery\"], function (_exports, _debug, _environment, _controller, _enmodal, _editable, _webex, _rsvp, _nestedResources, _runloop, _service, _sanitizeHtml, _object, _jquery) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"bocce/config/environment\",0,\"@ember/controller\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/editable\",0,\"bocce/utilities/webex\",0,\"bocce/utilities/rsvp\",0,\"bocce/mixins/nested-resources\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"sanitize-html\",0,\"@ember/object\",0,\"jquery\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } // app/controllers/event.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-observers */\n function sanitize(string) {\n var sanitizeHtmlOptions = {\n // options for the sanitize-html package. see docs:\n // https://www.npmjs.com/package/sanitize-html#htmlparser2-options\n allowedTags: _sanitizeHtml.default.defaults.allowedTags.concat([\"h2\", \"u\"]),\n transformTags: {\n h1: \"h2\",\n // Word's header is h1, but our header is h2\n a: function a(tagName, attribs) {\n // filter out useless links because apparently the geniuses\n // at Microsoft decided to start including THOSE now\n if (!attribs[\"href\"] || attribs[\"href\"] === \"\") {\n return false;\n } else {\n return {\n tagName: tagName,\n attribs: {\n href: attribs.href\n }\n };\n }\n }\n }\n };\n return (0, _sanitizeHtml.default)(string, sanitizeHtmlOptions);\n }\n var _default = _exports.default = _controller.default.extend(_enmodal.default, _editable.default, _nestedResources.default, {\n classroom: (0, _controller.inject)(),\n eventsService: (0, _service.inject)(\"events\"),\n session: (0, _service.inject)(),\n router: (0, _service.inject)(),\n store: (0, _service.inject)(),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n discussions: (0, _controller.inject)(),\n events: (0, _controller.inject)(),\n newStudentEvent: (0, _controller.inject)(\"classroom.student-event-new\"),\n init: function init() {\n this._super.apply(this, arguments);\n },\n // Webex utility actions\n startChat: (0, _object.action)(function (meeting_details, meeting_id) {\n var _webexStartChat,\n _this = this;\n if (!this.session.get(\"course.isOpen\")) {\n this.confirmDialog.show({\n subtitle: \"Live classes cannot be started before the course opens.\"\n });\n return;\n }\n this.eventsService.setIsWorking(true);\n (_webexStartChat = (0, _webex.startChat)(this.session.get(\"section.id\"), meeting_details, meeting_id, this.confirmDialog)) === null || _webexStartChat === void 0 || _webexStartChat.finally(function () {\n return _this.eventsService.setIsWorking(false);\n });\n }),\n recordParticipation: (0, _object.action)(function (meetingKeys) {\n (0, _webex.recordParticipation)(this.session, meetingKeys);\n }),\n joinChat: (0, _object.action)(function () {\n var _webexJoinChat,\n _this2 = this;\n this.eventsService.setIsWorking(true);\n (_webexJoinChat = (0, _webex.joinChat)(this.session, this.router, this.confirmDialog)) === null || _webexJoinChat === void 0 || _webexJoinChat.finally(function () {\n return _this2.eventsService.setIsWorking(false);\n });\n }),\n rejoinChatAsHost: (0, _object.action)(function (meeting_details, meeting_id) {\n var _webexRejoinChatAsHos,\n _this3 = this;\n this.eventsService.setIsWorking(true);\n (_webexRejoinChatAsHos = (0, _webex.rejoinChatAsHost)(this.session.get(\"section.id\"), meeting_details, meeting_id, this.confirmDialog)) === null || _webexRejoinChatAsHos === void 0 || _webexRejoinChatAsHos.finally(function () {\n return _this3.eventsService.setIsWorking(false);\n });\n }),\n watchChatUrl: (0, _object.action)(function (value) {\n (0, _webex.watchChatUrl)(value);\n }),\n watchChatUrlWithEvent: (0, _object.action)(function (event) {\n (0, _webex.watchChatUrlWithEvent)(event);\n }),\n queryParams: [\"start_chat\", \"join_chat\", \"backup_code\"],\n start_chat: false,\n join_chat: false,\n backup_code: false,\n hasOtherSectionChats: false,\n multiChatConnectionStatus: \"\",\n waitingForOtherSectionChats: true,\n sendCancelNotification: false,\n cancelRepeating: false,\n cancelAllSections: false,\n cancelEventConfirmedVisible: false,\n commentInput: \"\",\n editingResponseId: null,\n isSavingComment: false,\n editingEvent: false,\n // Override EditableMixin's setRteService: clear the comment RTE on mount\n // if we're not in edit mode and commentInput is empty, so switching events\n // never leaves stale description content in the comment box.\n setRteService: (0, _object.action)(function (editor) {\n this.rteService = editor;\n if (!this.editingEvent && !this.commentInput) {\n editor.clear();\n }\n }),\n // Override EditableMixin's setBodyInput: route updates to commentInput\n // when not in edit mode, so the comment RTE writes to the right property.\n setBodyInput: (0, _object.action)(function (value) {\n if (this.editingEvent) {\n this.dontUpdateRte = true;\n (0, _runloop.scheduleOnce)(\"actions\", this, \"set\", \"bodyInput\", value);\n } else {\n this.set(\"commentInput\", value);\n }\n }),\n // Dedicated controller proxy for the description edit RTE so it never\n // conflicts with the comment RTE that is always mounted on the page.\n get descriptionRteController() {\n var self = this;\n return {\n setBodyInput: function setBodyInput(value) {\n self.dontUpdateRte = true;\n (0, _runloop.scheduleOnce)(\"actions\", self, \"set\", \"bodyInput\", value);\n },\n setRteService: function setRteService(editor) {\n self.descriptionRteService = editor;\n },\n get localDocs() {\n return self.localDocs;\n },\n deleteArchivedText: function deleteArchivedText() {\n return self.deleteArchivedText.apply(self, arguments);\n }\n };\n },\n editingTitle: (0, _object.computed)(\"editingEvent\", \"model.privateLessonStudentId\", function () {\n return this.editingEvent && !this.model.privateLessonStudentId;\n }),\n canEditEvent: (0, _object.computed)(\"past\", \"model.privateLessonStudentId\", \"session.isInstructor\", \"session.isAdmin\", function () {\n var notPastPrivateLesson = !(this.past && this.model.privateLessonStudentId);\n return notPastPrivateLesson && (this.session.isInstructor || this.session.isAdmin);\n }),\n canShowEditButton: (0, _object.computed)(\"canEditEvent\", \"session.runningChatMeetingKey\", \"cancelEventConfirmedVisible\", function () {\n return this.canEditEvent && !this.session.runningChatMeetingKey && !this.cancelEventConfirmedVisible;\n }),\n canCancelEvent: (0, _object.computed)(\"canEditEvent\", \"isCurrentMeeting\", \"session.runningChatMeetingKey\", \"archived\", function () {\n return this.canEditEvent && !this.isCurrentMeeting && !!this.session.runningChatMeetingKey && !this.archived;\n }),\n canStartAsHost: (0, _object.computed)(\"session.isInstructor\", \"session.hasZoomId\", \"runnable\", function () {\n return this.session.isInstructor && this.session.hasZoomId && this.runnable;\n }),\n hostButtonDisabled: (0, _object.computed)(\"runnable\", \"editingEvent\", function () {\n return !this.runnable || this.editingEvent;\n }),\n isCurrentMeeting: (0, _object.computed)(\"session.runningChatMeetingKey\", \"model.meeting_key\", function () {\n return !!this.session.runningChatMeetingKey && this.session.runningChatMeetingKey === this.model.meeting_key;\n }),\n showRsvp: (0, _object.computed)(\"session.isInstructor\", \"future\", \"isCurrentMeeting\", \"model.privateLessonStudentId\", \"session.user.acsUserId\", function () {\n if (!this.session.isInstructor && this.future && !this.isCurrentMeeting) {\n if (this.model.privateLessonStudentId) {\n return this.session.user.acsUserId === this.model.privateLessonStudentId;\n }\n return true;\n }\n return false;\n }),\n showPrivateLessonRsvpCount: (0, _object.computed)(\"model.privateLessonStudentId\", \"session.isInstructor\", \"session.user.acsUserId\", function () {\n if (!this.model.privateLessonStudentId) return false;\n return this.session.isInstructor || this.session.user.acsUserId === this.model.privateLessonStudentId;\n }),\n showZoomInviteLink: (0, _object.computed)(\"session.isInstructor\", \"model.meeting_key\", \"archived\", \"session.course.isOpen\", function () {\n return this.session.isInstructor && this.model.meeting_key && !this.archived && this.session.course.isOpen;\n }),\n showRecurringChats: (0, _object.computed)(\"otherRecurringChats\", \"hasRecurringChats\", \"model.privateLessonStudentId\", function () {\n return this.otherRecurringChats && this.hasRecurringChats && !this.model.privateLessonStudentId;\n }),\n canStartChat: (0, _object.computed)(\"model.currentUserIsOwner\", \"session.{hasZoomId,runningChatMeetingKey}\", \"archived\", function () {\n return this.model.currentUserIsOwner && this.session.hasZoomId && !this.session.runningChatMeetingKey && !this.archived;\n }),\n notifyStudents: true,\n tempEventStartAt: \"\" /**initialized in setupController */,\n tempEventTitle: \"\" /**initialized in setupController */,\n optionalEmailNote: \"\",\n isEventSaving: false,\n description: (0, _object.computed)(\"model.description\", function () {\n /* eslint-disable-next-line ember/no-get */\n var desc = this.get(\"model.description\");\n if (desc && desc.indexOf(\"The instructor has started a live class!\") === 0) {\n return \"\";\n }\n return desc;\n }),\n eventNotUpdated: (0, _object.computed)(\"tempEventStartAt\", \"tempEventTitle\", \"bodyInput\", function () {\n var tempStartAt = this.get(\"tempEventStartAt\");\n var tempEventTitle = this.get(\"tempEventTitle\");\n var bodyInput = this.get(\"bodyInput\");\n return tempStartAt == this.model.get(\"startAt\") && tempEventTitle == this.model.get(\"title\") && bodyInput == this.model.get(\"description\");\n }),\n currentUserRsvp: (0, _object.computed)(\"model.reservations\", \"session.user.id\", function () {\n var _reservations$find,\n _this4 = this;\n var reservations = this.model.reservations;\n if (!Array.isArray(reservations)) return null;\n return (_reservations$find = reservations.find(function (r) {\n return String(r.user_id) === String(_this4.session.user.id);\n })) !== null && _reservations$find !== void 0 ? _reservations$find : null;\n }),\n reservationCount: (0, _object.computed)(\"model.reservationCount\", function () {\n var _this$model$reservati;\n return (_this$model$reservati = this.model.reservationCount) !== null && _this$model$reservati !== void 0 ? _this$model$reservati : 0;\n }),\n rsvpIsYes: (0, _object.computed)(\"currentUserRsvp\", function () {\n var _this$currentUserRsvp;\n return ((_this$currentUserRsvp = this.currentUserRsvp) === null || _this$currentUserRsvp === void 0 ? void 0 : _this$currentUserRsvp.willAttend) === true;\n }),\n rsvpIsNo: (0, _object.computed)(\"currentUserRsvp\", function () {\n var _this$currentUserRsvp2;\n return ((_this$currentUserRsvp2 = this.currentUserRsvp) === null || _this$currentUserRsvp2 === void 0 ? void 0 : _this$currentUserRsvp2.willAttend) === false;\n }),\n future: (0, _object.computed)(\"model.startAt\", \"session.time\", function () {\n /* eslint-disable-next-line ember/no-get */\n return moment() < moment(this.get(\"model.startAt\"));\n }),\n past: (0, _object.computed)(\"model.startAt\", function () {\n /* eslint-disable-next-line ember/no-get */\n return moment() >= moment(this.get(\"model.startAt\"));\n }),\n archived: (0, _object.computed)(\"model.endAt\", \"session.time\", function () {\n /* eslint-disable-next-line ember/no-get */\n return moment() > moment(this.get(\"model.endAt\"));\n }),\n // Hotfix\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n isMeetingSupposedToBeHappeningRightNow: (0, _object.computed)(\"model.startAt\", \"session.time\", function () {\n var now = moment();\n\n /* eslint-disable-next-line ember/no-get */\n return moment(this.get(\"model.startAt\")) <= now && /* eslint-disable-next-line ember/no-get */\n moment(this.get(\"model.endAt\")) >= now;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n runnable: (0, _object.computed)(\"model.startAt\", \"session.time\", function () {\n var now = moment();\n\n /* eslint-disable-next-line ember/no-get */\n return (\n // Allow for starting 30 minutes before\n moment(this.get(\"model.startAt\")) <= now + 30 * 60 * 1000 && /* eslint-disable-next-line ember/no-get */\n moment(this.get(\"model.endAt\")) >= now\n );\n }),\n userIsAdminOrStaff: (0, _object.computed)(\"session\", function () {\n return this.get(\"session.isAdmin\") || this.get(\"session.isStaff\") ? true : false;\n }),\n maxScheduleDate: (0, _object.computed)(\"session.course.term.endsOn\", function () {\n var endsOn = this.session.get(\"course.term.endsOn\");\n if (!endsOn || moment(endsOn).year() >= 9999) {\n return \"9999-12-31\";\n }\n return moment(endsOn).add(1, \"week\").format(\"YYYY-MM-DD\");\n }),\n minScheduleDate: (0, _object.computed)(\"session.course.startAt\", function () {\n var startAt = this.session.get(\"course.startAt\");\n return startAt ? moment(startAt).subtract(1, \"week\").format(\"YYYY-MM-DD\") : \"\";\n }),\n resetTempEventDetails: function resetTempEventDetails() {\n this.set(\"bodyInput\", this.model.get(\"description\"));\n this.set(\"tempEventTitle\", this.model.get(\"title\"));\n this.set(\"tempEventStartAt\", this.model.get(\"startAt\"));\n },\n // NK: Ideally this would be a computed property, but the current\n // implementation introduces side effects, which is a no-no for\n // computed properties. Rewriting this as an observer for now, but\n // at some point when there's time (hah) this should be refactored to\n // use computed properties, so Ember is happy, which will make us all\n // happy by proxy.\n /* eslint-disable-next-line ember/no-observers */\n otherSectionChatsObserver: (0, _object.observer)(\"model\", function () {\n var _this5 = this;\n this.set(\"waitingForOtherSectionChats\", true);\n this.set(\"otherSectionChats\", this.eventsService.getOtherSectionChats(this.classroom.get(\"userSectionCodes\"), this.get(\"model.title\"), this.get(\"model.startAt\")).then(function (events) {\n _this5.set(\"hasOtherSectionChats\", events.length > 0 ? true : false);\n _this5.set(\"otherSectionChatsData\", events || []);\n _this5.set(\"waitingForOtherSectionChats\", false);\n\n // Start/Joint the chat if the corresponding query param is set\n if (_this5.get(\"start_chat\")) {\n _this5.send(\"startChat\");\n } else if (_this5.get(\"join_chat\")) {\n _this5.send(\"joinChat\", _this5.get(\"join_chat\"));\n }\n return Promise.resolve(events || []);\n }));\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n otherRecurringChats: (0, _object.computed)(\"model\", function () {\n var _this6 = this;\n var otherRecurringChats = this.store.peekAll(\"event\").filter(function (event) {\n // Compare titles, and the starting hours and minutes of the livechats.\n /* eslint-disable-next-line ember/no-get */\n var currentEventStartAt = moment(_this6.get(\"model.startAt\")),\n filteredEventStartAt = moment(event.get(\"startAt\")),\n /* eslint-disable-next-line ember/no-get */\n titlesMatch = event.get(\"title\") === _this6.get(\"model.title\"),\n timesMatch = currentEventStartAt.hours() === filteredEventStartAt.hours() && currentEventStartAt.minutes() === filteredEventStartAt.minutes(),\n /* eslint-disable-next-line ember/no-get */\n isSameEvent = event.get(\"id\") === _this6.get(\"model.id\");\n return titlesMatch && timesMatch && !isSameEvent;\n });\n return otherRecurringChats || [];\n }),\n editorHasContent: (0, _object.computed)(\"eventNotUpdated\", \"editingEvent\", \"commentInput\", function () {\n return this.editingEvent && !this.eventNotUpdated || !!this.commentInput;\n }),\n hasRecurringChats: (0, _object.computed)(\"otherRecurringChats\", function () {\n var otherRecurringChats = this.otherRecurringChats;\n return otherRecurringChats.length > 0;\n }),\n sendEmail: function sendEmail(event, subject, startAt, templateId) {\n var _this7 = this;\n return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n var teachers, instructors, dynamicTemplateData, studentEmails, students, student, self;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n _context.n = 1;\n return _this7.get(\"session.section.teachers\");\n case 1:\n teachers = _context.v;\n instructors = teachers.map(function (t) {\n return {\n name: t.name,\n image_url: t.image_url\n };\n }); //Used by SendGrid to fill in e-mail placeholders.\n dynamicTemplateData = {\n changed: true,\n courseTitle: event.courseTitle,\n instructors: instructors,\n note: _this7.optionalEmailNote,\n subject: subject,\n event: {\n title: {\n value: event.title,\n changed: !!_this7.titleChanged\n },\n startAt: {\n value: startAt,\n changed: !!_this7.startAtChanged\n },\n description: {\n value: event.description,\n changed: !!_this7.descriptionChanged\n },\n // TODO: Change this after we switch over competely to new bocce\n link: \"\".concat(window.location.origin, \"/#/\").concat(event.courseId, \"/\").concat(_this7.session.get(\"section.name\"), \"/\").concat(_this7.session.get(\"section.id\"), \"/0/course-introduction/event/\").concat(event.id)\n }\n };\n studentEmails = [];\n if (_this7.model.privateLessonStudentId) {\n students = _this7.get(\"session.section.students\");\n student = students.findBy(\"user.acsUserId\", _this7.model.privateLessonStudentId);\n if (student) {\n studentEmails.push(student.get(\"user.email\"));\n }\n } else {\n studentEmails = event.studentEmails;\n }\n console.log(\"sending e-mail to: \" + studentEmails);\n self = _this7;\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/email\",\n data: JSON.stringify({\n to: studentEmails,\n from_name: dynamicTemplateData.courseTitle,\n subject: subject,\n templateId: templateId,\n dynamicTemplateData: dynamicTemplateData\n }),\n success: function success() {\n console.log(\"email success!\");\n },\n error: function error(jqXHR, textStatus) {\n var _this8 = this;\n self.confirmDialog.show({\n subtitle: \"Notification e-mail failed to send. Try again?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n _this8.sendEmail.call(self, event, subject, startAt, templateId);\n }\n });\n }\n });\n case 2:\n return _context.a(2);\n }\n }, _callee);\n }))();\n },\n copyToClipboard: (0, _object.action)(function () {\n for (var _len = arguments.length, text = new Array(_len), _key = 0; _key < _len; _key++) {\n text[_key] = arguments[_key];\n }\n text.pop(); // Last element is the JS event. Remove it\n text = text.join(\"\");\n navigator.clipboard.writeText(text);\n }),\n editEvent: (0, _object.action)(function () {\n this.set(\"bodyInput\", this.model.get(\"description\"));\n this.set(\"tempEventTitle\", this.model.get(\"title\"));\n this.set(\"tempEventStartAt\", this.model.get(\"startAt\"));\n this.set(\"editingEvent\", true);\n }),\n cancelEditEventDescription: (0, _object.action)(function () {\n this.set(\"bodyInput\", \"\");\n this.set(\"tempEventTitle\", this.model.get(\"title\"));\n this.set(\"tempEventStartAt\", this.model.get(\"startAt\"));\n this.set(\"editingEvent\", false);\n }),\n updateTempDate: (0, _object.action)(function (e) {\n var formattedDateToSave = e.target.value ? moment.tz(e.target.value, \"America/New_York\").utc().format(\"YYYY-MM-DDTHH:mm:ss\") + \"Z\" : \"\";\n this.set(\"tempEventStartAt\", formattedDateToSave);\n }),\n updateTempDateOnly: (0, _object.action)(function (e) {\n var currentTime = this.tempEventStartAt ? moment.utc(this.tempEventStartAt).tz(\"America/New_York\").format(\"HH:mm\") : moment(this.model.startAt).tz(\"America/New_York\").format(\"HH:mm\");\n var newVal = e.target.value ? e.target.value + \"T\" + currentTime : \"\";\n var formatted = newVal ? moment.tz(newVal, \"America/New_York\").utc().format(\"YYYY-MM-DDTHH:mm:ss\") + \"Z\" : \"\";\n this.set(\"tempEventStartAt\", formatted);\n }),\n updateTempTimeOnly: (0, _object.action)(function (e) {\n var currentDate = this.tempEventStartAt ? moment.utc(this.tempEventStartAt).tz(\"America/New_York\").format(\"YYYY-MM-DD\") : moment(this.model.startAt).tz(\"America/New_York\").format(\"YYYY-MM-DD\");\n var newVal = e.target.value ? currentDate + \"T\" + e.target.value : \"\";\n var formatted = newVal ? moment.tz(newVal, \"America/New_York\").utc().format(\"YYYY-MM-DDTHH:mm:ss\") + \"Z\" : \"\";\n this.set(\"tempEventStartAt\", formatted);\n }),\n updateTempTitle: (0, _object.action)(function (e) {\n this.set(\"tempEventTitle\", e.target.value);\n }),\n saveEvent: (0, _object.action)(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var _this9 = this;\n var thisEvent, newDescription, promises, newTitle, now, newStartAt, newEndAt, updatedEvents, otherChatsData, _iterator, _step, otherSectionChatData, _section, course, sections, section, sectionId, studentEmails, _t;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.p = _context2.n) {\n case 0:\n this.set(\"isEventSaving\", true);\n thisEvent = this.model, newDescription = this.parseEmbed(this.bodyInput), promises = [], newTitle = this.get(\"tempEventTitle\"), now = moment().tz(\"America/New_York\"), newStartAt = this.get(\"tempEventStartAt\");\n if (!(!this.model.privateLessonStudentId && !newDescription)) {\n _context2.n = 1;\n break;\n }\n this.confirmDialog.show({\n subtitle: \"Description must not be blank.\"\n });\n this.set(\"isEventSaving\", false);\n return _context2.a(2);\n case 1:\n if (!(!this.model.privateLessonStudentId && !newTitle)) {\n _context2.n = 2;\n break;\n }\n this.confirmDialog.show({\n subtitle: \"Title must not be blank.\"\n });\n this.set(\"isEventSaving\", false);\n return _context2.a(2);\n case 2:\n if (this.model.privateLessonStudentId && !newTitle.endsWith(_environment.default.APP.text.eventRescheduledPostfix)) {\n newTitle = newTitle + _environment.default.APP.text.eventRescheduledPostfix;\n }\n if (!(!moment(this.get(\"model.startAt\")).isSame(moment(newStartAt)) && moment(newStartAt).unix() < moment(now).unix())) {\n _context2.n = 3;\n break;\n }\n this.confirmDialog.show({\n subtitle: \"You cannot schedule a live class in the past.\"\n });\n this.set(\"isEventSaving\", false);\n return _context2.a(2);\n case 3:\n if (!(moment(newStartAt).unix() < moment(this.session.get(\"course.startAt\")).unix())) {\n _context2.n = 4;\n break;\n }\n this.confirmDialog.show({\n subtitle: \"Live classes cannot start before the course opens.\"\n });\n this.set(\"isEventSaving\", false);\n return _context2.a(2);\n case 4:\n newEndAt = moment(newStartAt).add(\"1\", \"hours\").utc().format(\"YYYY-MM-DDTHH:mm:ss\") + \"Z\";\n updatedEvents = [];\n if (!this.hasOtherSectionChats) {\n _context2.n = 13;\n break;\n }\n otherChatsData = this.otherSectionChatsData.map(function (chatData) {\n //update the description\n chatData.description = newDescription;\n chatData.title = newTitle;\n chatData.startAt = newStartAt;\n chatData.endAt = newEndAt;\n // wrap the chat data in an object ready for the request\n return {\n event: chatData\n };\n });\n _iterator = _createForOfIteratorHelper(this.otherSectionChatsData);\n _context2.p = 5;\n _iterator.s();\n case 6:\n if ((_step = _iterator.n()).done) {\n _context2.n = 9;\n break;\n }\n otherSectionChatData = _step.value;\n _context2.n = 7;\n return this.store.findRecord(\"section\", otherSectionChatData.sectionId);\n case 7:\n _section = _context2.v;\n updatedEvents.push({\n id: otherSectionChatData.id,\n description: otherSectionChatData.description,\n title: otherSectionChatData.title,\n courseId: otherSectionChatData.course,\n courseCode: otherSectionChatData.code,\n courseTitle: otherSectionChatData.courseTitle,\n sectionId: otherSectionChatData.sectionId,\n studentEmails: _section.get(\"studentEmails\")\n });\n case 8:\n _context2.n = 6;\n break;\n case 9:\n _context2.n = 11;\n break;\n case 10:\n _context2.p = 10;\n _t = _context2.v;\n _iterator.e(_t);\n case 11:\n _context2.p = 11;\n _iterator.f();\n return _context2.f(11);\n case 12:\n promises.push(this.updateNestedResources([\"event\", \"events\"], otherChatsData, [\"course\", \"courses\"]).then(function () {\n (0, _debug.debug)(\"Successfully updated event in other courses\");\n }));\n case 13:\n this.startAtChanged = false;\n this.titleChanged = false;\n this.descriptionChanged = false;\n if (this.get(\"tempEventStartAt\") != thisEvent.get(\"startAt\")) {\n this.startAtChanged = true;\n }\n if (this.get(\"tempEventTitle\") != thisEvent.get(\"title\")) {\n this.titleChanged = true;\n }\n if (sanitize(this.get(\"bodyInput\")) != sanitize(thisEvent.get(\"description\"))) {\n this.descriptionChanged = true;\n }\n thisEvent.set(\"description\", newDescription);\n thisEvent.set(\"title\", newTitle);\n thisEvent.set(\"startAt\", newStartAt);\n thisEvent.set(\"endAt\", newEndAt);\n _context2.n = 14;\n return thisEvent.get(\"course\");\n case 14:\n course = _context2.v;\n _context2.n = 15;\n return course.get(\"sections\");\n case 15:\n sections = _context2.v;\n section = sections.at(0);\n sectionId = section.get(\"id\");\n studentEmails = section.get(\"studentEmails\");\n promises.push(thisEvent.save());\n updatedEvents.push({\n id: thisEvent.get(\"id\"),\n title: thisEvent.get(\"title\"),\n description: thisEvent.get(\"description\"),\n courseId: course.get(\"id\"),\n courseCode: course.get(\"code\"),\n courseTitle: course.get(\"title\"),\n sectionId: sectionId,\n studentEmails: studentEmails\n });\n Promise.all(promises).then(function () {\n _this9.set(\"editingEvent\", false);\n if (_this9.notifyStudents && !_this9.archived && course.get(\"isOpen\")) {\n var startAt = _this9.model.get(\"formattedStartTime\");\n updatedEvents.forEach(function (event) {\n var subject = \"Updated Live Class\".concat(_this9.optionalEmailNote ? \" with note\" : \"\", \": \").concat(event.title, \" @ \").concat(startAt);\n _this9.sendEmail.call(_this9, event, subject, startAt, _environment.default.APP.email.templates.single_live_class_generic_id);\n });\n }\n _this9.set(\"isEventSaving\", false);\n }).catch(function () {\n _this9.set(\"isEventSaving\", false);\n _this9.confirmDialog.show({\n subtitle: \"There was a problem updating the live class. Please try again later.\"\n });\n if (_this9.model.privateLessonStudentId && newTitle.endsWith(_environment.default.APP.text.eventRescheduledPostfix)) {\n newTitle = newTitle.replace(_environment.default.APP.text.eventRescheduledPostfix, \"\");\n thisEvent.set(\"title\", newTitle);\n }\n });\n case 16:\n return _context2.a(2);\n }\n }, _callee2, this, [[5, 10, 11, 12]]);\n }))),\n cancelEvent: (0, _object.action)(function () {\n this.set(\"cancelEventConfirmedVisible\", true);\n this.set(\"editingEvent\", false);\n }),\n abortCancelEvent: (0, _object.action)(function () {\n this.set(\"cancelEventConfirmedVisible\", false);\n }),\n scrollToConfirmButton: (0, _object.action)(function (element) {\n element.scrollIntoView({\n behavior: \"smooth\",\n block: \"center\"\n });\n }),\n cancelEventConfirmed: (0, _object.action)(function (event_id) {\n // Cancel the event\n // If needed, generate and send out an announcement.\n // If needed, cancel subsequent events in the series\n // If needed, cancel other sections' chats (and other sections' repeating chats)\n var otherRecurringChats = this.otherRecurringChats,\n that = this;\n this.store.findRecord(\"event\", event_id).then(function (eventObject) {\n var _this0 = this;\n var announcementData = {},\n announcement = {},\n sendCancelNotification = that.get(\"sendCancelNotification\"),\n cancelRepeating = that.get(\"cancelRepeating\"),\n cancelAllSections = that.get(\"cancelAllSections\"),\n currentEventStartAt = moment(eventObject.get(\"startAt\"));\n\n // start generating announcement if checked (don't send it yet)\n if (sendCancelNotification) {\n if (cancelRepeating && that.get(\"otherRecurringChats\").length > 0) {\n announcementData.title = \"Live classes have been cancelled\";\n announcementData.message = \"Several live classes titled '\" + eventObject.get(\"title\") + \"' have been cancelled.

    \";\n announcementData.message += \"The cancelled live classes were scheduled for:

    \" + currentEventStartAt.format(\"MMM, D YYYY h:mm A z\") + \"
    \";\n announcementData.is_announcement = true;\n } else {\n announcementData = {\n message: \"A live class titled '\" + eventObject.get(\"title\") + \"' occuring at \" + currentEventStartAt.format(\"MMM, D YYYY h:mm A z\") + \" has been cancelled.\",\n title: \"Live Class Cancelled\",\n is_announcement: true\n };\n }\n }\n\n // delete repeating chats if checked\n if (cancelRepeating) {\n for (var i = 0; i < otherRecurringChats.length; i++) {\n var recurringEvent = otherRecurringChats[i],\n recurringEventStartAt = moment(recurringEvent.get(\"startAt\"));\n if (currentEventStartAt < recurringEventStartAt) {\n announcementData.message += recurringEventStartAt.format(\"MMM, D YYYY h:mm A z\") + \"
    \";\n recurringEvent.destroyRecord();\n }\n }\n }\n\n // delete the other section chats if checked\n if (cancelAllSections) {\n var eventsToDelete = [],\n promises = [];\n\n // add the other sections' versions of the current event to the kill list\n for (var _i = 0; _i < that.otherSectionChatsData.length; _i++) {\n eventsToDelete.push({\n course: that.otherSectionChatsData[_i].course,\n event: that.otherSectionChatsData[_i].id\n });\n }\n\n // if recurring, get the other sections' subsequent events\n if (cancelRepeating && otherRecurringChats.length > 0) {\n var _currentEventStartAt = moment(that.get(\"model.startAt\")),\n currentEventTitle = that.get(\"model.title\");\n that.otherSectionChatsData.forEach(function (otherSectionChat) {\n // iterate through each other section where the chat occurs and add the recurring events to the list.\n var courseId = otherSectionChat.course,\n currentEventId = otherSectionChat.id;\n /* eslint-disable-next-line ember/no-jquery */\n promises.push(_jquery.default.get(\"/interface/courses/\".concat(courseId, \"/events\")).then((0, _runloop.bind)(function (results) {\n // For each event in the other section, check if it's an instance of the repeating event.\n var otherSectionChats = results.event,\n filteredOtherSectionChats = [];\n if (otherSectionChats) {\n filteredOtherSectionChats = otherSectionChats.filter(function (otherSectionChat) {\n var filteredEventStartAt = moment(otherSectionChat.startAt),\n titlesMatch = otherSectionChat.title === currentEventTitle,\n timesMatch = _currentEventStartAt.hours() === filteredEventStartAt.hours() && _currentEventStartAt.minutes() === filteredEventStartAt.minutes(),\n isSameEvent = otherSectionChat.id === currentEventId;\n return titlesMatch && timesMatch && !isSameEvent;\n });\n }\n\n // add the filtered events to the to-delete list.\n filteredOtherSectionChats.forEach(function (otherChat) {\n eventsToDelete.push({\n course: otherChat.course,\n event: otherChat.id\n });\n });\n })));\n });\n }\n\n // Once all other sections' event data is collected, delete all the other events.\n Promise.all(promises).then(function () {\n eventsToDelete.forEach(function (event) {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"DELETE\",\n url: \"/interface/courses/\".concat(event.course, \"/events/\").concat(event.event),\n success: function success() {\n (0, _debug.debug)(\"Deleted event \".concat(event.event, \" in course \").concat(event.course));\n },\n error: function error(jqXHR, textStatus, errorThrown) {\n (0, _debug.debug)(\"Failed to delete event \".concat(event.event, \" in course \").concat(event.course, \", error: \").concat(errorThrown));\n _this0.confirmDialog.show({\n subtitle: \"There was a problem cancelling the live class in the other sections. Please cancel them manually.\"\n });\n }\n });\n });\n });\n }\n\n // send out the announcment if checked\n if (sendCancelNotification) {\n announcement = that.store.createRecord(\"discussion\", announcementData);\n announcement.save();\n\n // send the announcement to the other sections if we're deleting it for them too\n if (cancelAllSections) {\n announcementData = {\n discussion: announcementData\n };\n for (var _i2 = 0; _i2 < that.otherSectionChatsData.length; _i2++) {\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/sections/\" + that.otherSectionChatsData[_i2].sectionId + \"/discussions\",\n data: JSON.stringify(announcementData),\n dataType: \"json\",\n contentType: \"application/json\"\n });\n }\n }\n }\n\n // FINISH HIM\n eventObject.destroyRecord();\n });\n this.set(\"cancelEventConfirmedVisible\", false);\n this.router.transitionTo(\"classroom.live\");\n }),\n destroyEditor: (0, _object.action)(function () {\n // this gets called from the 'closeModals' function in app/mixins/enmodal.js\n this._super();\n this.set(\"cancelEventConfirmedVisible\", false);\n this.set(\"editingEvent\", false);\n }),\n toggleRsvp: (0, _object.action)(/*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(willAttend) {\n var _event$reservations, event, result, _t2;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.p = _context3.n) {\n case 0:\n _context3.p = 0;\n event = this.model;\n _context3.n = 1;\n return (0, _rsvp.toggleRsvp)(this.model.course.id, event.id, this.session.user.id, (_event$reservations = event.reservations) !== null && _event$reservations !== void 0 ? _event$reservations : [], willAttend);\n case 1:\n result = _context3.v;\n if (result) {\n event.reservations = result.reservations;\n event.reservationCount = result.reservationCount;\n }\n _context3.n = 3;\n break;\n case 2:\n _context3.p = 2;\n _t2 = _context3.v;\n this.confirmDialog.show({\n subtitle: \"Error toggling RSVP: \".concat(_t2.message)\n });\n case 3:\n return _context3.a(2);\n }\n }, _callee3, this, [[0, 2]]);\n }));\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }()),\n editEventResponse: (0, _object.action)(function (responseId) {\n var _this$rteService;\n var response = (this.model.responses || []).find(function (r) {\n return String(r.id) === String(responseId);\n });\n if (!response) {\n return;\n }\n this.set(\"editingResponseId\", responseId);\n this.set(\"commentInput\", response.response);\n (_this$rteService = this.rteService) === null || _this$rteService === void 0 || _this$rteService.replace(response.response);\n }),\n cancelEditResponse: (0, _object.action)(function () {\n var _this$rteService2;\n this.set(\"editingResponseId\", null);\n this.set(\"commentInput\", \"\");\n (_this$rteService2 = this.rteService) === null || _this$rteService2 === void 0 || _this$rteService2.clear();\n }),\n deleteEventResponse: (0, _object.action)(function (responseId) {\n var _this1 = this;\n this.confirmDialog.show({\n subtitle: \"Are you sure you wish to delete this comment? This action CANNOT be undone!\",\n choices: [\"Yes\", \"No\"]\n }).then(/*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(choice) {\n var event, eventId, response, _t3;\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.p = _context4.n) {\n case 0:\n if (!(choice.indexOf(\"Yes\") !== 0)) {\n _context4.n = 1;\n break;\n }\n return _context4.a(2);\n case 1:\n _context4.p = 1;\n event = _this1.model;\n eventId = event.id;\n _context4.n = 2;\n return fetch(\"/interface/courses/\".concat(_this1.model.course.id, \"/events/\").concat(eventId, \"/deleteEventResponse\"), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n response_id: responseId\n })\n });\n case 2:\n response = _context4.v;\n if (response.ok) {\n _context4.n = 3;\n break;\n }\n _this1.confirmDialog.show({\n subtitle: \"Unable to delete comment. Please try again.\"\n });\n return _context4.a(2);\n case 3:\n if (String(_this1.editingResponseId) === String(responseId)) {\n _this1.cancelEditResponse();\n }\n _context4.n = 4;\n return event.reload();\n case 4:\n _context4.n = 6;\n break;\n case 5:\n _context4.p = 5;\n _t3 = _context4.v;\n _this1.confirmDialog.show({\n subtitle: \"Unable to delete comment: \".concat(_t3.message)\n });\n case 6:\n return _context4.a(2);\n }\n }, _callee4, null, [[1, 5]]);\n }));\n return function (_x2) {\n return _ref3.apply(this, arguments);\n };\n }());\n }),\n postComment: (0, _object.action)(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {\n var message, trimmedMessage, editingResponseId, _this$rteService3, event, eventId, endpoint, body, response, _t4;\n return _regenerator().w(function (_context5) {\n while (1) switch (_context5.p = _context5.n) {\n case 0:\n message = this.commentInput; // let message = this.embedParser.parseEmbed(this.commentInput);\n // parse out everything but the text...\n trimmedMessage = message.replace(/<[^>]+>/g, \"\");\n if (!(trimmedMessage === \"\")) {\n _context5.n = 1;\n break;\n }\n return _context5.a(2);\n case 1:\n if (!(message.replace(/ /g, \" \").replace(//g, \"\").trim().length === 0)) {\n _context5.n = 2;\n break;\n }\n return _context5.a(2);\n case 2:\n message = message.replace(\"\", \"\");\n message = message.trim();\n\n // Add any video embeds\n // let videoEmbedString = this.attachmentManager.generateVideoEmbedString(this.files) || \"\";\n // message = message + videoEmbedString;\n editingResponseId = this.editingResponseId;\n this.set(\"isSavingComment\", true);\n _context5.p = 3;\n event = this.model;\n eventId = event.id;\n endpoint = editingResponseId ? \"updateEventResponse\" : \"createEventResponse\";\n body = editingResponseId ? {\n response_id: editingResponseId,\n response: message\n } : {\n event_id: eventId,\n is_top_level_response: true,\n response: message,\n response_parent: null\n };\n _context5.n = 4;\n return fetch(\"/interface/courses/\".concat(this.model.course.id, \"/events/\").concat(eventId, \"/\").concat(endpoint), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(body)\n });\n case 4:\n response = _context5.v;\n if (response.ok) {\n _context5.n = 5;\n break;\n }\n this.confirmDialog.show({\n subtitle: editingResponseId ? \"Unable to save changes. Please try again.\" : \"Unable to post comment. Please try again.\"\n });\n return _context5.a(2);\n case 5:\n this.set(\"editingResponseId\", null);\n this.set(\"commentInput\", \"\");\n (_this$rteService3 = this.rteService) === null || _this$rteService3 === void 0 || _this$rteService3.clear();\n _context5.n = 6;\n return event.reload();\n case 6:\n _context5.n = 8;\n break;\n case 7:\n _context5.p = 7;\n _t4 = _context5.v;\n this.confirmDialog.show({\n subtitle: editingResponseId ? \"Unable to save changes: \".concat(_t4.message) : \"Unable to post comment: \".concat(_t4.message)\n });\n case 8:\n _context5.p = 8;\n this.set(\"isSavingComment\", false);\n return _context5.f(8);\n case 9:\n return _context5.a(2);\n }\n }, _callee5, this, [[3, 7, 8, 9]]);\n })))\n });\n});","define(\"bocce/controllers/classroom/live/index\", [\"exports\", \"@ember/controller\", \"@ember/service\", \"@ember/object\", \"bocce/controllers/classroom/live/event-new\", \"bocce/utilities/webex\", \"moment\"], function (_exports, _controller, _service, _object, _eventNew, _webex, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"@ember/service\",0,\"@ember/controller\",0,\"@ember/object\",0,\"bocce/controllers/classroom/live/event-new\",0,\"bocce/utilities/webex\",0,\"moment\"eaimeta@70e063a35619d71f\n var _default = _exports.default = _controller.default.extend({\n session: (0, _service.inject)(),\n eventsService: (0, _service.inject)(\"events\"),\n confirmDialog: (0, _service.inject)(),\n classroom: (0, _controller.inject)(\"classroom\"),\n hasEvents: (0, _object.computed)(\"session.course.events.[]\", function () {\n var events = this.session.get(\"course.events\");\n return events && events.length > 0;\n }),\n isEventsLoaded: (0, _object.computed)(\"classroom.eventsLoaded\", function () {\n return this.classroom.get(\"eventsLoaded\");\n }),\n startLiveClassNow: (0, _object.action)(function () {\n if (!this.session.get(\"course.isOpen\")) {\n dialog(\"Live classes can be started when the course opens.\");\n return;\n }\n var now = (0, _moment.default)().tz(\"America/New_York\");\n this.eventsService.setIsWorking(true);\n var section = this.session.get(\"section\");\n var course = section.get(\"course\");\n var courseId = course.get(\"id\");\n var endTime = (0, _moment.default)(now).add(1, \"hours\");\n var eventData = [{\n courseIds: [courseId],\n event: {\n title: \"Live Class\",\n description: \"\",\n futureEvent: false,\n startAt: now.utc().format(\"YYYY-MM-DDTHH:mm:ss\") + \"Z\",\n endAt: endTime.utc().format(\"YYYY-MM-DDTHH:mm:ss\") + \"Z\"\n }\n }];\n _eventNew.sendEventsToInterfaceAndSendEmail.call(this, eventData, true);\n }),\n testChat: (0, _object.action)(function () {\n (0, _webex.testChat)(this.session.get(\"section.id\"), false, this.confirmDialog);\n })\n });\n});","define(\"bocce/controllers/classroom/no-submissions\", [\"exports\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"bocce/mixins/discussable\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _discussable, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"bocce/mixins/discussable\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n // app/controllers/assignmentView.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, _editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _discussable.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n classroom: (0, _controller.inject)(),\n // required by UploadableMixin and EnmodalMixin\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n assignments: (0, _object.computed)(function () {\n return this.store.findAll(\"assignment\");\n })\n });\n});","define(\"bocce/controllers/classroom/student-event-new\", [\"exports\", \"@ember/controller\", \"bocce/mixins/enmodal\"], function (_exports, _controller, _enmodal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/enmodal\"eaimeta@70e063a35619d71f\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, {\n titleInput: \"\"\n });\n});","define(\"bocce/controllers/classroom/submission-new\", [\"exports\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"@ember/object\", \"@ember/service\", \"@ember/debug\"], function (_exports, _controller, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _object, _service, _debug) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _enmodal.default, {\n init: function init() {\n this._super.apply(this, arguments);\n },\n userprofileService: (0, _service.inject)(\"userprofile\"),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n classroom: (0, _controller.inject)(),\n // required by UploadableMixin and EnmodalMixin\n addFile: (0, _object.action)(function (file) {\n var _this = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.pushObject(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this.encoding_videos.setObjects(_this.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n deleteAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n rubric: (0, _object.computed)(\"activeAssignment\", function () {\n return this.get(\"activeAssignment.rubric\");\n })\n });\n});","define(\"bocce/controllers/classroom/submission\", [\"exports\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"bocce/mixins/discussable\", \"@ember/object\", \"@ember/debug\", \"jquery\", \"@ember/service\"], function (_exports, _controller, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _discussable, _object, _debug, _jquery, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"bocce/mixins/discussable\",0,\"@ember/object\",0,\"@ember/debug\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } // app/controllers/assignmentView.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, _editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _discussable.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n rubricService: (0, _service.inject)(\"rubric\"),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n classroom: (0, _controller.inject)(),\n // required by UploadableMixin and EnmodalMixin\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n assignments: (0, _object.computed)(function () {\n return this.store.findAll(\"assignment\");\n }),\n isShowingAssignmentDetails: false,\n commentsHidden: false,\n showStudentList: false,\n get comments() {\n var _this$openAssignmentV;\n var comments = (_this$openAssignmentV = this.openAssignmentView) === null || _this$openAssignmentV === void 0 || (_this$openAssignmentV = _this$openAssignmentV.hasMany(\"comments\")) === null || _this$openAssignmentV === void 0 ? void 0 : _this$openAssignmentV.value();\n return comments || [];\n },\n toggleComments: (0, _object.action)(function () {\n this.set(\"commentsHidden\", !this.get(\"commentsHidden\"));\n }),\n toggleStudentList: (0, _object.action)(function () {\n this.set(\"showStudentList\", !this.get(\"showStudentList\"));\n }),\n closeStudentList: (0, _object.action)(function () {\n this.set(\"showStudentList\", false);\n }),\n bootContent: function bootContent() {\n /* eslint-disable-next-line ember/no-jquery */\n var node = (0, _jquery.default)(\".submission-body\");\n if (node && node.length > 0) {\n this.boot_area(node, false, true, false, false, true);\n }\n },\n get editorHasContent() {\n var _this$isRubricAssessm;\n var hasContent = this.bodyInputHasContent;\n var hasAttachments = this.hasNonDeletedAttachments;\n return hasContent || hasAttachments || ((_this$isRubricAssessm = this.isRubricAssessmentDirty) === null || _this$isRubricAssessm === void 0 ? void 0 : _this$isRubricAssessm.call(this));\n },\n addFile: (0, _object.action)(function (file) {\n var _this = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.pushObject(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this.encoding_videos.setObjects(_this.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n deleteAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n requestResubmit: (0, _object.action)(function () {\n var _this2 = this;\n var notPostableReason = this.get(\"notPostableReason\");\n if (notPostableReason) {\n this.confirmDialog.show({\n subtitle: notPostableReason\n });\n return;\n }\n this.confirmDialog.show({\n subtitle: \"Are you sure you want to request a resubmission?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n _this2.set(\"session.isWorking\", true);\n _this2.postSubmissionGrade(\"r\", function () {\n _this2.actions.postSubmissionComment.call(_this2, function () {\n _this2.set(\"session.isWorking\", false);\n _this2.set(\"bodyInput\", \"\");\n }, true);\n }, function () {\n _this2.set(\"session.isWorking\", false);\n });\n }\n });\n }),\n setRubricAssessmentIsDirtyCallback: (0, _object.action)(function (isRubricAssessmentDirty) {\n this.isRubricAssessmentDirty = isRubricAssessmentDirty;\n }),\n setSubmissionComponentCleanupCallback: (0, _object.action)(function (cleanupCallback) {\n this.submissionComponentCleanupCallback = cleanupCallback;\n }),\n onSubmitGrade: (0, _object.action)(function (grade, onCompleteCallback) {\n var _this3 = this;\n this.set(\"session.isWorking\", true);\n this.postSubmissionGrade(grade, function () {\n _this3.actions.postSubmissionComment.call(_this3, function () {\n _this3.set(\"session.isWorking\", false);\n _this3.set(\"bodyInput\", \"\");\n onCompleteCallback();\n }, true);\n }, function () {\n _this3.set(\"session.isWorking\", false);\n });\n }),\n toggleIsShowingAssignmentDetails: (0, _object.action)(function () {\n this.set(\"isShowingAssignmentDetails\", !this.get(\"isShowingAssignmentDetails\"));\n }),\n deleteHistoricSubmission: (0, _object.action)(function (attemptNum, historicAttachments, userId) {\n var _this4 = this;\n var message = \"Are you sure you wish to delete this past submission? This action CANNOT be undone!\";\n var submissionDbId = this.get(\"openAssignmentView.db_id\");\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. But, before you click this button, first perform any manual file deletion in S3 and Canvas (in that order). submission db id: \".concat(submissionDbId), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n /* eslint-disable-next-line ember/no-get */\n var sectionId = _this4.get(\"session.section.id\");\n /* eslint-disable-next-line ember/no-get */\n var assignmentId = _this4.get(\"openAssignmentView.assignment.id\").split(\"-\")[0];\n /* eslint-disable-next-line ember/no-get */\n\n var self = _this4;\n _jquery.default.post(\"/interface/sections/\".concat(sectionId, \"/assignments/\").concat(assignmentId, \"/submissions/\").concat(submissionDbId, \"/delete_historic_submission\"), JSON.stringify({\n attempt: attemptNum,\n userId: userId,\n attachments: historicAttachments ? historicAttachments.map(function (ha) {\n return ha.id;\n }).join(\",\") : []\n }), function () {\n var submission = self.submissions.find(function (item) {\n return item.id = submissionDbId && item.attempt === attemptNum;\n });\n self.submissions.removeObject(submission);\n }).fail(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting historic submission. Please reload the page and try again.\"\n });\n });\n }\n });\n }),\n deleteAssignmentComment: (0, _object.action)(function (postID) {\n (false && !(Boolean(postID)) && (0, _debug.assert)(\"postID should exist\", Boolean(postID)));\n /* eslint-disable-next-line ember/no-get */\n var section = this.get(\"session.section.id\");\n /* eslint-disable-next-line ember/no-get */\n var assignment = this.get(\"openAssignmentView.assignment.id\").split(\"-\")[0];\n /* eslint-disable-next-line ember/no-get */\n var submission = this.get(\"openAssignmentView.id\");\n (false && !(section) && (0, _debug.assert)(\"section id exists\", section));\n (false && !(assignment) && (0, _debug.assert)(\"assignment id exists\", assignment));\n (false && !(submission) && (0, _debug.assert)(\"submission id exists\", submission));\n this.store.nestResources(\"comment\", [{\n section: section\n }, {\n assignment: assignment\n }, {\n submission: submission\n }]);\n this.store.findRecord(\"comment\", postID).then(function (record) {\n record.set(\"is_deleted\", true);\n record.save();\n });\n }),\n deleteSubmissionAttachment: (0, _object.action)(function (sectionId, submissionId, assignmentDbId, userId, attachmentId) {\n var _this5 = this;\n var message = \"Are you sure you wish to delete this attachment? This action CANNOT be undone!\";\n var self = this;\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. But, before you click this button, first perform any manual file deletion in S3 and Canvas (in that order). attachment id: \".concat(attachmentId), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n var destroy = false;\n self.set(\"session.isWorking\", true);\n _this5.store.findRecord(\"attachment\", attachmentId).then(function (record) {\n _this5.store.nestResources(\"attachment\", [{\n section: sectionId\n }, {\n assignment: assignmentDbId\n }, {\n submission: submissionId\n }, {\n user: userId\n }, {\n destroy: destroy\n }]);\n try {\n record.destroyRecord().then(function () {\n if (submissionId) {\n _this5.store.findRecord(\"submission\", submissionId).then(function (record) {\n var currentAttachmentIds = record.get(\"attachments\");\n record.set(\"attachments\", currentAttachmentIds.filter(function (a) {\n return a != attachmentId;\n }));\n self.set(\"session.isWorking\", false);\n });\n } else {\n self.set(\"session.isWorking\", false);\n //submissionId is not defined if we are deleting an attachment for submission history\n }\n _this5.store.nestResources(\"attachment\", []);\n }).catch(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n });\n } catch (e) {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n }\n });\n }\n });\n }),\n destroyEditor: (0, _object.action)(function () {\n /**\n * Note: this is currently called twice. Once in the assignments mixin and once in 'closeModals'.\n */\n this._super();\n\n //This is here so that the 'toggleAssignmentModal' observer gets triggered each time opening up the assignment modal. This\n //in turn ensures that the needed assignment data gets set.\n this.set(\"openAssignmentView\", false);\n }),\n deleteSubmissionCommentAttachment: (0, _object.action)(function (sectionId, commentId, assignmentId, userId, attachmentId) {\n var _this6 = this;\n var message = \"Are you sure you wish to delete this attachment? This action CANNOT be undone!\";\n var self = this;\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. Soft delete.\", \"Yes. Leave no trace. But, before you click this button, permanent deletion in S3 must be performed manually. Attachment id: \".concat(attachmentId), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n var destroy = choice === \"Yes. Leave no trace.\";\n self.set(\"session.isWorking\", true);\n _this6.store.findRecord(\"attachment\", attachmentId).then(function (record) {\n _this6.store.nestResources(\"attachment\", [{\n section: sectionId\n }, {\n assignment: assignmentId\n }, {\n comment: commentId\n }, {\n user: userId\n }, {\n destroy: destroy\n }]);\n try {\n record.destroyRecord().then(function () {\n _this6.store.findRecord(\"comment\", commentId).then(function (record) {\n var currentAttachmentIds = record.get(\"attachments\");\n record.set(\"attachments\", currentAttachmentIds.filter(function (a) {\n return a != attachmentId;\n }));\n self.set(\"session.isWorking\", false);\n });\n _this6.store.nestResources(\"attachment\", []);\n }).catch(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n });\n } catch (e) {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n }\n });\n }\n });\n })\n });\n});","define(\"bocce/controllers/classroom/work/discussion\", [\"exports\", \"@ember/object/computed\", \"@ember/debug\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/uploadable\", \"bocce/mixins/discussable\", \"bocce/mixins/enmodal\", \"@ember/object\", \"@ember/runloop\", \"@ember/service\"], function (_exports, _computed, _debug, _controller, _editable, _audioRec, _videoRec, _rtcRec, _uploadable, _discussable, _enmodal, _object, _runloop, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/debug\",0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/enmodal\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } // app/controllers/discussion.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_editable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _uploadable.default, _discussable.default, _enmodal.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.preExistingRespIds = this.preExistingRespIds || [];\n this.selectedPollIds = this.selectedPollIds || [];\n },\n userprofileService: (0, _service.inject)(\"userprofile\"),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n legacyAttachmentManager: (0, _service.inject)(\"legacy-attachment-manager\"),\n router: (0, _service.inject)(),\n store: (0, _service.inject)(),\n classroom: (0, _controller.inject)(),\n // required by DiscussableMixin\n discussion: (0, _controller.inject)(\"classroom.work.discussion\"),\n // required by DiscussableMixin\n newDiscussion: (0, _controller.inject)(\"classroom.activity.discussion-new\"),\n // required by DiscussableMixin\n discussions: (0, _controller.inject)(),\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n\n prevResp: false,\n isWorking: false,\n parentsLoaded: false,\n childrenLoaded: true,\n /* eslint-disable-next-line ember/no-observers */\n didVoteObserver: (0, _object.observer)(\"model.poll.voters\", function () {\n /* eslint-disable-next-line ember/no-get */\n var did_vote = this.get(\"model.poll.did_vote\");\n if (typeof did_vote === \"string\") {\n this.set(\"model.poll.did_vote\", JSON.parse(did_vote));\n }\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n myVote: (0, _object.computed)(\"model.poll.voters\", function () {\n /* eslint-disable-next-line ember/no-get */\n var data = this.get(\"model.poll.did_vote\");\n if (data && data.length > 0) {\n data = JSON.parse(data);\n if (data.length > 0) {\n return data[0];\n }\n }\n return [];\n }),\n /* eslint-disable-next-line ember/no-observers */\n updateLesson: (0, _object.observer)(\"model.message\", function () {\n var _this = this;\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"model.id\")) {\n /* eslint-disable-next-line ember/no-get */\n this.store.findRecord(\"item\", this.get(\"model.id\")).then(function (item) {\n var lessonId = item.get(\"lesson\") ? item.get(\"lesson\").id : false;\n if (lessonId) {\n _this.set(\"isLesson\", lessonId);\n /* eslint-disable-next-line ember/no-get */\n _this.set(\"topicId\", _this.get(\"model.id\"));\n }\n }, function () {\n _this.set(\"isLesson\", false);\n _this.set(\"topicId\", _this.get(\"model.id\"));\n });\n }\n }),\n // Returns an array of top-level responses, ie replies to the main discussion thread.\n topLevelResponses: (0, _object.computed)(\"model.responses.@each.parent\", \"session.user.id\", \"session.{isInstructor,isLimitedStudentTerm}\", function () {\n var responses = this.model.hasMany(\"responses\").value();\n if (!responses.slice()) {\n return [];\n }\n var limited = this.get(\"session.isLimitedStudentTerm\") && !this.get(\"session.isInstructor\");\n var currentUserId = this.get(\"session.user.id\") ? parseInt(this.get(\"session.user.id\")) : false;\n var top_level = responses.filter(function (response) {\n var parent = parseInt(response.get(\"parent\"));\n var respUserId = response.get(\"user.id\") ? parseInt(response.get(\"user.id\")) : false;\n if (!parent) {\n var instructorIds = response.get(\"instructor_ids\") || [];\n if (limited && respUserId !== currentUserId && !instructorIds.includes(respUserId)) {\n return false;\n }\n return true;\n } else {\n // If there's a parent ID, make sure that the parent exists.\n // response.some(...) here returns true if the parent is found.\n return !responses.some(function (r) {\n return parseInt(r.get(\"id\")) === parent;\n });\n }\n });\n top_level.sort(function (a, b) {\n return a.get(\"date\") - b.get(\"date\");\n });\n return top_level;\n }),\n // Returns an object whose keys are top-level response IDs (see topLevelResponses),\n // and whose values are arrays of child responses. For example:\n // {\n // 1234: [\n // { /* child response */ },\n // { /* child response */ },\n // ]\n // }\n childResponses: (0, _object.computed)(\"model.responses.@each.parent\", \"session.user.id\", \"session.{isInstructor,isLimitedStudentTerm}\", \"topLevelResponses\", function () {\n /* eslint-disable-next-line ember/no-get */\n var responses = this.model.hasMany(\"responses\").value();\n if (!responses) {\n return [];\n }\n var parent_ids = this.topLevelResponses.map(function (r) {\n return parseInt(r.get(\"id\"));\n });\n var limited = this.get(\"session.isLimitedStudentTerm\") && !this.get(\"session.isInstructor\");\n var currentUserId = this.get(\"session.user.id\") ? parseInt(this.get(\"session.user.id\")) : false;\n var childResponses = {};\n // For each top level response, find all children of that response.\n var _iterator = _createForOfIteratorHelper(parent_ids),\n _step;\n try {\n var _loop = function _loop() {\n var parent_id = _step.value;\n // look for responses that point to the current top-level response as a parent\n childResponses[parent_id] = responses.filter(function (response) {\n if (limited) {\n var instructorIds = response.get(\"instructor_ids\") || [];\n var respUserID = response.get(\"user.id\") ? parseInt(response.get(\"user.id\")) : false;\n if (respUserID !== currentUserId && !instructorIds.includes(respUserID)) {\n return false;\n }\n }\n return parseInt(response.get(\"parent\")) === parent_id;\n });\n // sort them by date!\n childResponses[parent_id].sort(function (a, b) {\n return a.get(\"date\") - b.get(\"date\");\n });\n };\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n _loop();\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return childResponses;\n }),\n responsesLoaded: (0, _object.computed)(\"model.responses.@each.parent\", function () {\n return this.model.hasMany(\"responses\").value();\n }),\n message: (0, _computed.alias)(\"model.message\"),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n isInstructorAndOwner: (0, _object.computed)(\"model.user\", function () {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"model.user.id\") === this.get(\"session.user.id\") && this.get(\"session.isInstructor\");\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n truncated: (0, _object.computed)(\"message\", function () {\n var hasResponses = this.get(\"model.hasResponses\");\n if (this.message.length > 1000 && !hasResponses) {\n return true;\n }\n return false;\n }),\n addFile: (0, _object.action)(function (file) {\n var _this2 = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.pushObject(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this2.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this2.encoding_videos.setObjects(_this2.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this2.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, file.url || URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n removeAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n destroyEditor: (0, _object.action)(function () {\n this._super();\n this.set(\"replyId\", false);\n }),\n deleteAttachment: (0, _object.action)(function (courseId, discussionId, attachmentId, type, recordId, userId) {\n var _this3 = this;\n var message = \"Are you sure you wish to delete this attachment? This action CANNOT be undone!\";\n var self = this;\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. Soft delete.\", \"Yes. Leave no trace. But, before you click this button, manually delete the file from S3. Attachment id: \".concat(attachmentId, \".\"), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n var destroy = choice === \"Yes. Leave no trace.\";\n self.set(\"isWorking\", true);\n _this3.store.findRecord(\"attachment\", attachmentId).then(function (record) {\n _this3.store.nestResources(\"attachment\", [{\n course: courseId\n }, {\n discussion: discussionId + \":\" + recordId\n }, {\n user: userId\n }, {\n destroy: destroy\n }, {\n type: type\n }]);\n try {\n record.destroyRecord().then(function () {\n _this3.store.findRecord(type, recordId).then(function (record) {\n var currentAttachmentIds = record.get(\"attachments\");\n record.set(\"attachments\", currentAttachmentIds.filter(function (a) {\n return a != attachmentId;\n }));\n self.set(\"isWorking\", false);\n });\n _this3.store.nestResources(\"attachment\", []);\n }).catch(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"isWorking\", false);\n });\n } catch (e) {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"isWorking\", false);\n }\n });\n }\n });\n }),\n replyToDiscussion: (0, _object.action)(function (id, text, user) {\n this.set(\"replyId\", id);\n this.set(\"replyText\", text);\n this.set(\"replyAuthor\", user);\n var rte = document.querySelector(\".rte-editor-input\");\n if (rte) {\n rte.focus();\n }\n }),\n replyCancel: (0, _object.action)(function () {\n this.set(\"replyId\", false);\n this.set(\"replyText\", \"\");\n this.set(\"replyAuthor\", \"\");\n })\n });\n});","define(\"bocce/controllers/classroom/work/no-submissions\", [\"exports\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"bocce/mixins/discussable\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _discussable, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"bocce/mixins/discussable\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n // app/controllers/assignmentView.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, _editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _discussable.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n classroom: (0, _controller.inject)(),\n // required by UploadableMixin and EnmodalMixin\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n assignments: (0, _object.computed)(function () {\n return this.store.findAll(\"assignment\");\n })\n });\n});","define(\"bocce/controllers/classroom/work/submission-new\", [\"exports\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"@ember/object\", \"@ember/service\", \"@ember/debug\"], function (_exports, _controller, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _object, _service, _debug) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _enmodal.default, {\n init: function init() {\n this._super.apply(this, arguments);\n },\n userprofileService: (0, _service.inject)(\"userprofile\"),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n classroom: (0, _controller.inject)(),\n // required by UploadableMixin and EnmodalMixin\n\n addFile: (0, _object.action)(function (file) {\n var _this = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.pushObject(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this.encoding_videos.setObjects(_this.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n deleteAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n rubric: (0, _object.computed)(\"activeAssignment\", function () {\n return this.get(\"activeAssignment.rubric\");\n })\n });\n});","define(\"bocce/controllers/classroom/work/submission\", [\"exports\", \"@ember/controller\", \"bocce/mixins/editable\", \"bocce/mixins/assignments\", \"bocce/mixins/uploadable\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"bocce/mixins/boot\", \"bocce/mixins/discussable\", \"@ember/object\", \"@ember/debug\", \"jquery\", \"@ember/service\"], function (_exports, _controller, _editable, _assignments, _uploadable, _audioRec, _videoRec, _rtcRec, _enmodal, _boot, _discussable, _object, _debug, _jquery, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/editable\",0,\"bocce/mixins/assignments\",0,\"bocce/mixins/uploadable\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/boot\",0,\"bocce/mixins/discussable\",0,\"@ember/object\",0,\"@ember/debug\",0,\"jquery\",0,\"@ember/service\",0,\"@ember/debug\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; } // app/controllers/assignmentView.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, _editable.default, _assignments.default, _uploadable.default, _audioRec.default, _videoRec.default, _rtcRec.default, _boot.default, _discussable.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n kalturaService: (0, _service.inject)(\"kaltura-upload\"),\n rubricService: (0, _service.inject)(\"rubric\"),\n session: (0, _service.inject)(),\n store: (0, _service.inject)(),\n discussions: (0, _controller.inject)(),\n // required by EditableMixin\n lessons: (0, _controller.inject)(\"classroom.lessons\"),\n // required by UploadableMixin\n classroom: (0, _controller.inject)(),\n // required by UploadableMixin and EnmodalMixin\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n assignments: (0, _object.computed)(function () {\n return this.store.findAll(\"assignment\");\n }),\n isShowingAssignmentDetails: false,\n commentsHidden: false,\n showStudentList: false,\n get comments() {\n var _this$openAssignmentV;\n var comments = (_this$openAssignmentV = this.openAssignmentView) === null || _this$openAssignmentV === void 0 || (_this$openAssignmentV = _this$openAssignmentV.hasMany(\"comments\")) === null || _this$openAssignmentV === void 0 ? void 0 : _this$openAssignmentV.value();\n return comments || [];\n },\n toggleComments: (0, _object.action)(function () {\n this.set(\"commentsHidden\", !this.get(\"commentsHidden\"));\n }),\n toggleStudentList: (0, _object.action)(function () {\n this.set(\"showStudentList\", !this.get(\"showStudentList\"));\n }),\n closeStudentList: (0, _object.action)(function () {\n this.set(\"showStudentList\", false);\n }),\n bootContent: function bootContent() {\n /* eslint-disable-next-line ember/no-jquery */\n var node = (0, _jquery.default)(\".submission-body\");\n if (node && node.length > 0) {\n this.boot_area(node, false, true, false, false, true);\n }\n },\n get editorHasContent() {\n var _this$isRubricAssessm;\n var hasContent = this.bodyInputHasContent;\n var hasAttachments = this.hasNonDeletedAttachments;\n return hasContent || hasAttachments || ((_this$isRubricAssessm = this.isRubricAssessmentDirty) === null || _this$isRubricAssessm === void 0 ? void 0 : _this$isRubricAssessm.call(this));\n },\n addFile: (0, _object.action)(function (file) {\n var _this = this;\n if (file.type.includes(\"video\")) {\n var encoding_video = {\n name: file.name,\n percent_uploaded: 0\n };\n this.encoding_videos.pushObject(encoding_video);\n var fileIndex = this.encoding_videos.length - 1;\n this.kalturaUploadVideo(file, /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n (0, _debug.debug)(\"Unable to upload video to Kaltura. Uploading to S3...\");\n _context.n = 1;\n return _this.confirmDialog.show({\n subtitle: \"Video embedding unsuccessful; this file will be available for download only.\",\n choices: [\"OK\"]\n });\n case 1:\n _this.encoding_videos.setObjects(_this.encoding_videos.filter(function (ev) {\n return ev !== encoding_video;\n }));\n file.ignoreDownloadOnlyPrompt = true;\n _this.send(\"addValidFile\", file);\n case 2:\n return _context.a(2);\n }\n }, _callee);\n })), fileIndex, URL.createObjectURL(file), encoding_video);\n } else if (this.mimeTypes.indexOf(file.type) === -1) {\n this.send(\"addValidFile\", file);\n } else {\n this.send(\"addInvalidFile\", file);\n }\n }),\n deleteAttachment: (0, _object.action)(function (file) {\n this.send(\"deleteFile\", file);\n }),\n renameAttachment: (0, _object.action)(function (attachment, newName) {\n var _attachment$file;\n if ((_attachment$file = attachment.file) !== null && _attachment$file !== void 0 && _attachment$file.isUrl) {\n this.kalturaService.kalturaRenameVideo(attachment.uploaded_id, newName);\n (0, _object.set)(attachment, \"name\", newName);\n } else {\n (0, _object.set)(attachment, \"name\", newName);\n this.store.findRecord(\"attachment\", attachment.uploaded_id).then(function (loadedAttachment) {\n loadedAttachment.set(\"name\", newName);\n loadedAttachment.save();\n });\n }\n }),\n requestResubmit: (0, _object.action)(function () {\n var _this2 = this;\n var notPostableReason = this.get(\"notPostableReason\");\n if (notPostableReason) {\n this.confirmDialog.show({\n subtitle: notPostableReason\n });\n return;\n }\n this.confirmDialog.show({\n subtitle: \"Are you sure you want to request a resubmission?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n _this2.set(\"session.isWorking\", true);\n _this2.postSubmissionGrade(\"r\", function () {\n _this2.actions.postSubmissionComment.call(_this2, function () {\n _this2.set(\"session.isWorking\", false);\n _this2.rteService.clear();\n }, true);\n }, function () {\n _this2.set(\"session.isWorking\", false);\n });\n }\n });\n }),\n setRubricAssessmentIsDirtyCallback: (0, _object.action)(function (isRubricAssessmentDirty) {\n this.isRubricAssessmentDirty = isRubricAssessmentDirty;\n }),\n setSubmissionComponentCleanupCallback: (0, _object.action)(function (cleanupCallback) {\n this.submissionComponentCleanupCallback = cleanupCallback;\n }),\n onSubmitGrade: (0, _object.action)(function (grade, onCompleteCallback) {\n var _this3 = this;\n this.set(\"session.isWorking\", true);\n this.postSubmissionGrade(grade, function () {\n _this3.actions.postSubmissionComment.call(_this3, function () {\n _this3.set(\"session.isWorking\", false);\n _this3.rteService.clear();\n onCompleteCallback();\n }, true);\n }, function () {\n _this3.set(\"session.isWorking\", false);\n });\n }),\n toggleIsShowingAssignmentDetails: (0, _object.action)(function () {\n this.set(\"isShowingAssignmentDetails\", !this.get(\"isShowingAssignmentDetails\"));\n }),\n deleteHistoricSubmission: (0, _object.action)(function (attemptNum, historicAttachments, userId) {\n var _this4 = this;\n var message = \"Are you sure you wish to delete this past submission? This action CANNOT be undone!\";\n var submissionDbId = this.get(\"openAssignmentView.db_id\");\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. But, before you click this button, first perform any manual file deletion in S3 and Canvas (in that order). submission db id: \".concat(submissionDbId), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n /* eslint-disable-next-line ember/no-get */\n var sectionId = _this4.get(\"session.section.id\");\n /* eslint-disable-next-line ember/no-get */\n var assignmentId = _this4.get(\"openAssignmentView.assignment.id\").split(\"-\")[0];\n /* eslint-disable-next-line ember/no-get */\n\n var self = _this4;\n _jquery.default.post(\"/interface/sections/\".concat(sectionId, \"/assignments/\").concat(assignmentId, \"/submissions/\").concat(submissionDbId, \"/delete_historic_submission\"), JSON.stringify({\n attempt: attemptNum,\n userId: userId,\n attachments: historicAttachments ? historicAttachments.map(function (ha) {\n return ha.id;\n }).join(\",\") : []\n }), function () {\n var submission = self.submissions.find(function (item) {\n return item.id = submissionDbId && item.attempt === attemptNum;\n });\n self.submissions.removeObject(submission);\n }).fail(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting historic submission. Please reload the page and try again.\"\n });\n });\n }\n });\n }),\n deleteAssignmentComment: (0, _object.action)(function (postID) {\n (false && !(Boolean(postID)) && (0, _debug.assert)(\"postID should exist\", Boolean(postID)));\n /* eslint-disable-next-line ember/no-get */\n var section = this.get(\"session.section.id\");\n /* eslint-disable-next-line ember/no-get */\n var assignment = this.get(\"openAssignmentView.assignment.id\").split(\"-\")[0];\n /* eslint-disable-next-line ember/no-get */\n var submission = this.get(\"openAssignmentView.id\");\n (false && !(section) && (0, _debug.assert)(\"section id exists\", section));\n (false && !(assignment) && (0, _debug.assert)(\"assignment id exists\", assignment));\n (false && !(submission) && (0, _debug.assert)(\"submission id exists\", submission));\n this.store.nestResources(\"comment\", [{\n section: section\n }, {\n assignment: assignment\n }, {\n submission: submission\n }]);\n this.store.findRecord(\"comment\", postID).then(function (record) {\n record.set(\"is_deleted\", true);\n record.save();\n });\n }),\n deleteSubmissionAttachment: (0, _object.action)(function (sectionId, submissionId, assignmentDbId, userId, attachmentId) {\n var _this5 = this;\n var message = \"Are you sure you wish to delete this attachment? This action CANNOT be undone!\";\n var self = this;\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. But, before you click this button, first perform any manual file deletion in S3 and Canvas (in that order). attachment id: \".concat(attachmentId), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n var destroy = false;\n self.set(\"session.isWorking\", true);\n _this5.store.findRecord(\"attachment\", attachmentId).then(function (record) {\n _this5.store.nestResources(\"attachment\", [{\n section: sectionId\n }, {\n assignment: assignmentDbId\n }, {\n submission: submissionId\n }, {\n user: userId\n }, {\n destroy: destroy\n }]);\n try {\n record.destroyRecord().then(function () {\n if (submissionId) {\n _this5.store.findRecord(\"submission\", submissionId).then(function (record) {\n var currentAttachmentIds = record.get(\"attachments\");\n record.set(\"attachments\", currentAttachmentIds.filter(function (a) {\n return a != attachmentId;\n }));\n self.set(\"session.isWorking\", false);\n });\n } else {\n self.set(\"session.isWorking\", false);\n //submissionId is not defined if we are deleting an attachment for submission history\n }\n _this5.store.nestResources(\"attachment\", []);\n }).catch(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n });\n } catch (e) {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n }\n });\n }\n });\n }),\n destroyEditor: (0, _object.action)(function () {\n /**\n * Note: this is currently called twice. Once in the assignments mixin and once in 'closeModals'.\n */\n this._super();\n\n //This is here so that the 'toggleAssignmentModal' observer gets triggered each time opening up the assignment modal. This\n //in turn ensures that the needed assignment data gets set.\n this.set(\"openAssignmentView\", false);\n }),\n deleteSubmissionCommentAttachment: (0, _object.action)(function (sectionId, commentId, assignmentId, userId, attachmentId) {\n var _this6 = this;\n var message = \"Are you sure you wish to delete this attachment? This action CANNOT be undone!\";\n var self = this;\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Yes. Soft delete.\", \"Yes. Leave no trace. But, before you click this button, permanent deletion in S3 must be performed manually. Attachment id: \".concat(attachmentId), \"No\"]\n }).then(function (choice) {\n if (choice.indexOf(\"Yes\") === 0) {\n var destroy = choice === \"Yes. Leave no trace.\";\n self.set(\"session.isWorking\", true);\n _this6.store.findRecord(\"attachment\", attachmentId).then(function (record) {\n _this6.store.nestResources(\"attachment\", [{\n section: sectionId\n }, {\n assignment: assignmentId\n }, {\n comment: commentId\n }, {\n user: userId\n }, {\n destroy: destroy\n }]);\n try {\n record.destroyRecord().then(function () {\n _this6.store.findRecord(\"comment\", commentId).then(function (record) {\n var currentAttachmentIds = record.get(\"attachments\");\n record.set(\"attachments\", currentAttachmentIds.filter(function (a) {\n return a != attachmentId;\n }));\n self.set(\"session.isWorking\", false);\n });\n _this6.store.nestResources(\"attachment\", []);\n }).catch(function () {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n });\n } catch (e) {\n self.confirmDialog.show({\n subtitle: \"Problem occurred deleting attachment. Please reload the page and try again.\"\n });\n self.set(\"session.isWorking\", false);\n }\n });\n }\n });\n })\n });\n});","define(\"bocce/controllers/conversations\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"bocce/mixins/discussable\", \"bocce/mixins/enmodal\", \"bocce/mixins/conversable\", \"@ember/object\", \"@ember/service\"], function (_exports, _computed, _controller, _discussable, _enmodal, _conversable, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/enmodal\",0,\"bocce/mixins/conversable\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n // app/controllers/conversations.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_discussable.default, _conversable.default, _enmodal.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.sortProperties = this.sortProperties || [\"lastActivity\"];\n this.conversationSortRules = this.conversationSortRules || [\"lastActivity:desc\"];\n },\n classroom: (0, _controller.inject)(),\n router: (0, _service.inject)(),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n conversation: (0, _controller.inject)(\"classroom.conversation\"),\n discussion: (0, _controller.inject)(\"classroom.work.discussion\"),\n // required by DiscussableMixin\n newDiscussion: (0, _controller.inject)(\"classroom.activity.discussion-new\"),\n // required by DiscussableMixin\n\n sortAscending: false,\n filteredList: null,\n recipientId: null,\n courseInstructor: (0, _object.computed)(\"session.teachingUser\", function () {\n return this.get(\"session.teachingUser\");\n }),\n sortedConversations: (0, _computed.sort)(\"activeConversations\", \"conversationSortRules\"),\n activeConversations: (0, _object.computed)(\"model.@each.{workflow_state,conversationPartners}\", function () {\n var convos = this.model;\n if (convos) {\n return this.model.filterBy(\"active\", true);\n }\n return [];\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n unreadCountInbox: (0, _object.computed)(\"model.@each.workflow_state\", function () {\n /* eslint-disable-next-line ember/no-get */\n var conversationsLoaded = this.get(\"classroom.conversationsLoaded\") || false;\n if (!conversationsLoaded) {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"session.course.numUnreadConversations\");\n } else {\n return this.model.filterBy(\"workflow_state\", \"unread\").length;\n }\n }),\n closeModals: (0, _object.action)(function () {\n this._super();\n this.conversation.send(\"deleteUnsentConversation\");\n }),\n pmInstructor: (0, _object.action)(function () {\n this.router.transitionTo(\"classroom.conversation-new-with\", this.get(\"courseInstructor.id\"));\n })\n });\n});","define(\"bocce/controllers/dashboard\", [\"exports\", \"@ember/service\", \"@ember/object\", \"@ember/controller\", \"bocce/utilities/logout\", \"bocce/config/environment\", \"bocce/mixins/editable\"], function (_exports, _service, _object, _controller, _logout, _environment, _editable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/controller\",0,\"bocce/utilities/logout\",0,\"bocce/config/environment\",0,\"bocce/mixins/editable\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n var _default = _exports.default = _controller.default.extend(_editable.default, {\n loginStreak: (0, _service.inject)(\"login-streak\"),\n dashboardSorter: (0, _service.inject)(\"dashboard-sorter\"),\n store: (0, _service.inject)(),\n session: (0, _service.inject)(),\n confirmDialog: (0, _service.inject)(),\n currentTab: \"courses\",\n maximizedCard: [],\n shouldShowDiscourseSpeechBubble: true,\n sendMessageTo: null,\n isDYS: (0, _object.computed)(\"model\", \"model.[]\", function () {\n var model = this.model;\n return model.get(\"isDYS\");\n }),\n unreadDiscoursePosts: (0, _object.computed)(\"model\", \"model.[]\", function () {\n var model = this.model;\n return model.get(\"unreadDiscoursePosts\");\n }),\n get unreadInboxCount() {\n return this.store.peekAll(\"conversation\").filter(function (c) {\n return c.active && c.workflow_state === \"unread\";\n }).length;\n },\n showDiscourseSpeechBubble: (0, _object.computed)(\"model\", \"model.[]\", \"shouldShowDiscourseSpeechBubble\", function () {\n // Check the local storage var \"discourseSpeechBubbleClosed\" to see if it's true\n var discourseSpeechBubbleClosed = localStorage.getItem(\"discourseSpeechBubbleClosed\");\n if (!!discourseSpeechBubbleClosed) {\n return false;\n }\n var model = this.get(\"model\");\n var unreadPostsCounter = model.unreadDiscoursePosts;\n if (unreadPostsCounter === \"!\") {\n return true;\n }\n return this.shouldShowDiscourseSpeechBubble || false;\n }),\n hasStudentEnrollment: false,\n showScrollToTop: true,\n lastUpdateTimestamp: null,\n displayStatsPopup: false,\n hideClassmateStats: false,\n experimentalFeaturesEnabled: false,\n hideUserMenu: true,\n prefsPanelOpen: false,\n startPolling: function startPolling() {\n var _this = this;\n // Set local storage var \"dashboardHB\" to true -- set to false to manually stop the heartbeat\n localStorage.setItem(\"dashboardHB\", true);\n\n // Make sure user has the dashboard tab open\n var tabIsActive = !document.hidden;\n var lastMouseMovement = Date.now();\n var HEARTBEAT_INTERVAL = 30000; // polling interval in milliseconds\n var INACTIVITY_THRESHOLD = 60000; // after 60 seconds of inactivity, skip heartbeat\n\n // Stored on the instance so willDestroy can detach them; otherwise the\n // document-level mousemove handler keeps firing for the page lifetime.\n this._onVisibilityChange = function () {\n tabIsActive = !document.hidden;\n };\n document.addEventListener(\"visibilitychange\", this._onVisibilityChange);\n this._onMouseMove = function () {\n lastMouseMovement = Date.now();\n };\n document.addEventListener(\"mousemove\", this._onMouseMove);\n this.polling = setInterval(function () {\n // Check local storage var \"dashboardHB\" to see if it's true\n var dashboardHB = localStorage.getItem(\"dashboardHB\");\n var currentTime = Date.now();\n var doHB = dashboardHB && tabIsActive && currentTime - lastMouseMovement < INACTIVITY_THRESHOLD;\n if (doHB) {\n console.log(\"Beep.\");\n _this.refreshModel();\n } else {\n console.log(\"Skip.\");\n }\n }, HEARTBEAT_INTERVAL); // 30 seconds\n },\n refreshModel: function refreshModel() {\n var _this2 = this;\n this.set(\"lastUpdateTimestamp\", new Date().getTime());\n this.store.queryRecord(\"dashboard\", {\n fingerprint: this.get(\"model.fingerprint\")\n }).then(function (updatedModel) {\n if (!updatedModel) {\n return;\n }\n _this2.set(\"model\", updatedModel);\n }).catch(function (error) {\n console.error(\"Error while reloading the model: \".concat(error));\n });\n },\n // Make sure to clear the polling and detach the document listeners when the\n // controller is destroyed\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n clearInterval(this.polling);\n if (this._onVisibilityChange) {\n document.removeEventListener(\"visibilitychange\", this._onVisibilityChange);\n }\n if (this._onMouseMove) {\n document.removeEventListener(\"mousemove\", this._onMouseMove);\n }\n },\n init: function init() {\n this._super.apply(this, arguments);\n //Comment to stop heartbeat\n this.startPolling();\n\n //Check Local Storage for the dashboardMessageNoClassPerm\n var dashboardMessageNoClassPerm = localStorage.getItem(\"dashboardMessageNoClassPerm\");\n if (dashboardMessageNoClassPerm) {\n this.confirmDialog.show({\n subtitle: \"An error occurred. Please check the forum for any known ongoing outages/issues and contact support@online.berklee.edu if not.\"\n });\n localStorage.removeItem(\"dashboardMessageNoClassPerm\");\n }\n this.set(\"shouldShowDiscourseSpeechBubble\", !localStorage.getItem(\"discourseSpeechBubbleClosed\"));\n\n // Check query string: ?nav=inbox (optionally &userId=)\n var searchParams = new URLSearchParams(window.location.search);\n this._handleInboxNavParams(searchParams);\n\n // Also support hash-based format: /#/dashboard?nav=inbox (legacy)\n if (window.location.hash.includes(\"?\")) {\n var hashQuery = window.location.hash.split(\"?\")[1];\n this._handleInboxNavParams(new URLSearchParams(hashQuery));\n }\n },\n _handleInboxNavParams: function _handleInboxNavParams(params) {\n if (params.get(\"nav\") !== \"inbox\") {\n return;\n }\n this.set(\"currentTab\", \"inbox\");\n var userId = params.get(\"userId\");\n if (userId) {\n this.set(\"sendMessageTo\", userId);\n }\n },\n terms: (0, _object.computed)(\"model\", \"model.[]\", function () {\n var prefs = this.get(\"session.user.profile\");\n this.set(\"hideClassmateStats\", prefs ? prefs.hideClassmateStats : false);\n this.set(\"experimentalFeaturesEnabled\", true);\n this.setSorterProperties();\n var model = this.get(\"model\");\n if (!model) {\n return [];\n } else {\n var modelBackup = this.get(\"modelBackup\");\n var fingerprint = model.get(\"fingerprint\");\n if (modelBackup && modelBackup.get(\"fingerprint\") === fingerprint) {\n return modelBackup.get(\"terms\");\n }\n this.set(\"modelBackup\", model);\n return model.get(\"terms\");\n }\n }),\n userId: (0, _object.computed)(\"model\", \"model.[]\", function () {\n return this.get(\"model.user_id\");\n }),\n upcoming_live_class: (0, _object.computed)(\"model\", \"model.[]\", function () {\n var model = this.get(\"model\");\n return model.get(\"next_live_class\");\n }),\n currentTermLoginData: (0, _object.computed)(\"model\", \"model.userTermData\", function () {\n var _model$terms$at;\n var model = this.get(\"model\");\n if (!model) {\n return;\n }\n var termData = model.get(\"userTermData\");\n var currentWeek = (_model$terms$at = model.terms.at(0)) === null || _model$terms$at === void 0 ? void 0 : _model$terms$at.week_num;\n if (termData && termData.login_days && currentWeek) {\n this.loginStreak.initialize(currentWeek, (termData === null || termData === void 0 ? void 0 : termData.login_days) || {});\n }\n return termData;\n }),\n displayIntroPopup: (0, _object.computed)(\"session.user.profile\", function () {\n var prefs = this.get(\"session.user.profile\");\n if (!prefs) {\n return false;\n }\n\n // Check the local storage var \"accepteddashboardBeta2IntroPopup\" to see if it's true\n var acceptedDashboardBetaIntroPopup = prefs.acceptedDashboardBeta2IntroPopup || localStorage.getItem(\"acceptedDashboardBeta2IntroPopup\");\n return !acceptedDashboardBetaIntroPopup;\n }),\n setSorterProperties: function setSorterProperties() {\n this.dashboardSorter.setProperty(\"showUngraded\", true);\n this.dashboardSorter.setProperty(\"showDiscussions\", true);\n },\n savePrefs: function savePrefs(prefs) {\n this.store.findRecord(\"user\", this.get(\"session.user.id\")).then(function (record) {\n record.set(\"profile_updated\", true);\n record.set(\"profile\", prefs);\n record.save();\n });\n },\n toggleSideMenu: (0, _object.action)(function () {\n this.toggleProperty(\"showSideMenu\");\n }),\n toggleSideWidgets: (0, _object.action)(function () {\n this.toggleProperty(\"showSideWidgets\");\n }),\n toggleUserMenu: (0, _object.action)(function () {\n this.toggleProperty(\"hideUserMenu\");\n }),\n closeUserMenu: (0, _object.action)(function () {\n this.set(\"hideUserMenu\", true);\n }),\n togglePrefsPanel: (0, _object.action)(function () {\n this.toggleProperty(\"prefsPanelOpen\");\n }),\n scrollElementIntoView: (0, _object.action)(function (element) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n if (!element) {\n return;\n }\n\n // Find the first scrollable parent\n var parent = element.parentNode;\n while (parent && (parent.scrollHeight === parent.clientHeight || getComputedStyle(parent).overflowY === \"visible\")) {\n parent = parent.parentNode;\n }\n if (!parent || !(parent instanceof HTMLElement)) {\n return;\n }\n var parentRect = parent.getBoundingClientRect();\n var elementRect = element.getBoundingClientRect();\n\n // Calculate the distance the element needs to travel to be aligned with the top of the viewport + offset.\n var delta = elementRect.top - (parentRect.top + offset);\n\n // Adjust the parent's scrollTop by this delta\n parent.scrollTop += delta;\n }),\n dismissIntroPopup: (0, _object.action)(function () {\n var prefs = this.get(\"session.user.profile\");\n if (!prefs) {\n return;\n }\n (0, _object.set)(prefs, \"acceptedDashboardBeta2IntroPopup\", true);\n localStorage.setItem(\"acceptedDashboardBeta2IntroPopup\", \"true\");\n this.savePrefs(prefs);\n this.set(\"displayIntroPopup\", false);\n }),\n toggleExperimentalFeatures: (0, _object.action)(function () {\n var prefs = this.get(\"session.user.profile\");\n if (!prefs) {\n return;\n }\n var experimentalOn = !this.get(\"experimentalFeaturesEnabled\");\n this.setSorterProperties();\n if (!experimentalOn) {\n this.set(\"hideClassmateStats\", true);\n }\n (0, _object.set)(prefs, \"experimentalFeaturesEnabled\", experimentalOn);\n this.set(\"experimentalFeaturesEnabled\", experimentalOn);\n var element = document.getElementsByClassName(\"dashboard-intro-popup\")[0];\n if (element) {\n element.scrollTo(0, element.scrollHeight);\n }\n this.savePrefs(prefs);\n }),\n displayIntro: (0, _object.action)(function () {\n this.set(\"displayIntroPopup\", true);\n }),\n tabNavigation: (0, _object.action)(function (tab, event) {\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n this.set(\"showSideMenu\", false);\n this.set(\"currentTab\", tab);\n }),\n messageUser: (0, _object.action)(function (id) {\n // We're already on the dashboard route, so changing the URL won't\n // re-run init()/_handleInboxNavParams. Set the state directly instead.\n this.set(\"currentTab\", \"inbox\");\n this.set(\"sendMessageTo\", id);\n\n // Keep the URL in sync so the thread is restorable on refresh/bookmark.\n window.history.replaceState(window.history.state, \"\", \"/#/dashboard?nav=inbox&userId=\".concat(id));\n }),\n launchDiscourse: (0, _object.action)(function () {\n this.send(\"closeDiscourseSpeechBubble\");\n var discourseUrl = this.get(\"model.discourseUrl\");\n window.open(discourseUrl, \"_blank\");\n }),\n closeDiscourseSpeechBubble: (0, _object.action)(function () {\n event.stopPropagation();\n // Save the state to local storage, so the bubble doesn't show up again\n localStorage.setItem(\"discourseSpeechBubbleClosed\", \"true\");\n this.set(\"shouldShowDiscourseSpeechBubble\", false);\n }),\n logout: (0, _object.action)(function () {\n (0, _logout.default)();\n }),\n exportCalendar: (0, _object.action)(function () {\n var currentUser = this.get(\"session.user\");\n var icsLink = \"https://\" + window.location.hostname + \"/interface/calendar-export/\" + currentUser.get(\"calendarHash\");\n\n /* eslint-disable-next-line ember/no-jquery */\n var showCopy = !$.isMobile;\n var copyBtn = showCopy ? \"\" : \"\";\n var bodyMarkup = \"\\n
    \\n \\n \").concat(copyBtn, \"\\n
    \\n or download the feed.\\n \");\n var message = \"Copy the link below and paste it into any calendar app that takes iCal feeds (Google Calendar, iCal, Outlook, etc.)\";\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Dismiss\"],\n body: bodyMarkup\n });\n }),\n viewTerm: (0, _object.action)(function (termNumber) {\n event.stopPropagation();\n // Scroll to element with id #term_{{termNumber}}\n var element = document.getElementById(\"term_\".concat(termNumber));\n if (element) {\n this.scrollElementIntoView(element);\n document.getElementsByClassName(\"dashboard\")[0].scrollBy(0, -100);\n }\n }),\n navigate: (0, _object.action)(function (courseClosed, startDate, courseCode) {\n var courseCodeWithoutSection = courseCode && courseCode.split(\".\")[0];\n var showDialogException = _environment.default.APP.dashboardAllowAccessUnopenedCourseList.includes(courseCodeWithoutSection);\n event.stopPropagation();\n // If the course is closed, show a dialog\n if (courseClosed && !(courseClosed instanceof Event) && !showDialogException) {\n event.preventDefault();\n // force date to be EST, formatted as MM/DD/YYYY\n var startDateFormatted = startDate ? new Date(startDate).toLocaleString(\"en-US\", {\n timeZone: \"America/New_York\",\n month: \"2-digit\",\n day: \"2-digit\",\n year: \"numeric\"\n }) : \"the first day of the term\";\n this.confirmDialog.show({\n subtitle: \"Please note this course hasn't opened yet. Sections open between 9 AM and 6 PM ET on \".concat(startDateFormatted, \". You will receive an email notification once this course becomes available. We hope you have a great semester!\")\n });\n return;\n }\n }),\n scrollToTop: (0, _object.action)(function () {\n event.stopPropagation();\n // Scroll contents of .dashboard to top\n var element = document.getElementsByClassName(\"dashboard\")[0];\n if (element) {\n element.scrollTo(0, 0);\n }\n }),\n updateMaximizedCard: (0, _object.action)(function (index) {\n var key = String(index);\n var current = this.maximizedCard;\n if (current.includes(key)) {\n this.set(\"maximizedCard\", current.filter(function (i) {\n return i !== key;\n }));\n } else {\n this.set(\"maximizedCard\", [].concat(_toConsumableArray(current), [key]));\n }\n }),\n toggleClassmateStats: (0, _object.action)(function () {\n var prefs = this.get(\"session.user.profile\") || {};\n var hideClassmateStats = this.get(\"hideClassmateStats\");\n (0, _object.set)(prefs, \"hideClassmateStats\", !hideClassmateStats);\n this.set(\"hideClassmateStats\", !hideClassmateStats);\n this.savePrefs(prefs);\n }),\n dismissStatsInfo: (0, _object.action)(function () {\n this.set(\"displayStatsPopup\", false);\n }),\n displayStatsInfo: (0, _object.action)(function () {\n this.set(\"displayStatsPopup\", true);\n })\n });\n});","define(\"bocce/controllers/discussions\", [\"exports\", \"@ember/object/computed\", \"@ember/debug\", \"@ember/controller\", \"bocce/mixins/audio-rec\", \"bocce/mixins/discussable\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/enmodal\", \"jquery\", \"@ember/object\", \"@ember/array\", \"@ember/array/proxy\", \"@ember/service\"], function (_exports, _computed, _debug, _controller, _audioRec, _discussable, _videoRec, _rtcRec, _enmodal, _jquery, _object, _array, _proxy, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/debug\",0,\"@ember/controller\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/discussable\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/enmodal\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/array/proxy\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); } // app/controllers/discussions.js\n /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */ /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_audioRec.default, _discussable.default, _videoRec.default, _rtcRec.default, _enmodal.default, {\n quizzes: [],\n init: function init() {\n var _this = this;\n this._super.apply(this, arguments);\n this.sortProperties = this.sortProperties || [\"sortDate:desc\"];\n this.store.findAll(\"quiz\").then(function (q) {\n return _this.set(\"quizzes\", q);\n });\n },\n classroom: (0, _controller.inject)(),\n // required by DiscussableMixin\n discussion: (0, _controller.inject)(\"classroom.work.discussion\"),\n // required by DiscussableMixin\n newDiscussion: (0, _controller.inject)(\"classroom.activity.discussion-new\"),\n // required by DiscussableMixin\n userprofileService: (0, _service.inject)(\"userprofile\"),\n router: (0, _service.inject)(),\n store: (0, _service.inject)(),\n // When the app first boots up, the discussions controller loads\n // without a model property. When that happens Ember crashes because\n // computed properties try and get data from the model. This property\n // returns the model if it exists, otherwise returns an empty array.\n all_model: (0, _object.computed)(\"model\", function () {\n return this.model || [];\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n numRequiredDiscussions: (0, _object.computed)(\"discussions.{@each.read,responses.@each.read}\", \"all_model.[]\", \"activities.@each.read\", function () {\n return this.requiredDiscussions.filter(function (discussion) {\n return (!discussion.get(\"read\") || discussion.get(\"hasUnreadResponses\")) && !discussion.get(\"locked\");\n }).length;\n }),\n numUnrequiredDiscussions: (0, _object.computed)(\"discussions.{@each.read,responses.@each.read}\", \"all_model.[]\", function () {\n var filteredConversations = this.discussions.filter(function (discussion) {\n return !discussion.get(\"is_required\") && (!discussion.get(\"read\") || discussion.get(\"hasUnreadResponses\")) && !discussion.get(\"locked\");\n });\n return filteredConversations.length;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n numSubmissionsNeedAttention: (0, _object.computed)(\"submissions.@each.{needsStudentAttention,needsTeacherAttention}\", function () {\n var subs = this.submissions,\n /* eslint-disable-next-line ember/no-get */\n filter = this.get(\"session.isInstructor\") ? \"needsTeacherAttention\" : \"needsStudentAttention\";\n return subs.filter(function (s) {\n return s[filter] === true;\n }).length;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n numAssignmentsNeedAttention: (0, _object.computed)(\"assignments.@each.{needsStudentAttention,needsTeacherAttention}\", \"submissions.@each.{needsStudentAttention,needsTeacherAttention}\", function () {\n var assignments = this.assignments,\n /* eslint-disable-next-line ember/no-get */\n filter = this.get(\"session.isInstructor\") ? \"needsTeacherAttention\" : \"needsStudentAttention\";\n return assignments.filter(function (assignment) {\n return assignment[filter] === true;\n }).length;\n }),\n discussions: (0, _computed.filterBy)(\"all_model\", \"is_announcement\", false),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n requiredDiscussions: (0, _object.computed)(\"all_model.@each.{is_announcement,responses}\", function () {\n var retVal = this.all_model.filter(function (all) {\n return all.is_required === true;\n });\n\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.isInstructor\")) {\n retVal = retVal.filter(function (discussion) {\n var now = moment(),\n discussionDue = moment(discussion.get(\"due_at\"));\n return !discussion.get(\"due_at\") || discussionDue < now || discussion.get(\"dueWithinOneWeek\") || discussion.get(\"dueWithinTwoWeeks\");\n });\n }\n return retVal;\n }),\n announcements: (0, _computed.filterBy)(\"all_model\", \"is_announcement\", true),\n assignments: (0, _object.computed)(\"loadedAssignments\", function () {\n if (this.loadedAssignments) {\n return this.loadedAssignments;\n } else {\n return [];\n }\n }),\n submissions: (0, _object.computed)(\"assignments.@each.submissions\", function () {\n var retval = (0, _array.A)();\n this.assignments.forEach(function (a) {\n return retval.pushObjects(a.get(\"submissions\"));\n });\n return retval;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n // quizzes: computed(function () {\n // return this.store.findAll('quiz');\n // }),\n\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n work: (0, _object.computed)(\"quizzes.@each.attempts\", \"discussions.@each.{id,unread_count}\", \"assignments.@each.{id,numUngradedSubmissions,submissions,teacher_requires_resubmission}\", function () {\n var discussions = this.requiredDiscussions || [],\n assignments = this.assignments || [],\n quizzes = this.quizzes || [],\n quizLength,\n stream = (0, _array.A)(),\n i,\n current,\n emptyWeek = true,\n dividers = [{\n due_at: moment(new Date()).add(1, \"year\").isoWeekday(6).toISOString(),\n is_divider: true,\n divider_message: \"To-Do\",\n current: true,\n overdue: false\n }, {\n due_at: moment(new Date()).add(1, \"weeks\").isoWeekday(1).toISOString(),\n is_divider: true,\n divider_message: \"Completed\",\n overdue: true,\n current: false\n }];\n quizLength = quizzes.length;\n if (quizLength > 0) {\n var _loop = function _loop(_i) {\n if (quizzes.at(_i).get(\"attempts.length\") > 0) {\n quizzes.at(_i).attempts.then(function (attempts) {\n quizzes.at(_i).set(\"latestAttempt\", attempts.at(0));\n });\n }\n };\n for (var _i = 0; _i < quizLength; _i++) {\n _loop(_i);\n }\n }\n stream.pushObjects(assignments.slice());\n stream.pushObjects(discussions.slice());\n stream.pushObjects(quizzes.slice());\n for (i = 0; i < stream.length; i++) {\n if (!stream[i].get(\"is_divider\")) {\n current = stream[i].get(\"i_submitted\") || stream[i].get(\"currentUserSubmission\") || stream[i].get(\"latestAttempt\");\n if (stream[i].get(\"due_at\")) {\n stream[i].set(\"due_at\", moment(stream[i].get(\"due_at\")).toISOString());\n }\n stream[i].set(\"overdue\", false);\n\n // Mark overdue assignments\n if (!current && (!moment(stream[i].get(\"due_at\")).isSame(Date(), \"week\") && !moment(stream[i].get(\"due_at\")).isSame(moment(new Date()).isoWeekday(7), \"day\") || moment(stream[i].get(\"due_at\")).isSame(moment(new Date()).isoWeekday(7).subtract(1, \"weeks\"), \"day\"))) {\n stream[i].set(\"current\", true);\n stream[i].set(\"overdue\", true);\n } else {\n emptyWeek = false;\n stream[i].set(\"current\", !current);\n }\n\n // Force marked for resubmission assignments to the top of the pile\n if (stream[i].get(\"teacher_requires_resubmission\") === \"needs_resubmit\") {\n stream[i].set(\"current\", true);\n stream[i].set(\"overdue\", true);\n }\n }\n }\n if (emptyWeek) {\n dividers.push({\n due_at: moment(new Date()).add(1, \"days\").isoWeekday(1).toISOString(),\n is_divider: true,\n empty_week: true,\n divider_message: \"Nothing due currently.\",\n current: true\n });\n }\n stream.pushObjects(dividers);\n return _proxy.default.extend({\n init: function init() {\n this._super.apply(this, arguments);\n // eslint-disable-next-line ember/no-side-effects\n this.sortProperties = this.sortProperties || [\"current:desc\", \"due_at:desc\"];\n },\n content: stream,\n sorted: (0, _computed.sort)(\"content\", \"sortProperties\")\n }).create();\n }),\n numUnreadAnnouncements: (0, _object.computed)(\"announcements.@each.read\", \"all_model.[]\", function () {\n return this.announcements.filter(function (a) {\n return a.read === false && a.locked === false;\n }).length;\n }),\n numUngradedSubmissions: (0, _object.computed)(\"assignments.@each.numUngradedSubmissions\", function () {\n var assignments = this.assignments,\n totalUngraded = 0;\n assignments.forEach(function (a) {\n return totalUngraded += a.get(\"numUngradedSubmissions\");\n });\n return totalUngraded;\n }),\n numResubmissionsPending: (0, _object.computed)(\"assignments.@each.numResubmissionsPending\", function () {\n var assns = this.assignments;\n var retval = 0;\n assns.forEach(function (a) {\n return retval += a.get(\"numResubmissionsPending\");\n });\n return retval;\n }),\n numUnreadSubmissions: (0, _object.computed)(\"assignments.@each.numUnreadSubmissions\", function () {\n var assns = this.assignments;\n return assns.reduce(function (total, assn) {\n return total + assn.get(\"numUnreadSubmissions\");\n }, 0);\n }),\n numUnreadAssignments: (0, _object.computed)(\"assignments.@each.hasUnreadSubmissions\", function () {\n var assns = this.assignments;\n return assns.filter(function (a) {\n return a.hasUnreadSubmissions === true;\n }).length;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n activities: (0, _object.computed)(\"announcements.@each.{id,unread_count}\", \"assignments.@each.{comments,grade,id,numUngradedSubmissions,submissions,teacher_requires_resubmission}\", \"discussions.@each.{id,unread_count}\", \"filterType\", function () {\n var discussions = this.discussions || [],\n announcements = this.announcements || [],\n assignments = this.assignments || [],\n stream = (0, _array.A)(),\n ac = assignments.get(\"content\"),\n i,\n z,\n bc,\n cc,\n currentComment,\n comments = [],\n gDate,\n compareDates = function compareDates(a, b) {\n if (a.date < b.date) {\n return 1;\n } else if (a.date > b.date) {\n return -1;\n }\n return 0;\n };\n moment.tz.add([\"EST|EST|50|0|\", \"America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6\"]);\n\n // Find latest response time for each assignment\n // If there are none, go with assignment update time\n // BUT - Only if the filter isn't set to 'assignments'\n // IF it is - assignments should only filter by due date\n if (this.filterType !== \"assignments\") {\n if (!!ac && ac.length > 0) {\n for (i = 0; i < ac.length; i++) {\n if (!ac[i].record.get) {\n break;\n }\n bc = ac[i].record.get(\"submissions.arrangedContent.arrangedContent\");\n if (bc) {\n for (z = 0; z < bc.length; z++) {\n cc = bc[z].get(\"comments.arrangedContent.arrangedContent\");\n currentComment = cc[cc.length - 1] || false;\n if (currentComment) {\n comments.push({\n date: currentComment.get(\"created_at\"),\n postTime: moment(currentComment.get(\"created_at\")).tz(\"America/New_York\").calendar()\n });\n }\n }\n }\n if (comments.length > 0) {\n comments.sort(compareDates);\n ac[i].record.set(\"lastResponse\", comments[0]);\n }\n comments = [];\n }\n }\n }\n\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.isInstructor\")) {\n assignments = assignments.filter(function (assignment) {\n var now = moment(),\n assignmentDue = moment(assignment.get(\"due_at\"));\n return assignmentDue < now || assignment.get(\"dueWithinOneWeek\") || assignment.get(\"dueWithinTwoWeeks\") || !assignment.get(\"due_at\");\n });\n discussions = discussions.filter(function (discussion) {\n var now = moment(),\n discussionDue = moment(discussion.get(\"due_at\"));\n return !discussion.get(\"is_required\") || !discussion.get(\"due_at\") || discussionDue < now || discussion.get(\"dueWithinOneWeek\") || discussion.get(\"dueWithinTwoWeeks\");\n });\n }\n stream.pushObjects(discussions);\n stream.pushObjects(announcements);\n stream.pushObjects(assignments);\n\n // Conventionalize date format, so Ember can perform sorting properly\n for (i = 0; i < stream.length; i++) {\n if (stream[i].get(\"date\") === stream[i].get(\"lastResponse.date\")) {\n gDate = stream[i].get(\"due_at\") || stream[i].get(\"lastResponse.date\");\n } else {\n gDate = stream[i].get(\"lastResponse.date\") || stream[i].get(\"due_at\");\n }\n if (gDate) {\n stream[i].set(\"sortDate\", moment(gDate).toISOString());\n }\n }\n return _proxy.default.extend({\n content: stream,\n sorted: (0, _computed.sort)(\"content\", \"sortProperties\"),\n sortProperties: this.sortProperties\n }).create();\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n unreadCountActivities: (0, _object.computed)(\"numRequiredDiscussions\", \"numUnrequiredDiscussions\", \"numUnreadAnnouncements\", \"numSubmissionsNeedAttention\", \"numAssignmentsNeedAttention\", function () {\n var retval = this.numRequiredDiscussions + this.numUnrequiredDiscussions + this.numUnreadAnnouncements;\n\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.isInstructor\")) {\n return retval + this.numSubmissionsNeedAttention;\n } else {\n return retval + this.numAssignmentsNeedAttention;\n }\n }),\n unfinishedCountWork: (0, _object.computed)(\"work\", \"discussions.@each.i_submitted\", \"assignments.@each.{currentUserSubmission,teacher_requires_resubmission}\", function () {\n var work = this.work,\n num_assns = work.filter(function (w) {\n return w.activity_type === \"assignment\";\n }).filter(function (a) {\n return !a.get(\"locked\") && (!a.get(\"currentUserSubmission\") || a.get(\"teacher_requires_resubmission\") === \"needs_resubmit\");\n }).length,\n num_discs = work.filter(function (w) {\n return w.activity_type === \"discussion\";\n }).filter(function (d) {\n return !d.get(\"locked\") && !d.get(\"i_submitted\");\n }).length;\n return num_assns + num_discs;\n }),\n viewInLesson: (0, _object.action)(function (assignment_id) {\n var that = this;\n this.store.findRecord(\"item\", assignment_id).then(function (item) {\n var lessonId = item.get(\"lesson\").id;\n if (lessonId) {\n that.router.transitionTo(\"classroom.lessons\", lessonId, assignment_id);\n }\n }, function () {\n (0, _debug.debug)(\"Can't find lesson that contains assignment.\");\n });\n }),\n filterActivities: (0, _object.action)(function (filterType, unread) {\n // Grab value of select when a dropdown filter is used\n if (_typeof(unread) === \"object\") {\n unread = unread.target.value;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .styled-select\").addClass(\"current\");\n }\n var ungraded = unread === \"ungraded\";\n var resubmission = unread === \"resubmission\";\n var comments = unread === \"comments\";\n var ungraded_and_unread = unread === \"new\";\n if (filterType === \"assignments\" && !unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .styled-select option\").removeAttr(\"selected\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .styled-select\").removeClass(\"current\");\n }\n if (unread === \"all\") {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .styled-select\").removeClass(\"current\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .filter-label.assignments\").addClass(\"current\");\n unread = false;\n }\n if (filterType !== \"assignments\") {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .styled-select\").removeClass(\"current\");\n }\n unread = unread === \"unread\" ? true : false;\n this.set(\"filterType\", filterType);\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action button\").removeClass(\"current\");\n if (unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .filter-unread-count.\" + filterType).addClass(\"current\");\n } else if (ungraded) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .filter-ungraded-count.ungraded.\" + filterType).addClass(\"current\");\n } else if (resubmission) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .filter-ungraded-count.pending-resubmit.\" + filterType).addClass(\"current\");\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activity-filters .filter-action .filter-label.\" + filterType).addClass(\"current\");\n }\n switch (filterType) {\n case \"discussions\":\n if (unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.unread:not(.requiredDiscussion)\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.read:not(.requiredDiscussion)\").hide();\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion:not(.requiredDiscussion)\").show();\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.requiredDiscussion\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom .side-panel\").scrollTop(0);\n break;\n case \"requiredDiscussions\":\n if (unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.unread.requiredDiscussion\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.read.requiredDiscussion\").hide();\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.requiredDiscussion\").show();\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion:not(.requiredDiscussion)\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom .side-panel\").scrollTop(0);\n break;\n case \"announcements\":\n if (unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement.unread\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement.read\").hide();\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement\").show();\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom .side-panel\").scrollTop(0);\n break;\n case \"assignments\":\n if (unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.requires-attention\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.requires-attention)\").hide();\n } else if (ungraded) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.has_ungraded\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.has_ungraded)\").hide();\n } else if (resubmission) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.needs_resubmit\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.needs_resubmit)\").hide();\n } else if (comments) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.has_comments\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.has_comments)\").hide();\n } else if (ungraded_and_unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.has_ungraded\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.has_comments\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.has_comments):not(.has_ungraded)\").hide();\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment\").show();\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom .side-panel\").scrollTop(0);\n break;\n case \"all\":\n if (unread) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.unread:not(.requiredDiscussion)\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.read:not(.requiredDiscussion)\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.unread.requiredDiscussion\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion.read.requiredDiscussion\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement.unread\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement.read\").hide();\n\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"session.isInstructor\")) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.requires-attention\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.requires-attention)\").hide();\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment:not(.has_ungraded), .activities:not(.work) .assignment:not(.has_comments)\").hide();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.has_ungraded, .activities:not(.work) .assignment.has_comments\").show();\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment.needs_resubmit\").show();\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .discussion\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .announcement\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".activities:not(.work) .assignment\").show();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".classroom .side-panel\").scrollTop(0);\n }\n break;\n default:\n break;\n }\n })\n });\n});","define(\"bocce/controllers/events\", [\"exports\", \"@ember/object/computed\", \"@ember/controller\", \"@ember/service\", \"bocce/mixins/enmodal\", \"@ember/object\", \"bocce/controllers/classroom/live/event-new\", \"jquery\"], function (_exports, _computed, _controller, _service, _enmodal, _object, _eventNew, _jquery) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/controller\",0,\"@ember/service\",0,\"bocce/mixins/enmodal\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"bocce/controllers/classroom/live/event-new\",0,\"jquery\"eaimeta@70e063a35619d71f\n // app/controllers/events.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-observers */\n var _default = _exports.default = _controller.default.extend(_enmodal.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.sortChatsBy = this.sortChatsBy || [\"startAt\"];\n this.sortPastChatsBy = this.sortPastChatsBy || [\"startAt:desc\"];\n },\n event: (0, _controller.inject)(\"classroom.event\"),\n classroom: (0, _controller.inject)(),\n session: (0, _service.inject)(),\n eventsService: (0, _service.inject)(\"events\"),\n userprofileService: (0, _service.inject)(\"userprofile\"),\n accessibility: (0, _service.inject)(),\n application: (0, _controller.inject)(),\n // required by WebexMixin\n events: (0, _controller.inject)(),\n // required by WebexMixin\n newStudentEvent: (0, _controller.inject)(\"classroom.student-event-new\"),\n // required by WebexMixin\n\n showOnlyInstructorChats: false,\n upcomingChatsExpanded: false,\n /* eslint-disable-next-line ember/no-observers */\n instructorChatsFilterObserver: (0, _object.observer)(\"showOnlyInstructorChats\", function () {\n if (!this.showOnlyInstructorChats) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".events-instructor-chat-toggle-container\").removeClass(\"checked\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".event.student-chat\").removeClass(\"hidden\");\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".events-instructor-chat-toggle-container\").addClass(\"checked\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".event.student-chat\").addClass(\"hidden\");\n }\n }),\n //I can't get ember to update 'runnable' in the event model. So, using an observer here to force the property update.\n sessionTimeChanged: (0, _object.observer)(\"session.time\", function () {\n this.eventsList.forEach(function (e) {\n e.notifyPropertyChange(\"runnable\");\n });\n }),\n pastChats: (0, _object.computed)(\"eventsList.[]\", \"session.time\", \"sesssion.user\", function () {\n var now = new Date(),\n currentUserAcsId = this.get(\"session.user.acsUserId\"),\n isInstructor = this.get(\"session.isInstructor\"),\n isStaff = this.get(\"session.isStaff\"),\n canShow = true;\n var pastChats = this.eventsList.filter(function (e) {\n var hasMedia = e.get(\"meetings.length\") > 0 || e.get(\"s3Recordings.length\") > 0 || e.get(\"kalturaRecordings.length\") > 0,\n isPastTime = moment(e.get(\"endAt\")) < now;\n if (e.get(\"privateLessonStudentId\")) {\n canShow = e.get(\"privateLessonStudentId\") === currentUserAcsId || isInstructor || isStaff;\n }\n return isPastTime && canShow && hasMedia;\n });\n return pastChats;\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n currentChat: (0, _object.computed)(\"eventsList.[]\", \"session.{time,runningChatMeetingKey}\", function () {\n var _this = this;\n if (!this.session.runningChatMeetingKey) {\n return null;\n }\n var chats = this.sortedChats;\n if (!chats || chats.get(\"length\") === 0) {\n return null;\n }\n chats = chats.filter(function (chat) {\n if (chat.meeting_key != _this.session.runningChatMeetingKey) {\n return false;\n }\n if (chat.get(\"privateLessonStudentId\")) {\n return chat.get(\"privateLessonStudentId\") === _this.get(\"session.user.acsUserId\") || _this.get(\"session.isInstructor\") || _this.get(\"session.isStaff\");\n }\n return true;\n });\n if (chats.get(\"length\") === 0) {\n return null;\n }\n return chats.objectAt(0);\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n upcomingChats: (0, _object.computed)(\"eventsList.[]\", \"session.time\", \"currentChat\", function () {\n var now = new Date(),\n chats = this.eventsList,\n cur = this.currentChat,\n currentUserAcsId = this.get(\"session.user.acsUserId\"),\n isInstructor = this.get(\"session.isInstructor\"),\n isStaff = this.get(\"session.isStaff\"),\n canShow = true;\n if (chats.get(\"length\") === 0) {\n return [];\n }\n\n // JRW: If it's a Private Lesson, set the late start time to 15 minutes\n // If not, broaden the window to 30 minutes\n /* eslint-disable-next-line ember/no-get */\n var chatWindowInMinutes = this.get(\"session.course.isPrivateLesson\") ? 15 : 30;\n return chats.filter(function (e) {\n var canStart = moment(e.get(\"startAt\")) > now - chatWindowInMinutes * 60 * 1000,\n isNotCurrent = !cur || !cur.id || e.id != cur.id;\n if (e.get(\"privateLessonStudentId\")) {\n canShow = e.get(\"privateLessonStudentId\") === currentUserAcsId || isInstructor || isStaff;\n }\n return canStart && isNotCurrent && canShow;\n });\n }),\n // NK: I'm reworking otherSectionChats to be an observer here, because\n // the computed property introduces side effects. Ideally we'll be\n // able to rewrite this at some point so that we can use only\n // computed properties.\n /* eslint-disable-next-line ember/no-observers */\n otherSectionChatsObserver: (0, _object.observer)(\"upcomingChats\", function () {\n var _this2 = this;\n // JRW: If the next chat starts within +/-10 minutes, check if it's a multisection chat.\n // If it is, set the model of the event controller to get the otherSectionChats\n // computed property.\n var chats = this.sortedUpcomingChats.filter(function (e) {\n return !e.get(\"isStudentChat\");\n }),\n now = moment(),\n tenMinutesInMilliseconds = 1000 * 60 * 10,\n nextUpcomingChat = chats.objectAt(0),\n otherSectionChatsPromise;\n\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"session.isInstructor\") && nextUpcomingChat) {\n var start = moment(nextUpcomingChat.get(\"startAt\"));\n if (start - tenMinutesInMilliseconds < now && start + tenMinutesInMilliseconds > now) {\n this.set(\"isWorking\", true);\n otherSectionChatsPromise = this.eventsService.getOtherSectionChats(this.classroom.get(\"userSectionCodes\"), nextUpcomingChat.get(\"title\"), nextUpcomingChat.get(\"startAt\")).then(function (otherSectionChats) {\n // Attach the otherSectionChats event to the events list controller and send the length\n // of the array to the otherSectionChatsPromise handler\n _this2.set(\"isWorking\", false);\n if (Array.isArray(otherSectionChats) && otherSectionChats.length !== 0) {\n _this2.set(\"otherSectionChats\", otherSectionChats);\n return otherSectionChats.length;\n } else {\n return 0;\n }\n });\n\n //return the DS.PromiseObject (and its result)\n return otherSectionChatsPromise.then(function (result) {\n _this2.set(\"hasOtherSectionChats\", result !== 0);\n });\n }\n }\n\n // default to false - doesn't get here if isInstructor is true and there's a chat to check\n return this.set(\"hasOtherSectionChats\", false);\n }),\n // Returns the next chat, if it starts within 30 minutes from now\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n chatStartingSoon: (0, _object.computed)(\"upcomingChats\", \"session.time\", function () {\n var candidate = this.sortedUpcomingChats.objectAt(0);\n if (!candidate) {\n return null;\n }\n var start = moment(candidate.get(\"startAt\"));\n if (start - moment() < 1800000) {\n return candidate;\n }\n return null;\n }),\n eventsList: (0, _computed.reads)(\"session.course.events\"),\n eventsLoaded: (0, _computed.reads)(\"classroom.eventsLoaded\"),\n otherCurrentTermSections: (0, _computed.reads)(\"classroom.otherCurrentTermSections\"),\n sortedChats: (0, _computed.sort)(\"eventsList\", \"sortChatsBy\"),\n sortedUpcomingChats: (0, _computed.sort)(\"upcomingChats\", \"sortChatsBy\"),\n sortedPastChats: (0, _computed.sort)(\"pastChats\", \"sortPastChatsBy\"),\n hasChats: (0, _object.computed)(\"eventsList.[]\", function () {\n console.log(this.eventsList, this.session.course.events);\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"eventsList.length\") - this.eventsList.filterBy(\"meetings\").filterBy(\"endAt\").length > 0;\n }),\n createSingleSectionQuickEvent: (0, _object.action)(function () {\n if (!this.session.get(\"course.isOpen\")) {\n dialog(\"Live classes can be started when the course opens.\");\n return;\n }\n var now = moment().tz(\"America/New_York\");\n this.set(\"isWorking\", true);\n var section = this.session.get(\"section\");\n var course = section.get(\"course\");\n var courseId = course.get(\"id\");\n var eventDataSingle = {\n event: {\n title: \"Live Class\",\n description: \"\",\n futureEvent: true,\n startAt: now.format(\"YYYY-MM-DDTHH:mm:ss\"),\n endAt: now.add(\"1\", \"hours\").format(\"YYYY-MM-DDTHH:mm:ss\"),\n course: course\n },\n courseIds: [courseId]\n };\n _eventNew.sendEventsToInterfaceAndSendEmail.call(this, [eventDataSingle]);\n }),\n viewEvent: (0, _object.action)(function (event_id) {\n var _this3 = this;\n this.router.transitionTo(\"classroom.event\", event_id, {\n queryParams: {\n backup_code: false\n }\n }).then(function () {\n _this3.accessibility.focus([\".event-panel .event-panel__title\", \".event-panel\"], false, \"Unable to open event\", 500);\n }).catch(function (error) {});\n }),\n dismissStartChatConfirmation: (0, _object.action)(function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".chat-confirmation\").addClass(\"hidden\");\n }),\n toggleExpandUpcomingChats: (0, _object.action)(function () {\n this.toggleProperty(\"upcomingChatsExpanded\");\n }),\n toggleInstructorChats: (0, _object.action)(function () {\n this.set(\"showOnlyInstructorChats\", !this.showOnlyInstructorChats);\n })\n });\n});","define(\"bocce/controllers/index\", [\"exports\", \"@ember/controller\", \"bocce/mixins/menus\", \"@ember/object\", \"@ember/service\"], function (_exports, _controller, _menus, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/controller\",0,\"bocce/mixins/menus\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n // app/controllers/index.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_menus.default, {\n userprofileService: (0, _service.inject)(\"userprofile\"),\n nextTerm: (0, _object.computed)(\"model.terms.length\", function () {\n return {};\n }),\n previousTerm: (0, _object.computed)(\"model.terms.length\", function () {\n return {};\n }),\n currentTerm: (0, _object.computed)(\"model.terms.length\", function () {\n /* eslint-disable-next-line ember/no-get */\n var terms = this.get(\"model.terms\"),\n best;\n if (!terms || terms.length === 0) {\n return {};\n }\n best = terms.at(0);\n if (terms.length > 1) {\n // do something here with startsOn.\n }\n return best;\n })\n });\n});","define(\"bocce/controllers/notifications\", [\"exports\", \"@ember/object/computed\", \"@ember/debug\", \"@ember/controller\", \"@ember/service\", \"bocce/mixins/menus\", \"@ember/object\", \"jquery\", \"bocce/utilities/logout\"], function (_exports, _computed, _debug, _controller, _service, _menus, _object, _jquery, _logout) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/debug\",0,\"@ember/controller\",0,\"@ember/service\",0,\"bocce/mixins/menus\",0,\"@ember/object\",0,\"jquery\",0,\"bocce/utilities/logout\"eaimeta@70e063a35619d71f\n // app/controllers/notifications.js\n /* eslint-disable-next-line ember/no-mixins */\n var _default = _exports.default = _controller.default.extend(_menus.default, {\n router: (0, _service.inject)(),\n store: (0, _service.inject)(),\n confirmDialog: (0, _service.inject)(),\n prefPanelOn: false,\n notifications: (0, _object.computed)(function () {\n // Uncomment to display notifications!\n // return this.store.findAll('notification');\n return false;\n }),\n totalNotifications: (0, _computed.reads)(\"notifications.length\"),\n clearAll: (0, _object.action)(function () {\n var that = this;\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n url: \"/interface/notifications/\",\n type: \"DELETE\",\n success: function success() {\n that.get(\"notifications\").clear();\n that.set(\"haveNotifications\", false);\n }\n });\n }),\n logOut: (0, _object.action)(function () {\n (0, _logout.default)();\n }),\n /* eslint-disable-next-line ember/no-get */\n goLink: (0, _object.action)(function (type) {\n /* eslint-disable-next-line ember/no-get */\n var currentUser = this.get(\"session.user\");\n switch (type) {\n case \"home\":\n window.open(\"https://online.berklee.edu/my_home\", \"_blank\");\n break;\n case \"forum\":\n var discourseUrl = this.get(\"session.discourseUrl\");\n window.open(discourseUrl, \"_blank\");\n break;\n case \"dashboard\":\n window.open(\"https://\" + window.location.hostname + \"/#/dashboard\", \"_blank\");\n break;\n case \"profile\":\n window.open(\"http://network.online.berklee.edu/home\", \"_blank\");\n break;\n case \"help\":\n window.open(\"https://online.berklee.edu/help\", \"_blank\");\n break;\n case \"advisor\":\n window.open(\"https://online.berklee.edu/about/contact-us\", \"_blank\");\n break;\n case \"library\":\n window.open(\"https://online.berklee.edu/school/lms/library-links\", \"_blank\");\n break;\n case \"materials\":\n window.open(\"https://online.berklee.edu/school/lms/requirements\", \"_blank\");\n break;\n case \"policies\":\n window.open(\"https://online.berklee.edu/about/berklee-online-general-policies\", \"_blank\");\n break;\n case \"doodle\":\n window.open(\"http://www.doodle.com\", \"_blank\");\n break;\n case \"meetup\":\n window.open(\"http://www.meetup.com\", \"_blank\");\n break;\n case \"calendar\":\n var icsLink = \"https://\" + window.location.hostname + \"/interface/calendar-export/\" + currentUser.get(\"calendarHash\"),\n bodyMarkup = \"\";\n /* eslint-disable-next-line ember/no-jquery */\n if (!_jquery.default.isMobile) {\n bodyMarkup += '';\n }\n bodyMarkup += \"
    or download the feed.\";\n var message = \"Copy the link below and paste it into any calendar app that takes iCal feeds (Google Calendar, iCal, Outlook, etc.)\";\n this.confirmDialog.show({\n subtitle: message,\n choices: [\"Dismiss\"],\n body: bodyMarkup\n });\n break;\n default:\n break;\n }\n }),\n // Delete the record for the given notification id\n dismissNotification: (0, _object.action)(function (id) {\n this.store.findRecord(\"notification\", id).then(function (post) {\n post.destroyRecord();\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".user-menu\").click();\n }, function (err) {\n (0, _debug.debug)(\"Could not delete notification.\", err);\n });\n }),\n // Transition to the Route for the given modal type+id\n travelToNotification: (0, _object.action)(function (type, id) {\n this.router.transitionTo(\"classroom.\".concat(type), id);\n }),\n closePrefPanel: (0, _object.action)(function () {\n this.set(\"prefPanelOn\", false);\n }),\n openPrefPanel: (0, _object.action)(function () {\n this.set(\"prefPanelOn\", true);\n })\n });\n});","define(\"bocce/data-adapter\", [\"exports\", \"@ember-data/debug/data-adapter\"], function (_exports, _dataAdapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _dataAdapter.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/data-adapter\"eaimeta@70e063a35619d71f\n});","define(\"bocce/deprecation-workflow\", [\"ember-cli-deprecation-workflow\"], function (_emberCliDeprecationWorkflow) {\n \"use strict\";\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-deprecation-workflow\"eaimeta@70e063a35619d71f\n /**\n * Docs: https://github.com/ember-cli/ember-cli-deprecation-workflow\n */\n (0, _emberCliDeprecationWorkflow.default)({\n /**\n false by default, but if a developer / team wants to be more aggressive about being proactive with\n handling their deprecations, this should be set to \"true\"\n */\n throwOnUnhandled: false,\n workflow: [\n /* ... handlers ... */\n /* to generate this list, run your app for a while (or run the test suite),\n * and then run in the browser console:\n *\n * deprecationWorkflow.flushDeprecations()\n *\n * And copy the handlers here\n */\n /* example: */\n /* { handler: 'silence', matchId: 'template-action' }, */\n ]\n });\n});","define(\"bocce/helpers/and\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.and = and;\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function and(params) {\n var _iterator = _createForOfIteratorHelper(params),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var p = _step.value;\n if (!p) {\n return false;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return true;\n }\n var _default = _exports.default = (0, _helper.helper)(and);\n});","define(\"bocce/helpers/app-version\", [\"exports\", \"@ember/component/helper\", \"bocce/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _helper, _environment, _regexp) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.appVersion = appVersion;\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"bocce/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n function appVersion(_) {\n var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var version = _environment.default.APP.version;\n // e.g. 1.0.0-alpha.1+4jds75hf\n\n // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n var versionOnly = hash.versionOnly || hash.hideSha;\n var shaOnly = hash.shaOnly || hash.hideVersion;\n var match = null;\n if (versionOnly) {\n if (hash.showExtended) {\n match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n }\n // Fallback to just version\n if (!match) {\n match = version.match(_regexp.versionRegExp); // 1.0.0\n }\n }\n if (shaOnly) {\n match = version.match(_regexp.shaRegExp); // 4jds75hf\n }\n return match ? match[0] : version;\n }\n var _default = _exports.default = (0, _helper.helper)(appVersion);\n});","define(\"bocce/helpers/array-item\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.arrayItem = arrayItem;\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function arrayItem(params /*, hash*/) {\n var array = params[0];\n var index = params[1];\n return array[index];\n }\n var _default = _exports.default = (0, _helper.helper)(arrayItem);\n});","define(\"bocce/helpers/calendar\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/calendar.js\n // Convert date into calendar form with Moment.JS\n var _default = _exports.default = (0, _helper.helper)(function (date) {\n if (date.length === 0) {\n return \"Date Incorrect\";\n }\n return moment(date[0]).tz(\"America/New_York\").calendar();\n });\n});","define(\"bocce/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _cancelAll.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/cancel-all\"eaimeta@70e063a35619d71f\n});","define(\"bocce/helpers/contains\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/same.js\n // Check if two provided strings are the same\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var compare = inp[0],\n search = inp[1],\n compareTo = inp[2];\n if (search && search.length > 0) {\n return String(search[compareTo]) === String(compare);\n }\n return false;\n });\n});","define(\"bocce/helpers/correct\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/correct.js\n // Check if question is correct\n var _default = _exports.default = (0, _helper.helper)(function (mod) {\n var answer;\n if (!!mod[0] && !!mod[0].findBy) {\n if (!mod[1]) {\n answer = mod[0].filter(function (q) {\n return q.correct === true;\n });\n return answer.length;\n }\n answer = mod[0].find(function (q) {\n return q.question_id === parseInt(mod[1]);\n });\n if (answer && answer.correct) {\n return answer.correct ? \"correct\" : \"incorrect\";\n } else {\n return \"pending\";\n }\n } else {\n return \"pending\";\n }\n });\n});","define(\"bocce/helpers/dashify\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/dashify.js\n // Turn string to dashed string\n var _default = _exports.default = (0, _helper.helper)(function (dec) {\n var item = dec[0];\n return item.replace(/\\s+/g, \"-\").toLowerCase();\n });\n});","define(\"bocce/helpers/decode\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.decode = decode;\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/decode.js\n // Decode URI-style properties\n var _default = _exports.default = (0, _helper.helper)(function (dec) {\n var item = dec.join(\" \");\n return decode(item);\n });\n function decode(stringToDecode) {\n if (!stringToDecode) {\n return stringToDecode;\n }\n var retval = \"\";\n try {\n retval = decodeURIComponent(stringToDecode);\n } catch (err) {\n retval = unescape(stringToDecode);\n }\n return retval;\n }\n});","define(\"bocce/helpers/diff\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.diff = diff;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n function diff(_ref /*, hash*/) {\n var _ref2 = _slicedToArray(_ref, 2),\n a = _ref2[0],\n b = _ref2[1];\n return a !== b;\n }\n var _default = _exports.default = (0, _helper.helper)(diff);\n});","define(\"bocce/helpers/difference\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/sum.js\n // Check if two provided strings are the same\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var first = inp[0],\n second = inp[1];\n return parseInt(first) - parseInt(second);\n });\n});","define(\"bocce/helpers/dropdown-scale\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/dropdown-scale.js\n // Produce an array of sequential numbers\n var _default = _exports.default = (0, _helper.helper)(function (counter) {\n var total = parseInt(counter[0]),\n arr = [\"-\"];\n if (typeof total !== \"number\") {\n return false;\n }\n for (var i = 0; i < total; i++) {\n arr.push(i + 1);\n }\n return arr;\n });\n});","define(\"bocce/helpers/due-date-class\", [\"exports\", \"@ember/component/helper\", \"bocce/utils/format-due-date\"], function (_exports, _helper, _formatDueDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"bocce/utils/format-due-date\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n /**\n * {{due-date-class dateString}} → \"is-overdue\" | \"is-due-soon\" | \"\"\n */\n var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n dateString = _ref2[0];\n return (0, _formatDueDate.dueDateClass)(dateString);\n });\n});","define(\"bocce/helpers/epoch-to-dayhr\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/epoch-to-dayhr.js\n // Convert epoch time to days and hours\n var _default = _exports.default = (0, _helper.helper)(function (item) {\n if (!item) {\n return false;\n }\n // Convert seconds to hours/days in string form (e.g. 1d 2h)\n var days = Math.floor(item / 86400);\n var hours = Math.floor(item % 86400 / 3600);\n var dayString = days > 0 ? days + \"d \" : \"\";\n var hourString = hours > 0 ? hours + \"h\" : \"\";\n return dayString + hourString;\n });\n});","define(\"bocce/helpers/eq\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/eq.js\n // Compare two values in a way that {{#if}} is happy\n var _default = _exports.default = (0, _helper.helper)(function (params) {\n return params[0] === params[1];\n });\n});","define(\"bocce/helpers/feature-flag\", [\"exports\", \"ember-feature-flags/helpers/feature-flag\"], function (_exports, _featureFlag) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _featureFlag.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-feature-flags/helpers/feature-flag\"eaimeta@70e063a35619d71f\n});","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\ndefine(\"bocce/js/quizzes/quizzes\", [\"exports\", \"@glimmer/tracking\", \"@ember/object\", \"@ember/service\", \"@ember/runloop\", \"bocce/utilities/timer\", \"bocce/utilities/promise-queue\", \"@ember/application\", \"jquery\", \"bocce/config/environment\", \"@ember/debug\", \"lodash.isequal\"], function (_exports, _tracking, _object, _service, _runloop, _timer, _promiseQueue, _application, _jquery, _environment, _debug, _lodash) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor0, _descriptor1, _descriptor10, _descriptor11, _descriptor12, _descriptor13;\n /***\n *\n ********* **********\n * Do not import\n * { inject as service } from \"@ember/service\"\n *\n * It won't work due to how this file is used. Look at confirmDialog\n * for the proper pattern to use.\n *\n ********* **********\n * ****/\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/runloop\",0,\"bocce/utilities/timer\",0,\"bocce/utilities/promise-queue\",0,\"@ember/application\",0,\"jquery\",0,\"bocce/config/environment\",0,\"@ember/debug\",0,\"lodash.isequal\"eaimeta@70e063a35619d71f\n function _regeneratorValues(e) { if (null != e) { var t = e[\"function\" == typeof Symbol && Symbol.iterator || \"@@iterator\"], r = 0; if (t) return t.call(e); if (\"function\" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + \" is not iterable\"); }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _initializerDefineProperty(e, i, r, l) { r && Object.defineProperty(e, i, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(l) : void 0 }); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, (\"value\" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }\n function _initializerWarningHelper(r, e) { throw Error(\"Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.\"); }\n function shuffle(arr) {\n for (var i = arr.length; i > 0; --i) {\n var j = Math.floor(Math.random() * i);\n var x = arr[i - 1];\n arr[i - 1] = arr[j];\n arr[j] = x;\n }\n }\n var QuizzesService = _exports.default = (_class = /*#__PURE__*/function (_Service) {\n function QuizzesService() {\n var _this;\n _classCallCheck(this, QuizzesService);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _callSuper(this, QuizzesService, [].concat(args));\n /*\n ***** WARNING *****\n Do not import\n import { inject as service } from \"@ember/service\"\n It won't work due to how this file is used.\n Look at confirmDialog for the proper pattern to use.\n */\n _defineProperty(_this, \"quiz\", void 0);\n _initializerDefineProperty(_this, \"questionIndex\", _descriptor, _this);\n _initializerDefineProperty(_this, \"gradingQuiz\", _descriptor2, _this);\n _initializerDefineProperty(_this, \"questionShown\", _descriptor3, _this);\n _initializerDefineProperty(_this, \"maxQuestionIndexUsed\", _descriptor4, _this);\n _initializerDefineProperty(_this, \"hasShownQuizIntercept\", _descriptor5, _this);\n _initializerDefineProperty(_this, \"timeRemaining\", _descriptor6, _this);\n _initializerDefineProperty(_this, \"quizSubmittedInText\", _descriptor7, _this);\n _initializerDefineProperty(_this, \"startingQuiz\", _descriptor8, _this);\n _initializerDefineProperty(_this, \"questionPromises\", _descriptor9, _this);\n _initializerDefineProperty(_this, \"savedAt\", _descriptor0, _this);\n _initializerDefineProperty(_this, \"initialized\", _descriptor1, _this);\n _initializerDefineProperty(_this, \"uploadingQuestion\", _descriptor10, _this);\n _initializerDefineProperty(_this, \"uploadFailed\", _descriptor11, _this);\n _defineProperty(_this, \"nextQuestionCallbacks\", []);\n _initializerDefineProperty(_this, \"showStats\", _descriptor12, _this);\n _initializerDefineProperty(_this, \"questions\", _descriptor13, _this);\n _defineProperty(_this, \"timedQuizSubmissionData\", void 0);\n _defineProperty(_this, \"performedInitialRender\", void 0);\n _defineProperty(_this, \"session\", void 0);\n _defineProperty(_this, \"store\", void 0);\n return _this;\n }\n _inherits(QuizzesService, _Service);\n return _createClass(QuizzesService, [{\n key: \"aggregateQuestions\",\n value: function aggregateQuestions() {\n var questions = [];\n var models = [\"multiple_choices\", \"true_falses\", \"short_answers\", \"multiple_answers\", \"multiple_dropdowns\", \"essays\", \"file_uploads\", \"fill_in_multiple_blanks\"];\n for (var _i = 0, _models = models; _i < _models.length; _i++) {\n var model = _models[_i];\n if (this.quiz.get(model)) {\n var m = this.quiz.get(model);\n m.forEach(function (m2) {\n questions.push(m2);\n });\n }\n }\n this.quiz.quiz_questions = questions;\n }\n }, {\n key: \"initialize\",\n value: function () {\n var _initialize = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(quiz, session, store) {\n var _this2 = this;\n var attempts, owner, arr, quizAttempt, _quizAttempt$get, answers, firstUnansweredQuestionIndex, lastAnsweredQuestionIndex;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n this.quiz = quiz;\n _context.n = 1;\n return this.quiz.attempts;\n case 1:\n attempts = _context.v;\n if (attempts.length > 0) {\n this.quiz.set(\"quiz_attempt\", {\n seeking: true\n });\n this.quiz.set(\"quiz_attempt\", attempts.at(0));\n }\n owner = (0, _application.getOwner)(store) || (0, _application.getOwner)(session) || (0, _application.getOwner)(quiz) || (0, _application.getOwner)(this);\n this.confirmDialog = owner.lookup(\"service:confirm-dialog\");\n this.session = session;\n\n //Quizzes prior to the revamp had quiz questions stored in 'quiz_questions'. Post\n //revamp, they get stored in 'multiple_choices', 'fill_multiple_blanks', etc. So,\n //if there are 'quiz_questions', the quiz is probably archived or on the intro server. In this case,\n //don't copy 'multiple_choices', etc. into 'quiz_questions' as they are already there.\n if (this.quiz.get(\"quiz_questions.length\") == 0) {\n this.aggregateQuestions();\n }\n if (this.quiz.get(\"shuffle\")) {\n arr = this.quiz.get(\"quiz_questions.content.currentState\");\n if (arr) {\n shuffle(arr);\n this.quiz.set(\"quiz_questions.content.currentState\", arr);\n this.quiz.set(\"quiz_questions.content.canonicalState\", arr);\n }\n }\n this.questions = this.quiz.quiz_questions.slice().sort(function (a, b) {\n return a.position > b.position;\n });\n this.questionShown = true;\n this.store = store;\n quizAttempt = this.quiz.get(\"quiz_attempt\");\n this.resetGivenAnswers();\n if (quizAttempt) {\n answers = (_quizAttempt$get = quizAttempt.get(\"answers\")) !== null && _quizAttempt$get !== void 0 ? _quizAttempt$get : null;\n if (answers) {\n this.setQuestionData(answers, true);\n }\n this.timedQuizSubmissionData = {\n id: quizAttempt.get(\"id\"),\n token: quizAttempt.get(\"token\"),\n number: quizAttempt.get(\"number\")\n };\n\n //this.quiz.set('quiz_attempt', {left: this.quiz.get('quiz_attempt.left')});\n\n if (!this.hasTimeLeft || this.hasScore) {\n this.setQuestionIndex(null);\n } else {\n //find the first un-answered question and set the index equal to that.\n firstUnansweredQuestionIndex = null;\n lastAnsweredQuestionIndex = null;\n this.questions.forEach(function (question, index) {\n if (question.hasAnswer) {\n lastAnsweredQuestionIndex = index;\n } else if (!firstUnansweredQuestionIndex) {\n firstUnansweredQuestionIndex = index;\n }\n });\n if (firstUnansweredQuestionIndex) {\n this.setQuestionIndex(firstUnansweredQuestionIndex);\n } else {\n this.setQuestionIndex(0);\n }\n if (lastAnsweredQuestionIndex && lastAnsweredQuestionIndex + 1 > firstUnansweredQuestionIndex) {\n this.maxQuestionIndexUsed = lastAnsweredQuestionIndex + 1;\n if (this.maxQuestionIndexUsed == this.questions.length) {\n this.maxQuestionIndexUsed = this.questions.length - 1;\n }\n }\n }\n } else {\n this.setQuestionIndex(this.quiz.presentation === \"single\" ? 0 : null);\n }\n\n //Quiz is resuming. Start the timer.\n if (this.isTimedQuiz && this.hasTimeLeft && !this.hasScore) {\n this.startTimer();\n }\n this.questions.forEach(function (question) {\n question.quizzes = _this2;\n });\n (0, _runloop.schedule)(\"afterRender\", function () {\n _this2.initialized = true;\n });\n case 2:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n function initialize(_x, _x2, _x3) {\n return _initialize.apply(this, arguments);\n }\n return initialize;\n }()\n }, {\n key: \"resetGivenAnswers\",\n value: function resetGivenAnswers() {\n this.quiz.quiz_questions.forEach(function (question) {\n if (question) {\n var defaultAnswer = question.get(\"default_answer\");\n if (defaultAnswer) {\n defaultAnswer = JSON.parse(JSON.stringify(question.get(\"default_answer\")));\n }\n question.set(\"given_answer\", defaultAnswer);\n }\n });\n }\n }, {\n key: \"answerStats\",\n get: function get() {\n var _this3 = this;\n var stats = this.quiz.question_statistics.find(function (qs) {\n qs.position = _this3.question.position;\n });\n var numResponses = stats.responses;\n var correctResponses = 0;\n var answerStats = {};\n var _iterator = _createForOfIteratorHelper(stats.answers),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var answer = _step.value;\n if (answer.correct) {\n correctResponses += answer.user_ids.length;\n }\n answerStats[answer.id] = {};\n answerStats[answer.id].responsePercentage = answer.user_ids.length / numResponses;\n answerStats[answer.id].userNames = answer.user_names;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return answerStats;\n }\n }, {\n key: \"getAnswerStats\",\n value: function getAnswerStats(answerId) {\n return this.questionStatistics.answers[answerId];\n }\n }, {\n key: \"showQuizIntercept\",\n get: function get() {\n return (this.isTimedQuiz && !this.hasTimeLeft || this.previousQuestionsLocked) && !this.hasScore && !this.hasShownQuizIntercept;\n }\n }, {\n key: \"hasAttempt\",\n get: function get() {\n return this.quiz.get(\"quiz_attempt\") != null;\n }\n }, {\n key: \"hasTimeLeft\",\n get: function get() {\n return this.quiz.get(\"quiz_attempt.started_at\") && this.quiz.get(\"quiz_attempt.end_at\") && moment().unix() >= moment(this.quiz.get(\"quiz_attempt.started_at\")).unix() && moment().unix() < moment(this.quiz.get(\"quiz_attempt.end_at\")).unix();\n }\n }, {\n key: \"isRetrying\",\n get: function get() {\n return this.get(\"quiz.quiz_attempt.retrying\");\n }\n }, {\n key: \"quizTimeLimit\",\n get: function get() {\n var timeLimit = this.quiz.time_limit_minutes;\n return \"\".concat(timeLimit, \" Minute\").concat(timeLimit > 1 ? \"s\" : \"\");\n }\n }, {\n key: \"gradedQuestions\",\n get: function get() {\n return this.questions.filter(function (v) {\n return v.correct && v.correct != \"undefined\";\n });\n }\n }, {\n key: \"correctQuestions\",\n get: function get() {\n return this.questions.filter(function (v) {\n return v.correct && v.correct == \"correct\";\n });\n }\n }, {\n key: \"notGradedQuestions\",\n get: function get() {\n return this.questions.filter(function (v) {\n return v.correct && v.correct == \"undefined\";\n });\n }\n }, {\n key: \"quizNotFullyGraded\",\n get: function get() {\n return this.notGradedQuestions.length > 0;\n }\n }, {\n key: \"question\",\n get: function get() {\n if (this.questionIndex != null && this.questionIndex >= 0 && this.questionIndex < this.questions.length) {\n return this.questions.at(this.questionIndex);\n } else {\n return null;\n }\n }\n }, {\n key: \"questionIndexPostfix\",\n get: function get() {\n return this.get(\"quiz.presentation\") === \"single\" ? \" of \".concat(this.questions.length) : \"\";\n }\n }, {\n key: \"isGraded\",\n get: function get() {\n return this.get(\"quiz.is_graded\");\n }\n }, {\n key: \"score\",\n get: function get() {\n return this.get(\"quiz.quiz_attempt.score\");\n }\n }, {\n key: \"getQuizAnswers\",\n value: function () {\n var _getQuizAnswers = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {\n var answers, _iterator2, _step2, question, answer, _t;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.p = _context2.n) {\n case 0:\n answers = [];\n _iterator2 = _createForOfIteratorHelper(this.questions);\n _context2.p = 1;\n _iterator2.s();\n case 2:\n if ((_step2 = _iterator2.n()).done) {\n _context2.n = 5;\n break;\n }\n question = _step2.value;\n _context2.n = 3;\n return question.getAnswer();\n case 3:\n answer = _context2.v;\n if (!(0, _lodash.default)(answer, question.default_answer)) {\n answers.push({\n question_id: question.id,\n answer: answer\n });\n }\n case 4:\n _context2.n = 2;\n break;\n case 5:\n _context2.n = 7;\n break;\n case 6:\n _context2.p = 6;\n _t = _context2.v;\n _iterator2.e(_t);\n case 7:\n _context2.p = 7;\n _iterator2.f();\n return _context2.f(7);\n case 8:\n return _context2.a(2, answers);\n }\n }, _callee2, this, [[1, 6, 7, 8]]);\n }));\n function getQuizAnswers() {\n return _getQuizAnswers.apply(this, arguments);\n }\n return getQuizAnswers;\n }()\n }, {\n key: \"hasScore\",\n get: function get() {\n return this.score != null;\n }\n }, {\n key: \"isTimedQuiz\",\n get: function get() {\n return this.get(\"quiz.time_limit_minutes\") > 0;\n }\n }, {\n key: \"isScoredTimedQuizWithRemainingAttempts\",\n get: function get() {\n return this.isTimedQuiz && this.hasScore && (this.quiz.quiz_attempt.left > 0 || this.quiz.allowed_attempts == -1);\n }\n }, {\n key: \"previousQuestionsLocked\",\n get: function get() {\n return this.get(\"quiz.cant_go_back\") && this.get(\"quiz.presentation\") === \"single\";\n }\n }, {\n key: \"timeRemainingMinutes\",\n get: function get() {\n return this.timeRemaining != null ? Math.floor(this.timeRemaining / 60) : null;\n }\n }, {\n key: \"timeRemainingSeconds\",\n get: function get() {\n return this.timeRemaining != null ? this.timeRemaining % 60 : null;\n }\n }, {\n key: \"timeRemainingFormatted\",\n get: function get() {\n if (this.timeRemainingMinutes != null && this.timeRemainingSeconds != null) {\n var minutesFormatted = new String(this.timeRemainingMinutes).padStart(2, \"0\");\n var secondsFormatted = new String(this.timeRemainingSeconds).padStart(2, \"0\");\n return \"\".concat(minutesFormatted, \":\").concat(secondsFormatted);\n } else {\n return \"\";\n }\n }\n\n /**\n * This is used by the root-level quiz template (app/components/classroom/lessons/quiz-content.hbs) to render the specific\n * quiz type, of which there are five:\n * - quiz-scenarios/quiz-all-graded.hbs: all questions are shown at once for a graded quiz.\n * - quiz-scenarios/quiz-all.hbs: all questions are shown at once for a not-graded quiz.\n * - quiz-scenarios/quiz-single-graded-results.hbs: results are shown for a single-question-at-a-time graded quiz.\n * - quiz-scenarios/quiz-single-graded-reviewing.hbs: student is reviewing individual question results for a\n * single-questions-at-a-time graded quiz.\n * - quiz-scenarios/quiz-single.hbs: one question shown at a time for a not-graded quiz.\n **/\n }, {\n key: \"component\",\n get: function get() {\n var type = this.quizType;\n return type == \"dummy-component\" ? type : \"quiz-scenarios/\".concat(type);\n }\n }, {\n key: \"quizType\",\n get: function get() {\n var graded = this.hasScore;\n var presentation = this.quiz.presentation;\n var questionIndex = this.questionIndex;\n var type = \"dummy-component\";\n if (this.showQuizIntercept) {\n type = \"quiz-intercept\";\n } else if (presentation == \"all\") {\n if (graded) {\n type = \"quiz-all-graded\";\n } else {\n type = \"quiz-all\";\n }\n } else if (presentation == \"single\") {\n if (!graded) {\n type = \"quiz-single\";\n } else if (graded && questionIndex == null) {\n type = \"quiz-single-graded-results\";\n } else if (graded && questionIndex >= 0) {\n type = \"quiz-single-graded-reviewing\";\n }\n }\n return type;\n }\n\n /**\n * Sets question data given 'answers' returned by interface.\n */\n }, {\n key: \"setQuestionData\",\n value: function setQuestionData(answers, updateGivenAnswer) {\n if (answers) {\n this.questions.forEach(function (question) {\n var answer = answers.find(function (_ref) {\n var question_id = _ref.question_id;\n return question_id == question.id;\n });\n if (answer) {\n if (updateGivenAnswer && answer.answer !== undefined) {\n question.set(\"given_answer\", answer.answer);\n }\n\n /**\n * Possible values for answer.correct:\n * undefined: manually graded question without a score\n * defined: manually graded question with a score\n * partial: partially right answer, ex: multiple fill in the blanks\n * where one of the blanks is right and the other is wrong\n * correct/incorrect: fully right or wrong answer, ex: multiple choice, multiple dropdowns\n */\n question.set(\"correct\", answer.correct);\n question.set(\"points_received\", answer.points);\n var attachments = [];\n if (answer.attachments && answer.attachments instanceof Array && answer.attachments.length > 0) {\n attachments = answer.attachments;\n }\n var attemptData = question.get(\"attempt_data\");\n question.set(\"attempt_data\", _objectSpread(_objectSpread({}, attemptData), {}, {\n attachments: attachments\n }));\n }\n });\n }\n }\n }, {\n key: \"addNextQuestionCallback\",\n value: function addNextQuestionCallback(callback) {\n this.nextQuestionCallbacks.push(callback);\n }\n }, {\n key: \"executeNextQuestionCallbacks\",\n value: function () {\n var _executeNextQuestionCallbacks = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {\n var _iterator3, _step3, _loop, _t2;\n return _regenerator().w(function (_context6) {\n while (1) switch (_context6.p = _context6.n) {\n case 0:\n _iterator3 = _createForOfIteratorHelper(this.nextQuestionCallbacks);\n _context6.p = 1;\n _loop = /*#__PURE__*/_regenerator().m(function _loop() {\n var callback;\n return _regenerator().w(function (_context5) {\n while (1) switch (_context5.n) {\n case 0:\n callback = _step3.value;\n _promiseQueue.default.enqueue(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n _context4.n = 1;\n return callback();\n case 1:\n return _context4.a(2);\n }\n }, _callee4);\n })));\n case 1:\n return _context5.a(2);\n }\n }, _loop);\n });\n _iterator3.s();\n case 2:\n if ((_step3 = _iterator3.n()).done) {\n _context6.n = 4;\n break;\n }\n return _context6.d(_regeneratorValues(_loop()), 3);\n case 3:\n _context6.n = 2;\n break;\n case 4:\n _context6.n = 6;\n break;\n case 5:\n _context6.p = 5;\n _t2 = _context6.v;\n _iterator3.e(_t2);\n case 6:\n _context6.p = 6;\n _iterator3.f();\n return _context6.f(6);\n case 7:\n _context6.n = 8;\n return _promiseQueue.default.enqueue(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n return _context3.a(2);\n }\n }, _callee3);\n })));\n case 8:\n this.nextQuestionCallbacks = [];\n case 9:\n return _context6.a(2);\n }\n }, _callee5, this, [[1, 5, 6, 7]]);\n }));\n function executeNextQuestionCallbacks() {\n return _executeNextQuestionCallbacks.apply(this, arguments);\n }\n return executeNextQuestionCallbacks;\n }()\n }, {\n key: \"toggleShowStats\",\n value: function toggleShowStats() {\n this.showStats = !this.showStats;\n }\n }, {\n key: \"nextQuestion\",\n value: function () {\n var _nextQuestion = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(index) {\n return _regenerator().w(function (_context7) {\n while (1) switch (_context7.n) {\n case 0:\n if (this.hasScore) {\n _context7.n = 1;\n break;\n }\n _context7.n = 1;\n return this.executeNextQuestionCallbacks();\n case 1:\n this.setQuestionIndex(index);\n case 2:\n return _context7.a(2);\n }\n }, _callee6, this);\n }));\n function nextQuestion(_x4) {\n return _nextQuestion.apply(this, arguments);\n }\n return nextQuestion;\n }()\n }, {\n key: \"setQuestionIndex\",\n value: function setQuestionIndex(index) {\n var _this4 = this;\n this.questionIndex = index;\n if (this.maxQuestionIndexUsed == null) {\n this.maxQuestionIndexUsed = this.questionIndex;\n } else if (index > this.maxQuestionIndexUsed) {\n this.maxQuestionIndexUsed = index;\n }\n\n //This is a hack to ensure that didInsertElement is called when two of the same question types are repeated in a row.\n // Wasn't sure how else to make it happen.\n this.questionShown = false;\n (0, _runloop.schedule)(\"afterRender\", function () {\n _this4.questionShown = true;\n });\n }\n }, {\n key: \"stopTimers\",\n value: function stopTimers() {\n if (this.autosaveTimerInterval) {\n clearInterval(this.autosaveTimerInterval);\n }\n if (this.countdownTimerInterval) {\n clearInterval(this.countdownTimerInterval);\n }\n }\n }, {\n key: \"quizLengthSeconds\",\n get: function get() {\n var timeRemaining = this.quiz.get(\"time_limit_minutes\");\n if (this.quiz.get(\"quiz_attempt.end_at\")) {\n //This should only be true if the user is continuing a previously started quiz\n return Math.floor((new Date(this.quiz.get(\"quiz_attempt.end_at\")).getTime() - new Date().getTime()) / 1000);\n } else if (Number.isInteger(timeRemaining)) {\n return timeRemaining * 60;\n } else {\n return null;\n }\n }\n }, {\n key: \"startTimer\",\n value: function startTimer() {\n var _this5 = this;\n var submissionWarningEvents = [];\n var quizLengthSeconds = this.quizLengthSeconds;\n var _iterator4 = _createForOfIteratorHelper(_environment.default.APP.quizSubmissionWarningTimesLeft),\n _step4;\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var timeLeft = _step4.value;\n if (timeLeft < quizLengthSeconds) {\n submissionWarningEvents.push({\n time: timeLeft,\n callback: function callback() {\n _this5.quizSubmittedInText = \"The quiz will be submitted in \".concat(_this5.timeRemainingFormatted);\n _this5.timeRemainingSnapshot = _this5.timeRemaining;\n setTimeout(function () {\n _this5.quizSubmittedInText = undefined;\n }, 10000);\n }\n });\n }\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n this.countdownTimerInterval = (0, _timer.default)(this.quizLengthSeconds, 1000, function (minutes, seconds) {\n _this5.timeRemaining = 60 * minutes + seconds;\n }, [].concat(submissionWarningEvents, [{\n time: 0,\n callback: function () {\n var _callback = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {\n return _regenerator().w(function (_context9) {\n while (1) switch (_context9.n) {\n case 0:\n _this5.stopTimers();\n\n // Remove the retry-question-upload dialog if it is there so that we don't have two\n // dialogs showing at once when the time-is-up dialog shows.\n _this5.confirmDialog.closeByClass(\"retry-question-upload\");\n _context9.n = 1;\n return _promiseQueue.default.enqueue(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7() {\n return _regenerator().w(function (_context8) {\n while (1) switch (_context8.n) {\n case 0:\n _context8.n = 1;\n return _this5.confirmDialog.show({\n subtitle: \"Time is up! Click OK to submit the quiz.\",\n choices: [\"OK\"],\n additionalClasses: \"quiz-time-is-up\"\n });\n case 1:\n return _context8.a(2);\n }\n }, _callee7);\n })));\n case 1:\n _context9.n = 2;\n return _this5.submitQuiz(false);\n case 2:\n return _context9.a(2);\n }\n }, _callee8);\n }));\n function callback() {\n return _callback.apply(this, arguments);\n }\n return callback;\n }()\n }]));\n }\n }, {\n key: \"updateCanvasQuestionAnswer\",\n value: function () {\n var _updateCanvasQuestionAnswer = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(question) {\n var _this6 = this;\n var retries, _upload;\n return _regenerator().w(function (_context1) {\n while (1) switch (_context1.n) {\n case 0:\n retries = 0;\n this.uploadingQuestion = true;\n this.uploadFailed = false;\n _upload = /*#__PURE__*/function () {\n var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9() {\n var answer, section, resp, _t3;\n return _regenerator().w(function (_context0) {\n while (1) switch (_context0.p = _context0.n) {\n case 0:\n _context0.p = 0;\n _context0.n = 1;\n return question.get(\"given_answer\");\n case 1:\n answer = _context0.v;\n section = _this6.get(\"session.section.id\");\n _this6.store.nestResources(\"attempt\", [{\n section: section\n }, {\n quiz: _this6.quiz.get(\"id\")\n }]);\n _context0.n = 2;\n return _this6.store.findRecord(\"attempt\", _this6.timedQuizSubmissionData.id);\n case 2:\n resp = _context0.v;\n resp.set(\"token\", _this6.timedQuizSubmissionData.token);\n resp.set(\"number\", _this6.timedQuizSubmissionData.number);\n resp.set(\"answers\", [{\n question_id: question.id,\n answer: answer\n }]);\n resp.set(\"action\", \"update_questions\");\n _context0.n = 3;\n return resp.save();\n case 3:\n _this6.savedAt = new Date().toLocaleTimeString([], {\n hour: \"2-digit\",\n minute: \"2-digit\"\n });\n _context0.n = 7;\n break;\n case 4:\n _context0.p = 4;\n _t3 = _context0.v;\n _this6.uploadFailed = true;\n if (!(retries < 3)) {\n _context0.n = 5;\n break;\n }\n retries = retries + 1;\n setTimeout(_upload, 1000);\n _context0.n = 7;\n break;\n case 5:\n if (!_this6.hasTimeLeft) {\n _context0.n = 7;\n break;\n }\n _context0.n = 6;\n return _this6.confirmDialog.show({\n subtitle: \"Unable to upload question answer. Please try again.\",\n choices: [\"Retry\"],\n additionalClasses: \"retry-question-upload\"\n });\n case 6:\n _upload();\n case 7:\n _this6.uploadingQuestion = false;\n _this6.uploadFailed = false;\n case 8:\n return _context0.a(2);\n }\n }, _callee9, null, [[0, 4]]);\n }));\n return function upload() {\n return _ref5.apply(this, arguments);\n };\n }();\n _context1.n = 1;\n return _upload();\n case 1:\n return _context1.a(2);\n }\n }, _callee0, this);\n }));\n function updateCanvasQuestionAnswer(_x5) {\n return _updateCanvasQuestionAnswer.apply(this, arguments);\n }\n return updateCanvasQuestionAnswer;\n }()\n }, {\n key: \"startSingleCantGoBackQuiz\",\n value: function startSingleCantGoBackQuiz() {\n var _this7 = this;\n this.confirmDialog.show({\n subtitle: \"When you answer questions, you cannot go back.\",\n choices: [\"OK\", \"Cancel\"]\n }).then(function (choice) {\n if (choice === \"Cancel\") {\n return false;\n }\n _this7.hasShownQuizIntercept = true;\n });\n }\n }, {\n key: \"startQuiz\",\n value: function startQuiz() {\n var _this8 = this;\n var sectionId = this.session.get(\"section.id\");\n var _startQuiz2 = function _startQuiz() {\n _this8.startingQuiz = true;\n var start = function start() {\n _this8.hasShownQuizIntercept = true;\n _this8.startingQuiz = false;\n };\n if (_this8.isTimedQuiz) {\n _jquery.default.post(\"/interface/sections/\" + sectionId + \"/quizzes/\" + _this8.quiz.get(\"id\") + \"/attempts\", function (data) {\n _this8.timedQuizSubmissionData = data;\n _this8.startTimer();\n start();\n }).fail(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1() {\n var response;\n return _regenerator().w(function (_context10) {\n while (1) switch (_context10.n) {\n case 0:\n _this8.startingQuiz = false;\n _context10.n = 1;\n return _this8.confirmDialog.show({\n subtitle: \"Problem occurred starting the quiz. Try again?\",\n choices: [\"OK\", \"Cancel\"]\n });\n case 1:\n response = _context10.v;\n if (response == \"OK\") {\n _startQuiz2();\n }\n case 2:\n return _context10.a(2);\n }\n }, _callee1);\n })));\n } else {\n start();\n }\n };\n if (this.previousQuestionsLocked) {\n this.confirmDialog.show({\n subtitle: \"When you answer questions, you cannot go back.\",\n choices: [\"OK\", \"Cancel\"]\n }).then(function (choice) {\n if (choice === \"Cancel\") {\n return false;\n }\n _startQuiz2();\n });\n } else {\n _startQuiz2();\n }\n }\n }, {\n key: \"retryQuiz\",\n value: function retryQuiz() {\n (0, _object.set)(this.quiz, \"quiz_attempt\", {\n retrying: true,\n left: this.quiz.get(\"quiz_attempt.left\")\n });\n this.setQuestionIndex(0);\n this.maxQuestionIndexUsed = 0;\n this.resetGivenAnswers();\n this.quiz.quiz_questions.forEach(function (question) {\n question.set(\"attempt_data\", {});\n });\n this.hasShownQuizIntercept = false;\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").scrollTop(0)\n /* eslint-disable-next-line ember/no-jquery */.scrollTop((0, _jquery.default)(\"#\".concat(this.get(\"quiz.id\"))).position().top - 10);\n }\n }, {\n key: \"closeTimeRemaining\",\n value: function closeTimeRemaining() {\n this.quizSubmittedInText = undefined;\n }\n }, {\n key: \"submitQuizAttempt\",\n value: function () {\n var _submitQuizAttempt = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(data) {\n var _this9 = this;\n var _submit;\n return _regenerator().w(function (_context12) {\n while (1) switch (_context12.n) {\n case 0:\n _submit = /*#__PURE__*/function () {\n var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10() {\n var section, resp, answers, response, _t4;\n return _regenerator().w(function (_context11) {\n while (1) switch (_context11.p = _context11.n) {\n case 0:\n _context11.p = 0;\n section = _this9.get(\"session.section.id\");\n _this9.store.nestResources(\"attempt\", [{\n section: section\n }, {\n quiz: _this9.quiz.get(\"id\")\n }]);\n _context11.n = 1;\n return _this9.store.findRecord(\"attempt\", data.id);\n case 1:\n resp = _context11.v;\n _context11.n = 2;\n return _this9.getQuizAnswers();\n case 2:\n answers = _context11.v;\n resp.set(\"token\", data.token);\n resp.set(\"number\", data.number);\n resp.set(\"answers\", answers);\n resp.set(\"state\", \"complete\");\n if (_this9.isTimedQuiz) {\n resp.set(\"action\", \"submit\");\n } else {\n resp.set(\"action\", \"update_questions_and_submit\");\n }\n _context11.n = 3;\n return resp.save();\n case 3:\n return _context11.a(2, _context11.v);\n case 4:\n _context11.p = 4;\n _t4 = _context11.v;\n console.log(\"error: \".concat(JSON.stringify(_t4.message)));\n _context11.n = 5;\n return _this9.confirmDialog.show({\n subtitle: \"A problem occurred grading the quiz. Try again?\",\n choices: [\"OK\", \"Cancel\"]\n });\n case 5:\n response = _context11.v;\n if (!(response == \"OK\")) {\n _context11.n = 6;\n break;\n }\n _context11.n = 6;\n return _submit();\n case 6:\n return _context11.a(2, null);\n }\n }, _callee10, null, [[0, 4]]);\n }));\n return function submit() {\n return _ref7.apply(this, arguments);\n };\n }();\n _context12.n = 1;\n return _submit();\n case 1:\n return _context12.a(2, _context12.v);\n }\n }, _callee11);\n }));\n function submitQuizAttempt(_x6) {\n return _submitQuizAttempt.apply(this, arguments);\n }\n return submitQuizAttempt;\n }()\n }, {\n key: \"_submitQuiz\",\n value: function () {\n var _submitQuiz2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15() {\n var _this0 = this;\n var unansweredQuestions, section, dialogPromise, choice, self, _submit2;\n return _regenerator().w(function (_context16) {\n while (1) switch (_context16.n) {\n case 0:\n if (this.isTimedQuiz) {\n _context16.n = 1;\n break;\n }\n unansweredQuestions = [];\n this.quiz.quiz_questions.forEach(function (question, index) {\n if (!question.hasAnswer) {\n unansweredQuestions.push(index + 1);\n }\n });\n if (!unansweredQuestions.length) {\n _context16.n = 1;\n break;\n }\n this.confirmDialog.show({\n body: \"Unable to submit quiz. Question\".concat(unansweredQuestions.length > 1 ? \"s\" : \"\", \" \").concat(unansweredQuestions.join(\", \"), \" \").concat(unansweredQuestions.length == 1 ? \"is\" : \"are\", \" unanswered.\")\n });\n return _context16.a(2);\n case 1:\n /* eslint-disable-next-line ember/no-get */\n section = this.get(\"session.section.id\"); // if ($('#' + quiz + ' .quiz-questions' + ' input[type=checkbox]:not(\\'.question-checker-handle\\'):not(\\'.question-handle\\'):checked, #' + quiz + ' .quiz-questions' + ' input[type=radio]:not(\\'.question-handle\\'):checked').length === 0) {\n // return;\n // }\n /* eslint-disable-next-line ember/no-get */\n if (this.get(\"quiz.allowed_attempts\") === 1) {\n dialogPromise = this.confirmDialog.show({\n subtitle: \"This is your last attempt. Are you sure you want to submit? TIP: Make sure to double-check your answers!\",\n choices: [\"Submit\", \"No\"]\n });\n } else {\n dialogPromise = Promise.resolve(\"Submit\");\n }\n _context16.n = 2;\n return dialogPromise;\n case 2:\n choice = _context16.v;\n if (!(choice === \"Submit\")) {\n _context16.n = 6;\n break;\n }\n // $('#' + quiz + ' .question-handle:last').prop('checked', true);\n // /* eslint-disable-next-line ember/no-jquery */\n\n (0, _debug.debug)(\"Requesting token...\");\n self = this;\n if (!this.isTimedQuiz) {\n _context16.n = 4;\n break;\n }\n _context16.n = 3;\n return this.submitQuizAttempt(this.timedQuizSubmissionData);\n case 3:\n return _context16.a(2, _context16.v);\n case 4:\n _submit2 = /*#__PURE__*/function () {\n var _ref8 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {\n return _regenerator().w(function (_context15) {\n while (1) switch (_context15.n) {\n case 0:\n return _context15.a(2, new Promise(function (resolve, reject) {\n _jquery.default.ajax({\n url: \"/interface/sections/\" + section + \"/quizzes/\" + _this0.quiz.get(\"id\") + \"/attempts\",\n type: \"POST\",\n data: {},\n dataType: \"json\",\n success: function () {\n var _success = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(data) {\n var _t5;\n return _regenerator().w(function (_context13) {\n while (1) switch (_context13.n) {\n case 0:\n _t5 = resolve;\n _context13.n = 1;\n return _this0.submitQuizAttempt(data);\n case 1:\n _t5(_context13.v);\n case 2:\n return _context13.a(2);\n }\n }, _callee12);\n }));\n function success(_x7) {\n return _success.apply(this, arguments);\n }\n return success;\n }(),\n error: function () {\n var _error = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(err) {\n var response;\n return _regenerator().w(function (_context14) {\n while (1) switch (_context14.n) {\n case 0:\n self.gradingQuiz = false;\n (0, _debug.debug)(err, \"Post quiz\");\n _context14.n = 1;\n return self.confirmDialog.show({\n subtitle: \"Unable to grade quiz. Try again?\",\n choices: [\"OK\", \"Cancel\"]\n });\n case 1:\n response = _context14.v;\n if (!(response == \"OK\")) {\n _context14.n = 3;\n break;\n }\n self.gradingQuiz = true;\n _context14.n = 2;\n return _submit2();\n case 2:\n _context14.n = 4;\n break;\n case 3:\n resolve(false);\n case 4:\n return _context14.a(2);\n }\n }, _callee13);\n }));\n function error(_x8) {\n return _error.apply(this, arguments);\n }\n return error;\n }()\n });\n }));\n }\n }, _callee14);\n }));\n return function submit() {\n return _ref8.apply(this, arguments);\n };\n }();\n _context16.n = 5;\n return _submit2();\n case 5:\n return _context16.a(2, _context16.v);\n case 6:\n return _context16.a(2);\n }\n }, _callee15, this);\n }));\n function _submitQuiz() {\n return _submitQuiz2.apply(this, arguments);\n }\n return _submitQuiz;\n }()\n }, {\n key: \"submitQuiz\",\n value: function () {\n var _submitQuiz3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17() {\n var _this1 = this;\n var stopTimers,\n scrollIntoViewIfNeeded,\n _submit3,\n _args18 = arguments;\n return _regenerator().w(function (_context18) {\n while (1) switch (_context18.n) {\n case 0:\n stopTimers = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : true;\n this.gradingQuiz = true;\n if (stopTimers) {\n this.stopTimers();\n }\n _context18.n = 1;\n return this.executeNextQuestionCallbacks();\n case 1:\n scrollIntoViewIfNeeded = function scrollIntoViewIfNeeded(target) {\n // Target is outside the viewport from the bottom\n if (target.getBoundingClientRect().bottom > window.innerHeight) {\n // The bottom of the target will be aligned to the bottom of the visible area of the scrollable ancestor.\n target.scrollIntoView(false);\n }\n\n // Target is outside the view from the top\n if (target.getBoundingClientRect().top < 0) {\n // The top of the target will be aligned to the top of the visible area of the scrollable ancestor\n target.scrollIntoView();\n }\n };\n _submit3 = /*#__PURE__*/function () {\n var _ref9 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16() {\n var result, response, _t6;\n return _regenerator().w(function (_context17) {\n while (1) switch (_context17.p = _context17.n) {\n case 0:\n _context17.p = 0;\n _context17.n = 1;\n return _this1._submitQuiz();\n case 1:\n result = _context17.v;\n _this1.gradingQuiz = false;\n if (!result) {\n _context17.n = 3;\n break;\n }\n _this1.set(\"quiz.quiz_attempt\", result);\n _context17.n = 2;\n return _this1.quiz.reload();\n case 2:\n if (_this1.questionIndex != null) {\n _this1.setQuestionIndex(null);\n }\n _this1.setQuestionData(_this1.get(\"quiz.quiz_attempt.answers\"), false);\n _this1.quizStarted = false;\n case 3:\n _context17.n = 6;\n break;\n case 4:\n _context17.p = 4;\n _t6 = _context17.v;\n _this1.gradingQuiz = false;\n _context17.n = 5;\n return _this1.confirmDialog.show({\n subtitle: \"Problem occurred grading quiz. Try again?\",\n choices: [\"OK\", \"Cancel\"]\n });\n case 5:\n response = _context17.v;\n if (!(response == \"OK\")) {\n _context17.n = 6;\n break;\n }\n _context17.n = 6;\n return _submit3();\n case 6:\n return _context17.a(2);\n }\n }, _callee16, null, [[0, 4]]);\n }));\n return function submit() {\n return _ref9.apply(this, arguments);\n };\n }();\n _context18.n = 2;\n return _submit3();\n case 2:\n this.savedAt = null;\n this.timeRemaining = null;\n (0, _runloop.next)(this, function () {\n var finishQuizElem = document.querySelector(\"#quiz-\".concat(_this1.quiz.id, \"-final-results\"));\n if (finishQuizElem) {\n scrollIntoViewIfNeeded(finishQuizElem);\n }\n });\n case 3:\n return _context18.a(2);\n }\n }, _callee17, this);\n }));\n function submitQuiz() {\n return _submitQuiz3.apply(this, arguments);\n }\n return submitQuiz;\n }()\n }]);\n }(_service.default), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"questionIndex\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"gradingQuiz\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"questionShown\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"maxQuestionIndexUsed\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasShownQuizIntercept\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"timeRemaining\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"quizSubmittedInText\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"startingQuiz\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"questionPromises\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor0 = _applyDecoratedDescriptor(_class.prototype, \"savedAt\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor1 = _applyDecoratedDescriptor(_class.prototype, \"initialized\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"uploadingQuestion\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"uploadFailed\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"showStats\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"questions\", [_tracking.tracked], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleShowStats\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleShowStats\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextQuestion\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"nextQuestion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setQuestionIndex\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"setQuestionIndex\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startQuiz\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"startQuiz\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"retryQuiz\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"retryQuiz\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTimeRemaining\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTimeRemaining\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submitQuiz\", [_object.action], Object.getOwnPropertyDescriptor(_class.prototype, \"submitQuiz\"), _class.prototype), _class);\n});","define(\"bocce/helpers/file-extension\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.fileExtension = fileExtension;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n // Take a filename and return it's file extension\n function fileExtension(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n filename = _ref2[0];\n if (!filename) {\n return;\n }\n var splitFilename = filename.split(\".\");\n if (splitFilename.length == 1) {\n return;\n }\n return \".\" + splitFilename[splitFilename.length - 1] || \"\";\n }\n var _default = _exports.default = (0, _helper.helper)(fileExtension);\n});","define(\"bocce/helpers/format-due-date\", [\"exports\", \"@ember/component/helper\", \"bocce/utils/format-due-date\"], function (_exports, _helper, _formatDueDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"bocce/utils/format-due-date\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n /**\n * {{format-due-date dateString}} → display string (\"Today\", \"In 3 days\", …)\n * {{format-due-date dateString \"full\"}} → full date for tooltips (\"Monday, May 28, 2025\")\n */\n var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n dateString = _ref2[0],\n mode = _ref2[1];\n var _parseDueDate = (0, _formatDueDate.parseDueDate)(dateString),\n display = _parseDueDate.display,\n fullDate = _parseDueDate.fullDate;\n return mode === \"full\" ? fullDate : display;\n });\n});","define(\"bocce/helpers/format-grade\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.formatGrade = formatGrade;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function formatGrade(gradeScore) {\n if (isNaN(gradeScore) || !gradeScore) {\n return gradeScore;\n }\n gradeScore = Number(gradeScore);\n var decPlaces = 0;\n if (Math.floor(gradeScore) !== gradeScore) {\n decPlaces = gradeScore.toString().split(\".\")[1].length || 0;\n }\n if (decPlaces > 4) {\n return gradeScore.toFixed(4) + \"...\";\n } else {\n return gradeScore;\n }\n }\n var _default = _exports.default = (0, _helper.helper)(function (fullGrade) {\n var grade = fullGrade[0];\n return formatGrade(grade);\n });\n});","define(\"bocce/helpers/heartbeat\", [\"exports\", \"@ember/debug\", \"@ember/application\", \"jquery\", \"bocce/js/store-util\"], function (_exports, _debug, _application, _jquery, _storeUtil) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = loadHeartbeatData;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/application\",0,\"jquery\",0,\"bocce/js/store-util\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function loadHeartbeatData(routes, ctl) {\n var view = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var keys = [\"attachment\", \"discussion\", \"response\", \"submission\", \"conversation\", \"conversation_message\", \"event\", \"comment\", \"user\"];\n var deleble_types = [\"comment\"];\n var store = ctl.get(\"store\");\n var user_id = parseInt(ctl.session.get(\"user.id\"), 10);\n var router = ctl.get(\"router\");\n /* eslint-disable-next-line ember/no-jquery */\n var promises = routes.map(function (url) {\n return _jquery.default.get(url);\n }),\n course_hb_index = -1,\n full_reload_p = false;\n for (var i = 0; i < routes.length; i++) {\n if (routes[i].match(/courses\\/.*\\/heartbeat/)) {\n course_hb_index = i;\n }\n if (routes[i].indexOf(\"heartbeat\") === -1) {\n full_reload_p = true;\n }\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n return _jquery.default.when.apply(_jquery.default, promises).done(function () {\n for (var _len = arguments.length, data = new Array(_len), _key = 0; _key < _len; _key++) {\n data[_key] = arguments[_key];\n }\n // Data is an array of array of the parameters that the done function\n // would normally get. data[nn][0] is the actual data we're looking\n // for from each hit.\n\n if (routes.length === 1) {\n data = [data];\n }\n for (var _i = 0; _i < data.length; _i++) {\n if (data[_i][2].status === 500) {\n (0, _debug.debug)(\"Heartbeat request returned 500 error, disabling\");\n window.heartbeatFrequencyInMilliseconds = 0;\n return;\n }\n }\n if (view && course_hb_index >= 0) {\n var _course_hb_data$meeti;\n var course_hb_data = data[course_hb_index][0];\n ctl.set(\"session.section.adviceCards\", course_hb_data.adviceCards);\n //ctl.set('session.section.qualtrics', course_hb_data.qualtrics); -- Uncomment to enable heartbeat for surveys\n ctl.set(\"session.runningChatMeetingKey\", course_hb_data === null || course_hb_data === void 0 || (_course_hb_data$meeti = course_hb_data.meeting_details) === null || _course_hb_data$meeti === void 0 ? void 0 : _course_hb_data$meeti.meeting_key);\n ctl.set(\"session.runningChatMeetingDetails\", course_hb_data.meeting_details);\n ctl.set(\"session.anyChatsRunning\", ctl.get(\"session.runningChatMeetingKey\"));\n ctl.set(\"session.canMergeChats\", !!course_hb_data.other_section_meeting_key);\n if (course_hb_data.meeting_details) {\n delete course_hb_data.meeting_details;\n }\n ctl.set(\"session.globalReadOnly\", !!course_hb_data.readonly);\n if (course_hb_data.readonly) {\n delete course_hb_data.readonly;\n }\n if (course_hb_data.banner && course_hb_data.banner.serial) {\n var ban = course_hb_data.banner;\n if (session.last_banner_serial !== ban.serial) {\n view.send(\"notify\", ban.banner, ban.dismissable, ban.modal_type || null, ban.modal_id || null, 100, ctl.get(\"session\"), false, ban.link, ban.serial, \"banner\", ban.dismiss_condition_id);\n session.last_banner_serial = ban.serial;\n }\n delete course_hb_data.banner;\n } else if (ctl.get(\"session.notification\") && session.last_banner_serial) {\n //TODO: This 'else if' might not even be used...\n view.send(\"dismissNotif\", ctl.get(\"session\"));\n session.last_banner_serial = null;\n }\n if (course_hb_data.activity) {\n var activity = course_hb_data.activity;\n var fiveMinutesAgo = moment().subtract(5, \"minutes\");\n for (var uid in activity) {\n var user = store.peekRecord(\"user\", uid);\n if (user) {\n user.set(\"whenPresent\", activity[uid]);\n if (activity[uid]) {\n var isPresent = new Date(activity[uid]) > fiveMinutesAgo;\n user.set(\"isPresent\", isPresent);\n }\n }\n }\n }\n }\n var _loop = function _loop() {\n var key = _keys[_i2];\n var objs = getData(data, key);\n\n // Use .peekAll instead of find to avoid a REST hit\n var loaded_objs = store.peekAll(key);\n var ids = loaded_objs.map(function (e) {\n return \"\" + e.id;\n });\n var to_push = [],\n interface_ids = [];\n var _loop2 = function _loop2() {\n if (ids.indexOf(\"\" + objs[j].id) === -1) {\n // TODO: make my_submission a computed property instead of computing it\n // in the inteface's toEmber function.\n if (key === \"submission\") {\n var isSubmissionOwner = parseInt(objs[j].user) === user_id,\n grade = objs[j].grade;\n objs[j].my_submission = isSubmissionOwner;\n if (isSubmissionOwner) {\n store.findRecord(\"assignment\", objs[j].assignment).then(function (assignment) {\n assignment.set(\"currentUserSubmissionGrade\", grade);\n });\n }\n } else if (key === \"comment\") {\n var submissionCtl = ctl.get(\"submission\");\n var open_id = submissionCtl.get(\"openAssignmentView.id\");\n var submission = store.peekRecord(\"submission\", objs[j].submission);\n if (submission) {\n // Seed the read high-water mark from the load-time read state the\n // first time we see this submission. Safe here: the arriving\n // comment is folded into the relationship only as an id, and its\n // record isn't pushed until after this loop, so it can't seed\n // itself as already-read.\n submission.seedReadMarker();\n\n // Canvas comment ids are monotonic, so anything past the newest\n // comment this user has read is genuinely new. (Neither a\n // wall-clock cutoff nor the submission's own comment list can\n // tell new from replayed once the monitor folds the comment in.)\n var incoming = parseInt(objs[j].db_id, 10);\n if (incoming > submission.last_read_comment_id) {\n if (objs[j].user === user_id || open_id === objs[j].submission) {\n // Our own comment, or one that lands while we're viewing this\n // submission: it's effectively read, so advance the marker\n // instead of flagging it.\n submission.set(\"last_read_comment_id\", incoming);\n } else {\n submission.set(\"read\", false);\n submission.set(\"workflow_state\", \"unread\");\n }\n }\n }\n }\n // If the item's id doesn't exist in the store, add the item\n // to the to_push array.\n to_push.push(objs[j]);\n } else if (objs[j].is_deleted || objs[j].is_updated) {\n // If object remarked as deleted or updated, push too\n\n // Updated submissions replay for the heartbeat's whole rolling\n // window, and reading a submission doesn't generate a heartbeat\n // event of its own, so a replay can carry a read state the server\n // has since superseded (e.g. it was read before this page loaded).\n // Unless the replay is a genuinely newer attempt, keep the read\n // state we already have instead of the snapshot's.\n if (key === \"submission\") {\n var existing = store.peekRecord(\"submission\", objs[j].id);\n if (existing && new Date(objs[j].date) <= existing.get(\"date\")) {\n objs[j].read = existing.get(\"read\");\n }\n }\n to_push.push(objs[j]);\n }\n interface_ids.push(objs[j].id);\n };\n for (var j = 0; j < objs.length; j++) {\n _loop2();\n }\n\n // If this is a deleble type, and we're doing a full reload,\n // delete any objects that weren't included in the data dump\n if (full_reload_p && deleble_types.indexOf(key) >= 0) {\n loaded_objs.filter(function (obj) {\n return interface_ids.indexOf(obj.id) === -1;\n }).forEach(function (obj) {\n (0, _debug.debug)(\"Removing orphan \" + key + \" \" + obj.id);\n store.unloadRecord(obj);\n });\n }\n if (to_push.length > 0) {\n (0, _debug.debug)(\"Pushing \" + to_push.length + \" new \" + key);\n (0, _debug.debug)(to_push.map(function (e) {\n return e.id;\n }));\n\n // Uncomment to bring back growler\n /*\n growler\n .attr('message', messages[i])\n .removeClass('growl')\n .addClass('growl');\n */\n var payload = {};\n payload[key] = to_push;\n store.pushPayload(key, payload);\n if (key === \"response\") {\n var _iterator = _createForOfIteratorHelper(to_push),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var resp = _step.value;\n var disc = store.peekRecord(\"discussion\", resp.discussion);\n if (disc) {\n var unread_count = disc.get(\"unread_count\");\n disc.set(\"unread_count\", unread_count + 1);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (key === \"conversation_message\") {\n var _iterator2 = _createForOfIteratorHelper(to_push),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var conversationMessage = _step2.value;\n var conversation = store.peekRecord(\"conversation\", conversationMessage.conversation);\n if (!conversation) {\n continue;\n }\n\n // The heartbeat replays a rolling window of recent changes, so a\n // message can arrive here even though the server has already\n // folded it into the conversation's state (e.g. it was read\n // before this page loaded). Only messages newer than the\n // conversation's last known activity are actually new.\n var message_at = new Date(conversationMessage.created_at),\n last_known_at = conversation.get(\"last_message_at\") || conversation.get(\"lastActivity\");\n if (last_known_at && message_at <= new Date(last_known_at)) {\n continue;\n }\n conversation.set(\"last_message\", conversationMessage.body);\n conversation.set(\"last_message_at\", message_at);\n // lastActivity is the canonical sort + display field — the inbox\n // orders on it and lastActivityFormatted renders it. Every\n // interactive send path bumps it; the heartbeat must too or\n // incoming DMs keep their old list position and timestamp.\n conversation.set(\"lastActivity\", message_at);\n\n // Our own messages echo back through the heartbeat (it fans out\n // to every participant, author included) — don't flag those.\n if (parseInt(conversationMessage.author_id, 10) !== user_id) {\n conversation.set(\"workflow_state\", \"unread\");\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n\n // JRW: Sometimes announcements come back as already read.\n if (key === \"discussion\") {\n var _iterator3 = _createForOfIteratorHelper(to_push),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var discussion = _step3.value;\n var loadedDiscussion = store.peekRecord(\"discussion\", discussion.id);\n if (loadedDiscussion.get(\"is_announcement\")) {\n loadedDiscussion.set(\"read\", false);\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n }\n };\n for (var _i2 = 0, _keys = keys; _i2 < _keys.length; _i2++) {\n _loop();\n }\n doDeletes(store, router, data);\n // Pop the ongoing event modal up once per session\n var meeting_details = ctl.get(\"session.runningChatMeetingDetails\"),\n shown = sessionStorage.getItem(\"popupShownForMeetingId\"),\n event_id = (meeting_details === null || meeting_details === void 0 ? void 0 : meeting_details.event_id) || (meeting_details === null || meeting_details === void 0 ? void 0 : meeting_details.id) || false,\n willTransition;\n willTransition = event_id && shown != event_id;\n if (willTransition) {\n sessionStorage.setItem(\"popupShownForMeetingId\", event_id);\n var confirmDialog = (0, _application.getOwner)(ctl).lookup(\"service:confirm-dialog\");\n confirmDialog.show({\n title: \"A class just went live!\",\n choices: [\"View\", \"Stay on this page\"],\n layout: \"horizontal\"\n }).then(function (choice) {\n if (choice === \"View\") {\n router.transitionTo(\"classroom.live.event\", event_id);\n }\n });\n }\n });\n }\n function getData(data, key) {\n var objs = [];\n data.map(function (d) {\n if (d[0][key] && d[0][key].length > 0) {\n objs = objs.concat(d[0][key]);\n }\n });\n return objs;\n }\n function doDeletes(store, router, data) {\n var deletes = getData(data, \"deletes\");\n var _iterator4 = _createForOfIteratorHelper(deletes),\n _step4;\n try {\n var _loop3 = function _loop3() {\n var d = _step4.value;\n if (d.type && d.id) {\n var typeMatch;\n\n //These deletes come back from heartbeat in the form of _attachment:id.\n //The type is the type of attachment that was deleted (discussion, submission, etc) and the id is for the model\n //that had that attachment.\n if (typeMatch = d.type.match(/^\\w+(?=_attachment)/)) {\n var type = typeMatch[0];\n var typeSplit = d.type.split(\":\");\n if (typeSplit.length >= 2) {\n var id = typeSplit[1];\n var record = store.peekRecord(type, id);\n if (record) {\n var currentAttachmentIds = record.get(\"attachments\");\n if (currentAttachmentIds) {\n record.set(\"attachments\", currentAttachmentIds.filter(function (a) {\n //'a' might be an on object if the item was added by heartbeat within the same session\n if (a && a.id) {\n return a.id != d.id;\n } else {\n return a != d.id;\n }\n }));\n }\n }\n }\n } else {\n var loaded_objs = store.peekAll(d.type);\n var ids = loaded_objs.map(function (e) {\n if (d.type == \"response\") {\n return +e.id;\n } else {\n return e.id;\n }\n });\n\n //Delete the record if it exists\n if (ids.indexOf(d.id) >= 0) {\n var r = store.peekRecord(d.type, d.id);\n if (r) {\n (0, _storeUtil.pushDeletion)(store, d.type, d.id);\n var currentRoute = router.currentRoute;\n\n //Exit out of the discussion if it is currently being viewed.\n if (currentRoute && currentRoute.params && currentRoute.params[\"discussion_id\"]) {\n if (currentRoute.params[\"discussion_id\"] == d.id) {\n router.transitionTo(\"classroom.lessons\");\n }\n }\n }\n }\n }\n }\n };\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n _loop3();\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n});","define(\"bocce/helpers/image\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.BocceImage = void 0;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var BocceImage = _exports.BocceImage = /*#__PURE__*/function () {\n function BocceImage(data_uri) {\n _classCallCheck(this, BocceImage);\n this._data_uri = new Promise(function (acc) {\n acc(data_uri);\n });\n }\n return _createClass(BocceImage, [{\n key: \"data\",\n value: function data() {\n return this._data_uri;\n }\n }, {\n key: \"load\",\n value: function load() {\n var _this = this;\n return this._data_uri.then(function (data_uri) {\n if (_this._img) {\n return _this._img;\n }\n var count = 0;\n _this._img = new Image();\n _this._img.src = data_uri;\n return new Promise(function (acc) {\n var int_id = setInterval(function () {\n if (_this._img.complete || count > 10) {\n clearInterval(int_id);\n acc(_this._img);\n }\n count++;\n }, 50);\n });\n });\n }\n\n // https://yellowpencil.com/blog/cropping-images-with-javascript/\n }, {\n key: \"crop\",\n value: function crop(x, y, width, height, scale) {\n this._data_uri = this.load().then(function (img) {\n var can = document.createElement(\"canvas\"),\n can_con = can.getContext(\"2d\");\n can.width = width;\n can.height = height;\n var buf = document.createElement(\"canvas\"),\n buf_con = buf.getContext(\"2d\");\n buf.width = img.width;\n buf.height = img.height;\n buf_con.drawImage(img, 0, 0);\n can_con.drawImage(buf, x, y, width, height, 0, 0, width, height);\n if (scale && Number(scale) !== 1.0) {\n var sca = document.createElement(\"canvas\"),\n sca_con = sca.getContext(\"2d\");\n sca.width = width * scale;\n sca.height = height * scale;\n sca_con.drawImage(can, 0, 0, sca.width, sca.height);\n can = sca;\n }\n return can.toDataURL(\"image/png\");\n });\n return this._data_uri;\n }\n }, {\n key: \"crop_to_square\",\n value: function crop_to_square(max_size) {\n var _this2 = this;\n return this.load().then(function (img) {\n var h = img.height,\n w = img.width,\n size,\n h_offset = 0,\n w_offset = 0,\n scale = 1.0;\n if (h > w) {\n size = w;\n h_offset = (h - w) / 2;\n } else {\n size = h;\n w_offset = (w - h) / 2;\n }\n if (max_size && size > max_size) {\n scale = max_size / size;\n }\n return _this2.crop(w_offset, h_offset, size, size, scale);\n });\n }\n\n // https://stackoverflow.com/a/15754051\n }, {\n key: \"to_blob\",\n value: function to_blob() {\n return this.data().then(function (uri) {\n var byteString = atob(uri.split(\",\")[1]);\n var ab = new ArrayBuffer(byteString.length);\n var ia = new Uint8Array(ab);\n for (var i = 0; i < byteString.length; i++) {\n ia[i] = byteString.charCodeAt(i);\n }\n return new Blob([ab], {\n type: \"image/png\"\n });\n });\n }\n }], [{\n key: \"from_file\",\n value: function from_file(file) {\n return new Promise(function (acc, rej) {\n var fr = new FileReader();\n fr.onload = function (e) {\n acc(new BocceImage(e.target.result));\n };\n fr.onerror = function (err) {\n rej(err);\n };\n fr.readAsDataURL(file);\n });\n }\n }]);\n }();\n});","define(\"bocce/helpers/in-list\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n // Returns true if `item` is present in `list` (array).\n // Usage: {{in-list @maximizedCard @course.course_order}}\n var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n list = _ref2[0],\n item = _ref2[1];\n var target = String(item);\n return Array.isArray(list) && list.some(function (i) {\n return String(i) === target;\n });\n });\n});","define(\"bocce/helpers/inarray\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/sum.js\n // Check if two provided strings are the same\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var first = inp[0],\n second = inp[1];\n return second ? second.indexOf(first) > -1 : false;\n });\n});","define(\"bocce/helpers/is-overdue\", [\"exports\", \"@ember/component/helper\", \"bocce/utils/format-due-date\"], function (_exports, _helper, _formatDueDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"bocce/utils/format-due-date\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n /**\n * {{is-overdue dateString}} → true if the date is in the past (diffDays < 0)\n *\n * Uses the same calendar-day boundary logic as format-due-date so the\n * \"Overdue\" badge and the display string (\"3 days ago\") are always in sync.\n */\n var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n dateString = _ref2[0];\n if (!dateString) return false;\n var _parseDueDate = (0, _formatDueDate.parseDueDate)(dateString),\n urgencyClass = _parseDueDate.urgencyClass;\n return urgencyClass === \"is-overdue\";\n });\n});","define(\"bocce/helpers/isnull\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _helper.helper)(function (val) {\n return !val || val[0] == null;\n });\n});","define(\"bocce/helpers/lessthan\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.lessthan = lessthan;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/lessthan.js\n // Check if first provided number is less (!) than the second\n // Example: If number of assignments is less than 0\n // {{#if (lessthan assignments.length '0')}}\n\n function lessthan(inp) {\n var first = inp[0],\n second = inp[1];\n if (!first || !second) {\n return false;\n }\n return Number(first) < Number(second);\n }\n var _default = _exports.default = (0, _helper.helper)(lessthan);\n});","define(\"bocce/helpers/letter-grade\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/letter-grade.js\n // Convert points to letter grade\n var _default = _exports.default = (0, _helper.helper)(function (scores) {\n if (!scores[1]) {\n return \"\";\n }\n var pct = scores[0] / scores[1];\n if (pct >= 0.93) {\n return \"A\";\n }\n if (pct >= 0.9) {\n return \"A-\";\n }\n if (pct >= 0.87) {\n return \"B+\";\n }\n if (pct >= 0.83) {\n return \"B\";\n }\n if (pct >= 0.8) {\n return \"B-\";\n }\n if (pct >= 0.77) {\n return \"C+\";\n }\n if (pct >= 0.73) {\n return \"C\";\n }\n if (pct >= 0.7) {\n return \"C-\";\n }\n if (pct >= 0.6) {\n return \"D\";\n }\n return \"F\";\n });\n});","define(\"bocce/helpers/letter\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/letter.js\n // Convert number to letter\n var _default = _exports.default = (0, _helper.helper)(function (item) {\n if (!item) {\n return false;\n }\n return String.fromCharCode(65 + item[0]);\n });\n});","define(\"bocce/helpers/longdate\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/longdate.js\n // Convert date into long-form with Moment.JS\n var _default = _exports.default = (0, _helper.helper)(function (date) {\n if (date.length === 0) {\n return \"Date Incorrect\";\n }\n return moment(date[0]).tz(\"America/New_York\").format(\"MMMM Do, h:mmA\") + \" ET\";\n });\n});","define(\"bocce/helpers/moment\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n // app/helpers/moment.js\n // Convert date into relative time with Moment.JS\n var _default = _exports.default = (0, _helper.helper)(function (args) {\n if (args.length === 0) {\n return \"Date Incorrect\";\n }\n var _args = _slicedToArray(args, 2),\n date = _args[0],\n format = _args[1];\n var dateObj = new Date(date);\n var val = moment(dateObj).tz(\"America/New_York\");\n if (format) {\n return val.format(format);\n } else {\n return val.calendar();\n }\n });\n});","define(\"bocce/helpers/morethan\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.morethan = morethan;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/morethan.js\n // Check if first provided number is more than the second\n // Example: If number of assignments is more than 0\n // {{#if (morethan assignments.length '0')}}\n function morethan(inp) {\n var first = inp[0],\n second = inp[1];\n if (!first || !second) {\n return false;\n }\n return Number(first) > Number(second);\n }\n var _default = _exports.default = (0, _helper.helper)(morethan);\n});","define(\"bocce/helpers/morethanzero\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/morethanzero.js\n // Checks if the array has elements\n var _default = _exports.default = (0, _helper.helper)(function (item) {\n // session.banners is a plain native array; without prototype extensions\n // (removed in Ember 6) it has no .get, so don't require one\n if (!item || !item[0]) {\n return false;\n }\n return item[0].length > 0;\n });\n});","define(\"bocce/helpers/not\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _helper.helper)(function (val) {\n if (val == null || val[0] == null) {\n return true;\n }\n return !!!val[0];\n });\n});","define(\"bocce/helpers/notnull\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _helper.helper)(function (val) {\n return val && val[0] != null && val[0] != undefined;\n });\n});","define(\"bocce/helpers/null\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _helper.helper)(function (val) {\n return !val || val[0] == null;\n });\n});","define(\"bocce/helpers/or\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.or = or;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function or(params) {\n var _iterator = _createForOfIteratorHelper(params),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var p = _step.value;\n if (p) {\n return true;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return false;\n }\n var _default = _exports.default = (0, _helper.helper)(or);\n});","define(\"bocce/helpers/page-title\", [\"exports\", \"ember-page-title/helpers/page-title\"], function (_exports, _pageTitle) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _pageTitle.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-page-title/helpers/page-title\"eaimeta@70e063a35619d71f\n});","define(\"bocce/helpers/past-due\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/past-due.js\n // Check if date is past due or not\n var _default = _exports.default = (0, _helper.helper)(function (date, options) {\n if (new Date(date).getTime() < new Date().getTime()) {\n return options.fn(this);\n }\n return options.inverse(this);\n });\n});","define(\"bocce/helpers/percentage\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/percentage.js\n // Calculate percentage\n var _default = _exports.default = (0, _helper.helper)(function (mod) {\n if (!mod[0] || !mod[1]) {\n return 0;\n }\n var percentRaw = mod[0] / mod[1] * 100;\n if (parseInt(percentRaw) === parseFloat(percentRaw)) {\n return percentRaw;\n }\n return percentRaw.toFixed(2);\n });\n});","define(\"bocce/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _perform.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/perform\"eaimeta@70e063a35619d71f\n});","define(\"bocce/helpers/pluralize\", [\"exports\", \"ember-inflector/helpers/pluralize\"], function (_exports, _pluralize) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _pluralize.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/pluralize\"eaimeta@70e063a35619d71f\n});","define(\"bocce/helpers/safehtml\", [\"exports\", \"@ember/component/helper\", \"@ember/template\"], function (_exports, _helper, _template) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.safehtml = safehtml;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/template\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n function safehtml(_ref /*, hash*/) {\n var _ref2 = _slicedToArray(_ref, 1),\n input = _ref2[0];\n return (0, _template.htmlSafe)(input);\n }\n var _default = _exports.default = (0, _helper.helper)(safehtml);\n});","define(\"bocce/helpers/same\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/same.js\n // Check if two provided strings are the same\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var first = inp[0],\n second = inp[1];\n return String(first) === String(second);\n });\n});","define(\"bocce/helpers/show-discussions\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/show-ungraded.js\n // Show ungraded items in the dashboard\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var isDiscussion = inp[0],\n showDiscussions = inp[1];\n if (!isDiscussion) {\n return true;\n }\n if (isDiscussion && showDiscussions) {\n return true;\n }\n return false;\n });\n});","define(\"bocce/helpers/show-ungraded\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/show-ungraded.js\n // Show ungraded items in the dashboard\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var grade = inp[0],\n showUngraded = inp[1];\n if (grade) {\n return true;\n }\n if (!grade && showUngraded) {\n return true;\n }\n return false;\n });\n});","define(\"bocce/helpers/singularize\", [\"exports\", \"ember-inflector/helpers/singularize\"], function (_exports, _singularize) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _singularize.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-inflector/helpers/singularize\"eaimeta@70e063a35619d71f\n});","define(\"bocce/helpers/spacelist\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/spacelist.js\n // Turn string to dashed string\n var _default = _exports.default = (0, _helper.helper)(function (dec) {\n var item = dec[0];\n return item.join(\" \");\n });\n});","define(\"bocce/helpers/startswith\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.startswith = startswith;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/startswith.js\n // Check if the first provided string begins with the second.\n // {{#if (startswith assignments.name 'Assignment 2')}}\n\n function startswith(inp) {\n var first = inp[0],\n second = inp[1];\n if (!first || !second) {\n return false;\n }\n return first.indexOf(second) === 0;\n }\n var _default = _exports.default = (0, _helper.helper)(startswith);\n});","define(\"bocce/helpers/substring\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/sum.js\n // Check if two provided strings are the same\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var str = inp[0],\n start = inp[1],\n end = inp[2];\n if (!str || start == null) {\n return \"\";\n }\n if (end) {\n return str.substring(start, end);\n } else {\n return str.substring(start);\n }\n });\n});","define(\"bocce/helpers/subtract\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n var _default = _exports.default = (0, _helper.helper)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n a = _ref2[0],\n b = _ref2[1];\n return a - b;\n });\n});","define(\"bocce/helpers/sum\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/sum.js\n // Check if two provided strings are the same\n var _default = _exports.default = (0, _helper.helper)(function (inp) {\n var first = inp[0],\n second = inp[1];\n return parseInt(first) + parseInt(second);\n });\n});","define(\"bocce/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _task.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-concurrency/helpers/task\"eaimeta@70e063a35619d71f\n});","define(\"bocce/helpers/teaser\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/teaser.js\n // Trims the string to first
    or 100 characters\n var _default = _exports.default = (0, _helper.helper)(function (item) {\n if (!item || !item[0] || typeof item[0] !== \"string\") {\n return false;\n }\n var str = item[0];\n var br = str.indexOf(\"
    \");\n if (br > 0) {\n return str.substring(0, br);\n } else {\n return str.substring(0, 100);\n }\n });\n});","define(\"bocce/helpers/total\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n // app/helpers/total.js\n // Return total number of elements in array\n var _default = _exports.default = (0, _helper.helper)(function (item) {\n if (!item || !item[0]) {\n return 0;\n }\n return item[0].length;\n });\n});","define(\"bocce/helpers/trim\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _helper.helper)(function (item) {\n if (!item || !item[0] || typeof item[0] !== \"string\") {\n return false;\n }\n return item[0].trim();\n });\n});","define(\"bocce/helpers/two-decimals\", [\"exports\", \"@ember/component/helper\"], function (_exports, _helper) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _helper.helper)(function (val) {\n if (!val || val[0] == null) {\n return \"n/a\";\n }\n\n // round val[0] to two decimal places\n return Math.round(val[0] * 100) / 100;\n });\n});","define(\"bocce/helpers/upload\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = uploadFile;\n _exports.uploadURL = uploadURL;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function attemptUpload(url, data, return_url, on_progress) {\n // Using XMLHttpRequest instead of fetch here, because we ened to have a\n // callback for updating the upload progress bar.\n var request = new XMLHttpRequest();\n request.open(\"POST\", url);\n if (on_progress) {\n request.addEventListener(\"progress\", function (event) {\n if (event.lengthComputable) {\n on_progress(Math.ceil(100 * event.loaded / event.total));\n }\n });\n }\n return new Promise(function (resolve, reject) {\n request.addEventListener(\"load\", function () {\n if (request.status !== 200) {\n reject(request.status);\n return;\n }\n var raw = request.responseText;\n var obj = parseBrokenCanvasJSON(raw);\n if (return_url) {\n resolve(obj.url);\n } else {\n resolve(obj.id);\n }\n });\n request.send(data);\n });\n }\n function proxyUpload(store, file, path, return_url) {\n var att = store.createRecord(\"attachment\");\n att.set(\"attachment\", file);\n if (path) {\n att.set(\"file_context\", path);\n }\n return att.save().then(function (obj) {\n if (return_url) {\n return obj.get(\"thumbnail_url\");\n }\n return obj.get(\"id\");\n }, function (err) {\n throw err;\n });\n }\n var force_proxy_uploads = false;\n\n // Returns a promise that resolves to the ID of the new attachent\n function uploadFile(_x, _x2, _x3, _x4, _x5, _x6, _x7) {\n return _uploadFile.apply(this, arguments);\n }\n function _uploadFile() {\n _uploadFile = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file, user_id, store, destination_folder, return_url, on_progress, postUrl) {\n var data, target, fd, attachment_id, i, _t, _t2;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n if (!force_proxy_uploads) {\n _context.n = 1;\n break;\n }\n (0, _debug.debug)(\"Uploading via proxy due to previous failures\");\n return _context.a(2, proxyUpload(store, file, destination_folder, return_url));\n case 1:\n if (!file.isUrl) {\n _context.n = 2;\n break;\n }\n return _context.a(2, uploadURL(file, destination_folder));\n case 2:\n data = {\n name: file.name,\n content_type: file.type,\n on_duplicate: \"rename\"\n };\n if (destination_folder) {\n data.parent_folder_path = destination_folder;\n }\n (0, _debug.debug)(\"Beginning direct upload of \" + data.name);\n _context.n = 3;\n return postFileDataToCanvas(data, postUrl);\n case 3:\n target = _context.v;\n if (!target.upload_url) {\n if (target.attachments instanceof Array && target.attachments.length > 0) {\n target = target.attachments[0];\n }\n }\n fd = buildUploadFormData(target, file);\n (0, _debug.debug)(\"Sending file to \" + target.upload_url);\n attachment_id = null;\n _context.p = 4;\n i = 0;\n case 5:\n if (!(i < 2)) {\n _context.n = 10;\n break;\n }\n _context.p = 6;\n _context.n = 7;\n return attemptUpload(target.upload_url, fd, return_url, on_progress);\n case 7:\n attachment_id = _context.v;\n return _context.a(3, 10);\n case 8:\n _context.p = 8;\n _t = _context.v;\n (0, _debug.debug)({\n Location: \"Initial upload attempt failed\",\n Status: _t,\n Message: \"User \" + user_id + \" uploading \" + data.name + \", \" + data.content_type,\n URL: target.upload_url,\n formdata: fd\n });\n case 9:\n ++i;\n _context.n = 5;\n break;\n case 10:\n if (!(attachment_id === null)) {\n _context.n = 12;\n break;\n }\n force_proxy_uploads = true;\n _context.n = 11;\n return proxyUpload(store, file, destination_folder, return_url);\n case 11:\n attachment_id = _context.v;\n case 12:\n _context.n = 14;\n break;\n case 13:\n _context.p = 13;\n _t2 = _context.v;\n (0, _debug.debug)(\"Failed uploading \" + data.name + \": \", _t2);\n (0, _debug.debug)({\n Location: \"Upload failed\",\n Status: _t2.status,\n Message: \"User \" + user_id + \" uploading \" + data.name + \", \" + data.content_type,\n URL: target.upload_url,\n formdata: fd\n });\n throw _t2;\n case 14:\n (0, _debug.debug)(\"Successfully uploaded \" + data.name + \" as attachment \" + attachment_id);\n return _context.a(2, attachment_id);\n }\n }, _callee, null, [[6, 8], [4, 13]]);\n }));\n return _uploadFile.apply(this, arguments);\n }\n function buildUploadFormData(target, file) {\n var fd = new FormData();\n for (var key in target.upload_params) {\n fd.append(key, target.upload_params[key]);\n }\n fd.append(target.file_param, file);\n return fd;\n }\n function uploadURL(_x8, _x9) {\n return _uploadURL.apply(this, arguments);\n }\n function _uploadURL() {\n _uploadURL = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, destination_folder) {\n var data, result, id, filePending;\n return _regenerator().w(function (_context2) {\n while (1) switch (_context2.n) {\n case 0:\n data = {\n url: file.url,\n content_type: file.type,\n on_duplicate: \"rename\"\n };\n if (destination_folder) {\n data.parent_folder_path = destination_folder;\n }\n (0, _debug.debug)(\"Beginning upload of \" + data.name);\n _context2.n = 1;\n return postFileDataToCanvas(data);\n case 1:\n result = _context2.v;\n id = result.id;\n filePending = true;\n case 2:\n if (!filePending) {\n _context2.n = 5;\n break;\n }\n _context2.n = 3;\n return fetchFilePendingFlag(result.status_url);\n case 3:\n filePending = _context2.v;\n if (!filePending) {\n _context2.n = 4;\n break;\n }\n _context2.n = 4;\n return pauseOneSecond();\n case 4:\n _context2.n = 2;\n break;\n case 5:\n return _context2.a(2, id);\n }\n }, _callee2);\n }));\n return _uploadURL.apply(this, arguments);\n }\n function fetchFilePendingFlag(_x0) {\n return _fetchFilePendingFlag.apply(this, arguments);\n }\n function _fetchFilePendingFlag() {\n _fetchFilePendingFlag = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(statusURL) {\n var statusRequest, stat, tmp;\n return _regenerator().w(function (_context3) {\n while (1) switch (_context3.n) {\n case 0:\n _context3.n = 1;\n return fetch(statusURL);\n case 1:\n statusRequest = _context3.v;\n if (statusRequest.ok) {\n _context3.n = 2;\n break;\n }\n throw statusRequest.status;\n case 2:\n _context3.n = 3;\n return statusRequest.text();\n case 3:\n stat = _context3.v;\n tmp = parseBrokenCanvasJSON(stat);\n return _context3.a(2, tmp && tmp.upload_status === \"pending\");\n }\n }, _callee3);\n }));\n return _fetchFilePendingFlag.apply(this, arguments);\n }\n function postFileDataToCanvas(_x1, _x10) {\n return _postFileDataToCanvas.apply(this, arguments);\n }\n function _postFileDataToCanvas() {\n _postFileDataToCanvas = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(fileData, url) {\n var response;\n return _regenerator().w(function (_context4) {\n while (1) switch (_context4.n) {\n case 0:\n _context4.n = 1;\n return fetch(url !== null && url !== void 0 ? url : \"/api/v1/users/self/files\", {\n method: \"POST\",\n body: new URLSearchParams(fileData)\n });\n case 1:\n response = _context4.v;\n if (response.ok) {\n _context4.n = 2;\n break;\n }\n throw response.status;\n case 2:\n return _context4.a(2, response.json());\n }\n }, _callee4);\n }));\n return _postFileDataToCanvas.apply(this, arguments);\n }\n function parseBrokenCanvasJSON(text) {\n return JSON.parse(text.replace(/^while\\(1\\);/, \"\"));\n }\n function pauseOneSecond() {\n return new Promise(function (res) {\n setTimeout(function () {\n return res();\n }, 1000);\n });\n }\n});","define(\"bocce/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"bocce/config/environment\"], function (_exports, _initializerFactory, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"bocce/config/environment\"eaimeta@70e063a35619d71f\n var name, version;\n if (_environment.default.APP) {\n name = _environment.default.APP.name;\n version = _environment.default.APP.version;\n }\n var _default = _exports.default = {\n name: 'App Version',\n initialize: (0, _initializerFactory.default)(name, version)\n };\n});","define(\"bocce/initializers/deprecation-logger\", [\"exports\", \"@ember/debug\"], function (_exports, _debug) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.initialize = initialize;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\"eaimeta@70e063a35619d71f\n function initialize() {\n (0, _debug.registerDeprecationHandler)(function (message, options, next) {\n // let filtered = [].reduce((val, type) => val || message.includes(type), false);\n // if (!filtered) {\n // next(message, options);\n // }\n // console.group(`DEPRECATION: ${message}`);\n // if (options?.id) console.log('id:', options.id);\n // if (options?.since) console.log('since:', options.since);\n // if (options?.until) console.log('until:', options.until);\n // if (options?.url) console.log('guide:', options.url);\n\n // Prefer the stack Ember provides; otherwise synthesize one\n // if (options?.stack) {\n // console.log(options.stack);\n // } else {\n // console.log(new Error().stack);\n // }\n // console.groupEnd();\n\n next(message, options); // let Ember continue normal handling\n });\n }\n});","define(\"bocce/initializers/ember-cli-mirage\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n var _default = _exports.default = {\n name: 'ember-cli-mirage',\n initialize: function initialize() {}\n };\n});","define(\"bocce/initializers/ember-data\", [\"exports\", \"@ember-data/request-utils/deprecation-support\"], function (_exports, _deprecationSupport) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/request-utils/deprecation-support\"eaimeta@70e063a35619d71f\n /*\n This code initializes EmberData in an Ember application.\n */\n var _default = _exports.default = {\n name: 'ember-data',\n initialize: function initialize(application) {\n application.registerOptionsForType('serializer', {\n singleton: false\n });\n application.registerOptionsForType('adapter', {\n singleton: false\n });\n }\n };\n});","define(\"bocce/js/editor/customizations\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = customize;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\n function _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\n function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\n function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\n function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && \"function\" == typeof p ? function (t) { return p.apply(e, t); } : p; }\n function _get() { return _get = \"undefined\" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }\n function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }\n function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\n function _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\n function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n function customize(Quill) {\n customizeIcons(Quill);\n fixUnorderedList(Quill);\n }\n function fixUnorderedList(Quill) {\n var ListContainer = Quill.import(\"blots/container\");\n var ListItem = Quill.import(\"formats/list\");\n var BocceListContainer = /*#__PURE__*/function (_ListContainer) {\n function BocceListContainer() {\n _classCallCheck(this, BocceListContainer);\n return _callSuper(this, BocceListContainer, arguments);\n }\n _inherits(BocceListContainer, _ListContainer);\n return _createClass(BocceListContainer, [{\n key: \"checkMerge\",\n value: function checkMerge() {\n // Only merge if the next list is the same type as this one\n return _superPropGet(BocceListContainer, \"checkMerge\", this, 3)([]) && this.domNode.tagName === this.next.domNode.tagName;\n }\n }], [{\n key: \"create\",\n value: function create(value) {\n return document.createElement(this.getTag(value));\n }\n }, {\n key: \"getTag\",\n value: function getTag(val) {\n // Our \"ql-list\" values are \"bullet\" and \"ordered\"\n var map = {\n bullet: \"UL\",\n ordered: \"OL\"\n };\n return map[val] || this.defaultTag;\n }\n }]);\n }(ListContainer);\n _defineProperty(BocceListContainer, \"tagName\", [\"OL\", \"UL\"]);\n _defineProperty(BocceListContainer, \"defaultTag\", \"OL\");\n var BocceListItem = /*#__PURE__*/function (_ListItem) {\n function BocceListItem() {\n _classCallCheck(this, BocceListItem);\n return _callSuper(this, BocceListItem, arguments);\n }\n _inherits(BocceListItem, _ListItem);\n return _createClass(BocceListItem, [{\n key: \"optimize\",\n value: function optimize(context) {\n if (this.statics.requiredContainer && !(this.parent instanceof this.statics.requiredContainer)) {\n // Insert the format value (bullet, ordered) into wrap arguments\n this.wrap(this.statics.requiredContainer.blotName, BocceListItem.formats(this.domNode));\n }\n _superPropGet(BocceListItem, \"optimize\", this, 3)([context]);\n }\n }, {\n key: \"format\",\n value: function format(name, value) {\n // If the list type is different, wrap this list item in a new MyListContainer of that type\n if (name === ListItem.blotName && value !== BocceListItem.formats(this.domNode)) {\n this.wrap(this.statics.requiredContainer.blotName, value);\n }\n _superPropGet(BocceListItem, \"format\", this, 3)([name, value]);\n }\n }], [{\n key: \"register\",\n value: function register() {\n Quill.register(BocceListContainer, true);\n }\n }]);\n }(ListItem);\n _defineProperty(BocceListItem, \"requiredContainer\", BocceListContainer);\n BocceListContainer.allowedChildren = [BocceListItem];\n Quill.register(\"blots/container\", BocceListContainer);\n Quill.register(\"formats/list\", BocceListItem);\n }\n function customizeIcons(Quill) {\n var icons = Quill.import(\"ui/icons\");\n icons[\"bold\"] = '';\n icons[\"italic\"] = '';\n icons[\"underline\"] = '';\n icons[\"header\"] = '';\n icons[\"list\"] = {\n bullet: '',\n ordered: ''\n };\n icons[\"code-block\"] = '';\n }\n});","define(\"bocce/js/editor/editor\", [\"exports\", \"quill\", \"bocce/js/utils\", \"bocce/js/editor/customizations\"], function (_exports, _quill, _utils, _customizations) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"quill\",0,\"bocce/js/utils\",0,\"bocce/js/editor/customizations\"eaimeta@70e063a35619d71f\n var Delta = _quill.default.import(\"delta\");\n var _default = _exports.default = function _default(service, rteInput, editorEl, disable) {\n (0, _customizations.default)(_quill.default);\n var toolbarEl = editorEl.querySelector(\".rte__toolbar\");\n var editorContentEl = editorEl.querySelector(\".rte__editor\");\n var quill = null;\n try {\n quill = new _quill.default(editorContentEl, {\n modules: {\n toolbar: {\n container: toolbarEl,\n handlers: {\n flat: function flat() {\n return replaceText(quill, \"♭\");\n },\n sharp: function sharp() {\n return replaceText(quill, \"♯\");\n },\n natural: function natural() {\n return replaceText(quill, \"♮\");\n },\n save: function save() {\n return rteInput.saveArchive();\n },\n archive: function archive() {\n return rteInput.viewArchive();\n }\n }\n }\n },\n placeholder: \"Say something (or paste in a cool URL)...\",\n theme: \"snow\"\n });\n } catch (e) {\n console.log(e);\n }\n editorEl.addEventListener(\"paste\", function () {\n // Run after paste completes\n setTimeout(function () {\n var clean = (0, _utils.sanitize)(service.html);\n service.replace(clean);\n });\n });\n quill.on(_quill.default.events.TEXT_CHANGE, function (delta, oldDelta, source) {\n if (source === _quill.default.sources.USER) {\n editorEl.querySelectorAll(\"a\").forEach(function (a) {\n a.contentEditable = \"false\";\n });\n }\n rteInput.updateUserInput();\n });\n quill.enable(!disable);\n return quill;\n };\n function replaceText(quill, text) {\n var selection = quill.getSelection();\n if (!selection) return;\n quill.updateContents(new Delta().retain(selection.index).delete(selection.length).insert(text));\n quill.setSelection(selection.index + 1);\n }\n});","define(\"bocce/js/editor/service\", [\"exports\", \"bocce/js/editor/editor\", \"quill\"], function (_exports, _editor, _quill) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/js/editor/editor\",0,\"quill\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var Delta = _quill.default.import(\"delta\");\n var EditorService = _exports.default = /*#__PURE__*/function () {\n function EditorService(rteInput, element, editorDisabled) {\n _classCallCheck(this, EditorService);\n this.rteInput = rteInput;\n this.quill = (0, _editor.default)(this, rteInput, element, editorDisabled);\n this.element = element;\n }\n return _createClass(EditorService, [{\n key: \"html\",\n get: function get() {\n return this.quill.root.innerHTML;\n }\n\n // Use this for semantic HTML output (proper
      /
        tags)\n }, {\n key: \"getSemanticHTML\",\n value: function getSemanticHTML() {\n return this.quill.getSemanticHTML();\n }\n }, {\n key: \"append\",\n value: function append(content) {\n var currentDelta = this.quill.getContents();\n // Quill 2.0: clipboard.convert() now takes an object\n var newContent = this.quill.clipboard.convert({\n html: content\n });\n this.quill.setContents(currentDelta.concat(newContent));\n }\n }, {\n key: \"replace\",\n value: function replace(content) {\n var setSelection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n // Quill 2.0: clipboard.convert() now takes an object\n var delta = this.quill.clipboard.convert({\n html: content\n });\n this.quill.setContents(delta);\n if (setSelection) {\n this.quill.setSelection(this.quill.getLength(), 0);\n }\n }\n }, {\n key: \"appendOrReplace\",\n value: function appendOrReplace(content) {\n if (this.isEmpty) {\n this.replace(content);\n } else {\n this.append(content);\n }\n }\n }, {\n key: \"isEmpty\",\n get: function get() {\n var ops = this.quill.getContents().ops || [];\n if (ops.length !== 1) return false;\n return this.quill.getText().trim().length === 0;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.quill.setContents(new Delta());\n }\n }, {\n key: \"focus\",\n value: function focus() {\n this.quill.focus();\n }\n }]);\n }();\n});","define(\"bocce/js/quizzes/quizzes-factory\", [\"exports\", \"bocce/js/quizzes/quizzes\"], function (_exports, _quizzes) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/js/quizzes/quizzes\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n var QuizzesFactory = _exports.default = /*#__PURE__*/function () {\n function QuizzesFactory() {\n _classCallCheck(this, QuizzesFactory);\n }\n return _createClass(QuizzesFactory, null, [{\n key: \"get\",\n value: function get(quizId) {\n if (this.quizzesServices[quizId]) {\n return this.quizzesServices[quizId];\n } else {\n var quizzes = new _quizzes.default();\n this.quizzesServices[quizId] = quizzes;\n return quizzes;\n }\n }\n }]);\n }();\n _defineProperty(QuizzesFactory, \"quizzesServices\", {});\n});","define(\"bocce/js/store-util\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.pushDeletion = pushDeletion;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n //Taken from: https://gist.github.com/runspired/96618af26fb1c687a74eb30bf15e58b6/#file-push-deletion-js\n function pushDeletion(store, type, id) {\n var record = store.peekRecord(type, id);\n if (record !== null) {\n var relationships = {};\n var hasRelationships = false;\n record.eachRelationship(function (name, _ref) {\n var kind = _ref.kind;\n hasRelationships = true;\n relationships[name] = {\n data: kind === \"hasMany\" ? [] : null\n };\n });\n if (hasRelationships) {\n store.push({\n data: {\n type: type,\n id: id,\n relationships: relationships\n }\n });\n }\n record.unloadRecord();\n }\n }\n});","define(\"bocce/js/utils\", [\"exports\", \"sanitize-html\"], function (_exports, _sanitizeHtml) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.cleanHtml = cleanHtml;\n _exports.isBackShortcut = isBackShortcut;\n _exports.isForwardShortcut = isForwardShortcut;\n _exports.isMac = void 0;\n _exports.sanitize = sanitize;\n _exports.saveFile = saveFile;\n _exports.scoreToLetter = scoreToLetter;\n _exports.xmlToJson = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"sanitize-html\"eaimeta@70e063a35619d71f\n // html sanitizer\n\n function sanitize(string) {\n var sanitizeHtmlOptions = {\n allowedTags: _sanitizeHtml.default.defaults.allowedTags.concat([\"h2\", \"u\", \"span\"]),\n allowedAttributes: {\n a: [\"href\"],\n // Quill list structure / nesting metadata\n ol: [\"class\"],\n ul: [\"class\"],\n li: [\"class\", \"data-list\"],\n // Needed by newer Quill list markup in some cases\n span: [\"class\", \"contenteditable\"]\n },\n allowedClasses: {\n li: [/^ql-indent-\\d+$/, /^ql-direction-rtl$/],\n span: [\"ql-ui\"]\n },\n transformTags: {\n h1: \"h2\",\n a: function a(tagName, attribs) {\n if (!attribs[\"href\"] || attribs[\"href\"] === \"\") {\n return false;\n } else {\n return {\n tagName: tagName,\n attribs: {\n href: attribs.href\n }\n };\n }\n }\n }\n };\n return (0, _sanitizeHtml.default)(string, sanitizeHtmlOptions);\n }\n function cleanHtml(string) {\n var cleaned = sanitize(string);\n cleaned = cleaned.replace(//g, \"\");\n // Remove the comment block that the browser puts in.\n cleaned = cleaned.replace(//g, \"\");\n // Remove spaces\n cleaned = cleaned.replace(/\\s/g, \"\");\n return cleaned;\n }\n\n //Taken from https://stackoverflow.com/a/36899900\n function saveFile(name, type, data) {\n if (data !== null && navigator.msSaveBlob) return navigator.msSaveBlob(new Blob([data], {\n type: type\n }), name);\n var a = $(\"\");\n var url = window.URL.createObjectURL(new Blob([data], {\n type: type\n }));\n a.attr(\"href\", url);\n a.attr(\"download\", name);\n $(\"body\").append(a);\n a[0].click();\n window.URL.revokeObjectURL(url);\n a.remove();\n }\n var xmlToJson = _exports.xmlToJson = function xmlToJson(xml) {\n var obj = {};\n if (xml.nodeType == 1) {\n // element\n if (xml.attributes.length > 0) {\n obj[\"@attributes\"] = {};\n for (var j = 0; j < xml.attributes.length; j++) {\n var attribute = xml.attributes.item(j);\n obj[\"@attributes\"][attribute.nodeName] = attribute.nodeValue;\n }\n }\n } else if (xml.nodeType == 3) {\n // text\n obj = xml.nodeValue;\n }\n\n // do children\n if (xml.hasChildNodes()) {\n var children = xml.childNodes;\n if (children.length === 1 && children[0].nodeName === \"#text\") {\n obj = children[0].nodeValue;\n } else {\n for (var i = 0; i < children.length; i++) {\n var item = children.item(i);\n var nodeName = item.nodeName;\n if (typeof obj[nodeName] === \"undefined\") {\n obj[nodeName] = xmlToJson(item); // Call the function directly\n } else {\n if (!Array.isArray(obj[nodeName])) {\n obj[nodeName] = [obj[nodeName]];\n }\n obj[nodeName].push(xmlToJson(item)); // Call the function directly\n }\n }\n }\n }\n return obj;\n };\n function scoreToLetter(score) {\n var grade = \"\";\n if (score >= 93) {\n grade = \"A\";\n } else if (score >= 90) {\n grade = \"A-\";\n } else if (score >= 87) {\n grade = \"B+\";\n } else if (score >= 83) {\n grade = \"B\";\n } else if (score >= 80) {\n grade = \"B-\";\n } else if (score >= 77) {\n grade = \"C+\";\n } else if (score >= 73) {\n grade = \"C\";\n } else if (score >= 70) {\n grade = \"C-\";\n } else if (score >= 60) {\n grade = \"D\";\n } else {\n grade = \"F\";\n }\n return grade;\n }\n var isMac = _exports.isMac = /(macintosh|macintel|macppc|mac68k|macos)/i.test(window.navigator.userAgent.toLowerCase());\n function isBackShortcut(e) {\n // macOS: ⌘[\n if (isMac && e.metaKey && !e.shiftKey && !e.altKey && !e.ctrlKey && e.key === \"[\") return true;\n // Win/Linux: Alt+←\n if (!isMac && e.altKey && !e.shiftKey && !e.metaKey && !e.ctrlKey && e.key === \"ArrowLeft\") return true;\n // Special keyboard key\n if (e.key === \"BrowserBack\") return true;\n return false;\n }\n function isForwardShortcut(e) {\n // macOS: ⌘]\n if (isMac && e.metaKey && !e.shiftKey && !e.altKey && !e.ctrlKey && e.key === \"]\") return true;\n // Win/Linux: Alt+→\n if (!isMac && e.altKey && !e.shiftKey && !e.metaKey && !e.ctrlKey && e.key === \"ArrowRight\") return true;\n // Special keyboard key\n if (e.key === \"BrowserForward\") return true;\n return false;\n }\n});","define(\"bocce/mixins/assignments\", [\"exports\", \"@ember/object/mixin\", \"bocce/mixins/audio-rec\", \"bocce/mixins/video-rec\", \"bocce/mixins/rtc-rec\", \"bocce/mixins/boot\", \"bocce/mixins/showcase\", \"@ember/debug\", \"@ember/object\", \"@ember/object/computed\", \"@ember/runloop\", \"jquery\", \"@ember/service\", \"bocce/js/utils\"], function (_exports, _mixin, _audioRec, _videoRec, _rtcRec, _boot, _showcase, _debug, _object, _computed, _runloop, _jquery, _service, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"bocce/mixins/audio-rec\",0,\"bocce/mixins/video-rec\",0,\"bocce/mixins/rtc-rec\",0,\"bocce/mixins/boot\",0,\"bocce/mixins/showcase\",0,\"@ember/debug\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/service\",0,\"bocce/js/utils\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); } // app/mixins/assignments.js\n /*\nRequires access to the classroom and lessons Controllers. Include this\nin Controllers that include this mixin:\nclassroom: Ember.inject.controller(), // required by mixins\nlessons: Ember.inject.controller(), // required by mixins\n*/\n /* eslint-disable-next-line ember/no-new-mixins */\n var _default = _exports.default = _mixin.default.create(_audioRec.default, _videoRec.default, _rtcRec.default, _showcase.default, _boot.default, {\n init: function init() {\n this._super.apply(this, arguments);\n this.currentTimeMetronome();\n },\n bootContent: function bootContent() {\n /* eslint-disable-next-line ember/no-jquery */\n var node = (0, _jquery.default)(\".timed-assignment-instructions\");\n if (node && node.length > 0) {\n this.boot_area(node, false, true, false, false, true);\n }\n },\n grades: [\"A\", \"A-\", \"B+\", \"B\", \"B-\", \"C+\", \"C\", \"C-\", \"D\", \"F\"],\n rubric: (0, _service.inject)(),\n store: (0, _service.inject)(),\n router: (0, _service.inject)(),\n confirmDialog: (0, _service.inject)(),\n submissionNavigation: (0, _service.inject)(),\n curgrade: false,\n // NK: I'm making this an observer for now, because this function\n // introduces side effects, which computed properties should not do.\n /* eslint-disable-next-line ember/no-observers */\n assignmentTimerObserver: (0, _object.observer)(\"activeAssignment.{timed_assignment_data,timed_assignment,timed_assignment.startTime,timed_assignment.endTime}\", \"currentTimePulse\", function () {\n var _this = this;\n //This gets called sometimes right after 'activeAssignment' was set to false.\n //We don't want to do anything in this case.\n if (!this.activeAssignment) {\n return;\n }\n\n /* eslint-disable-next-line ember/no-get */\n if (!this.get(\"activeAssignment.timed_assignment\") || !this.instructionsBooted) {\n // Force timed assignment reload\n this.activeAssignment.reload().then(function () {\n /* eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions */\n (0, _runloop.scheduleOnce)(\"afterRender\", _this, function () {\n this.bootContent();\n this.instructionsBooted = true;\n });\n });\n }\n\n /* eslint-disable-next-line ember/no-get */\n var endTime = this.get(\"activeAssignment.timed_assignment.endTime\");\n if (!endTime) {\n this.set(\"lockdown\", false);\n this.set(\"videoRec\", false);\n this.set(\"assignmentTimer\", false);\n return;\n }\n var ms = new Date(endTime).getTime() - new Date().getTime();\n\n /* eslint-disable-next-line ember/no-get */\n var noTimer = this.get(\"activeAssignment.timed_assignment.no_timer\");\n if (!this.lockdown && ms < 0 && !noTimer) {\n this.set(\"lockdown\", true);\n }\n if (!noTimer) {\n // Sync every 60 sec, to let the interface know the user is still active\n if (!this.syncInterval || this.syncInterval > 60) {\n this.set(\"syncInterval\", 1);\n\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n /* eslint-disable-next-line ember/no-get */\n url: \"/interface/sections/\".concat(this.get(\"session.section.id\"), \"/assignments/\").concat(this.get(\"activeAssignment.id\"), \"/timer/sync_timer/\"),\n dataType: \"text\",\n success: function success() {\n (0, _debug.debug)(\"Timer Synced\");\n },\n error: function error(_error) {\n (0, _debug.debug)(\"Unable to sync timer. Something went wrong: \");\n (0, _debug.debug)(_error);\n }\n });\n } else {\n this.set(\"syncInterval\", this.syncInterval + 1);\n }\n if (!this.timerOn) {\n this.set(\"timerOn\", true);\n this.currentTimeMetronome();\n }\n }\n if (!noTimer) {\n var seconds = Math.abs(ms / 1000);\n var hours = parseInt(seconds / 3600); // 3,600 seconds in 1 hour\n seconds = seconds % 3600;\n var minutes = parseInt(seconds / 60);\n hours = hours > 0 ? hours + \":\" : \"\";\n if (minutes < 10 && hours > 1) {\n minutes = \"0\" + minutes;\n }\n minutes = minutes + \":\";\n seconds = Math.floor(seconds % 3600 % 60);\n if (seconds < 10) {\n seconds = \"0\" + seconds;\n }\n this.set(\"assignmentTimer\", hours + minutes + seconds);\n return;\n }\n }),\n currentTimeMetronome: function currentTimeMetronome() {\n var interval = 1000;\n if (this.timerOn) {\n (0, _runloop.later)(this, function () {\n this.notifyPropertyChange(\"currentTimePulse\");\n this.currentTimeMetronome();\n }, interval);\n }\n },\n requirementsMet: (0, _computed.reads)(\"postable\"),\n // The quickgrader percent input edits this buffer rather than the\n // submission record, so the grade displayed in the header keeps its\n // persisted value until a post actually lands. The dependent key resets\n // the buffer when the viewed submission changes or a save brings back\n // the real score.\n stagedScore: (0, _object.computed)(\"openAssignmentView.score\", {\n get: function get() {\n /* eslint-disable-next-line ember/no-get */\n return this.get(\"openAssignmentView.score\");\n },\n set: function set(key, value) {\n return value;\n }\n }),\n // Stage a typed percent score for posting with the next comment. This is\n // wired to the input's own event (rather than observing score changes) so\n // that only a real edit sets currentGrade; otherwise, merely opening an\n // already-graded submission would queue its grade for re-posting with the\n // next comment.\n stageGrade: (0, _object.action)(function (event) {\n this.set(\"currentGrade\", parseFloat(event.target.value));\n }),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n canResubmit: (0, _object.computed)(\"openAssignmentView\", \"classroom.model.section.teachers\", function () {\n var teachers = this.classroom.model.section.hasMany(\"teachers\").value();\n if (!teachers) {\n return false;\n }\n if (!this.classroom || !teachers.find(function (teacher) {\n return teacher.profile;\n })) {\n return true;\n }\n if (!teachers.find(function (teacher) {\n return teacher.profile;\n }).get(\"profile.can_resubmit\")) {\n return true;\n }\n return teachers.find(function (teacher) {\n return teacher.profile;\n }).get(\"profile.can_resubmit\")[this.get(\"session.section.id\")] !== \"no\";\n }),\n // bind attachment model data to each element of an array\n bindAttachmentObjects: function bindAttachmentObjects(dataArray) {\n dataArray = dataArray ? dataArray.slice() : [];\n for (var i = 0; i < dataArray.length; ++i) {\n var item = dataArray[i];\n // Use Ember.set and Ember.get because it's not always an EmberObject\n (0, _object.set)(item, \"attachment_objects\", []);\n if (item.attachments) {\n for (var a = 0; a < item.attachments.length; ++a) {\n var file = item.attachments[a];\n if (_typeof(file) === \"object\" && file.url) {\n (0, _object.set)(file, \"name\", file.name || file.display_name || file.filename);\n (0, _object.set)(file, \"type\", file.type || item[\"content-type\"]);\n item.attachment_objects.push(file);\n } else {\n var id = file.id || file;\n var model = this.store.findRecord(\"attachment\", id);\n item.attachment_objects.push(model);\n }\n }\n }\n }\n },\n submissions: (0, _object.computed)(\"openAssignmentView.submission_history\", function () {\n var submissions = this.get(\"openAssignmentView.submission_history\");\n if (submissions) {\n this.bindAttachmentObjects(submissions);\n return submissions;\n } else {\n return false;\n }\n }),\n // All submissions prior to the newest submission\n submissionHistory: (0, _object.computed)(\"openAssignmentView.assignment.points_possible\", \"submissions.[]\", function () {\n var _this2 = this;\n var hist = this.submissions ? this.submissions.slice(0, -1) : false;\n if (!hist) {\n return false;\n }\n hist.forEach(function (h) {\n h.percentage = Math.round(100 * h.score / _this2.get(\"openAssignmentView.assignment.points_possible\"));\n });\n return hist.reverse();\n }),\n lastSubmission: (0, _object.computed)(\"submissionHistory\", function () {\n var subs = this.submissionHistory;\n if (subs) {\n return subs[subs.length - 1];\n } else {\n return false;\n }\n }),\n // All submissions after the first submission\n resubmissions: (0, _object.computed)(\"submissions.[]\", function () {\n var submissions = this.submissions;\n\n // remove the first submission; we only want REsubmissions:\n var resubmissions = submissions.slice(1);\n\n // Add an index to each item, to be used to scroll to\n // different assignment submission versions\n resubmissions.forEach(function (submission, i) {\n return submission.counter = i;\n });\n return resubmissions;\n }),\n comments: (0, _object.computed)(\"openAssignmentView.comments.@each.attachments\", function () {\n var comments = this.openAssignmentView.hasMany(\"comments\").value() || [];\n // TODO (NK): unroll this so that getting attachments isn't done\n // inside the getter. Maybe in the route?\n // this.bindAttachmentObjects(comments);\n return comments;\n }),\n // A sorted array of comments and resubmissions.\n commentTimeline: (0, _object.computed)(\"comments.@each.is_deleted\", \"resubmissions.[]\", function () {\n var comments = this.comments.filter(function (c) {\n return !c.is_deleted;\n });\n\n // Combine the two arrays\n var stream = comments.concat(this.resubmissions);\n\n // comments and submissions have different names for their\n // \"created\" dates. This gives us a unified sort date.\n stream.forEach(function (item) {\n // Uses Ember.get and Ember.set instead of item.get because not\n // all items are EmberObjects\n var date = item.created_at || item.submitted_at;\n item.sortDate = moment(date);\n });\n stream.sort(function (a, b) {\n // Uses Ember.get instead of item.get because not all items\n // are EmberObjects\n var aDate = a.sortDate;\n var bDate = b.sortDate;\n return aDate - bDate;\n });\n return stream;\n }),\n next_submission: (0, _object.computed)(\"openAssignmentView\", function () {\n if (!this.openAssignmentView || !this.openAssignmentView.get(\"data.assignment.submissions.content.content\")) {\n return;\n }\n var current = this.openAssignmentView.get(\"data.assignment.submissions.content.content\"),\n next_sub = current[current.indexOf(this.openAssignmentView) + 1] || false,\n next = next_sub.id || false;\n return next;\n }),\n prev_submission: (0, _object.computed)(\"openAssignmentView\", function () {\n if (!this.openAssignmentView || !this.openAssignmentView.get(\"data.assignment.submissions.content.content\")) {\n return;\n }\n var current = this.openAssignmentView.get(\"data.assignment.submissions.content.content\"),\n prev_sub = current[current.indexOf(this.openAssignmentView) - 1] || false,\n prev = prev_sub.id || false;\n return prev;\n }),\n openAssignmentModal: (0, _object.computed)(\"activeAssignment\", function () {\n return !!this.activeAssignment;\n }),\n // Router Business\n /* eslint-disable-next-line ember/no-observers */\n toggleAssignmentModal: (0, _object.observer)(\"openAssignmentView\", \"activeAssignment\", function () {\n var assignment = this.openAssignmentView,\n activeAssignment = this.activeAssignment,\n openAssignment = this.openAssignment;\n if (assignment && openAssignment) {\n if (assignment.get(\"assignment\").get(\"id\") !== openAssignment.get(\"id\")) {\n openAssignment = false;\n }\n }\n if (!!activeAssignment || !!assignment) {\n // \"assignment\" here is actually the submission we're viewing...\n if (assignment) {\n if (!openAssignment) {\n this.set(\"author\", assignment.get(\"data.user.short_name\"));\n this.set(\"openAssignment\", assignment.get(\"assignment\"));\n this.store.nestResources(\"comment\", [{\n course: assignment.get(\"data.course.id\")\n }, {\n assignment: assignment.get(\"data.id\")\n }, {\n submission: assignment.get(\"data.id\")\n }]);\n }\n }\n /* eslint-disable-next-line ember/no-incorrect-calls-with-inline-anonymous-functions */\n (0, _runloop.scheduleOnce)(\"afterRender\", this, function () {\n if (window.CameraTag) {\n window.CameraTag.setup();\n }\n });\n } else if (!activeAssignment && !assignment) {\n this.send(\"destroyEditor\");\n }\n this.send(\"clearAllFiles\");\n }),\n // \"user\" and \"section\" are referenced in ShowcaseMixin.\n user: (0, _computed.reads)(\"session.user\"),\n section: (0, _computed.reads)(\"session.section\"),\n postSubmissionGrade: (0, _object.action)(function (grade, onSuccessCallback, onFailureCallback) {\n var _this3 = this;\n var sub = this.openAssignmentView,\n that = this;\n this.store.nestResources(\"submission\", [{\n section: that.get(\"session.section.id\")\n }, {\n assignment: sub.get(\"assignment.id\")\n }]);\n var old_grade = sub.get(\"grade\");\n if (grade === \"n\") {\n grade = null;\n sub.set(\"posted_grade\", \"\");\n sub.set(\"workflow_state\", \"submitted\");\n } else if (grade === \"r\") {\n grade = null;\n sub.set(\"posted_grade\", null);\n sub.set(\"teacher_requires_resubmission\", \"needs_resubmit\");\n\n // Purge timer for assignment\n _jquery.default.ajax({\n type: \"POST\",\n url: \"/interface/sections/\".concat(that.get(\"session.section.id\"), \"/assignments/\").concat(sub.get(\"assignment.id\"), \"/user/\").concat(sub.get(\"user.id\"), \"/purge_assignment/\"),\n data: {},\n dataType: \"text\",\n success: function success() {\n (0, _debug.debug)(\"Assignments purged successfully\");\n },\n error: function error(_error2) {\n (0, _debug.debug)(\"Unable to purge assignments. Something went wrong: \");\n (0, _debug.debug)(_error2);\n }\n });\n } else {\n sub.set(\"rubric_assessment_objects\", sub.get(\"rubric_assessments\").map(function (a) {\n return {\n criteria_id: a.id.split(\"_\")[2],\n points: a.points,\n comments: a.comments\n };\n }));\n sub.set(\"posted_grade\", grade == \"x\" ? 0 : grade);\n sub.set(\"workflow_state\", \"graded\");\n sub.set(\"teacher_requires_resubmission\", \"submitted\");\n }\n sub.save().then(function (sub_with_score) {\n // Success\n\n if (grade !== old_grade) {\n // See if we need to update the gradebook\n var gbcol = _this3.store.peekRecord(\"gradebook\", sub.get(\"user.id\")),\n assn_id = parseInt(sub.get(\"assignment.id\"), 10);\n if (gbcol) {\n var ndx = gbcol.get(\"columns\").findIndex(function (m) {\n return m && parseInt(m.assignment_id, 10) === assn_id;\n });\n if (ndx >= 0) {\n gbcol.set(\"columns.\" + ndx + \".grade\", grade);\n gbcol.set(\"columns.\" + ndx + \".score\", sub_with_score.get(\"score\"));\n }\n }\n }\n if (+grade >= 0) {\n grade = (0, _utils.scoreToLetter)(Math.round(100 * grade / sub.get(\"assignment.points_possible\")));\n }\n sub.set(\"grade\", grade);\n sub.set(\"archive_body\", false);\n\n // Grading a submission means the teacher has seen it, so mark it read\n // now that the save is confirmed server-side. submission.needsGrade is\n // already false (workflow_state/grade were set above), but\n // needsTeacherAttention is `needsGrade || !read`, so without this the\n // submission keeps the assignment flagged until the route deactivates.\n // Marking read here lets assignment.needsTeacherAttention clear once the\n // last ungraded submission is graded, dropping the side-nav Activity\n // bubble and the panel filter badges. The activity list doesn't react to\n // per-item attention, so the assignment stays put instead of jumping.\n _this3.send(\"markSubmissionRead\");\n onSuccessCallback === null || onSuccessCallback === void 0 || onSuccessCallback.call(_this3);\n }, function (error) {\n // Failure\n (0, _debug.debug)(\"Failure\");\n (0, _debug.debug)(error);\n _this3.confirmDialog.show({\n subtitle: \"Error grading assignment.\"\n });\n onFailureCallback === null || onFailureCallback === void 0 || onFailureCallback.call(_this3);\n });\n }),\n assignmentSubmission: (0, _object.action)(function (assignment_id) {\n this.router.transitionTo(\"classroom.work.submission-new\", assignment_id);\n }),\n markSubmissionRead: (0, _object.action)(function () {\n var submission = this.openAssignmentView;\n if (!submission) return;\n\n // Set this locally, but use the route to save (to avoid\n // saving becoming complicated and having to guess our\n // desired operation)\n if (!submission.get(\"read\")) {\n submission.set(\"read\", true);\n // Advance the read high-water mark so a heartbeat replay of the comments\n // we just read doesn't re-flag the submission as unread.\n submission.markCommentsRead();\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.get(\"/interface/sections/\".concat(this.session.get(\"section.id\"), \"/assignments/\").concat(submission.get(\"assignment.id\"), \"/submissions/\").concat(submission.get(\"id\"), \"/read\"));\n }\n }),\n teardown: (0, _object.action)(function () {\n this.send(\"markSubmissionRead\");\n }),\n viewAssignmentSubmission: (0, _object.action)(function (submission_id) {\n var _this4 = this,\n _this$isRubricAssessm;\n var transition = function transition() {\n var _this4$submissionComp;\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".drawer-instructions\").attr(\"checked\", false);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\"#current-student-handle\").attr(\"checked\", false);\n _this4.set(\"showcaseOpen\", false);\n _this4.set(\"assetsRecovered\", true);\n\n // Mark the submission comments as read for the submission that we're _leaving_\n _this4.send(\"markSubmissionRead\");\n\n //Cleanup before switching submissions\n (_this4$submissionComp = _this4.submissionComponentCleanupCallback) === null || _this4$submissionComp === void 0 || _this4$submissionComp.call(_this4);\n\n // Stay within the panel the user is already in. Instructors work out of\n // the Activity panel (they never see Work), so navigating between\n // submissions there must not bounce them to the student-only Work panel.\n var route = _this4.session.get(\"panel\") === \"activity\" ? \"classroom.activity.submission\" : \"classroom.work.submission\";\n _this4.router.transitionTo(route, submission_id);\n };\n if ((_this$isRubricAssessm = this.isRubricAssessmentDirty) !== null && _this$isRubricAssessm !== void 0 && _this$isRubricAssessm.call(this)) {\n this.confirmDialog.show({\n subtitle: \"Are you sure you want to switch submissions? Your changes will be lost.\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n transition();\n }\n });\n } else {\n transition();\n }\n }),\n deleteSubmissionBody: (0, _object.action)(function () {\n var _this5 = this;\n this.confirmDialog.show({\n subtitle: \"Are you sure you want to delete the submission body? This will also mark the submission as needing resubmission.\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n _this5.openAssignmentView.set(\"archive_body\", true);\n _this5.postSubmissionGrade(\"r\");\n }\n });\n }),\n viewInLesson: (0, _object.action)(function (assignment_id) {\n var that = this;\n /* eslint-disable-next-line ember/no-get */\n this.store.findRecord(\"item\", this.get(\"activeAssignment.id\")).then(function (item) {\n var lessonId = item.get(\"lesson\").id;\n if (lessonId) {\n that.router.transitionTo(\"classroom.lessons\", lessonId, assignment_id);\n }\n }, function () {\n (0, _debug.debug)(\"Can't find lesson that contains assignment.\");\n });\n }),\n startTimer: (0, _object.action)(function () {\n var _this6 = this;\n this.set(\"timerStarting\", true);\n /* eslint-disable-next-line ember/no-jquery */\n _jquery.default.ajax({\n type: \"POST\",\n /* eslint-disable-next-line ember/no-get */\n url: \"/interface/sections/\".concat(this.get(\"session.section.id\"), \"/assignments/\").concat(this.get(\"activeAssignment.id\"), \"/timer/start_timer/\"),\n data: {},\n dataType: \"text\",\n success: function success() {\n _this6.set(\"timerStarting\", false);\n _this6.set(\"timerOn\", true);\n _this6.set(\"lockdown\", false);\n _this6.set(\"videoRec\", false);\n _this6.activeAssignment.reload().then(function () {\n /* eslint-disable-next-line ember/no-get */\n var endTime = _this6.get(\"activeAssignment.timed_assignment.endTime\");\n\n // Timer duraction calculated incorrectly - attempt to restart\n if (!endTime) {\n _this6.send(\"startTimer\");\n return;\n }\n\n // Timer duration started at lesss than 0 seconds - attempt to restart\n var ms = new Date(endTime).getTime() - new Date().getTime();\n if (ms < 0) {\n _this6.send(\"startTimer\");\n return;\n }\n _this6.currentTimeMetronome();\n (0, _runloop.later)(_this6, function () {\n this.bootContent();\n }, 2000);\n });\n (0, _debug.debug)(\"Timed assignment started sucessfully\");\n },\n error: function error(_error3) {\n (0, _debug.debug)(\"Unable to start timed assignment. Something went wrong: \");\n (0, _debug.debug)(_error3);\n }\n });\n }),\n goToAssignment: (0, _object.action)(function (assignment_id) {\n var _this7 = this;\n var commentBody = this.bodyInput;\n var confirm;\n if (commentBody.length > 0) {\n confirm = this.confirmDialog.show({\n subtitle: \"Are you sure you want to switch submissions? You will lose all unsaved data.\",\n choices: [\"Yes\", \"No\"]\n });\n } else {\n confirm = Promise.resolve(\"Yes\");\n }\n confirm.then(function (choice) {\n if (choice === \"Yes\") {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".drawer-select\").attr(\"checked\", false);\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".submission-container\").scrollTop(0);\n _this7.set(\"activeAssignment\", false);\n _this7.set(\"openAssignment\", false);\n _this7.set(\"openAssignmentView\", false);\n _this7.send(\"treatAssignment\", assignment_id);\n }\n });\n }),\n gradeAssignmentSubmission: (0, _object.action)(function (submission_url) {\n if (submission_url) {\n window.open(submission_url, \"_blank\");\n }\n }),\n submitAssignment: (0, _object.action)(/*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(section_id, assignment_id) {\n var _this8 = this;\n var content, sub, that, user_id, submissions, my_submissions;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n content = this.bodyInput, that = this;\n /* eslint-disable-next-line ember/no-jquery */\n if (!(_jquery.default.trim(content.replace(/ /g, \" \")).length === 0)) {\n _context.n = 1;\n break;\n }\n return _context.a(2);\n case 1:\n this.store.nestResources(\"submission\", [{\n section: section_id\n }, {\n assignment: assignment_id\n }]);\n this.set(\"uploadInProgress\", true);\n\n /* eslint-disable-next-line ember/no-get */\n sub = this.get(\"activeAssignment.data.submission\");\n if (!sub) {\n sub = this.activeAssignment.store.createRecord(\"submission\");\n }\n if (!this.working && this.file_ids.length > 0) {\n sub.set(\"file_ids\", this.file_ids);\n sub.set(\"submission_type\", \"online_upload\");\n } else {\n sub.set(\"submission_type\", \"online_text_entry\");\n }\n\n // Add any video embeds\n content = this.parseEmbed(content);\n content = content + this.videoEmbedString;\n sub.set(\"teacher_requires_resubmission\", \"submitted\");\n sub.set(\"body\", content);\n\n // The submission ID is derived from the assignment/user, so if\n // this is a resubmission then saving a new submission will give\n // us two models with identical IDs. To account for that, unload\n // all submissions for the current object before saving\n /* eslint-disable-next-line ember/no-get */\n user_id = this.get(\"session.user.id\");\n _context.n = 2;\n return this.model.submissions;\n case 2:\n submissions = _context.v;\n my_submissions = submissions.filter(function (s) {\n return s.get(\"user.id\") === user_id;\n });\n my_submissions.forEach(function (s) {\n return s.unloadRecord();\n });\n sub.save().then(function (sub) {\n that.set(\"timerOn\", false);\n that.activeAssignment.reload();\n that.set(\"uploadInProgress\", false);\n that.set(\"activeAssignment.needsCurrentUserSubmission\", false);\n that.send(\"clearAllFiles\");\n that.set(\"inEditor\", false);\n that.rteService.clear();\n that.send(\"destroyEditor\");\n that.send(\"viewAssignmentSubmission\", sub.id);\n }, function (err) {\n that.confirmDialog.show({\n subtitle: \"There was a problem submitting your assignment. Please retry in a moment.\"\n });\n (0, _debug.debug)(content);\n (0, _debug.debug)(_this8.bodyInput);\n (0, _debug.debug)(err);\n that.set(\"uploadInProgress\", false);\n });\n case 3:\n return _context.a(2);\n }\n }, _callee, this);\n }));\n return function (_x, _x2) {\n return _ref.apply(this, arguments);\n };\n }()),\n switchSubmissionGrade: (0, _object.action)(function (grade) {\n var gradeScoreRubric = {\n A: 100,\n \"A-\": 92,\n \"B+\": 89,\n B: 86,\n \"B-\": 82,\n \"C+\": 79,\n C: 76,\n \"C-\": 72,\n D: 69,\n F: 0,\n R: 0\n };\n\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".quickgrader input\").removeClass(\"checked\");\n if (grade) {\n // TODO: rewrite this feature so that we don't imperatively change the\n // selection class here. This should be doable without the runloop.\n (0, _runloop.schedule)(\"afterRender\", function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)('.quickgrader input[value=\"' + grade + '\"]').addClass(\"checked\");\n });\n this.set(\"currentGrade\", grade);\n this.set(\"stagedScore\", gradeScoreRubric[grade]);\n } else {\n this.set(\"currentGrade\", false);\n }\n }),\n //dontClearBodyInput is needed because this function is called in two different places,\n //and one of them doesn't need bodyInput to be cleared.\n postSubmissionComment: (0, _object.action)(function (onSuccessCallback, dontClearBodyInput) {\n var content = this.bodyInput,\n sub = this.openAssignmentView,\n submission_id = sub.get(\"id\"),\n comment = sub.store.createRecord(\"comment\"),\n /* eslint-disable-next-line ember/no-get */\n usr = this.get(\"session.user\"),\n that = this,\n currentGrade;\n if (!content || content === \"\") {\n return;\n }\n\n // Add any video embeds\n content = this.parseEmbed(content);\n content = content + this.videoEmbedString;\n this.store.nestResources(\"submission\", [{\n section: that.get(\"session.section.id\")\n }, {\n assignment: sub.get(\"assignment.id\")\n }]);\n this.store.nestResources(\"comment\", [{\n section: that.get(\"session.section.id\")\n }, {\n assignment: sub.get(\"assignment.id\")\n }, {\n submission: submission_id\n }]);\n if (!this.working && this.file_ids.length > 0) {\n comment.set(\"file_ids\", this.file_ids);\n comment.set(\"attachments\", this.file_ids);\n }\n comment.set(\"comment\", content);\n comment.set(\"user\", usr);\n sub.comments.then(function (comments) {\n sub.set(\"comments\", [].concat(_toConsumableArray(comments), [comment]));\n });\n that.set(\"inEditor\", false);\n if (!dontClearBodyInput) {\n that.rteService.clear();\n }\n comment.save().then(function (savedComment) {\n comment.set(\"db_id\", savedComment.get(\"db_id\"));\n that.set(\"openAssignmentView\", sub);\n\n // If there's a grade in the pipeline, post it\n var grade_to_assign = that.get(\"currentGrade\");\n if (grade_to_assign) {\n that.set(\"currentGrade\", false);\n } else if (!sub.get(\"grade_matches_current_submission\")) {\n // If an instructor is leaving a comment on a resub and not changing\n // the grade, preserve it for the new submission\n grade_to_assign = sub.get(\"grade\");\n }\n if (grade_to_assign) {\n // If the grade is a number, add a percentage sign to it, so it submits correctly...\n if (!isNaN(parseInt(grade_to_assign)) && toString(grade_to_assign).split(\"%\").length === 1) {\n grade_to_assign = grade_to_assign + \"%\";\n }\n that.send(\"postSubmissionGrade\", grade_to_assign, function () {\n onSuccessCallback === null || onSuccessCallback === void 0 || onSuccessCallback();\n });\n } else {\n onSuccessCallback === null || onSuccessCallback === void 0 || onSuccessCallback();\n }\n that.send(\"clearAllFiles\");\n }, function () {\n var conv = sub.get(\"comments\").at(sub.get(\"comments.length\") - 1);\n currentGrade = that.get(\"currentGrade\");\n conv.set(\"needs_repost\", true);\n conv.set(\"attached_grade\", currentGrade);\n that.set(\"currentGrade\", false);\n });\n }),\n scrollToAssignment: (0, _object.action)(function (version) {\n /* eslint-disable-next-line ember/no-jquery */\n var container = (0, _jquery.default)(\".submission-container\");\n /* eslint-disable-next-line ember/no-jquery */\n var verNode = (0, _jquery.default)(\".submission-container li[version=\" + version + \"]\");\n if (verNode.length > 0) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".submission-container input[version=\" + version + \"]\").prop(\"checked\", true);\n container.scrollTop(container.scrollTop() + verNode.offset().top - container.offset().top);\n }\n }),\n scrollToComment: (0, _object.action)(function (counter) {\n /* eslint-disable-next-line ember/no-jquery */\n var node = (0, _jquery.default)(\".submission-container .assignment-comments li.reply[data-counter=\\\"\".concat(counter, \"\\\"]\"));\n if (node.length > 0) {\n /* eslint-disable-next-line ember/no-jquery */\n var container = (0, _jquery.default)(\".submission-container\");\n container.scrollTop(container.scrollTop() + node.offset().top - container.offset().top);\n }\n }),\n repostSubmissionComment: (0, _object.action)(function (comment) {\n var that = this;\n comment.set(\"needs_repost\", false);\n comment.set(\"is_reposting\", true);\n comment.save().then(function () {\n comment.set(\"needs_repost\", false);\n comment.set(\"is_reposting\", false);\n var gr = comment.get(\"attached_grade\");\n if (gr) {\n that.send(\"postSubmissionGrade\", gr);\n }\n }, function () {\n comment.set(\"needs_repost\", true);\n comment.set(\"is_reposting\", false);\n });\n }),\n setAssignmentSubmissionsHiddenStatus: (0, _object.action)(function (assignment, status) {\n var _this9 = this;\n this.confirmDialog.show({\n subtitle: \"Are you sure you want to make all student submissions for this assignment viewable to all students in the class?\",\n choices: [\"Yes\", \"No\"]\n }).then(function (choice) {\n if (choice === \"Yes\") {\n var submissions = assignment.get(\"submissions\");\n submissions.forEach(function (submission) {\n _this9.store.nestResources(\"submission\", [{\n section: assignment.get(\"section.id\")\n }, {\n assignment: assignment.get(\"id\")\n }]);\n submission.set(\"hidden_from_students\", status);\n submission.save();\n });\n }\n });\n })\n });\n});","define(\"bocce/mixins/attachments-mixin\", [\"exports\", \"@ember/object/mixin\", \"@ember/object\", \"@ember/service\"], function (_exports, _mixin, _object, _service) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /* Attachments Mixin\n *\n * Use this anywhere that you have an attachments property on an object\n * that you need to convert into attachment models from the interface.\n * Canvas gives us attachments properties in a non-Ember-friendly way,\n * so this acts as a go-between so when we use the attachment-preview\n * component it works correctly.\n */\n /* eslint-disable-next-line ember/no-new-mixins */\n var _default = _exports.default = _mixin.default.create({\n store: (0, _service.inject)(),\n /* eslint-disable-next-line ember/require-computed-property-dependencies */\n attachment_objects: (0, _object.computed)(\"attachments.[]\", function () {\n var attachments = this.attachments;\n if (!attachments) {\n return [];\n }\n var retval = [];\n var _iterator = _createForOfIteratorHelper(attachments),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n // If the item is an object with a URL, that should be all we need to render the attachment component. If there\n // is no URL, assume that item either is or has an ID that we can use to get the attachment model from the store.\n if (_typeof(item) === \"object\" && item.url) {\n // If item doesn't already have a name or type, copy other property values that can work instead.\n (0, _object.set)(item, \"name\", item.name || item.display_name || item.filename);\n (0, _object.set)(item, \"type\", item.type || item[\"content-type\"]);\n retval.push(item);\n } else {\n // item can either be an ID, or an object with an ID property. If it's an object with an ID, use that.\n var id = void 0;\n if (Object.prototype.hasOwnProperty.call(item, \"id\")) {\n id = item.id;\n } else {\n id = item;\n }\n if (id) {\n // This works because the attachment adapter (see adapters/attachment.js) prevents re-fetching attachment models\n // from the server. Attachment models should almost never be fetched individually; instead they should be\n // included as sideloaded models when fetching discussions, messages, submissions, etc. When they're sideloaded\n // the URL property includes a query string that Canvas uses to verify that the user has permission to view it.\n retval.push(this.store.findRecord(\"attachment\", id));\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return retval;\n })\n });\n});","define(\"bocce/mixins/audio-rec\", [\"exports\", \"@ember/debug\", \"@ember/object/mixin\", \"@ember/object\", \"bocce/mixins/legacy-attachment-manager\", \"@bocce/shared\"], function (_exports, _debug, _mixin, _object, _legacyAttachmentManager, _shared) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"@ember/object\",0,\"bocce/mixins/legacy-attachment-manager\",0,\"@bocce/shared\"eaimeta@70e063a35619d71f\n // app/mixins/audio-recorder.js\n /* eslint-disable-next-line ember/no-mixins */\n /* eslint-disable-next-line ember/no-new-mixins */\n var _default = _exports.default = _mixin.default.create(_legacyAttachmentManager.default, {\n recorder: false,\n panel: false,\n echoCancellationEnabled: (0, _object.computed)(function () {\n return localStorage.getItem(\"bocceEchoCancellation\") === \"true\";\n }),\n isChrome: (0, _object.computed)(function () {\n return navigator.userAgent.toLowerCase().indexOf(\"chrome\") > -1;\n }),\n noRec: (0, _object.computed)(function () {\n // Check if getUserMedia is available. Otherwise, kill mic.\n navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;\n return !navigator.getUserMedia;\n }),\n startUserMedia: function startUserMedia(stream) {\n this.set(\"recorder\", new _shared.Recorder(stream));\n (0, _debug.debug)(\"Recorder initialised.\");\n },\n createDownloadLink: function createDownloadLink() {\n var panel = this.panel;\n this.recorder.exportMP3(function (blob, mp3Name, context) {\n var file = new File([blob], mp3Name, {\n type: \"audio/mpeg3\"\n });\n if (context.routeName) {\n //If context ISN'T a controller...\n context = context.get(\"controller\");\n }\n panel.attributes.class.value = \"audio-rec-panel active stopped\";\n context.send(\"addValidFile\", file);\n context.send(\"toggleAudioRecPanel\");\n }, this);\n },\n toggleAudioRecPanel: (0, _object.action)(function (close) {\n var panel;\n this.set(\"panel\", document.querySelector(\".floating-modal.active .audio-rec-panel\"));\n this.set(\"timeCode\", document.querySelector(\".floating-modal.active .audio-rec-panel .time-code\"));\n panel = this.panel;\n if (!!close || panel.classList.contains(\"active\") || this.noRec) {\n panel.attributes.class.value = \"audio-rec-panel standby\";\n return false;\n }\n if (panel.classList.contains(\"active\") || !!close && !!this.currStream) {\n this.recorder.destroy();\n this.set(\"recorder\", false);\n } else {\n panel.attributes.class.value = \"audio-rec-panel standby active\";\n this.send(\"toggleCameraPanel\", true);\n try {\n // WebKit nonsense\n window.AudioContext = window.AudioContext || window.webkitAudioContext;\n window.URL = window.URL || window.webkitURL;\n (0, _debug.debug)(\"Audio context set up.\");\n (0, _debug.debug)(\"navigator.getUserMedia \" + (navigator.getUserMedia ? \"available.\" : \"not present!\"));\n } catch (e) {\n (0, _debug.debug)(\"No web audio support in this browser!\");\n }\n }\n }),\n audioRecRecord: (0, _object.action)(function () {\n var _this = this;\n var constraints = {\n audio: true\n };\n if (!(localStorage.getItem(\"bocceEchoCancellation\") === \"true\")) {\n constraints.audio = {\n echoCancellation: false,\n mozAutoGainControl: false,\n mozNoiseSuppression: false,\n googEchoCancellation: false,\n googAutoGainControl: false,\n googNoiseSuppression: false,\n googHighpassFilter: false\n };\n }\n navigator.mediaDevices.getUserMedia(constraints).then(function (stream) {\n _this.startUserMedia(stream);\n var timeCode = _this.timeCode,\n rec = _this.recorder.record(function (time) {\n timeCode.setAttribute(\"time_code\", time);\n });\n if (rec) {\n _this.panel.attributes.class.value = \"audio-rec-panel active recording\";\n }\n }).catch(function (error) {\n (0, _debug.debug)(\"No live audio input: \" + e);\n _this.panel.attributes.class.value = \"audio-rec-panel permission\";\n });\n }),\n audioRecStop: (0, _object.action)(function () {\n var rec = this.recorder.stop();\n if (rec) {\n // create MP3 download link using audio data blob\n this.createDownloadLink();\n this.panel.attributes.class.value = \"audio-rec-panel active encoding\";\n }\n }),\n echoCancellationToggleAudio: (0, _object.action)(function () {\n var echoCancellation = localStorage.getItem(\"bocceEchoCancellation\") === \"true\";\n if (echoCancellation) {\n localStorage.setItem(\"bocceEchoCancellation\", false);\n this.set(\"echoCancellationEnabled\", false);\n } else {\n localStorage.setItem(\"bocceEchoCancellation\", true);\n this.set(\"echoCancellationEnabled\", true);\n }\n })\n });\n});","define(\"bocce/mixins/boot\", [\"exports\", \"@ember/object/mixin\", \"jquery\", \"bocce/mixins/embed-parser\", \"bocce/mixins/support/render-template\", \"@ember/application\", \"@ember/service\", \"bocce/config/environment\", \"bocce/utils/wistia\", \"bocce/mixins/interactions/audio_comments\", \"bocce/mixins/interactions/audio_markers_quiz\", \"bocce/mixins/interactions/bass_fretboard_quiz\", \"bocce/mixins/interactions/bpm_tap_pad\", \"bocce/mixins/interactions/content_container\", \"bocce/mixins/interactions/content_framing\", \"bocce/mixins/interactions/codec_comparison\", \"bocce/mixins/interactions/cycle_5\", \"bocce/mixins/interactions/fill_in_the_blanks_quiz\", \"bocce/mixins/interactions/drag_and_drop_quiz\", \"bocce/mixins/interactions/embedder\", \"bocce/mixins/interactions/flash_cards\", \"bocce/mixins/interactions/form_builder\", \"bocce/mixins/interactions/guitar\", \"bocce/mixins/interactions/hot_spot_quiz\", \"bocce/mixins/interactions/image_explorer\", \"bocce/mixins/interactions/javascript\", \"bocce/mixins/interactions/list_rollover\", \"bocce/mixins/interactions/mix_visualizer\", \"bocce/mixins/interactions/piano_quiz\", \"bocce/mixins/interactions/requirements\", \"bocce/mixins/interactions/reveal_content\", \"bocce/mixins/interactions/reveal_text_quiz\", \"bocce/mixins/interactions/rive\", \"bocce/mixins/interactions/simple_slideshow\", \"bocce/mixins/interactions/slideshow\", \"bocce/mixins/interactions/solfege_ladder\", \"bocce/mixins/interactions/sound_mixer\", \"bocce/mixins/interactions/text_line_and_text_select_hybrid\", \"bocce/mixins/interactions/timed_writing\", \"bocce/mixins/interactions/timeline\", \"bocce/mixins/interactions/timeline_knightlab\", \"bocce/mixins/interactions/view-or-take-a-survey\", \"bocce/mixins/interactions/video_commentary\", \"bocce/mixins/interactions/video_mixer\"], function (_exports, _mixin, _jquery, _embedParser, template, _application, _service, _environment, _wistia, _audio_comments, _audio_markers_quiz, _bass_fretboard_quiz, _bpm_tap_pad, _content_container, _content_framing, _codec_comparison, _cycle_, _fill_in_the_blanks_quiz, _drag_and_drop_quiz, _embedder, _flash_cards, _form_builder, _guitar, _hot_spot_quiz, _image_explorer, _javascript, _list_rollover, _mix_visualizer, _piano_quiz, _requirements, _reveal_content, _reveal_text_quiz, _rive, _simple_slideshow, _slideshow, _solfege_ladder, _sound_mixer, _text_line_and_text_select_hybrid, _timed_writing, _timeline, _timeline_knightlab, _viewOrTakeASurvey, _video_commentary, _video_mixer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"jquery\",0,\"bocce/mixins/embed-parser\",0,\"bocce/mixins/support/render-template\",0,\"@ember/application\",0,\"@ember/service\",0,\"bocce/config/environment\",0,\"bocce/utils/wistia\",0,\"bocce/mixins/interactions/audio_comments\",0,\"bocce/mixins/interactions/audio_markers_quiz\",0,\"bocce/mixins/interactions/bass_fretboard_quiz\",0,\"bocce/mixins/interactions/bpm_tap_pad\",0,\"bocce/mixins/interactions/content_container\",0,\"bocce/mixins/interactions/content_framing\",0,\"bocce/mixins/interactions/codec_comparison\",0,\"bocce/mixins/interactions/cycle_5\",0,\"bocce/mixins/interactions/fill_in_the_blanks_quiz\",0,\"bocce/mixins/interactions/drag_and_drop_quiz\",0,\"bocce/mixins/interactions/embedder\",0,\"bocce/mixins/interactions/flash_cards\",0,\"bocce/mixins/interactions/form_builder\",0,\"bocce/mixins/interactions/guitar\",0,\"bocce/mixins/interactions/hot_spot_quiz\",0,\"bocce/mixins/interactions/image_explorer\",0,\"bocce/mixins/interactions/javascript\",0,\"bocce/mixins/interactions/list_rollover\",0,\"bocce/mixins/interactions/mix_visualizer\",0,\"bocce/mixins/interactions/piano_quiz\",0,\"bocce/mixins/interactions/requirements\",0,\"bocce/mixins/interactions/reveal_content\",0,\"bocce/mixins/interactions/reveal_text_quiz\",0,\"bocce/mixins/interactions/rive\",0,\"bocce/mixins/interactions/simple_slideshow\",0,\"bocce/mixins/interactions/slideshow\",0,\"bocce/mixins/interactions/solfege_ladder\",0,\"bocce/mixins/interactions/sound_mixer\",0,\"bocce/mixins/interactions/text_line_and_text_select_hybrid\",0,\"bocce/mixins/interactions/timed_writing\",0,\"bocce/mixins/interactions/timeline\",0,\"bocce/mixins/interactions/timeline_knightlab\",0,\"bocce/mixins/interactions/view-or-take-a-survey\",0,\"bocce/mixins/interactions/video_commentary\",0,\"bocce/mixins/interactions/video_mixer\"eaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } // app/mixins/boot.js\n /* eslint-disable-next-line ember/no-mixins */\n // PRM: there's probably a better way to do this, comining the above imports\n // and the below hash, but I couldn't find it quickly.\n var interactions = {\n AudioComments: _audio_comments.default,\n AudioMarkersQuiz: _audio_markers_quiz.default,\n BassFretboard: _bass_fretboard_quiz.default,\n BpmTapPad: _bpm_tap_pad.default,\n ContentContainer: _content_container.default,\n ContentFraming: _content_framing.default,\n CodecComparison: _codec_comparison.default,\n Cycle5Explorer: _cycle_.default,\n DragAndDropQuiz: _drag_and_drop_quiz.default,\n FillInTheBlanksQuiz: _fill_in_the_blanks_quiz.default,\n Embedder: _embedder.default,\n FlashCards: _flash_cards.default,\n FormBuilder: _form_builder.default,\n Guitar: _guitar.default,\n HotSpotQuiz: _hot_spot_quiz.default,\n ImageExplorer: _image_explorer.default,\n Javascript: _javascript.default,\n ListRollover: _list_rollover.default,\n MixVisualizer: _mix_visualizer.default,\n PianoQuiz: _piano_quiz.default,\n Requirements: _requirements.default,\n RevealContent: _reveal_content.default,\n RevealTextQuiz: _reveal_text_quiz.default,\n Rive: _rive.default,\n SimpleSlideshow: _simple_slideshow.default,\n Slideshow: _slideshow.default,\n SolfegeLadder: _solfege_ladder.default,\n SoundMixer: _sound_mixer.default,\n TextLineAndTextSelectHybrid: _text_line_and_text_select_hybrid.default,\n TimedWriting: _timed_writing.default,\n Timeline: _timeline.default,\n TimelineKnightlab: _timeline_knightlab.default,\n TakeaSurvey: _viewOrTakeASurvey.default,\n ViewaSurvey: _viewOrTakeASurvey.default,\n VideoCommentary: _video_commentary.default,\n VideoMixer: _video_mixer.default\n };\n window.bm = window.bm || {};\n\n /*\n * Tidal embed messaging.\n */\n function embedPlayerSendCommand(pid, commandName) {\n var container = document.getElementById(\"tidal-embed-\" + pid);\n if (container) {\n var playerIframe = container.getElementsByTagName(\"iframe\")[0];\n if (playerIframe) {\n playerIframe.contentWindow.postMessage(JSON.stringify({\n commandName: commandName\n }), \"*\");\n }\n }\n }\n function tidalMessageReceiver(event) {\n if (event.data) {\n var message = event.data;\n if (typeof message === \"string\") {\n try {\n message = JSON.parse(message);\n } catch (error) {\n return; // If invalid JSON it is not for us\n }\n }\n if (message && !isNaN(message.height) && !isNaN(message.pid)) {\n var el = document.querySelector(\"#tidal-embed-\" + message.pid + \" iframe\");\n if (el) {\n el.style.height = message.height + \"px\";\n }\n }\n }\n }\n window.addEventListener(\"message\", tidalMessageReceiver, false);\n window.TIDAL = window.TIDAL || {};\n window.TIDAL.embedPlayerCommand = embedPlayerSendCommand;\n\n /* eslint-disable-next-line ember/no-new-mixins */\n var _default = _exports.default = _mixin.default.create(_embedParser.default, {\n session: (0, _service.inject)(),\n boot_area: function boot_area($doc_node, standalone_player, boot_interaction, mark_booted, skip_av, skip_parse) {\n var _this = this;\n // Interactions now need to return a promise to reflect when they're\n // done booting.\n var promises = [],\n that = this;\n\n // Tidal boot fn\n function bootTidal() {\n var scriptPath = \"https://embed.tidal.com/\",\n embeds = document.querySelectorAll(\".tidal-embed\"),\n i,\n embed,\n related,\n token,\n custom,\n type,\n URLType,\n URLId;\n for (i = 0; i < embeds.length; i++) {\n embed = embeds[i];\n related = embed.getAttribute(\"data-related-id\") || \"\";\n token = embed.getAttribute(\"data-token\") || \"\";\n custom = embed.getAttribute(\"data-custom\") || \"\";\n if (embed.getAttribute(\"data-initialized\")) {\n continue;\n }\n embed.setAttribute(\"data-initialized\", true);\n type = embed.getAttribute(\"data-type\");\n if (type === \"t\") {\n URLType = \"tracks\";\n } else if (type === \"p\") {\n URLType = \"playlists\";\n } else if (type === \"a\") {\n URLType = \"albums\";\n } else if (type === \"v\") {\n URLType = \"videos\";\n }\n URLId = embed.getAttribute(\"data-id\");\n embed.innerHTML = \"\");\n embed.id = \"tidal-embed-\" + i;\n }\n }\n\n // Piano hover boot fn\n function bootPianoHover() {\n var bootable = document.querySelectorAll('[class^=\"piano-note-\"]');\n var _iterator = _createForOfIteratorHelper(bootable),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var element = _step.value;\n if (!element.classList.contains(\"booted\")) {\n var icon = document.createElement(\"i\");\n icon.className = \"fas fa-headphones\";\n icon.setAttribute(\"aria-hidden\", \"true\");\n element.insertBefore(icon, element.firstChild);\n addEventListener(\"click\", pianoHoverEvent);\n element.classList.add(\"btn\");\n element.classList.add(\"booted\");\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n function pianoHoverEvent(_x) {\n return _pianoHoverEvent.apply(this, arguments);\n } // Add extra Screen Reader navigation to the page\n function _pianoHoverEvent() {\n _pianoHoverEvent = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {\n var _noteString;\n var classes, noteString, chords, _iterator2, _step2, chord, notes, i, _t;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.p = _context.n) {\n case 0:\n // Get piano-note-id from the data-piano-note-id attribute\n // Notes are separated by \"-\", chords by \"/\"\n classes = _toConsumableArray(event.target.classList);\n noteString = classes.find(function (c) {\n return c.startsWith(\"piano-note-\");\n });\n noteString = noteString ? noteString.replace(\"piano-note-\", \"\") : \"\";\n chords = (_noteString = noteString) === null || _noteString === void 0 ? void 0 : _noteString.split(\"-\");\n _iterator2 = _createForOfIteratorHelper(chords);\n _context.p = 1;\n _iterator2.s();\n case 2:\n if ((_step2 = _iterator2.n()).done) {\n _context.n = 9;\n break;\n }\n chord = _step2.value;\n notes = chord.split(\"/\");\n if (!(notes.length > 1)) {\n _context.n = 7;\n break;\n }\n i = 0;\n case 3:\n if (!(i < notes.length - 1)) {\n _context.n = 5;\n break;\n }\n _context.n = 4;\n return window.piano.playNotes([notes[i]], 0, true);\n case 4:\n i++;\n _context.n = 3;\n break;\n case 5:\n _context.n = 6;\n return window.piano.playNotes([notes[notes.length - 1]], 1000, true);\n case 6:\n _context.n = 8;\n break;\n case 7:\n _context.n = 8;\n return window.piano.playNotes([notes], 1000, true);\n case 8:\n _context.n = 2;\n break;\n case 9:\n _context.n = 11;\n break;\n case 10:\n _context.p = 10;\n _t = _context.v;\n _iterator2.e(_t);\n case 11:\n _context.p = 11;\n _iterator2.f();\n return _context.f(11);\n case 12:\n return _context.a(2);\n }\n }, _callee, null, [[1, 10, 11, 12]]);\n }));\n return _pianoHoverEvent.apply(this, arguments);\n }\n function bootSRNav($doc_node) {\n $doc_node.find(\".body, .list-item\").each(function () {\n // Add tabindex 1 to each .body element without a tabindex\n /* eslint-disable-next-line ember/no-jquery */\n var $body = (0, _jquery.default)(this);\n if (!$body.attr(\"tabindex\")) {\n $body.attr(\"tabindex\", 1);\n }\n });\n\n // Handle images with captions first\n // Some screenreaders, like JAWS, have an AI image describer feature.\n // That tends to get extremely confusing for students, especially when complex diagrams are involved.\n // The solution is to swap all images out for a span with the caption text as the aria-label.\n // This way, the screen reader will read the caption text instead of attempting to AI-describe the images\n $doc_node.find(\"img\").each(function () {\n /* eslint-disable-next-line ember/no-jquery */\n var $img = (0, _jquery.default)(this);\n\n // Skip if already processed\n if ($img.attr(\"data-sr-processed\") === \"true\") {\n return;\n }\n\n // Check if this image has a caption\n var $captionDiv = $img.parent().find(\".component_caption\").first();\n if ($captionDiv.length > 0) {\n // Handle image with caption\n $img.attr(\"data-sr-processed\", \"true\");\n $img.attr(\"aria-hidden\", \"true\");\n\n // Get the caption text\n var captionText = $captionDiv.find(\".body\").text().trim();\n if (captionText) {\n // Create new span structure\n var $newCaption = (0, _jquery.default)(\"\", {\n class: \"component_caption\"\n });\n\n // Add sr-only prefix\n var $srPrefix = (0, _jquery.default)(\"\", {\n class: \"sr-only\",\n text: \"Image: \"\n });\n\n // Add the caption text as plain text\n $newCaption.append($srPrefix);\n $newCaption.append(captionText);\n\n // Replace the div with the new span\n $captionDiv.replaceWith($newCaption);\n }\n } else {\n // Handle standalone images with alt text\n var altText = $img.attr(\"alt\");\n if (altText && altText.trim()) {\n altText = altText.trim();\n\n // Mark as processed\n $img.attr(\"data-sr-processed\", \"true\");\n $img.attr(\"aria-hidden\", \"true\");\n\n // Determine the type of content for better context\n var prefix = \"Image\";\n if (altText.toLowerCase().includes(\"screenshot\")) {\n prefix = \"Screenshot\";\n } else if (altText.toLowerCase().includes(\"diagram\") || altText.toLowerCase().includes(\"chart\")) {\n prefix = \"Diagram\";\n } else if (altText.toLowerCase().includes(\"interface\") || altText.toLowerCase().includes(\"ui\")) {\n prefix = \"Interface element\";\n }\n\n // Create the screen reader text element\n var $srText = (0, _jquery.default)(\"\", {\n class: \"sr-only sr-image\",\n role: \"img\",\n \"aria-label\": \"\".concat(prefix, \": \").concat(altText)\n });\n\n // If the image is inside a link, we need to handle it differently\n var $parent = $img.parent();\n if ($parent.is(\"a\")) {\n // For linked images, append the text inside the link\n $parent.append($srText);\n } else {\n // Otherwise, insert after the image\n $img.after($srText);\n }\n }\n }\n });\n }\n\n // Add other link parser commands here:\n if (!skip_parse) {\n // TODO: Make this work differently!\n // Replacing the HTML here breaks quiz grading, presumably due to breaking something\n // that Ember is expecting (or maybe we're doing it out of order and need to defer\n // until after rendering). Either way, even a $doc_node.html($doc_node.html()) call\n // here will cause quiz grades to appear as \"false\".\n if (!$doc_node.hasClass(\"Quiz\")) {\n $doc_node.html(this.parseEmbed($doc_node.html(), \"tidal\"));\n }\n addPdfPreview($doc_node);\n }\n bootTidal();\n bootPianoHover();\n bootSRNav($doc_node);\n if ($doc_node.parents(\"#about-grading, #grading-and-other-course-policies\").length && !session.course.isGettingStarted && !session.course.isPublic) {\n addLateGradingPolicy($doc_node, session);\n }\n\n // We need to access the container to look up our various templates.\n template.set_container((0, _application.getOwner)(this));\n\n // Label Wistia, Vimeo players to differentiate from YT. Only the iframes\n // from embed-parser's wistiaParser need this now: `wistia_async_` div\n // embeds become `.player.video` nodes below and get labeled on boot.\n $doc_node.find(\"iframe.wistia_embed\").closest(\".video-component, .video_component\").addClass(\"not-youtube\");\n $doc_node.find(\".vimeo-player\").closest(\".video-component, .video_component\").addClass(\"not-youtube\");\n var soundSlicePlayers = $doc_node.find(\".soundslice-player\");\n if (_jquery.default.isMobile) {\n // Hide SS player and add button to load it\n soundSlicePlayers.each(function () {\n var $this = (0, _jquery.default)(this);\n var src = $this.attr(\"src\");\n $this.closest(\".video-component, .video_component\").addClass(\"not-youtube\");\n $this.closest(\".video-component, .video_component\").prepend((0, _jquery.default)(''));\n $this.closest(\".video-component, .video_component\").find(\".int-prep\").on(\"click\", function () {\n var src = (0, _jquery.default)(this).attr(\"data-src\");\n $doc_node.find(\"iframe.soundslice-player\").remove();\n $doc_node.find(\".int-prep.soundslice-prep\").removeClass(\"hidden\");\n (0, _jquery.default)(this).closest(\".video-component, .video_component\").append(\"\"));\n (0, _jquery.default)(this).addClass(\"hidden\");\n (0, _jquery.default)(\"html, body\").animate({\n scrollTop: (0, _jquery.default)(this).offset().top\n }, 500);\n });\n // delete iframe\n $this.remove();\n });\n } else {\n $doc_node.closest(\".video-component, .video_component\").addClass(\"not-youtube\");\n soundSlicePlayers.each(function () {\n // eslint-disable-next-line ember/no-jquery\n (0, _jquery.default)(this).closest(\".video-component, .video_component\").addClass(\"not-youtube\");\n });\n }\n\n /*\n * PRM: This is the first thing we do so the popups will start with\n * raw HTML instead of the already processed HTML.\n */\n $doc_node.find(\".popup-component, .popup_component\").not(\".booted\").each(function (pop_ndx, pop_node) {\n /* eslint-disable-next-line ember/no-jquery */\n var $pop_node = (0, _jquery.default)(pop_node),\n $anchor = $pop_node.find(\">a\"),\n $anchorHtml = $anchor.html(),\n $nodeContent;\n $pop_node.addClass(\"booted\");\n $nodeContent = $pop_node.find(\">div\").removeAttr(\"style\").addClass(\"popup-content\");\n $anchor.replaceWith(\"\");\n $pop_node.find(\".popup-label\").on(\"click\", function () {\n $nodeContent.children().clone(true, true).appendTo(\".popup-container .content\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container\").addClass(\"active\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container\").attr(\"closeId\", $pop_node.attr(\"id\"));\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-backdrop\").addClass(\"active\");\n /* eslint-disable-next-line ember/no-jquery */\n if ((0, _jquery.default)(\".side-panel\").length > 0) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").addClass(\"on-modal\");\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").addClass(\"no-scroll\");\n /* eslint-disable-next-line ember/no-jquery */\n that.boot_area((0, _jquery.default)(\".popup-container .content\"), true, true, false, false);\n });\n });\n $doc_node.find(\".image-component, .image_component\").not(\".booted\").each(function (pop_ndx, img_node) {\n /* eslint-disable-next-line ember/no-jquery */\n var $img_node = (0, _jquery.default)(img_node),\n $img = $img_node.find(\"img\"),\n imgWidth = $img.length > 0 ? $img.attr(\"width\") : false;\n\n // Use $doc_node.width() as another check before adding the zoomable feature. In some cases, such as the\n // assignment modal the width is zero, so the test is otherwise always false.\n var dn_width = $doc_node.width();\n if (imgWidth && dn_width && imgWidth > dn_width) {\n $img_node.on(\"click\", function () {\n $img_node.clone(false, false).appendTo(\".popup-container .content\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container\").addClass(\"active\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-container\").attr(\"closeId\", $img_node.attr(\"id\"));\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".popup-backdrop\").addClass(\"active\");\n /* eslint-disable-next-line ember/no-jquery */\n if ((0, _jquery.default)(\".side-panel\").length > 0) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".side-panel\").addClass(\"on-modal\");\n }\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".main-panel\").addClass(\"no-scroll\");\n });\n $img_node.addClass(\"zoomable\");\n }\n $img_node.addClass(\"booted\");\n });\n if (!skip_av) {\n $doc_node.find(\".player.audio:not(.booted)\").not(\".popup-content .player.audio\").each(function (ndx, node) {\n /* eslint-disable-next-line ember/no-jquery */\n var $node = (0, _jquery.default)(node),\n /* eslint-disable-next-line ember/no-jquery */\n title = (0, _jquery.default)(node.parentElement).find(\".component_caption\").text().replace(/\"/g, \""\"),\n source = get_html_attribute($node, \"source\");\n if (!$node.hasClass(\"booted\")) {\n if (!source) {\n source = $node.find(\".data-field.source\").text();\n }\n\n // If an audio player is in an interaction, render it directly.\n if ($node.parents(\".interaction-component, .interaction_component\").length > 0 || !!standalone_player) {\n $node.html(\"\"));\n } else {\n $node.html(\"\"));\n }\n $node.addClass(\"booted\");\n }\n });\n $doc_node.find(\".player.audio_multi:not(.booted)\").not(\".popup-content .player.audio_multi\").each(function (ndx, node) {\n if (!window.bm.counter) {\n window.bm.counter = 0;\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n var $nodeBase = (0, _jquery.default)(node),\n $node = $nodeBase.find(\".track\"),\n attrs = [\"track\", \"source\", \"title\", \"artist\", \"composer\", \"album\", \"label\", \"year\", \"image\"],\n vals = {},\n uniqueId = $nodeBase.attr(\"id\") + window.bm.counter,\n i,\n trackNodes,\n prev,\n next;\n window.bm.counter = parseInt(window.bm.counter) + 1;\n attrs.forEach(function (attr) {\n vals[attr] = $node.find(\".\" + attr).map(function () {\n return this.textContent;\n }).get();\n });\n trackNodes = \"\";\n for (i = 0; i < vals[\"source\"].length; i++) {\n if (i > 0) {\n prev = 'prev=\"track-' + uniqueId + \"-\" + (i - 1) + '\"';\n } else {\n prev = \"\";\n }\n if (i + 1 < vals[\"source\"].length) {\n next = 'next=\"track-' + uniqueId + \"-\" + (i + 1) + '\"';\n } else {\n next = \"\";\n }\n trackNodes += '';\n //trackNodes += '';\n trackNodes += '\";\n trackNodes += '
        ';\n\n // For each track info type, insert the value if it exists\n trackNodes += '
        ';\n\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(vals[\"artist\"][i]).length !== 0) {\n trackNodes += '
        Artist: ' + vals[\"artist\"][i] + \"
        \";\n }\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(vals[\"composer\"][i]).length !== 0) {\n trackNodes += '
        Composer: ' + vals[\"composer\"][i] + \"
        \";\n }\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(vals[\"album\"][i]).length !== 0) {\n trackNodes += '
        Album: ' + vals[\"album\"][i] + \"
        \";\n }\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(vals[\"year\"][i]).length !== 0) {\n trackNodes += '
        Year: ' + vals[\"year\"][i] + \"
        \";\n }\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(vals[\"label\"][i]).length !== 0) {\n trackNodes += '
        Record Label: ' + vals[\"label\"][i] + \"
        \";\n }\n trackNodes += \"
        \";\n\n /* eslint-disable-next-line ember/no-jquery */\n if (_jquery.default.trim(vals[\"image\"][i]).length !== 0) {\n trackNodes += '\"Cover';\n }\n trackNodes += \"
        \";\n }\n $nodeBase.html('
        ' + trackNodes + \"
        \");\n $nodeBase.addClass(\"booted\");\n });\n\n // copy to clipboard function; makes 'copy to clipboard' functionality out of text style\n $doc_node.find(\".click_to_copy\").each(function (ndx, node) {\n /* eslint-disable-next-line ember/no-jquery */\n var $node = (0, _jquery.default)(node);\n var text_to_copy = node.innerText;\n $node.html('

        Copied to clipboard.
        ');\n var ctc_text = node.firstChild,\n ctc_button = node.children[1],\n ctc_toggletip = $node.find(\"#ctc_toggletip\");\n ctc_text.append(text_to_copy);\n ctc_button.addEventListener(\"click\", function () {\n var range = document.createRange();\n range.selectNode(ctc_text);\n window.getSelection().addRange(range);\n try {\n var successful = document.execCommand(\"copy\");\n var msg = successful ? \"Copied to clipboard.\" : \"Sorry, unable to copy.\";\n ctc_toggletip.text(msg);\n // pop tooltip here\n ctc_toggletip.addClass(\"show\");\n window.setTimeout(function () {\n ctc_toggletip.removeClass(\"show\");\n }, 2500);\n } catch (err) {\n alert(\"Sorry, unable to copy.\");\n }\n window.getSelection().removeAllRanges();\n });\n });\n\n // Wistia's own embed code (`div.wistia_embed.wistia_async_`, usually\n // wrapped in a .wistia_responsive_padding box) used to self-boot off the\n // global E-v1.js script. Reshape it into the `.player.video` node the CMS\n // emits so the loop below boots it through the centralized player. The\n // node is converted in place, which keeps whatever sizing box the embed\n // code came with.\n $doc_node.find('[class*=\"wistia_async_\"]').each(function (ndx, node) {\n /* eslint-disable-next-line ember/no-jquery */\n var $node = (0, _jquery.default)(node);\n // Already a CMS player node, or inside a player we built.\n if ($node.hasClass(\"player\") || $node.closest(\".video-player\").length) {\n return;\n }\n if (!(0, _wistia.wistiaIdFrom)(node.classList.value)) {\n return;\n }\n // Clear anything E-v1.js managed to inject before we got here.\n node.innerHTML = \"\";\n $node.addClass(\"player video\");\n if (!node.id) {\n node.id = \"wistia-embed-\".concat(ndx);\n }\n });\n $doc_node.find(\".player.video:not(.booted), .kaltura_video\").each(function (ndx, node) {\n /* eslint-disable-next-line ember/no-jquery */\n var $node = (0, _jquery.default)(node);\n var kaltura = $node[0].classList.value.split(\"kaltura_embed_\");\n var src = get_html_attribute($node, \"source\");\n var poster = get_html_attribute($node, \"poster\");\n var track = get_html_attribute($node, \"caption\");\n var account_name = get_html_attribute($node, \"account\");\n var account = account_name && account_name === \"campus\" ? 730212 : 2588802;\n var player_id = get_html_attribute($node, \"account\") || 44413892;\n var audioMulti = \"\";\n var audioClass = \"\";\n var isMultiplayer = false;\n var node_id = node.id || $node.parents(\".component\")[0].id;\n var standaloneString = standalone_player ? 'standalone=\"true\"' : \"\";\n var uncompressedString = get_html_attribute($node, \"source\") ? 'uncompressed=\"true\"' : \"\";\n\n // TODO -- If we find any other interactions that should not have their videos pre-booted, add them to the find method below\n // ImageExplorer parses its popup column (3rd td) itself; rollover videos boot here.\n /* eslint-disable-next-line ember/no-jquery */\n if ($node.parents(\".interaction_component\").find(\".ImageExplorer\").length > 0 && $node.closest(\"td\").index() === 2 && !standalone_player) {\n return;\n }\n\n // Mark all non-YT videos accordingly\n $node.closest(\".video-component, .video_component\").addClass(\"not-youtube\");\n if (kaltura.length > 1) {\n var kaltura_classlist = $node[0].classList;\n kaltura = kaltura_classlist[1].split(\"kaltura_embed_\")[1];\n src = kaltura;\n poster = \"https://cdnsecakmi.kaltura.com/p/2588802/thumbnail/entry_id/\" + kaltura + \"/width/1000\";\n if (kaltura_classlist.length > 2) {\n var player_id_raw = kaltura_classlist[2];\n var account_name_raw = kaltura_classlist[3];\n player_id = player_id_raw ? player_id_raw.split(\"player_\")[1] || 44413892 : 44413892;\n account_name = account_name_raw ? account_name_raw.split(\"kaltura_account_\")[1] : false;\n account = account_name && account_name === \"campus\" ? 730212 : 2588802;\n if (player_id === \"15224161\") {\n audioClass = \"is-audio-player\";\n } else if (player_id === \"14255301\") {\n audioMulti = 'multi=\"true\"';\n isMultiplayer = true;\n audioClass = \"is-multi-player\";\n }\n }\n } else {\n kaltura = false;\n }\n var isVideoMixer = $node.parents(\".interaction_component, .interaction-component\").find(\".VideoMixer\").length > 0;\n\n // Test-video override: with APP.wistia.testMediaId set, one video per\n // app load boots as that Wistia media instead of its own source. Skip\n // VideoMixer nodes so the claim isn't spent on a player we don't swap.\n var wistiaId = isVideoMixer ? \"\" : (0, _wistia.claimTestMedia)() || (0, _wistia.wistiaIdFrom)(src) || (0, _wistia.wistiaIdFrom)($node[0].classList.value);\n if (isVideoMixer) {\n $node.addClass(\"booted\");\n if (kaltura.length > 0) {\n src = \"https://cdnapisec.kaltura.com/p/2588802/sp/0/playManifest/entryId/\".concat(src, \"/format/url/protocol/https/flavorParamId/487051/video.mp4\");\n }\n $node.html('\"));\n } else if (wistiaId) {\n $node.addClass(\"booted\");\n // E-v1.js is loaded on demand when a player starts, and it auto-boots\n // anything still carrying Wistia's classes. Drop them so it can't\n // inject a second player over the button below.\n $node.removeClass(Array.from($node[0].classList).filter(function (name) {\n return name === \"wistia_embed\" || name.startsWith(\"wistia_async_\");\n }).join(\" \"));\n $node.html(\"\"));\n // Wistia thumbnails aren't at a guessable URL, so swap the filler out\n // once the embed API answers.\n (0, _wistia.fetchThumbnail)(wistiaId).then(function (thumbnail) {\n if (thumbnail) {\n $node.find(\"img\").attr(\"src\", thumbnail);\n }\n });\n } else if (kaltura.length > 0) {\n if (!standalone_player && audioClass.length > 0) {\n $node.html(\"\"));\n } else if (isMultiplayer) {\n $node.addClass(\"booted\");\n $node.html(\"
        \"));\n kWidget.embed({\n targetId: \"kaltura-embed-\".concat(node_id),\n flashvars: {\n autoPlay: false,\n \"playlistAPI.kpl0Id\": src\n },\n wid: \"_\" + account,\n uiconf_id: player_id\n });\n } else {\n $node.addClass(\"booted\");\n $node.html(\"\"));\n }\n } else {\n $node.addClass(\"booted\");\n $node.html(\"\"));\n }\n });\n }\n $doc_node.find(\".interaction-component, .interaction_component\").not(\".interaction_booted\").find(\".interaction_content.VideoCommentary\").each(function (_, interaction) {\n var videoData = (0, _jquery.default)(interaction).siblings(\".interaction_data\").find(\"table tr\").first().find(\"td\");\n var videoSource = videoData[1].innerText;\n // if kaltura, get the track url and store in videoData[2]\n if (videoSource.indexOf(\"mp4\") === -1) {\n videoData[2].innerText = \"https://www.kaltura.com/api_v3/service/caption_captionasset/action/serveByEntryId?entryId=\".concat(videoSource, \"&ks=\").concat(_this.session.kaltura_session);\n }\n });\n /*\n * Generalized interaction boot sequence. This looks for interaction divs\n * from the CMS. Each interaction block must have a child div with\n * class \"interaction-type\" and a data-value with the name of its class.\n * Beyond that, it may have any number of \"interaction-init\" and\n * \"interaction-asset\" child divs. For \"init\"s, data-field should be the name\n * of the configuration setting and data-value its value. For \"asset\"s,\n * data-field should be the asset array name, and data-value the path to the\n * asset to append to that array. You can have many \"asset\" divs for the\n * same asset array.\n */\n\n // Preboot Requirements and any future interactions that need to be pre-booted here\n $doc_node.find(\".interaction-component, .interaction_component\").not(\".interaction_booted\").find(\".interaction_content.Requirements, .interaction-content.Requirements\").each(function (int_ndx, int_node) {\n var parentNode = (0, _jquery.default)(int_node).closest(\".interaction-component, .interaction_component\").first();\n var newPromises = bootInteraction($doc_node, int_ndx, parentNode, true, true);\n promises.concat(newPromises);\n });\n $doc_node.find(\".interaction-component, .interaction_component\").not(\".popup-content .interaction-component, .popup-content .interaction_component, .interaction_booted\").sort(function (node_a, node_b) {\n // Process deeper nodes first\n /* eslint-disable-next-line ember/no-jquery */\n var a = (0, _jquery.default)(node_a).parents().length,\n /* eslint-disable-next-line ember/no-jquery */\n b = (0, _jquery.default)(node_b).parents().length;\n if (a === b) {\n return 0;\n }\n if (a < b) {\n return 1;\n }\n return -1;\n }).each(function (int_ndx, int_node) {\n var newPromises = bootInteraction($doc_node, int_ndx, int_node, boot_interaction, mark_booted, _jquery.default.isMobile);\n promises.concat(newPromises);\n });\n return promises;\n }\n });\n /*\n * Canvas eats HTML data attributes for breakfast. Thids lets us use\n * raw HTML attributes in a similar way.\n */\n function get_html_attribute($parent, name) {\n return $parent.find(\"span.\" + name).first().text();\n }\n function bootInteraction($doc_node, int_ndx, int_node, preboot, mark_booted, isMobile) {\n var $int_node = (0, _jquery.default)(int_node);\n var promises = [];\n if (!preboot) {\n if (isMobile) {\n $int_node.addClass(\"mobile_interaction\");\n /* eslint-disable-next-line ember/no-jquery */\n $int_node.prepend((0, _jquery.default)(''));\n $int_node.find(\".int-prep\").on(\"click\", function () {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".interaction_content, .interaction-content\").html(\"\");\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".int-prep\").removeClass(\"hidden\");\n /* eslint-disable-next-line ember/no-jquery */\n var interactionRaw = (0, _jquery.default)(this.parentElement).find(\".interaction_data\").html();\n var interactionID = this.parentElement.id;\n // use the boot_area function to boot the interaction\n bootInteraction($doc_node, int_ndx, int_node, true);\n (0, _jquery.default)(\"#\".concat(interactionID, \" .interaction_data\")).html(interactionRaw);\n });\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n $int_node.prepend((0, _jquery.default)('

        Loading interaction...
        '));\n }\n return;\n }\n\n /* eslint-disable-next-line ember/no-jquery */\n var data = {\n assets: {},\n config: {}\n },\n type = $int_node.find(\".interaction-type:first\");\n $int_node.addClass(\"interaction_prebooted\");\n if (type.text() === \"TimedAssignment\") {\n $int_node.replaceWith(\"\");\n return;\n }\n if (!$int_node.hasClass(\"mobile_interaction\") || mark_booted) {\n $int_node.addClass(\"interaction_booted\");\n }\n $int_node.find(\".int-prep\").addClass(\"hidden\");\n if (!type.length) {\n /* eslint-disable-next-line ember/no-jquery */\n $int_node.replaceWith((0, _jquery.default)('
        Unmigrated interaction:
        Old style initialization
        '));\n return;\n }\n type = type.text();\n $int_node.find(\".interaction-asset\").each(function (ndx, ast) {\n /* eslint-disable-next-line ember/no-jquery */\n var $ast = (0, _jquery.default)(ast),\n field = get_html_attribute($ast, \"field\");\n data.assets[field] = [];\n $ast.find(\"span.value\").each(function (val_ndx, val) {\n /* eslint-disable-next-line ember/no-jquery */\n data.assets[field].push((0, _jquery.default)(val).text());\n });\n });\n $int_node.find(\".interaction-config\").each(function (ndx, cfg) {\n /* eslint-disable-next-line ember/no-jquery */\n var $cfg = (0, _jquery.default)(cfg),\n field = get_html_attribute($cfg, \"field\"),\n val = get_html_attribute($cfg, \"value\");\n data.config[field] = val;\n });\n $int_node.find(\".interaction-init\").each(function (ndx, val) {\n /* eslint-disable-next-line ember/no-jquery */\n var $val = (0, _jquery.default)(val),\n field = get_html_attribute($val, \"field\");\n data[field] = get_html_attribute($val, \"value\");\n });\n if (Object.prototype.hasOwnProperty.call(interactions, type)) {\n // An interaction class can set a static `disposable` to say that its\n // content is throwaway, which lets classroom/lessons skip the \"changes\n // will be lost\" prompt for it. Anything that says nothing still prompts.\n if (interactions[type].disposable) {\n $int_node.addClass(\"interaction_disposable\");\n }\n try {\n data.userId = session.get(\"user.id\");\n var interaction = new interactions[type]($int_node, data),\n promise = interaction.init();\n if (promise) {\n promises.push(promise);\n }\n } catch (e) {\n /* eslint-disable-next-line ember/no-jquery */\n $int_node.replaceWith((0, _jquery.default)('
        Missing interaction:
        Failed to boot
        '));\n }\n } else {\n /* eslint-disable-next-line ember/no-jquery */\n $int_node.replaceWith((0, _jquery.default)('
        Unmigrated interaction:
        Needs Bocce implementation
        '));\n }\n return promises;\n }\n function addPdfPreview($doc_node) {\n //Wraps all pdf links in a wrapper div and adds a preview button next to it. Preview\n //button downloads the pdf and shows it inside of an iframe.\n $doc_node.find('a[href*=\".pdf?\"]').each(function (index, node) {\n var url = node.href;\n var linkWrapper = (0, _jquery.default)('');\n\n //Clone the matched link so that it can later be deleted without affecting the wrapper.\n linkWrapper.append((0, _jquery.default)(this).clone());\n var previewButton = (0, _jquery.default)(\"\\n
    \n \n {{#if this.session.section.needsHonorCode}}\n \n
    \n
    \n
    \n

    Welcome to Berklee Online!

    \n

    We're glad you're here. Before you begin this course, please take a moment to review our\n Honor Code.

    \n
    \n

    Honor Code

    \n I have read and will abide by Berklee Online's Academic Policies, including the policy for\n Honesty in Academic Work and in Scholarly and Professional Practice, and agree that all\n academic work that I submit will be of my own creation.
    Read the full Academic Policies\n \n
    \n \n
    \n Thank you,\n
    \n The Berklee Online Team\n
    \n \n
    \n
    \n \n \n
    \n
    \n Continue to Course\n
    \n Submitting...
    \n
    \n
    \n \n {{/if}}\n \n
    \n \n
    \n
    \n
    \n \n \n \n \n \n \n \n {{#if this.session.isWorking}}\n
    \n
    \n \n
    \n {{/if}}\n \n \n {{#unless (or this.session.course.isGettingStarted this.session.course.isExam)}}\n {{#if this.sideNavVisible}}\n
    \n {{/if}}\n {{/unless}}\n {{#if this.prefsPanelOpen}}\n \n {{/if}}\n {{! The survey takes over the whole window, so the chrome around it steps aside}}\n {{#unless (eq this.session.panel \"survey\")}}\n \n {{component \"banner-drawer\"}}\n {{/unless}}\n {{! Modals created with the ModalWormhole component get rendered into this container}}\n
    \n
    \n {{#unless (eq this.session.panel \"survey\")}}\n \n {{/unless}}\n \n {{#unless\n (or\n this.session.course.isGettingStarted\n this.session.course.isExam\n (eq this.session.panel \"grades\")\n (eq this.session.panel \"survey\")\n )\n }}\n {{#if this.sideNavVisible}}\n \n {{#if this.showLateGradingPolicy}}\n \n {{/if}}\n {{/if}}\n \n \n {{#if this.sideNavVisible}}\n \n {{else}}\n \n {{/if}}\n \n
    \n \n {{#unless (and this.session.isStaticContent this.session.course.isSample)}}\n {{#if this.session.showBob}}\n {{#if this.uncommentThisToShowBobInfoText}}\n
    \n
    \n
    \n \n Introducing BOB, Berklee Online's new AI Tutor! Get real-time help with your\n course-related questions!\n
    \n
    \n
    \n {{/if}}\n \n
    \n \n
    BOB\n \n Berklee Online Bot\n
    \n
    \n
    \n \n \n \n
    \n \n \n
    \n {{/if}}\n {{#unless (or this.session.course.isPublic this.session.course.isPublic)}}\n \n {{/unless}}\n {{#unless this.session.noPiano}}\n \n \n {{#if this.pianoMaximized}}\n
    \n \n {{/if}}\n {{/unless}}\n {{/unless}}\n {{/unless}}\n \n {{#if (eq this.session.panel \"grades\")}}\n \n {{else}}\n {{outlet}}\n {{/if}}\n \n \n \n {{#if this.session.course.isGettingStarted}}\n
    \n
    \n \n
    \n
    \n {{#unless this.session.isLiveWorkshop}}\n {{#unless this.session.course.termRunning.isRunning}}\n IMPORTANT:\n The\n {{this.session.course.termRunning.term}}\n semester courses open gradually throughout the day for term start, between 9AM and 6PM\n Eastern Time on\n {{this.session.course.termRunning.date}}.\n
    \n You will receive an email notification when each course has opened, letting you know\n that you can now access its first lesson and all functionality.\n
    \n Please use the link in the email or return to My Home to access your open courses, as\n you will not be redirected from this page. We hope you have a great semester!\n {{else}}\n IMPORTANT:\n The\n {{this.session.course.termRunning.term}}\n semester has now started.\n
    \n If you have recently enrolled for\n {{this.session.course.termRunning.term}}, please allow up to one business day for our\n Registrar to assign your section.\n
    \n We hope you have a great semester!\n {{/unless}}\n {{else}}\n IMPORTANT:\n You will have access to the full learning environment for your Masterclass by 6 PM ET on\n Monday, March 3rd.\n
    \n You will receive an email letting you know when this happens.\n
    \n Please use the link in the email or return to My Home to access the full environment, as\n you will not be redirected from this page. We hope you have a great Workshop!\n {{/unless}}\n
    \n
    \n {{/if}}\n \n \n {{#if this.transition.confirmLeave}}\n \n {{/if}}\n */\n {\n \"id\": \"q8jnPCXs\",\n \"block\": \"[[[41,[28,[37,1],[[30,0,[\\\"session\\\",\\\"isStaticContent\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isSample\\\"]]],null],[[[1,\\\" \\\"],[3,\\\" Google Tag Manager (noscript) \\\"],[1,\\\"\\\\n \\\"],[10,\\\"noscript\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"iframe\\\"],[14,\\\"src\\\",\\\"https://www.googletagmanager.com/ns.html?id=GTM-M7FBC67\\\"],[14,\\\"height\\\",\\\"0\\\"],[14,\\\"width\\\",\\\"0\\\"],[14,5,\\\"display:none;visibility:hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" End Google Tag Manager (noscript) \\\"],[1,\\\"\\\\n \\\"],[3,\\\" Google Tag Manager \\\"],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"script\\\"],[12],[1,\\\"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new\\\\n Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\\\\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\\\\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\\\\n })(window,document,'script','dataLayer','GTM-M7FBC67');\\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" End Google Tag Manager \\\"],[1,\\\"\\\\n\\\"]],[]],null],[10,0],[14,\\\"aria-hidden\\\",\\\"true\\\"],[15,0,[29,[\\\"notif-growler \\\",[30,0,[\\\"session\\\",\\\"notification\\\",\\\"type\\\"]],\\\" \\\",[52,[30,0,[\\\"session\\\",\\\"notification\\\"]],\\\"active\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,6],[[30,0,[\\\"session\\\",\\\"notification\\\",\\\"type\\\"]],\\\"urgent\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-exclamation-circle notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"session\\\",\\\"notification\\\",\\\"type\\\"]],\\\"global\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-bullhorn notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"session\\\",\\\"notification\\\",\\\"type\\\"]],\\\"status\\\"],null],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-info-circle notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[28,[37,6],[[30,0,[\\\"session\\\",\\\"notification\\\",\\\"type\\\"]],\\\"survey\\\"],null]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fal fa-question-circle notif-type\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]]],[41,[30,0,[\\\"session\\\",\\\"notification\\\",\\\"modal_type\\\"]],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"message\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"viewNotif\\\"]],[30,0,[\\\"session\\\",\\\"notification\\\",\\\"modal_type\\\"]],[30,0,[\\\"session\\\",\\\"notification\\\",\\\"modal_id\\\"]]],null]],null],[12],[1,[30,0,[\\\"session\\\",\\\"notification\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"session\\\",\\\"notification\\\",\\\"active\\\"]],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"message\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"viewNotif\\\"]]],null],[12],[1,[30,0,[\\\"session\\\",\\\"notification\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"message\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"viewNotif\\\"]]],null],[12],[1,[30,0,[\\\"session\\\",\\\"notification\\\",\\\"message\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[41,[30,0,[\\\"session\\\",\\\"notification\\\",\\\"dismissable\\\"]],[[[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Dismiss Notification\\\"],[24,0,\\\"close-button\\\"],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"dismissNotif\\\"]],[30,0,[\\\"session\\\",\\\"notification\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"section\\\",\\\"needsHonorCode\\\"]],[[[1,\\\" \\\"],[11,0],[16,0,[29,[\\\"pref-dialog-backdrop \\\",[52,[30,0,[\\\"avatarUploading\\\"]],\\\"uploading\\\"]]]],[4,[38,9],[\\\"click\\\",[28,[37,10],[[30,0,[\\\"togglePrefPanel\\\"]],true],null]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-describedby\\\",\\\"pref-info\\\"],[14,0,\\\"pref-dialog active hcode\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pref-content scrollbar-mobile\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"content\\\"],[14,0,\\\"bocce-intro-text hcode-intro\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Welcome to Berklee Online!\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"We're glad you're here. Before you begin this course, please take a moment to review our\\\\n Honor Code.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"content\\\"],[14,0,\\\"hcode-text\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Honor Code\\\"],[13],[1,\\\"\\\\n I have read and will abide by Berklee Online's Academic Policies, including the policy for\\\\n Honesty in Academic Work and in Scholarly and Professional Practice, and agree that all\\\\n academic work that I submit will be of my own creation.\\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,3],[14,6,\\\"https://online.berklee.edu/about/berklee-online-general-policies\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"Read the full Academic Policies\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Thank you,\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[12],[1,\\\"The Berklee Online Team\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"hcode-ctas-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"hcode-accept-checkbox\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"hcode-accept\\\"],[14,\\\"required\\\",\\\"true\\\"],[14,3,\\\"hcode-accept\\\"],[14,2,\\\"Accept Berklee Honor Code\\\"],[14,\\\"required\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"hcode-accept\\\"],[12],[1,\\\"I have read and accept the Berklee Honor Code.\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n Honor code: I have read and will abide by Berklee Online's Academic Policies,\\\\n including the policy for Honesty in Academic Work and in Scholarly and Professional\\\\n Practice, and agree that all academic work that I submit will be of my own creation.\\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[10,3],[14,6,\\\"https://online.berklee.edu/about/berklee-online-general-policies\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"Read Berklee Online's Academic Policies\\\"],[13],[1,\\\"\\\\n \\\"],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"hcode-ctas\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Proceed to Berklee Online Learning Environment\\\"],[24,0,\\\"hcode-accept\\\"],[24,1,\\\"returning-user\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"acceptHonorCode\\\"]]],null],[12],[1,\\\"Continue to Course\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Submitting honor code acceptance. Please wait....\\\"],[14,0,\\\"hcode-working hidden\\\"],[14,\\\"aria-disabled\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-circle-notch fa-spin fa-fw\\\"],[12],[13],[1,\\\" Submitting...\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"popup-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"close-button\\\"],[24,\\\"aria-label\\\",\\\"Close Notification Popup\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"closePopup\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"content\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[11,0],[24,0,\\\"popup-backdrop\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"closePopup\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[3,\\\"Public Audio Player\\\"],[1,\\\"\\\\n\\\"],[8,[39,20],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[3,\\\"Public Video Player\\\"],[1,\\\"\\\\n\\\"],[8,[39,21],null,null,null],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"popup-backdrop active\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bocce-spinner bocce-spinner-classroom\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-2x fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[10,0],[15,0,[29,[\\\"classroom\\\\n \\\",[52,[51,[28,[37,22],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],null]],\\\"active\\\"],[52,[30,0,[\\\"sideNavVisible\\\"]],\\\" menus-open\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,22],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]]],null]],[[[41,[30,0,[\\\"sideNavVisible\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"close-mask\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"toggleMenus\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"prefsPanelOpen\\\"]],[[[1,\\\" \\\"],[8,[39,23],null,[[\\\"@closePrefPanel\\\",\\\"@focusLateGradingPolicy\\\"],[[30,0,[\\\"togglePrefsPanel\\\"]],[30,0,[\\\"focusLateGradingPolicy\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"survey\\\"],null]],[[[1,\\\" \\\"],[8,[39,25],null,[[\\\"@section\\\",\\\"@term\\\",\\\"@course\\\",\\\"@openBob\\\",\\\"@userSectionCodes\\\",\\\"@toggleMenus\\\",\\\"@togglePrefsPanel\\\",\\\"@sideNavVisible\\\"],[[30,0,[\\\"model\\\",\\\"section\\\"]],[30,0,[\\\"model\\\",\\\"section\\\",\\\"course\\\",\\\"term\\\"]],[30,0,[\\\"model\\\",\\\"classroom\\\"]],[30,0,[\\\"openBob\\\"]],[30,0,[\\\"userSectionCodes\\\"]],[30,0,[\\\"toggleMenus\\\"]],[30,0,[\\\"togglePrefsPanel\\\"]],[30,0,[\\\"sideNavVisible\\\"]]]],null],[1,\\\"\\\\n \\\"],[46,\\\"banner-drawer\\\",null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,1,\\\"modal-container\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"classroom__container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"survey\\\"],null]],[[[1,\\\" \\\"],[8,[39,27],[[16,\\\"isBCM\\\",[30,0,[\\\"isBCM\\\"]]]],[[\\\"@session\\\",\\\"@swapPanel\\\",\\\"@unreadActivities\\\",\\\"@openAdminModal\\\",\\\"@incompleteWork\\\",\\\"@conversations\\\",\\\"@gradeBook\\\",\\\"@hasDiscourse\\\",\\\"@viewSurveyResults\\\",\\\"@teacherCanSeeSurveys\\\",\\\"@sendFeedback\\\",\\\"@sideNavVisible\\\",\\\"@togglePiano\\\",\\\"@openBob\\\"],[[30,0,[\\\"session\\\"]],[30,0,[\\\"swapPanel\\\"]],[30,0,[\\\"unreadActivities\\\"]],[30,0,[\\\"openAdminModal\\\"]],[30,0,[\\\"incompleteWork\\\"]],[30,0,[\\\"conversations\\\"]],[30,0,[\\\"gradeBook\\\"]],[30,0,[\\\"hasDiscourse\\\"]],[30,0,[\\\"viewSurveyResults\\\"]],[30,0,[\\\"teacherCanSeeSurveys\\\"]],[30,0,[\\\"sendFeedback\\\"]],[30,0,[\\\"sideNavVisible\\\"]],[30,0,[\\\"togglePiano\\\"]],[30,0,[\\\"openBob\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,22],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isExam\\\"]],[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"grades\\\"],null],[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"survey\\\"],null]],null]],[[[41,[30,0,[\\\"sideNavVisible\\\"]],[[[1,\\\" \\\"],[8,[39,28],null,[[\\\"@model\\\",\\\"@syllabusTransport\\\",\\\"@viewModal\\\",\\\"@shortcutsDrawerLabel\\\",\\\"@iSubmitted\\\",\\\"@isLastWeekOfCourse\\\",\\\"@declineAdviceCardSubmission\\\",\\\"@submitAdviceCardPrompt\\\",\\\"@adviceCardsURL\\\",\\\"@newAdviceCards\\\",\\\"@viewAdviceCards\\\",\\\"@courseAssignments\\\",\\\"@courseDiscussions\\\",\\\"@activityContentLoading\\\",\\\"@workContentLoading\\\",\\\"@iSubmitted\\\",\\\"@declineAdviceCardSubmission\\\",\\\"@submitAdviceCardPrompt\\\",\\\"@setShowLateGradingPolicy\\\",\\\"@courseRequiredDiscussions\\\",\\\"@courseQuizzes\\\",\\\"@eventsLoaded\\\",\\\"@eventsModel\\\",\\\"@otherCurrentTermSections\\\",\\\"@userSectionCodes\\\",\\\"@conversationsLoaded\\\",\\\"@conversationsModel\\\",\\\"@sideNavVisible\\\",\\\"@openPrefsPanel\\\",\\\"@closePanel\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"syllabusTransport\\\"]],[30,0,[\\\"viewModal\\\"]],[30,0,[\\\"shortcutsDrawerLabel\\\"]],[30,0,[\\\"iSubmitted\\\"]],[30,0,[\\\"isLastWeekOfCourse\\\"]],[30,0,[\\\"declineAdviceCardSubmission\\\"]],[30,0,[\\\"submitAdviceCardPrompt\\\"]],[30,0,[\\\"adviceCardsURL\\\"]],[30,0,[\\\"newAdviceCards\\\"]],[30,0,[\\\"viewAdviceCards\\\"]],[30,0,[\\\"courseAssignments\\\"]],[30,0,[\\\"courseDiscussions\\\"]],[30,0,[\\\"activityContentLoading\\\"]],[30,0,[\\\"workContentLoading\\\"]],[30,0,[\\\"iSubmitted\\\"]],[30,0,[\\\"declineAdviceCardSubmission\\\"]],[30,0,[\\\"submitAdviceCardPrompt\\\"]],[30,0,[\\\"setShowLateGradingPolicy\\\"]],[30,0,[\\\"courseRequiredDiscussions\\\"]],[30,0,[\\\"courseQuizzes\\\"]],[30,0,[\\\"eventsLoaded\\\"]],[30,0,[\\\"eventsModel\\\"]],[30,0,[\\\"otherCurrentTermSections\\\"]],[30,0,[\\\"userSectionCodes\\\"]],[30,0,[\\\"conversationsLoaded\\\"]],[30,0,[\\\"conversationsModel\\\"]],[30,0,[\\\"sideNavVisible\\\"]],[30,0,[\\\"togglePrefsPanel\\\"]],[30,0,[\\\"closeMenus\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showLateGradingPolicy\\\"]],[[[1,\\\" \\\"],[8,[39,29],null,[[\\\"@closeLateGradingPolicy\\\"],[[28,[37,10],[[30,0,[\\\"setShowLateGradingPolicy\\\"]],false],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"collapse-side-panel\\\\n \\\",[52,[28,[37,22],[[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"grades\\\"],null],[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"survey\\\"],null]],null],\\\"hidden\\\"],\\\"\\\\n \\\",[52,[51,[30,0,[\\\"sideNavVisible\\\"]]],\\\"collapse-side-panel__panel-closed\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"collapse-side-panel-button icon-button icon-button__white\\\\n \\\",[52,[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"grades\\\"],null],\\\"hidden\\\"]]]],[4,[38,9],[\\\"click\\\",[30,0,[\\\"toggleMenus\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"sideNavVisible\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-arrow-left-to-line\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-arrow-right-to-line\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\"BOB Embed \\\"],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,1],[[30,0,[\\\"session\\\",\\\"isStaticContent\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isSample\\\"]]],null]],[[[41,[30,0,[\\\"session\\\",\\\"showBob\\\"]],[[[41,[30,0,[\\\"uncommentThisToShowBobInfoText\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bob-speech-bubble\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"speech-bubble\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"speech-bubble-text\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-times\\\"],[24,\\\"aria-hidden\\\",\\\"true\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"dismissBobInfoText\\\"]]],null],[12],[13],[1,\\\"\\\\n Introducing BOB, Berklee Online's new AI Tutor! Get real-time help with your\\\\n course-related questions!\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,1,\\\"bob-contents\\\"],[15,0,[29,[[52,[30,0,[\\\"bobMaximized\\\"]],\\\"maximized\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"bobClosed\\\"]],\\\"closed\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"pianoMaximized\\\"]],\\\"piano\\\"]]]],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"bob-logo-container\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openBob\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"music-note\\\"],[14,\\\"src\\\",\\\"/front_end/images/icon-music_note_comment.svg\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bob-title\\\"],[12],[1,\\\"BOB\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"angle-right\\\"],[14,\\\"src\\\",\\\"/front_end/images/icon-angle_right.svg\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"bob-subtitle\\\"],[12],[1,\\\"Berklee Online Bot\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"window-controls\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"maximize\\\"],[24,\\\"aria-label\\\",\\\"Maximize BOB\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"maxMinBob\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-window-maximize\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"minimize\\\"],[24,\\\"aria-label\\\",\\\"Minimize BOB\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"maxMinBob\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-window-restore\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"collapse\\\"],[24,\\\"aria-label\\\",\\\"Close BOB\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"closeBob\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-times\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"iframe\\\"],[24,\\\"referrerpolicy\\\",\\\"unsafe-url\\\"],[16,\\\"src\\\",[29,[[30,0,[\\\"bobSrc\\\"]]]]],[4,[38,9],[\\\"load\\\",[30,0,[\\\"sendIntroPayloadToBob\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"bob-shade\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"closeBob\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[28,[37,22],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isPublic\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"isPublic\\\"]]],null]],[[[1,\\\" \\\"],[8,[39,31],null,[[\\\"@bookmarksService\\\",\\\"@session\\\"],[[30,0,[\\\"bookmarksService\\\"]],[30,0,[\\\"session\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"session\\\",\\\"noPiano\\\"]]],[[[1,\\\" \\\"],[3,\\\"Piano Toolbar\\\"],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"piano-hide-handle\\\"],[14,3,\\\"piano-hide-handle\\\"],[15,\\\"checked\\\",[30,0,[\\\"pianoMaximized\\\"]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"pianoMaximized\\\"]],[[[1,\\\" \\\"],[10,0],[14,1,\\\"bocce-piano\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"bocce-piano__hide-button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"togglePiano\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-x\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[10,\\\"main\\\"],[15,0,[29,[\\\"classroom__main-content\\\\n \\\",[52,[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"grades\\\"],null],\\\"full-width\\\"],\\\"\\\\n \\\",[52,[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"survey\\\"],null],\\\"classroom__main-content--survey\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,24],[[30,0,[\\\"session\\\",\\\"panel\\\"]],\\\"grades\\\"],null],[[[1,\\\" \\\"],[8,[39,33],null,[[\\\"@discussions\\\",\\\"@unreadCountActivities\\\",\\\"@closeGradebook\\\",\\\"@openPrefsToLateGradingPolicy\\\"],[[30,0,[\\\"discussions\\\"]],[30,0,[\\\"discussions\\\",\\\"unreadCountActivities\\\"]],[30,0,[\\\"closeGradebook\\\"]],[30,0,[\\\"openPrefsToLateGradingPolicy\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[46,[28,[37,34],null,null],null,null,null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,35],null,[[\\\"@classroom\\\"],[[30,0]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isGettingStarted\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"intro-notif\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"itro-notif-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-exclamation-circle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"intro-notif-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isLiveWorkshop\\\"]]],[[[41,[51,[30,0,[\\\"session\\\",\\\"course\\\",\\\"termRunning\\\",\\\"isRunning\\\"]]],[[[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"IMPORTANT:\\\"],[13],[1,\\\"\\\\n The\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"course\\\",\\\"termRunning\\\",\\\"term\\\"]]],[1,\\\"\\\\n semester courses open gradually throughout the day for term start, between 9AM and 6PM\\\\n Eastern Time on\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"course\\\",\\\"termRunning\\\",\\\"date\\\"]]],[1,\\\".\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n You will receive an email notification when each course has opened, letting you know\\\\n that you can now access its first lesson and all functionality.\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Please use the link in the email or return to My Home to access your open courses, as\\\\n you will not be redirected from this page. We hope you have a great semester!\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"IMPORTANT:\\\"],[13],[1,\\\"\\\\n The\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"course\\\",\\\"termRunning\\\",\\\"term\\\"]]],[1,\\\"\\\\n semester has now started.\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n If you have recently enrolled for\\\\n \\\"],[1,[30,0,[\\\"session\\\",\\\"course\\\",\\\"termRunning\\\",\\\"term\\\"]]],[1,\\\", please allow up to one business day for our\\\\n Registrar to assign your section.\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n We hope you have a great semester!\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"IMPORTANT:\\\"],[13],[1,\\\"\\\\n You will have access to the full learning environment for your Masterclass by 6 PM ET on\\\\n Monday, March 3rd.\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n You will receive an email letting you know when this happens.\\\\n \\\"],[10,\\\"br\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Please use the link in the email or return to My Home to access the full environment, as\\\\n you will not be redirected from this page. We hope you have a great Workshop!\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[30,0,[\\\"transition\\\",\\\"confirmLeave\\\"]],[[[1,\\\" \\\"],[8,[39,37],null,[[\\\"@title\\\",\\\"@subtitle\\\",\\\"@layout\\\",\\\"@buttons\\\"],[\\\"Leave?\\\",\\\"Are you sure you want to leave? Changes will be lost.\\\",\\\"vertical\\\",[28,[37,38],[[28,[37,39],null,[[\\\"label\\\",\\\"onClick\\\",\\\"style\\\"],[\\\"Yes\\\",[30,0,[\\\"transition\\\",\\\"confirmLeave\\\",\\\"yes\\\"]],\\\"neutral\\\"]]],[28,[37,39],null,[[\\\"label\\\",\\\"onClick\\\",\\\"style\\\"],[\\\"Cancel\\\",[30,0,[\\\"transition\\\",\\\"confirmLeave\\\",\\\"no\\\"]],\\\"primary\\\"]]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[],[\\\"if\\\",\\\"and\\\",\\\"noscript\\\",\\\"iframe\\\",\\\"script\\\",\\\"div\\\",\\\"same\\\",\\\"i\\\",\\\"unless\\\",\\\"on\\\",\\\"fn\\\",\\\"h2\\\",\\\"p\\\",\\\"h3\\\",\\\"br\\\",\\\"a\\\",\\\"input\\\",\\\"label\\\",\\\"span\\\",\\\"button\\\",\\\"audio-player\\\",\\\"video-player\\\",\\\"or\\\",\\\"prefs\\\",\\\"eq\\\",\\\"classroom/header\\\",\\\"component\\\",\\\"side-nav\\\",\\\"side-panel\\\",\\\"side-panel/late-grading-policy\\\",\\\"img\\\",\\\"bookmarks/bookmarks\\\",\\\"main\\\",\\\"gradebook\\\",\\\"-outlet\\\",\\\"user-profile\\\",\\\"b\\\",\\\"modals/confirm-dialog\\\",\\\"array\\\",\\\"hash\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/announcement-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"RLgY2Mv3\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\",\\\"@closeModals\\\",\\\"@otherCurrentTermSections\\\",\\\"@isAnnouncement\\\",\\\"@title\\\",\\\"@activeNewDiscussion\\\"],[[30,0],[30,0,[\\\"closeModals\\\"]],[30,0,[\\\"classroom\\\",\\\"otherCurrentTermSections\\\"]],true,\\\"new-announcement\\\",\\\"announcement\\\"]],null]],[],[\\\"new-activity\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/announcement-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/discussion-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"5bgj1g/f\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\",\\\"@title\\\",\\\"@otherCurrentTermSections\\\"],[[30,0],\\\"new-discussion\\\",[30,0,[\\\"classroom\\\",\\\"otherCurrentTermSections\\\"]]]],null]],[],[\\\"new-activity\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/discussion-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/discussion\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"brRZGUix\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"discussion-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/discussion.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/index\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n Click on an assignment, discussion, or quiz in the side panel to get started.\n \n
    \n */\n {\n \"id\": \"j6GFFddm\",\n \"block\": \"[[[10,0],[14,0,\\\"empty-tab\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-square-arrow-left empty-tab__icon\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"empty-tab__text\\\"],[12],[1,\\\"\\\\n Click on an assignment, discussion, or quiz in the side panel to get started.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"i\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/index.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/no-submissions\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"L5PI2vOs\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"no-submissions-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/no-submissions.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/submission-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"IKsoWdbM\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"submission-new-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/submission-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/activity/submission\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"79g5epHE\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"submission-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/activity/submission.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n
    Admin
    \n
    \n
    \n \n
    Cache
    \n
    \n \n
    Livechats
    \n
    \n \n
    Quizzes
    \n
    \n \n
    Assignment Summaries
    \n
    \n \n
    Banners
    \n
    \n
    \n
    \n {{outlet}}\n
    \n
    \n \n \n */\n {\n \"id\": \"c5RkljM7\",\n \"block\": \"[[[10,0],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-labelledby\\\",\\\"admin-title-label\\\"],[14,\\\"aria-describedby\\\",\\\"admin-title-label\\\"],[14,0,\\\"floating-modal admin active\\\"],[14,1,\\\"admin-modal\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"close-button\\\"],[24,\\\"aria-label\\\",\\\"Close current modal\\\"],[4,[38,2],[\\\"click\\\",[30,0,[\\\"closeModals\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"modal-title\\\"],[14,1,\\\"admin-modal-title\\\"],[12],[1,\\\"Admin\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"modal-content admin-panel\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"tab-navigation\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@route\\\"],[\\\"classroom.admin.cache\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"tab-choice\\\"],[12],[1,\\\"Cache\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@route\\\"],[\\\"classroom.admin.live\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"tab-choice\\\"],[12],[1,\\\"Livechats\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@route\\\"],[\\\"classroom.admin.quizzes\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"tab-choice\\\"],[12],[1,\\\"Quizzes\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@route\\\"],[\\\"classroom.admin.assignments\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"tab-choice\\\"],[12],[1,\\\"Assignment Summaries\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@route\\\"],[\\\"classroom.admin.banners\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"tab-choice\\\"],[12],[1,\\\"Banners\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"admin-areas\\\"],[12],[1,\\\"\\\\n \\\"],[46,[28,[37,6],null,null],null,null,null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[8,[39,7],null,[[\\\"@action\\\"],[[30,0,[\\\"closeModals\\\"]]]],null]],[],[\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"link-to\\\",\\\"component\\\",\\\"-outlet\\\",\\\"modals/dark-backdrop\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/assignments\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n {{#each this.model as |assignment|}}\n \n \n \n \n {{/each}}\n
    \n {{assignment.title}}\n \n
    \n Submitted:\n {{if assignment.submissions.isFulfilled assignment.submissions.length}}\n
    \n Ungraded:\n {{assignment.numUngradedSubmissions}}\n
    \n Pending Resubs:\n {{assignment.numResubmissionsPending}}\n
    \n
    \n
    \n */\n {\n \"id\": \"OgY24jg5\",\n \"block\": \"[[[10,0],[14,0,\\\"assignment-management admin-area\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"assignments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"model\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"assignment-title\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-summary\\\"],[12],[1,\\\"\\\\n Submitted:\\\\n \\\"],[1,[52,[30,1,[\\\"submissions\\\",\\\"isFulfilled\\\"]],[30,1,[\\\"submissions\\\",\\\"length\\\"]]]],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n Ungraded:\\\\n \\\"],[1,[30,1,[\\\"numUngradedSubmissions\\\"]]],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n Pending Resubs:\\\\n \\\"],[1,[30,1,[\\\"numResubmissionsPending\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"assignment\\\"],[\\\"div\\\",\\\"table\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tr\\\",\\\"td\\\",\\\"if\\\",\\\"br\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/assignments.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/banners\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n

    Create Banner

    \n

    \n \n

    \n

    \n \n

    \n

    \n \n {{#if this.showUserDropDown}}\n \n {{/if}}\n

      \n
    • Global Instructors: Goes to all instructors in this term.
    • \n
    • Global Students: Goes to all students in this term.
    • \n
    • Global: Goes to everybody
    • \n
    • Grading: goes to teachers, dismisses when they've finished grading
    • \n
    • Survey: goes to students, dismisses when they've taken their course survey
    • \n
    • User: Goes to the selected individual
    • \n
    • Course: Goes to everyone in this current course
    • \n
    • dashboard-banner: Behaves just like 'Course' except with UI for dashboard message.
    • \n
    \n

    \n

    \n Auto dismiss at:\n \n

    \n

    \n Create\n

    \n
    \n
    \n Existing/Past Global Banners\n Targeted Banners\n \n

    Dismissing a banner stops it from appearing for all users. It does\n not delete the banner.

    \n \n \n \n \n \n \n \n {{#each this.sortedBanners as |banner|}}\n \n \n \n \n \n {{/each}}\n
    MessageTypeDismiss
    {{banner.message}}{{banner.type}}\n \n Dismiss\n \n
    \n \n \n \n \n \n \n \n {{#each this.targetedBanners as |targetedBanner|}}\n \n \n \n \n \n \n {{/each}}\n
    MessageTypeContextDismiss
    {{targetedBanner.message}}{{targetedBanner.type}}{{targetedBanner.context_data}}\n \n Dismiss\n \n
    \n
    \n */\n {\n \"id\": \"zo78Jnaf\",\n \"block\": \"[[[10,0],[14,1,\\\"banner-creation\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Create Banner\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"banner-message-label\\\"],[12],[1,\\\"Message:\\\"],[13],[8,[39,4],null,[[\\\"@value\\\",\\\"@cols\\\",\\\"@rows\\\"],[[30,0,[\\\"newBannerMessage\\\"]],\\\"40\\\",\\\"4\\\"]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"Link:\\\"],[13],[8,[39,5],null,[[\\\"@value\\\"],[[30,0,[\\\"newBannerHyperlink\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n Type:\\\\n \\\"],[11,\\\"select\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"setNewBannerTypeID\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"bannerTypeNames\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[30,1]],[12],[1,\\\"\\\\n \\\"],[1,[30,1]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showUserDropDown\\\"]],[[[1,\\\" \\\"],[10,\\\"label\\\"],[12],[1,\\\"\\\\n User:\\\\n \\\"],[11,\\\"select\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"setIndividual\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"courseUsers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,[30,2,[\\\"sortable_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Global Instructors: Goes to all instructors in this term.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Global Students: Goes to all students in this term.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Global: Goes to everybody\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Grading: goes to teachers, dismisses when they've finished grading\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Survey: goes to students, dismisses when they've taken their course survey\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"User: Goes to the selected individual\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Course: Goes to everyone in this current course\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"dashboard-banner: Behaves just like 'Course' except with UI for dashboard message.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n Auto dismiss at:\\\\n \\\"],[8,[39,14],null,[[\\\"@datetime\\\"],[[30,0,[\\\"newBannerDismissAt\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button add button--black button--sm\\\"],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"createNewBanner\\\"]]],null],[12],[1,\\\"Create\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,1,\\\"admin-banner-list\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"h2\\\"],[24,0,\\\"admin-banner-nav nav-choice global selected\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"navigate\\\"]],\\\"global\\\"],null]],null],[12],[1,\\\"Existing/Past Global Banners\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"h2\\\"],[24,0,\\\"admin-banner-nav nav-choice targeted\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"navigate\\\"]],\\\"targeted\\\"],null]],null],[12],[1,\\\"Targeted Banners\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,2],[14,0,\\\"banner-admin-copy\\\"],[12],[1,\\\"Dismissing a banner stops it from appearing for all users. It does\\\\n not delete the banner.\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"global-banners\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Message\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Dismiss\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"sortedBanners\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"message\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"type\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,21],[[24,0,\\\"button--black button--sm\\\"]],[[\\\"@promiseAction\\\"],[[28,[37,16],[[30,0,[\\\"deleteBanner\\\"]],[30,3]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n Dismiss\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"targeted-banners hidden\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Message\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Type\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Context\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,\\\"Dismiss\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,9],[[28,[37,9],[[30,0,[\\\"targetedBanners\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"message\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"type\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,4,[\\\"context_data\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,21],null,[[\\\"@promiseAction\\\"],[[28,[37,16],[[30,0,[\\\"deleteBanner\\\"]],[30,4]],null]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n Dismiss\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"type\\\",\\\"user\\\",\\\"banner\\\",\\\"targetedBanner\\\"],[\\\"div\\\",\\\"h2\\\",\\\"p\\\",\\\"label\\\",\\\"textarea\\\",\\\"input\\\",\\\"select\\\",\\\"on\\\",\\\"each\\\",\\\"-track-array\\\",\\\"option\\\",\\\"if\\\",\\\"ul\\\",\\\"li\\\",\\\"datetime-picker\\\",\\\"button\\\",\\\"fn\\\",\\\"table\\\",\\\"tr\\\",\\\"th\\\",\\\"td\\\",\\\"buttons/delete-button\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/banners.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/cache\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    Attempting to flush cache.
    \n
    Cache successfully cleared. Refreshing browser in 3 seconds...
    \n
    An error flushing the cache has occured.
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    Lessons
    \n
    If lesson content isn't appearing in Bocce.
    \n
    \n
    Assignments
    \n
    If a change to an assignment isn't appearing in Bocce.
    \n
    \n
    Discussions
    \n
    If new discussions aren't appearing in Bocce.
    \n
    \n
    Quizzes
    \n
    Flush the quiz cache for a specific user.
    \n
    \n \n
    Flush for user: \n \n
    \n
    \n
    \n Clear all user quiz caches\n \n
    \n
    \n {{#if this.canFlushQuizCache}}\n \n {{else}}\n \n {{/if}}\n
    \n
    Livechats
    \n
    If a scheduled chat in the future isn't appearing in Bocce.
    \n
    \n
    Enrollments
    \n
    If a student or observer was late enrolled and isn't appearing in\n Bocce.
    \n
    \n
    Course
    \n
    If course information isn't appearing in Bocce. Warning! Clearing\n the entire course cache during peak hours will result in a drop in performance for\n students and instructors. Proceed with caution.
    \n
    \n
    \n
    \n */\n {\n \"id\": \"xEuQC/XS\",\n \"block\": \"[[[10,0],[14,0,\\\"cache-management admin-area\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"status\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"in-progress hidden\\\"],[12],[1,\\\"Attempting to flush cache.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"success hidden\\\"],[12],[1,\\\"Cache successfully cleared. Refreshing browser in 3 seconds...\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"failure hidden\\\"],[12],[1,\\\"An error flushing the cache has occured.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-options\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"cache-options-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option lessons\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Lessons\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"If lesson content isn't appearing in Bocce.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"lessons\\\"],null]],null],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option assignments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Assignments\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"If a change to an assignment isn't appearing in Bocce.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"assignment\\\"],null]],null],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option discussions\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Discussions\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"If new discussions aren't appearing in Bocce.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"discussion\\\"],null]],null],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option quizzes\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Quizzes\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"Flush the quiz cache for a specific user.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-options\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,1,\\\"quiz-select\\\"],[4,[38,5],[\\\"change\\\",[30,0,[\\\"selectQuiz\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"none\\\"],[12],[1,\\\"Select quiz\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"model\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"quiz-users hidden\\\"],[12],[10,1],[14,0,\\\"flush-text\\\"],[12],[1,\\\"Flush for user: \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,1,\\\"quiz-users-select\\\"],[4,[38,5],[\\\"change\\\",[30,0,[\\\"selectQuizUser\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,10],[[28,[37,10],[[30,0,[\\\"quizUsers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,[30,2,[\\\"sortable_name\\\"]]],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"clear-all-user-quizzes\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button--black button--sm\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"flushAllUserQuizzes\\\"]]],null]],null],[12],[1,\\\"Clear all user quiz caches\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"clear-all-user-quizzes-results\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canFlushQuizCache\\\"]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"quiz\\\"],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"empty-flush\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option events\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Livechats\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"If a scheduled chat in the future isn't appearing in Bocce.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"events\\\"],null]],null],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option enrollments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Enrollments\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"If a student or observer was late enrolled and isn't appearing in\\\\n Bocce.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"enrollments\\\"],null]],null],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[14,0,\\\"cache-option course\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"cache-option-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"cache-header\\\"],[12],[1,\\\"Course\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"description\\\"],[12],[1,\\\"If course information isn't appearing in Bocce. Warning! Clearing\\\\n the entire course cache during peak hours will result in a drop in performance for\\\\n students and instructors. Proceed with caution.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"clear-cache-button\\\"],[12],[11,\\\"i\\\"],[24,0,\\\"fas fa-sync\\\"],[4,[38,5],[\\\"click\\\",[28,[37,6],[[30,0,[\\\"clearCache\\\"]],\\\"course\\\"],null]],null],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"quiz\\\",\\\"quizUser\\\"],[\\\"div\\\",\\\"table\\\",\\\"tr\\\",\\\"td\\\",\\\"i\\\",\\\"on\\\",\\\"fn\\\",\\\"select\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"span\\\",\\\"button\\\",\\\"if\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/cache.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/index\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n

    Index

    \n {{outlet}}\n */\n {\n \"id\": \"FsU/rD2s\",\n \"block\": \"[[[10,\\\"h1\\\"],[12],[1,\\\"Index\\\"],[13],[1,\\\"\\\\n\\\"],[46,[28,[37,2],null,null],null,null,null]],[],[\\\"h1\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/index.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/live\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n \n {{#each this.model as |event|}}\n \n \n \n \n {{/each}}\n \n
    Livechat TitleMeeting Keys
    {{event.title}}\n - ID\n {{event.id}}

    Started:\n {{event.formattedStartTime}}\n edit
    \n \n {{#each event.meetingKeys as |meetingKey|}}\n
    \n \n \n
    \n \n \n \n \n X\n \n
    \n
    \n {{/each}}\n
    \n

    Reset Instructor Zoom ID

    \n \n \n \n {{#each this.session.section.teachers as |teacher|}}\n \n {{/each}}\n \n
    InstructorReset
    {{teacher.name}}Reset Zoom ID
    \n
    \n
    \n */\n {\n \"id\": \"viBWxI7J\",\n \"block\": \"[[[10,0],[14,0,\\\"livechat-management admin-area\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"admin-livechats\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[10,\\\"tr\\\"],[12],[10,\\\"th\\\"],[12],[1,\\\"Livechat Title\\\"],[13],[10,\\\"th\\\"],[12],[1,\\\"Meeting Keys\\\"],[13],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"model\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n - ID\\\\n \\\"],[1,[30,1,[\\\"id\\\"]]],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"Started:\\\\n \\\"],[1,[30,1,[\\\"formattedStartTime\\\"]]],[1,\\\"\\\\n \\\"],[10,3],[15,6,[29,[\\\"/courses/\\\",[30,0,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],\\\"/calendar_events/\\\",[30,1,[\\\"id\\\"]],\\\"/edit\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,\\\"edit\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"td\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@promiseAction\\\"],[[28,[37,12],[[30,0,[\\\"addMeetingKey\\\"]],[30,1]],null]]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,1,[\\\"meetingKeys\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"meeting-key\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[15,2,[30,2]],[14,\\\"disabled\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[8,[39,14],null,[[\\\"@promiseAction\\\"],[[28,[37,12],[[30,0,[\\\"toggleRemoveMeetingKeyConfirm\\\"]],[30,2]],null]]],null],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"event-delete-\\\",[30,2],\\\"-confirm delete-confirmation hidden\\\"]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"confirmation-option button--black button--sm\\\"],[16,\\\"aria-label\\\",[29,[\\\"Remove meeting key \\\",[30,2]]]],[4,[38,16],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"removeMeetingKey\\\"]],[30,1],[30,2]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"cancel confirmation-option button--black button--sm\\\"],[4,[38,16],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"toggleRemoveMeetingKeyConfirm\\\"]],[30,2]],null]],null],[12],[1,\\\"\\\\n X\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Reset Instructor Zoom ID\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"table\\\"],[14,0,\\\"admin-livechats\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[10,\\\"tr\\\"],[12],[10,\\\"th\\\"],[12],[1,\\\"Instructor\\\"],[13],[10,\\\"th\\\"],[12],[1,\\\"Reset\\\"],[13],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,7],[[28,[37,7],[[30,0,[\\\"session\\\",\\\"section\\\",\\\"teachers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[12],[1,[30,3,[\\\"name\\\"]]],[13],[10,\\\"td\\\"],[12],[11,\\\"button\\\"],[24,0,\\\"active admin-reset-zoom-profile-button button button--black button--sm\\\"],[24,\\\"aria-label\\\",\\\"Reset Teacher Zoom ID\\\"],[4,[38,16],[\\\"click\\\",[28,[37,12],[[30,0,[\\\"refreshZoomUser\\\"]],[30,3]],null]],null],[12],[1,\\\"Reset Zoom ID\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"reset-user-results\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"event\\\",\\\"meetingKey\\\",\\\"teacher\\\"],[\\\"div\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"th\\\",\\\"tbody\\\",\\\"each\\\",\\\"-track-array\\\",\\\"td\\\",\\\"br\\\",\\\"a\\\",\\\"buttons/add-button\\\",\\\"fn\\\",\\\"input\\\",\\\"buttons/delete-button\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"h2\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/live.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/loading\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n

    Loading

    \n */\n {\n \"id\": \"vKCUyUP1\",\n \"block\": \"[[[10,\\\"h2\\\"],[12],[1,\\\"Loading\\\"],[13]],[],[\\\"h2\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/loading.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/admin/quizzes\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n {{#if (and this.selectedQuiz this.quizUsers)}}\n \n \n {{#each this.quizUsers as |user|}}\n \n {{/each}}\n
    {{this.selectedQuiz.title}} Student Submissions
    {{user.sortable_name}}
    \n {{/if}}\n \n {{#if (and this.selectedQuiz this.selectedUser)}}\n \n {{#each this.operations as |operation|}}\n
    \n {{component operation selectedQuiz=this.selectedQuiz selectedUser=this.selectedUser}}\n
    \n {{/each}}\n
    \n {{/if}}\n
    \n */\n {\n \"id\": \"Ffb1jjCn\",\n \"block\": \"[[[10,0],[14,0,\\\"quiz-management admin-area\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,1,\\\"admin-quiz\\\"],[4,[38,2],[\\\"change\\\",[30,0,[\\\"selectQuiz\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"none\\\"],[12],[1,\\\"Select a quiz\\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"model\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,[30,1,[\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"selectedQuiz\\\"]],[30,0,[\\\"quizUsers\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"table\\\"],[14,1,\\\"users\\\"],[14,0,\\\"quiz-users-table\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[10,\\\"tr\\\"],[12],[10,\\\"td\\\"],[12],[1,[30,0,[\\\"selectedQuiz\\\",\\\"title\\\"]]],[1,\\\" Student Submissions\\\"],[13],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"quizUsers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"tr\\\"],[16,0,[29,[\\\"quiz-name-row user-\\\",[30,2,[\\\"id\\\"]],\\\"\\\\n \\\",[52,[28,[37,13],[[30,2,[\\\"id\\\"]],[30,0,[\\\"selectedUser\\\",\\\"id\\\"]]],null],\\\"selected\\\"]]]],[4,[38,2],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"expandOperations\\\"]],[30,2,[\\\"id\\\"]]],null]],null],[12],[10,\\\"td\\\"],[12],[1,[30,2,[\\\"sortable_name\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,8],[[30,0,[\\\"selectedQuiz\\\"]],[30,0,[\\\"selectedUser\\\"]]],null],[[[1,\\\" \\\"],[10,\\\"table\\\"],[14,0,\\\"quiz-operations\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"operations\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"quiz-operation-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[46,[30,3],null,[[\\\"selectedQuiz\\\",\\\"selectedUser\\\"],[[30,0,[\\\"selectedQuiz\\\"]],[30,0,[\\\"selectedUser\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"quiz\\\",\\\"user\\\",\\\"operation\\\"],[\\\"div\\\",\\\"select\\\",\\\"on\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"br\\\",\\\"if\\\",\\\"and\\\",\\\"table\\\",\\\"thead\\\",\\\"tr\\\",\\\"td\\\",\\\"same\\\",\\\"fn\\\",\\\"component\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/admin/quizzes.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/assignments\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{outlet}}\n */\n {\n \"id\": \"rqmz8obc\",\n \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],[\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/assignments.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/conversation-new-with\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n */\n {\n \"id\": \"nxo+lv2p\",\n \"block\": \"[[[3,\\\" reuse the conversation template \\\"],[1,\\\"\\\\n\\\"],[8,[39,0],null,[[\\\"@inlineInbox\\\",\\\"@adding_member\\\",\\\"@uploadInProgress\\\",\\\"@model\\\",\\\"@sharedEnrollments\\\",\\\"@filteredList\\\",\\\"@sortedMessages\\\",\\\"@autoComplete\\\",\\\"@choose\\\",\\\"@addUserToggle\\\",\\\"@toggleArchived\\\",\\\"@toggleConversationStar\\\",\\\"@closeModals\\\",\\\"@conversationModalContentMarginTop\\\",\\\"@files\\\",\\\"@controller\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@localArchive\\\",\\\"@localDocs\\\",\\\"@attachmentsToContainer\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@updateConversation\\\",\\\"@postable\\\",\\\"@addFile\\\"],[[30,0,[\\\"inlineInbox\\\"]],[30,0,[\\\"adding_member\\\"]],[30,0,[\\\"uploadInProgress\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"sharedEnrollments\\\"]],[30,0,[\\\"filteredList\\\"]],[30,0,[\\\"sortedMessages\\\"]],[30,0,[\\\"autoComplete\\\"]],[30,0,[\\\"choose\\\"]],[30,0,[\\\"addUserToggle\\\"]],[30,0,[\\\"toggleArchived\\\"]],[30,0,[\\\"toggleConversationStar\\\"]],[30,0,[\\\"closeModals\\\"]],[30,0,[\\\"conversationModalContentMarginTop\\\"]],[30,0,[\\\"files\\\"]],[30,0],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"toggleLocalArchive\\\"]],[30,0,[\\\"previewArchivedText\\\"]],[30,0,[\\\"useArchivedText\\\"]],[30,0,[\\\"localArchive\\\"]],[30,0,[\\\"localDocs\\\"]],[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]],[30,0,[\\\"openAttachmentDrawer\\\"]],[30,0,[\\\"updateConversation\\\"]],[30,0,[\\\"postable\\\"]],[30,0,[\\\"addFile\\\"]]]],null]],[],[\\\"conversation\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/conversation-new-with.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/conversation-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n

    Start a message with:

    \n \n Start Message\n \n \n */\n {\n \"id\": \"07vfktxm\",\n \"block\": \"[[[10,0],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-labelledby\\\",\\\"conversation-start-label\\\"],[14,\\\"aria-describedby\\\",\\\"conversation-start-label\\\"],[15,0,[29,[\\\"floating-modal new-conversation active \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[15,1,[29,[[30,0,[\\\"model\\\",\\\"modalId\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"close-button\\\"],[24,\\\"aria-label\\\",\\\"Close current message\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"closeModals\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"conversation-start-label\\\"],[12],[1,\\\"Start a message with:\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@type\\\",\\\"@value\\\",\\\"@filteredList\\\",\\\"@recipients\\\",\\\"@session\\\",\\\"@viewConversation\\\",\\\"@autoComplete\\\",\\\"@choose\\\",\\\"@removeRecipient\\\"],[\\\"text\\\",\\\"recipient.name\\\",[30,0,[\\\"filteredList\\\"]],[30,0,[\\\"recipients\\\"]],[30,0,[\\\"session\\\"]],[30,0,[\\\"viewConversation\\\"]],[30,0,[\\\"autoComplete\\\"]],[30,0,[\\\"choose\\\"]],[30,0,[\\\"removeRecipient\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"recipients\\\",\\\"length\\\"]]],true,null]],[16,0,[29,[\\\"start-conversation-btn \\\",[52,[51,[30,0,[\\\"recipients\\\",\\\"length\\\"]]],\\\"disabled\\\"]]]],[24,\\\"aria-label\\\",\\\"Start the conversation\\\"],[4,[38,3],[\\\"click\\\",[30,0,[\\\"startConversation\\\"]]],null],[12],[1,\\\"Start Message\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[8,[39,8],null,[[\\\"@action\\\"],[[30,0,[\\\"closeModals\\\"]]]],null]],[],[\\\"div\\\",\\\"if\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"h2\\\",\\\"recipient-filter\\\",\\\"unless\\\",\\\"modals/dark-backdrop\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/conversation-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/conversation\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"u1ZFswCE\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@inlineInbox\\\",\\\"@adding_member\\\",\\\"@uploadInProgress\\\",\\\"@model\\\",\\\"@sharedEnrollments\\\",\\\"@filteredList\\\",\\\"@sortedMessages\\\",\\\"@autoComplete\\\",\\\"@choose\\\",\\\"@addUserToggle\\\",\\\"@toggleArchived\\\",\\\"@toggleConversationStar\\\",\\\"@closeModals\\\",\\\"@conversationModalContentMarginTop\\\",\\\"@files\\\",\\\"@controller\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@localArchive\\\",\\\"@localDocs\\\",\\\"@attachmentsToContainer\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@updateConversation\\\",\\\"@postable\\\",\\\"@addFile\\\"],[[30,0,[\\\"inlineInbox\\\"]],[30,0,[\\\"adding_member\\\"]],[30,0,[\\\"uploadInProgress\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"sharedEnrollments\\\"]],[30,0,[\\\"filteredList\\\"]],[30,0,[\\\"sortedMessages\\\"]],[30,0,[\\\"autoComplete\\\"]],[30,0,[\\\"choose\\\"]],[30,0,[\\\"addUserToggle\\\"]],[30,0,[\\\"toggleArchived\\\"]],[30,0,[\\\"toggleConversationStar\\\"]],[30,0,[\\\"closeModals\\\"]],[30,0,[\\\"conversationModalContentMarginTop\\\"]],[30,0,[\\\"files\\\"]],[30,0],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"toggleLocalArchive\\\"]],[30,0,[\\\"previewArchivedText\\\"]],[30,0,[\\\"useArchivedText\\\"]],[30,0,[\\\"localArchive\\\"]],[30,0,[\\\"localDocs\\\"]],[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]],[30,0,[\\\"openAttachmentDrawer\\\"]],[30,0,[\\\"updateConversation\\\"]],[30,0,[\\\"postable\\\"]],[30,0,[\\\"addFile\\\"]]]],null]],[],[\\\"conversation\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/conversation.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/discussion\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n {{#if this.model.is_announcement}}\n
    \n Announcement\n {{#unless this.isLesson}}\n {{#if this.isInstructorAndOwner}}\n \n {{/if}}\n {{#if (or this.isInstructorAndOwner this.session.isAdmin)}}\n \n {{/if}}\n {{/unless}}\n
    \n {{else}}\n
    \n {{#unless this.isLesson}}\n
    \n {{#if this.isInstructorAndOwner}}\n \n {{/if}}\n {{#if (or this.isInstructorAndOwner this.session.isAdmin)}}\n \n {{/if}}\n {{#if this.model.showcase.url}}\n \n {{/if}}\n
    \n {{else}}\n
    \n {{#if this.model.showcase.url}}\n \n {{/if}}\n
    \n {{/unless}}\n
    \n {{/if}}\n \n \n \n {{#if this.isLesson}}\n \n View in Lesson\n {{this.isLesson}}\n \n {{/if}}\n \n {{#if this.showcaseOpen}}\n {{#if this.isInstructor}}\n
    \n \n
    \n {{/if}}\n {{/if}}\n
    \n \n \n
    \n {{#if this.model.hasResponses}}\n
    \n \n {{#each this.topLevelResponses as |response|}}\n \n {{#each (array-item this.childResponses response.id) as |childResponse|}}\n \n {{/each}}\n {{#unless this.session.isLimitedStudentTerm}}\n \n {{/unless}}\n {{/each}}\n \n
    \n {{else}}\n
    Be the first to respond (below).
    \n {{/if}}\n \n \n \n \n {{#if this.isWorking}}\n
    \n {{/if}}\n */\n {\n \"id\": \"xkDCfMD7\",\n \"block\": \"[[[10,0],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-labelledby\\\",\\\"discussion-modal-title\\\"],[14,\\\"aria-describedby\\\",\\\"discussion-modal-title\\\"],[15,0,[29,[\\\"floating-modal existing-discussion\\\\n \\\",[52,[30,0,[\\\"model\\\",\\\"is_announcement\\\"]],\\\"announcement\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"replyInProgress\\\"]],\\\"replying\\\"],\\\"\\\\n active\\\\n \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"noRec\\\"]],\\\"no-rec\\\"]]]],[15,1,[29,[[30,0,[\\\"model\\\",\\\"modalId\\\"]]]]],[15,\\\"mid\\\",[29,[[30,0,[\\\"model\\\",\\\"id\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"is_announcement\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"modal-title\\\"],[14,1,\\\"discussion-modal-title\\\"],[12],[1,\\\"\\\\n Announcement\\\\n\\\"],[41,[51,[30,0,[\\\"isLesson\\\"]]],[[[41,[30,0,[\\\"isInstructorAndOwner\\\"]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fas fa-pencil\\\"],[24,\\\"aria-label\\\",\\\"Edit Post\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"editDiscussion\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,5],[[30,0,[\\\"isInstructorAndOwner\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"far fa-trash\\\"],[24,\\\"aria-label\\\",\\\"Delete Post\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"deletePost\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"modal-title\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"isLesson\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"edit-controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isInstructorAndOwner\\\"]],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"fas fa-pencil\\\"],[24,\\\"aria-label\\\",\\\"Edit Post\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"editDiscussion\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,5],[[30,0,[\\\"isInstructorAndOwner\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"i\\\"],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"far fa-trash\\\"],[24,\\\"aria-label\\\",\\\"Delete Post\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"deletePost\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"model\\\",\\\"showcase\\\",\\\"url\\\"]],[[[1,\\\" \\\"],[10,3],[14,0,\\\"visit-showcase\\\"],[15,6,[29,[\\\"/#/\\\",[30,0,[\\\"session\\\",\\\"section\\\",\\\"showcase_course_id\\\"]],\\\"/\\\",[30,0,[\\\"model\\\",\\\"showcase\\\",\\\"lesson\\\"]],\\\"/\\\",[30,0,[\\\"model\\\",\\\"showcase\\\",\\\"url\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trophy\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"edit-controls\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"showcase\\\",\\\"url\\\"]],[[[1,\\\" \\\"],[10,3],[14,0,\\\"visit-showcase\\\"],[15,6,[29,[\\\"/#/\\\",[30,0,[\\\"session\\\",\\\"section\\\",\\\"showcase_course_id\\\"]],\\\"/\\\",[30,0,[\\\"model\\\",\\\"showcase\\\",\\\"lesson\\\"]],\\\"/\\\",[30,0,[\\\"model\\\",\\\"showcase\\\",\\\"url\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trophy\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[11,0],[24,\\\"role\\\",\\\"button\\\"],[24,0,\\\"close-button\\\"],[24,\\\"aria-label\\\",\\\"Close Discussion\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"closeModals\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isLesson\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"aria-label\\\",[29,[\\\"View current discussion in the context of the lesson to which is belongs (lesson \\\",[30,0,[\\\"isLesson\\\"]],\\\".\\\"]]],[24,0,\\\"lesson-link\\\"],[4,[38,4],[\\\"click\\\",[28,[37,8],[[30,0,[\\\"viewInLesson\\\"]],[30,0,[\\\"isLesson\\\"]],[30,0,[\\\"model\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n View in Lesson\\\\n \\\"],[1,[30,0,[\\\"isLesson\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,\\\"tabindex\\\",\\\"0\\\"],[14,\\\"autofocus\\\",\\\"\\\"],[14,0,\\\"modal-content\\\"],[14,\\\"role\\\",\\\"region\\\"],[15,\\\"aria-label\\\",[29,[[30,0,[\\\"model\\\",\\\"title\\\"]]]]],[14,\\\"aria-activedescendant\\\",\\\"discussion-header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showcaseOpen\\\"]],[[[41,[30,0,[\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"showcase-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\"],[[30,0,[\\\"showcaseTitle\\\"]],[30,0,[\\\"showcaseComment\\\"]],[30,0,[\\\"readyToShowcase\\\"]],[30,0,[\\\"changeShowcaseWeek\\\"]],[28,[37,8],[[30,0,[\\\"postShowcase\\\"]],[30,0,[\\\"response\\\",\\\"id\\\"]],[30,0,[\\\"response\\\",\\\"showcase\\\",\\\"id\\\"]],[30,0,[\\\"response\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"discussion-starter\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@model\\\"],[[30,0,[\\\"model\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,11],null,[[\\\"@model\\\",\\\"@deleteAttachment\\\",\\\"@truncated\\\"],[[30,0,[\\\"model\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"truncated\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"hasResponses\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"replies\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[15,0,[29,[\\\"reply-list revealed \\\",[52,[51,[30,0,[\\\"responsesLoaded\\\"]]],\\\"hidden\\\"]]]],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Discussion Replies\\\"],[15,1,[29,[[30,0,[\\\"discussion\\\",\\\"respContainerId\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[30,0,[\\\"topLevelResponses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,15],null,[[\\\"@response\\\",\\\"@discussion\\\",\\\"@user\\\",\\\"@section\\\",\\\"@isInstructor\\\",\\\"@isAdmin\\\",\\\"@preExistingRespIds\\\",\\\"@edit\\\",\\\"@delete\\\",\\\"@courseId\\\",\\\"@discussionId\\\",\\\"@deleteAttachment\\\"],[[30,1],[30,0,[\\\"discussion\\\"]],[30,0,[\\\"session\\\",\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"section\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,0,[\\\"preExistingRespIds\\\"]],[30,0,[\\\"editReply\\\"]],[30,0,[\\\"deletePost\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],[30,0,[\\\"model\\\",\\\"db_id\\\"]],[30,0,[\\\"deleteAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"],[42,[28,[37,14],[[28,[37,14],[[28,[37,16],[[30,0,[\\\"childResponses\\\"]],[30,1,[\\\"id\\\"]]],null]],null]],null],null,[[[1,\\\" \\\"],[8,[39,15],null,[[\\\"@response\\\",\\\"@discussion\\\",\\\"@user\\\",\\\"@discussionId\\\",\\\"@courseId\\\",\\\"@section\\\",\\\"@isInstructor\\\",\\\"@preExistingRespIds\\\",\\\"@edit\\\",\\\"@delete\\\",\\\"@isAdmin\\\",\\\"@deleteAttachment\\\"],[[30,2],[30,0,[\\\"discussion\\\"]],[30,0,[\\\"session\\\",\\\"user\\\"]],[30,0,[\\\"model\\\",\\\"db_id\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],[30,0,[\\\"session\\\",\\\"section\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"preExistingRespIds\\\"]],[30,0,[\\\"editReply\\\"]],[30,0,[\\\"deletePost\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,0,[\\\"deleteAttachment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[2]],null],[41,[51,[30,0,[\\\"session\\\",\\\"isLimitedStudentTerm\\\"]]],[[[1,\\\" \\\"],[8,[39,17],null,[[\\\"@parentID\\\",\\\"@parentText\\\",\\\"@parentName\\\",\\\"@reply\\\"],[[30,1,[\\\"id\\\"]],\\\"...\\\",[30,1,[\\\"user\\\",\\\"name\\\"]],[30,0,[\\\"replyToDiscussion\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"no-response\\\"],[12],[1,\\\"Be the first to respond (below).\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,18],null,[[\\\"@files\\\",\\\"@controller\\\",\\\"@inEditor\\\",\\\"@is_editing\\\",\\\"@is_reply\\\",\\\"@titleInput\\\",\\\"@replyId\\\",\\\"@replyAuthor\\\",\\\"@replyText\\\",\\\"@replyCancel\\\",\\\"@userInput\\\",\\\"@updateArchive\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@localArchive\\\",\\\"@localDocs\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@openAttachmentDrawer\\\",\\\"@doneEditing\\\",\\\"@postable\\\",\\\"@model\\\",\\\"@addFile\\\",\\\"@doneEditing\\\"],[[30,0,[\\\"files\\\"]],[30,0],[30,0,[\\\"inEditor\\\"]],[30,0,[\\\"is_editing\\\"]],[30,0,[\\\"is_reply\\\"]],[30,0,[\\\"titleInput\\\"]],[30,0,[\\\"replyId\\\"]],[30,0,[\\\"replyAuthor\\\"]],[30,0,[\\\"replyText\\\"]],[30,0,[\\\"replyCancel\\\"]],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"toggleLocalArchive\\\"]],[30,0,[\\\"previewArchivedText\\\"]],[30,0,[\\\"localArchive\\\"]],[30,0,[\\\"localDocs\\\"]],[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"removeAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]],[30,0,[\\\"openAttachmentDrawer\\\"]],[30,0,[\\\"doneEditing\\\"]],[30,0,[\\\"postable\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"addFile\\\"]],[30,0,[\\\"doneEditing\\\"]]]],null],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[8,[39,19],null,[[\\\"@action\\\"],[[30,0,[\\\"closeModals\\\"]]]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bocce-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-2x fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"response\\\",\\\"childResponse\\\"],[\\\"div\\\",\\\"if\\\",\\\"unless\\\",\\\"i\\\",\\\"on\\\",\\\"or\\\",\\\"a\\\",\\\"button\\\",\\\"fn\\\",\\\"showcase-post\\\",\\\"discussion-header\\\",\\\"discussion-body\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"discussion-response\\\",\\\"array-item\\\",\\\"discussion/reply-button\\\",\\\"discussion-reply-box\\\",\\\"modals/dark-backdrop\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/discussion.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/lessons\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n \n {{#unless this.session.section.needsHonorCode}}\n {{#each this.model.lesson.items as |topic index|}}\n
  • \n
    \n {{#if (and this.session.course.isShowcase this.session.isShowcaseInstructor)}}\n
    \n \n \n
    \n {{/if}}\n \n {{#unless this.editingLessonTitle}}\n {{{topic.title}}}\n
    Due\n {{topic.formattedDate}}
    \n {{else}}\n
    \n
    \n Save\n Cancel\n
    \n {{/unless}}\n \n \n {{#if (get (array-item this.model.topics index) \"advice_card_submitter\")}}\n \n {{else if (get (array-item this.model.topics index) \"advice_card_viewer\")}}\n \n {{else}}\n \n {{/if}}\n
  • \n
    {{sum index 1}}\n of\n {{this.model.lesson.items.length}}
    \n \n \n {{else}}\n
  • \n
  • \n No lessons found. Please contact your administrator.\n
  • \n \n {{/each}}\n {{#if this.showNextLesson}}\n {{#if this.nextLessonLocked}}\n \n \n
    \n NEXT LESSON\n
    \n
    \n THIS LESSON WILL OPEN ON\n {{this.unlocks_at_formatted}}\n
    \n \n {{else}}\n
  • \n \n

    Go to

    NEXT LESSON\n \n
  • \n {{/if}}\n {{/if}}\n {{else}}\n
  • \n
  • \n Please accept the honor code before proceeding to the lesson content.\n
  • \n \n {{/unless}}\n \n
    \n {{!Outlet for the other modal routes}}\n {{outlet}}\n */\n {\n \"id\": \"FjQI773E\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@parent\\\"],[[30,0,[\\\"lessonsController\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[11,\\\"ul\\\"],[24,1,\\\"lesson-topics-content\\\"],[24,0,\\\"lesson-topics\\\"],[24,\\\"role\\\",\\\"list\\\"],[16,\\\"aria-label\\\",[29,[\\\"Lesson Content - Lesson \\\",[30,0,[\\\"model\\\",\\\"lesson\\\",\\\"number\\\"]],\\\" - \\\",[30,0,[\\\"model\\\",\\\"lesson\\\",\\\"title\\\"]]]]],[24,\\\"tabindex\\\",\\\"0\\\"],[4,[38,2],[[30,0,[\\\"setupInteractionListeners\\\"]]],null],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"section\\\",\\\"needsHonorCode\\\"]]],[[[42,[28,[37,5],[[28,[37,5],[[30,0,[\\\"model\\\",\\\"lesson\\\",\\\"items\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"lesson-topic\\\"],[15,\\\"aria-labelledby\\\",[29,[[30,1,[\\\"id\\\"]],\\\"-header\\\"]]],[14,\\\"role\\\",\\\"listitem\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"article\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,9],[[30,0,[\\\"session\\\",\\\"course\\\",\\\"isShowcase\\\"]],[30,0,[\\\"session\\\",\\\"isShowcaseInstructor\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"lesson-buttons\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"lesson-delete-button\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"showcaseDeleteItem\\\"]],[30,1]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"lesson-edit-button\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"showcaseEditItem\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-edit\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"h1\\\"],[14,0,\\\"lesson-topic__divider\\\"],[15,\\\"topic_title\\\",[29,[[30,1,[\\\"title\\\"]]]]],[15,1,[29,[[30,1,[\\\"id\\\"]],\\\"-header\\\"]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"editingLessonTitle\\\"]]],[[[1,\\\" \\\"],[2,[30,1,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[[52,[30,1,[\\\"date\\\"]],\\\"visible\\\",\\\"hidden\\\"],\\\" submission-due-date\\\"]]],[12],[1,\\\"Due\\\\n \\\"],[1,[30,1,[\\\"formattedDate\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"lesson-title-edit\\\"],[12],[8,[39,16],[[16,0,[28,[37,17],[\\\"lesson-edit-input-\\\",[30,1,[\\\"id\\\"]]],null]],[16,\\\"placeholder\\\",[30,1,[\\\"title\\\"]]]],[[\\\"@value\\\"],[[30,1,[\\\"title\\\"]]]],null],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-title-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,1,\\\"lesson-title-save-button\\\"],[24,0,\\\"button button--black button--sm\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"showcaseSaveItemTitle\\\"]],[30,1]],null]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,1,\\\"lesson-edit-cancel\\\"],[24,0,\\\"button button--black-ghost button--sm\\\"],[4,[38,12],[\\\"click\\\",[30,0,[\\\"cancelEdit\\\"]]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[15,0,[29,[\\\"lesson-content \\\",[30,1,[\\\"type\\\"]]]]],[15,1,[29,[[30,1,[\\\"id\\\"]]]]],[15,\\\"aria-labelledby\\\",[29,[[30,1,[\\\"id\\\"]],\\\"-header\\\"]]],[14,\\\"role\\\",\\\"region\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[28,[37,19],[[30,0,[\\\"model\\\",\\\"topics\\\"]],[30,2]],null],\\\"advice_card_submitter\\\"],null],[[[1,\\\" \\\"],[8,[39,20],null,[[\\\"@model\\\",\\\"@submitAdviceCard\\\",\\\"@fetchAdviceCards\\\"],[[28,[37,19],[[30,0,[\\\"model\\\",\\\"topics\\\"]],[30,2]],null],[30,0,[\\\"submitAdviceCard\\\"]],[30,0,[\\\"classroom\\\",\\\"fetchAdviceCards\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,18],[[28,[37,19],[[30,0,[\\\"model\\\",\\\"topics\\\"]],[30,2]],null],\\\"advice_card_viewer\\\"],null],[[[1,\\\" \\\"],[8,[39,21],null,[[\\\"@model\\\",\\\"@isAdmin\\\"],[[28,[37,19],[[30,0,[\\\"model\\\",\\\"topics\\\"]],[30,2]],null],[28,[37,22],[[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,0,[\\\"session\\\",\\\"isStaff\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[8,[39,23],null,[[\\\"@item\\\",\\\"@data\\\",\\\"@lessons\\\",\\\"@classroom\\\",\\\"@assignmentSubmission\\\",\\\"@viewAssignmentSubmission\\\",\\\"@viewModal\\\",\\\"@session\\\",\\\"@index\\\",\\\"@bookmarksService\\\"],[[30,1],[28,[37,19],[[30,0,[\\\"model\\\",\\\"topics\\\"]],[30,2]],null],[30,0,[\\\"lessonsController\\\"]],[30,0,[\\\"classroom\\\"]],[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"viewAssignmentSubmission\\\"]],[30,0,[\\\"viewModal\\\"]],[30,0,[\\\"session\\\"]],[30,2],[30,0,[\\\"bookmarksService\\\"]]]],null],[1,\\\"\\\\n \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"page-info\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,[28,[35,24],[[30,2],1],null]],[1,\\\"\\\\n of\\\\n \\\"],[1,[30,0,[\\\"model\\\",\\\"lesson\\\",\\\"items\\\",\\\"length\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"lesson-topic\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"lesson-content\\\"],[12],[1,\\\"\\\\n No lessons found. Please contact your administrator.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[41,[30,0,[\\\"showNextLesson\\\"]],[[[41,[30,0,[\\\"nextLessonLocked\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,\\\"disabled\\\",\\\"true\\\"],[14,0,\\\"lesson-divider locked\\\"],[15,\\\"aria-label\\\",[29,[\\\"Next Lesson is locked. Will unlock on \\\",[30,0,[\\\"unlocks_at_formatted\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-lock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-title\\\"],[12],[1,\\\"\\\\n NEXT LESSON\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-date\\\"],[12],[1,\\\"\\\\n THIS LESSON WILL OPEN ON\\\\n \\\"],[1,[30,0,[\\\"unlocks_at_formatted\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"lesson-divider next-lesson\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"lesson-title-button button--primary\\\"],[4,[38,12],[\\\"click\\\",[28,[37,13],[[30,0,[\\\"goToNextLesson\\\"]],[30,0,[\\\"model\\\",\\\"lesson\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Go to\\\"],[13],[1,\\\"NEXT LESSON\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null]],[]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"lesson-topic\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"lesson-content\\\"],[12],[1,\\\"\\\\n Please accept the honor code before proceeding to the lesson content.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]]],[1,\\\"\\\\n\\\"],[46,[28,[37,27],null,null],null,null,null]],[\\\"topic\\\",\\\"index\\\"],[\\\"lessons/lesson-wrapper\\\",\\\"ul\\\",\\\"did-insert\\\",\\\"unless\\\",\\\"each\\\",\\\"-track-array\\\",\\\"li\\\",\\\"article\\\",\\\"if\\\",\\\"and\\\",\\\"div\\\",\\\"button\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\",\\\"h1\\\",\\\"input\\\",\\\"concat\\\",\\\"get\\\",\\\"array-item\\\",\\\"lessons/advice-card-submitter\\\",\\\"lessons/advice-card-viewer\\\",\\\"or\\\",\\\"lessons/topic-body\\\",\\\"sum\\\",\\\"p\\\",\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/lessons.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/live/event-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#if this.isWorking}}\n \n {{else}}\n \n
    \n {{#unless (or this.showTemplateManager (notnull this.editingTemplateIndex))}}\n
    \n {{#if (eq this.schedulerStep 2)}}\n \n {{/if}}\n
    Schedule New Live Classes
    \n
    \n \n \n
    \n
    \n \n {{/unless}}\n
    \n {{#if this.showTemplateManager}}\n
    \n
    \n \n Manage Templates\n New\n
    \n \n
    \n {{else if (notnull this.editingTemplateIndex)}}\n
    \n \n {{if\n (eq this.editingTemplateIndex \"new\")\n \"New Template\"\n \"Edit Template\"\n }}\n
    \n
    \n \n \n
    \n
    \n {{#each this.events as |event index|}}\n
    \n {{#if (and (morethan this.events.length 1) (not event.shown))}}\n \n {{/if}}\n \n \n
    \n
    \n {{/each}}\n Add Another Session\n \n
    \n Save Template{{#unless this.canSaveEditedTemplate}}Template name and all event titles and descriptions are required{{/unless}}\n
    \n {{else}}\n {{#if (eq this.schedulerStep 1)}}\n {{! STEP 1: Mode picker + start date/time }}\n
    \n \n
    \n {{#if (eq this.creationMode \"manual\")}}\n
    \n {{/if}}\n
    \n
    \n Create New Live Classes\n Set up sessions from scratch.\n
    \n
    \n HOW MANY?\n
    \n \n {{this.events.length}}\n \n
    \n {{this.events.length}}\n session{{if (morethan this.events.length 1) \"s\"}}\n
    \n
    \n \n
    \n {{#if (eq this.creationMode \"template\")}}\n
    \n {{/if}}\n
    \n
    \n Template\n Use a saved group template\n
    \n \n
    \n
    \n \n \n \n
    \n
    \n
    \n \n
    \n
    \n
    \n \n {{#if (or (morethan this.events.length 1) (eq this.creationMode \"template\"))}}\n
    \n
    \n First session start date & time\n \n
    \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n \n
    \n {{/if}}\n {{#if this.session.isInstructor}}\n {{#if this.otherEnrolledSections}}\n
    \n Add other sections to this live class:\n
      \n {{#each this.otherEnrolledSections as |otherEnrolledSection|}}\n \n {{otherEnrolledSection.courseTitle}}\n Section\n {{otherEnrolledSection.sectionLabel}}\n \n {{/each}}\n
    \n
    \n {{/if}}\n {{/if}}\n {{#if (and (eq this.events.length 1) (eq this.creationMode \"manual\"))}}\n
    \n \n {{#if this.saveAsTemplate}}\n \n {{/if}}\n
    \n {{/if}}\n
    \n {{#if (and (eq this.events.length 1) (eq this.creationMode \"manual\"))}}\n {{#if this.isWorking}}{{else}}Schedule Live Class Now{{#unless this.readyToSave}}\n \n {{#if this.templateNameMissing}}\n A template name is required\n {{else}}\n This live class requires a title, description, date, and time\n {{/if}}\n \n {{/unless}}{{/if}}\n \n {{else}}\n Next{{#unless this.readyForDetailedEditorPage}}This\n live class requires a title, description, date, and time{{/unless}}\n {{/if}}\n
    \n {{else}}\n {{! STEP 2: Full events editor }}\n
    \n {{#each this.events as |event index|}}\n
    \n {{#if (and (morethan this.events.length 1) (not event.shown))}}\n \n {{/if}}\n \n {{#if (or event.shown (eq this.events.length 1))}}\n \n {{/if}}\n
    \n
    \n {{/each}}\n Add Another Session\n \n
    \n \n {{#if this.saveAsTemplate}}\n \n {{/if}}\n
    \n
    \n {{#if this.isWorking}}{{else}}\n Schedule Live Class{{if\n (and this.session.isInstructor (morethan this.events.length 1))\n \"es\"\n }}\n Now\n {{#unless this.readyToSave}}\n \n {{#if this.templateNameMissing}}\n A template name is required\n {{else}}\n All live classes require a title, description, date, and time\n {{/if}}\n \n {{/unless}}{{/if}}\n \n
    \n {{/if}}\n {{/if}}\n \n {{/if}}\n */\n {\n \"id\": \"COPA0Eol\",\n \"block\": \"[[[41,[30,0,[\\\"isWorking\\\"]],[[[1,\\\" \\\"],[8,[39,1],null,null,null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,\\\"aria-labelledby\\\",\\\"new-event__title\\\"],[14,\\\"aria-describedby\\\",\\\"new-event__title\\\"],[14,0,\\\"new-event\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[14,\\\"autofocus\\\",\\\"\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,1,\\\"new-event__sticky-header\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,5],[[30,0,[\\\"showTemplateManager\\\"]],[28,[37,6],[[30,0,[\\\"editingTemplateIndex\\\"]]],null]],null]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__sticky-header-top\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"schedulerStep\\\"]],2],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__back-button chip chip--filter chip--sm\\\"],[24,\\\"aria-label\\\",\\\"Back\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"goToFirstPage\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-left\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__title\\\"],[14,1,\\\"new-event__title\\\"],[12],[1,\\\"Schedule New Live Classes\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__sticky-header-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[24,0,\\\"new-event__help tooltip\\\"],[24,\\\"tooltip\\\",\\\"View scheduler overview video.\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"openTutorial\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa far fa-info-circle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTemplateManager\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__manage-templates-page\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__manage-templates-header\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__back-button chip chip--filter chip--sm\\\"],[24,\\\"aria-label\\\",\\\"Back\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"toggleTemplateManager\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-left\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__manage-templates-title\\\"],[12],[1,\\\"Manage Templates\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--primary button--sm new-event__new-template-button\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"newTemplate\\\"]]],null],[12],[1,\\\"New\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,12],null,[[\\\"@templates\\\",\\\"@deleteTemplate\\\",\\\"@renameTemplate\\\",\\\"@copyTemplate\\\",\\\"@editTemplate\\\",\\\"@contentNotDirty\\\"],[[30,0,[\\\"templatesService\\\",\\\"templates\\\"]],[30,0,[\\\"templatesService\\\",\\\"deleteTemplate\\\"]],[30,0,[\\\"templatesService\\\",\\\"renameTemplate\\\"]],[30,0,[\\\"templatesService\\\",\\\"copyTemplate\\\"]],[30,0,[\\\"editTemplate\\\"]],[30,0,[\\\"contentNotDirty\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,6],[[30,0,[\\\"editingTemplateIndex\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__edit-template-header\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__back-button chip chip--filter chip--sm\\\"],[24,\\\"aria-label\\\",\\\"Back\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"cancelEditTemplate\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-left\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__manage-templates-title\\\"],[12],[1,[52,[28,[37,7],[[30,0,[\\\"editingTemplateIndex\\\"]],\\\"new\\\"],null],\\\"New Template\\\",\\\"Edit Template\\\"]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__template-name-field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-event__template-name-label\\\"],[14,\\\"for\\\",\\\"editing-template-name\\\"],[12],[1,\\\"Template Name\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,1,\\\"editing-template-name\\\"],[24,0,\\\"new-event__template-name-input\\\"],[16,2,[30,0,[\\\"editingTemplateName\\\"]]],[24,\\\"placeholder\\\",\\\"Template name\\\"],[24,4,\\\"text\\\"],[4,[38,9],[\\\"input\\\",[30,0,[\\\"updateEditingTemplateName\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__new-events-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"events\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__new-events-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[28,[37,18],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,19],[[30,1,[\\\"shown\\\"]]],null]],null],[[[1,\\\" \\\"],[8,[39,20],null,[[\\\"@index\\\",\\\"@event\\\",\\\"@isActive\\\",\\\"@deleteEvent\\\",\\\"@toggleShowEventDetails\\\",\\\"@updateDate\\\",\\\"@updateTime\\\"],[[30,2],[30,1],false,[28,[37,21],[[30,0,[\\\"deleteEvent\\\"]],[30,2]],null],[28,[37,21],[[30,0,[\\\"toggleShowEventDetails\\\"]],[30,2]],null],[30,0,[\\\"updateDate\\\"]],[30,0,[\\\"updateTime\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"new-event__event-content\\\\n \\\",[52,[28,[37,5],[[30,1,[\\\"shown\\\"]],[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],null],\\\"\\\",\\\"hidden\\\"],\\\"\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"shakingIndex\\\"]],[30,2]],null],\\\"new-event__event-content--shaking\\\"]]]],[12],[1,\\\"\\\\n \\\"],[8,[39,22],[[16,\\\"localDocs\\\",[30,0,[\\\"localDocs\\\"]]]],[[\\\"@event\\\",\\\"@controller\\\",\\\"@session\\\",\\\"@index\\\",\\\"@inEditor\\\",\\\"@deleteEvent\\\",\\\"@updateLocalDocs\\\",\\\"@otherEnrolledSections\\\",\\\"@toggleExtraSection\\\",\\\"@cascadeDate\\\",\\\"@cascadeSection\\\",\\\"@hideCascadeSections\\\",\\\"@updateDate\\\",\\\"@updateTime\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@deleteArchivedText\\\",\\\"@localArchive\\\",\\\"@showTemplateSelect\\\",\\\"@hideDateTime\\\"],[[30,1],[30,0],[30,0,[\\\"session\\\"]],[30,2],[30,0,[\\\"inEditor\\\"]],[28,[37,21],[[30,0,[\\\"deleteEvent\\\"]],[30,2]],null],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"otherEnrolledSections\\\"]],[30,0,[\\\"toggleExtraSection\\\"]],[30,0,[\\\"cascadeDate\\\"]],[30,0,[\\\"cascadeSection\\\"]],[28,[37,5],[[28,[37,7],[[30,0,[\\\"otherEnrolledSections\\\",\\\"length\\\"]],0],null],[28,[37,7],[[30,1],[30,0,[\\\"events\\\",\\\"lastObject\\\"]]],null]],null],[30,0,[\\\"updateDate\\\"]],[30,0,[\\\"updateTime\\\"]],[30,0,[\\\"toggleLocalArchive\\\"]],[30,0,[\\\"previewArchivedText\\\"]],[30,0,[\\\"useArchivedText\\\"]],[30,0,[\\\"deleteArchivedText\\\"]],[30,0,[\\\"localArchive\\\"]],false,true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__add-session\\\"],[24,\\\"aria-label\\\",\\\"Add another session\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"addEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Add Another Session\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__sticky-footer\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"canSaveEditedTemplate\\\"]]],true]],[16,0,[29,[\\\"new-event__save-button button button--primary button--md\\\\n \\\",[52,[51,[30,0,[\\\"canSaveEditedTemplate\\\"]]],\\\"disabled\\\"]]]],[4,[38,9],[\\\"click\\\",[30,0,[\\\"saveEditedTemplate\\\"]]],null],[12],[1,\\\"Save Template\\\"],[41,[51,[30,0,[\\\"canSaveEditedTemplate\\\"]]],[[[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"Template name and all event titles and descriptions are required\\\"],[13]],[]],null],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,7],[[30,0,[\\\"schedulerStep\\\"]],1],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__mode-picker\\\"],[12],[1,\\\"\\\\n \\\"],[11,0],[16,0,[29,[\\\"new-event__mode-box\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"manual\\\"],null],\\\"new-event__mode-box--selected\\\"]]]],[24,\\\"role\\\",\\\"radio\\\"],[16,\\\"aria-checked\\\",[29,[[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"manual\\\"],null]]]],[4,[38,9],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"setCreationMode\\\"]],\\\"manual\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__mode-radio\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"manual\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__mode-radio-dot\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__mode-box-body\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__mode-box-title\\\"],[12],[1,\\\"Create New Live Classes\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__mode-box-desc\\\"],[12],[1,\\\"Set up sessions from scratch.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__event-selector\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__event-selector-label\\\"],[12],[1,\\\"HOW MANY?\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__event-selector-controls\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__event-selector-btn\\\"],[24,\\\"aria-label\\\",\\\"Remove last session\\\"],[16,\\\"disabled\\\",[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],[4,[38,9],[\\\"click\\\",[30,0,[\\\"removeLastEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-minus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"new-event__event-selector-count\\\\n \\\",[52,[30,0,[\\\"sessionCountBounce\\\"]],\\\"new-event__event-selector-count--bounce\\\"]]]],[12],[1,[30,0,[\\\"events\\\",\\\"length\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__event-selector-btn\\\"],[24,\\\"aria-label\\\",\\\"Add another session\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"addEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__event-selector-subtitle\\\"],[12],[1,[30,0,[\\\"events\\\",\\\"length\\\"]]],[1,\\\"\\\\n session\\\"],[1,[52,[28,[37,18],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],\\\"s\\\"]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,0],[16,0,[29,[\\\"new-event__mode-box\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"template\\\"],null],\\\"new-event__mode-box--selected\\\"]]]],[24,\\\"role\\\",\\\"radio\\\"],[16,\\\"aria-checked\\\",[29,[[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"template\\\"],null]]]],[4,[38,9],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"setCreationMode\\\"]],\\\"template\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__mode-radio\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"template\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__mode-radio-dot\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__mode-box-body\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__mode-box-title\\\"],[12],[1,\\\"Template\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__mode-box-desc\\\"],[12],[1,\\\"Use a saved group template\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__template-dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,23],null,[[\\\"@options\\\",\\\"@placeholder\\\",\\\"@selectedId\\\",\\\"@changeSelection\\\",\\\"@footerAction\\\"],[[30,0,[\\\"templatesService\\\",\\\"templates\\\"]],\\\"Select a template\\\",[30,0,[\\\"templatesService\\\",\\\"selectedTemplateId\\\"]],[30,0,[\\\"selectTemplate\\\"]],[30,0,[\\\"toggleTemplateManager\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"new-event__firstPage-event-editor\\\\n \\\",[52,[51,[28,[37,17],[[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"manual\\\"],null]],null]],\\\"new-event__firstPage-event-editor--hidden\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__new-events-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__new-events-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__event-content\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,22],[[16,\\\"localDocs\\\",[30,0,[\\\"localDocs\\\"]]]],[[\\\"@event\\\",\\\"@controller\\\",\\\"@session\\\",\\\"@index\\\",\\\"@inEditor\\\",\\\"@deleteEvent\\\",\\\"@updateLocalDocs\\\",\\\"@otherEnrolledSections\\\",\\\"@toggleExtraSection\\\",\\\"@cascadeDate\\\",\\\"@cascadeSection\\\",\\\"@hideCascadeSections\\\",\\\"@hideDelete\\\",\\\"@updateDate\\\",\\\"@updateTime\\\",\\\"@min\\\",\\\"@max\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@deleteArchivedText\\\",\\\"@localArchive\\\",\\\"@showTemplateSelect\\\"],[[30,0,[\\\"events\\\",\\\"firstObject\\\"]],[30,0],[30,0,[\\\"session\\\"]],0,[30,0,[\\\"inEditor\\\"]],[28,[37,21],[[30,0,[\\\"deleteEvent\\\"]],0],null],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"otherEnrolledSections\\\"]],[30,0,[\\\"toggleExtraSection\\\"]],[30,0,[\\\"cascadeDate\\\"]],[30,0,[\\\"cascadeSection\\\"]],true,true,[30,0,[\\\"updateDate\\\"]],[30,0,[\\\"updateTime\\\"]],[30,0,[\\\"minScheduleDate\\\"]],[30,0,[\\\"maxScheduleDate\\\"]],[30,0,[\\\"toggleLocalArchive\\\"]],[30,0,[\\\"previewArchivedText\\\"]],[30,0,[\\\"useArchivedText\\\"]],[30,0,[\\\"deleteArchivedText\\\"]],[30,0,[\\\"localArchive\\\"]],false]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[28,[37,18],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"template\\\"],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__start-date-box\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__start-date-box-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__start-date-box-title\\\"],[12],[1,\\\"First session start date & time\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__start-date-fields\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__start-date-field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-event__start-date-label\\\"],[12],[1,\\\"Date\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,14],[[24,0,\\\"new-event__start-date-input\\\"],[16,\\\"min\\\",[30,0,[\\\"minScheduleDate\\\"]]],[16,\\\"max\\\",[30,0,[\\\"maxScheduleDate\\\"]]],[4,[38,9],[\\\"input\\\",[28,[37,21],[[30,0,[\\\"updateDate\\\"]],0],null]],null],[4,[38,9],[\\\"keyup\\\",[28,[37,21],[[30,0,[\\\"updateDate\\\"]],0],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"date\\\",[30,0,[\\\"events\\\",\\\"firstObject\\\",\\\"startDate_date\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__start-date-field\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-event__start-date-label\\\"],[12],[1,\\\"Time\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,14],[[24,0,\\\"new-event__start-date-input\\\"],[4,[38,9],[\\\"input\\\",[28,[37,21],[[30,0,[\\\"updateTime\\\"]],0],null]],null],[4,[38,9],[\\\"keyup\\\",[28,[37,21],[[30,0,[\\\"updateTime\\\"]],0],null]],null]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"time\\\",[30,0,[\\\"events\\\",\\\"firstObject\\\",\\\"startDate_time\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"new-event__cascade\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[30,0,[\\\"cascadeEnabled\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,9],[\\\"change\\\",[30,0,[\\\"toggleCascade\\\"]]],null],[12],[13],[1,\\\"\\\\n Cascade date\\\\n \\\"],[10,0],[14,0,\\\"new-event__cascade-tooltip tooltip\\\"],[12],[1,\\\"Set each class one week apart,\\\\n starting from the date above. Dates can be changed on the next page.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[41,[30,0,[\\\"otherEnrolledSections\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__sections-box\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"new-event__sections-box-label\\\"],[12],[1,\\\"Add other sections to this live class:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"new-event__sections-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"otherEnrolledSections\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"select new-event__section course-\\\",[30,3,[\\\"courseId\\\"]],\\\"\\\\n \\\",[52,[28,[37,26],[[30,3,[\\\"courseId\\\"]],[30,0,[\\\"selectedSectionCourseIds\\\"]]],null],\\\"selected\\\",\\\"\\\"]]]],[4,[38,9],[\\\"click\\\",[28,[37,21],[[30,0,[\\\"toggleExtraSectionAll\\\"]],[30,3]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[15,\\\"checked\\\",[28,[37,26],[[30,3,[\\\"courseId\\\"]],[30,0,[\\\"selectedSectionCourseIds\\\"]]],null]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,[30,3,[\\\"courseTitle\\\"]]],[1,\\\"\\\\n Section\\\\n \\\"],[1,[30,3,[\\\"sectionLabel\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[28,[37,17],[[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"manual\\\"],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__save-as-template-checkbox\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select new-event__save-as-template-row\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[30,0,[\\\"saveAsTemplate\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,9],[\\\"change\\\",[30,0,[\\\"toggleSaveAsTemplate\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Save this live class as a template for future semester use?\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAsTemplate\\\"]],[[[1,\\\" \\\"],[11,\\\"input\\\"],[24,0,\\\"new-event__save-as-template-name\\\"],[24,\\\"placeholder\\\",\\\"Template name\\\"],[16,2,[30,0,[\\\"saveAsTemplateName\\\"]]],[24,4,\\\"text\\\"],[4,[38,9],[\\\"input\\\",[30,0,[\\\"updateSaveAsTemplateName\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__sticky-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,7],[[30,0,[\\\"creationMode\\\"]],\\\"manual\\\"],null]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"new-event__save-button button button--primary button--md editor-save-btn event without-action\\\\n \\\",[52,[51,[30,0,[\\\"readyToSave\\\"]]],\\\"disabled\\\"]]]],[4,[38,9],[\\\"click\\\",[30,0,[\\\"attemptSaveEvents\\\"]]],null],[12],[41,[30,0,[\\\"isWorking\\\"]],[[[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13]],[]],[[[1,\\\"Schedule Live Class Now\\\"],[41,[51,[30,0,[\\\"readyToSave\\\"]]],[[[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"templateNameMissing\\\"]],[[[1,\\\" A template name is required\\\\n\\\"]],[]],[[[1,\\\" This live class requires a title, description, date, and time\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[52,[51,[30,0,[\\\"readyForDetailedEditorPage\\\"]]],true]],[24,0,\\\"new-event__save-button button button--primary button--md\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"goToDetailedEditorPage\\\"]]],null],[12],[1,\\\"Next\\\"],[41,[51,[30,0,[\\\"readyForDetailedEditorPage\\\"]]],[[[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"This\\\\n live class requires a title, description, date, and time\\\"],[13]],[]],null],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__new-events-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,16],[[28,[37,16],[[30,0,[\\\"events\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"new-event__new-events-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,17],[[28,[37,18],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,19],[[30,4,[\\\"shown\\\"]]],null]],null],[[[1,\\\" \\\"],[8,[39,20],null,[[\\\"@index\\\",\\\"@event\\\",\\\"@isActive\\\",\\\"@deleteEvent\\\",\\\"@toggleShowEventDetails\\\",\\\"@updateDate\\\",\\\"@updateTime\\\"],[[30,5],[30,4],false,[28,[37,21],[[30,0,[\\\"deleteEvent\\\"]],[30,5]],null],[28,[37,21],[[30,0,[\\\"toggleShowEventDetails\\\"]],[30,5]],null],[30,0,[\\\"updateDate\\\"]],[30,0,[\\\"updateTime\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"new-event__event-content\\\\n \\\",[52,[28,[37,5],[[30,4,[\\\"shown\\\"]],[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],null],\\\"\\\",\\\"hidden\\\"],\\\"\\\\n \\\",[52,[28,[37,7],[[30,0,[\\\"shakingIndex\\\"]],[30,5]],null],\\\"new-event__event-content--shaking\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,5],[[30,4,[\\\"shown\\\"]],[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],null],[[[1,\\\" \\\"],[8,[39,22],[[16,\\\"localDocs\\\",[30,0,[\\\"localDocs\\\"]]]],[[\\\"@event\\\",\\\"@controller\\\",\\\"@session\\\",\\\"@index\\\",\\\"@inEditor\\\",\\\"@deleteEvent\\\",\\\"@updateLocalDocs\\\",\\\"@otherEnrolledSections\\\",\\\"@toggleExtraSection\\\",\\\"@cascadeDate\\\",\\\"@cascadeSection\\\",\\\"@hideCascadeSections\\\",\\\"@updateDate\\\",\\\"@updateTime\\\",\\\"@min\\\",\\\"@max\\\",\\\"@toggleLocalArchive\\\",\\\"@previewArchivedText\\\",\\\"@useArchivedText\\\",\\\"@deleteArchivedText\\\",\\\"@localArchive\\\",\\\"@hideDelete\\\",\\\"@showTemplateSelect\\\",\\\"@saveEvent\\\",\\\"@discardEvent\\\",\\\"@isDirty\\\"],[[30,4],[30,0],[30,0,[\\\"session\\\"]],[30,5],[30,0,[\\\"inEditor\\\"]],[28,[37,21],[[30,0,[\\\"deleteEvent\\\"]],[30,5]],null],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"otherEnrolledSections\\\"]],[30,0,[\\\"toggleExtraSection\\\"]],[30,0,[\\\"cascadeDate\\\"]],[30,0,[\\\"cascadeSection\\\"]],[28,[37,5],[[28,[37,7],[[30,0,[\\\"otherEnrolledSections\\\",\\\"length\\\"]],0],null],[28,[37,7],[[30,4],[30,0,[\\\"events\\\",\\\"lastObject\\\"]]],null]],null],[30,0,[\\\"updateDate\\\"]],[30,0,[\\\"updateTime\\\"]],[30,0,[\\\"minScheduleDate\\\"]],[30,0,[\\\"maxScheduleDate\\\"]],[30,0,[\\\"toggleLocalArchive\\\"]],[30,0,[\\\"previewArchivedText\\\"]],[30,0,[\\\"useArchivedText\\\"]],[30,0,[\\\"deleteArchivedText\\\"]],[30,0,[\\\"localArchive\\\"]],[28,[37,7],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null],[28,[37,7],[[30,5],0],null],[28,[37,21],[[30,0,[\\\"saveEventEdits\\\"]],[30,5]],null],[28,[37,21],[[30,0,[\\\"discardEventEdits\\\"]],[30,5]],null],[30,4,[\\\"isDirty\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4,5]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"new-event__add-session\\\"],[24,\\\"aria-label\\\",\\\"Add another session\\\"],[4,[38,9],[\\\"click\\\",[30,0,[\\\"addEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\" Add Another Session\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__save-as-template-checkbox\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select new-event__save-as-template-row\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[16,\\\"checked\\\",[30,0,[\\\"saveAsTemplate\\\"]]],[24,4,\\\"checkbox\\\"],[4,[38,9],[\\\"change\\\",[30,0,[\\\"toggleSaveAsTemplate\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Save this group of live classes as a template for future semester use?\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"saveAsTemplate\\\"]],[[[1,\\\" \\\"],[11,\\\"input\\\"],[24,0,\\\"new-event__save-as-template-name\\\"],[24,\\\"placeholder\\\",\\\"Template name\\\"],[16,2,[30,0,[\\\"saveAsTemplateName\\\"]]],[24,4,\\\"text\\\"],[4,[38,9],[\\\"input\\\",[30,0,[\\\"updateSaveAsTemplateName\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__sticky-footer\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"new-event__save-button button button--primary button--md editor-save-btn event without-action\\\\n \\\",[52,[51,[30,0,[\\\"readyToSave\\\"]]],\\\"disabled\\\"]]]],[4,[38,9],[\\\"click\\\",[30,0,[\\\"attemptSaveEvents\\\"]]],null],[12],[41,[30,0,[\\\"isWorking\\\"]],[[[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13]],[]],[[[1,\\\"\\\\n Schedule Live Class\\\"],[1,[52,[28,[37,17],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[28,[37,18],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],null],\\\"es\\\"]],[1,\\\"\\\\n Now\\\\n\\\"],[41,[51,[30,0,[\\\"readyToSave\\\"]]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"templateNameMissing\\\"]],[[[1,\\\" A template name is required\\\\n\\\"]],[]],[[[1,\\\" All live classes require a title, description, date, and time\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[\\\"event\\\",\\\"index\\\",\\\"otherEnrolledSection\\\",\\\"event\\\",\\\"index\\\"],[\\\"if\\\",\\\"loading-mask\\\",\\\"div\\\",\\\"header\\\",\\\"unless\\\",\\\"or\\\",\\\"notnull\\\",\\\"eq\\\",\\\"button\\\",\\\"on\\\",\\\"i\\\",\\\"span\\\",\\\"lessons/event-new-template-manager-page\\\",\\\"label\\\",\\\"input\\\",\\\"each\\\",\\\"-track-array\\\",\\\"and\\\",\\\"morethan\\\",\\\"not\\\",\\\"lessons/event-new-collapsible\\\",\\\"fn\\\",\\\"lessons/event-new-content\\\",\\\"inputs/template-dropdown\\\",\\\"ul\\\",\\\"li\\\",\\\"inarray\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/live/event-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/live/event-quick-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n
    \n
    Schedule New\n {{if this.session.isInstructor \"Live Classes\" \"Session\"}}
    \n
    \n
    \n
    \n
    \n
    \n {{#each this.events as |event index|}}\n
    \n \n
    Add other sections to this live class:
    \n
    \n
      \n {{#each this.otherEnrolledSections as |otherEnrolledSection|}}\n \n {{otherEnrolledSection.courseTitle}}\n Section\n {{otherEnrolledSection.sectionLabel}}\n \n {{/each}}\n
    \n
    \n
    \n
    \n {{/each}}\n \n
    \n \n Start\n {{if this.session.isInstructor \"Live Class\" \"session\"}}\n {{if (and this.session.isInstructor (morethan this.events.length 1)) \"es\"}}\n Now\n {{#if this.isWorking}}\n
    \n {{/if}}\n \n
    \n \n {{#if this.isWorking}}\n executing...
    \n {{/if}}\n */\n {\n \"id\": \"nJviumEI\",\n \"block\": \"[[[10,0],[14,\\\"aria-labelledby\\\",\\\"new-event__title\\\"],[14,\\\"aria-describedby\\\",\\\"new-event__title\\\"],[14,0,\\\"event-quick-new active\\\"],[14,1,\\\"new-event\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[14,\\\"autofocus\\\",\\\"\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,1,\\\"new-event__sticky-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__sticky-header-top\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"title\\\"],[14,1,\\\"new-event__title\\\"],[12],[1,\\\"Schedule New\\\\n \\\"],[1,[52,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"Live Classes\\\",\\\"Session\\\"]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__sticky-header-actions\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-new-events-wrapper\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"events\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-quick-new\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"event-new-event__content\\\\n \\\",[52,[28,[37,5],[[30,1,[\\\"shown\\\"]],[28,[37,6],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],null],\\\"\\\",\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"multiple-sections-copy\\\"],[12],[1,\\\"Add other sections to this live class:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-multiple-sections\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"sections-list\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,4],[[28,[37,4],[[30,0,[\\\"otherEnrolledSections\\\"]]],null]],null],null,[[[1,\\\" \\\"],[11,\\\"li\\\"],[16,0,[29,[\\\"section course-\\\",[30,3,[\\\"courseId\\\"]],\\\"\\\\n \\\",[52,[28,[37,9],[[30,3,[\\\"courseId\\\"]],[30,1,[\\\"additionalSectionsCourseIds\\\"]]],null],\\\"selected\\\",\\\"\\\"]]]],[4,[38,10],[\\\"click\\\",[28,[37,11],[[30,0,[\\\"toggleExtraSection\\\"]],[30,3],[30,2]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"far\\\\n \\\",[52,[28,[37,9],[[30,3,[\\\"courseId\\\"]],[30,1,[\\\"additionalSectionsCourseIds\\\"]]],null],\\\"fa-check-square\\\",\\\"fa-square\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,[30,3,[\\\"courseTitle\\\"]]],[1,\\\"\\\\n Section\\\\n \\\"],[1,[30,3,[\\\"sectionLabel\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1,2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"new-event__sticky-footer\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,1,\\\"new-event__save-button\\\"],[24,0,\\\"editor-save-btn active with-action\\\"],[4,[38,10],[\\\"click\\\",[30,0,[\\\"saveEvents\\\"]]],null],[12],[1,\\\"\\\\n Start\\\\n \\\"],[1,[52,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"Live Class\\\",\\\"session\\\"]],[1,\\\"\\\\n \\\"],[1,[52,[28,[37,14],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[28,[37,15],[[30,0,[\\\"events\\\",\\\"length\\\"]],1],null]],null],\\\"es\\\"]],[1,\\\"\\\\n Now\\\\n\\\"],[41,[30,0,[\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-new-loading-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isWorking\\\"]],[[[1,\\\" executing...\\\"],[10,0],[14,0,\\\"event-new-loading-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[\\\"event\\\",\\\"index\\\",\\\"otherEnrolledSection\\\"],[\\\"div\\\",\\\"header\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"or\\\",\\\"eq\\\",\\\"ul\\\",\\\"li\\\",\\\"inarray\\\",\\\"on\\\",\\\"fn\\\",\\\"i\\\",\\\"button\\\",\\\"and\\\",\\\"morethan\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/live/event-quick-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/live/event\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n

    Live Class - {{this.model.title}}. More info and video archive below.

    \n \n {{#unless this.model.privateLessonStudentId}}\n
    \n \n
    \n {{/unless}}\n
    \n {{#if this.editingEvent}}\n {{#if this.model.privateLessonStudentId}}\n

    {{this.model.title}}

    \n {{else}}\n \n {{/if}}\n {{else}}\n {{#if this.canShowEditButton}}\n \n Edit Live Class\n \n {{/if}}\n

    {{this.model.title}}

    \n {{/if}}\n
    \n \n {{#unless this.editingEvent}}\n
    \n {{#if (same this.session.runningChatMeetingKey this.model.meeting_key)}}\n {{#if this.session.runningChatMeetingKey}}\n
    \n Live\n
    \n {{/if}}\n {{/if}}\n {{#if this.future}}{{else}}

    Live Class was conducted

    {{/if}}{{this.model.formattedStartTime}}
    \n \n {{else}}\n {{#unless this.archived}}\n
    \n
    \n
    \n \n \n
    \n
    \n \n \n
    \n
    \n
    \n {{/unless}}\n {{/unless}}\n {{#unless this.cancelEventConfirmedVisible}}\n
    \n {{#if this.model.meetings}}\n {{#unless (same this.model.meetings.length \"1\")}}\n \n \n {{#each this.model.meetings as |mtg|}}\n {{#if mtg.stream_url}}\n \n {{/if}}\n {{/each}}\n \n {{else}}\n {{#unless this.model.kalturaRecordings}}\n Watch\n {{/unless}}\n {{/unless}}\n {{/if}}\n {{#if this.showRsvp}}\n
    \n Will you attend?\n Yes\n No\n
    \n {{/if}}\n {{#if this.canStartAsHost}}\n {{#if this.hostButtonDisabled}}\n Start Live Class as Host\n {{else if this.isCurrentMeeting}}\n Join the meeting\n {{else}}\n Start Live Class as Host\n {{/if}}\n {{else}}\n \n {{#if this.runnable}}\n {{#if (same this.session.runningChatMeetingKey this.model.meeting_key)}}\n {{#if this.session.runningChatMeetingKey}}\n
    \n

    \n This live class is happening now!

    \n Join the meeting\n
    \n {{/if}}\n {{else}}\n {{#if this.canStartChat}}\n Start Live Class as Host\n Cancel Live Class\n {{else}}\n
    Waiting for live class to start.
    \n {{/if}}\n {{/if}}\n {{else}}\n {{#if this.canStartChat}}\n Start Live Class as Host\n Cancel Live Class\n {{/if}}\n {{/if}}\n {{/if}}\n {{#if this.canCancelEvent}}\n Cancel Live Class\n {{/if}}\n {{#if (or this.isEventSaving this.eventsService.isWorking)}}\n
    \n {{/if}}\n \n
    \n {{#unless this.session.isInstructor}}\n {{#if (or this.isMeetingSupposedToBeHappeningRightNow this.backup_code)}}\n {{#if this.model.meeting_key}}\n
    \n

    Having trouble joining the live class? Use this Zoom meeting ID to\n join through the Zoom client

    \n
    \n \n \n \n \n
    \n
    \n {{/if}}\n {{/if}}\n {{/unless}}\n \n {{#if this.showZoomInviteLink}}\n
    \n
    As the instructor, you may invite guests to this\n Zoom meeting with this link:
    \n
    \n \n \n \n \n
    \n
    \n {{/if}}\n {{{this.description}}}

    \n {{#if (or this.session.isInstructor this.session.isAdmin)}}\n {{#if this.editingEvent}}\n {{#unless this.model.privateLessonStudentId}}\n
    \n \n
    \n {{/unless}}\n {{#if this.session.course.isOpen}}\n
    \n
    \n \n
    \n {{#if this.notifyStudents}}\n \n {{/if}}\n
    \n {{/if}}\n
    \n
    \n {{#if this.isEventSaving}}\n \n {{/if}}\n Cancel\n Save\n
    \n
    \n {{/if}}\n {{/if}}\n {{#if this.model.kalturaRecordings}}\n {{#each this.model.kalturaRecordings as |kalturaRecording|}}\n

    Live Class archive video

    \n
    \n \n {{/each}}\n {{else}}\n {{#if this.model.s3Recordings}}\n {{#each this.model.s3Recordings as |s3recording|}}\n

    Live Class archive video

    \n
    \n \n {{/each}}\n {{/if}}\n {{/if}}\n {{#if this.showRecurringChats}}\n
    \n
    This is a recurring class,\n also happening at these times:
    \n
      \n {{#each this.otherRecurringChats as |otherRecurringChat|}}\n
    • {{otherRecurringChat.formattedStartTime}}
    • \n {{/each}}\n
    \n
    \n {{/if}}\n \n {{#if (and this.otherSectionChats this.hasOtherSectionChats)}}\n
    \n
    This live class also\n {{if this.model.meetings \"happened\" \"happens\"}}\n in these courses:
    \n \n {{#each this.otherSectionChatsData as |otherSectionChat|}}\n
  • \n {{otherSectionChat.courseTitle}}\n - Section\n {{otherSectionChat.sectionLabel}}\n
  • \n {{/each}}\n \n
    \n {{/if}}\n {{#unless this.editingEvent}}\n
    \n \n
    \n
    Comments
    \n
    \n
      \n {{#each this.model.responses as |response|}}\n \n {{else}}\n
      Be the first to respond (below).
      \n {{/each}}\n
    \n
    \n \n
    \n {{/unless}}\n {{else}}\n

    {{{this.model.description}}}

    \n {{#if this.canEditEvent}}\n
    \n {{#if (or this.hasOtherSectionChats this.hasRecurringChats)}}\n

    Additional options

    \n
      \n {{#if this.hasOtherSectionChats}}\n
    • \n \n
        \n {{#each this.otherSectionChatsData as |otherSectionChat|}}\n
      • {{otherSectionChat.courseTitle}}\n - Section\n {{otherSectionChat.sectionLabel}}
      • \n {{/each}}\n
      \n
    • \n {{/if}}\n {{#if this.hasRecurringChats}}\n
    • \n \n
        \n {{#each this.otherRecurringChats as |otherRecurringChat|}}\n
      • {{otherRecurringChat.formattedStartTime}}
      • \n {{/each}}\n
      \n
    • \n {{/if}}\n
    \n {{/if}}\n
    \n \n
    \n
    \n {{/if}}\n
    \n \n \n This action cannot be undone!\n \n Yes, Cancel\n \n
    \n {{/unless}}\n \n
    \n \n \n \n \n
    \n \n */\n {\n \"id\": \"buz33o90\",\n \"block\": \"[[[10,0],[15,0,[29,[\\\"event-panel-wrapper\\\\n \\\",[52,[30,0,[\\\"model\\\",\\\"isEmptyEvent\\\"]],\\\"empty-evt\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"editingEvent\\\"]],\\\"editing-event\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Live Class - \\\"],[1,[30,0,[\\\"model\\\",\\\"title\\\"]]],[1,\\\". More info and video archive below.\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"tabindex\\\",\\\"0\\\"],[14,\\\"autofocus\\\",\\\"\\\"],[14,\\\"aria-label\\\",\\\"Live Class Information\\\"],[15,0,[29,[\\\"event-panel \\\",[52,[30,0,[\\\"cancelEventConfirmedVisible\\\"]],\\\"cancel-confirm\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"model\\\",\\\"privateLessonStudentId\\\"]]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"event-panel__title-edit-row \\\",[52,[51,[30,0,[\\\"editingEvent\\\"]]],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"event-panel__title-edit\\\"],[12],[1,\\\"Title:\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__title-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"editingEvent\\\"]],[[[41,[30,0,[\\\"model\\\",\\\"privateLessonStudentId\\\"]],[[[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"event-panel__title\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"input\\\"],[24,1,\\\"event-panel__title-edit\\\"],[24,0,\\\"single-event__title-input event-panel__title-edit-inline\\\"],[16,2,[29,[[30,0,[\\\"model\\\",\\\"title\\\"]]]]],[4,[38,7],[\\\"input\\\",[30,0,[\\\"updateTempTitle\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"canShowEditButton\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__button event-panel__editor-send-button active event-panel__toggle-edit-button icon-button icon-button__white\\\"],[24,\\\"aria-label\\\",\\\"Edit Live Class\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"editEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"tooltip tooltip--left\\\"],[12],[1,\\\"Edit Live Class\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"h2\\\"],[14,0,\\\"event-panel__title\\\"],[12],[1,[30,0,[\\\"model\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[30,0,[\\\"editingEvent\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__time-row\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"session\\\",\\\"runningChatMeetingKey\\\"]],[30,0,[\\\"model\\\",\\\"meeting_key\\\"]]],null],[[[41,[30,0,[\\\"session\\\",\\\"runningChatMeetingKey\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__live-indicator button button--primary button--sm-md\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-signal-stream\\\"],[12],[13],[1,\\\"\\\\n Live\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[41,[30,0,[\\\"future\\\"]],[[[10,\\\"label\\\"],[14,\\\"for\\\",\\\"event-panel__time\\\"],[12],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Live Class \\\"],[13],[1,\\\"\\\\n \\\"],[13]],[]],[[[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Live Class was conducted \\\"],[13]],[]]],[10,0],[14,0,\\\"event-panel__time\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"event-panel__time-icon far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,[30,0,[\\\"model\\\",\\\"formattedStartTime\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,0,[\\\"archived\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__time-editors\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__time-pickers\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__date-picker\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"single-event__title-label\\\"],[12],[1,\\\"Date:\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,0,\\\"single-event__date-picker-input\\\"],[16,\\\"min\\\",[29,[[30,0,[\\\"minScheduleDate\\\"]]]]],[16,\\\"max\\\",[29,[[30,0,[\\\"maxScheduleDate\\\"]]]]],[16,2,[29,[[30,0,[\\\"model\\\",\\\"dateInputStartDate\\\"]]]]],[24,4,\\\"date\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"updateTempDateOnly\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"single-event__hour-picker\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"single-event__title-label\\\"],[12],[1,\\\"Time:\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"input\\\"],[24,0,\\\"single-event__hour-picker-input\\\"],[16,2,[29,[[30,0,[\\\"model\\\",\\\"dateInputStartTimeOnly\\\"]]]]],[24,4,\\\"time\\\"],[4,[38,7],[\\\"change\\\",[30,0,[\\\"updateTempTimeOnly\\\"]]],null],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]],[41,[51,[30,0,[\\\"cancelEventConfirmedVisible\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__buttons-container\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"model\\\",\\\"meetings\\\"]],[[[41,[51,[28,[37,11],[[30,0,[\\\"model\\\",\\\"meetings\\\",\\\"length\\\"]],\\\"1\\\"],null]],[[[1,\\\" \\\"],[10,\\\"select\\\"],[14,0,\\\"event-panel__button event-panel__watch-button button button--primary button--sm-md\\\"],[15,\\\"onchange\\\",[28,[37,7],[\\\"click\\\",[30,0,[\\\"watchChatUrlWithEvent\\\"]]],null]],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"\\\\n Watch\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"model\\\",\\\"meetings\\\"]]],null]],null],null,[[[41,[30,1,[\\\"stream_url\\\"]],[[[1,\\\" \\\"],[10,\\\"option\\\"],[15,2,[29,[[30,1,[\\\"stream_url\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"name\\\"]]],[1,\\\"\\\\n -\\\\n \\\"],[41,[30,1,[\\\"duration_hours\\\"]],[[[1,[30,1,[\\\"duration_hours\\\"]]],[1,\\\":\\\"]],[]],null],[1,\\\"\\\\n \\\"],[1,[30,1,[\\\"duration_minutes\\\"]]],[1,\\\":\\\"],[1,[30,1,[\\\"duration_seconds\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[51,[30,0,[\\\"model\\\",\\\"kalturaRecordings\\\"]]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__button event-panel__watch-button button button--primary button--sm-md\\\"],[16,\\\"aria-label\\\",[29,[\\\"Watch live class titled: \\\",[30,0,[\\\"model\\\",\\\"meetings\\\",\\\"0\\\",\\\"name\\\"]]]]],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"watchChatUrl\\\"]],[30,0,[\\\"model\\\",\\\"meetings\\\",\\\"0\\\",\\\"stream_url\\\"]]],null]],null],[12],[1,\\\"Watch\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]],null],[41,[30,0,[\\\"showRsvp\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__rsvp-button-group\\\"],[14,\\\"role\\\",\\\"group\\\"],[14,\\\"aria-label\\\",\\\"RSVP for live class\\\"],[12],[1,\\\"\\\\n Will you attend?\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"event-panel__button event-panel__rsvp-button button button--sm-md\\\\n \\\",[52,[30,0,[\\\"rsvpIsYes\\\"]],\\\"button--black\\\",\\\"button--black-ghost\\\"]]]],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"rsvpIsYes\\\"]],\\\"Will attend selected\\\",\\\"Switch selection to will attend\\\"]]]],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"toggleRsvp\\\"]],true],null]],null],[12],[1,\\\"Yes\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"event-panel__button event-panel__rsvp-button button button--sm-md\\\\n \\\",[52,[30,0,[\\\"rsvpIsNo\\\"]],\\\"button--black\\\",\\\"button--black-ghost\\\"]]]],[16,\\\"aria-label\\\",[29,[[52,[30,0,[\\\"rsvpIsNo\\\"]],\\\"Will not attend selected\\\",\\\"Switch selection to will not attend\\\"]]]],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"toggleRsvp\\\"]],false],null]],null],[12],[1,\\\"No\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canStartAsHost\\\"]],[[[41,[30,0,[\\\"hostButtonDisabled\\\"]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"event-panel__button event-panel__host-option-button button button--primary-ghost button--sm-md disabled\\\"],[14,\\\"disabled\\\",\\\"\\\"],[12],[1,\\\"Start Live Class as Host\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isCurrentMeeting\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"event-panel__button event-panel__host-option-button button button--primary-ghost button--sm-md\\\\n \\\",[52,[30,0,[\\\"editingEvent\\\"]],\\\"disabled\\\",\\\"active\\\"]]]],[16,\\\"disabled\\\",[30,0,[\\\"editingEvent\\\"]]],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"rejoinChatAsHost\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"Join the meeting\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"event-panel__button event-panel__host-option-button button button--primary-ghost button--sm-md\\\\n \\\",[52,[30,0,[\\\"editingEvent\\\"]],\\\"disabled\\\",\\\"active\\\"]]]],[16,\\\"disabled\\\",[30,0,[\\\"editingEvent\\\"]]],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"startChat\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"Start Live Class as Host\\\"],[13],[1,\\\"\\\\n \\\"]],[]]]],[]]]],[]],[[[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"runnable\\\"]],[[[41,[28,[37,11],[[30,0,[\\\"session\\\",\\\"runningChatMeetingKey\\\"]],[30,0,[\\\"model\\\",\\\"meeting_key\\\"]]],null],[[[41,[30,0,[\\\"session\\\",\\\"runningChatMeetingKey\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"live-class-notice\\\"],[14,\\\"role\\\",\\\"status\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-signal-stream\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n This live class is happening now!\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__host-option-button button button--blue-ghost-600 button--lg active\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"joinChat\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"Join the meeting\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[41,[30,0,[\\\"canStartChat\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__host-option-button button button--primary-ghost button--sm-md button button--blue-ghost-600 button--sm-md\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"startChat\\\"]],[30,0,[\\\"model\\\"]],[30,0,[\\\"id\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"Start Live Class as Host\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__host-option-button event-panel__cancel-chat-button button button--black-ghost button--sm-md active\\\"],[16,\\\"disabled\\\",[30,0,[\\\"editingEvent\\\"]]],[4,[38,7],[\\\"click\\\",[30,0,[\\\"cancelEvent\\\"]]],null],[12],[1,\\\"Cancel Live Class\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__event-wait-text\\\"],[12],[1,\\\"Waiting for live class to start.\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]]],[]],[[[41,[30,0,[\\\"canStartChat\\\"]],[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"event-panel__host-option-button button button--primary-ghost button--sm-md button button--blue-ghost-600 button--sm-md disabled\\\"],[14,\\\"disabled\\\",\\\"\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[12],[13],[1,\\\"Start Live Class as Host\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__host-option-button event-panel__cancel-chat-button button button--black-ghost button--sm-md active\\\"],[16,\\\"disabled\\\",[30,0,[\\\"editingEvent\\\"]]],[4,[38,7],[\\\"click\\\",[30,0,[\\\"cancelEvent\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-up-right-from-square\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Cancel Live Class\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]],[41,[30,0,[\\\"canCancelEvent\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__host-option-button event-panel__cancel-chat-button button button--black-ghost button--sm-md active\\\"],[16,\\\"disabled\\\",[30,0,[\\\"editingEvent\\\"]]],[4,[38,7],[\\\"click\\\",[30,0,[\\\"cancelEvent\\\"]]],null],[12],[1,\\\"Cancel Live Class\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,18],[[30,0,[\\\"isEventSaving\\\"]],[30,0,[\\\"eventsService\\\",\\\"isWorking\\\"]]],null],[[[1,\\\" \\\"],[10,0],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-spinner fa-spin event-panel__buttons-spinner\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]],[[[41,[28,[37,18],[[30,0,[\\\"isMeetingSupposedToBeHappeningRightNow\\\"]],[30,0,[\\\"backup_code\\\"]]],null],[[[41,[30,0,[\\\"model\\\",\\\"meeting_key\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__zoom-code-box\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Having trouble joining the live class? Use this Zoom meeting ID to\\\\n \\\"],[10,3],[14,\\\"target\\\",\\\"_blank\\\"],[14,6,\\\"https://support.zoom.us/hc/en-us/articles/201362193-Joining-a-Zoom-meeting#:~:text=browser%22%20link%20enabled-,How,-to%20join%20a\\\"],[12],[1,\\\"join through the Zoom client\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__zoom-code-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__copy-zoom-code-button button button--black-ghost button--sm-md\\\"],[24,\\\"aria-label\\\",\\\"Copy Live Class Meeting ID\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"copyToClipboard\\\"]],[30,0,[\\\"model\\\",\\\"meeting_key\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-copy event-panel__copy-zoom-code-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"copy-zoom-code\\\"],[14,\\\"onClick\\\",\\\"this.select();\\\"],[14,\\\"readonly\\\",\\\"\\\"],[15,2,[29,[[30,0,[\\\"model\\\",\\\"meeting_key\\\"]]]]],[14,\\\"aria-label\\\",\\\"Live Class Meeting ID\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showZoomInviteLink\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__zoom-code-box\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__zoom-code-blurb\\\"],[12],[1,\\\"As the instructor, you may invite guests to this\\\\n Zoom meeting with this link:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__zoom-code-container\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-panel__copy-zoom-code-button button button--black-ghost button--sm-md\\\"],[24,\\\"aria-label\\\",\\\"Copy Live Class Meeting ID\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"copyToClipboard\\\"]],\\\"https://zoom.us/j/\\\",[30,0,[\\\"model\\\",\\\"meeting_key\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-copy event-panel__copy-zoom-code-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"copy-zoom-link\\\"],[14,\\\"onClick\\\",\\\"this.select();\\\"],[14,\\\"readonly\\\",\\\"\\\"],[15,2,[29,[\\\"https://zoom.us/j/\\\",[30,0,[\\\"model\\\",\\\"meeting_key\\\"]]]]],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,2],[15,0,[29,[\\\"event-panel__description \\\",[52,[30,0,[\\\"editingEvent\\\"]],\\\"hidden\\\"]]]],[14,\\\"aria-label\\\",\\\"Live Class Description\\\"],[12],[2,[30,0,[\\\"description\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]]],null],[[[41,[30,0,[\\\"editingEvent\\\"]],[[[41,[51,[30,0,[\\\"model\\\",\\\"privateLessonStudentId\\\"]]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__description-edit\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,20],null,[[\\\"@controller\\\",\\\"@userInput\\\",\\\"@positioningBehavior\\\",\\\"@wrapper\\\",\\\"@freezeHeight\\\"],[[30,0,[\\\"descriptionRteController\\\"]],[30,0,[\\\"bodyInput\\\"]],\\\"fixed-bottom\\\",\\\"event-panel__rte-container\\\",true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"session\\\",\\\"course\\\",\\\"isOpen\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__save-additional-options\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__notify-students\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"notify-students\\\"],[14,0,\\\"select\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],[[24,1,\\\"notify-students\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"notifyStudents\\\"]]]],null],[1,\\\"\\\\n Notify Students\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"notifyStudents\\\"]],[[[1,\\\" \\\"],[8,[39,21],[[24,0,\\\"event-panel__save-optional-note\\\"],[24,\\\"placeholder\\\",\\\"Add an optional note to the e-mail...\\\"]],[[\\\"@value\\\"],[[30,0,[\\\"optionalEmailNote\\\"]]]],null],[1,\\\"\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__confirmation-buttons\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__confirmation-button-group\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isEventSaving\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"event-panel__saving-spinner far fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--sm button--black-ghost\\\"],[16,\\\"disabled\\\",[30,0,[\\\"isEventSaving\\\"]]],[24,\\\"aria-label\\\",\\\"Cancel Editing Live Class Description\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"cancelEditEventDescription\\\"]]],null],[12],[1,\\\"Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[28,[37,18],[[30,0,[\\\"eventNotUpdated\\\"]],[30,0,[\\\"isEventSaving\\\"]]],null]],[24,0,\\\"button button--sm button--black\\\"],[24,\\\"aria-label\\\",\\\"Save Live Class\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"saveEvent\\\"]]],null],[12],[1,\\\"Save\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[41,[30,0,[\\\"model\\\",\\\"kalturaRecordings\\\"]],[[[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"model\\\",\\\"kalturaRecordings\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Live Class archive video\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[8,[39,23],null,[[\\\"@kalturaRecording\\\"],[[30,2]]],null],[1,\\\"\\\\n\\\"]],[2]],null]],[]],[[[41,[30,0,[\\\"model\\\",\\\"s3Recordings\\\"]],[[[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"model\\\",\\\"s3Recordings\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Live Class archive video\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"video\\\"],[14,\\\"width\\\",\\\"320\\\"],[14,\\\"height\\\",\\\"240\\\"],[14,\\\"controls\\\",\\\"\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"source\\\"],[15,\\\"src\\\",[29,[[30,3,[\\\"streamUrl\\\"]]]]],[14,4,\\\"video/mp4\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3]],null]],[]],null]],[]]],[41,[30,0,[\\\"showRecurringChats\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"recurring-chats-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"recurring-chats-container__text\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"This is a recurring class,\\\\n also happening at these times:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,\\\"aria-label\\\",\\\"This is a recurring class, also happening at these times:\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"otherRecurringChats\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,[30,4,[\\\"formattedStartTime\\\"]]],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,28],[[30,0,[\\\"otherSectionChats\\\"]],[30,0,[\\\"hasOtherSectionChats\\\"]]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"other-section-chats-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"other-section-chats-container__text\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"This live class also\\\\n \\\"],[1,[52,[30,0,[\\\"model\\\",\\\"meetings\\\"]],\\\"happened\\\",\\\"happens\\\"]],[1,\\\"\\\\n in these courses:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"other-section-chats-container__list\\\"],[15,\\\"aria-label\\\",[29,[\\\"This live class also \\\",[52,[30,0,[\\\"model\\\",\\\"meetings\\\"]],\\\"happened\\\",\\\"happens\\\"],\\\" in these courses:\\\"]]],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"otherSectionChatsData\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[15,6,[29,[\\\"/#/\\\",[30,5,[\\\"course\\\"]],\\\"/event/\\\",[30,5,[\\\"id\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,[30,5,[\\\"courseTitle\\\"]]],[1,\\\"\\\\n - Section\\\\n \\\"],[1,[30,5,[\\\"sectionLabel\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[51,[30,0,[\\\"editingEvent\\\"]]],[[[1,\\\" \\\"],[10,\\\"hr\\\"],[14,0,\\\"event-panel__responses-divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"event-panel__responses-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__responses-header\\\"],[12],[1,\\\"Comments\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__replies\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"event-panel__reply-list\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Live Class Comments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"model\\\",\\\"responses\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,30],null,[[\\\"@response\\\",\\\"@event\\\",\\\"@user\\\",\\\"@section\\\",\\\"@isInstructor\\\",\\\"@isAdmin\\\",\\\"@courseId\\\",\\\"@edit\\\",\\\"@delete\\\",\\\"@editingResponseId\\\",\\\"@isSavingComment\\\"],[[30,6],[30,0,[\\\"model\\\"]],[30,0,[\\\"session\\\",\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"section\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,0,[\\\"session\\\",\\\"course\\\",\\\"id\\\"]],[30,0,[\\\"editEventResponse\\\"]],[30,0,[\\\"deleteEventResponse\\\"]],[30,0,[\\\"editingResponseId\\\"]],[30,0,[\\\"isSavingComment\\\"]]]],null],[1,\\\"\\\\n\\\"]],[6]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__no-response\\\"],[12],[1,\\\"Be the first to respond (below).\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\" \\\"],[10,2],[14,0,\\\"event-panel__line-after\\\"],[12],[2,[30,0,[\\\"model\\\",\\\"description\\\"]]],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"canEditEvent\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__cancel-options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,18],[[30,0,[\\\"hasOtherSectionChats\\\"]],[30,0,[\\\"hasRecurringChats\\\"]]],null],[[[1,\\\" \\\"],[10,2],[12],[1,\\\"Additional options\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"event-panel__cancel-additional-options\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasOtherSectionChats\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[8,[39,6],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"cancelAllSections\\\"]]]],null],[1,\\\"Also cancel\\\\n the live class in other sections, including:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"otherSectionChatsData\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[10,3],[15,6,[29,[\\\"/#/\\\",[30,7,[\\\"course\\\"]],\\\"/event/\\\",[30,7,[\\\"id\\\"]]]]],[14,\\\"target\\\",\\\"_blank\\\"],[12],[1,[30,7,[\\\"courseTitle\\\"]]],[1,\\\"\\\\n - Section\\\\n \\\"],[1,[30,7,[\\\"sectionLabel\\\"]]],[13],[13],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"hasRecurringChats\\\"]],[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[8,[39,6],null,[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"cancelRepeating\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__cancel-other-classes-message\\\"],[12],[1,\\\"Also cancel the other\\\\n live classes in the series, including:\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,15],[[28,[37,15],[[30,0,[\\\"otherRecurringChats\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,[30,8,[\\\"formattedStartTime\\\"]]],[13],[1,\\\"\\\\n\\\"]],[8]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"event-panel__cancel-notification\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[8,[39,6],[[24,0,\\\"event-panel__cancel-notification-checkbox\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[30,0,[\\\"sendCancelNotification\\\"]]]],null],[1,\\\"Notify students about cancellation with an announcement?\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,0],[24,0,\\\"event-panel__confirm-button\\\"],[4,[38,31],[[30,0,[\\\"scrollToConfirmButton\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"event-panel__cancel-warning\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-triangle-exclamation\\\"],[12],[13],[1,\\\"\\\\n This action cannot be undone!\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--black-ghost\\\"],[4,[38,7],[\\\"click\\\",[28,[37,16],[[30,0,[\\\"cancelEventConfirmed\\\"]],[30,0,[\\\"model\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Yes, Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--black\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"abortCancelEvent\\\"]]],null],[12],[1,\\\"No, Don't Cancel\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"event-panel__rte-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,32],null,[[\\\"@isEditing\\\",\\\"@replyCancel\\\"],[[30,0,[\\\"editingResponseId\\\"]],[30,0,[\\\"cancelEditResponse\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,20],[[24,0,\\\"event-panel__rte\\\"]],[[\\\"@controller\\\",\\\"@userInput\\\",\\\"@positioningBehavior\\\",\\\"@wrapper\\\",\\\"@freezeHeight\\\"],[[30,0],[30,0,[\\\"commentInput\\\"]],\\\"fixed-bottom\\\",\\\".event-panel__rte-container\\\",true]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"rte__footer-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"btn btn-black rte__post\\\"],[16,\\\"disabled\\\",[28,[37,33],[[30,0,[\\\"commentInput\\\"]]],null]],[16,\\\"aria-label\\\",[52,[30,0,[\\\"editingResponseId\\\"]],\\\"Save Edited Comment\\\",\\\"Post Live Class Comment\\\"]],[4,[38,7],[\\\"click\\\",[30,0,[\\\"postComment\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-paper-plane\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"mtg\\\",\\\"kalturaRecording\\\",\\\"s3recording\\\",\\\"otherRecurringChat\\\",\\\"otherSectionChat\\\",\\\"response\\\",\\\"otherSectionChat\\\",\\\"otherRecurringChat\\\"],[\\\"div\\\",\\\"if\\\",\\\"p\\\",\\\"unless\\\",\\\"label\\\",\\\"h2\\\",\\\"input\\\",\\\"on\\\",\\\"button\\\",\\\"i\\\",\\\"span\\\",\\\"same\\\",\\\"select\\\",\\\"option\\\",\\\"each\\\",\\\"-track-array\\\",\\\"fn\\\",\\\"h3\\\",\\\"or\\\",\\\"a\\\",\\\"rte\\\",\\\"textarea\\\",\\\"br\\\",\\\"kaltura-player\\\",\\\"video\\\",\\\"source\\\",\\\"ul\\\",\\\"li\\\",\\\"and\\\",\\\"hr\\\",\\\"event-response\\\",\\\"did-insert\\\",\\\"reply\\\",\\\"not\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/live/event.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/live/index\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n {{#if this.hasEvents}}\n \n Click on live class in the side panel to get started.\n {{else if this.isEventsLoaded}}\n \n

    There are no live classes scheduled for this class yet.

    \n {{#if this.session.isInstructor}}\n
    \n \n \n \n Schedule Live Classes\n \n \n {{#if this.session.hasZoomId}}\n \n \n Start Live Class Now\n \n \n \n Test Live Class\n \n {{/if}}\n
    \n {{/if}}\n {{/if}}\n
    \n */\n {\n \"id\": \"ygX/C4E/\",\n \"block\": \"[[[10,0],[14,0,\\\"empty-tab event-placeholder\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"hasEvents\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-square-arrow-left empty-tab__icon\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"empty-tab__text\\\"],[12],[1,\\\"Click on live class in the side panel to get started.\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"isEventsLoaded\\\"]],[[[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-video empty-tab__icon\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"empty-tab__text\\\"],[12],[1,\\\"There are no live classes scheduled for this class yet.\\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"event-placeholder__actions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,5],null,[[\\\"@route\\\"],[\\\"classroom.live.event-new\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"event-placeholder__action-button button button--primary button--md\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar-plus\\\"],[12],[13],[1,\\\"\\\\n Schedule Live Classes\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"hasZoomId\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"event-placeholder__action-button button button--black-ghost button--md\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"startLiveClassNow\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-circle-play\\\"],[12],[13],[1,\\\"\\\\n Start Live Class Now\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"event-placeholder__action-button button button--black-ghost button--md\\\"],[4,[38,8],[\\\"click\\\",[30,0,[\\\"testChat\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-flask\\\"],[12],[13],[1,\\\"\\\\n Test Live Class\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"]],[]],null]],[]]],[13]],[],[\\\"div\\\",\\\"if\\\",\\\"i\\\",\\\"span\\\",\\\"p\\\",\\\"link-to\\\",\\\"a\\\",\\\"button\\\",\\\"on\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/live/index.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/loading\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"AvAbzhHR\",\n \"block\": \"[[[8,[39,0],null,null,null]],[],[\\\"loading-mask\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/loading.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/quiz\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{outlet}}\n */\n {\n \"id\": \"+mpy3sy6\",\n \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],[\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/quiz.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/roster\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{outlet}}\n */\n {\n \"id\": \"2n0uAyuF\",\n \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],[\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/roster.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/roster/index\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n Click on a user to view their profile.\n \n
    \n */\n {\n \"id\": \"nsaiZEsf\",\n \"block\": \"[[[10,0],[14,0,\\\"empty-tab\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-square-arrow-left empty-tab__icon\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"empty-tab__text\\\"],[12],[1,\\\"\\\\n Click on a user to view their profile.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"i\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/roster/index.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/submission\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#unless this.rubric_criteria}}\n \n {{else}}\n
    \n \n \n

    \n {{{this.openAssignment.title}}}\n

    \n \n Due\n {{this.openAssignment.formattedDate}}\n \n

    \n {{#if @openAssignmentView.grade}}\n Grade:\n {{@openAssignmentView.grade}}.\n {{#if @openAssignmentView.daysLate}}Late: {{@openAssignmentView.daysLate}} days.{{/if}}\n {{else}}\n Assignment not yet graded.\n {{/if}}\n

    \n \n
    \n \n \n
    \n {{#if this.openAssignmentView.user}}\n
    \n Hide Instructions\n \n {{#if this.showcaseOpen}}\n {{#if this.session.isInstructor}}\n \n {{/if}}\n {{/if}}\n \n {{#if this.submissionNavigation.loading}}\n
    \n \n Loading Submission...\n
    \n {{/if}}\n
    \n
    \n \n \n \n {{this.openAssignmentView.user.short_name}}\n \n \n Submitted\n {{longdate this.openAssignmentView.date}}{{#if this.openAssignmentView.late}},\n {{this.openAssignmentView.daysLate}}\n late{{/if}}\n \n
    \n {{#if this.openAssignmentView.grade}}\n {{#if this.session.isInstructor}}\n
    \n {{#unless\n (same this.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n {{#if\n (and\n this.openAssignmentView.grade_matches_current_submission\n this.openAssignmentView.score\n )\n }}\n {{#if (not this.isWorking)}}\n \n {{/if}}\n {{/if}}\n \n {{#unless (same this.openAssignmentView.user.profile.can_showcase \"no\")}}\n \n {{if this.showcaseOpen \"Cancel Showcase\" \"Showcase\"}}\n
    \n {{else}}\n
    \n Can't Showcase\n
    \n {{/unless}}\n {{/unless}}\n
    \n {{else}}\n
    \n {{#if this.openAssignmentView.grade_matches_current_submission}}\n {{#if\n (same this.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n {{#unless this.session.readOnly}}\n {{#if this.openAssignmentView.my_submission}}\n Resubmit\n {{/if}}\n {{/unless}}\n {{else}}\n {{#if (same \"0\" this.openAssignmentView.score)}}\n Submission Rejected\n {{else}}\n {{#if (not this.isWorking)}}\n \n {{/if}}\n {{#if this.canResubmit}}\n Resubmit\n {{/if}}\n {{/if}}\n {{/if}}\n {{else if\n (same this.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n \n \n \n \n
    \n
    Resubmit Assignment
    \n
    You must submit a new\n attempt in order to receive a grade
    \n
    \n
    \n Resubmit\n {{else}}\n {{#if (same \"0\" this.openAssignmentView.score)}}\n No Credit\n {{else}}\n
    \n
    \n
    Current Grade:\n {{this.openAssignmentView.percentage}}%
    \n
    \n Pending Re-grade\n
    \n
    \n
    {{this.openAssignmentView.grade}}
    \n
    \n {{/if}}\n {{/if}}\n \n {{/if}}\n {{else}}\n {{#if this.openAssignmentView.my_submission}}\n {{#if\n (same this.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")\n }}\n
    \n \n \n \n \n
    \n
    Resubmit Assignment
    \n
    You must submit a new attempt in\n order to receive a grade
    \n
    \n
    \n Resubmit\n \n {{/if}}\n {{/if}}\n {{/if}}\n \n
    \n {{#if this.session.isAdmin}}\n
    \n {{/if}}\n {{{this.openAssignmentView.body}}}\n \n {{#if this.openAssignmentView.attachments}}\n
      \n
    • \n Attachments\n
    • \n {{#each this.openAssignmentView.attachment_objects as |attachment|}}\n
    • \n
      \n \n
      \n
    • \n {{/each}}\n
    \n {{/if}}\n
    \n This assignment was submitted after the timer ran out.
    \n \n {{#if this.submissionHistory}}\n
    \n
    \n Older Versions:
    \n
      \n {{#each this.submissionHistory as |version|}}\n \n
    • \n {{#if this.session.isAdmin}}\n \n {{/if}}\n
    • \n {{/each}}\n
    \n
    \n {{/if}}\n {{/if}}\n \n \n
    \n {{#if this.openAssignmentView.user}}\n {{#if this.comments}}\n \n
    \n Hide Comments\n \n
    \n
    \n Show Comments\n \n
    \n \n
      \n {{#each this.commentTimeline as |comment|}}\n \n {{/each}}\n
    \n {{/if}}\n {{#if (and this.session.isInstructor this.rubricService.isGrading)}}\n \n
    \n \n
    \n \n {{/if}}\n \n {{#unless\n (or this.session.readOnly (and this.session.isInstructor this.rubricService.isGrading))\n }}\n
    \n {{#if (same this.openAssignmentView.teacher_requires_resubmission \"needs_resubmit\")}}\n {{#unless this.session.readOnly}}\n {{#if this.openAssignmentView.my_submission}}\n Resubmit Assignment\n

    Or Comment on it Below:

    \n {{/if}}\n {{/unless}}\n {{/if}}\n \n
    \n {{/unless}}\n \n {{#if (and this.session.isInstructor (not this.rubricService.isGrading))}}\n
    \n {{#if\n (and\n (notnull this.openAssignmentView.score)\n this.openAssignmentView.grade_matches_current_submission\n )\n }}\n \n {{else}}\n \n {{/if}}\n
    \n {{/if}}\n {{/if}}\n
    \n \n {{#if this.isWorking}}\n
    \n {{/if}}\n {{/unless}}\n */\n {\n \"id\": \"3ZaTL2+U\",\n \"block\": \"[[[41,[51,[30,0,[\\\"rubric_criteria\\\"]]],[[[1,\\\" \\\"],[8,[39,1],null,[[\\\"@assignments\\\",\\\"@canResubmit\\\",\\\"@attachment\\\",\\\"@goToAssignment\\\",\\\"@openAssignment\\\",\\\"@closeModals\\\",\\\"@prev_submission\\\",\\\"@viewAssignmentSubmission\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@next_submission\\\",\\\"@showcaseOpen\\\",\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\",\\\"@assignmentSubmission\\\",\\\"@submissionHistory\\\",\\\"@commentTimeline\\\",\\\"@comment\\\",\\\"@scrollToAssignment\\\",\\\"@repostSubmissionComment\\\",\\\"@deleteAssignmentComment\\\",\\\"@deleteSubmissionCommentAttachment\\\",\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateLocalDocs\\\",\\\"@attachmentsToContainer\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideosToContainer\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\",\\\"@openAssignmentView\\\",\\\"@switchSubmissionGrade\\\",\\\"@stageGrade\\\",\\\"@stagedScore\\\",\\\"@grades\\\",\\\"@closeModals\\\",\\\"@isWorking\\\",\\\"@toggleShowcase\\\",\\\"@deleteHistoricSubmission\\\"],[[30,0,[\\\"assignments\\\"]],[30,0,[\\\"canResubmit\\\"]],[30,0,[\\\"attachment\\\"]],[30,0,[\\\"goToAssignment\\\"]],[30,0,[\\\"openAssignment\\\"]],[30,0,[\\\"closeModals\\\"]],[30,0,[\\\"prev_submission\\\"]],[30,0,[\\\"viewAssignmentSubmission\\\"]],[30,0,[\\\"setAssignmentSubmissionsHiddenStatus\\\"]],[30,0,[\\\"next_submission\\\"]],[30,0,[\\\"showcaseOpen\\\"]],[30,0,[\\\"showcaseTitle\\\"]],[30,0,[\\\"showcaseComment\\\"]],[30,0,[\\\"readyToShowcase\\\"]],[30,0,[\\\"changeShowcaseWeek\\\"]],[30,0,[\\\"postShowcase\\\"]],[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"submissionHistory\\\"]],[30,0,[\\\"commentTimeline\\\"]],[30,0,[\\\"comment\\\"]],[30,0,[\\\"scrollToAssignment\\\"]],[30,0,[\\\"repostSubmissionComment\\\"]],[30,0,[\\\"deleteAssignmentComment\\\"]],[30,0,[\\\"deleteSubmissionCommentAttachment\\\"]],[30,0,[\\\"files\\\"]],[30,0,[\\\"store\\\"]],[30,0],[30,0,[\\\"noRec\\\"]],[30,0,[\\\"inEditor\\\"]],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]],[30,0,[\\\"requirementsMet\\\"]],[30,0,[\\\"addFile\\\"]],[30,0,[\\\"postSubmissionComment\\\"]],[30,0,[\\\"attachmentsUploading\\\"]],[30,0,[\\\"openAttachmentDrawer\\\"]],[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"switchSubmissionGrade\\\"]],[30,0,[\\\"stageGrade\\\"]],[30,0,[\\\"stagedScore\\\"]],[30,0,[\\\"grades\\\"]],[30,0,[\\\"closeModals\\\"]],[30,0,[\\\"isWorking\\\"]],[30,0,[\\\"toggleShowcase\\\"]],[30,1]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"assignment-v1 active \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[14,1,\\\"assignment\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,\\\"aria-label\\\",[29,[\\\"Assignment Submission Contents - \\\",[30,2,[\\\"title\\\"]]]]],[15,0,[29,[\\\"submission-container scrollbar\\\\n \\\",[52,[51,[30,3,[\\\"user\\\"]]],\\\"no-submissions\\\"],\\\"\\\\n \\\",[52,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],\\\"submission-body-instructor\\\"]]]],[14,\\\"tabindex\\\",\\\"0\\\"],[14,1,\\\"submission-container\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,4],null,[[\\\"@assignment\\\",\\\"@onClick\\\",\\\"@viewSubmission\\\"],[[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"toggleStudentList\\\"]],[30,0,[\\\"viewAssignmentSubmission\\\"]]]],null],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-title\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,0,[\\\"openAssignment\\\",\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"submission-due-date\\\"],[15,\\\"aria-label\\\",[29,[\\\"Assignment due date: \\\",[30,0,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]]]],[12],[1,\\\"\\\\n Due\\\\n \\\"],[1,[30,0,[\\\"openAssignment\\\",\\\"formattedDate\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"sr-only\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,3,[\\\"grade\\\"]],[[[1,\\\" Grade:\\\\n \\\"],[1,[30,3,[\\\"grade\\\"]]],[1,\\\".\\\\n \\\"],[41,[30,3,[\\\"daysLate\\\"]],[[[1,\\\"Late: \\\"],[1,[30,3,[\\\"daysLate\\\"]]],[1,\\\" days.\\\"]],[]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" Assignment not yet graded.\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"drawer-instructions\\\"],[14,3,\\\"assignment-instructions-handle\\\"],[14,1,\\\"assignment-instructions-handle\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-instructions\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Submission Instructions\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,9],null,[[\\\"@content\\\"],[[30,0,[\\\"openAssignment\\\",\\\"description\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,10],null,[[\\\"@criteria\\\"],[[30,0,[\\\"rubric_criteria\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openAssignmentView\\\",\\\"user\\\"]],[[[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"assignment-instructions-handle\\\"],[14,\\\"for\\\",\\\"assignment-instructions-handle\\\"],[12],[10,0],[14,0,\\\"view-instructions button-link\\\"],[12],[1,\\\"\\\\n Show Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[10,0],[14,0,\\\"hide-instructions button-link\\\"],[12],[1,\\\"\\\\n Hide Instructions\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showcaseOpen\\\"]],[[[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[8,[39,13],null,[[\\\"@showcaseTitle\\\",\\\"@showcaseComment\\\",\\\"@readyToShowcase\\\",\\\"@changeShowcaseWeek\\\",\\\"@postShowcase\\\"],[[30,0,[\\\"showcaseTitle\\\"]],[30,0,[\\\"showcaseComment\\\"]],[30,0,[\\\"readyToShowcase\\\"]],[30,0,[\\\"changeShowcaseWeek\\\"]],[28,[37,14],[[30,0,[\\\"postShowcase\\\"]],[30,0,[\\\"response\\\",\\\"id\\\"]],[30,0,[\\\"response\\\",\\\"showcase\\\",\\\"id\\\"]],[30,0,[\\\"response\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]]],null]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[10,0],[14,\\\"data-test-selector\\\",\\\"submission-body\\\"],[15,0,[29,[\\\"submission-body\\\\n \\\",[52,[30,0,[\\\"submissionNavigation\\\",\\\"loading\\\"]],\\\"submission-body--loading\\\"]]]],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Submission Body\\\"],[15,1,[29,[\\\"assignment-version-\\\",[30,0,[\\\"openAssignmentView\\\",\\\"id\\\"]],\\\"-\\\",[30,0,[\\\"openAssignmentView\\\",\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"submissionNavigation\\\",\\\"loading\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-body__loading-indicator\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-spinner fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Loading Submission...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"submission-details\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-author-details\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,15],null,[[\\\"@tagName\\\",\\\"@user\\\"],[\\\"button\\\",[30,0,[\\\"openAssignmentView\\\",\\\"user\\\"]]]],null],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"author-name author-submission\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"userprofileService\\\",\\\"toggleUserProfile\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"user-name-info\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"short_name\\\"]]],[1,\\\"\\\\n \\\"],[8,[39,18],null,[[\\\"@user\\\",\\\"@isInstructor\\\"],[[30,0,[\\\"openAssignmentView\\\",\\\"user\\\"]],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[15,0,[29,[\\\"discussion-reply-time \\\",[52,[30,0,[\\\"openAssignmentView\\\",\\\"late\\\"]],\\\"assn-late\\\"]]]],[12],[10,1],[14,0,\\\"submitted-confirm\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-circle-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"Submitted\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,19],[[30,0,[\\\"openAssignmentView\\\",\\\"date\\\"]]],null]],[41,[30,0,[\\\"openAssignmentView\\\",\\\"late\\\"]],[[[1,\\\",\\\\n \\\"],[1,[30,0,[\\\"openAssignmentView\\\",\\\"daysLate\\\"]]],[1,\\\"\\\\n late\\\"]],[]],null],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openAssignmentView\\\",\\\"grade\\\"]],[[[41,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,20],[[30,0,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null]],[[[41,[28,[37,21],[[30,0,[\\\"openAssignmentView\\\",\\\"grade_matches_current_submission\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[[[41,[28,[37,22],[[30,0,[\\\"isWorking\\\"]]],null],[[[1,\\\" \\\"],[8,[39,23],null,[[\\\"@submission\\\",\\\"@submission_id\\\",\\\"@criteria\\\"],[[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"db_id\\\"]],[30,0,[\\\"rubric_criteria\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,20],[[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"profile\\\",\\\"can_showcase\\\"]],\\\"no\\\"],null]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"toggleShowcase\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"showcaseOpen\\\"]],\\\"Cancel Showcase\\\",\\\"Showcase\\\"]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-button no-showcase\\\"],[12],[1,\\\"\\\\n Can't Showcase\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openAssignmentView\\\",\\\"grade_matches_current_submission\\\"]],[[[41,[28,[37,20],[[30,0,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[41,[30,0,[\\\"openAssignmentView\\\",\\\"my_submission\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],[[[41,[28,[37,20],[\\\"0\\\",[30,0,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[[[1,\\\" Submission Rejected\\\\n\\\"]],[]],[[[41,[28,[37,22],[[30,0,[\\\"isWorking\\\"]]],null],[[[1,\\\" \\\"],[8,[39,23],null,[[\\\"@submission\\\",\\\"@submission_id\\\",\\\"@criteria\\\"],[[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"db_id\\\"]],[30,0,[\\\"rubric_criteria\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"canResubmit\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[]]]],[]],[[[41,[28,[37,20],[[30,0,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-copy-subheader\\\"],[12],[1,\\\"You must submit a new\\\\n attempt in order to receive a grade\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[28,[37,20],[\\\"0\\\",[30,0,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[[[1,\\\" No Credit\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"pending-regrade-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pending-regrade-current-grade\\\"],[12],[1,\\\"Current Grade:\\\\n \\\"],[1,[30,0,[\\\"openAssignmentView\\\",\\\"percentage\\\"]]],[1,\\\"%\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"regrade-assignment pending-regrade-copy\\\"],[12],[1,\\\"\\\\n Pending Re-grade\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pending-regrade-grade\\\"],[12],[1,[30,0,[\\\"openAssignmentView\\\",\\\"grade\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[41,[30,0,[\\\"openAssignmentView\\\",\\\"my_submission\\\"]],[[[41,[28,[37,20],[[30,0,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"submission-grade submission-grade-resubmission\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment\\\"],[14,\\\"aria-label\\\",\\\"Resubmission of Assignment Required\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"fa-stack fa-lg\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-copy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"resubmit-assignment-subheader\\\"],[12],[1,\\\"You must submit a new attempt in\\\\n order to receive a grade\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"submission-body-body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"submission-body-delete far fa-trash\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"deleteSubmissionBody\\\"]]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[2,[30,0,[\\\"openAssignmentView\\\",\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openAssignmentView\\\",\\\"attachments\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"assignment-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"openAssignmentView\\\",\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,28],null,[[\\\"@showDelete\\\",\\\"@attachment\\\",\\\"@deleteAttachment\\\"],[[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,4],[28,[37,14],[[30,0,[\\\"deleteSubmissionAttachment\\\"]],[30,0,[\\\"session\\\",\\\"section\\\",\\\"id\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"id\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"db_id\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"id\\\"]],[30,4,[\\\"id\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"late-assignment-marker\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n This assignment was submitted after the timer ran out.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"submissionHistory\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"assignment-history\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"role\\\",\\\"presentations\\\"],[14,0,\\\"submission-comments-header\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-history\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Older Versions:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"reply-list\\\"],[14,\\\"role\\\",\\\"region\\\"],[14,\\\"aria-label\\\",\\\"Previous Submissions\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"submissionHistory\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"input\\\"],[14,0,\\\"assignment-version-post\\\"],[15,\\\"version\\\",[29,[[30,5,[\\\"attempt\\\"]]]]],[15,1,[29,[\\\"assignment-version-\\\",[30,0,[\\\"openAssignmentView\\\",\\\"id\\\"]],\\\"-\\\",[30,5,[\\\"attempt\\\"]]]]],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"assignment-version\\\"],[15,\\\"version\\\",[29,[[30,5,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"submission-history-delete far fa-trash\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"deleteHistoricSubmission\\\"]],[30,5,[\\\"attempt\\\"]],[30,5,[\\\"attachments\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"user\\\",\\\"id\\\"]]],null]],null],[12],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"label\\\"],[14,0,\\\"assignment-version-post-label\\\"],[15,\\\"for\\\",[29,[\\\"assignment-version-\\\",[30,0,[\\\"openAssignmentView\\\",\\\"id\\\"]],\\\"-\\\",[30,5,[\\\"attempt\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-caret-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Submitted:\\\"],[13],[1,\\\"\\\\n \\\"],[1,[28,[35,19],[[30,5,[\\\"submitted_at\\\"]]],null]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"grade_matches_current_submission\\\"]],[[[41,[30,5,[\\\"grade\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Grade:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-grade\\\"],[12],[1,[30,5,[\\\"grade\\\"]]],[1,\\\"\\\\n (\\\"],[1,[30,5,[\\\"percentage\\\"]]],[1,\\\"%)\\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"type\\\"],[12],[1,\\\"Not Graded\\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"resubmit-requested\\\"],[12],[1,\\\"Resubmit Requested\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-version-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-version-body\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,5,[\\\"body\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"grade_matches_current_submission\\\"]],[[[1,\\\" \\\"],[8,[39,23],null,[[\\\"@submission\\\",\\\"@submission_id\\\",\\\"@criteria\\\",\\\"@previous\\\"],[[30,5],[30,0,[\\\"openAssignmentView\\\",\\\"db_id\\\"]],[30,0,[\\\"rubric_criteria\\\"]],true]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,1],[14,0,\\\"resubmit-requested\\\"],[12],[1,\\\"Resubmit Requested\\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[30,5,[\\\"attachment_objects\\\",\\\"length\\\"]],[[[1,\\\" \\\"],[10,\\\"ul\\\"],[14,0,\\\"assignment-attachments\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"attachment-icon\\\"],[12],[1,\\\"\\\\n Attachments\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,5,[\\\"attachment_objects\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"attachment-preview-box\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,28],null,[[\\\"@attachment\\\"],[[30,6]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[6]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"button-link view-in-comments\\\"],[24,4,\\\"button\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"scrollToComment\\\"]],[30,5,[\\\"attempt\\\"]]],null]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-comment\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n View in comments\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,29],null,[[\\\"@showHeader\\\",\\\"@isInstructor\\\",\\\"@currentSubmissionAuthor\\\",\\\"@openAssignment\\\",\\\"@openAssignmentView\\\",\\\"@viewSubmission\\\",\\\"@prevSubmission\\\",\\\"@nextSubmission\\\",\\\"@setAssignmentSubmissionsHiddenStatus\\\",\\\"@onClose\\\",\\\"@closed\\\"],[true,[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,3,[\\\"user\\\",\\\"id\\\"]],[30,0,[\\\"openAssignment\\\"]],[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"viewAssignmentSubmission\\\"]],[30,0,[\\\"prev_submission\\\"]],[30,0,[\\\"next_submission\\\"]],[30,0,[\\\"setAssignmentSubmissionsHiddenStatus\\\"]],[30,0,[\\\"closeStudentList\\\"]],[28,[37,22],[[30,0,[\\\"showStudentList\\\"]]],null]]],null],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"assignment-comments\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"openAssignmentView\\\",\\\"user\\\"]],[[[41,[30,0,[\\\"comments\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"submission-comments-header button-link\\\\n \\\",[52,[30,0,[\\\"commentsHidden\\\"]],\\\"comments-hidden\\\"]]]],[24,\\\"aria-expanded\\\",\\\"false\\\"],[24,\\\"aria-controls\\\",\\\"reply-list\\\"],[4,[38,17],[\\\"click\\\",[30,0,[\\\"toggleComments\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"view-comments button-link\\\"],[12],[1,\\\"\\\\n Hide Comments\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-down\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"hide-comments button-link\\\"],[12],[1,\\\"\\\\n Show Comments\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-chevron-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"reply-list\\\"],[14,\\\"aria-label\\\",\\\"Assignment Submission Comments\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,27],[[28,[37,27],[[30,0,[\\\"commentTimeline\\\"]]],null]],null],null,[[[1,\\\" \\\"],[8,[39,30],null,[[\\\"@response\\\",\\\"@isInstructor\\\",\\\"@userId\\\",\\\"@scrollToAssignment\\\",\\\"@repostSubmissionComment\\\",\\\"@deleteAssignmentComment\\\",\\\"@deleteSubmissionCommentAttachment\\\",\\\"@isAdmin\\\",\\\"@assignmentId\\\",\\\"@sectionId\\\",\\\"@openAssignmentId\\\"],[[30,7],[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"session\\\",\\\"user\\\",\\\"id\\\"]],[30,0,[\\\"scrollToAssignment\\\"]],[30,0,[\\\"repostSubmissionComment\\\"]],[30,0,[\\\"deleteAssignmentComment\\\"]],[30,0,[\\\"deleteSubmissionCommentAttachment\\\"]],[30,0,[\\\"session\\\",\\\"isAdmin\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"db_id\\\"]],[30,0,[\\\"session\\\",\\\"section\\\",\\\"id\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"id\\\"]]]],null],[1,\\\"\\\\n\\\"]],[7]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[28,[37,21],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"rubricService\\\",\\\"isGrading\\\"]]],null],[[[1,\\\" \\\"],[8,[39,31],null,[[\\\"@requirementsMet\\\",\\\"@attachmentsUploading\\\",\\\"@setRubricAssessmentIsDirtyCallback\\\",\\\"@submission\\\",\\\"@criteria\\\",\\\"@controller\\\",\\\"@onSubmitGrade\\\",\\\"@setSubmissionComponentCleanupCallback\\\"],[[30,0,[\\\"requirementsMet\\\"]],[30,0,[\\\"attachmentsUploading\\\"]],[30,0,[\\\"setRubricAssessmentIsDirtyCallback\\\"]],[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"rubric_criteria\\\"]],[30,0],[30,0,[\\\"onSubmitGrade\\\"]],[30,0,[\\\"setSubmissionComponentCleanupCallback\\\"]]]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"grading-rubric-rte\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,32],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateArchive\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\",\\\"@hideAddComment\\\"],[[30,0,[\\\"files\\\"]],[30,0,[\\\"store\\\"]],[30,0],[30,0,[\\\"noRec\\\"]],[30,0,[\\\"inEditor\\\"]],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]],[30,0,[\\\"requirementsMet\\\"]],[30,0,[\\\"addFile\\\"]],[30,0,[\\\"postSubmissionComment\\\"]],[30,0,[\\\"attachmentsUploading\\\"]],[30,0,[\\\"openAttachmentDrawer\\\"]],true]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[51,[28,[37,33],[[30,0,[\\\"session\\\",\\\"readOnly\\\"]],[28,[37,21],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[30,0,[\\\"rubricService\\\",\\\"isGrading\\\"]]],null]],null]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"submission-comment-entry \\\",[52,[30,0,[\\\"uploadInProgress\\\"]],\\\"uploading\\\"]]]],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,20],[[30,0,[\\\"openAssignmentView\\\",\\\"teacher_requires_resubmission\\\"]],\\\"needs_resubmit\\\"],null],[[[41,[51,[30,0,[\\\"session\\\",\\\"readOnly\\\"]]],[[[41,[30,0,[\\\"openAssignmentView\\\",\\\"my_submission\\\"]],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,\\\"aria-label\\\",\\\"Resubmit Assignment\\\"],[24,0,\\\"resubmit-button button-link\\\"],[4,[38,17],[\\\"click\\\",[28,[37,14],[[30,0,[\\\"assignmentSubmission\\\"]],[30,0,[\\\"openAssignmentView\\\",\\\"assignment\\\",\\\"id\\\"]]],null]],null],[12],[1,\\\"Resubmit Assignment\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,0,\\\"submission-comment-header\\\"],[12],[1,\\\"Or Comment on it Below:\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null]],[]],null],[1,\\\" \\\"],[8,[39,32],null,[[\\\"@files\\\",\\\"@store\\\",\\\"@controller\\\",\\\"@noRec\\\",\\\"@inEditor\\\",\\\"@bodyInput\\\",\\\"@updateArchive\\\",\\\"@attachmentFiles\\\",\\\"@deleteAttachment\\\",\\\"@encodingVideos\\\",\\\"@renameAttachment\\\",\\\"@requirementsMet\\\",\\\"@addFile\\\",\\\"@postSubmissionComment\\\",\\\"@attachmentsUploading\\\",\\\"@openAttachmentDrawer\\\"],[[30,8],[30,9],[30,0],[30,0,[\\\"noRec\\\"]],[30,0,[\\\"inEditor\\\"]],[30,0,[\\\"bodyInput\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"attachmentsToContainer\\\"]],[30,0,[\\\"deleteAttachment\\\"]],[30,0,[\\\"encodingVideosToContainer\\\"]],[30,0,[\\\"renameAttachment\\\"]],[30,0,[\\\"requirementsMet\\\"]],[30,0,[\\\"addFile\\\"]],[30,0,[\\\"postSubmissionComment\\\"]],[30,0,[\\\"attachmentsUploading\\\"]],[30,0,[\\\"openAttachmentDrawer\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[30,0,[\\\"session\\\",\\\"isInstructor\\\"]],[28,[37,22],[[30,0,[\\\"rubricService\\\",\\\"isGrading\\\"]]],null]],null],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rubric-instructor-footer\\\"],[12],[1,\\\"\\\\n\\\"],[41,[28,[37,21],[[28,[37,34],[[30,0,[\\\"openAssignmentView\\\",\\\"score\\\"]]],null],[30,0,[\\\"openAssignmentView\\\",\\\"grade_matches_current_submission\\\"]]],null],[[[1,\\\" \\\"],[8,[39,35],null,[[\\\"@submission\\\",\\\"@edit\\\",\\\"@requestResubmit\\\"],[[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"rubricService\\\",\\\"toggleIsGrading\\\"]],[30,0,[\\\"requestResubmit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[8,[39,36],null,[[\\\"@submission\\\",\\\"@submissionHistory\\\",\\\"@requestResubmit\\\"],[[30,0,[\\\"openAssignmentView\\\"]],[30,0,[\\\"submissionHistory\\\"]],[30,0,[\\\"requestResubmit\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"isWorking\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"bocce-spinner\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-spinner fa-2x fa-spin\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]]]],[\\\"@deleteHistoricSubmission\\\",\\\"@openAssignment\\\",\\\"@openAssignmentView\\\",\\\"attachment\\\",\\\"version\\\",\\\"attachment\\\",\\\"comment\\\",\\\"@files\\\",\\\"@store\\\"],[\\\"unless\\\",\\\"submission-no-rubric\\\",\\\"div\\\",\\\"if\\\",\\\"submissions-list-button\\\",\\\"h2\\\",\\\"span\\\",\\\"p\\\",\\\"input\\\",\\\"legacy-boot\\\",\\\"rubric/rubric\\\",\\\"label\\\",\\\"i\\\",\\\"showcase-post\\\",\\\"fn\\\",\\\"user-portrait\\\",\\\"button\\\",\\\"on\\\",\\\"user-icons\\\",\\\"longdate\\\",\\\"same\\\",\\\"and\\\",\\\"not\\\",\\\"rubric/assessment\\\",\\\"ul\\\",\\\"li\\\",\\\"each\\\",\\\"-track-array\\\",\\\"attachment-preview\\\",\\\"quickgrader-student-list\\\",\\\"assignment/assignment-comment\\\",\\\"rubric/grading\\\",\\\"submission-footer\\\",\\\"or\\\",\\\"notnull\\\",\\\"rubric/instructor-graded\\\",\\\"rubric/ungraded\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/submission.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/survey\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n

    {{this.survey.title}}

    \n \n \n \n
    \n \n
    \n {{#if this.showTestingWarning}}\n
    \n

    This is a live survey for a real student

    \n

    Since you are in a test environment, please close the survey below unless you are\n absolutely positive you wish to take this real survey.

    \n
    \n
    \n \n \n
    \n {{else}}\n {{#if this.survey.isNudge}}\n
    \n

    Your input matters!

    \n

    We noticed that you have not yet completed the survey for this course. Please take a\n moment to share your thoughts so that we can improve this course for future students.\n
    If now is not a good time, close this window and we will remind you the next time\n you visit this course. You may access the survey anytime from the banner at the top of\n the course.\n
    You have until two weeks after the end of this academic term to complete the\n survey.

    \n
    \n {{else if this.survey.isLocked}}\n
    \n

    Your input matters!

    \n

    We noticed that you have not yet completed the survey for this course. Please take a\n moment to share your thoughts so that we can improve this course for future students.\n
    Please note that you will not be able to access the course until you complete this\n survey.

    \n
    \n {{/if}}\n \n {{#if this.survey.frameUrl}}\n \n {{else}}\n
    \n \n Loading survey...\n
    \n {{/if}}\n {{/if}}\n
    \n
    \n */\n {\n \"id\": \"QreN8WOE\",\n \"block\": \"[[[10,0],[14,0,\\\"survey\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"survey__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,1,\\\"survey-title\\\"],[14,0,\\\"survey__title\\\"],[14,\\\"tabindex\\\",\\\"-1\\\"],[12],[1,[30,0,[\\\"survey\\\",\\\"title\\\"]]],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"survey__close\\\"],[16,\\\"aria-label\\\",[52,[30,0,[\\\"survey\\\",\\\"isLocked\\\"]],\\\"Attempt to close survey\\\",\\\"Close survey\\\"]],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[52,[30,0,[\\\"survey\\\",\\\"isLocked\\\"]],[30,0,[\\\"attemptCloseSurvey\\\"]],[30,0,[\\\"closeSurvey\\\"]]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"survey__body\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"showTestingWarning\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"survey__message survey__message--warning\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"This is a live survey for a real student\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Since you are in a test environment, please close the survey below unless you are\\\\n absolutely positive you wish to take this real survey.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"survey__dev-actions\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--maroon-ghost\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"closeSurvey\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Close Survey\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"button button--maroon\\\"],[24,4,\\\"button\\\"],[4,[38,4],[\\\"click\\\",[30,0,[\\\"devTakeSurvey\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-check\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Yes, I'm sure I want to take this survey\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"survey\\\",\\\"isNudge\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"survey__message\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Your input matters!\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"We noticed that you have not yet completed the survey for this course. Please take a\\\\n moment to share your thoughts so that we can improve this course for future students.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"If now is not a good time, close this window and we will remind you the next time\\\\n you visit this course. You may access the survey anytime from the banner at the top of\\\\n the course.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"You have until two weeks after the end of this academic term to complete the\\\\n survey.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[41,[30,0,[\\\"survey\\\",\\\"isLocked\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"survey__message\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,\\\"Your input matters!\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"We noticed that you have not yet completed the survey for this course. Please take a\\\\n moment to share your thoughts so that we can improve this course for future students.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[1,\\\"Please note that you will not be able to access the course until you complete this\\\\n survey.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]],null]],[]]],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"survey\\\",\\\"frameUrl\\\"]],[[[1,\\\" \\\"],[10,\\\"iframe\\\"],[14,0,\\\"survey__frame\\\"],[15,\\\"src\\\",[29,[[30,0,[\\\"survey\\\",\\\"frameUrl\\\"]]]]],[14,3,\\\"survey_frame\\\"],[14,1,\\\"survey_frame\\\"],[14,\\\"title\\\",\\\"Course Survey\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"survey__loading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"fa-regular fa-spinner fa-pulse\\\"],[12],[13],[1,\\\"\\\\n Loading survey...\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"h1\\\",\\\"button\\\",\\\"if\\\",\\\"on\\\",\\\"i\\\",\\\"h2\\\",\\\"p\\\",\\\"br\\\",\\\"iframe\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/survey.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{outlet}}\n */\n {\n \"id\": \"CYPwv0em\",\n \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],[\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/discussion\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"3GLyegQD\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"discussion-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/discussion.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/index\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n \n Click on an assignment, discussion, or quiz in the side panel to get started.\n \n
    \n */\n {\n \"id\": \"ig8fR3ZJ\",\n \"block\": \"[[[10,0],[14,0,\\\"empty-tab\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-square-arrow-left empty-tab__icon\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"empty-tab__text\\\"],[12],[1,\\\"\\\\n Click on an assignment, discussion, or quiz in the side panel to get started.\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"i\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/index.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/late-grading-policy\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    Late Grading Policy
    \n
    \n \n {{! Note, the html content is 'minified' because the white-space is preserved via\n 'white-space:pre-wrap', which shows all white space inside the element. This is used in this case to preserve the white space\n the professor has in their late grading policy description; new lines for example. }}\n {{this.session.lateGradingPolicyWithDefault}}\n
    \n \n */\n {\n \"id\": \"Zd87G/qd\",\n \"block\": \"[[[10,0],[14,0,\\\"late-grading-policy\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"late-grading-policy__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"late-grading-policy__title\\\"],[14,1,\\\"late-grading-policy\\\"],[12],[1,\\\"Late Grading Policy\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,\\\"tabindex\\\",\\\"0\\\"],[14,0,\\\"late-grading-policy__content\\\"],[12],[1,[30,0,[\\\"session\\\",\\\"lateGradingPolicyWithDefault\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/late-grading-policy.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/no-submissions\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"0VcGE3nX\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"no-submissions-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/no-submissions.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/quiz\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{outlet}}\n */\n {\n \"id\": \"oIeMAMrH\",\n \"block\": \"[[[46,[28,[37,1],null,null],null,null,null]],[],[\\\"component\\\",\\\"-outlet\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/quiz.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/submission-new\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"TgNXpbVX\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"submission-new-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/submission-new.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/classroom/work/submission\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"zAQ/rnOg\",\n \"block\": \"[[[8,[39,0],null,[[\\\"@controller\\\"],[[30,0]]],null]],[],[\\\"submission-view\\\"]]\",\n \"moduleName\": \"bocce/templates/classroom/work/submission.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/dashboard-loading\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n \n \"Brand\n \n
    \n

    Dashboard

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n

    Courses

    \n
    \n
    \n
      \n
    • \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
    • \n
    • \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
    • \n
    • \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
    • \n
    \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"pnofznXG\",\n \"block\": \"[[[10,0],[14,0,\\\"dashboard\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__info-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"header__button logo-btn\\\"],[14,\\\"aria-label\\\",\\\"Navigate to dashboard\\\"],[14,6,\\\"/#/dashboard\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/css/style-assets/Berklee_Logo_Square.png\\\"],[14,\\\"alt\\\",\\\"Brand Avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__text\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,0,\\\"header__title\\\"],[12],[1,\\\"Dashboard\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[14,0,\\\"dashboard__sidenav\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sidenav__item loading__sidenav-item\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sidenav__item loading__sidenav-item\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sidenav__item loading__sidenav-item\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"sidenav__divider\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"main\\\"],[14,0,\\\"courses\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__term__list\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__term__list-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__term__list-heading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[1,\\\"Courses\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"courselist\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"courselist__item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__header-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__title-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-course-name\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-goto-btn\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-course-meta\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-chip\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-instructor-name\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"courselist__item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__header-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__title-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-course-name\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-goto-btn\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-course-meta\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-chip\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-instructor-name\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[14,0,\\\"courselist__item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__card-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__header-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__title-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-course-name\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-goto-btn\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-course-meta\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"course__instructor-chip\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__dashboard-instructor-name\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"side__widgets\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"header\\\",\\\"a\\\",\\\"img\\\",\\\"h1\\\",\\\"nav\\\",\\\"span\\\",\\\"hr\\\",\\\"main\\\",\\\"ul\\\",\\\"li\\\"]]\",\n \"moduleName\": \"bocce/templates/dashboard-loading.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/dashboard\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n
    \n
    \n
    \n
    \n \n \"Brand\n \n \n \n Toggle Side Menu\n \n
    \n

    Dashboard

    \n
    \n
    \n
    \n \n \n \n
    \n {{#unless this.hideUserMenu}}\n \n {{/unless}}\n
    \n
    \n \n
    \n \n {{#if (not this.isDYS)}}\n \n {{/if}}\n \n
    \n \n \n \n My Home\n \n \n \n \n Technical Help\n \n \n \n \n Contact Advisor\n \n \n \n \n Library Resources\n \n \n \n \n Academic Policies\n \n \n \n
    \n \n \n Export My Calendar\n \n \n \n Settings & Profile\n \n
    \n
    \n \n
    \n \n
    \n \n \n
    \n \n \n \n {{if this.showSideWidgets \"Hide\" \"Show\"}}\n Widgets\n \n
    \n {{#if this.currentTermLoginData}}\n \n {{/if}}\n {{#if this.experimentalFeaturesEnabled}}\n {{! Experimental Widgets go here }}\n \n {{/if}}\n
    {{! end side-widgets-content }}\n \n {{#if this.prefsPanelOpen}}\n \n {{/if}}\n
    \n {{#if this.displayIntroPopup}}\n
    \n \n

    Welcome to Dashboard 2.0\n Beta!

    \n \n

    Berklee Online is thrilled to unveil the next phase of our Dashboard Beta, tailored\n with your input in mind.

    \n \n

    Choose Your Experience

    \n

    You now have access to the updated dashboard with features like customizable widgets\n and a new inbox management experience. If you would like to enable additional\n experimental features (including grade calculations and live class schedules), you may\n choose to do so below.

    \n \n
    \n

    Enable experimental features

    \n \n
    \n \n

    Please note:\n Data shown in experimental features may not be fully accurate. If you choose to\n enable these features, please continue referring to your course data in BOCCE for\n important information about grades and class schedules.

    \n
    \n

    Your Insights Matter

    \n

    Share your thoughts via:

    \n
      \n
    • Feedback survey, which will pop up automatically or can be accessed anytime by\n clicking the\n \"feedback\n icon in the bottom-right corner of the Dashboard.
    • \n
    • Emailing bugs or feature requests to support@online.berklee.edu
    • \n
    \n \n Let's Go!\n \n \n {{/if}}\n {{#if this.displayStatsPopup}}\n
    \n \n

    What are classmate stats?

    \n \n

    Classmate stats display the average performance of your classmates both in this and\n prior sections of the course.\n

    A stat like \"Conversations started\" shows the number of new conversations\n historically started by this point in the course (ex: 3 weeks in).\n

    These stats are meant to give you a sense of how you're doing in relation\n to your peers, and to help you gauge your progress.\n

    The goal is to try and outperform your peers, but remember, the most\n important thing is to learn and grow as a musician!\n

    As such, if you find these stats to be unhelpful or distracting, you can\n hide them by clicking the \"Hide Classmate Stats\" button.\n

    You can always turn them back on by clicking the \"Show Classmate Stats\"\n button.\n

    \n
    \n Got it!\n
    \n \n {{/if}}\n
    \n \n */\n {\n \"id\": \"6wXgo7O0\",\n \"block\": \"[[[8,[39,0],null,null,null],[1,\\\"\\\\n\\\"],[10,0],[14,1,\\\"modal-container\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"dashboard\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__info-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"header__button logo-btn\\\"],[14,\\\"aria-label\\\",\\\"Navigate to dashboard\\\"],[14,6,\\\"/#/dashboard\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/css/style-assets/Berklee_Logo_Square.png\\\"],[14,\\\"alt\\\",\\\"Brand Avatar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"header__hamburger \\\",[52,[30,0,[\\\"showSideMenu\\\"]],\\\"active\\\"]]]],[4,[38,7],[\\\"click\\\",[30,0,[\\\"toggleSideMenu\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-bars\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"sr-only\\\"],[12],[1,\\\"Toggle Side Menu\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__text\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,0,\\\"header__title\\\"],[12],[1,\\\"Dashboard\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__right\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"header__button user-avatar\\\"],[24,\\\"aria-label\\\",\\\"User menu\\\"],[24,\\\"aria-haspopup\\\",\\\"menu\\\"],[16,\\\"aria-expanded\\\",[29,[[28,[37,11],[[30,0,[\\\"hideUserMenu\\\"]]],null]]]],[24,4,\\\"button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"toggleUserMenu\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"avatar-img\\\"],[15,\\\"src\\\",[29,[[52,[30,0,[\\\"session\\\",\\\"user\\\",\\\"image_url\\\"]],[30,0,[\\\"session\\\",\\\"user\\\",\\\"image_url\\\"]],\\\"/images/avatar.png\\\"]]]],[15,\\\"alt\\\",[29,[[52,[30,0,[\\\"session\\\",\\\"user\\\",\\\"short_name\\\"]],[30,0,[\\\"session\\\",\\\"user\\\",\\\"short_name\\\"]],\\\"User\\\"],\\\" avatar\\\"]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[51,[30,0,[\\\"hideUserMenu\\\"]]],[[[1,\\\" \\\"],[8,[39,13],[[4,[38,14],[[30,0,[\\\"closeUserMenu\\\"]]],[[\\\"ignore\\\"],[\\\".user-avatar\\\"]]]],[[\\\"@openPrefsPanel\\\"],[[30,0,[\\\"togglePrefsPanel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[15,0,[29,[\\\"dashboard__sidenav \\\",[52,[30,0,[\\\"showSideMenu\\\"]],\\\"show\\\"]]]],[14,\\\"aria-label\\\",\\\"Main navigation\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,0,[29,[\\\"sidenav__item \\\",[52,[28,[37,16],[[30,0,[\\\"currentTab\\\"]],\\\"courses\\\"],null],\\\"active\\\"]]]],[4,[38,7],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"tabNavigation\\\"]],\\\"courses\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-grid-2\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Courses\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,3],[16,0,[29,[\\\"sidenav__item \\\",[52,[28,[37,16],[[30,0,[\\\"currentTab\\\"]],\\\"inbox\\\"],null],\\\"active\\\"]]]],[24,6,\\\"?nav=inbox\\\"],[4,[38,7],[\\\"click\\\",[28,[37,17],[[30,0,[\\\"tabNavigation\\\"]],\\\"inbox\\\"],null]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-envelope\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Inbox\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"notification__badge \\\",[52,[30,0,[\\\"unreadInboxCount\\\"]],\\\"active\\\"]]]],[15,\\\"aria-label\\\",[29,[[30,0,[\\\"unreadInboxCount\\\"]],\\\" unread inbox \\\",[52,[28,[37,18],[[30,0,[\\\"unreadInboxCount\\\"]],1],null],\\\"messages\\\",\\\"message\\\"]]]],[15,\\\"aria-hidden\\\",[29,[[52,[51,[30,0,[\\\"unreadInboxCount\\\"]]],\\\"true\\\"]]]],[12],[1,[30,0,[\\\"unreadInboxCount\\\"]]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"sidenav__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n\\\"],[41,[28,[37,11],[[30,0,[\\\"isDYS\\\"]]],null],[[[1,\\\" \\\"],[11,\\\"button\\\"],[24,0,\\\"sidenav__item\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"launchDiscourse\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-users\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"\\\\n Forums\\\\n\\\"],[41,[30,0,[\\\"showDiscourseSpeechBubble\\\"]],[[[1,\\\" \\\"],[11,0],[24,0,\\\"discourse-speech-bubble\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"closeDiscourseSpeechBubble\\\"]]],null],[12],[1,\\\"Stay\\\\n connected with your classmates and teachers on our brand-new Berklee Online Forum!\\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link sidenav__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"sidenav__divider\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,3],[14,0,\\\"sidenav__item\\\"],[14,6,\\\"https://online.berklee.edu/my_home\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"aria-label\\\",\\\"Go to MyHome\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-home\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"My Home\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link sidenav__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"sidenav__item\\\"],[14,6,\\\"https://online.berklee.edu/help\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"aria-label\\\",\\\"Go to Help page\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-question-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Technical Help\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link sidenav__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"sidenav__item\\\"],[14,6,\\\"https://online.berklee.edu/about/contact-us\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"aria-label\\\",\\\"Go to Advisor page\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-comments\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Contact Advisor\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link sidenav__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"sidenav__item\\\"],[14,6,\\\"https://online.berklee.edu/school/lms/library-links\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"aria-label\\\",\\\"Go to Library Page\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-book\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Library Resources\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link sidenav__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"sidenav__item\\\"],[14,6,\\\"https://online.berklee.edu/about/berklee-online-general-policies\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"aria-label\\\",\\\"Go to Academic Policies page\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-graduation-cap\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Academic Policies\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-external-link sidenav__external-icon\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"sidenav__divider\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"sidenav__item\\\"],[24,\\\"aria-label\\\",\\\"Export my Calendar to CSV\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"exportCalendar\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-calendar\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Export My Calendar\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"sidenav__item\\\"],[24,\\\"aria-label\\\",\\\"Open Settings and Profile\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"togglePrefsPanel\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-cog\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Settings & Profile\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"sidenav__footer\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"sidenav__divider\\\"],[12],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"sidenav__item\\\"],[24,\\\"aria-label\\\",\\\"Sign Out\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"logout\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-sign-out\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Sign Out\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"main\\\"],[15,0,[29,[[30,0,[\\\"currentTab\\\"]]]]],[15,\\\"aria-label\\\",[29,[[30,0,[\\\"currentTab\\\"]],\\\" view\\\"]]],[12],[1,\\\"\\\\n \\\"],[8,[39,21],null,[[\\\"@id\\\",\\\"@userName\\\",\\\"@terms\\\",\\\"@maximizedCard\\\",\\\"@updateMaximizedCard\\\",\\\"@displayStatsPopup\\\",\\\"@hideClassmateStats\\\",\\\"@toggleClassmateStats\\\",\\\"@navigate\\\",\\\"@displayStatsInfo\\\",\\\"@messageUser\\\",\\\"@experimentalFeaturesEnabled\\\",\\\"@scrollElementIntoView\\\"],[\\\"course-list\\\",[30,0,[\\\"session\\\",\\\"user\\\",\\\"short_name\\\"]],[30,0,[\\\"terms\\\"]],[30,0,[\\\"maximizedCard\\\"]],[30,0,[\\\"updateMaximizedCard\\\"]],[30,0,[\\\"displayStatsPopup\\\"]],[30,0,[\\\"hideClassmateStats\\\"]],[30,0,[\\\"toggleClassmateStats\\\"]],[30,0,[\\\"navigate\\\"]],[30,0,[\\\"displayStatsInfo\\\"]],[30,0,[\\\"messageUser\\\"]],[30,0,[\\\"experimentalFeaturesEnabled\\\"]],[30,0,[\\\"scrollElementIntoView\\\"]]]],null],[1,\\\"\\\\n \\\"],[8,[39,22],null,[[\\\"@id\\\",\\\"@pollInterval\\\",\\\"@userId\\\",\\\"@externalSendRequest\\\",\\\"@localDocs\\\",\\\"@updateArchive\\\",\\\"@deleteArchivedText\\\"],[\\\"inbox\\\",\\\"30000\\\",[30,0,[\\\"userId\\\"]],[30,0,[\\\"sendMessageTo\\\"]],[30,0,[\\\"localDocs\\\"]],[30,0,[\\\"updateLocalDocs\\\"]],[30,0,[\\\"deleteArchivedText\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"section\\\"],[15,0,[29,[\\\"side__widgets \\\",[52,[51,[30,0,[\\\"showSideWidgets\\\"]]],\\\"minimized\\\"]]]],[14,\\\"aria-label\\\",\\\"Widgets panel\\\"],[12],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"side__widget__toggle\\\"],[16,\\\"aria-expanded\\\",[29,[[30,0,[\\\"showSideWidgets\\\"]]]]],[24,\\\"aria-controls\\\",\\\"side-widgets-content\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"toggleSideWidgets\\\"]]],null],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[15,0,[29,[\\\"fa fa-chevron-\\\",[52,[30,0,[\\\"showSideWidgets\\\"]],\\\"down\\\",\\\"up\\\"]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[1,[52,[30,0,[\\\"showSideWidgets\\\"]],\\\"Hide\\\",\\\"Show\\\"]],[1,\\\"\\\\n Widgets\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"side-widgets-content\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"currentTermLoginData\\\"]],[[[1,\\\" \\\"],[8,[39,24],null,null,null],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"experimentalFeaturesEnabled\\\"]],[[[1,\\\" \\\"],[8,[39,25],null,[[\\\"@upcomingLiveClass\\\",\\\"@contactTeacher\\\"],[[30,0,[\\\"upcoming_live_class\\\"]],[30,0,[\\\"messageUser\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"prefsPanelOpen\\\"]],[[[1,\\\" \\\"],[8,[39,26],null,[[\\\"@closePrefPanel\\\"],[[30,0,[\\\"togglePrefsPanel\\\"]]]],null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[10,\\\"section\\\"],[14,0,\\\"info__popups\\\"],[12],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"displayIntroPopup\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"dashboard-intro-popup-shade\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dashboard-intro-popup scrollbar-mobile\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-labelledby\\\",\\\"intro-popup-title\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,0,\\\"dashboard-intro-popup__header\\\"],[14,1,\\\"intro-popup-title\\\"],[12],[1,\\\"Welcome to Dashboard 2.0\\\\n Beta!\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"dashboard-intro-popup__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Berklee Online is thrilled to unveil the next phase of our Dashboard Beta, tailored\\\\n with your input in mind.\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Choose Your Experience\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"You now have access to the updated dashboard with features like customizable widgets\\\\n and a new inbox management experience. If you would like to enable additional\\\\n experimental features (including grade calculations and live class schedules), you may\\\\n choose to do so below.\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"dashboard-intro-popup__experimental-opt-in\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Enable experimental features\\\"],[13],[1,\\\"\\\\n \\\"],[8,[39,29],null,[[\\\"@action\\\",\\\"@initialState\\\"],[[30,0,[\\\"toggleExperimentalFeatures\\\"]],[30,0,[\\\"experimentalFeaturesEnabled\\\"]]]],null],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[15,0,[29,[\\\"dashboard-intro-popup__note\\\\n \\\",[52,[51,[30,0,[\\\"experimentalFeaturesEnabled\\\"]]],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[10,\\\"strong\\\"],[12],[1,\\\"Please note:\\\"],[13],[1,\\\"\\\\n Data shown in experimental features may not be fully accurate. If you choose to\\\\n enable these features, please continue referring to your course data in BOCCE for\\\\n important information about grades and class schedules.\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,\\\"Your Insights Matter\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Share your thoughts via:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Feedback survey, which will pop up automatically or can be accessed anytime by\\\\n clicking the\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/GS/survey-badge.svg\\\"],[14,\\\"alt\\\",\\\"feedback survey badge\\\"],[12],[13],[1,\\\"\\\\n icon in the bottom-right corner of the Dashboard.\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[1,\\\"Emailing bugs or feature requests to support@online.berklee.edu\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"dashboard-intro-popup__accept-button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"dismissIntroPopup\\\"]]],null],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-rocket\\\"],[12],[13],[1,\\\" Let's Go!\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[30,0,[\\\"displayStatsPopup\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"dashboard-intro-popup-shade\\\"],[14,\\\"role\\\",\\\"presentation\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dashboard-intro-popup\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[14,\\\"aria-labelledby\\\",\\\"stats-popup-title\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,0,\\\"dashboard-intro-popup__header\\\"],[14,1,\\\"stats-popup-title\\\"],[12],[1,\\\"What are classmate stats?\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"dashboard-intro-popup__body\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"Classmate stats display the average performance of your classmates both in this and\\\\n prior sections of the course.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"A stat like \\\\\\\"Conversations started\\\\\\\" shows the number of new conversations\\\\n historically started by this point in the course (ex: 3 weeks in).\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"These stats are meant to give you a sense of how you're doing in relation\\\\n to your peers, and to help you gauge your progress.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"The goal is to try and outperform your peers, but remember, the most\\\\n important thing is to learn and grow as a musician!\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"As such, if you find these stats to be unhelpful or distracting, you can\\\\n hide them by clicking the \\\\\\\"Hide Classmate Stats\\\\\\\" button.\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[10,\\\"br\\\"],[12],[13],[1,\\\"You can always turn them back on by clicking the \\\\\\\"Show Classmate Stats\\\\\\\"\\\\n button.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"dashboard-intro-popup__accept-button\\\"],[4,[38,7],[\\\"click\\\",[30,0,[\\\"dismissStatsInfo\\\"]]],null],[12],[1,\\\"Got it!\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"audio-player\\\",\\\"div\\\",\\\"header\\\",\\\"a\\\",\\\"img\\\",\\\"button\\\",\\\"if\\\",\\\"on\\\",\\\"i\\\",\\\"span\\\",\\\"h1\\\",\\\"not\\\",\\\"unless\\\",\\\"user-menu\\\",\\\"click-outside\\\",\\\"nav\\\",\\\"same\\\",\\\"fn\\\",\\\"morethan\\\",\\\"hr\\\",\\\"main\\\",\\\"dashboard/course-list\\\",\\\"inbox\\\",\\\"section\\\",\\\"login-streak\\\",\\\"next-live-class\\\",\\\"prefs\\\",\\\"p\\\",\\\"h3\\\",\\\"inputs/toggle-switch\\\",\\\"strong\\\",\\\"ul\\\",\\\"li\\\",\\\"br\\\"]]\",\n \"moduleName\": \"bocce/templates/dashboard.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/demo\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n

    Design Atoms Demo

    \n

    This page showcases all atoms and their variants from\n the Figma spec. Interact with the items to view hover and active states.

    \n \n
    \n

    Typography

    \n \n
    \n H1+
    \n font-size: var(--font-size-h1-plus)\n \n
    \n H1
    \n \n
    \n H2
    \n \n
    \n H3
    \n \n
    \n H4
    \n \n
    \n H5
    \n \n
    \n H6
    \n \n
    \n
    Body Large
    \n
    \n
    \n
    Body Medium
    \n
    \n
    \n
    Body Small
    \n
    \n \n
    \n \n
    \n

    Buttons (Solid)

    \n
    \n \n {{! }}\n \n \n \n \n \n \n
    \n
    \n \n
    \n

    Buttons (Ghost)

    \n
    \n \n \n \n \n \n \n \n \n
    \n
    \n \n
    \n

    Other Buttons

    \n
    \n \n \n
    \n
    \n \n 1/99\n \n \n \n
    \n \n
    \n

    Chips

    \n
    \n .chip\n
    \n
    \n \n
    \n

    Grade Buttons

    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n \n
    \n

    Inputs

    \n \n \n \n \n \n \n \n \n \n \n \n
    \n \n
    \n

    Avatars

    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n

    Tooltip

    \n \n \n
    \n
    \n
    \n
    Select an option
    \n
    \n
    Option 1
    \n
    Option 2
    \n
    Option 3
    \n
    \n
    \n
    \n \n
    \n

    Sidebar button

    \n \n
    \n \n \n */\n {\n \"id\": \"kXOUGupp\",\n \"block\": \"[[[10,0],[14,0,\\\"demo-page\\\"],[14,5,\\\"padding: 24px; font-family: var(--font-family-base); overflow: auto; background: white;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[14,5,\\\"margin: 0 0 16px;\\\"],[12],[1,\\\"Design Atoms Demo\\\"],[13],[1,\\\"\\\\n \\\"],[10,2],[14,5,\\\"color:#6b7280; margin: 0 0 24px;\\\"],[12],[1,\\\"This page showcases all atoms and their variants from\\\\n the Figma spec. Interact with the items to view hover and active states.\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Typography\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items:baseline;\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h1-plus); line-height: var(--line-height-h1-plus); font-weight: var(--font-weight-bold);\\\"],[12],[1,\\\"H1+\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"small\\\"],[14,5,\\\"color:#6b7280;\\\"],[12],[1,\\\"font-size: var(--font-size-h1-plus)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h1); line-height: var(--line-height-h1); font-weight: var(--font-weight-bold);\\\"],[12],[1,\\\"H1\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h2); line-height: var(--line-height-h2); font-weight: var(--font-weight-semibold);\\\"],[12],[1,\\\"H2\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h3); line-height: var(--line-height-h3); font-weight: var(--font-weight-semibold);\\\"],[12],[1,\\\"H3\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h4); line-height: var(--line-height-h4); font-weight: var(--font-weight-semibold);\\\"],[12],[1,\\\"H4\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h5); line-height: var(--line-height-h5); font-weight: var(--font-weight-medium);\\\"],[12],[1,\\\"H5\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-h6); line-height: var(--line-height-h6); font-weight: var(--font-weight-medium);\\\"],[12],[1,\\\"H6\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-lg); line-height: var(--line-height-lg);\\\"],[12],[1,\\\"Body Large\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-md); line-height: var(--line-height-md);\\\"],[12],[1,\\\"Body Medium\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"font-size: var(--font-size-sm); line-height: var(--line-height-sm);\\\"],[12],[1,\\\"Body Small\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Buttons (Solid)\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:flex; flex-wrap: wrap; align-items: center; gap: 12px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--primary\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--primary\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--green\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--green\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--blue\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--blue\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--purple\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--purple\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--black\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--black\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--white\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--white\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--primary\\\"],[14,\\\"disabled\\\",\\\"\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"far fa-clock\\\"],[12],[13],[1,\\\".button--primary\\\\n (disabled)\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-arrow-right\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Buttons (Ghost)\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:flex; flex-wrap: wrap; align-items: center; gap: 12px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--primary-ghost\\\"],[12],[1,\\\".button--primary-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--green-ghost\\\"],[12],[1,\\\".button--green-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--blue-ghost\\\"],[12],[1,\\\".button--blue-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--purple-ghost\\\"],[12],[1,\\\".button--purple-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--black-ghost\\\"],[12],[1,\\\".button--black-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--gray-ghost\\\"],[12],[1,\\\".button--gray-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--white-ghost\\\"],[12],[1,\\\".button--white-ghost\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--black-ghost\\\"],[14,\\\"disabled\\\",\\\"\\\"],[12],[1,\\\".button--black-ghost disabled\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Other Buttons\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:flex; flex-wrap: wrap; gap: 12px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button-link\\\"],[12],[1,\\\".button-link\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button-link disabled\\\"],[12],[1,\\\".button-link disabled\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"roster-button\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar-group\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--24px\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#9ca3af;\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--24px\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#6a82ab;\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--24px\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#2857a7;\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n 1/99\\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-list-ul\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"icon-button\\\"],[14,\\\"aria-label\\\",\\\"icon button\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"icon-button\\\"],[14,\\\"aria-label\\\",\\\"icon button\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"icon-button__notification\\\"],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-paperclip\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Chips\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:flex; flex-wrap: wrap; gap: 12px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"chip\\\"],[12],[1,\\\".chip\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Grade Buttons\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:flex; flex-wrap: wrap; gap: 12px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--pass\\\"],[12],[1,\\\"P\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--a\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--a-minus\\\"],[12],[1,\\\"A-\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--b-plus\\\"],[12],[1,\\\"B+\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--b\\\"],[12],[1,\\\"B\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--b-minus\\\"],[12],[1,\\\"B-\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--c-plus\\\"],[12],[1,\\\"C+\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--c\\\"],[12],[1,\\\"C\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--c-minus\\\"],[12],[1,\\\"C-\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--d\\\"],[12],[1,\\\"D\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--f\\\"],[12],[1,\\\"F\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--i\\\"],[12],[1,\\\"I\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"margin-top: 12px; display:flex; gap: 12px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--pass grade-button-size--sm\\\"],[12],[1,\\\"sm\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--pass grade-button-size--md\\\"],[12],[1,\\\"md\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"grade-button grade-button--pass grade-button-size--lg\\\"],[12],[1,\\\"lg\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Inputs\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"input-text\\\"],[14,\\\"placeholder\\\",\\\".input-text placeholder\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"input-text\\\"],[14,\\\"placeholder\\\",\\\".input-text disabled\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".select (checkbox)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".select (checked)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"select\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".select (disabled)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,5,\\\"display:flex; gap: 8px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"radio\\\"],[14,3,\\\"demo-radio\\\"],[14,\\\"checked\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".radio (checked)\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,5,\\\"display:flex; gap: 8px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"radio\\\"],[14,3,\\\"demo-radio\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".radio\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,5,\\\"display:flex; gap: 8px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"radio\\\"],[14,3,\\\"demo-radio\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,4,\\\"radio\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".radio disabled\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"input-toggle\\\"],[14,5,\\\"display:inline-flex; align-items:center; gap: 8px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,4,\\\"checkbox\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"track\\\"],[12],[10,1],[14,0,\\\"thumb\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\".input-toggle\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Avatars\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"display:flex; flex-wrap: wrap; gap: 16px; align-items:center;\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--32px\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#9ca3af;\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--32px\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#9ca3af;\\\"],[12],[13],[10,\\\"i\\\"],[14,0,\\\"avatar__status-icon far fa-home\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--32px\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#e5e7eb;\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"avatar avatar--32px avatar-online-indicator\\\"],[12],[10,0],[14,0,\\\"avatar__user-icon\\\"],[14,5,\\\"background:#60a5fa;\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Tooltip\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--blue\\\"],[12],[1,\\\"Hover me\\\\n \\\"],[10,1],[14,0,\\\"tooltip\\\"],[12],[1,\\\".tooltip\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"button button--blue\\\"],[12],[1,\\\"Hover me\\\\n \\\"],[10,1],[14,0,\\\"tooltip tooltip--right\\\"],[12],[1,\\\".tooltip\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown__button\\\"],[12],[1,\\\"Select an option\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown__option\\\"],[12],[1,\\\"Option 1\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown__option\\\"],[12],[1,\\\"Option 2\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"dropdown__option\\\"],[12],[1,\\\"Option 3\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,5,\\\"margin-bottom: 32px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[14,5,\\\"margin: 0 0 12px;\\\"],[12],[1,\\\"Sidebar button\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"toolbar-button\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__notification\\\"],[12],[1,\\\"10\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon far fa-home\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"Home\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"h1\\\",\\\"p\\\",\\\"section\\\",\\\"h2\\\",\\\"small\\\",\\\"button\\\",\\\"i\\\",\\\"span\\\",\\\"input\\\",\\\"label\\\"]]\",\n \"moduleName\": \"bocce/templates/demo.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/audiocomments/comment\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    {{label}}
    \n
    {{{comment}}}
    \n */\n {\n \"id\": \"CagkZAIj\",\n \"block\": \"[[[10,0],[14,0,\\\"comment-title\\\"],[12],[1,[35,1]],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"comment-body\\\"],[12],[2,[37,2]],[13]],[],[\\\"div\\\",\\\"label\\\",\\\"comment\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/audiocomments/comment.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/audiocomments/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n \n
    \n \n \n \n
    \n
    \n \n
    \n
    Loading...
    \n {{#each comments as |comment|}}\n \n
    \n {{/each}}\n
    \n \n {{#each comments as |comment|}}\n \n
    \n {{comment.label}}\n
    \n
    \n {{/each}}\n
    \n
    \n \n */\n {\n \"id\": \"tTr4DQOQ\",\n \"block\": \"[[[10,0],[14,0,\\\"audio-comments\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"slideshow-player\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"audio\\\"],[14,0,\\\"player\\\"],[15,\\\"src\\\",[29,[[37,2]]]],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"audio-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-play playpause\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-pause inactive playpause\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"player-seek\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"0\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading\\\"],[12],[10,\\\"img\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,\\\"src\\\",\\\"/front_end/images/loading.gif\\\"],[14,\\\"alt\\\",\\\"Loading spinner\\\"],[12],[13],[10,1],[14,0,\\\"text\\\"],[12],[1,\\\"Loading...\\\"],[13],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[31,9]],null]],null],null,[[[1,\\\" \\\"],[10,0],[15,0,[29,[[30,1,[\\\"divType\\\"]],\\\" background\\\"]]],[15,5,[29,[\\\"width: \\\",[30,1,[\\\"divWidth\\\"]],\\\"; left: \\\",[30,1,[\\\"divPos\\\"]],\\\"; background: url('\\\",[30,1,[\\\"bgImage\\\"]],\\\"'); background-size: 100% 100%;\\\"]]],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"highlight\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"bg-image\\\"],[15,\\\"src\\\",[29,[[37,10]]]],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,8],[[28,[37,8],[[31,9]],null]],null],null,[[[1,\\\" \\\"],[10,0],[15,0,[29,[[30,2,[\\\"divType\\\"]],\\\" \\\",[30,2,[\\\"id\\\"]]]]],[15,5,[29,[\\\"width: \\\",[30,2,[\\\"divWidth\\\"]],\\\"; left: \\\",[30,2,[\\\"divPos\\\"]],\\\"; background-size: 100% 100%;\\\"]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"label\\\"],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"label\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[10,0],[14,0,\\\"active-comment\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"comment\\\",\\\"comment\\\"],[\\\"div\\\",\\\"audio\\\",\\\"audioSrc\\\",\\\"i\\\",\\\"input\\\",\\\"img\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"comments\\\",\\\"imageSrc\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/audiocomments/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/audiomarkersquiz/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    Loading audio. Please wait...
    \n
    \n
    \n
    \n Correct! You got them all.\n Try again?\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"yiDib9TA\",\n \"block\": \"[[[10,0],[14,0,\\\"loading\\\"],[12],[1,\\\"Loading audio. Please wait...\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"player_container\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"feedback\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"try_again\\\"],[14,5,\\\"display: none\\\"],[12],[1,\\\"\\\\n Correct! You got them all.\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[12],[1,\\\"Try again?\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"answer_area\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"image_container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"progress_bar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"marker_bin\\\"],[12],[13]],[],[\\\"div\\\",\\\"a\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/audiomarkersquiz/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/contentframing/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    {{{this.question}}}
    \n
    {{{this.solution}}}
    \n
    \n Aspect Ratio: \n {{#each this.aspectRatioLabels as |label|}}\n {{label}}\n {{/each}}\n
    \n \n
    \n */\n {\n \"id\": \"BEAUzEU1\",\n \"block\": \"[[[10,0],[14,0,\\\"framing-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"frame-rect\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"main-content\\\"],[12],[2,[30,0,[\\\"question\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solution-content\\\"],[14,5,\\\"display: none;\\\"],[12],[2,[30,0,[\\\"solution\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"aspect-ratios-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[12],[1,\\\"Aspect Ratio: \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[30,0,[\\\"aspectRatioLabels\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,3],[14,0,\\\"aspect-ratio button\\\"],[12],[1,[30,1]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bottom\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"solution button\\\"],[12],[1,\\\"Reveal Solution\\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"next button\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"Next >\\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"reset button\\\"],[14,5,\\\"display: none;\\\"],[12],[1,\\\"Try again?\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"label\\\"],[\\\"div\\\",\\\"span\\\",\\\"each\\\",\\\"-track-array\\\",\\\"a\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/contentframing/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/cycle5/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    F
    \n
    C
    \n
    G
    \n
    D
    \n
    A
    \n
    E
    \n
    B
    \n
    G♭
    \n
    D♭
    \n
    A♭
    \n
    E♭
    \n
    B♭
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n \n
    \n
    \n \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n \n
    \n \n \n
    \n \n \n
    \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n */\n {\n \"id\": \"uhLs3EUY\",\n \"block\": \"[[[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"wheel\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"note-wheel-left\\\"],[14,0,\\\"arrow\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"note-wheel-right\\\"],[14,0,\\\"arrow\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,1,\\\"note-wheel-handle\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"note-wheel\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n0\\\"],[12],[1,\\\"F\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n1\\\"],[12],[1,\\\"C\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n2\\\"],[12],[1,\\\"G\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n3\\\"],[12],[1,\\\"D\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n4\\\"],[12],[1,\\\"A\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n5\\\"],[12],[1,\\\"E\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n6\\\"],[12],[1,\\\"B\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n7\\\"],[12],[1,\\\"G♭\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n8\\\"],[12],[1,\\\"D♭\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n9\\\"],[12],[1,\\\"A♭\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n10\\\"],[12],[1,\\\"E♭\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note n11\\\"],[12],[1,\\\"B♭\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" end note-wheel \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"function-wheel-handle\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"function-wheel-left\\\"],[14,0,\\\"arrow\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"function-wheel-right\\\"],[14,0,\\\"arrow\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"function-wheel\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" end function-wheel \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"inner-ring\\\"],[12],[1,\\\"\\\\n \\\"],[3,\\\" inner ring \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 271px; top: 191px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/00_1.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 316px; top: 211px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/01_5.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 350px; top: 234px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/02_2.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 365px; top: 281px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/03_6.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 348px; top: 327px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/04_3.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 325px; top: 358px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/05_7.png\\\"],[14,0,\\\"lydian\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 282px; top: 378px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/06_b5.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 240px; top: 363px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/07_b2.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 198px; top: 327px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/08_b6.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 185px; top: 285px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/09_b3.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 197px; top: 237px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/10_b7.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 226px; top: 207px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/11_4.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" end inner-ring \\\"],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"outer-ring\\\"],[12],[1,\\\"\\\\n \\\"],[3,\\\" outer ring \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 279px; top: 120px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/00_I.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 358px; top: 138px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/01_V.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 415px; top: 197px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/02_II.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 425px; top: 284px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/03_VI.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 407px; top: 367px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/04_III.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 361px; top: 419px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/05_VII.png\\\"],[14,0,\\\"lydian\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 273px; top: 444px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/06_bV.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 212px; top: 431px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/07_bII.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 120px; top: 373px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/08_bVI.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 90px; top: 290px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/09_bIII.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 106px; top: 206px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/10_bVII.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,5,\\\"left: 190px; top: 146px;\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/11_IV.png\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" end outer ring \\\"],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[3,\\\" special case lydian \\\"],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/inner_ring/06_s4.png\\\"],[14,0,\\\"lydian-inner hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/cycle_5_explorer/images/function_wheel/outer_ring/06_sIV.png\\\"],[14,0,\\\"lydian-outer hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" end special case lydian \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"labels\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"modes\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[3,\\\" end wheel \\\"],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,1,\\\"grids\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"scale-tones\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"highlight\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"horizontal jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"second horizontal jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"vertical jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"chord-function\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"highlight\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"horizontal jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"vertical jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"chord-tones\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"highlight\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"horizontal jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"vertical jig\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[3,\\\" end cycle5explorer \\\"]],[],[\\\"div\\\",\\\"img\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/cycle5/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/draganddropquiz/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n
    \n
    \n \n
    \n {{#if this.signalFlowOpts.connectors}}\n
    \n
    Signal Flow Controls
    \n
    Connection Types:
    \n
    \n {{#each this.signalFlowOpts.connectors as |option|}}\n
    \n {{/each}}\n
    \n
    Check Connections
    \n
    \n {{/if}}\n {{#each this.draggables as |draggable|}}\n {{#if draggable.static}}\n \n

    {{decode\n draggable.label\n }}

    \n {{#each draggable.endpoints as |endpoint index|}}\n \n \n \n {{/each}}\n \n {{else}}\n

    {{decode\n draggable.label\n }}

    \n {{/if}}\n {{/each}}\n {{#each this.dropZones as |dropzone|}}\n \n
    \n

    {{decode dropzone.label}}

    \n
    \n \n {{/each}}\n {{#each this.images as |image|}}\n \n {{#each image.endpoints as |endpoint index|}}\n \n \n \n {{/each}}\n {{/each}}\n {{#each this.markers as |marker|}}\n
    {{decode marker.label}}

    \n {{/each}}\n {{#if this.rolloverPreview}}\n
    \n \n
    \n {{/if}}\n \n */\n {\n \"id\": \"9VJogmdf\",\n \"block\": \"[[[10,0],[14,0,\\\"drag-and-drop-quiz\\\"],[15,1,[29,[\\\"drag-and-drop-\\\",[30,0,[\\\"intId\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,\\\"audio\\\"],[15,1,[29,[\\\"audio-\\\",[30,0,[\\\"intId\\\"]]]]],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[15,1,[29,[\\\"feedback-mask-\\\",[30,0,[\\\"intId\\\"]]]]],[14,0,\\\"feedback-mask\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[15,1,[29,[\\\"feedback-\\\",[30,0,[\\\"intId\\\"]]]]],[14,0,\\\"feedback\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"feedback-close\\\"],[14,\\\"aria-label\\\",\\\"Close\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-times\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[41,[30,0,[\\\"signalFlowOpts\\\",\\\"connectors\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"signal-flow-palette\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"palette-title\\\"],[12],[1,\\\"Signal Flow Controls\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"section-title\\\"],[12],[1,\\\"Connection Types:\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"colors-swatch-container\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"signalFlowOpts\\\",\\\"connectors\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"swatch\\\"],[15,5,[29,[\\\"background-color: \\\",[30,1,[\\\"color\\\"]],\\\";\\\"]]],[15,\\\"data-color\\\",[29,[[30,1,[\\\"color\\\"]]]]],[15,\\\"data-type\\\",[29,[[30,1,[\\\"type\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"connection-checker\\\"],[12],[1,\\\"Check Connections\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"draggables\\\"]]],null]],null],null,[[[41,[30,2,[\\\"static\\\"]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"draggable\\\\n \\\",[52,[30,2,[\\\"dropZone\\\"]],\\\"placeable\\\"],\\\"\\\\n \\\",[52,[30,2,[\\\"labelAndImage\\\"]],\\\"label-and-img\\\"]]]],[15,\\\"soundCorrect\\\",[29,[[30,2,[\\\"soundCorrect\\\"]]]]],[15,\\\"soundIncorrect\\\",[29,[[30,2,[\\\"soundIncorrect\\\"]]]]],[15,\\\"soundClick\\\",[29,[[30,2,[\\\"soundClick\\\"]]]]],[15,\\\"soundOver\\\",[29,[[30,2,[\\\"soundOver\\\"]]]]],[15,\\\"feedbackCorrect\\\",[29,[[30,2,[\\\"feedbackCorrect\\\"]]]]],[15,\\\"feedbackIncorrect\\\",[29,[[30,2,[\\\"feedbackIncorrect\\\"]]]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-draggable-\\\",[30,2,[\\\"dropZone\\\"]],\\\"-\\\",[30,2,[\\\"uniqueSuffix\\\"]]]]],[15,\\\"dropZone\\\",[29,[[30,0,[\\\"intId\\\"]],\\\"-\\\",[30,2,[\\\"dropZone\\\"]]]]],[15,5,[29,[\\\"background-color: \\\",[30,2,[\\\"backgroundColor\\\"]],\\\"; \\\",[30,2,[\\\"css\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"dnd-label\\\"],[15,5,[29,[\\\"font-size: \\\",[30,2,[\\\"fontSize\\\"]],\\\";\\\"]]],[12],[1,[28,[35,8],[[30,2,[\\\"label\\\"]]],null]],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,2,[\\\"endpoints\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"endpoint\\\"],[15,5,[30,3,[\\\"css\\\"]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-endpoint-\\\",[30,3,[\\\"itemID\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"draggable\\\",\\\"true\\\"],[14,0,\\\"connector\\\"],[14,5,\\\"width: 10px; height: 10px; cursor: pointer;\\\"],[15,\\\"correctColor\\\",[29,[[30,3,[\\\"correctConnectorColor\\\"]]]]],[15,\\\"numConnections\\\",[29,[[30,3,[\\\"numConnections\\\"]]]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-connector-\\\",[30,3,[\\\"itemID\\\"]],\\\"-\\\",[30,4]]]],[15,\\\"validConnections\\\",[29,[[28,[37,9],[[30,3,[\\\"connectsTo\\\"]]],null]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[3,4]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"draggable\\\\n \\\",[52,[30,2,[\\\"dropZone\\\"]],\\\"placeable\\\"],\\\"\\\\n \\\",[52,[30,2,[\\\"labelAndImage\\\"]],\\\"label-and-img\\\"]]]],[15,\\\"soundCorrect\\\",[29,[[30,2,[\\\"soundCorrect\\\"]]]]],[15,\\\"soundIncorrect\\\",[29,[[30,2,[\\\"soundIncorrect\\\"]]]]],[15,\\\"soundClick\\\",[29,[[30,2,[\\\"soundClick\\\"]]]]],[15,\\\"soundOver\\\",[29,[[30,2,[\\\"soundOver\\\"]]]]],[15,\\\"feedbackCorrect\\\",[29,[[30,2,[\\\"feedbackCorrect\\\"]]]]],[15,\\\"feedbackIncorrect\\\",[29,[[30,2,[\\\"feedbackIncorrect\\\"]]]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-draggable-\\\",[30,2,[\\\"dropZone\\\"]],\\\"-\\\",[30,2,[\\\"uniqueSuffix\\\"]]]]],[15,\\\"dropZone\\\",[29,[[30,0,[\\\"intId\\\"]],\\\"-\\\",[30,2,[\\\"dropZone\\\"]]]]],[14,\\\"draggable\\\",\\\"true\\\"],[15,5,[29,[\\\"background-color: \\\",[30,2,[\\\"backgroundColor\\\"]],\\\"; \\\",[30,2,[\\\"css\\\"]]]]],[12],[10,2],[14,0,\\\"dnd-label\\\"],[15,5,[29,[\\\"font-size: \\\",[30,2,[\\\"fontSize\\\"]],\\\";\\\"]]],[12],[1,[28,[35,8],[[30,2,[\\\"label\\\"]]],null]],[13],[13],[1,\\\"\\\\n\\\"]],[]]]],[2]],null],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"dropZones\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[15,0,[29,[\\\"drop-zone \\\",[28,[37,10],[[30,5,[\\\"onCorrect\\\"]]],null],\\\" \\\",[52,[30,5,[\\\"labelAndImage\\\"]],\\\"label-and-img\\\"]]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-\\\",[30,5,[\\\"itemID\\\"]]]]],[15,5,[29,[\\\"background-color: \\\",[30,5,[\\\"backgroundColor\\\"]],\\\"; \\\",[30,5,[\\\"css\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"label-flexbox\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"dnd-label\\\"],[15,5,[29,[\\\"font-size: \\\",[30,5,[\\\"fontSize\\\"]],\\\";\\\"]]],[12],[1,[28,[35,8],[[30,5,[\\\"label\\\"]]],null]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[5]],null],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"images\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"img\\\"],[14,0,\\\"dnd-img\\\"],[15,\\\"src\\\",[29,[[30,6,[\\\"src\\\"]]]]],[15,5,[30,6,[\\\"css\\\"]]],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,6],[[28,[37,6],[[30,6,[\\\"endpoints\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"endpoint\\\"],[15,5,[30,7,[\\\"css\\\"]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-endpoint-\\\",[30,7,[\\\"itemID\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"draggable\\\",\\\"true\\\"],[14,0,\\\"connector\\\"],[14,5,\\\"width: 10px; height: 10px; cursor: pointer;\\\"],[15,\\\"correctColor\\\",[29,[[30,7,[\\\"correctConnectorColor\\\"]]]]],[15,\\\"numConnections\\\",[29,[[30,7,[\\\"numConnections\\\"]]]]],[15,1,[29,[[30,0,[\\\"intId\\\"]],\\\"-connector-\\\",[30,7,[\\\"itemID\\\"]],\\\"-\\\",[30,8]]]],[15,\\\"validConnections\\\",[29,[[28,[37,9],[[30,7,[\\\"connectsTo\\\"]]],null]]]],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[7,8]],null]],[6]],null],[42,[28,[37,6],[[28,[37,6],[[30,0,[\\\"markers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"marker\\\"],[15,5,[29,[\\\"background-color: \\\",[30,9,[\\\"backgroundColor\\\"]],\\\"; \\\",[30,9,[\\\"css\\\"]]]]],[12],[10,2],[14,0,\\\"dnd-label\\\"],[15,5,[29,[\\\"font-size: \\\",[30,9,[\\\"fontSize\\\"]],\\\";\\\"]]],[12],[1,[28,[35,8],[[30,9,[\\\"label\\\"]]],null]],[13],[13],[1,\\\"\\\\n\\\"]],[9]],null],[41,[30,0,[\\\"rolloverPreview\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"rollover-preview\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"rollover-preview-image\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[13]],[\\\"option\\\",\\\"draggable\\\",\\\"endpoint\\\",\\\"index\\\",\\\"dropzone\\\",\\\"image\\\",\\\"endpoint\\\",\\\"index\\\",\\\"marker\\\"],[\\\"div\\\",\\\"audio\\\",\\\"button\\\",\\\"i\\\",\\\"if\\\",\\\"each\\\",\\\"-track-array\\\",\\\"p\\\",\\\"decode\\\",\\\"spacelist\\\",\\\"dashify\\\",\\\"img\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/draganddropquiz/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/fillintheblanksquiz/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n \n \n \n \n
    \n */\n {\n \"id\": \"EKDP3b/w\",\n \"block\": \"[[[10,0],[14,0,\\\"feedback\\\"],[14,5,\\\"display: none;\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,1,\\\"question\\\"],[14,0,\\\"question\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"button-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,2,\\\"Check Answer\\\"],[14,0,\\\"button\\\"],[14,4,\\\"button\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,2,\\\"Next Question\\\"],[14,0,\\\"button attention\\\"],[14,5,\\\"display: none;\\\"],[14,4,\\\"button\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,2,\\\"Show Correct?\\\"],[14,0,\\\"button show-correct-button\\\"],[14,5,\\\"display: none;\\\"],[14,4,\\\"button\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,2,\\\"Try Again?\\\"],[14,0,\\\"button attention\\\"],[14,5,\\\"display: none;\\\"],[14,4,\\\"button\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"input\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/fillintheblanksquiz/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/flashcards/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    {{count}}
    \n
    {{{questionHtml}}}
    \n
    {{{answerHtml}}}
    \n
    \n \n */\n {\n \"id\": \"yFUCkk+T\",\n \"block\": \"[[[10,0],[14,0,\\\"card\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"time\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"count\\\"],[12],[1,[35,1]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"question\\\"],[12],[2,[37,2]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"answer\\\"],[14,0,\\\"hidden\\\"],[12],[2,[37,3]],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,1,\\\"buttons\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[14,1,\\\"showAnswerBtn\\\"],[14,0,\\\"button blue\\\"],[12],[1,\\\"Show Answer\\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[14,1,\\\"shuffleBtn\\\"],[14,0,\\\"button blue hidden\\\"],[12],[1,\\\"Shuffle Remaining\\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[14,1,\\\"nextBtn\\\"],[14,0,\\\"button blue hidden\\\"],[12],[1,\\\"Next Question\\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[14,1,\\\"gotItBtn\\\"],[14,0,\\\"button green hidden\\\"],[14,\\\"title\\\",\\\"Remove the card from the deck\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-check-circle\\\"],[12],[13],[1,\\\"\\\\n Got It!\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"count\\\",\\\"questionHtml\\\",\\\"answerHtml\\\",\\\"a\\\",\\\"i\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/flashcards/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/formbuilder/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n B \n I \n U\n \n \n \n \n
    \n
    \n \n
    \n
    \n \n \n \n
    \n */\n {\n \"id\": \"ehh79qXb\",\n \"block\": \"[[[10,0],[14,0,\\\"interaction-row toolbar-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"toolbar-btn toolbar-btn-bold tababble\\\"],[14,\\\"aria-label\\\",\\\"Bold\\\"],[14,\\\"title\\\",\\\"Bold/Unbold\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"b\\\"],[12],[1,\\\"B\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"toolbar-btn toolbar-btn-italic tababble\\\"],[14,\\\"aria-label\\\",\\\"Italic\\\"],[14,\\\"title\\\",\\\"Italic\\\"],[14,5,\\\" font-family: auto; \\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"i\\\"],[12],[1,\\\"I\\\"],[13],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"toolbar-btn toolbar-btn-underline tababble\\\"],[14,\\\"aria-label\\\",\\\"Underline\\\"],[14,\\\"title\\\",\\\"Underline\\\"],[14,4,\\\"button\\\"],[12],[1,\\\" \\\"],[10,\\\"u\\\"],[12],[1,\\\"U\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"toolbar-btn toolbar-btn-color-picker tababble\\\"],[14,2,\\\"#000000\\\"],[14,\\\"title\\\",\\\"Text Colour\\\"],[14,4,\\\"color\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,0,\\\"toolbar-btn toolbar-btn-font-size tababble\\\"],[14,\\\"title\\\",\\\"Font Size\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"11\\\"],[12],[1,\\\"11\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"12\\\"],[12],[1,\\\"12\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"13\\\"],[14,\\\"selected\\\",\\\"selected\\\"],[12],[1,\\\"13\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"14\\\"],[12],[1,\\\"14\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"15\\\"],[12],[1,\\\"15\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"16\\\"],[12],[1,\\\"16\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"17\\\"],[12],[1,\\\"17\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"18\\\"],[12],[1,\\\"18\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"20\\\"],[12],[1,\\\"20\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"22\\\"],[12],[1,\\\"22\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"24\\\"],[12],[1,\\\"24\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"28\\\"],[12],[1,\\\"28\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"32\\\"],[12],[1,\\\"32\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"36\\\"],[12],[1,\\\"36\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"toolbar-btn toolbar-btn-add-image tababble\\\"],[14,\\\"aria-label\\\",\\\"Add Image\\\"],[12],[1,\\\"Add Image\\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"selected-image-name\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"interaction-row table-content-wrapper\\\"],[12],[1,\\\"\\\\n\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"interaction-row export-button-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"activity-btn add-btn tababble\\\"],[14,\\\"aria-label\\\",\\\"Add Row\\\"],[12],[1,\\\"Add Row\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"activity-btn remove-btn tababble\\\"],[14,\\\"aria-label\\\",\\\"Remove Last Row\\\"],[12],[1,\\\"Remove Last Row\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"activity-btn export-btn tababble\\\"],[14,\\\"aria-label\\\",\\\"Export PDF\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fal fa-file-pdf\\\"],[12],[13],[1,\\\"\\\\n Export PDF\\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"button\\\",\\\"b\\\",\\\"i\\\",\\\"u\\\",\\\"input\\\",\\\"select\\\",\\\"option\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/formbuilder/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/hotspotquiz/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n

    {{decode question}}

    \n
    \n \n
    \n
    \n
    1 of 1
    \n */\n {\n \"id\": \"fepTbO7g\",\n \"block\": \"[[[10,0],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"question-container border-bottom\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"question\\\"],[12],[1,[28,[35,2],[[31,3]],null]],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"feedback-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[14,0,\\\"feedback\\\"],[12],[13],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"continue-btn hidden\\\"],[12],[1,\\\"Click to continue\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"image-area\\\"],[12],[10,\\\"img\\\"],[12],[13],[13],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"question-count fr\\\"],[12],[1,\\\"1 of 1\\\"],[13],[10,0],[14,0,\\\"clear\\\"],[12],[13]],[],[\\\"div\\\",\\\"p\\\",\\\"decode\\\",\\\"question\\\",\\\"a\\\",\\\"img\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/hotspotquiz/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/hotspotquiz/quizcomplete\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n Quiz Complete. Try again?\n */\n {\n \"id\": \"iGr8/BIu\",\n \"block\": \"[[[10,3],[14,6,\\\"#\\\"],[14,0,\\\"try-again-btn hidden\\\"],[12],[1,\\\"Quiz Complete. Try again?\\\"],[13]],[],[\\\"a\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/hotspotquiz/quizcomplete.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/imageexplorer/infobottom\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{partial \"interactions/imageexplorer/stage\"}}\n
    \n

    \n {{{initialText}}}\n

    \n
    \n {{partial \"interactions/imageexplorer/nav\"}}\n */\n {\n \"id\": \"dAhA6Cz2\",\n \"block\": \"[[[1,[28,[35,0],[\\\"interactions/imageexplorer/stage\\\"],null]],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"info border scrollbar-mobile\\\"],[12],[1,\\\"\\\\n \\\"],[10,2],[12],[1,\\\"\\\\n \\\"],[2,[37,3]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[1,[28,[35,0],[\\\"interactions/imageexplorer/nav\\\"],null]]],[],[\\\"partial\\\",\\\"div\\\",\\\"p\\\",\\\"initialText\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/imageexplorer/infobottom.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/imageexplorer/loading\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n Loading...\n
    \n */\n {\n \"id\": \"gLKxYs18\",\n \"block\": \"[[[10,0],[14,0,\\\"loading\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"/front_end/images/loading.gif\\\"],[14,0,\\\"loading-spinner\\\"],[12],[13],[1,\\\"Loading...\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"img\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/imageexplorer/loading.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/imageexplorer/nav\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n \n 1 of 1\n \n
    \n */\n {\n \"id\": \"rb/TCeJP\",\n \"block\": \"[[[10,0],[14,0,\\\"nav\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"prev\\\"],[14,\\\"aria-label\\\",\\\"Previous\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-left\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"count\\\"],[12],[1,\\\"1 of 1\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"next\\\"],[14,\\\"aria-label\\\",\\\"Next\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-right\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"button\\\",\\\"i\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/imageexplorer/nav.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/imageexplorer/stage\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n {{{imgEl}}}\n {{#each hotspots as |hotspot|}}\n
    \n {{/each}}\n {{#each buttons as |btn|}}\n \n {{btn.title}}\n \n {{/each}}\n
    \n
    \n
    \n */\n {\n \"id\": \"VJHn4Hig\",\n \"block\": \"[[[10,0],[14,0,\\\"stage-container border scrollbar-mobile\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"stage\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"content\\\"],[12],[1,\\\"\\\\n \\\"],[2,[37,1]],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[31,4]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"hotspot\\\"],[15,1,[29,[[30,1,[\\\"id\\\"]]]]],[15,5,[30,1,[\\\"css\\\"]]],[15,\\\"data-target-slide\\\",[29,[[30,1,[\\\"targetSlide\\\"]]]]],[12],[13],[1,\\\"\\\\n\\\"]],[1]],null],[42,[28,[37,3],[[28,[37,3],[[31,5]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"user-button\\\"],[15,1,[29,[[30,2,[\\\"id\\\"]]]]],[15,5,[30,2,[\\\"css\\\"]]],[15,\\\"data-target-slide\\\",[29,[[30,2,[\\\"targetSlide\\\"]]]]],[15,\\\"aria-label\\\",[29,[[30,2,[\\\"title\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[1,[30,2,[\\\"title\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"hotspot\\\",\\\"btn\\\"],[\\\"div\\\",\\\"imgEl\\\",\\\"each\\\",\\\"-track-array\\\",\\\"hotspots\\\",\\\"buttons\\\",\\\"button\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/imageexplorer/stage.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/listrollover/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n {{#each this.rollovers as |r|}}\n \n {{{r.content}}}\n
    \n {{/each}}\n
    \n
    \n \n
    \n */\n {\n \"id\": \"8KuuS5pY\",\n \"block\": \"[[[10,0],[14,0,\\\"content_area\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"bg_image cf\\\"],[12],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"rollovers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"rollover_content\\\"],[15,5,[29,[\\\"left: \\\",[30,1,[\\\"x\\\"]],\\\"; top: \\\",[30,1,[\\\"y\\\"]],\\\"; display: none;\\\"]]],[15,\\\"data-rollover-id\\\",[29,[[30,1,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,1,[\\\"content\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[1]],null],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"rollover_links\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,2],[[28,[37,2],[[30,0,[\\\"rollovers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"rollover_link\\\"],[14,6,\\\"#\\\"],[15,\\\"data-rollover-id\\\",[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n \\\"],[2,[30,2,[\\\"link\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[\\\"r\\\",\\\"r\\\"],[\\\"div\\\",\\\"each\\\",\\\"-track-array\\\",\\\"ul\\\",\\\"li\\\",\\\"a\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/listrollover/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/mixvisualizer/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    \n \n \n \n \n \n
    \n
    \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"cAm0zAEB\",\n \"block\": \"[[[10,0],[14,0,\\\"soundStageContainer\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"ssWrapper\\\"],[14,\\\"title\\\",\\\"Visualization Title\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"sound-stage\\\"],[14,1,\\\"sndInput\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"title\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"text\\\"],[14,3,\\\"viz-title\\\"],[14,1,\\\"viz-title\\\"],[14,\\\"placeholder\\\",\\\"Visualization Title\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"new-control\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-plus-circle\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n New Sound\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"remove-control dangerous-button ctrl-disabled\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-trash\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Remove Sound\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"capture-control\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-camera\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n Capture Visualization\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-controls ctrl-disabled\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"name\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,0,\\\"text\\\"],[14,3,\\\"element-name\\\"],[14,1,\\\"element-name\\\"],[14,\\\"placeholder\\\",\\\"Sound Name\\\"],[14,4,\\\"text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"volume\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"volume-range\\\"],[14,\\\"val\\\",\\\"50\\\"],[14,1,\\\"vol-label\\\"],[12],[1,\\\"Volume: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"50\\\"],[14,0,\\\"slider volume\\\"],[14,1,\\\"volume-range\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"frequency\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"frequency-range\\\"],[14,\\\"val\\\",\\\"50\\\"],[14,1,\\\"freq-label\\\"],[12],[1,\\\"Frequency: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"50\\\"],[14,0,\\\"slider\\\"],[14,1,\\\"frequency-range\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"channels\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"pan-range\\\"],[14,\\\"val\\\",\\\"50\\\"],[14,1,\\\"pan-label\\\"],[12],[1,\\\"Panning: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"50\\\"],[14,0,\\\"slider\\\"],[14,1,\\\"pan-range\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"width\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"width-range\\\"],[14,\\\"val\\\",\\\"50\\\"],[14,1,\\\"range-label\\\"],[12],[1,\\\"Width: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"1\\\"],[14,0,\\\"slider\\\"],[14,1,\\\"width-range\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"location\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"location-range\\\"],[14,1,\\\"loc-label\\\"],[12],[1,\\\"Label Location: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"50\\\"],[14,0,\\\"slider\\\"],[14,1,\\\"location-range\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"pan-control\\\"],[14,1,\\\"height\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"height-range\\\"],[14,1,\\\"loc-label\\\"],[12],[1,\\\"Label Height: \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"50\\\"],[14,0,\\\"slider\\\"],[14,1,\\\"height-range\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"input\\\",\\\"button\\\",\\\"i\\\",\\\"label\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/mixvisualizer/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/rive/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n \n */\n {\n \"id\": \"UKCzzPq0\",\n \"block\": \"[[[10,\\\"canvas\\\"],[14,1,\\\"canvas\\\"],[15,\\\"height\\\",[29,[[30,0,[\\\"height\\\"]]]]],[15,\\\"width\\\",[29,[[30,0,[\\\"width\\\"]]]]],[12],[13]],[],[\\\"canvas\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/rive/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/slideshow/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n \n
    \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n \n 1 of 1\n \n
    \n
    \n \n
    \n
    \n
    \n \"Slideshow\n
    \n
    \n
    \n
    \n \n \n \n
    \n
    \n */\n {\n \"id\": \"O/yqVVfg\",\n \"block\": \"[[[10,0],[15,1,[29,[\\\"slideshow_player_\\\",[30,0,[\\\"id\\\"]]]]],[14,0,\\\"slideshow-jplayer\\\"],[12],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"slideshow-player\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"audio\\\"],[14,0,\\\"player\\\"],[14,\\\"src\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"audio-player-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"playpause tababble\\\"],[14,\\\"aria-label\\\",\\\"Play slideshow\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-play\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"playpause inactive tababble\\\"],[14,\\\"aria-label\\\",\\\"Pause slideshow\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-pause\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"player-seek\\\"],[14,0,\\\"player-seek tababble\\\"],[14,\\\"min\\\",\\\"0\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,\\\"step\\\",\\\"1\\\"],[14,2,\\\"0\\\"],[14,\\\"onchange\\\",\\\"\\\"],[14,\\\"aria-label\\\",\\\"Seek Audio\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"mute mute-off tababble\\\"],[14,\\\"aria-label\\\",\\\"Mute Audio\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-volume-up\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"mute mute-on inactive tababble\\\"],[14,\\\"aria-label\\\",\\\"Unmute Audio\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-volume-mute\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,1,\\\"volumeSeek\\\"],[14,0,\\\"volume-seek tababble\\\"],[14,\\\"min\\\",\\\"0.0\\\"],[14,\\\"max\\\",\\\"1.0\\\"],[14,2,\\\"0.6\\\"],[14,\\\"step\\\",\\\"0.1\\\"],[14,\\\"onchange\\\",\\\"\\\"],[14,\\\"aria-label\\\",\\\"Seek Audio volume\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"speed-select-wrapper\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,0,\\\"speed-select tababble\\\"],[14,\\\"aria-label\\\",\\\"Playback speed options\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"0.25\\\"],[14,2,\\\"0.25\\\"],[12],[1,\\\"0.25\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"0.5\\\"],[14,2,\\\"0.5\\\"],[12],[1,\\\"0.5\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"0.75\\\"],[14,2,\\\"0.75\\\"],[12],[1,\\\"0.75\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"Normal\\\"],[14,2,\\\"1\\\"],[12],[1,\\\"Normal\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"1.25\\\"],[14,2,\\\"1.25\\\"],[12],[1,\\\"1.25\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"1.5\\\"],[14,2,\\\"1.5\\\"],[12],[1,\\\"1.5\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"1.75\\\"],[14,2,\\\"1.75\\\"],[12],[1,\\\"1.75\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"2.0\\\"],[14,2,\\\"2\\\"],[12],[1,\\\"2.0\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"2.5\\\"],[14,2,\\\"2.5\\\"],[12],[1,\\\"2.5\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,\\\"aria-label\\\",\\\"3.0\\\"],[14,2,\\\"3\\\"],[12],[1,\\\"3.0\\\"],[13],[1,\\\"\\\\n option>\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"loop tababble\\\"],[14,\\\"aria-label\\\",\\\"Loop Audio off\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-repeat\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"zoom-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"zoom_in tababble\\\"],[14,\\\"aria-label\\\",\\\"Zoom In\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-search-plus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"zoom_out tababble\\\"],[14,\\\"aria-label\\\",\\\"Zoom Out\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-search-minus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"zoom_zero hidden tababble\\\"],[14,\\\"aria-label\\\",\\\"Reset Zoom\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-undo\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-minus\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"page-controls fr\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"back noclick tababble\\\"],[14,\\\"aria-label\\\",\\\"Previous Key\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-circle-left\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"pages\\\"],[12],[1,\\\"1 of 1\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"forward tababble\\\"],[14,\\\"aria-label\\\",\\\"Next Page\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fa fa-arrow-circle-right\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\\n\\\"],[10,0],[14,\\\"data-id\\\",\\\"3\\\"],[14,0,\\\"page_container Slideshow__container grabbable\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"image_area Slideshow__show\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"image_container Slideshow__show--image\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,\\\"src\\\",\\\"\\\"],[14,\\\"alt\\\",\\\"Slideshow content\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"highlight_container Slideshow__show--highlight\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"playbar\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"svg\\\"],[14,0,\\\"highlight_svg\\\"],[14,\\\"viewBox\\\",\\\"0 0 140 150\\\"],[14,\\\"preserveAspectRatio\\\",\\\"xMidYMid meet\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"highlight hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"audio\\\",\\\"button\\\",\\\"i\\\",\\\"input\\\",\\\"span\\\",\\\"select\\\",\\\"option\\\",\\\"img\\\",\\\"svg\\\",\\\"rect\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/slideshow/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/solfegeladder/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! var reference_button, play_button, answer_button, next_button, prev_button, current_exercise_number, total_exercise_number, }}\n \n
    \n
    Solfege Ladder\n
    \n
    \n \n \n \n
    Exercise\n x\n of\n n
    \n \n \n \n
    \n
    \n
    \n Key:\n \n
    \n \n Hear Reference Tone\n \n \n \n \n
    \n {{! solfege exercise controller div: }}\n
    \n \n
    Play
    \n \n \n
    \n
    \n {{! end solfege exercise controller div }}\n
    \n
    \n
    \n \n
    Mi3
    \n
    Re2
    \n
    Do1
    \n \n
    \n \n \n
    Ti7
    \n
    La6
    \n
    Sol5
    \n
    Fa4
    \n
    Mi3
    \n
    Re2
    \n
    Do1
    \n \n \n
    Ti7
    \n
    La6
    \n
    Sol5
    \n \n
    \n \n \n
    Ri♯2
    \n
    Di♯1
    \n
    Li♯6
    \n
    Si♯5
    \n
    Fi♯4
    \n
    Ri♯2
    \n
    Di♯1
    \n
    Li♯6
    \n
    Si♯5
    \n \n \n
    Me♭3
    \n
    Ra♭2
    \n
    Te♭7
    \n
    Le♭6
    \n
    Se♭5
    \n
    Me♭3
    \n
    Ra♭2
    \n
    Te♭7
    \n
    Le♭6
    \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"DH+10Kfm\",\n \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"solfege-ladder\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-header\\\"],[12],[10,1],[14,1,\\\"solfege-title\\\"],[12],[1,\\\"Solfege Ladder\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,1,\\\"solfege-mode-selector\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"performance\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"Performance\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"recognition\\\"],[12],[1,\\\"Recognition\\\"],[13],[1,\\\"\\\\n \\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-exercise-count-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"solfege-btn-back\\\"],[14,1,\\\"solfege-btn-back\\\"],[14,\\\"aria-label\\\",\\\"Previous Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-left\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-exercise-count\\\"],[12],[1,\\\"Exercise\\\\n \\\"],[10,1],[14,1,\\\"exercise_number\\\"],[12],[1,\\\"x\\\"],[13],[1,\\\"\\\\n of\\\\n \\\"],[10,1],[14,1,\\\"total_exercise_number\\\"],[12],[1,\\\"n\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"solfege-btn-forward\\\"],[14,1,\\\"solfege-btn-forward\\\"],[14,\\\"aria-label\\\",\\\"Next Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-right\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-scale-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-scale\\\"],[12],[1,\\\"\\\\n Key:\\\\n \\\"],[10,1],[14,1,\\\"solfege-scale-text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-ref\\\"],[14,0,\\\"button solfege-btn-ref\\\"],[14,\\\"aria-label\\\",\\\"Play Reference Tone\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Hear Reference Tone\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-volume\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"play_speed\\\"],[14,0,\\\"play-speed-label\\\"],[12],[1,\\\"Play speed:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,3,\\\"play_speed\\\"],[14,1,\\\"select_speed\\\"],[14,0,\\\"play-speed-select\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[12],[1,\\\"1s\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"1.5\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"1.5s\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[12],[1,\\\"2s\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[12],[1,\\\"3s\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"solfege-exercise-area\\\"],[14,1,\\\"solfege-exercise-area\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-play\\\"],[14,0,\\\"button play solfege-btn-play\\\"],[14,\\\"aria-label\\\",\\\"Play Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"\\\"],[14,1,\\\"solfege-btn-play-cue\\\"],[12],[1,\\\"Play\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-play\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-random\\\"],[14,0,\\\"button hidden solfege-btn-random\\\"],[14,\\\"aria-label\\\",\\\"Randomize Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Shuffle\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-random\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-loop\\\"],[14,0,\\\"button hidden solfege-btn-loop\\\"],[14,\\\"aria-label\\\",\\\"Loop Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Loop\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-answer\\\"],[14,0,\\\"button hidden solfege-btn-answer\\\"],[14,\\\"aria-label\\\",\\\"Hear Answer\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Answer\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-retry-quiz\\\"],[14,0,\\\"button hidden solfege-btn-retry-quiz\\\"],[14,\\\"aria-label\\\",\\\"Reset Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Reset Exercise\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-next\\\"],[14,0,\\\"button hidden\\\"],[14,\\\"aria-label\\\",\\\"Next Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Next\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-right\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"solfege-quiz-message\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"solfege-svg-container\\\"],[14,1,\\\"solfege-svg-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"squares_layer\\\"],[14,0,\\\"squares_layer\\\"],[14,\\\"data-name\\\",\\\"squares_layer\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"layout_default\\\"],[14,0,\\\"mode_selector\\\"],[12],[1,\\\"\\\\n \\\"],[3,\\\" High Octave \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one high-mi scale-major note-natural\\\"],[14,1,\\\"high-3-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Mi\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"3\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-two high-re scale-major note-natural\\\"],[14,1,\\\"high-2-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Re\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"2\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one high-do scale-major note-natural\\\"],[14,1,\\\"high-1-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Do\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"1\\\"],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"horizontal-line\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[3,\\\" Mid Octave \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-two mid-ti scale-major note-natural\\\"],[14,1,\\\"mid-7-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Ti\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"7\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one mid-la scale-major note-natural\\\"],[14,1,\\\"mid-6-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"La\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"6\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-two mid-sol scale-major note-natural\\\"],[14,1,\\\"mid-5-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Sol\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"5\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one mid-fa scale-major note-natural\\\"],[14,1,\\\"mid-4-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Fa\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"4\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-two mid-mi scale-major note-natural\\\"],[14,1,\\\"mid-3-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Mi\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"3\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one mid-re scale-major note-natural\\\"],[14,1,\\\"mid-2-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Re\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"2\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-two mid-do scale-major note-natural\\\"],[14,1,\\\"mid-1-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Do\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"1\\\"],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[3,\\\" Low Octave \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one low-ti scale-major note-natural\\\"],[14,1,\\\"low-7-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Ti\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"7\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-two low-la scale-major note-natural\\\"],[14,1,\\\"low-6-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"La\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"6\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-one low-sol scale-major note-natural\\\"],[14,1,\\\"low-5-natural\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Sol\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"5\\\"],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"hr\\\"],[14,0,\\\"horizontal-line hr-btm\\\"],[12],[13],[1,\\\"\\\\n\\\\n \\\"],[3,\\\" Sharp Notes \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three high-ri scale-chrom note-sharp\\\"],[14,1,\\\"high-2-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Ri\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯2\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four high-di scale-chrom note-sharp\\\"],[14,1,\\\"high-1-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Di\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯1\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three mid-li scale-chrom note-sharp\\\"],[14,1,\\\"mid-6-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Li\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯6\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four mid-si scale-chrom note-sharp\\\"],[14,1,\\\"mid-5-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Si\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯5\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three mid-fi scale-modal note-sharp\\\"],[14,1,\\\"mid-4-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Fi\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯4\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three mid-ri scale-chrom note-sharp\\\"],[14,1,\\\"mid-2-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Ri\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯2\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four mid-di scale-chrom note-sharp\\\"],[14,1,\\\"mid-1-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Di\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯1\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three low-li scale-chrom note-sharp\\\"],[14,1,\\\"low-6-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Li\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯6\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four low-si scale-chrom note-sharp\\\"],[14,1,\\\"low-5-sharp\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Si\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♯5\\\"],[13],[13],[1,\\\"\\\\n\\\\n \\\"],[3,\\\" Flat Notes \\\"],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three high-me scale-maj-min note-flat\\\"],[14,1,\\\"high-3-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Me\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭3\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four high-ra scale-modal note-flat\\\"],[14,1,\\\"high-2-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Ra\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭2\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three mid-te scale-maj-min note-flat\\\"],[14,1,\\\"mid-7-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Te\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭7\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four mid-le scale-maj-min note-flat\\\"],[14,1,\\\"mid-6-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Le\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭6\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three mid-se scale-chrom note-flat\\\"],[14,1,\\\"mid-5-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Se\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭5\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three mid-me scale-maj-min note-flat\\\"],[14,1,\\\"mid-3-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Me\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭3\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four mid-ra scale-modal note-flat\\\"],[14,1,\\\"mid-2-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Ra\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭2\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-three low-te scale-maj-min note-flat\\\"],[14,1,\\\"low-7-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Te\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭7\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"note-rect color-four low-le scale-maj-min note-flat\\\"],[14,1,\\\"low-6-flat\\\"],[12],[10,1],[14,0,\\\"note-name\\\"],[12],[1,\\\"Le\\\"],[13],[10,1],[14,0,\\\"note-info\\\"],[12],[1,\\\"♭6\\\"],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"span\\\",\\\"select\\\",\\\"option\\\",\\\"button\\\",\\\"i\\\",\\\"label\\\",\\\"hr\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/solfegeladder/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/solfegeladder/major-key-exp-pallet\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{! var reference_button, play_button, answer_button, next_button, prev_button, current_exercise_number, total_exercise_number, }}\n \n
    \n
    Solfege Ladder\n
    \n
    \n \n \n \n
    Exercise\n x\n of\n n
    \n \n \n \n
    \n
    \n
    \n Key:\n \n
    \n \n Hear Reference Tone\n \n \n \n \n
    \n {{! solfege exercise controller div: }}\n
    \n \n
    Play
    \n \n \n
    \n
    \n {{! end solfege exercise controller div }}\n
    \n \n Solfege Ladder SVG\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n */\n {\n \"id\": \"3IfGUcmF\",\n \"block\": \"[[[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"solfege-ladder\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-header\\\"],[12],[1,\\\"Solfege Ladder\\\\n \\\"],[10,\\\"select\\\"],[14,1,\\\"solfege-mode-selector\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"performance\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"Performance\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"recognition\\\"],[12],[1,\\\"Recognition\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"quiz\\\"],[12],[1,\\\"Quiz\\\"],[13],[1,\\\"\\\\n \\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-exercise-count-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"solfege-btn-back\\\"],[14,1,\\\"solfege-btn-back\\\"],[14,\\\"aria-label\\\",\\\"Previous Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-left\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-exercise-count\\\"],[12],[1,\\\"Exercise\\\\n \\\"],[10,1],[14,1,\\\"exercise_number\\\"],[12],[1,\\\"x\\\"],[13],[1,\\\"\\\\n of\\\\n \\\"],[10,1],[14,1,\\\"total_exercise_number\\\"],[12],[1,\\\"n\\\"],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"solfege-btn-forward\\\"],[14,1,\\\"solfege-btn-forward\\\"],[14,\\\"aria-label\\\",\\\"Next Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-right\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-scale-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"solfege-scale\\\"],[12],[1,\\\"\\\\n Key:\\\\n \\\"],[10,1],[14,1,\\\"solfege-scale-text\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-ref\\\"],[14,0,\\\"button solfege-btn-ref\\\"],[14,\\\"aria-label\\\",\\\"Play Reference Tone\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Hear Reference Tone\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-volume\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"play_speed\\\"],[14,0,\\\"play-speed-label\\\"],[12],[1,\\\"Play speed:\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,3,\\\"play_speed\\\"],[14,1,\\\"select_speed\\\"],[14,0,\\\"play-speed-select\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"1\\\"],[12],[1,\\\"1s\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"1.5\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[1,\\\"1.5s\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"2\\\"],[12],[1,\\\"2s\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"3\\\"],[12],[1,\\\"3s\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"solfege-exercise-area\\\"],[14,1,\\\"solfege-exercise-area\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-play\\\"],[14,0,\\\"button play solfege-btn-play\\\"],[14,\\\"aria-label\\\",\\\"Play Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"\\\"],[14,1,\\\"solfege-btn-play-cue\\\"],[12],[1,\\\"Play\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-play\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-random\\\"],[14,0,\\\"button hidden solfege-btn-random\\\"],[14,\\\"aria-label\\\",\\\"Randomize Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Shuffle\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-random\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-loop\\\"],[14,0,\\\"button hidden solfege-btn-loop\\\"],[14,\\\"aria-label\\\",\\\"Loop Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Loop\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-sync-alt\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-answer\\\"],[14,0,\\\"button hidden solfege-btn-answer\\\"],[14,\\\"aria-label\\\",\\\"Hear Answer\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Check Answer\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-retry-quiz\\\"],[14,0,\\\"button hidden solfege-btn-retry-quiz\\\"],[14,\\\"aria-label\\\",\\\"Retry Quiz\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Reset Quiz\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,1,\\\"solfege-btn-next\\\"],[14,0,\\\"button hidden\\\"],[14,\\\"aria-label\\\",\\\"Next Exercise\\\"],[14,4,\\\"button\\\"],[12],[1,\\\"\\\\n Next\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-circle-right\\\"],[14,\\\"aria-hidden\\\",\\\"\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,1,\\\"solfege-quiz-message\\\"],[12],[13],[1,\\\"\\\\n\\\"],[1,\\\" \\\"],[10,0],[14,0,\\\"solfege-svg-container\\\"],[14,1,\\\"solfege-svg-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"width\\\",\\\"365px\\\"],[14,\\\"height\\\",\\\"670px\\\"],[14,\\\"viewBox\\\",\\\"0 0 365 670\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"title\\\"],[12],[1,\\\"Solfege Ladder SVG\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,1,\\\"text_layer\\\"],[14,\\\"data-name\\\",\\\"text_layer\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m259.8,41.52v3.08h-8.7v22.75h-3.53v-22.75h-8.7v-3.08h20.94Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m270.23,49.03c1.25.63,2.2,1.44,2.85,2.43.63.95,1.05,2.06,1.26,3.32.19.87.28,2.25.28,4.15h-13.69c.06,1.92.51,3.45,1.34,4.61.84,1.16,2.13,1.74,3.89,1.74,1.64,0,2.95-.55,3.92-1.64.55-.63.93-1.37,1.16-2.21h3.11c-.08.69-.35,1.46-.82,2.31s-.98,1.54-1.55,2.08c-.95.94-2.13,1.57-3.54,1.9-.76.19-1.61.28-2.56.28-2.33,0-4.3-.85-5.92-2.56-1.62-1.71-2.43-4.09-2.43-7.16s.82-5.48,2.45-7.37c1.63-1.89,3.76-2.83,6.39-2.83,1.33,0,2.61.31,3.86.94Zm1.13,7.39c-.13-1.37-.42-2.47-.89-3.29-.86-1.52-2.29-2.29-4.3-2.29-1.44,0-2.65.52-3.62,1.57-.98,1.05-1.49,2.38-1.55,4h10.37Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m324.08,81.56h3.5v22.75h12.96v3.08h-16.45v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m353.77,95.99c.73-.09,1.21-.4,1.46-.91.14-.28.21-.69.21-1.22,0-1.08-.38-1.87-1.15-2.36-.77-.49-1.86-.73-3.29-.73-1.65,0-2.82.45-3.51,1.34-.39.5-.64,1.23-.75,2.21h-2.95c.06-2.33.81-3.95,2.26-4.86,1.45-.91,3.12-1.37,5.03-1.37,2.21,0,4.01.42,5.39,1.27,1.37.84,2.05,2.16,2.05,3.94v10.85c0,.33.07.59.2.79.13.2.42.3.85.3.14,0,.3,0,.47-.03s.36-.04.56-.08v2.34c-.49.14-.87.23-1.12.26s-.61.05-1.05.05c-1.09,0-1.88-.39-2.37-1.16-.26-.41-.44-.99-.54-1.74-.64.84-1.57,1.58-2.78,2.2s-2.54.93-3.99.93c-1.75,0-3.17-.53-4.28-1.59-1.11-1.06-1.66-2.38-1.66-3.98,0-1.74.54-3.1,1.63-4.06,1.09-.96,2.52-1.55,4.29-1.77l5.05-.63Zm-6.66,8.55c.67.53,1.46.79,2.37.79,1.11,0,2.19-.26,3.23-.77,1.76-.85,2.64-2.25,2.64-4.19v-2.54c-.39.25-.88.45-1.49.62-.61.17-1.2.28-1.79.35l-1.91.25c-1.15.15-2.01.39-2.59.72-.98.55-1.47,1.43-1.47,2.63,0,.91.33,1.63,1,2.16Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m403.25,183.41c.08,1.46.41,2.65,1,3.57,1.12,1.71,3.09,2.57,5.91,2.57,1.26,0,2.42-.19,3.45-.56,2.01-.73,3.01-2.03,3.01-3.9,0-1.41-.43-2.41-1.28-3.01-.86-.59-2.21-1.1-4.05-1.53l-3.39-.79c-2.21-.52-3.78-1.08-4.7-1.71-1.59-1.08-2.38-2.69-2.38-4.83,0-2.32.78-4.22,2.34-5.71,1.56-1.49,3.78-2.23,6.64-2.23,2.63,0,4.87.65,6.71,1.96s2.76,3.4,2.76,6.27h-3.29c-.17-1.38-.53-2.44-1.08-3.18-1.02-1.35-2.76-2.02-5.21-2.02-1.98,0-3.4.43-4.26,1.3s-1.3,1.88-1.3,3.02c0,1.27.51,2.19,1.53,2.78.67.38,2.19.84,4.55,1.41l3.51.83c1.69.4,3,.94,3.92,1.63,1.59,1.21,2.38,2.96,2.38,5.26,0,2.86-1.01,4.9-3.04,6.13-2.03,1.23-4.39,1.85-7.07,1.85-3.13,0-5.58-.82-7.35-2.46-1.77-1.63-2.64-3.84-2.61-6.63h3.29Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m438.2,174.8c1.66,1.62,2.5,3.99,2.5,7.13s-.73,5.54-2.2,7.52c-1.47,1.98-3.74,2.97-6.83,2.97-2.57,0-4.61-.88-6.13-2.62-1.51-1.75-2.27-4.1-2.27-7.05,0-3.16.8-5.68,2.39-7.55,1.59-1.87,3.74-2.81,6.42-2.81,2.41,0,4.45.81,6.11,2.42Zm-1.96,12.51c.77-1.59,1.16-3.35,1.16-5.29,0-1.76-.28-3.18-.83-4.28-.88-1.73-2.4-2.6-4.55-2.6-1.91,0-3.3.74-4.17,2.21-.87,1.48-1.3,3.25-1.3,5.34s.43,3.67,1.3,5c.87,1.33,2.25,2,4.14,2,2.07,0,3.5-.79,4.27-2.38Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m444.67,165.92h3.16v25.82h-3.16v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m490.77,109.37h3.5v22.75h12.96v3.08h-16.45v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m522,116.89c1.25.63,2.2,1.44,2.85,2.44.63.95,1.05,2.06,1.26,3.32.19.87.28,2.25.28,4.15h-13.69c.06,1.91.51,3.45,1.34,4.61.84,1.16,2.13,1.74,3.89,1.74,1.64,0,2.95-.55,3.92-1.64.55-.63.93-1.37,1.16-2.21h3.11c-.08.69-.35,1.46-.82,2.31s-.98,1.54-1.55,2.08c-.95.94-2.13,1.57-3.54,1.9-.76.19-1.61.28-2.56.28-2.33,0-4.3-.85-5.92-2.56s-2.43-4.09-2.43-7.16.82-5.48,2.45-7.37c1.63-1.89,3.76-2.83,6.39-2.83,1.33,0,2.61.31,3.86.94Zm1.13,7.39c-.13-1.37-.42-2.47-.89-3.29-.86-1.52-2.29-2.29-4.3-2.29-1.44,0-2.65.52-3.63,1.57-.98,1.05-1.49,2.38-1.55,4h10.37Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m496.13,200.66h17.91v3.16h-14.41v7.84h12.67v3.08h-12.67v11.74h-3.5v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m517.37,200.66h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m494.22,387.46h11.74c1.93,0,3.53.29,4.78.86,2.38,1.1,3.57,3.13,3.57,6.1,0,1.55-.32,2.81-.96,3.8s-1.53,1.78-2.68,2.37c1.01.41,1.77.95,2.28,1.62s.79,1.75.85,3.25l.12,3.46c.04.98.12,1.72.25,2.2.21.82.59,1.35,1.12,1.58v.58h-4.29c-.12-.22-.21-.51-.28-.86s-.13-1.03-.18-2.04l-.21-4.31c-.08-1.69-.69-2.82-1.83-3.39-.65-.32-1.67-.47-3.06-.47h-7.74v11.07h-3.5v-25.82Zm11.36,11.83c1.59,0,2.86-.33,3.79-.98s1.39-1.84,1.39-3.55c0-1.84-.65-3.09-1.95-3.76-.7-.35-1.62-.53-2.79-.53h-8.31v8.82h7.86Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m519.37,387.46h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m488.21,500.92h11.74c1.93,0,3.53.29,4.78.86,2.38,1.1,3.57,3.13,3.57,6.1,0,1.55-.32,2.81-.96,3.8s-1.53,1.78-2.68,2.37c1.01.41,1.77.95,2.28,1.62s.79,1.75.85,3.25l.12,3.46c.04.98.12,1.72.25,2.2.21.82.59,1.35,1.12,1.58v.58h-4.29c-.12-.22-.21-.51-.28-.86s-.13-1.03-.18-2.04l-.21-4.31c-.08-1.69-.69-2.82-1.83-3.39-.65-.32-1.67-.47-3.06-.47h-7.74v11.07h-3.5v-25.82Zm11.36,11.83c1.59,0,2.86-.33,3.79-.98s1.39-1.84,1.39-3.55c0-1.84-.65-3.09-1.95-3.76-.7-.35-1.62-.53-2.79-.53h-8.31v8.82h7.86Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m523.45,515.35c.73-.09,1.21-.4,1.46-.91.14-.28.21-.69.21-1.22,0-1.08-.38-1.87-1.15-2.36s-1.86-.73-3.29-.73c-1.65,0-2.82.45-3.51,1.34-.39.5-.64,1.23-.75,2.21h-2.95c.06-2.33.81-3.95,2.26-4.86s3.12-1.37,5.03-1.37c2.21,0,4.01.42,5.39,1.27,1.37.84,2.05,2.16,2.05,3.94v10.85c0,.33.07.59.2.79.13.2.42.3.85.3.14,0,.3,0,.47-.03s.36-.04.56-.08v2.34c-.49.14-.87.23-1.12.26s-.61.05-1.05.05c-1.09,0-1.88-.39-2.37-1.16-.26-.41-.44-.99-.54-1.74-.64.84-1.57,1.58-2.78,2.2s-2.54.93-3.99.93c-1.75,0-3.17-.53-4.28-1.59-1.11-1.06-1.66-2.38-1.66-3.98,0-1.74.54-3.1,1.63-4.06,1.09-.96,2.52-1.55,4.29-1.77l5.04-.63Zm-6.66,8.55c.67.53,1.46.79,2.37.79,1.11,0,2.19-.26,3.23-.77,1.76-.85,2.64-2.25,2.64-4.19v-2.54c-.39.25-.88.45-1.49.62-.61.17-1.21.28-1.79.35l-1.91.25c-1.15.15-2.01.39-2.58.72-.98.55-1.47,1.43-1.47,2.63,0,.91.33,1.63,1,2.16Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m407.9,337.99h5.01l7.43,21.83,7.37-21.83h4.98v25.82h-3.34v-15.24c0-.53.01-1.4.04-2.62s.04-2.53.04-3.92l-7.37,21.78h-3.47l-7.44-21.78v.79c0,.63.02,1.6.05,2.89s.05,2.25.05,2.86v15.24h-3.34v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m437.56,337.99h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m404.13,540.07h10.32c3.5,0,6.22,1.26,8.15,3.78,1.72,2.27,2.58,5.19,2.58,8.74,0,2.74-.51,5.22-1.53,7.44-1.79,3.91-4.88,5.87-9.25,5.87h-10.29v-25.82Zm9.63,22.83c1.16,0,2.11-.12,2.85-.37,1.33-.46,2.42-1.34,3.27-2.64.68-1.04,1.16-2.38,1.46-4.01.17-.97.26-1.88.26-2.71,0-3.2-.62-5.68-1.87-7.45s-3.25-2.65-6.01-2.65h-6.07v19.83h6.1Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m443.19,548.94c1.66,1.62,2.5,3.99,2.5,7.13s-.73,5.54-2.2,7.52c-1.47,1.98-3.74,2.97-6.83,2.97-2.57,0-4.61-.88-6.13-2.62-1.51-1.75-2.27-4.1-2.27-7.05,0-3.16.8-5.68,2.39-7.55,1.59-1.87,3.74-2.81,6.42-2.81,2.41,0,4.45.81,6.11,2.42Zm-1.96,12.51c.77-1.59,1.16-3.35,1.16-5.29,0-1.76-.28-3.18-.83-4.28-.88-1.73-2.4-2.6-4.55-2.6-1.91,0-3.3.74-4.17,2.21-.87,1.48-1.3,3.25-1.3,5.34s.43,3.67,1.3,5c.87,1.33,2.25,2,4.14,2,2.07,0,3.5-.79,4.27-2.38Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m323.43,290.42h17.91v3.16h-14.41v7.84h12.67v3.08h-12.67v11.74h-3.5v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m354.76,304.85c.73-.09,1.21-.4,1.46-.91.14-.28.21-.69.21-1.22,0-1.08-.38-1.87-1.15-2.36-.77-.49-1.86-.73-3.29-.73-1.65,0-2.82.45-3.51,1.34-.39.5-.64,1.23-.75,2.21h-2.95c.06-2.33.81-3.95,2.26-4.86,1.45-.91,3.12-1.37,5.03-1.37,2.21,0,4.01.42,5.39,1.27,1.37.84,2.05,2.16,2.05,3.94v10.85c0,.33.07.59.2.79.13.2.42.3.85.3.14,0,.3,0,.47-.03s.36-.04.56-.08v2.34c-.49.14-.87.23-1.12.26s-.61.05-1.05.05c-1.09,0-1.88-.39-2.37-1.16-.26-.41-.44-.99-.54-1.74-.64.84-1.57,1.58-2.78,2.2s-2.54.93-3.99.93c-1.75,0-3.17-.53-4.28-1.59-1.11-1.06-1.66-2.38-1.66-3.98,0-1.74.54-3.1,1.63-4.06,1.09-.96,2.52-1.55,4.29-1.77l5.05-.63Zm-6.66,8.55c.67.53,1.46.79,2.37.79,1.11,0,2.19-.26,3.23-.77,1.76-.85,2.64-2.25,2.64-4.19v-2.54c-.39.25-.88.45-1.49.62-.61.17-1.2.28-1.79.35l-1.91.25c-1.15.15-2.01.39-2.59.72-.98.55-1.47,1.43-1.47,2.63,0,.91.33,1.63,1,2.16Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m321.52,462.54h11.74c1.93,0,3.53.29,4.78.86,2.38,1.1,3.57,3.13,3.57,6.1,0,1.55-.32,2.81-.96,3.8s-1.53,1.78-2.68,2.37c1.01.41,1.77.95,2.28,1.62s.79,1.75.85,3.25l.12,3.46c.04.98.12,1.72.25,2.2.21.82.59,1.35,1.12,1.58v.58h-4.29c-.12-.22-.21-.51-.28-.86s-.13-1.03-.18-2.04l-.21-4.31c-.08-1.69-.69-2.82-1.83-3.39-.65-.32-1.67-.47-3.06-.47h-7.74v11.07h-3.5v-25.82Zm11.36,11.83c1.6,0,2.86-.33,3.79-.98.93-.66,1.39-1.84,1.39-3.55,0-1.84-.65-3.09-1.95-3.76-.7-.35-1.62-.53-2.79-.53h-8.31v8.82h7.86Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m358.3,470.06c1.25.63,2.2,1.44,2.85,2.43.63.95,1.05,2.06,1.26,3.32.19.87.28,2.25.28,4.15h-13.69c.06,1.92.51,3.45,1.34,4.61.84,1.16,2.13,1.74,3.89,1.74,1.64,0,2.95-.55,3.92-1.64.55-.63.93-1.37,1.16-2.21h3.11c-.08.69-.35,1.46-.82,2.31s-.98,1.54-1.55,2.08c-.95.94-2.13,1.57-3.54,1.9-.76.19-1.61.28-2.56.28-2.33,0-4.3-.85-5.92-2.56-1.62-1.71-2.43-4.09-2.43-7.16s.82-5.48,2.45-7.37c1.63-1.89,3.76-2.83,6.39-2.83,1.33,0,2.61.31,3.86.94Zm1.13,7.39c-.13-1.37-.42-2.47-.89-3.29-.86-1.52-2.29-2.29-4.31-2.29-1.44,0-2.65.53-3.62,1.57-.98,1.05-1.49,2.38-1.55,4h10.37Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m348.54,597.65v3.08h-8.7v22.75h-3.53v-22.75h-8.7v-3.08h20.94Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m350.02,597.65h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m246.32,145.53c.08,1.46.41,2.65,1,3.57,1.12,1.71,3.09,2.57,5.91,2.57,1.26,0,2.42-.19,3.45-.56,2.01-.73,3.01-2.03,3.01-3.9,0-1.41-.43-2.41-1.28-3.01-.86-.59-2.21-1.1-4.05-1.53l-3.39-.79c-2.21-.52-3.78-1.08-4.7-1.71-1.59-1.08-2.38-2.69-2.38-4.83,0-2.32.78-4.22,2.34-5.71,1.56-1.49,3.78-2.23,6.64-2.23,2.63,0,4.87.65,6.71,1.96s2.76,3.39,2.76,6.27h-3.29c-.17-1.38-.53-2.44-1.08-3.18-1.02-1.35-2.76-2.02-5.21-2.02-1.98,0-3.4.43-4.26,1.3s-1.3,1.88-1.3,3.02c0,1.27.51,2.19,1.53,2.78.67.38,2.19.84,4.55,1.41l3.51.83c1.69.4,3,.94,3.92,1.63,1.59,1.21,2.38,2.96,2.38,5.26,0,2.86-1.01,4.9-3.04,6.13s-4.39,1.85-7.07,1.85c-3.13,0-5.58-.82-7.35-2.46-1.77-1.63-2.64-3.84-2.61-6.63h3.29Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m267.62,128.04h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m240.31,268.48c.08,1.46.41,2.65,1,3.57,1.12,1.71,3.09,2.57,5.91,2.57,1.26,0,2.42-.19,3.45-.56,2.01-.73,3.01-2.03,3.01-3.9,0-1.41-.43-2.41-1.28-3.01-.86-.59-2.21-1.1-4.05-1.53l-3.39-.79c-2.21-.52-3.78-1.08-4.7-1.71-1.59-1.08-2.38-2.69-2.38-4.83,0-2.32.78-4.22,2.34-5.71,1.56-1.49,3.78-2.23,6.64-2.23,2.63,0,4.87.65,6.71,1.96s2.76,3.4,2.76,6.27h-3.29c-.17-1.38-.53-2.44-1.08-3.18-1.02-1.35-2.76-2.02-5.21-2.02-1.98,0-3.4.43-4.26,1.3s-1.3,1.88-1.3,3.02c0,1.27.51,2.19,1.53,2.78.67.38,2.19.84,4.55,1.41l3.51.83c1.69.4,3,.94,3.92,1.63,1.59,1.21,2.38,2.96,2.38,5.26,0,2.86-1.01,4.9-3.04,6.13s-4.39,1.85-7.07,1.85c-3.13,0-5.58-.82-7.35-2.46-1.77-1.63-2.64-3.84-2.61-6.63h3.29Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m273.24,258.5c1.25.63,2.2,1.44,2.85,2.43.63.95,1.05,2.06,1.26,3.32.19.87.28,2.25.28,4.15h-13.69c.06,1.92.51,3.45,1.34,4.61.84,1.16,2.13,1.74,3.89,1.74,1.64,0,2.95-.55,3.92-1.64.55-.63.93-1.37,1.16-2.21h3.11c-.08.69-.35,1.46-.82,2.31s-.98,1.54-1.55,2.08c-.95.94-2.13,1.57-3.54,1.9-.76.19-1.61.28-2.56.28-2.33,0-4.3-.85-5.92-2.56-1.62-1.71-2.43-4.09-2.43-7.16s.82-5.48,2.45-7.37c1.63-1.89,3.76-2.83,6.39-2.83,1.33,0,2.61.31,3.86.94Zm1.13,7.39c-.13-1.37-.42-2.47-.89-3.29-.86-1.52-2.29-2.29-4.3-2.29-1.44,0-2.65.52-3.62,1.57-.98,1.05-1.49,2.38-1.55,4h10.37Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m234.94,409.86h5.01l7.43,21.83,7.37-21.83h4.98v25.82h-3.34v-15.24c0-.53.01-1.4.04-2.62s.04-2.53.04-3.92l-7.37,21.78h-3.47l-7.44-21.78v.79c0,.63.02,1.6.05,2.89s.05,2.25.05,2.86v15.24h-3.34v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m276.23,417.38c1.25.63,2.2,1.44,2.85,2.43.63.95,1.05,2.06,1.26,3.32.19.87.28,2.25.28,4.15h-13.69c.06,1.92.51,3.45,1.34,4.61.84,1.16,2.13,1.74,3.89,1.74,1.64,0,2.95-.55,3.92-1.64.55-.63.93-1.37,1.16-2.21h3.11c-.08.69-.35,1.46-.82,2.31s-.98,1.54-1.55,2.08c-.95.94-2.13,1.57-3.54,1.9-.76.19-1.61.28-2.56.28-2.33,0-4.3-.85-5.92-2.56-1.62-1.71-2.43-4.09-2.43-7.16s.82-5.48,2.45-7.37c1.63-1.89,3.76-2.83,6.39-2.83,1.33,0,2.61.31,3.86.94Zm1.13,7.39c-.13-1.37-.42-2.47-.89-3.29-.86-1.52-2.29-2.29-4.3-2.29-1.44,0-2.65.52-3.62,1.57-.98,1.05-1.49,2.38-1.55,4h10.37Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m243.2,499.64h10.32c3.5,0,6.22,1.26,8.15,3.78,1.72,2.27,2.58,5.19,2.58,8.74,0,2.74-.51,5.22-1.53,7.44-1.79,3.91-4.87,5.87-9.25,5.87h-10.29v-25.82Zm9.63,22.83c1.16,0,2.11-.12,2.85-.37,1.33-.46,2.42-1.34,3.27-2.64.68-1.04,1.16-2.38,1.46-4.01.17-.97.26-1.88.26-2.71,0-3.2-.62-5.68-1.87-7.45s-3.25-2.65-6.01-2.65h-6.07v19.83h6.1Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m268.62,499.64h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m246.03,640.16h3.5v22.75h12.96v3.08h-16.45v-25.82Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"cls-2\\\"],[14,\\\"d\\\",\\\"m265.63,640.16h3.22v3.59h-3.22v-3.59Zm0,7.08h3.22v18.74h-3.22v-18.74Z\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,1,\\\"squares_layer\\\"],[14,0,\\\"squares_layer\\\"],[14,\\\"data-name\\\",\\\"squares_layer\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"40\\\"],[14,\\\"y\\\",\\\"10.03\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"40\\\"],[14,\\\"y\\\",\\\"98.29\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"40\\\"],[14,\\\"y\\\",\\\"220.96\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"40\\\"],[14,\\\"y\\\",\\\"378.79\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"40\\\"],[14,\\\"y\\\",\\\"468.56\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"40\\\"],[14,\\\"y\\\",\\\"605.43\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"123.69\\\"],[14,\\\"y\\\",\\\"51.91\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"123.69\\\"],[14,\\\"y\\\",\\\"259.11\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"123.69\\\"],[14,\\\"y\\\",\\\"430.4\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"123.69\\\"],[14,\\\"y\\\",\\\"565.79\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"207.19\\\"],[14,\\\"y\\\",\\\"134.19\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"207.19\\\"],[14,\\\"y\\\",\\\"304.74\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"207.19\\\"],[14,\\\"y\\\",\\\"508.94\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"290.78\\\"],[14,\\\"y\\\",\\\"78.09\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"290.78\\\"],[14,\\\"y\\\",\\\"167.11\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"290.78\\\"],[14,\\\"y\\\",\\\"354.85\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,0,\\\"note-rect\\\"],[14,\\\"x\\\",\\\"290.78\\\"],[14,\\\"y\\\",\\\"468.31\\\"],[14,\\\"width\\\",\\\"83.59\\\"],[14,\\\"height\\\",\\\"89.36\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"select\\\",\\\"option\\\",\\\"button\\\",\\\"i\\\",\\\"span\\\",\\\"label\\\",\\\"svg\\\",\\\"title\\\",\\\"g\\\",\\\"path\\\",\\\"rect\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/solfegeladder/major-key-exp-pallet.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/textlineandtextselecthybrid/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n {{#each this.questions as |question|}}\n
    \n
    {{{question.question}}}
    \n
    \n {{#each question.answerSets as |answerSet|}}\n \n {{/each}}\n
    \n
    \n
    \n {{/each}}\n \n
    \n \n
    \n
    \n */\n {\n \"id\": \"cA+g+kmv\",\n \"block\": \"[[[42,[28,[37,1],[[28,[37,1],[[30,0,[\\\"questions\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,0],[14,0,\\\"question\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"text-line unanswered\\\"],[12],[2,[30,1,[\\\"question\\\"]]],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"answers fr\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,1,[\\\"answerSets\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"select\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,1],[[28,[37,1],[[30,2,[\\\"answers\\\"]]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"option\\\"],[12],[2,[30,3]],[13],[1,\\\"\\\\n\\\"]],[3]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"clear\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[1]],null],[10,0],[14,0,\\\"buttons\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"checkAnswers button\\\"],[12],[1,\\\"Check Answers\\\"],[13],[1,\\\"\\\\n \\\"],[10,3],[14,6,\\\"#\\\"],[14,0,\\\"reset button\\\"],[12],[1,\\\"Reset Quiz\\\"],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"feedback\\\"],[12],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"message\\\"],[12],[13],[1,\\\"\\\\n\\\"],[13],[1,\\\"\\\\n\\\"],[10,0],[14,0,\\\"final-text\\\"],[12],[13]],[\\\"question\\\",\\\"answerSet\\\",\\\"answer\\\"],[\\\"each\\\",\\\"-track-array\\\",\\\"div\\\",\\\"select\\\",\\\"option\\\",\\\"a\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/textlineandtextselecthybrid/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/textlineandtextselecthybrid/quizcomplete\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n Quiz Complete. Try again?\n */\n {\n \"id\": \"Inv49UMy\",\n \"block\": \"[[[10,3],[14,6,\\\"#\\\"],[14,0,\\\"try-again-btn hidden\\\"],[12],[1,\\\"Quiz Complete. Try again?\\\"],[13]],[],[\\\"a\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/textlineandtextselecthybrid/quizcomplete.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/timedwriting/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
      \n {{#each tabs as |tab|}}\n
    • {{{tab.linkHtml}}}
    • \n {{/each}}\n
    \n {{#each tabs as |tab|}}\n
    \n {{#if tab.isSummaryTab}}\n
    \n {{else}}\n
    \n {{{tab.question}}}\n {{{tab.question_node}}}\n
    \n
    \n
    \n \n \n
    Time:
    \n
    \n
    \n {{{tab.textareaHtml}}}\n
    \n {{/if}}\n
    \n {{/each}}\n
    \n */\n {\n \"id\": \"iIwj+4ab\",\n \"block\": \"[[[10,0],[14,0,\\\"tabs\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[31,4]],null]],null],null,[[[1,\\\" \\\"],[10,\\\"li\\\"],[12],[2,[30,1,[\\\"linkHtml\\\"]]],[13],[1,\\\"\\\\n\\\"]],[1]],null],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"],[42,[28,[37,3],[[28,[37,3],[[31,4]],null]],null],null,[[[1,\\\" \\\"],[10,0],[15,1,[29,[[30,2,[\\\"id\\\"]]]]],[12],[1,\\\"\\\\n\\\"],[41,[30,2,[\\\"isSummaryTab\\\"]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"summary-container\\\"],[12],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\" \\\"],[10,0],[14,0,\\\"question-container\\\"],[12],[1,\\\"\\\\n \\\"],[2,[30,2,[\\\"question\\\"]]],[1,\\\"\\\\n \\\"],[2,[30,2,[\\\"question_node\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"feedback hidden\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"buttons-row cf\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"start-timer\\\"],[12],[1,\\\"Start\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"reset\\\"],[12],[1,\\\"Reset\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"time-container\\\"],[12],[1,\\\"Time: \\\"],[10,1],[14,0,\\\"time\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[2,[30,2,[\\\"textareaHtml\\\"]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\" \\\"],[13],[1,\\\"\\\\n\\\"]],[2]],null],[13]],[\\\"tab\\\",\\\"tab\\\"],[\\\"div\\\",\\\"ul\\\",\\\"each\\\",\\\"-track-array\\\",\\\"tabs\\\",\\\"li\\\",\\\"if\\\",\\\"button\\\",\\\"span\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/timedwriting/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/timeline/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n */\n {\n \"id\": \"JIFzNbxG\",\n \"block\": \"[[[10,0],[14,0,\\\"container\\\"],[12],[10,0],[14,0,\\\"categories\\\"],[12],[13],[10,0],[14,0,\\\"clear\\\"],[12],[13],[13]],[],[\\\"div\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/timeline/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/interactions/videocommentary/main\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n \n \n \n
    \n \n
    \n
    \n
    How do you want to view the video?
    \n \n \n \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"Vu3nq8zh\",\n \"block\": \"[[[10,0],[14,0,\\\"video-commentary ready\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"commentary-video-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"commentary-video-player\\\"],[14,\\\"current\\\",\\\"0:00\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"video-menu\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"menu fas fa-bars\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,\\\"video\\\"],[14,\\\"playsinline\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"source\\\"],[15,\\\"src\\\",[29,[[37,5]]]],[14,4,\\\"video/mp4\\\"],[12],[13],[1,\\\"\\\\n Your browser does not support HTML5 video.\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"video-playpause\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"play fas fa-play\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"pause fas fa-pause\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"time-markers\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"min\\\",\\\"1\\\"],[14,\\\"max\\\",\\\"100\\\"],[14,2,\\\"0\\\"],[14,0,\\\"video-scrubber\\\"],[14,4,\\\"range\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"top-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"prompt-text\\\"],[12],[1,\\\"How do you want to view the video?\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"option-button option-play-through\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-play\\\"],[12],[13],[1,\\\"\\\\n Play through with commentary\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"option-button option-pause\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-pause\\\"],[12],[13],[1,\\\"\\\\n Pause at each commentary\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"option-button option-play-through no-comments\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-comment-slash\\\"],[12],[13],[1,\\\"\\\\n Play without commentary\\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"ctrl-button\\\"],[14,1,\\\"ctrl-continue\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-arrow-right\\\"],[12],[13],[1,\\\"\\\\n Continue\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\\n \\\"],[10,0],[14,0,\\\"bottom-controls\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"ctrl-button\\\"],[14,1,\\\"ctrl-prev\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fas fa-fast-backward\\\"],[12],[13],[1,\\\"\\\\n Previous Comment\\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"button\\\"],[14,0,\\\"ctrl-button\\\"],[14,1,\\\"ctrl-next\\\"],[12],[1,\\\"Next Comment\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"fas fa-fast-forward\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"commentary-container\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"button\\\",\\\"i\\\",\\\"video\\\",\\\"source\\\",\\\"videoSrc\\\",\\\"input\\\"]]\",\n \"moduleName\": \"bocce/templates/interactions/videocommentary/main.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/templates/loading\", [\"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 0; //eaimeta@70e063a35619d71f0,\"@ember/template-factory\"eaimeta@70e063a35619d71f\n var _default = _exports.default = (0, _templateFactory.createTemplateFactory)(\n /*\n
    \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    Course Title
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n
      \n \n \n
      \n Syllabus\n
      \n
      \n \n \n
      \n Activity\n
      \n
      \n \n \n
      \n Work\n
      \n
      \n \n \n \n
      \n Live\n
      \n
      \n \n \n \n
      \n Roster\n
      \n
      \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n Lesson Title\n
    \n
    \n \n
    \n
    \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n */\n {\n \"id\": \"Hph2dPOH\",\n \"block\": \"[[[10,0],[14,0,\\\"classroom\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__main\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__info-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,3],[14,0,\\\"header__button logo-btn\\\"],[14,\\\"aria-label\\\",\\\"Navigate to dashboard\\\"],[14,6,\\\"/#/dashboard\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"img\\\"],[14,0,\\\"header__logo\\\"],[14,\\\"src\\\",\\\"/front_end/css/style-assets/Berklee_Logo_Square.png\\\"],[14,\\\"alt\\\",\\\"Berklee Logo\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__course-title-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__course-title\\\"],[12],[1,\\\"Course Title\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"header__section-info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Section number\\\"],[12],[1,\\\"Section\\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-pipe\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,0],[14,\\\"aria-label\\\",\\\"Term\\\"],[12],[1,\\\"Term\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"classroom__container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"side-nav\\\"],[12],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"side-nav__panel-selectors\\\"],[14,\\\"role\\\",\\\"tablist\\\"],[14,\\\"aria-label\\\",\\\"Side Panels\\\"],[12],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@panelName\\\"],[\\\"Syllabus\\\",true,\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-book-open\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Syllabus\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@panelName\\\"],[\\\"Activity\\\",true,\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-bell\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Activity\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@panelName\\\"],[\\\"Work\\\",true,\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-pencil\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Work\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@panelName\\\"],[\\\"Live\\\",true,\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-video\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Live\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[8,[39,6],null,[[\\\"@label\\\",\\\"@disabled\\\",\\\"@panelName\\\"],[\\\"Roster\\\",true,\\\"inactive\\\"]],[[\\\"default\\\"],[[[[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"toolbar-button__icon fa-regular fa-user-magnifying-glass\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"toolbar-button__text\\\"],[12],[1,\\\"\\\\n Roster\\\\n \\\"],[13],[1,\\\"\\\\n \\\"]],[]]]]],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"side-panel\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-top-row\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-title\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-search\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-chips\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-chip\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-chip\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-chip\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__side-panel-chip\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-lesson\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-lesson__header\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-lesson__info\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"syllabus-lesson__lesson-number\\\"],[12],[10,\\\"i\\\"],[14,0,\\\"fa-regular fa-info\\\"],[12],[13],[13],[1,\\\"\\\\n \\\"],[10,1],[14,0,\\\"syllabus-lesson__lesson-title\\\"],[12],[1,\\\"Lesson Title\\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[12],[1,\\\"\\\\n \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-chevron-down\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"syllabus-lesson__content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"lesson-item\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__lesson-item-info\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[10,\\\"main\\\"],[14,0,\\\"classroom__main-content\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__classroom-container\\\"],[12],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__video-box\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__text-box\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__text-box\\\"],[12],[13],[1,\\\"\\\\n \\\"],[10,0],[14,0,\\\"loading__text-box\\\"],[12],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n \\\"],[13],[1,\\\"\\\\n\\\"],[13]],[],[\\\"div\\\",\\\"header\\\",\\\"a\\\",\\\"img\\\",\\\"i\\\",\\\"ul\\\",\\\"side-nav/toolbar-button\\\",\\\"span\\\",\\\"main\\\"]]\",\n \"moduleName\": \"bocce/templates/loading.hbs\",\n \"isStrictMode\": false\n });\n});","define(\"bocce/transforms/boolean\", [\"exports\", \"@ember/debug\", \"@ember-data/serializer/transform\"], function (_exports, _debug, _transform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _transform.BooleanTransform;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n (false && !(false) && (0, _debug.deprecate)(\"You are relying on ember-data auto-magically installing the BooleanTransform. Use `export { BooleanTransform as default } from '@ember-data/serializer/transform';` in app/transforms/boolean.js instead\", false, {\n id: 'ember-data:deprecate-legacy-imports',\n for: 'ember-data',\n until: '6.0',\n since: {\n enabled: '5.2',\n available: '4.13'\n }\n }));\n});","define(\"bocce/transforms/date\", [\"exports\", \"@ember/debug\", \"@ember-data/serializer/transform\"], function (_exports, _debug, _transform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _transform.DateTransform;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n (false && !(false) && (0, _debug.deprecate)(\"You are relying on ember-data auto-magically installing the DateTransform. Use `export { DateTransform as default } from '@ember-data/serializer/transform';` in app/transforms/date.js instead\", false, {\n id: 'ember-data:deprecate-legacy-imports',\n for: 'ember-data',\n until: '6.0',\n since: {\n enabled: '5.2',\n available: '4.13'\n }\n }));\n});","define(\"bocce/transforms/number\", [\"exports\", \"@ember/debug\", \"@ember-data/serializer/transform\"], function (_exports, _debug, _transform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _transform.NumberTransform;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n (false && !(false) && (0, _debug.deprecate)(\"You are relying on ember-data auto-magically installing the NumberTransform. Use `export { NumberTransform as default } from '@ember-data/serializer/transform';` in app/transforms/number.js instead\", false, {\n id: 'ember-data:deprecate-legacy-imports',\n for: 'ember-data',\n until: '6.0',\n since: {\n enabled: '5.2',\n available: '4.13'\n }\n }));\n});","define(\"bocce/transforms/string\", [\"exports\", \"@ember/debug\", \"@ember-data/serializer/transform\"], function (_exports, _debug, _transform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _transform.StringTransform;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@ember/debug\",0,\"@ember-data/serializer/transform\"eaimeta@70e063a35619d71f\n (false && !(false) && (0, _debug.deprecate)(\"You are relying on ember-data auto-magically installing the StringTransform. Use `export { StringTransform as default } from '@ember-data/serializer/transform';` in app/transforms/string.js instead\", false, {\n id: 'ember-data:deprecate-legacy-imports',\n for: 'ember-data',\n until: '6.0',\n since: {\n enabled: '5.2',\n available: '4.13'\n }\n }));\n});","define(\"bocce/utilities/date-format\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.formatWithSuffix = formatWithSuffix;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n /* Variety of date formatting functions that are shared across templates */\n\n // formats date as first three letters of month and day with suffix (Jan 1st).\n // With { todayAsTime: true }, dates that fall on today (in Eastern Time, where\n // the business operates) are rendered as the time of day with an ET tag\n // (e.g. \"3:00pm ET\") since users span multiple timezones. \"ET\" rather than\n // \"EST\"/\"EDT\" so the label is right year-round.\n function formatWithSuffix(date) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$todayAsTime = _ref.todayAsTime,\n todayAsTime = _ref$todayAsTime === void 0 ? false : _ref$todayAsTime;\n var eastern = moment(date).tz(\"America/New_York\");\n if (todayAsTime) {\n if (eastern.isSame(moment().tz(\"America/New_York\"), \"day\")) {\n return \"\".concat(eastern.format(\"h:mma\"), \" ET\");\n }\n }\n var month = eastern.format(\"MMM\");\n var day = eastern.date();\n var suffix = [\"th\", \"st\", \"nd\", \"rd\"][day % 10 <= 3 && Math.floor(day / 10) !== 1 ? day % 10 : 0];\n return \"\".concat(month, \" \").concat(day).concat(suffix);\n }\n});","define(\"bocce/utilities/dialog\", [\"exports\", \"micromodal\"], function (_exports, _micromodal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.checkboxDialog = checkboxDialog;\n _exports.textareaDialog = _exports.inputDialog = _exports.default = _exports.datetimeDialog = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"micromodal\"eaimeta@70e063a35619d71f\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } // Takes a message and an array of choices, and displays a dialog to\n // the user. Returns a promise that resolves to the user's selection.\n var NONE = 0;\n var INPUT = 1;\n var TEXTAREA = 2;\n var DATETIME = 3;\n function _default(message) {\n var choices = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [\"OK\"];\n var body = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var textInput = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var additionalClasses = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n return dialog(message, choices, body, textInput ? INPUT : NONE, \"\", additionalClasses);\n }\n var inputDialog = _exports.inputDialog = function inputDialog(message) {\n var choices = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [\"OK\"];\n var body = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var defaultInput = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"\";\n var additionalClasses = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n return dialog(message, choices, body, INPUT, defaultInput, additionalClasses);\n };\n var datetimeDialog = _exports.datetimeDialog = function datetimeDialog(message) {\n var choices = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [\"OK\"];\n var body = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var defaultInput = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"\";\n var additionalClasses = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n return dialog(message, choices, body, DATETIME, defaultInput, additionalClasses);\n };\n var textareaDialog = _exports.textareaDialog = function textareaDialog(message) {\n var choices = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [\"OK\"];\n var body = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var defaultInput = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"\";\n var additionalClasses = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];\n return dialog(message, choices, body, TEXTAREA, defaultInput, additionalClasses);\n };\n function dialog(message) {\n var choices = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [\"OK\"];\n var body = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var inputType = arguments.length > 3 ? arguments[3] : undefined;\n var defaultInput = arguments.length > 4 ? arguments[4] : undefined;\n var additionalClassesIn = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];\n return new Promise(function (resolve) {\n var textInputHTML = \"\";\n if (inputType === INPUT) {\n textInputHTML = \"\");\n } else if (inputType === TEXTAREA) {\n textInputHTML = \"\");\n } else if (inputType === DATETIME) {\n textInputHTML = \"\");\n }\n var uniqueId = Math.random().toString().slice(2);\n var bodyHTML = body ? \"
    \".concat(body, \"
    \") : \"\";\n var choicesHTML = choices.map(function (choice, index) {\n return \"\");\n }).join(\"\");\n var additionalClasses = null;\n if (Array.isArray(additionalClassesIn)) {\n additionalClasses = additionalClassesIn.length > 0 ? \" \" + additionalClassesIn.join(\" \") : \"\";\n } else {\n additionalClasses = \" \" + additionalClassesIn;\n }\n var typeClass = \"\";\n if (inputType === INPUT) {\n typeClass = \"input\";\n } else if (inputType === TEXTAREA) {\n typeClass = \"textarea\";\n } else if (inputType === DATETIME) {\n typeClass = \"date\";\n }\n var dialogHTML = \"\\n
    \\n
    \\n
    \\n \").concat(message, \"\\n \").concat(textInputHTML, \"\\n \").concat(bodyHTML, \"\\n
    \\n \").concat(choicesHTML, \"\\n
    \\n
    \\n
    \\n
    \");\n document.body.insertAdjacentHTML(\"beforeend\", dialogHTML);\n var _iterator = _createForOfIteratorHelper(document.querySelectorAll(\"#modal-\".concat(uniqueId, \" .conf-dialog .choice\"))),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var choice = _step.value;\n choice.addEventListener(\"click\", function (event) {\n // If there's a text input, resolve to the input value.\n // Otherwise, resolve to the button that was pushed.\n if (inputType !== NONE) {\n var inputValue = document.querySelector(\".dialog-text-input\").value;\n var firstOptionSelected = event.target.dataset.optionId === \"0\";\n if (firstOptionSelected) {\n resolve(inputValue);\n } else {\n resolve(false);\n }\n } else {\n var selection = event.target.getAttribute(\"data-option\");\n resolve(selection);\n }\n document.getElementById(\"modal-\".concat(uniqueId)).remove();\n });\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n _micromodal.default.show(\"modal-\".concat(uniqueId), {\n onShow: function onShow(modal) {\n var choice = document.querySelector(\"#modal-\".concat(uniqueId, \" .conf-dialog .choice\"));\n if (choice) {\n choice.focus();\n }\n },\n disableScroll: true\n });\n });\n }\n\n // Displays a dialog with checkboxes.\n // First choice resolves to checked values, others resolve false.\n function checkboxDialog(message) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var choices = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [\"OK\", \"Cancel\"];\n return new Promise(function (resolve) {\n var uniqueId = Math.random().toString().slice(2);\n var checkboxesHTML = options.map(function (opt, i) {\n return \"\\n \");\n }).join(\"\");\n var choicesHTML = choices.map(function (choice, index) {\n return \"\");\n }).join(\"\");\n var dialogHTML = \"\\n
    \\n
    \\n
    \\n \").concat(message, \"\\n
    \\n \").concat(checkboxesHTML, \"\\n
    \\n
    \\n \").concat(choicesHTML, \"\\n
    \\n
    \\n
    \\n
    \");\n document.body.insertAdjacentHTML(\"beforeend\", dialogHTML);\n var _iterator2 = _createForOfIteratorHelper(document.querySelectorAll(\"#modal-\".concat(uniqueId, \" .conf-dialog .choice\"))),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var btn = _step2.value;\n btn.addEventListener(\"click\", function (event) {\n var firstOptionSelected = event.target.dataset.optionId === \"0\";\n if (firstOptionSelected) {\n var checked = _toConsumableArray(document.querySelectorAll(\"#modal-\".concat(uniqueId, \" .dialog-checkbox:checked\"))).map(function (cb) {\n return options[parseInt(cb.dataset.index)].value;\n });\n resolve(checked);\n } else {\n resolve(false);\n }\n document.getElementById(\"modal-\".concat(uniqueId)).remove();\n });\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n _micromodal.default.show(\"modal-\".concat(uniqueId), {\n onShow: function onShow() {\n var first = document.querySelector(\"#modal-\".concat(uniqueId, \" .conf-dialog .choice\"));\n if (first) first.focus();\n },\n disableScroll: true\n });\n });\n }\n var _default2 = _exports.default = _default;\n});","define(\"bocce/utilities/logout\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function logout() {\n var body = document.querySelector(\"body\"),\n form = document.createElement(\"form\");\n form.setAttribute(\"action\", \"/logout\");\n form.setAttribute(\"method\", \"POST\");\n form.innerHTML = '';\n body.appendChild(form);\n form.submit();\n }\n var _default = _exports.default = logout;\n});","define(\"bocce/utilities/promise-queue\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n /**\n * Taken from https://medium.com/@karenmarkosyan/how-to-manage-promises-into-dynamic-queue-with-vanilla-javascript-9d0d1f8d4df5\n *\n * Note: don't nest PromiseQueue.enqueue - it will deadlock. So, DO NOT do the following...\n *\n * //Bad. Will deadlock.\n * ex: await PromiseQueue.enqueue(async () => {\n * await PromisQueue.enqueue(async () => {\n * //Don't do this.\n * })\n * })\n */\n var Queue = _exports.default = /*#__PURE__*/function () {\n function Queue() {\n _classCallCheck(this, Queue);\n }\n return _createClass(Queue, null, [{\n key: \"enqueue\",\n value: function enqueue(promise) {\n var _this = this;\n return new Promise(function (resolve, reject) {\n _this.queue.push({\n promise: promise,\n resolve: resolve,\n reject: reject\n });\n _this.dequeue();\n });\n }\n }, {\n key: \"dequeue\",\n value: function dequeue() {\n var _this2 = this;\n if (this.workingOnPromise) {\n return false;\n }\n var item = this.queue.shift();\n if (!item) {\n return false;\n }\n var settle = function settle(approve, value) {\n _this2.workingOnPromise = false;\n if (approve) {\n item.resolve(value);\n } else {\n item.reject(value);\n }\n _this2.dequeue();\n };\n try {\n this.workingOnPromise = true;\n item.promise().then(function (value) {\n settle(true, value);\n }).catch(function (err) {\n settle(false, err);\n });\n } catch (err) {\n settle(false, err);\n }\n return true;\n }\n }]);\n }();\n _defineProperty(Queue, \"queue\", []);\n _defineProperty(Queue, \"pendingPromise\", false);\n});","define(\"bocce/utilities/prompt\", [], function () {\n \"use strict\";\n\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n});","define(\"bocce/utilities/rsvp\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.toggleRsvp = toggleRsvp;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\n function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n /**\n * Shared RSVP toggle utility.\n *\n * Returns `{ reservations, reservationCount }` on success, or `null` if the\n * selection is unchanged (same yes/yes vote — no-op).\n * Throws on network/HTTP error.\n */\n function toggleRsvp(_x, _x2, _x3, _x4, _x5) {\n return _toggleRsvp.apply(this, arguments);\n }\n function _toggleRsvp() {\n _toggleRsvp = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(courseId, eventId, userId, reservations, willAttend) {\n var existing, isSameResponse, response, result, updatedReservations, reservationCount;\n return _regenerator().w(function (_context) {\n while (1) switch (_context.n) {\n case 0:\n existing = (reservations || []).find(function (r) {\n return String(r.user_id) === String(userId);\n });\n isSameResponse = existing && existing.willAttend === willAttend; // Clicking \"Yes\" when already \"Yes\" is a no-op; clicking \"No\" when already\n // \"No\" can be left to the server to decide, but the UX expectation here is\n // that \"No\" toggles off (becomes no response), so we always send it.\n if (!(isSameResponse && willAttend === true)) {\n _context.n = 1;\n break;\n }\n return _context.a(2, null);\n case 1:\n _context.n = 2;\n return fetch(\"/interface/courses/\".concat(courseId, \"/events/\").concat(eventId, \"/toggleReservation\"), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({\n event_id: eventId,\n willAttend: willAttend\n })\n });\n case 2:\n response = _context.v;\n if (response.ok) {\n _context.n = 3;\n break;\n }\n throw new Error(\"toggleRsvp HTTP \".concat(response.status));\n case 3:\n _context.n = 4;\n return response.json();\n case 4:\n result = _context.v;\n // Build the updated reservations array.\n updatedReservations = (reservations || []).filter(function (r) {\n return String(r.user_id) !== String(userId);\n });\n if (result && result.user_id !== undefined) {\n updatedReservations = [].concat(_toConsumableArray(updatedReservations), [result]);\n }\n reservationCount = updatedReservations.filter(function (r) {\n return r.willAttend !== false;\n }).length;\n return _context.a(2, {\n reservations: updatedReservations,\n reservationCount: reservationCount\n });\n }\n }, _callee);\n }));\n return _toggleRsvp.apply(this, arguments);\n }\n});","define(\"bocce/utilities/survey-spoof\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.spoofMode = spoofMode;\n _exports.spoofQualtrics = spoofQualtrics;\n _exports.spoofTermEndsOn = spoofTermEndsOn;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n // app/utilities/survey-spoof.js\n //\n // Dev-only fake survey data. From the browser console:\n //\n // surveySpoof(\"banner\") mid-term survey -- banner only, never escalates\n // surveySpoof(\"nudge\") end-of-term survey, 7 days before term end -- closable modal\n // surveySpoof(\"locked\") end-of-term survey, 10 days after term end -- modal can't be closed\n // surveySpoof(\"expired\") end-of-term survey, 40 days after term end -- nothing shows\n // surveySpoof(\"dashboard\") this course's survey is done, others are not -- menu entry only\n // surveySpoof(false) back to real data\n //\n // A second argument sets how many surveys are outstanding, which drives the menu\n // counter: surveySpoof(\"dashboard\", 3). Defaults to 1; 0 is allowed.\n //\n // Reload after changing it. Delete this file (and its imports in\n // services/survey.js) when the real Qualtrics data is trustworthy enough to test against.\n\n var KEY = \"surveySpoof\";\n var COUNT_KEY = \"surveySpoofCount\";\n var DAY = 24 * 60 * 60 * 1000;\n\n // We only care that these render something -- swap them for any URLs you like\n var FAKE_SURVEY_URL = \"https://hello.com/form/SV_FAKESURVEY01?spoof=1\";\n var FAKE_DASHBOARD_URL = \"https://hello.com/course-evaluations/student/dashboard/?spoof=1\";\n\n // How far the term end is from now in each mode, chosen to land in the matching\n // window in services/survey.js. \"dashboard\" sits inside the lockout window on\n // purpose -- with no distribution URL for this course, nothing should escalate.\n var TERM_ENDS_IN = {\n banner: 60 * DAY,\n nudge: 7 * DAY,\n locked: -10 * DAY,\n expired: -40 * DAY,\n dashboard: -10 * DAY\n };\n function spoofMode() {\n var mode = localStorage.getItem(KEY);\n return TERM_ENDS_IN[mode] === undefined ? null : mode;\n }\n function spoofCount() {\n var count = parseInt(localStorage.getItem(COUNT_KEY), 10);\n return isNaN(count) ? 1 : count;\n }\n function spoofQualtrics(mode) {\n var isDashboard = mode === \"dashboard\";\n var isEndOfTerm = !isDashboard && mode !== \"banner\";\n var dueCount = spoofCount();\n return {\n uid: \"spoofed-user-hash\",\n isTestingEnvironment: false,\n teacherDashboardURL: false,\n incompleteCount: dueCount,\n // The dashboard case has this course's survey finished, so there's always\n // one more task than there are outstanding ones\n totalTasksCount: isDashboard ? dueCount + 1 : dueCount,\n incompleteTasks: [],\n priorityDistributionURL: isDashboard || isEndOfTerm ? null : FAKE_SURVEY_URL,\n endOfTermDistributionURL: isEndOfTerm ? FAKE_SURVEY_URL : null,\n dashboardUrl: FAKE_DASHBOARD_URL\n };\n }\n function spoofTermEndsOn(mode) {\n return new Date(Date.now() + TERM_ENDS_IN[mode]);\n }\n window.surveySpoof = function (mode, count) {\n if (!mode) {\n localStorage.removeItem(KEY);\n localStorage.removeItem(COUNT_KEY);\n console.log(\"Survey spoof off. Reload to pick up real data.\");\n return;\n }\n if (TERM_ENDS_IN[mode] === undefined) {\n console.log(\"Unknown mode \\\"\".concat(mode, \"\\\". Try: \").concat(Object.keys(TERM_ENDS_IN).join(\", \")));\n return;\n }\n localStorage.setItem(KEY, mode);\n if (count === undefined) {\n localStorage.removeItem(COUNT_KEY);\n } else {\n localStorage.setItem(COUNT_KEY, parseInt(count, 10) || 0);\n }\n console.log(\"Survey spoof set to \\\"\".concat(mode, \"\\\" with \").concat(spoofCount(), \" outstanding. Reload to see it.\"));\n };\n});","define(\"bocce/utilities/timer\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function timer(duration, interval, callback, eventHandlers) {\n var timer = duration,\n minutes,\n seconds;\n var _interval = setInterval(function () {\n minutes = parseInt(timer / 60, 10);\n seconds = parseInt(timer % 60, 10);\n callback(minutes, seconds);\n if (Array.isArray(eventHandlers) && eventHandlers.length) {\n var _iterator = _createForOfIteratorHelper(eventHandlers),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var eventHandler = _step.value;\n if (timer <= eventHandler.time && !eventHandler.executed) {\n eventHandler.callback(minutes, seconds);\n eventHandler.executed = true;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n timer = timer - Math.floor(interval / 1000);\n if (timer < 0) {\n clearInterval(_interval);\n }\n }, interval);\n return _interval;\n }\n var _default = _exports.default = timer;\n});","define(\"bocce/utilities/webex\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.joinChat = joinChat;\n _exports.openWebex = openWebex;\n _exports.recordParticipation = recordParticipation;\n _exports.rejoinChatAsHost = rejoinChatAsHost;\n _exports.startChat = startChat;\n _exports.testChat = testChat;\n _exports.watchArchivedChat = watchArchivedChat;\n _exports.watchChatUrl = watchChatUrl;\n _exports.watchChatUrlWithEvent = watchChatUrlWithEvent;\n _exports.zoomLoginRedirect = zoomLoginRedirect;\n 0; //eaimeta@70e063a35619d71f0,\"jquery\"eaimeta@70e063a35619d71f\n // app/utilities/webex.js\n // Extracted from app/mixins/webex.js — plain utility functions.\n function openWebex(api_url, data, confirmDialog) {\n var options = {\n method: \"POST\"\n };\n if (data) {\n options.body = JSON.stringify(data);\n }\n return fetch(api_url, options).then(function (r) {\n if (!r.ok) {\n throw r.json();\n }\n return r.json();\n }).then(function (dest_url) {\n window.open(dest_url, \"_blank\");\n return dest_url;\n }).catch(function (err) {\n Promise.resolve(err).then(function (message) {\n if (!confirmDialog) return;\n if (message === 1) {\n confirmDialog.show({\n subtitle: \"Please clear your browser cache before starting any Live Lessons.\\n Not sure how? Here are instructions for how to do so.\"\n });\n } else if (typeof message === \"string\") {\n confirmDialog.show({\n subtitle: \"Error starting chat: \".concat(message)\n });\n }\n });\n });\n }\n function startChat(sectionId, meeting_details, meeting_id, confirmDialog) {\n meeting_details = {\n title: meeting_details.title,\n description: meeting_details.description,\n startAt: meeting_details.startAt,\n endAt: meeting_details.endAt,\n meetingKeys: meeting_details.meetingKeys\n };\n meeting_details.id = meeting_id;\n return openWebex(\"/interface/livechat/startChat/\".concat(sectionId), meeting_details, confirmDialog);\n }\n\n /**\n * Records student participation for live class attendance.\n * Needs the full session because it deeply interacts with course model\n * (reading/writing customGradeBookColumns, calling course.save()).\n */\n function recordParticipation(session, meetingKeys) {\n var course = session.get(\"course\"),\n customGradeBookColumns = course.get(\"customGradeBookColumns\"),\n currentUser = session.get(\"user\"),\n meetingKeyColumn,\n numChatsAttendedColumn,\n saveCourse = false;\n if (!session.get(\"isStudent\") || !customGradeBookColumns) {\n return;\n }\n meetingKeyColumn = customGradeBookColumns.find(function (gbColumn) {\n return gbColumn.title === \"Live Class Meeting Keys\";\n });\n numChatsAttendedColumn = customGradeBookColumns.find(function (gbColumn) {\n return gbColumn.title === \"Live Class Attendance\";\n });\n if (meetingKeyColumn.data.length === 0 || Object.keys(meetingKeyColumn.data).length === 0) {\n meetingKeyColumn.data = [{\n content: JSON.stringify(meetingKeys),\n user_id: currentUser.get(\"id\")\n }];\n numChatsAttendedColumn.data = [{\n content: meetingKeys.length.toString(),\n user_id: currentUser.get(\"id\")\n }];\n saveCourse = true;\n } else {\n var studentData = meetingKeyColumn.data[0],\n data = JSON.parse(studentData.content) || [];\n if (Array.isArray(data)) {\n meetingKeys.forEach(function (meetingKey) {\n if (data.indexOf(meetingKey) === -1) {\n data.push(meetingKey);\n saveCourse = true;\n }\n });\n meetingKeyColumn.data = [{\n content: JSON.stringify(data),\n user_id: currentUser.get(\"id\")\n }];\n numChatsAttendedColumn.data = [{\n content: data.length.toString(),\n user_id: currentUser.get(\"id\")\n }];\n }\n }\n if (saveCourse) {\n course.set(\"customGradeBookColumns\", [meetingKeyColumn, numChatsAttendedColumn]);\n course.save();\n }\n }\n\n /**\n * Needs session for recordParticipation callback and user info,\n * and router for transitionTo.\n */\n function joinChat(session, router, confirmDialog) {\n var user = session.get(\"user\"),\n section_id = session.get(\"section.id\");\n return openWebex(\"/interface/livechat/joinChat/\".concat(section_id, \"/\").concat(user.get(\"name\").replace(/\\//g, \"\"), \"/\").concat(user.get(\"email\")), undefined, confirmDialog).then(function (joinUrl) {\n var parts = joinUrl.split(\"/\"),\n meetingKey = parts[parts.length - 1];\n router.transitionTo({\n queryParams: {\n backup_code: true\n }\n });\n recordParticipation(session, [meetingKey]);\n });\n }\n function testChat(sectionId) {\n var isStudent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var confirmDialog = arguments.length > 2 ? arguments[2] : undefined;\n if (!isStudent) {\n openWebex(\"/interface/livechat/createTestChat/\".concat(sectionId), undefined, confirmDialog);\n } else {\n openWebex(\"/interface/livechat/createTestChat/\".concat(sectionId, \"/student\"), undefined, confirmDialog);\n }\n }\n function zoomLoginRedirect() {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(window).focus(function () {\n location.reload(true);\n });\n window.open(\"https://berklee.zoom.us\", \"_blank\");\n }\n function rejoinChatAsHost(sectionId, meeting_details, meeting_id, confirmDialog) {\n var data = {\n title: meeting_details.title,\n description: meeting_details.description,\n startAt: meeting_details.startAt,\n endAt: meeting_details.endAt,\n meeting_key: meeting_details.meeting_key,\n meetingKeys: meeting_details.meetingKeys,\n id: meeting_id\n };\n return openWebex(\"/interface/livechat/joinChatAsHost/\".concat(sectionId), data, confirmDialog);\n }\n function watchChatUrl(value) {\n if (value) {\n /* eslint-disable-next-line ember/no-jquery */\n (0, _jquery.default)(\".event-panel__watch-button option:first\").attr(\"selected\", true);\n window.open(value, \"_blank\");\n }\n }\n function watchChatUrlWithEvent(event) {\n watchChatUrl(event.target.value);\n }\n function watchArchivedChat(store, event_id) {\n var url = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n return store.findRecord(\"event\", event_id).then(function (eventObject) {\n if (!eventObject.get(\"kalturaRecordings\") || eventObject.get(\"kalturaRecordings.length\") === 0) {\n if (url && !url.isEmptyEvent()) {\n window.open(url, \"_blank\");\n }\n }\n return eventObject;\n });\n }\n});","define(\"bocce/utils/captions\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.parseCaptionFile = parseCaptionFile;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n function _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\n function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\n function _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\n function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\n // Caption parsing shared by the video engines. Kaltura serves SRT, S3-hosted\n // tracks are usually WebVTT, and Wistia hands back JSON; all three end up as\n // the same `{ time, text }` cue list the transcript renders from.\n\n // Parses SRT or WebVTT. Returns the cue list plus a blob URL for the \n // element, or null when the file is empty.\n function parseCaptionFile(responseText) {\n if (!responseText || responseText.length === 0) {\n return null;\n }\n var isVTT = responseText.indexOf(\"WEBVTT\") > -1;\n var vtt = isVTT ? responseText : \"WEBVTT\\n\\n\";\n var lines = responseText.replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\").split(\"\\n\");\n var cues = [];\n if (isVTT) {\n lines.splice(0, 2);\n }\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n if (line.indexOf(\"-->\") > -1 && i < lines.length - 1) {\n if (cues.length > 0 && !cues[cues.length - 1].text) {\n cues.pop();\n }\n if (!isVTT) {\n line = line.replaceAll(\",\", \".\");\n if (line.split(\".\")[1].length < 3) {\n line = line + \"0\";\n }\n line += \"align:middle line:84%\";\n vtt += line + \"\\n\";\n }\n var start = line.split(\" --> \")[0];\n if (start) {\n cues.push({\n time: timestampToSeconds(start),\n text: \"\"\n });\n }\n } else if (line.indexOf(\"-->\") === -1 && line.length > 0 && isNaN(line)) {\n if (cues.length > 0) {\n cues[cues.length - 1].text += line + \"\\n\";\n }\n if (!isVTT) {\n vtt += line + \"\\n\";\n }\n }\n }\n return {\n cues: cues.filter(function (cue) {\n return cue.text;\n }),\n vttUrl: window.URL.createObjectURL(new Blob([vtt], {\n type: \"text/vtt\"\n }))\n };\n }\n\n // \"00:01:02.500\" -> 62.5\n function timestampToSeconds(stamp) {\n var parts = stamp.trim().split(\":\");\n var _split = (parts.pop() || \"0\").split(\".\"),\n _split2 = _slicedToArray(_split, 2),\n whole = _split2[0],\n fraction = _split2[1];\n var seconds = parseInt(whole, 10) || 0;\n seconds += (parseInt(fraction, 10) || 0) / 1000;\n var multiplier = 60;\n while (parts.length > 0) {\n seconds += (parseInt(parts.pop(), 10) || 0) * multiplier;\n multiplier *= 60;\n }\n return seconds;\n }\n});","define(\"bocce/utils/format-due-date\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.dueDateClass = dueDateClass;\n _exports.formatDueDate = formatDueDate;\n _exports.fullDueDate = fullDueDate;\n _exports.parseDueDate = parseDueDate;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\n function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n /**\n * utils/format-due-date.js\n *\n * Pure utility for human-friendly due date formatting.\n * No external dependencies — vanilla JS Date only.\n * Comparisons are at the calendar-day boundary in local time.\n */\n\n /**\n * Core parser. Returns display string, full tooltip date, and urgency class.\n *\n * @param {string} dateString - ISO or any Date-parseable string\n * @returns {{ display: string, fullDate: string, urgencyClass: string }}\n */\n function parseDueDate(dateString) {\n if (!dateString) return {\n display: \"—\",\n fullDate: \"\",\n urgencyClass: \"\"\n };\n var due = new Date(dateString);\n if (isNaN(due.getTime())) return {\n display: \"—\",\n fullDate: \"\",\n urgencyClass: \"\"\n };\n\n // Strip time — compare at calendar-day boundary in local time\n var today = new Date();\n var todayDay = new Date(today.getFullYear(), today.getMonth(), today.getDate());\n var dueDay = new Date(due.getFullYear(), due.getMonth(), due.getDate());\n var diffDays = Math.round((dueDay - todayDay) / (1000 * 60 * 60 * 24));\n\n // Tooltip: \"Monday, May 28, 2025\"\n var fullDate = due.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\"\n });\n\n // Display string\n var display;\n if (diffDays < -1) {\n display = \"\".concat(Math.abs(diffDays), \" days ago\");\n } else if (diffDays === -1) {\n display = \"Yesterday\";\n } else if (diffDays === 0) {\n display = \"Today\";\n } else if (diffDays === 1) {\n display = \"Tomorrow\";\n } else if (diffDays <= 6) {\n display = \"In \".concat(diffDays, \" days\");\n } else {\n // 7+ days away — show \"Mon D\" or \"Mon D, YYYY\" depending on year\n var sameYear = due.getFullYear() === today.getFullYear();\n display = due.toLocaleDateString(\"en-US\", _objectSpread({\n month: \"short\",\n day: \"numeric\"\n }, sameYear ? {} : {\n year: \"numeric\"\n }));\n }\n\n // Urgency class\n // is-overdue → more than 1 day ago (or yesterday)\n // is-due-soon → today or tomorrow\n // Styles should go in dashboard.scss under .activity-table__data\n var urgencyClass = \"\";\n if (diffDays < 0) {\n urgencyClass = \"is-overdue\";\n } else if (diffDays <= 1) {\n urgencyClass = \"is-due-soon\";\n }\n return {\n display: display,\n fullDate: fullDate,\n urgencyClass: urgencyClass\n };\n }\n\n /**\n * Returns the human-friendly display string for a due date.\n * @param {string} dateString\n * @returns {string}\n */\n function formatDueDate(dateString) {\n return parseDueDate(dateString).display;\n }\n\n /**\n * Returns the urgency CSS class for a due date.\n * @param {string} dateString\n * @returns {string} \"is-overdue\" | \"is-due-soon\" | \"\"\n */\n function dueDateClass(dateString) {\n return parseDueDate(dateString).urgencyClass;\n }\n\n /**\n * Returns the full date string for use as a tooltip title.\n * @param {string} dateString\n * @returns {string} e.g. \"Monday, May 28, 2025\"\n */\n function fullDueDate(dateString) {\n return parseDueDate(dateString).fullDate;\n }\n});","define(\"bocce/utils/layout\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.isNarrowLayout = isNarrowLayout;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n /**\n * utils/layout.js\n *\n * Layout helpers that read CSS-owned breakpoint decisions so JS and styles\n * stay in agreement. The tablet width threshold lives only in reactive.scss;\n * it exposes the result as the --is-narrow-layout custom property, which JS\n * reads here instead of re-measuring the viewport against a duplicated literal.\n */\n\n /**\n * True when the layout is in its narrow (tablet/phone) mode — the side\n * nav/panel overlays as a drawer rather than docking, the hamburger is shown,\n * etc. Mirrors reactive.scss's @media (max-width) breakpoint exactly.\n *\n * @returns {boolean}\n */\n function isNarrowLayout() {\n return getComputedStyle(document.documentElement).getPropertyValue(\"--is-narrow-layout\").trim() === \"1\";\n }\n});","define(\"bocce/utils/video-engines/html5\", [\"exports\", \"bocce/utils/captions\"], function (_exports, _captions) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"bocce/utils/captions\"eaimeta@70e063a35619d71f\n function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = \"function\" == typeof Symbol ? Symbol : {}, n = r.iterator || \"@@iterator\", o = r.toStringTag || \"@@toStringTag\"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, \"_invoke\", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError(\"Generator is already running\"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = \"next\"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError(\"iterator result is not an object\"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError(\"The iterator does not provide a '\" + o + \"' method\"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, \"GeneratorFunction\")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, \"constructor\", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction), GeneratorFunction.displayName = \"GeneratorFunction\", _regeneratorDefine2(GeneratorFunctionPrototype, o, \"GeneratorFunction\"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, \"Generator\"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, \"toString\", function () { return \"[object Generator]\"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }\n function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, \"\", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o(\"next\", 0), o(\"throw\", 1), o(\"return\", 2)); }, _regeneratorDefine2(e, r, n, t); }\n function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\n function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\n function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\n function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\n function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\n function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\n function _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\n function _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); } // Playback engine backed by the