{"version":3,"sources":["vendor/ember-cli/app-prefix.js","student-app/api-requests/delete-media-asset-request.js","student-app/api-requests/update-answer-request.js","student-app/api-requests/update-assessment-template-request.js","student-app/api-requests/update-question-request.js","student-app/app.js","student-app/component-managers/glimmer.js","student-app/components/admin-organization-nav.js","student-app/components/answer-media-assets.js","student-app/components/answer-performance-percent-bar.js","student-app/components/answerable-question-node.js","student-app/components/assessment-question-result.js","student-app/components/assessment-response-editor.js","student-app/components/assessment-response-feedback.js","student-app/components/assessment-response-review.js","student-app/components/assessment-selection.js","student-app/components/assessment-template-summary-row.js","student-app/components/assessment-timer.js","student-app/components/attempt-actionable-section.js","student-app/components/attempt-row.js","student-app/components/attempt-viewer-list-item.js","student-app/components/attempts-editor.js","student-app/components/attempts-viewer.js","student-app/components/audio-player-base.js","student-app/components/body-mod.js","student-app/components/boid-fun.js","student-app/components/bootstrap-datepicker-inline.js","student-app/components/bootstrap-datepicker.js","student-app/components/building-admin-courses-nav.js","student-app/components/callout-wrapper.js","student-app/components/change-organization-link.js","student-app/components/check-box.js","student-app/components/choice-answer.js","student-app/components/choice-question-form.js","student-app/components/choice-response-view.js","student-app/components/clear-response.js","student-app/components/collapsable-section.js","student-app/components/course-assessments.js","student-app/components/course-group-table.js","student-app/components/course-pin.js","student-app/components/creator-answer-target-preview.js","student-app/components/creator-dnd-answer-target.js","student-app/components/creator-dnd-callout-dot.js","student-app/components/creator-drag-and-drop-dot.js","student-app/components/creator-drag-and-drop-oval.js","student-app/components/creator-drag-and-drop-polygon.js","student-app/components/creator-drag-and-drop-rectangle.js","student-app/components/creator-matching-answer.js","student-app/components/css-tool-tip.js","student-app/components/data-table-data-item.js","student-app/components/data-table-header-item.js","student-app/components/delete-assessment-template-modal.js","student-app/components/delete-confirm-modal.js","student-app/components/delete-question-group-modal.js","student-app/components/delete-question-modal.js","student-app/components/digital-keypad.js","student-app/components/dnd-callout-dot.js","student-app/components/dnd-callout-line.js","student-app/components/dnd-drop-target.js","student-app/components/drag-and-drop-answer-editor.js","student-app/components/drag-and-drop-answer.js","student-app/components/drag-and-drop-dot.js","student-app/components/drag-and-drop-existing-answer-choice.js","student-app/components/drag-and-drop-oval.js","student-app/components/drag-and-drop-polygon.js","student-app/components/drag-and-drop-primary-distractor-answer.js","student-app/components/drag-and-drop-question-toolbar.js","student-app/components/drag-and-drop-rectangle.js","student-app/components/drag-and-drop-review-tooltip.js","student-app/components/drag-and-drop-target-dispatcher.js","student-app/components/drag-and-drop-with-snap-question-analysis.js","student-app/components/drag-and-drop-with-snap-question-form.js","student-app/components/drag-and-drop-with-snap-response-view.js","student-app/components/draggable-object-target.js","student-app/components/draggable-object.js","student-app/components/edit-answer-modal.js","student-app/components/edit-assessment-template-nav.js","student-app/components/educator-nav.js","student-app/components/embed-code-base.js","student-app/components/embed-preview-modal.js","student-app/components/ember-modal-dialog/-basic-dialog.js","student-app/components/ember-tether.js","student-app/components/ember-truncate/button-toggle.js","student-app/components/ember-truncate/truncation-noop.js","student-app/components/ember-truncate/truncation-target.js","student-app/components/ember-wormhole.js","student-app/components/essay-question-analysis.js","student-app/components/essay-question-form.js","student-app/components/essay-response-view.js","student-app/components/filterable-dropdown.js","student-app/components/filterable-multi-column-list.js","student-app/components/flash-message.js","student-app/components/flash-notify.js","student-app/components/full-size-embed-code.js","student-app/components/grouped-course-list.js","student-app/components/inline-input-with-cancel.js","student-app/components/inline-multiple-choice-question-node-popover.js","student-app/components/inline-multiple-choice-question-node.js","student-app/components/inline-question-analysis.js","student-app/components/inline-question-form.js","student-app/components/inline-response-view.js","student-app/components/inline-short-answer-question-node-popover.js","student-app/components/inline-short-answer-question-node.js","student-app/components/inline-text-node-editor.js","student-app/components/kebab-dropdown.js","student-app/components/large-audio-player.js","student-app/components/line-dispatcher.js","student-app/components/loading-box.js","student-app/components/logos/oaisd-logo.js","student-app/components/matching-answer.js","student-app/components/matching-line.js","student-app/components/matching-question-analysis.js","student-app/components/matching-question-form.js","student-app/components/matching-response-view.js","student-app/components/media-assets-form.js","student-app/components/media-assets.js","student-app/components/media-upload-modal.js","student-app/components/message-window.js","student-app/components/modal-dialog.js","student-app/components/multi-tab.js","student-app/components/multiple-choice-editing-answer.js","student-app/components/multiple-choice-question-analysis.js","student-app/components/multiple-choice-question-form.js","student-app/components/multiple-choice-response-view.js","student-app/components/nav-bar.js","student-app/components/nav-elements/change-districts.js","student-app/components/nav-elements/go-home-modal.js","student-app/components/nav-elements/signout-button.js","student-app/components/nav-elements/signout-modal.js","student-app/components/nav-elements/student-name.js","student-app/components/nav-elements/turn-in-modal.js","student-app/components/object-bin.js","student-app/components/option-toggle.js","student-app/components/organization-courses.js","student-app/components/organization-educators.js","student-app/components/pagination-button.js","student-app/components/pagination-menu.js","student-app/components/partial-credit-bands.js","student-app/components/percent-bar.js","student-app/components/pop-over.js","student-app/components/preview-audio-player.js","student-app/components/preview-embed-code.js","student-app/components/proctor-assessment-listing.js","student-app/components/proctor-assessment-listings-table.js","student-app/components/proctor-assessment-subnav.js","student-app/components/proctor-assessment-title-section.js","student-app/components/proctor-available-assessments-table.js","student-app/components/proctor-course-listing.js","student-app/components/proctor-course-title.js","student-app/components/progress-bar.js","student-app/components/question-controls.js","student-app/components/question-edit-answers-drag-and-drop-with-snap.js","student-app/components/question-edit-answers-essay.js","student-app/components/question-edit-answers-inline.js","student-app/components/question-edit-answers-matching.js","student-app/components/question-edit-answers-multiple-choice.js","student-app/components/question-edit-answers-short-answer.js","student-app/components/question-edit-answers-true-false.js","student-app/components/question-edit-answers.js","student-app/components/question-edit-form.js","student-app/components/question-edit-settings-drag-and-drop-with-snap.js","student-app/components/question-edit-settings-essay.js","student-app/components/question-edit-settings-inline.js","student-app/components/question-edit-settings-matching.js","student-app/components/question-edit-settings-multiple-choice.js","student-app/components/question-edit-settings-short-answer.js","student-app/components/question-edit-settings-true-false.js","student-app/components/question-edit-settings.js","student-app/components/question-filter.js","student-app/components/question-form-base.js","student-app/components/question-form.js","student-app/components/question-group-summary-row.js","student-app/components/question-media-asset-row.js","student-app/components/question-preview-modal.js","student-app/components/question-standards.js","student-app/components/question-summary-row.js","student-app/components/question-table-group-row.js","student-app/components/question-table-row.js","student-app/components/question-table.js","student-app/components/question-view-rubric.js","student-app/components/report-aside.js","student-app/components/reports/assessment-performance-table.js","student-app/components/reports/standards-summary-table.js","student-app/components/reports/student-performance-table.js","student-app/components/reports/team-performance-table.js","student-app/components/response-scorer.js","student-app/components/response-view-rubric.js","student-app/components/response-view.js","student-app/components/rich-text-editor.js","student-app/components/rubric-component-descriptor-display.js","student-app/components/rubric-component-descriptor-form.js","student-app/components/rubric-component-form.js","student-app/components/rubric-form.js","student-app/components/savable-input.js","student-app/components/scored-rubric-component-display.js","student-app/components/short-answer-question-analysis.js","student-app/components/short-answer-question-form.js","student-app/components/short-answer-response-view.js","student-app/components/sidebar-standard.js","student-app/components/single-score-percent-bar.js","student-app/components/small-audio-player.js","student-app/components/sortable-objects.js","student-app/components/sortable-table-title.js","student-app/components/square-preview-audio-player.js","student-app/components/square-preview-embed-code.js","student-app/components/standards-list.js","student-app/components/standards-selector.js","student-app/components/student-assessment-listing.js","student-app/components/student-dashboard.js","student-app/components/student-multiple-choice-question-node.js","student-app/components/student-performance-percent-bar.js","student-app/components/student-review-multiple-choice-question-node.js","student-app/components/student-review-question-node-base.js","student-app/components/student-review-short-answer-question-node.js","student-app/components/student-short-answer-question-node.js","student-app/components/student-table.js","student-app/components/student-text-question-node.js","student-app/components/sub-navigation.js","student-app/components/text-token.js","student-app/components/timer-display-text.js","student-app/components/timer-popup.js","student-app/components/toggle-button.js","student-app/components/toggle-drawer.js","student-app/components/tool-tip.js","student-app/components/touch-handler.js","student-app/components/triangle-toggle.js","student-app/components/true-false-question-analysis.js","student-app/components/true-false-question-form.js","student-app/components/true-false-response-view.js","student-app/components/truncate-multiline.js","student-app/components/warning-box.js","student-app/controllers/application.js","student-app/controllers/auth/admin/organizations/course-groups.js","student-app/controllers/auth/admin/organizations/courses.js","student-app/controllers/auth/admin/organizations/create.js","student-app/controllers/auth/admin/organizations/edit.js","student-app/controllers/auth/admin/organizations/index.js","student-app/controllers/auth/admin/organizations/users.js","student-app/controllers/auth/admin/purge.js","student-app/controllers/auth/assessment-attempt/batch-score.js","student-app/controllers/auth/assessment-attempt/question-analysis.js","student-app/controllers/auth/assessment-attempt/status-results.js","student-app/controllers/auth/assessment-response/edit.js","student-app/controllers/auth/assessment-response/response/edit.js","student-app/controllers/auth/assessment-template/edit.js","student-app/controllers/auth/assessment-template/edit/questions.js","student-app/controllers/auth/assessment-template/edit/settings.js","student-app/controllers/auth/assessment-template/index.js","student-app/controllers/auth/assessment-template/preview.js","student-app/controllers/auth/building-overview/course-assessments.js","student-app/controllers/auth/building-overview/courses-by-course-group.js","student-app/controllers/auth/building-overview/courses-by-school.js","student-app/controllers/auth/course-assessments.js","student-app/controllers/auth/course-groups/edit.js","student-app/controllers/auth/course-groups/index.js","student-app/controllers/auth/course-roster/all.js","student-app/controllers/auth/course-roster/show.js","student-app/controllers/auth/courses-dashboard.js","student-app/controllers/auth/manage-course.js","student-app/controllers/auth/previous-assessment-data.js","student-app/controllers/auth/program-subscriptions.js","student-app/controllers/auth/programs/create.js","student-app/controllers/auth/programs/edit.js","student-app/controllers/auth/programs/index.js","student-app/controllers/auth/programs/organization-assessments.js","student-app/controllers/auth/programs/program-reports/index.js","student-app/controllers/auth/programs/program-reports/show.js","student-app/controllers/auth/question-group/edit.js","student-app/controllers/auth/question-group/index.js","student-app/controllers/auth/questions/edit.js","student-app/controllers/auth/questions/index.js","student-app/controllers/auth/reports/assessment-performance.js","student-app/controllers/auth/reports/index.js","student-app/controllers/auth/reports/standards-summary.js","student-app/controllers/auth/reports/student-performance.js","student-app/controllers/auth/reports/team-performance.js","student-app/controllers/auth/rubric/edit.js","student-app/controllers/auth/rubric/index.js","student-app/controllers/auth/standard/edit.js","student-app/controllers/auth/standard/index.js","student-app/controllers/auth/standard/show.js","student-app/controllers/auth/student-assessments/assessment-response/instructions.js","student-app/controllers/auth/student-assessments/assessment-response/show.js","student-app/controllers/auth/student-assessments/course-overview/index.js","student-app/controllers/auth/student-assessments/course-overview/show.js","student-app/controllers/auth/student-assessments/rubrics/show.js","student-app/controllers/auth/student-assessments/school-select.js","student-app/controllers/auth/training-organization.js","student-app/controllers/auth/users.js","student-app/controllers/course-pin-roster.js","student-app/controllers/course-pin-sign-in.js","student-app/controllers/errors/invalid-user.js","student-app/controllers/sign-in.js","student-app/flash/object.js","student-app/helpers/and.js","student-app/helpers/app-version.js","student-app/helpers/basic-math.js","student-app/helpers/compare-ints.js","student-app/helpers/eq.js","student-app/helpers/gt.js","student-app/helpers/gte.js","student-app/helpers/i-plus.js","student-app/helpers/ignore-children.js","student-app/helpers/is-after.js","student-app/helpers/is-array.js","student-app/helpers/is-before.js","student-app/helpers/is-between.js","student-app/helpers/is-empty.js","student-app/helpers/is-equal.js","student-app/helpers/is-same-or-after.js","student-app/helpers/is-same-or-before.js","student-app/helpers/is-same.js","student-app/helpers/lt.js","student-app/helpers/lte.js","student-app/helpers/moment-add.js","student-app/helpers/moment-calendar.js","student-app/helpers/moment-diff.js","student-app/helpers/moment-duration.js","student-app/helpers/moment-format.js","student-app/helpers/moment-from-now.js","student-app/helpers/moment-from.js","student-app/helpers/moment-subtract.js","student-app/helpers/moment-to-date.js","student-app/helpers/moment-to-now.js","student-app/helpers/moment-to.js","student-app/helpers/moment-unix.js","student-app/helpers/moment.js","student-app/helpers/not-eq.js","student-app/helpers/not.js","student-app/helpers/now.js","student-app/helpers/or.js","student-app/helpers/path-lookup.js","student-app/helpers/question-indicator-text.js","student-app/helpers/route-action.js","student-app/helpers/sanitize-and-escape.js","student-app/helpers/unix.js","student-app/helpers/utc.js","student-app/helpers/xor.js","student-app/initializers/add-modals-container.js","student-app/initializers/app-version.js","student-app/initializers/container-debug-adapter.js","student-app/initializers/coordinator-setup.js","student-app/initializers/ember-keyboard-first-responder-inputs.js","student-app/initializers/export-application-global.js","student-app/initializers/flash-messages.js","student-app/instance-initializers/sentry-performance.js","student-app/mixins/google-pageview.js","student-app/models/answer-geometry.js","student-app/models/answer-metadata.js","student-app/models/answer-segment.js","student-app/models/answer.js","student-app/models/application-config.js","student-app/models/assessment-attempt-detail.js","student-app/models/assessment-attempt.js","student-app/models/assessment-detail.js","student-app/models/assessment-question-result.js","student-app/models/assessment-report.js","student-app/models/assessment-response.js","student-app/models/assessment-template-question-group.js","student-app/models/assessment-template-question.js","student-app/models/assessment-template-report-opt-out.js","student-app/models/assessment-template.js","student-app/models/assessment.js","student-app/models/assigned-assessment-search.js","student-app/models/attempt-detail.js","student-app/models/available-assessment-search.js","student-app/models/available-assessment.js","student-app/models/base-model.js","student-app/models/classification.js","student-app/models/coordinator.js","student-app/models/course-detail.js","student-app/models/course-group-course-detail.js","student-app/models/course-group-detail.js","student-app/models/course-group.js","student-app/models/course-pin.js","student-app/models/course.js","student-app/models/manual-match.js","student-app/models/match.js","student-app/models/media-asset.js","student-app/models/message.js","student-app/models/obj-hash.js","student-app/models/official-assessment-attempt.js","student-app/models/org-admin-course-detail.js","student-app/models/org-program-assessment.js","student-app/models/organization.js","student-app/models/program-report.js","student-app/models/program-subscription.js","student-app/models/program.js","student-app/models/purge-status.js","student-app/models/question-filter.js","student-app/models/question-group-question.js","student-app/models/question-group.js","student-app/models/question-node.js","student-app/models/question-question-node.js","student-app/models/question.js","student-app/models/released-student-result.js","student-app/models/reports/assessment-performance-assessment.js","student-app/models/reports/assessment-performance-record.js","student-app/models/reports/assessment-performance-report.js","student-app/models/reports/assessment-performance-standard.js","student-app/models/reports/course-report-assessment.js","student-app/models/reports/course-report.js","student-app/models/reports/standards-summary-assessment.js","student-app/models/reports/standards-summary-course.js","student-app/models/reports/standards-summary-report.js","student-app/models/reports/standards-summary-standard.js","student-app/models/reports/standards-summary-student.js","student-app/models/reports/student-performance-assessment.js","student-app/models/reports/student-performance-report.js","student-app/models/reports/student-performance-standard.js","student-app/models/reports/student-performance-student.js","student-app/models/reports/team-performance-assessment.js","student-app/models/reports/team-performance-course.js","student-app/models/reports/team-performance-report.js","student-app/models/reports/team-performance-standard.js","student-app/models/reports/team-performance-student.js","student-app/models/response-metadata.js","student-app/models/response-result.js","student-app/models/response.js","student-app/models/role.js","student-app/models/rubric-component-descriptor.js","student-app/models/rubric-component.js","student-app/models/rubric.js","student-app/models/scored-rubric-component.js","student-app/models/scored-rubric.js","student-app/models/scoring-band.js","student-app/models/scoring-metadata.js","student-app/models/sign-in-metadata.js","student-app/models/standard.js","student-app/models/student-answer.js","student-app/models/student-question-node.js","student-app/models/student-question.js","student-app/models/training/training-assessment.js","student-app/models/training/training-course.js","student-app/models/training/training-organization-detail.js","student-app/models/unscored-assessment-response.js","student-app/models/user.js","student-app/modifiers/did-insert.js","student-app/modifiers/did-update.js","student-app/modifiers/will-destroy.js","student-app/overrides/route.js","student-app/presenters/node-presenter.js","student-app/presenters/token-presenter.js","student-app/router.js","student-app/routes/application.js","student-app/routes/auth.js","student-app/routes/auth/admin/index.js","student-app/routes/auth/admin/organizations/course-groups.js","student-app/routes/auth/admin/organizations/courses.js","student-app/routes/auth/admin/organizations/create.js","student-app/routes/auth/admin/organizations/edit.js","student-app/routes/auth/admin/organizations/index.js","student-app/routes/auth/admin/organizations/show.js","student-app/routes/auth/admin/organizations/users.js","student-app/routes/auth/admin/purge.js","student-app/routes/auth/assessment-attempt.js","student-app/routes/auth/assessment-attempt/batch-score.js","student-app/routes/auth/assessment-attempt/index.js","student-app/routes/auth/assessment-attempt/question-analysis.js","student-app/routes/auth/assessment-attempt/status-results.js","student-app/routes/auth/assessment-response.js","student-app/routes/auth/assessment-response/edit.js","student-app/routes/auth/assessment-response/response/edit.js","student-app/routes/auth/assessment-template/edit.js","student-app/routes/auth/assessment-template/edit/index.js","student-app/routes/auth/assessment-template/edit/questions.js","student-app/routes/auth/assessment-template/edit/settings.js","student-app/routes/auth/assessment-template/index.js","student-app/routes/auth/assessment-template/preview.js","student-app/routes/auth/building-overview/course-assessments.js","student-app/routes/auth/building-overview/course-summaries.js","student-app/routes/auth/building-overview/courses-by-course-group.js","student-app/routes/auth/building-overview/courses-by-school.js","student-app/routes/auth/building-overview/index.js","student-app/routes/auth/course-assessments.js","student-app/routes/auth/course-groups/edit.js","student-app/routes/auth/course-groups/index.js","student-app/routes/auth/course-roster/all.js","student-app/routes/auth/course-roster/index.js","student-app/routes/auth/course-roster/show.js","student-app/routes/auth/courses-dashboard.js","student-app/routes/auth/creator/assessment-template.js","student-app/routes/auth/creator/loading.js","student-app/routes/auth/index.js","student-app/routes/auth/manage-course.js","student-app/routes/auth/previous-assessment-data.js","student-app/routes/auth/program-subscriptions.js","student-app/routes/auth/programs/create.js","student-app/routes/auth/programs/edit.js","student-app/routes/auth/programs/index.js","student-app/routes/auth/programs/organization-assessments.js","student-app/routes/auth/programs/program-reports/index.js","student-app/routes/auth/programs/program-reports/show.js","student-app/routes/auth/question-group/edit.js","student-app/routes/auth/question-group/index.js","student-app/routes/auth/questions/edit.js","student-app/routes/auth/questions/index.js","student-app/routes/auth/reports/assessment-performance.js","student-app/routes/auth/reports/index.js","student-app/routes/auth/reports/standards-summary.js","student-app/routes/auth/reports/student-performance.js","student-app/routes/auth/reports/team-performance.js","student-app/routes/auth/rubric/edit.js","student-app/routes/auth/rubric/index.js","student-app/routes/auth/standard/edit.js","student-app/routes/auth/standard/index.js","student-app/routes/auth/standard/show.js","student-app/routes/auth/student-assessments.js","student-app/routes/auth/student-assessments/assessment-response.js","student-app/routes/auth/student-assessments/assessment-response/edit.js","student-app/routes/auth/student-assessments/assessment-response/instructions.js","student-app/routes/auth/student-assessments/assessment-response/response.js","student-app/routes/auth/student-assessments/assessment-response/response/edit.js","student-app/routes/auth/student-assessments/assessment-response/show.js","student-app/routes/auth/student-assessments/course-overview.js","student-app/routes/auth/student-assessments/course-overview/index.js","student-app/routes/auth/student-assessments/course-overview/show.js","student-app/routes/auth/student-assessments/finished.js","student-app/routes/auth/student-assessments/index.js","student-app/routes/auth/student-assessments/rubrics/show.js","student-app/routes/auth/student-assessments/school-select/index.js","student-app/routes/auth/training-organization.js","student-app/routes/auth/users.js","student-app/routes/course-pin-roster.js","student-app/routes/course-pin-sign-in.js","student-app/routes/index.js","student-app/routes/sign-in.js","student-app/services/ajax-error-service.js","student-app/services/api-client.js","student-app/services/audio-service.js","student-app/services/cookies.js","student-app/services/drag-coordinator.js","student-app/services/file-uploader.js","student-app/services/flash-messages.js","student-app/services/flash-service.js","student-app/services/keyboard.js","student-app/services/loading-service.js","student-app/services/mathjax-manager.js","student-app/services/media-inspector.js","student-app/services/media-upload-progress-manager.js","student-app/services/message-service.js","student-app/services/modal-dialog.js","student-app/services/moment.js","student-app/services/response-tracking-service.js","student-app/services/state-manager.js","student-app/services/timer-service.js","student-app/services/unified-event-handler.js","student-app/services/user-session.js","student-app/state-managers/assessment-attempt-batch-score.js","student-app/state-managers/assessment-attempt-question-analysis.js","student-app/state-managers/assessment-attempt-status-results.js","student-app/state-managers/assessment-performance-report.js","student-app/state-managers/assessment-response-edit.js","student-app/state-managers/assessment-template-edit.js","student-app/state-managers/building-admin-courses.js","student-app/state-managers/building-admin-programs.js","student-app/state-managers/components/proctor-assessment-attempts.js","student-app/state-managers/course-group-edit.js","student-app/state-managers/course-group-index.js","student-app/state-managers/course-index.js","student-app/state-managers/course-pin-roster.js","student-app/state-managers/course-pin-sign-in.js","student-app/state-managers/course-show.js","student-app/state-managers/org-admin-courses.js","student-app/state-managers/organization-assessments.js","student-app/state-managers/organization-create.js","student-app/state-managers/organization-edit.js","student-app/state-managers/organization-index.js","student-app/state-managers/previous-assessment.js","student-app/state-managers/program-create.js","student-app/state-managers/program-edit.js","student-app/state-managers/program-index.js","student-app/state-managers/program-reports-index.js","student-app/state-managers/program-reports-show.js","student-app/state-managers/purge.js","student-app/state-managers/question-index.js","student-app/state-managers/reports-index.js","student-app/state-managers/response-grade.js","student-app/state-managers/sign-in.js","student-app/state-managers/standard-edit.js","student-app/state-managers/standards-summary-report.js","student-app/state-managers/student-course-overview.js","student-app/state-managers/student-performance-report.js","student-app/state-managers/student-roster.js","student-app/state-managers/team-performance-report.js","student-app/state-managers/training-organization.js","student-app/state-managers/user-index.js","student-app/templates/application.js","student-app/templates/auth/admin/organizations/course-groups.js","student-app/templates/auth/admin/organizations/courses.js","student-app/templates/auth/admin/organizations/create.js","student-app/templates/auth/admin/organizations/edit.js","student-app/templates/auth/admin/organizations/index.js","student-app/templates/auth/admin/organizations/users.js","student-app/templates/auth/admin/purge.js","student-app/templates/auth/assessment-attempt/batch-score.js","student-app/templates/auth/assessment-attempt/question-analysis.js","student-app/templates/auth/assessment-attempt/status-results.js","student-app/templates/auth/assessment-response/edit.js","student-app/templates/auth/assessment-response/response/edit.js","student-app/templates/auth/assessment-template/edit.js","student-app/templates/auth/assessment-template/edit/questions.js","student-app/templates/auth/assessment-template/edit/settings.js","student-app/templates/auth/assessment-template/index.js","student-app/templates/auth/assessment-template/preview-loading.js","student-app/templates/auth/assessment-template/preview.js","student-app/templates/auth/assessment.js","student-app/templates/auth/building-overview.js","student-app/templates/auth/building-overview/course-assessments.js","student-app/templates/auth/building-overview/course-summaries.js","student-app/templates/auth/building-overview/courses-by-course-group.js","student-app/templates/auth/building-overview/courses-by-school.js","student-app/templates/auth/course-assessments.js","student-app/templates/auth/course-groups/edit.js","student-app/templates/auth/course-groups/index.js","student-app/templates/auth/course-roster/all.js","student-app/templates/auth/course-roster/show.js","student-app/templates/auth/courses-dashboard.js","student-app/templates/auth/manage-course.js","student-app/templates/auth/previous-assessment-data.js","student-app/templates/auth/program-subscriptions.js","student-app/templates/auth/programs/create.js","student-app/templates/auth/programs/edit.js","student-app/templates/auth/programs/index.js","student-app/templates/auth/programs/organization-assessments.js","student-app/templates/auth/programs/program-reports/index.js","student-app/templates/auth/programs/program-reports/show.js","student-app/templates/auth/question-group/edit.js","student-app/templates/auth/question-group/index.js","student-app/templates/auth/questions/edit.js","student-app/templates/auth/questions/index.js","student-app/templates/auth/reports/assessment-performance.js","student-app/templates/auth/reports/index.js","student-app/templates/auth/reports/standards-summary.js","student-app/templates/auth/reports/student-performance.js","student-app/templates/auth/reports/team-performance.js","student-app/templates/auth/rubric/edit.js","student-app/templates/auth/rubric/index.js","student-app/templates/auth/standard/edit.js","student-app/templates/auth/standard/index.js","student-app/templates/auth/standard/show.js","student-app/templates/auth/student-assessments/assessment-response/edit.js","student-app/templates/auth/student-assessments/assessment-response/instructions.js","student-app/templates/auth/student-assessments/assessment-response/response/edit.js","student-app/templates/auth/student-assessments/assessment-response/show.js","student-app/templates/auth/student-assessments/course-overview/index.js","student-app/templates/auth/student-assessments/course-overview/show.js","student-app/templates/auth/student-assessments/finished.js","student-app/templates/auth/student-assessments/rubrics/show.js","student-app/templates/auth/student-assessments/school-select.js","student-app/templates/auth/training-organization.js","student-app/templates/auth/users.js","student-app/templates/components/draggable-object-target.js","student-app/templates/components/draggable-object.js","student-app/templates/components/object-bin.js","student-app/templates/components/sortable-objects.js","student-app/templates/course-pin-roster.js","student-app/templates/course-pin-sign-in.js","student-app/templates/errors/500.js","student-app/templates/errors/503.js","student-app/templates/errors/general.js","student-app/templates/errors/invalid-user.js","student-app/templates/sign-in.js","student-app/transforms/file.js","student-app/utils/audio-control.js","student-app/utils/drop-target-geometry.js","student-app/utils/get-cmd-key.js","student-app/utils/html-tokenizer.js","student-app/utils/label-map.js","student-app/utils/listener-name.js","student-app/utils/report-types.js","student-app/utils/rng.js","student-app/utils/timer-string.js","student-app/utils/utils.js","student-app/utils/wiris.js","vendor/ember-cli/app-suffix.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/api-requests/delete-media-asset-request\", [\"exports\", \"student-app/models/base-model\"], function (_exports, _baseModel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.DeleteMediaAssetRequest = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"student-app/models/base-model\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var DeleteMediaAssetRequest = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(DeleteMediaAssetRequest, _BaseModel);\n\n var _super = _createSuper(DeleteMediaAssetRequest);\n\n function DeleteMediaAssetRequest() {\n var _this;\n\n _classCallCheck(this, DeleteMediaAssetRequest);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mediaAssetId\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"attacheeId\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"attacheeType\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isInstructionsMedia\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(DeleteMediaAssetRequest);\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mediaAssetId\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"attacheeId\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"attacheeType\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isInstructionsMedia\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.DeleteMediaAssetRequest = DeleteMediaAssetRequest;\n\n window.__CLASSIC_OWN_CLASSES__.set(DeleteMediaAssetRequest, true);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/api-requests/update-answer-request\", [\"exports\", \"student-app/models/base-model\"], function (_exports, _baseModel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.UpdateAnswerRequest = void 0;\n _exports.convertAnswerToUpdateAnswerRequest = convertAnswerToUpdateAnswerRequest;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"student-app/models/base-model\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var UpdateAnswerRequest = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(UpdateAnswerRequest, _BaseModel);\n\n var _super = _createSuper(UpdateAnswerRequest);\n\n function UpdateAnswerRequest() {\n var _this;\n\n _classCallCheck(this, UpdateAnswerRequest);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"body\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"correct\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"position\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"primary\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"distractor\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerMetadata\", _descriptor7, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(UpdateAnswerRequest);\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"body\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"correct\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"position\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"primary\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"distractor\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"answerMetadata\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.UpdateAnswerRequest = UpdateAnswerRequest;\n\n window.__CLASSIC_OWN_CLASSES__.set(UpdateAnswerRequest, true);\n\n function convertAnswerToUpdateAnswerRequest(answer) {\n var request = new UpdateAnswerRequest();\n request.id = answer.id;\n request.body = answer.body;\n request.correct = answer.correct;\n request.position = answer.position;\n request.primary = answer.primary;\n request.distractor = answer.distractor;\n request.answerMetadata = answer.answerMetadata;\n return request;\n }\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/api-requests/update-assessment-template-request\", [\"exports\", \"student-app/models/base-model\"], function (_exports, _baseModel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.UpdateAssessmentTemplateRequest = void 0;\n _exports.convertAssessmentTemplateToUpdateRequest = convertAssessmentTemplateToUpdateRequest;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"student-app/models/base-model\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var UpdateAssessmentTemplateRequest = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(UpdateAssessmentTemplateRequest, _BaseModel);\n\n var _super = _createSuper(UpdateAssessmentTemplateRequest);\n\n function UpdateAssessmentTemplateRequest() {\n var _this;\n\n _classCallCheck(this, UpdateAssessmentTemplateRequest);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"instructions\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"retriable\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"resumable\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"retakable\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"allowFullPage\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"questionIndicator\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"allowNotes\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"altFont\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"randomAnswerOrder\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerLabels\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerShadeEnabled\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerInSecs\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerFormat\", _descriptor15, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(UpdateAssessmentTemplateRequest);\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"instructions\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"retriable\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"resumable\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"retakable\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"allowFullPage\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"questionIndicator\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"allowNotes\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"altFont\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"randomAnswerOrder\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"answerLabels\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"answerShadeEnabled\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"timerInSecs\", [_dec14], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"timerFormat\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.UpdateAssessmentTemplateRequest = UpdateAssessmentTemplateRequest;\n\n window.__CLASSIC_OWN_CLASSES__.set(UpdateAssessmentTemplateRequest, true);\n\n function convertAssessmentTemplateToUpdateRequest(assessmentTemplate) {\n var request = new UpdateAssessmentTemplateRequest();\n request.id = assessmentTemplate.id;\n request.title = assessmentTemplate.title;\n request.instructions = assessmentTemplate.instructions;\n request.retriable = assessmentTemplate.retriable;\n request.resumable = assessmentTemplate.resumable;\n request.retakable = assessmentTemplate.retakable;\n request.allowFullPage = assessmentTemplate.allowFullPage;\n request.questionIndicator = assessmentTemplate.questionIndicator;\n request.allowNotes = assessmentTemplate.allowNotes;\n request.altFont = assessmentTemplate.altFont;\n request.randomAnswerOrder = assessmentTemplate.randomAnswerOrder;\n request.answerLabels = assessmentTemplate.answerLabels;\n request.answerShadeEnabled = assessmentTemplate.answerShadeEnabled;\n request.timerInSecs = assessmentTemplate.timerInSecs;\n request.timerFormat = assessmentTemplate.timerFormat;\n return request;\n }\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/api-requests/update-question-request\", [\"exports\", \"student-app/models/base-model\"], function (_exports, _baseModel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.UpdateQuestionRequest = void 0;\n _exports.convertQuestionToUpdateQuestionRequest = convertQuestionToUpdateQuestionRequest;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"student-app/models/base-model\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var UpdateQuestionRequest = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(UpdateQuestionRequest, _BaseModel);\n\n var _super = _createSuper(UpdateQuestionRequest);\n\n function UpdateQuestionRequest() {\n var _this;\n\n _classCallCheck(this, UpdateQuestionRequest);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"description\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"instructions\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hiddenDuringAssessment\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"rubricId\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"numeric\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"scoringAlgorithm\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"scoringMetadata\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"displayAsList\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"lockAnswers\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"multiselect\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"primaryColumnLockAnswers\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"secondaryColumnLockAnswers\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"primaryAnswerTitle\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"secondaryAnswerTitle\", _descriptor15, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"allowInfiniteAnswers\", _descriptor16, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hideDropRegions\", _descriptor17, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"digitalKeypad\", _descriptor18, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"inlineHalfWidth\", _descriptor19, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"autoPlayAudio\", _descriptor20, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(UpdateQuestionRequest);\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"instructions\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hiddenDuringAssessment\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"rubricId\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"numeric\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"scoringAlgorithm\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"scoringMetadata\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"displayAsList\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"lockAnswers\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"multiselect\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"primaryColumnLockAnswers\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"secondaryColumnLockAnswers\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"primaryAnswerTitle\", [_dec14], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"secondaryAnswerTitle\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"allowInfiniteAnswers\", [_dec16], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"hideDropRegions\", [_dec17], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"digitalKeypad\", [_dec18], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"inlineHalfWidth\", [_dec19], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"autoPlayAudio\", [_dec20], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.UpdateQuestionRequest = UpdateQuestionRequest;\n\n window.__CLASSIC_OWN_CLASSES__.set(UpdateQuestionRequest, true);\n\n function convertQuestionToUpdateQuestionRequest(question) {\n var _question$rubric;\n\n var request = new UpdateQuestionRequest();\n request.id = question.id;\n request.title = question.title;\n request.description = question.description;\n request.instructions = question.instructions;\n request.hiddenDuringAssessment = question.hiddenDuringAssessment;\n request.rubricId = (_question$rubric = question.rubric) === null || _question$rubric === void 0 ? void 0 : _question$rubric.id;\n request.numeric = question.numeric;\n request.scoringAlgorithm = question.scoringAlgorithm;\n request.scoringMetadata = question.scoringMetadata;\n request.displayAsList = question.displayAsList;\n request.lockAnswers = question.lockAnswers;\n request.multiselect = question.multiselect;\n request.primaryColumnLockAnswers = question.primaryColumnLockAnswers;\n request.secondaryColumnLockAnswers = question.secondaryColumnLockAnswers;\n request.primaryAnswerTitle = question.primaryAnswerTitle;\n request.secondaryAnswerTitle = question.secondaryAnswerTitle;\n request.allowInfiniteAnswers = question.allowInfiniteAnswers;\n request.hideDropRegions = question.hideDropRegions;\n request.digitalKeypad = question.digitalKeypad;\n request.inlineHalfWidth = question.inlineHalfWidth;\n request.autoPlayAudio = question.autoPlayAudio;\n return request;\n }\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/app\", [\"exports\", \"ember-resolver\", \"ember-load-initializers\", \"student-app/config/environment\", \"@sentry/ember\", \"student-app/overrides/route\"], function (_exports, _emberResolver, _emberLoadInitializers, _environment, _ember, _route) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"student-app/config/environment\",0,\"@sentry/ember\",0,\"student-app/overrides/route\"eaimeta@70e063a35619d71f\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n if (_environment.default.environment === 'production') {\n (0, _ember.InitSentryForEmber)();\n }\n\n var App = /*#__PURE__*/function (_Ember$Application) {\n _inherits(App, _Ember$Application);\n\n var _super = _createSuper(App);\n\n function App() {\n var _this;\n\n _classCallCheck(this, App);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"modulePrefix\", _environment.default.modulePrefix);\n\n _defineProperty(_assertThisInitialized(_this), \"podModulePrefix\", _environment.default.podModulePrefix);\n\n _defineProperty(_assertThisInitialized(_this), \"Resolver\", _emberResolver.default);\n\n _defineProperty(_assertThisInitialized(_this), \"rootElement\", 'body');\n\n _defineProperty(_assertThisInitialized(_this), \"LOG_TRANSITIONS\", false);\n\n return _this;\n }\n\n return _createClass(App);\n }(Ember.Application);\n\n _exports.default = App;\n\n window.__CLASSIC_OWN_CLASSES__.set(App, true);\n\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"student-app/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\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 _emberComponentManager.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component/-private/ember-component-manager\"eaimeta@70e063a35619d71f\n});","define(\"student-app/components/admin-organization-nav\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n \n Users\n \n \n \n Courses\n \n \n \n Share Reports\n \n
\n
\n \n */\n {\n id: \"oJpX2TaO\",\n block: \"{\\\"symbols\\\":[\\\"@organization\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bs-row bs-row--remove-column-padding\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation sub-navigation--narrow-margin app-sub-navigation\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"sub-navigation__link app-users-link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"auth.admin.organizations.users\\\",[23,1,[\\\"id\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n Users\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"sub-navigation__link app-courses-link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"auth.admin.organizations.courses\\\",[23,1,[\\\"id\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n Courses\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"sub-navigation__link app-course-groups-link\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"auth.admin.organizations.course-groups\\\",[23,1,[\\\"id\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n Share Reports\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/admin-organization-nav.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","define(\"student-app/components/answer-media-assets\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n */\n {\n id: \"hnNPJNRB\",\n block: \"{\\\"symbols\\\":[\\\"asset\\\",\\\"@mediaAssets\\\"],\\\"statements\\\":[[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"app-media-assets media-assets-display media-assets-display-for-answer\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[\\\"app-media-asset media-asset-display \\\",[28,\\\"if\\\",[[23,1,[\\\"isImage\\\"]],\\\"media-asset-image\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"preview\\\"]],\\\"question-form__media-asset--preview\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"hasTitle\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"title\\\"],[8],[1,[23,1,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"app-image\\\"],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/answer-media-assets.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/answer-performance-percent-bar\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n */\n {\n id: \"h1XR2eS5\",\n block: \"{\\\"symbols\\\":[\\\"@showStudentResults\\\"],\\\"statements\\\":[[5,\\\"percent-bar\\\",[],[[\\\"@itemBuckets\\\",\\\"@showPercent\\\",\\\"@showItemList\\\",\\\"@selectBucketItem\\\"],[[23,0,[\\\"itemBuckets\\\"]],[23,0,[\\\"showPercent\\\"]],[23,1,[]],[23,0,[\\\"selectAssessmentResponse\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/answer-performance-percent-bar.hbs\"\n }\n });\n\n var AnswerPerformancePercentBar = (_dec = Ember.computed.readOnly('answer.percentChosen'), _dec2 = Ember.computed.readOnly('answer.percentMissed'), _dec3 = Ember.computed.readOnly('answer.correct'), _dec4 = Ember.computed.readOnly('answer.studentsChosen'), _dec5 = Ember.computed.readOnly('answer.studentsMissed'), _dec6 = Ember.computed('studentsChosen.[]'), _dec7 = Ember.computed('studentsMissed.[]'), _dec8 = Ember.computed('correct'), _dec9 = Ember.computed('percentChosen', 'percentMissed', 'bucketId', 'studentsChosenDisplay.[]', 'studentsMissedDisplay.[]', 'args.studentLabel'), _dec10 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AnswerPerformancePercentBar, _Component);\n\n var _super = _createSuper(AnswerPerformancePercentBar);\n\n function AnswerPerformancePercentBar() {\n var _this;\n\n _classCallCheck(this, AnswerPerformancePercentBar);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"percentChosen\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"percentMissed\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"correct\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"studentsChosen\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"studentsMissed\", _descriptor5, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AnswerPerformancePercentBar, [{\n key: \"answer\",\n get: function get() {\n var _this$args$answer;\n\n return (_this$args$answer = this.args.answer) !== null && _this$args$answer !== void 0 ? _this$args$answer : null;\n }\n }, {\n key: \"showStudentResults\",\n get: function get() {\n var _this$args$showStuden;\n\n return (_this$args$showStuden = this.args.showStudentResults) !== null && _this$args$showStuden !== void 0 ? _this$args$showStuden : true;\n }\n }, {\n key: \"showPercent\",\n get: function get() {\n var _this$args$showPercen;\n\n return (_this$args$showPercen = this.args.showPercent) !== null && _this$args$showPercen !== void 0 ? _this$args$showPercen : false;\n }\n }, {\n key: \"studentsChosenDisplay\",\n get: function get() {\n return this.studentsChosen.map(function (s) {\n return {\n text: \"\".concat(s.firstName, \" \").concat(s.lastName),\n value: s.arId\n };\n });\n }\n }, {\n key: \"studentsMissedDisplay\",\n get: function get() {\n var studentsMissed = this.studentsMissed || [];\n return studentsMissed.map(function (s) {\n return {\n text: \"\".concat(s.firstName, \" \").concat(s.lastName),\n value: s.arId\n };\n });\n }\n }, {\n key: \"bucketId\",\n get: function get() {\n if (this.args.bucketId) {\n return this.args.bucketId;\n }\n\n return this.correct ? \"correct\" : \"incorrect\";\n }\n }, {\n key: \"itemBuckets\",\n get: function get() {\n return [{\n label: this.args.studentLabel || \"Chosen By\",\n id: this.bucketId,\n items: this.studentsChosenDisplay,\n percent: this.percentChosen\n }, {\n label: \"Missed By\",\n id: \"incorrect\",\n items: this.studentsMissedDisplay,\n percent: this.percentMissed || 0\n }];\n }\n }, {\n key: \"selectAssessmentResponse\",\n value: function selectAssessmentResponse(bucketId, value) {\n this.args.selectAssessmentResponse(value);\n }\n }]);\n\n return AnswerPerformancePercentBar;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"percentChosen\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"percentMissed\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"correct\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"studentsChosen\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"studentsMissed\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"studentsChosenDisplay\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"studentsChosenDisplay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"studentsMissedDisplay\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"studentsMissedDisplay\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"bucketId\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"bucketId\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"itemBuckets\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"itemBuckets\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectAssessmentResponse\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAssessmentResponse\"), _class.prototype)), _class));\n _exports.default = AnswerPerformancePercentBar;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AnswerPerformancePercentBar);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/answerable-question-node\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AnswerableQuestionNode = (_dec = Ember.computed.readOnly('token.id'), _dec2 = Ember.computed.readOnly('token'), _dec3 = Ember.computed.alias('args.response.responseMetadata'), _dec4 = Ember.computed.readOnly('args.response.nextStarted'), _dec5 = Ember.computed('focusState.id', 'nodeId'), _dec6 = Ember.computed('isFocused', 'hasStartedNextResponse', 'hasAnsweredSubsequentAnswerableOrFocus', 'hasAnswer'), _dec7 = Ember.computed('isFocused', 'orderedAnswerableNodes.@each.id', 'args.response.responseMetadata', 'questionNode'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(AnswerableQuestionNode, _Component);\n\n var _super = _createSuper(AnswerableQuestionNode);\n\n function AnswerableQuestionNode() {\n var _this;\n\n _classCallCheck(this, AnswerableQuestionNode);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"nodeId\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"questionNode\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"responseMetadata\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasStartedNextResponse\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AnswerableQuestionNode, [{\n key: \"token\",\n get: function get() {\n var _this$args$token;\n\n return (_this$args$token = this.args.token) !== null && _this$args$token !== void 0 ? _this$args$token : null;\n }\n }, {\n key: \"focusState\",\n get: function get() {\n var _this$args$focusState;\n\n return (_this$args$focusState = this.args.focusState) !== null && _this$args$focusState !== void 0 ? _this$args$focusState : null;\n }\n }, {\n key: \"orderedAnswerableNodes\",\n get: function get() {\n var _this$args$orderedAns;\n\n return (_this$args$orderedAns = this.args.orderedAnswerableNodes) !== null && _this$args$orderedAns !== void 0 ? _this$args$orderedAns : [];\n }\n }, {\n key: \"isFocused\",\n get: function get() {\n return this.focusState.id == this.nodeId;\n } // hasAnswer is defined in the components that extend this one\n\n }, {\n key: \"isSkipped\",\n get: function get() {\n return !this.hasAnswer && !this.isFocused && (this.hasStartedNextResponse || this.hasAnsweredSubsequentAnswerableOrFocus);\n }\n }, {\n key: \"hasAnsweredSubsequentAnswerableOrFocus\",\n get: function get() {\n var _this2 = this;\n\n var answerables = this.orderedAnswerableNodes;\n var index = answerables.mapBy('id').indexOf(this.nodeId);\n var isLastNode = index === answerables.length - 1;\n var meta = this.responseMetadata;\n\n if (!isLastNode) {\n var subsequentNodes = answerables.slice(index + 1);\n var hasAnswer = subsequentNodes.any(function (sn) {\n return !Ember.isBlank(meta.find(function (m) {\n return m.questionNodeId == sn.id;\n }));\n });\n var hasFocus = subsequentNodes.any(function (sn) {\n return sn.id === _this2.focusState.id;\n });\n return hasAnswer || hasFocus;\n }\n\n return false;\n }\n }]);\n\n return AnswerableQuestionNode;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"nodeId\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"questionNode\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"responseMetadata\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasStartedNextResponse\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"isFocused\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"isFocused\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isSkipped\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"isSkipped\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasAnsweredSubsequentAnswerableOrFocus\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"hasAnsweredSubsequentAnswerableOrFocus\"), _class.prototype)), _class));\n _exports.default = AnswerableQuestionNode;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-question-result\", [\"exports\", \"@glimmer/component\", \"student-app/utils/label-map\"], function (_exports, _component, _labelMap) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@glimmer/component\",0,\"student-app/utils/label-map\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n {{! template-lint-disable no-nested-interactive}}\n \n
\n
\n \n \n
\n {{ i-plus this.position }}\n
\n \n
\n
\n {{#each this.standards as |standard|}}\n \n {{standard.name}}\n \n {{/each}}\n
\n
\n {{this.type}}\n {{this.scoringAlgorithm}}\n
\n
\n \n
\n
\n {{sanitize-and-escape this.description}}\n
\n
\n
\n \n {{#if this.showSliderContent }}\n
\n
\n \n View Full Question\n
\n \n {{#if (eq this.type 'Multiple Choice')}}\n \n {{else if (eq this.type 'Essay')}}\n \n {{else if (eq this.type 'Matching')}}\n \n {{else if (eq this.type 'Short Answer')}}\n \n {{else if (eq this.type 'True False')}}\n \n {{else if (eq this.type 'Drag and Drop')}}\n \n {{else if (eq this.type 'Inline')}}\n \n {{/if}}\n
\n {{/if}}\n
\n \n \n */\n {\n id: \"GSOTc7kc\",\n block: \"{\\\"symbols\\\":[\\\"standard\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\",\\\"@previewQuestion\\\",\\\"@expandStandard\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"bordered-list__list-item app-question-result \\\",[28,\\\"if\\\",[[23,0,[\\\"isClosed\\\"]],\\\"actionable\\\"],null]]]],[12,\\\"data-question-id\\\",[29,[[23,0,[\\\"dataQuestionId\\\"]]]]],[12,\\\"data-question-type\\\",[29,[[23,0,[\\\"dataQuestionType\\\"]]]]],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"questionClicked\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__excerpt\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"triangle-toggle\\\",[],[[\\\"@isOpen\\\",\\\"@classNames\\\",\\\"@clickAction\\\"],[[23,0,[\\\"showSliderContent\\\"]],\\\"app-toggle-question-expanded-content\\\",[23,0,[\\\"toggleQuestion\\\"]]]]],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__item question-result__item--position\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"i-plus\\\",[[23,0,[\\\"position\\\"]]],null],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__item question-result__item--excerpt-content\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__item question-result__item--standards\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"standards\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-padding no-font-weight question-result__standard\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,5,[]],[23,1,[\\\"id\\\"]]],null]]],[8],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__item question-result__item--question-details\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"question-result__type-label\\\"],[8],[1,[23,0,[\\\"type\\\"]],false],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"question-result__scoring-algorithm-label\\\"],[8],[1,[23,0,[\\\"scoringAlgorithm\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__item app-performance question-result__item--performance\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"student-performance-percent-bar\\\",[],[[\\\"@responseBands\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"responseBands\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-result__item question-result__item--description\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,0,[\\\"description\\\"]]],null],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showSliderContent\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-question-expanded-content app-detail-question-analysis question-result__slider-content\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"app-view-full question-result__preview-question-link\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,4,[]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon icon--xsmall icon--flipped icon-search-blue\\\"],[8],[9],[0,\\\"\\\\n View Full Question\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"Multiple Choice\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"multiple-choice-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"Essay\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"essay-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"Matching\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"matching-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"Short Answer\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"short-answer-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"True False\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"true-false-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"Drag and Drop\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-with-snap-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"type\\\"]],\\\"Inline\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"inline-question-analysis\\\",[],[[\\\"@answers\\\",\\\"@result\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],[[23,0,[\\\"answers\\\"]],[23,0,[\\\"result\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-question-result.hbs\"\n }\n });\n\n var AssessmentQuestionResult = (_dec = Ember.inject.service, _dec2 = Ember.computed.readOnly('result.expanded'), _dec3 = Ember.computed.not('showSliderContent'), _dec4 = Ember.computed.readOnly('result.position'), _dec5 = Ember.computed.readOnly('result.questionId'), _dec6 = Ember.computed.readOnly('result.description'), _dec7 = Ember.computed.readOnly('result.standards'), _dec8 = Ember.computed.readOnly('result.responseBands'), _dec9 = Ember.computed.readOnly('result.answerResults'), _dec10 = Ember.computed('type'), _dec11 = Ember.computed('result.type'), _dec12 = Ember.computed('result.{type,multiselect,scoringAlgorithm}'), _dec13 = Ember._action, _dec14 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentQuestionResult, _Component);\n\n var _super = _createSuper(AssessmentQuestionResult);\n\n function AssessmentQuestionResult(owner, args) {\n var _this;\n\n _classCallCheck(this, AssessmentQuestionResult);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"showSliderContent\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isClosed\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"position\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"dataQuestionId\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"description\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"standards\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"responseBands\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answers\", _descriptor9, _assertThisInitialized(_this));\n\n _this.mathjaxManager.updateFormulas();\n\n return _this;\n }\n\n _createClass(AssessmentQuestionResult, [{\n key: \"result\",\n get: function get() {\n var _this$args$result;\n\n return (_this$args$result = this.args.result) !== null && _this$args$result !== void 0 ? _this$args$result : null;\n }\n }, {\n key: \"dataQuestionType\",\n get: function get() {\n return this.type.dasherize();\n }\n }, {\n key: \"type\",\n get: function get() {\n return _labelMap.questionTypeMap[this.result.type] || this.result.type;\n }\n }, {\n key: \"scoringAlgorithm\",\n get: function get() {\n if (this.result.type === 'MultipleChoiceQuestion' && !this.result.multiselect) {\n return null;\n }\n\n return _labelMap.scoringAlgorithmMap[this.result.scoringAlgorithm] || this.result.scoringAlgorithm;\n }\n }, {\n key: \"questionClicked\",\n value: function questionClicked() {\n if (this.isClosed) {\n this.toggleQuestion();\n }\n }\n }, {\n key: \"toggleQuestion\",\n value: function toggleQuestion() {\n this.args.toggleQuestion();\n this.mathjaxManager.updateFormulas();\n }\n }]);\n\n return AssessmentQuestionResult;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"showSliderContent\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isClosed\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"position\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"dataQuestionId\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"standards\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"responseBands\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"answers\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"dataQuestionType\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"dataQuestionType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"type\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"type\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"scoringAlgorithm\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"scoringAlgorithm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"questionClicked\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"questionClicked\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleQuestion\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleQuestion\"), _class.prototype)), _class));\n _exports.default = AssessmentQuestionResult;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentQuestionResult);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-response-editor\", [\"exports\", \"jquery\", \"@glimmer/component\"], function (_exports, _jquery, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/tracking\",0,\"jquery\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n {{#unless @disableControls}}\n \n \n {{#if this.assessmentIsTimed}}\n \n \n \n {{/if}}\n \n \n \n \n \n \n \n
\n \n
\n
\n {{/unless}}\n \n
\n
\n
\n {{#if this.viewAllResponses}}\n {{#if this.hasQuestions}}\n
\n {{#each this.responses as |response index|}}\n \n {{/each}}\n \n {{#if @fullAssessmentPreview }}\n \n {{#each this.hiddenResponses as |response index|}}\n \n {{/each}}\n \n {{/if}}\n
\n {{else}}\n \n There are no questions assigned to this assessment.\n \n {{/if}}\n {{else}}\n \n {{/if}}\n
\n
\n
\n \n {{#unless @disableControls}}\n {{#if this.shouldShowTurnInModal}}\n \n {{/if}}\n {{/unless}}\n \n */\n {\n id: \"AjzdBKYk\",\n block: \"{\\\"symbols\\\":[\\\"response\\\",\\\"index\\\",\\\"response\\\",\\\"index\\\",\\\"@disableControls\\\",\\\"@fullAssessmentPreview\\\"],\\\"statements\\\":[[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"nav-bar\\\",[],[[],[]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"assessmentIsTimed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"ember-wormhole\\\",[],[[\\\"@to\\\"],[\\\"assessment-timer-insert\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[5,\\\"assessment-timer\\\",[],[[\\\"@timerInSecs\\\",\\\"@timerFormat\\\",\\\"@startingTime\\\"],[[23,0,[\\\"timeRemaining\\\"]],[23,0,[\\\"timerFormat\\\"]],[23,0,[\\\"startingTime\\\"]]]]],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[5,\\\"ember-wormhole\\\",[],[[\\\"@to\\\"],[\\\"nav-bar-insert\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[5,\\\"nav-elements/signout-button\\\",[],[[\\\"@confirmLeaving\\\",\\\"@canResume\\\"],[true,[23,0,[\\\"canResume\\\"]]]]],[0,\\\"\\\\n \\\"],[5,\\\"nav-elements/student-name\\\",[],[[\\\"@confirmLeaving\\\",\\\"@canResume\\\"],[true,[23,0,[\\\"canResume\\\"]]]]],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"question-controls\\\",[],[[\\\"@questionCount\\\",\\\"@currentQuestionIndex\\\",\\\"@response\\\",\\\"@responses\\\",\\\"@promptForTurnIn\\\",\\\"@editResponse\\\",\\\"@prevQuestion\\\",\\\"@nextQuestion\\\"],[[23,0,[\\\"questionCount\\\"]],[23,0,[\\\"currentQuestionIndex\\\"]],[23,0,[\\\"response\\\"]],[23,0,[\\\"responses\\\"]],[23,0,[\\\"promptForTurnIn\\\"]],[23,0,[\\\"editResponse\\\"]],[23,0,[\\\"prevQuestion\\\"]],[23,0,[\\\"nextQuestion\\\"]]]]],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"complete nav-button\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border app-complete-assessment\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"promptForTurnIn\\\"]]]],[8],[0,\\\"\\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-ok icon-white\\\"],[8],[9],[0,\\\"\\xA0Turn In\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"container\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"span12 student-article indicator-\\\",[28,\\\"if\\\",[[23,0,[\\\"assessment\\\",\\\"questionIndicator\\\"]],\\\"true\\\",\\\"false\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"viewAllResponses\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasQuestions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-questions print-question-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"responses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"question-form\\\",[],[[\\\"@response\\\",\\\"@responsesInQuestionGroup\\\",\\\"@assessment\\\",\\\"@assessmentIsTimedOut\\\",\\\"@assessmentTimeRemaining\\\",\\\"@disableControls\\\",\\\"@hasQuestionIndicator\\\",\\\"@preview\\\",\\\"@saveResponse\\\",\\\"@leaveResponse\\\",\\\"@startResponse\\\",\\\"@saveNotes\\\",\\\"@currentQuestionIndex\\\",\\\"@questionIndex\\\",\\\"@isShowingAllQuestions\\\",\\\"@showStandardsOnPrint\\\",\\\"@totalQuestionCount\\\",\\\"@isSinglePage\\\"],[[23,3,[]],[23,0,[\\\"responsesInQuestionGroup\\\"]],[23,0,[\\\"assessment\\\"]],[23,0,[\\\"assessmentIsTimedOut\\\"]],[23,0,[\\\"timeRemaining\\\"]],[23,5,[]],[23,0,[\\\"assessment\\\",\\\"questionIndicator\\\"]],false,[23,0,[\\\"saveResponse\\\"]],[23,0,[\\\"leaveResponseAction\\\"]],[23,0,[\\\"startResponse\\\"]],[23,0,[\\\"saveNotes\\\"]],[23,0,[\\\"currentQuestionIndex\\\"]],[23,4,[]],[23,0,[\\\"viewAllResponses\\\"]],[23,0,[\\\"showStandardsOnPrint\\\"]],[23,0,[\\\"responseCount\\\"]],[23,0,[\\\"isSinglePage\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"print\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"hiddenResponses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"question-form\\\",[],[[\\\"@response\\\",\\\"@responsesInQuestionGroup\\\",\\\"@assessment\\\",\\\"@disableControls\\\",\\\"@hasQuestionIndicator\\\",\\\"@preview\\\",\\\"@saveResponse\\\",\\\"@leaveResponse\\\",\\\"@startResponse\\\",\\\"@saveNotes\\\",\\\"@currentQuestionIndex\\\",\\\"@questionIndex\\\",\\\"@isShowingAllQuestions\\\",\\\"@showStandardsOnPrint\\\",\\\"@totalQuestionCount\\\"],[[23,1,[]],[23,0,[\\\"responsesInQuestionGroup\\\"]],[23,0,[\\\"assessment\\\"]],[23,5,[]],[23,0,[\\\"assessment\\\",\\\"questionIndicator\\\"]],false,[23,0,[\\\"saveResponse\\\"]],[23,0,[\\\"leaveResponseAction\\\"]],[23,0,[\\\"startResponse\\\"]],[23,0,[\\\"saveNotes\\\"]],[23,0,[\\\"currentQuestionIndex\\\"]],[28,\\\"basic-math\\\",[[23,2,[]],\\\"+\\\",[23,0,[\\\"visibleResponseCount\\\"]]],null],[23,0,[\\\"viewAllResponses\\\"]],[23,0,[\\\"showStandardsOnPrint\\\"]],[23,0,[\\\"responseCount\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"warning-box\\\",[],[[\\\"@classNames\\\"],[\\\"app-assessment-empty-state\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"strong\\\",true],[8],[0,\\\"There are no questions assigned to this assessment.\\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"question-form\\\",[],[[\\\"@response\\\",\\\"@responsesInQuestionGroup\\\",\\\"@assessment\\\",\\\"@assessmentIsTimedOut\\\",\\\"@assessmentTimeRemaining\\\",\\\"@questionIndex\\\",\\\"@currentQuestionIndex\\\",\\\"@hasQuestionIndicator\\\",\\\"@isSinglePage\\\",\\\"@saveNotes\\\",\\\"@saveResponse\\\",\\\"@leaveResponse\\\",\\\"@startResponse\\\"],[[23,0,[\\\"response\\\"]],[23,0,[\\\"responsesInQuestionGroup\\\"]],[23,0,[\\\"assessment\\\"]],[23,0,[\\\"assessmentIsTimedOut\\\"]],[23,0,[\\\"timeRemaining\\\"]],[23,0,[\\\"currentQuestionIndex\\\"]],[23,0,[\\\"currentQuestionIndex\\\"]],[23,0,[\\\"assessment\\\",\\\"questionIndicator\\\"]],[23,0,[\\\"isSinglePage\\\"]],[23,0,[\\\"saveNotes\\\"]],[23,0,[\\\"saveResponse\\\"]],[23,0,[\\\"leaveResponseAction\\\"]],[23,0,[\\\"startResponse\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,5,[]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"shouldShowTurnInModal\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"nav-elements/turn-in-modal\\\",[],[[\\\"@turnInAssessment\\\",\\\"@closeModal\\\"],[[23,0,[\\\"turnInAssessment\\\"]],[23,0,[\\\"closeModal\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-response-editor.hbs\"\n }\n });\n\n var AssessmentResponseEditor = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.inject.service, _dec6 = Ember.computed('args.showStandardsOnPrint'), _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember.computed.alias('responses.length'), _dec11 = Ember.computed.alias('assessmentResponse.resumable'), _dec12 = Ember.computed.alias('assessmentResponse.retakable'), _dec13 = Ember.computed.alias('assessmentResponse.retriable'), _dec14 = Ember.computed('responses.[]', 'response', 'args.initialResponse', 'currentResponse'), _dec15 = Ember.computed.alias('isSinglePage'), _dec16 = Ember.computed.alias('assessmentResponse.responses'), _dec17 = Ember.computed('allResponses'), _dec18 = Ember.computed('response.{id,studentQuestion.assessmentTemplateQuestionGroup.questionGroup.id}', 'args.initialResponse', 'currentResponse'), _dec19 = Ember.computed.notEmpty('responses'), _dec20 = Ember.computed.readOnly('responses.length'), _dec21 = Ember.computed('allResponses'), _dec22 = Ember.computed.readOnly('responses.length'), _dec23 = Ember.computed.alias('assessmentResponse.assessment'), _dec24 = Ember.computed.readOnly('assessment.isTimed'), _dec25 = Ember.computed.readOnly('assessment.timerFormat'), _dec26 = Ember.computed('assessmentResponse.id'), _dec27 = Ember.computed.readOnly('assessmentTimer.time'), _dec28 = Ember.computed.readOnly('assessmentTimer.timedOut'), _dec29 = Ember.computed.and('noTimeRemaining', 'assessmentIsTimed'), _dec30 = Ember.computed.readOnly('assessment.timerInSecs'), _dec31 = Ember.computed.readOnly('assessmentResponse.timeRemaining'), _dec32 = Ember.computed.lt('assessmentResponseTimeRemaining', 1), _dec33 = Ember.computed.and('assessmentTimerIsZero', 'assessmentIsTimed'), _dec34 = Ember.computed.or('isTimedOut', 'assessmentResponseOutOfTime'), _dec35 = Ember._action, _dec36 = Ember._action, _dec37 = Ember._action, _dec38 = Ember._action, _dec39 = Ember._action, _dec40 = Ember._action, _dec41 = Ember._action, _dec42 = Ember._action, _dec43 = Ember._action, _dec44 = Ember._action, _dec45 = Ember._action, _dec46 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentResponseEditor, _Component);\n\n var _super = _createSuper(AssessmentResponseEditor);\n\n function AssessmentResponseEditor(owner, args) {\n var _this;\n\n _classCallCheck(this, AssessmentResponseEditor);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"router\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerService\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"responseTrackingService\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"flashService\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currentResponse\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"shouldShowTurnInModal\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentTimer\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"questionCount\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canResume\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canRetake\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canRetryQuestions\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"viewAllResponses\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"allResponses\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasQuestions\", _descriptor15, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"visibleResponseCount\", _descriptor16, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"responseCount\", _descriptor17, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessment\", _descriptor18, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentIsTimed\", _descriptor19, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerFormat\", _descriptor20, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timeRemaining\", _descriptor21, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"noTimeRemaining\", _descriptor22, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isTimedOut\", _descriptor23, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"startingTime\", _descriptor24, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentResponseTimeRemaining\", _descriptor25, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentTimerIsZero\", _descriptor26, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentResponseOutOfTime\", _descriptor27, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentIsTimedOut\", _descriptor28, _assertThisInitialized(_this));\n\n if (_this.assessmentIsTimed && !_this.assessmentTimer) {\n var assessmentTimer = _this.timerService.setupTimer(_this.assessmentTimerKey, Math.ceil(_this.assessmentResponse.timeRemaining));\n\n _this.assessmentTimer = assessmentTimer;\n } // Start the first response immediately if it doesn't have an info page\n\n\n if (_this.response && (!_this.response.isTimed && !_this.response.hasInstructions || Ember.isPresent(_this.response.startedAt))) {\n _this.startResponse(_this.response);\n }\n\n return _this;\n }\n\n _createClass(AssessmentResponseEditor, [{\n key: \"assessmentResponse\",\n get: function get() {\n var _this$args$assessment;\n\n return (_this$args$assessment = this.args.assessmentResponse) !== null && _this$args$assessment !== void 0 ? _this$args$assessment : null;\n }\n }, {\n key: \"isSinglePage\",\n get: function get() {\n var _this$args$isSinglePa;\n\n return (_this$args$isSinglePa = this.args.isSinglePage) !== null && _this$args$isSinglePa !== void 0 ? _this$args$isSinglePa : null;\n }\n }, {\n key: \"showStandardsOnPrint\",\n get: function get() {\n var _this$args$showStanda;\n\n return (_this$args$showStanda = this.args.showStandardsOnPrint) !== null && _this$args$showStanda !== void 0 ? _this$args$showStanda : false;\n }\n }, {\n key: \"response\",\n get: function get() {\n var _this$currentResponse;\n\n return (_this$currentResponse = this.currentResponse) !== null && _this$currentResponse !== void 0 ? _this$currentResponse : this.args.initialResponse;\n }\n }, {\n key: \"currentQuestionIndex\",\n get: function get() {\n return this.responses.indexOf(this.response);\n }\n }, {\n key: \"responses\",\n get: function get() {\n return this.allResponses.filter(function (resp) {\n return !resp.studentQuestion.hiddenDuringAssessment;\n });\n }\n }, {\n key: \"responsesInQuestionGroup\",\n get: function get() {\n if (!this.response.studentQuestion.assessmentTemplateQuestionGroup) {\n return [];\n }\n\n var questionGroupId = this.response.studentQuestion.assessmentTemplateQuestionGroup.questionGroup.id;\n\n if (Ember.isEmpty(questionGroupId)) {\n return [];\n }\n\n var questionGroupQuestionIds = this.responses.mapBy('studentQuestion').filterBy('questionGroup.id', questionGroupId).mapBy('id');\n return this.responses.filter(function (r) {\n return questionGroupQuestionIds.includes(r.studentQuestion.id);\n });\n }\n }, {\n key: \"hiddenResponses\",\n get: function get() {\n return this.allResponses.filter(function (resp) {\n return resp.studentQuestion.hiddenDuringAssessment;\n });\n }\n }, {\n key: \"assessmentTimerKey\",\n get: function get() {\n return \"assessment-response-\".concat(this.assessmentResponse.id);\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(AssessmentResponseEditor.prototype), \"willDestroy\", this).apply(this, arguments);\n\n this.leaveResponse(this.response);\n }\n }, {\n key: \"anyResponseInQuestionGroupStarted\",\n value: function anyResponseInQuestionGroupStarted(resp) {\n var questionGroupId = resp.studentQuestion.assessmentTemplateQuestionGroup.questionGroup.id;\n var questionGroupQuestionIds = this.responses.mapBy('studentQuestion').filterBy('questionGroup.id', questionGroupId).mapBy('id');\n var questionGroupResponsesStartedAt = this.responses.filter(function (r) {\n return questionGroupQuestionIds.includes(r.studentQuestion.id);\n }).mapBy('startedAt').compact();\n return !Ember.isEmpty(questionGroupResponsesStartedAt);\n }\n }, {\n key: \"saveResponse\",\n value: function () {\n var _saveResponse = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resp) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n resp.version = resp.version + 1;\n resp.skipped = false;\n _context.prev = 2;\n _context.next = 5;\n return this.apiClient.post('responses/update', {\n id: resp.id,\n answerIds: resp.answers.map(function (a) {\n return a.id;\n }),\n body: resp.body,\n matches: resp.matches,\n manualMatches: resp.manualMatches,\n responseMetadata: resp.responseMetadata,\n version: resp.version\n });\n\n case 5:\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](2);\n this.flashService.error('Error: Response could not be saved.', _context.t0);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[2, 7]]);\n }));\n\n function saveResponse(_x) {\n return _saveResponse.apply(this, arguments);\n }\n\n return saveResponse;\n }()\n }, {\n key: \"saveNotes\",\n value: function () {\n var _saveNotes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(resp) {\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return this.apiClient.post('responses/update-notes', {\n id: resp.id,\n notes: resp.notes\n });\n\n case 3:\n _context2.next = 8;\n break;\n\n case 5:\n _context2.prev = 5;\n _context2.t0 = _context2[\"catch\"](0);\n this.flashService.error('Error: Response notes could not be saved.', _context2.t0);\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[0, 5]]);\n }));\n\n function saveNotes(_x2) {\n return _saveNotes.apply(this, arguments);\n }\n\n return saveNotes;\n }()\n }, {\n key: \"pauseAssessment\",\n value: function pauseAssessment() {\n this.responseTrackingService.pauseAssessment(this.assessmentResponse, this.assessmentTimerKey);\n }\n }, {\n key: \"leaveResponseAction\",\n value: function leaveResponseAction(response) {\n this.leaveResponse(response);\n }\n }, {\n key: \"leaveResponse\",\n value: function leaveResponse(response) {\n this.responseTrackingService.leaveResponse(response);\n }\n }, {\n key: \"startResponse\",\n value: function startResponse(response) {\n if (this.args.fullAssessmentPreview || response.isTimed && (response.timeIsExpired || !Ember.isEmpty(response.completedAt)) || this.assessmentIsTimed && this.assessmentIsTimedOut) {\n return;\n }\n\n this.responseTrackingService.startResponse(response, this.assessmentTimerKey, this.assessmentIsTimed, this.responses);\n }\n }, {\n key: \"nextQuestion\",\n value: function nextQuestion() {\n var responseId = this.responses.objectAt(this.currentQuestionIndex + 1).id;\n this.editResponse(responseId);\n }\n }, {\n key: \"prevQuestion\",\n value: function prevQuestion() {\n var responseId = this.responses.objectAt(this.currentQuestionIndex - 1).id;\n this.editResponse(responseId);\n }\n }, {\n key: \"editResponse\",\n value: function editResponse(responseId) {\n var resp = this.responses.findBy('id', responseId);\n\n if (resp == this.response) {\n return;\n }\n\n var leavingStartedResponse = Ember.isPresent(this.response.startedAt);\n\n if (leavingStartedResponse) {\n this.leaveResponse(this.response);\n }\n\n var pauseForQuestionTimer = resp.questionIsTimed && Ember.isEmpty(resp.startedAt);\n var pauseForQuestionGroupTimer = resp.questionGroupIsTimed && !this.anyResponseInQuestionGroupStarted(resp);\n var hasInstructions = resp.hasInstructions;\n\n if (pauseForQuestionTimer || pauseForQuestionGroupTimer) {\n this.pauseAssessment();\n } else if (!hasInstructions || Ember.isPresent(resp.startedAt)) {\n this.startResponse(resp);\n }\n\n if (this.isSinglePage) {\n (0, _jquery.default)('body').scrollTop((0, _jquery.default)(\"[data-response-id='\".concat(responseId, \"']\")).offset().top - 40);\n this.currentResponse = resp;\n } else {\n this.router.transitionTo('auth.student-assessments.assessment-response.response.edit', responseId);\n this.forceRefreshForm(responseId);\n }\n }\n }, {\n key: \"forceRefreshForm\",\n value: function forceRefreshForm(responseId) {\n // This refreshes the individual typed question forms (such as\n // inline-question-form), but not the question-form itself.\n // Without this, it refreshes if the question type changes, but not when\n // two of the same type question are back to back.\n var question = this.allResponses.findBy('id', responseId).studentQuestion;\n var questionType = question.type;\n question.type = '';\n Ember.run.next(this, function () {\n question.type = questionType;\n });\n }\n }, {\n key: \"turnInAssessment\",\n value: function () {\n var _turnInAssessment = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.prev = 0;\n _context3.next = 3;\n return this.apiClient.post('assessment-responses/turn-in', this.assessmentResponse.id);\n\n case 3:\n this.router.transitionTo('auth.student-assessments.finished');\n _context3.next = 9;\n break;\n\n case 6:\n _context3.prev = 6;\n _context3.t0 = _context3[\"catch\"](0);\n this.flashService.error('Error: Assessment could not be turned in.', _context3.t0);\n\n case 9:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[0, 6]]);\n }));\n\n function turnInAssessment() {\n return _turnInAssessment.apply(this, arguments);\n }\n\n return turnInAssessment;\n }()\n }, {\n key: \"promptForTurnIn\",\n value: function promptForTurnIn() {\n this.shouldShowTurnInModal = true;\n }\n }, {\n key: \"closeModal\",\n value: function closeModal() {\n this.shouldShowTurnInModal = false;\n }\n }]);\n\n return AssessmentResponseEditor;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"timerService\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"responseTrackingService\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"flashService\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"showStandardsOnPrint\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"showStandardsOnPrint\"), _class.prototype), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"currentResponse\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"shouldShowTurnInModal\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"assessmentTimer\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"questionCount\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"canResume\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"canRetake\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"canRetryQuestions\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"currentQuestionIndex\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"currentQuestionIndex\"), _class.prototype), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"viewAllResponses\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"allResponses\", [_dec16], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"responses\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"responses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"responsesInQuestionGroup\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"responsesInQuestionGroup\"), _class.prototype), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hasQuestions\", [_dec19], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"visibleResponseCount\", [_dec20], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"hiddenResponses\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"hiddenResponses\"), _class.prototype), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"responseCount\", [_dec22], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"assessment\", [_dec23], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"assessmentIsTimed\", [_dec24], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"timerFormat\", [_dec25], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"assessmentTimerKey\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"assessmentTimerKey\"), _class.prototype), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"timeRemaining\", [_dec27], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"noTimeRemaining\", [_dec28], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor23 = _applyDecoratedDescriptor(_class.prototype, \"isTimedOut\", [_dec29], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor24 = _applyDecoratedDescriptor(_class.prototype, \"startingTime\", [_dec30], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor25 = _applyDecoratedDescriptor(_class.prototype, \"assessmentResponseTimeRemaining\", [_dec31], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor26 = _applyDecoratedDescriptor(_class.prototype, \"assessmentTimerIsZero\", [_dec32], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor27 = _applyDecoratedDescriptor(_class.prototype, \"assessmentResponseOutOfTime\", [_dec33], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor28 = _applyDecoratedDescriptor(_class.prototype, \"assessmentIsTimedOut\", [_dec34], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"saveResponse\", [_dec35], Object.getOwnPropertyDescriptor(_class.prototype, \"saveResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveNotes\", [_dec36], Object.getOwnPropertyDescriptor(_class.prototype, \"saveNotes\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pauseAssessment\", [_dec37], Object.getOwnPropertyDescriptor(_class.prototype, \"pauseAssessment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"leaveResponseAction\", [_dec38], Object.getOwnPropertyDescriptor(_class.prototype, \"leaveResponseAction\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"leaveResponse\", [_dec39], Object.getOwnPropertyDescriptor(_class.prototype, \"leaveResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startResponse\", [_dec40], Object.getOwnPropertyDescriptor(_class.prototype, \"startResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"nextQuestion\", [_dec41], Object.getOwnPropertyDescriptor(_class.prototype, \"nextQuestion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"prevQuestion\", [_dec42], Object.getOwnPropertyDescriptor(_class.prototype, \"prevQuestion\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editResponse\", [_dec43], Object.getOwnPropertyDescriptor(_class.prototype, \"editResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"turnInAssessment\", [_dec44], Object.getOwnPropertyDescriptor(_class.prototype, \"turnInAssessment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"promptForTurnIn\", [_dec45], Object.getOwnPropertyDescriptor(_class.prototype, \"promptForTurnIn\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeModal\", [_dec46], Object.getOwnPropertyDescriptor(_class.prototype, \"closeModal\"), _class.prototype)), _class));\n _exports.default = AssessmentResponseEditor;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentResponseEditor);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-response-feedback\", [\"exports\", \"@glimmer/component\", \"student-app/utils/timer-string\"], function (_exports, _component, _timerString) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/string\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"student-app/utils/timer-string\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n

Feedback

\n \n
\n
\n
\n
Score:
\n
\n {{#if this.score }}\n {{#if this.hasLowScore}}\n {{this.score}}%\n {{/if}}\n \n
\n {{#unless this.hasLowScore }}\n {{this.score}}%\n {{/unless}}\n
\n {{else}}\n ?\n {{/if}}\n
\n
\n
\n {{#if this.assessmentHasTimer}}\n
\n
\n
Assessment Time:
\n {{this.assessmentTime}}\n
\n \n
\n
Completed In:
\n {{this.completedInTime}}\n
\n
\n {{/if}}\n
\n
\n \n */\n {\n id: \"5q6FMX/v\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-feedback well well-small well--white\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h4\\\",true],[8],[0,\\\"Feedback\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bs-row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-4\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"progress__container\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"progress__label\\\"],[8],[0,\\\"Score:\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"progress left progress--center\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"score\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasLowScore\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"score app-score\\\"],[8],[1,[23,0,[\\\"score\\\"]],false],[0,\\\"%\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bar bar-success\\\"],[11,\\\"style\\\",[23,0,[\\\"barStyle\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"hasLowScore\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"score app-score\\\"],[8],[1,[23,0,[\\\"score\\\"]],false],[0,\\\"%\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"score app-score\\\"],[8],[0,\\\"?\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"assessmentHasTimer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"col-xs-8\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"review-assessment__time-container app-assessment-time\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"review-assessment__time-label\\\"],[8],[0,\\\"Assessment Time:\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"assessmentTime\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"review-assessment__time-container app-completed-in-time\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h5\\\",true],[10,\\\"class\\\",\\\"review-assessment__time-label\\\"],[8],[0,\\\"Completed In:\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"completedInTime\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-response-feedback.hbs\"\n }\n });\n\n var LowScoreThreshold = 25;\n var AssessmentResponseFeedback = (_dec = Ember.computed.readOnly('args.assessmentResponse.assessment'), _dec2 = Ember.computed.readOnly('args.assessmentResponse.score'), _dec3 = Ember.computed.lt('score', LowScoreThreshold), _dec4 = Ember.computed('score'), _dec5 = Ember.computed.notEmpty('assessment.timerInSecs'), _dec6 = Ember.computed('assessment.{timerInSecs,timerFormat}'), _dec7 = Ember.computed('args.assessmentResponse.elapsedSeconds'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentResponseFeedback, _Component);\n\n var _super = _createSuper(AssessmentResponseFeedback);\n\n function AssessmentResponseFeedback() {\n var _this;\n\n _classCallCheck(this, AssessmentResponseFeedback);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessment\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"score\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasLowScore\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessmentHasTimer\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AssessmentResponseFeedback, [{\n key: \"barStyle\",\n get: function get() {\n return Ember.String.htmlSafe(\"width: \".concat(this.score, \"%\"));\n }\n }, {\n key: \"assessmentTime\",\n get: function get() {\n return (0, _timerString.getTimeDisplayText)(this.assessment.timerInSecs, this.assessment.timerFormat, false);\n }\n }, {\n key: \"completedInTime\",\n get: function get() {\n return (0, _timerString.getTimeDisplayText)(this.args.assessmentResponse.elapsedSeconds, 'h', false);\n }\n }]);\n\n return AssessmentResponseFeedback;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"assessment\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"score\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasLowScore\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"barStyle\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"barStyle\"), _class.prototype), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"assessmentHasTimer\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"assessmentTime\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"assessmentTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"completedInTime\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"completedInTime\"), _class.prototype)), _class));\n _exports.default = AssessmentResponseFeedback;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentResponseFeedback);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-response-review\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n \n   Return to your dashboard\n \n \n

{{this.assessment.title}}

\n \n \n \n
\n
    \n {{#each this.responses as |response index|}}\n \n
    \n
    \n
    \n {{i-plus index}}\n
    \n
    \n
    \n {{if response.hasPoints response.points '?'}}\n
    \n
    {{response.studentQuestion.points}}
    \n
    \n \n
    \n

    {{sanitize-and-escape response.studentQuestion.description}}

    \n
    \n
    \n \n
    \n {{#if response.questionHasTimer}}\n
    \n
    Question Time:
    {{response.questionTime}}\n
    \n {{/if}}\n
    \n
    Answered In:
    {{response.answeredInTime}}\n
    \n
    \n \n {{#if isOpen}}\n
    \n {{#if response.studentQuestion.questionGroup}}\n
    \n
    \n {{sanitize-and-escape response.studentQuestion.questionGroup.description}}\n
    \n {{#if response.studentQuestion.questionGroup.mediaAssets}}\n \n {{/if}}\n
    \n {{/if}}\n \n
    \n
    \n {{sanitize-and-escape response.studentQuestion.description}}\n
    \n {{#if response.studentQuestion.mediaAssets}}\n \n {{/if}}\n
    \n \n
    \n \n \n {{#if response.notes}}\n
    \n
    Notes:
    \n {{response.notes}}\n
    \n {{/if}}\n
    \n
    \n {{/if}}\n
    \n \n {{/each}}\n
\n
\n
\n \n */\n {\n id: \"aiW8YOmX\",\n block: \"{\\\"symbols\\\":[\\\"response\\\",\\\"index\\\",\\\"isOpen\\\",\\\"@answers\\\",\\\"@answerableQuestionNodes\\\",\\\"@assessmentResponse\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"review-assessment\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"app-return-to-dashboard btn btn-white\\\"]],[[\\\"@route\\\"],[\\\"auth.index\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-chevron-left\\\"],[8],[9],[0,\\\"\\xA0Return to your dashboard\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"review-assessment__title\\\"],[8],[1,[23,0,[\\\"assessment\\\",\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"assessment-response-feedback\\\",[],[[\\\"@assessmentResponse\\\"],[[23,6,[]]]]],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"id\\\",\\\"responses\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"responses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"toggle-drawer\\\",[],[[\\\"@toggle\\\",\\\"@initiallyOpen\\\",\\\"@classes\\\"],[\\\".question-header\\\",[23,1,[\\\"interesting\\\"]],[23,1,[\\\"viewClasses\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"well\\\"],[11,\\\"data-response-id\\\",[29,[[23,1,[\\\"id\\\"]]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-header app-header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-number app-question-number\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"i-plus\\\",[[23,2,[]]],null],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"awarded_points\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"points-awarded\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"if\\\",[[23,1,[\\\"hasPoints\\\"]],[23,1,[\\\"points\\\"]],\\\"?\\\"],null],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"points-possible\\\"],[8],[1,[23,1,[\\\"studentQuestion\\\",\\\"points\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-question-short-title question-short-title truncate\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"sanitize-and-escape\\\",[[23,1,[\\\"studentQuestion\\\",\\\"description\\\"]]],null],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-time-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"questionHasTimer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-question-time time-detail\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Question Time:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"questionTime\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-question-answered-in-time time-detail\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Answered In:\\\"],[9],[0,\\\" \\\"],[1,[23,1,[\\\"answeredInTime\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"full-response app-full-response\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"studentQuestion\\\",\\\"questionGroup\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-body offset1\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,1,[\\\"studentQuestion\\\",\\\"questionGroup\\\",\\\"description\\\"]]],null],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"studentQuestion\\\",\\\"questionGroup\\\",\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"media-assets\\\",[],[[\\\"@mediaAssets\\\"],[[23,1,[\\\"studentQuestion\\\",\\\"questionGroup\\\",\\\"mediaAssets\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-body offset1\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,1,[\\\"studentQuestion\\\",\\\"description\\\"]]],null],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"studentQuestion\\\",\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"media-assets\\\",[],[[\\\"@mediaAssets\\\"],[[23,1,[\\\"studentQuestion\\\",\\\"mediaAssets\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"answers\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"response-view\\\",[],[[\\\"@response\\\",\\\"@answers\\\",\\\"@answerableQuestionNodes\\\"],[[23,1,[]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"notes\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"well app-response-notes response-notes\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h5\\\",true],[8],[0,\\\"Notes:\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"notes\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-response-review.hbs\"\n }\n });\n\n var AssessmentResponseReview = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.computed.readOnly('args.assessmentResponse.assessment'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentResponseReview, _Component);\n\n var _super = _createSuper(AssessmentResponseReview);\n\n function AssessmentResponseReview(owner, args) {\n var _this;\n\n _classCallCheck(this, AssessmentResponseReview);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"assessment\", _descriptor3, _assertThisInitialized(_this));\n\n _this.mathjaxManager.updateFormulas();\n\n return _this;\n }\n\n _createClass(AssessmentResponseReview, [{\n key: \"responses\",\n get: function get() {\n return this.args.assessmentResponse.responses;\n }\n }]);\n\n return AssessmentResponseReview;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"assessment\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = AssessmentResponseReview;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentResponseReview);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-selection\", [\"exports\", \"@glimmer/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-cli-htmlbars\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\n function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n

Choose Assessments

\n \n
\n
    \n {{#each this.selectedAssessmentCourses as |course|}}\n
  • \n
    {{course.fullTitle}}
    \n
      \n {{#each course.assessments as |assessment|}}\n
    • \n \n
    • \n {{/each}}\n
    \n
  • \n {{/each}}\n
\n
\n
\n \n */\n {\n id: \"uNPM6WPz\",\n block: \"{\\\"symbols\\\":[\\\"course\\\",\\\"assessment\\\",\\\"@unselectAssessment\\\",\\\"@selectAssessment\\\",\\\"@dropUp\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-assessment-selection\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\",true],[8],[0,\\\"Choose Assessments\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"filterable-dropdown\\\",[],[[\\\"@placeholder\\\",\\\"@optionSections\\\",\\\"@selectOption\\\",\\\"@dropUp\\\"],[\\\"Click to choose assessment(s)\\\",[23,0,[\\\"displayedAssessmentOptions\\\"]],[23,4,[]],[23,5,[]]]]],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"breather\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"courses app-report-selection-courses\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"selectedAssessmentCourses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"course app-course\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"title bold\\\"],[8],[1,[23,1,[\\\"fullTitle\\\"]],false],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"assessments\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"assessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-assessment assessment\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"checkbox\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"input\\\",false],[12,\\\"checked\\\",\\\"true\\\"],[12,\\\"type\\\",\\\"checkbox\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,3,[]],[23,2,[\\\"id\\\"]]],null]]],[8],[9],[0,\\\"\\\\n \\\"],[1,[23,2,[\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-selection.hbs\"\n }\n });\n\n var AssessmentSelection = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentSelection, _Component);\n\n var _super = _createSuper(AssessmentSelection);\n\n function AssessmentSelection() {\n _classCallCheck(this, AssessmentSelection);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(AssessmentSelection, [{\n key: \"assessmentOptions\",\n get: function get() {\n return this.args.courseReports.map(function (r) {\n return {\n header: r.fullTitle,\n optionPairs: r.assessments.map(function (a) {\n return {\n text: a.name,\n value: a.id\n };\n })\n };\n });\n }\n }, {\n key: \"displayedAssessmentOptions\",\n get: function get() {\n var _this = this;\n\n return this.assessmentOptions.map(function (a) {\n return _objectSpread(_objectSpread({}, a), {}, {\n optionPairs: a.optionPairs.filter(function (o) {\n return !_this.args.selectedAssessmentIds.includes(o.value);\n })\n });\n }).filter(function (a) {\n return a.optionPairs.length > 0;\n });\n }\n }, {\n key: \"selectedAssessmentCourses\",\n get: function get() {\n var _this2 = this;\n\n return this.args.courseReports.map(function (c) {\n return {\n fullTitle: c.fullTitle,\n assessments: c.assessments.filter(function (a) {\n return _this2.args.selectedAssessmentIds.includes(a.id);\n })\n };\n }).filter(function (c) {\n return c.assessments.length > 0;\n });\n }\n }]);\n\n return AssessmentSelection;\n }(_component.default);\n\n _exports.default = AssessmentSelection;\n\n window.__CLASSIC_OWN_CLASSES__.set(AssessmentSelection, true);\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentSelection);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-template-summary-row\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{this.title}}\n \n {{moment-format this.createdAt \"L\"}}\n \n \n {{this.availableCount}}\n {{this.assessmentCount}}\n \n \n \n \n \n \n \n \n   \n \n \n \n */\n {\n id: \"ola2jl0f\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-assessment-template assessment-details popover-show\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[1,[23,0,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\",true],[8],[1,[28,\\\"moment-format\\\",[[23,0,[\\\"createdAt\\\"]],\\\"L\\\"],null],false],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"assessment-count\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"badge badge-\\\",[23,0,[\\\"firstBadgeType\\\"]]]]],[8],[1,[23,0,[\\\"availableCount\\\"]],false],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"badge badge-\\\",[23,0,[\\\"secondBadgeType\\\"]]]]],[8],[1,[23,0,[\\\"assessmentCount\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"table--column__last\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@model\\\",\\\"@classNames\\\"],[\\\"auth.assessment-template.edit.settings\\\",[23,0,[\\\"id\\\"]],\\\"btn btn-mini btn-white app-edit\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"role\\\",\\\"button\\\"],[10,\\\"class\\\",\\\"icon icon--small icon-pencil\\\"],[10,\\\"aria-label\\\",\\\"edit\\\"],[8],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"btn-mini btn-white app-preview btn\\\"]],[[\\\"@route\\\",\\\"@model\\\",\\\"@target\\\"],[\\\"auth.assessment-template.preview\\\",[23,0,[\\\"id\\\"]],\\\"_blank\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\xA0\\\"],[7,\\\"span\\\",true],[10,\\\"role\\\",\\\"button\\\"],[10,\\\"class\\\",\\\"icon icon--small icon-search\\\"],[10,\\\"aria-label\\\",\\\"preview\\\"],[8],[9],[0,\\\"\\xA0\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-template-summary-row.hbs\"\n }\n });\n\n var AssessmentTemplateSummaryRow = (_dec = Ember.computed.alias('args.template.id'), _dec2 = Ember.computed.readOnly('args.template.processedTitle'), _dec3 = Ember.computed('args.template.createdAt'), _dec4 = Ember.computed('args.template.availableAssessmentCount'), _dec5 = Ember.computed('args.template.assessmentCount'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentTemplateSummaryRow, _Component);\n\n var _super = _createSuper(AssessmentTemplateSummaryRow);\n\n function AssessmentTemplateSummaryRow() {\n var _this;\n\n _classCallCheck(this, AssessmentTemplateSummaryRow);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor2, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"firstBadgeType\", 'success');\n\n _defineProperty(_assertThisInitialized(_this), \"secondBadgeType\", 'info');\n\n return _this;\n }\n\n _createClass(AssessmentTemplateSummaryRow, [{\n key: \"createdAt\",\n get: function get() {\n return this.args.template.createdAt + 'Z';\n }\n }, {\n key: \"availableCount\",\n get: function get() {\n return this.args.template.availableAssessmentCount;\n }\n }, {\n key: \"assessmentCount\",\n get: function get() {\n return this.args.template.assessmentCount;\n }\n }]);\n\n return AssessmentTemplateSummaryRow;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"createdAt\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"createdAt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"availableCount\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"availableCount\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"assessmentCount\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"assessmentCount\"), _class.prototype)), _class));\n _exports.default = AssessmentTemplateSummaryRow;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentTemplateSummaryRow);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/assessment-timer\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/runloop\",0,\"@ember/object/computed\",0,\"@ember/utils\",0,\"@glimmer/tracking\",0,\"@glimmer/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if this.isShowingTimeout}}\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{else}}\n \n \n \n \n \n \n \n \n \n \n \n \n {{/if}}\n \n

\n {{#if this.isShowingTimeout}}\n Assessment time has expired. You cannot change answers. Please turn in your assessment.\n {{else}}\n \n {{/if}}\n

\n {{#unless this.isTimedOut}}\n

{{this.toggleText}}

\n {{/unless}}\n
\n \n */\n {\n id: \"OYr2rP0S\",\n block: \"{\\\"symbols\\\":[\\\"@timerInSecs\\\",\\\"@timerFormat\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",[29,[\\\"assessment-timer app-assessment-timer \\\",[28,\\\"if\\\",[[23,0,[\\\"timerIsOpen\\\"]],\\\"assessment-timer--open app-assessment-timer-open\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"timerIsClosed\\\"]],\\\"app-assessment-timer-closed\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isFullyClosed\\\"]],\\\"assessment-timer--fully-closed\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isShowingTimeout\\\"]],\\\"assessment-timer--timed-out\\\"],null]]]],[3,\\\"did-update\\\",[[23,0,[\\\"timedOut\\\"]],[23,0,[\\\"isTimedOut\\\"]]]],[3,\\\"did-update\\\",[[23,0,[\\\"lowTimeTimerOpen\\\"]],[23,0,[\\\"isHighlighted\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowingTimeout\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"svg\\\",true],[10,\\\"width\\\",\\\"726px\\\"],[10,\\\"height\\\",\\\"45px\\\"],[10,\\\"viewBox\\\",\\\"0 0 726 45\\\"],[10,\\\"version\\\",\\\"1.1\\\"],[10,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[10,\\\"xmlns:xlink\\\",\\\"http://www.w3.org/1999/xlink\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"defs\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"path\\\",true],[10,\\\"d\\\",\\\"M149.299777,30 L874.972737,30 L853.572262,69.7412302 L853.572262,69.7412302 C851.828092,72.9801997 848.446406,75 844.767676,75 L179.504838,75 L179.504838,75 C175.826108,75 172.444422,72.9801997 170.700252,69.7412302 L149.299777,30 Z\\\"],[10,\\\"id\\\",\\\"path-2\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\",true],[10,\\\"stroke\\\",\\\"none\\\"],[10,\\\"stroke-width\\\",\\\"1\\\"],[10,\\\"fill\\\",\\\"none\\\"],[10,\\\"fill-rule\\\",\\\"evenodd\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"g\\\",true],[10,\\\"transform\\\",\\\"translate(-149.000000, -30.000000)\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"g\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"use\\\",true],[10,\\\"fill\\\",\\\"#FAEFC0\\\"],[10,\\\"fill-rule\\\",\\\"evenodd\\\"],[10,\\\"xlink:href\\\",\\\"#path-2\\\",\\\"http://www.w3.org/1999/xlink\\\"],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\",true],[10,\\\"stroke\\\",\\\"#F0CF49\\\"],[10,\\\"stroke-width\\\",\\\"1\\\"],[10,\\\"d\\\",\\\"M150.136911,30.5 L171.140481,69.5041687 C172.797443,72.5811897 176.010044,74.5 179.504838,74.5 L844.767676,74.5 C848.26247,74.5 851.475071,72.5811897 853.132033,69.5041687 L874.135603,30.5 L150.136911,30.5 Z\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"svg\\\",true],[10,\\\"width\\\",\\\"144px\\\"],[10,\\\"height\\\",\\\"45px\\\"],[10,\\\"viewBox\\\",\\\"0 0 144 45\\\"],[10,\\\"version\\\",\\\"1.1\\\"],[10,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[10,\\\"xmlns:xlink\\\",\\\"http://www.w3.org/1999/xlink\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"defs\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"path\\\",true],[10,\\\"d\\\",\\\"M440.398219,30 L583.874296,30 L575.300633,67.2433863 L575.300633,67.2433863 C574.255539,71.7832045 570.21408,75 565.555521,75 L458.716993,75 L458.716993,75 C454.058434,75 450.016976,71.7832045 448.971881,67.2433863 L440.398219,30 Z\\\"],[10,\\\"id\\\",\\\"path-1\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"g\\\",true],[10,\\\"stroke\\\",\\\"none\\\"],[10,\\\"stroke-width\\\",\\\"1\\\"],[10,\\\"fill\\\",\\\"none\\\"],[10,\\\"fill-rule\\\",\\\"evenodd\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"g\\\",true],[10,\\\"transform\\\",\\\"translate(-440.000000, -30.000000)\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"g\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"path\\\",true],[11,\\\"class\\\",[29,[\\\"app-timer-background assessment-timer__background \\\",[28,\\\"if\\\",[[23,0,[\\\"isHighlighted\\\"]],\\\"assessment-timer__background--highlighted app-highlighted-timer\\\"],null]]]],[10,\\\"d\\\",\\\"M441.0264,30.5 L449.459137,67.131217 C450.451977,71.4440443 454.291362,74.5 458.716993,74.5 L565.555521,74.5 C569.981152,74.5 573.820538,71.4440443 574.813378,67.131217 L583.246115,30.5 L441.0264,30.5 Z\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[11,\\\"class\\\",[29,[\\\"app-assessment-timer-text assessment-timer__text \\\",[28,\\\"if\\\",[[23,0,[\\\"isShowingTimeout\\\"]],\\\"assessment-timer__text--finished\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowingTimeout\\\"]]],null,{\\\"statements\\\":[[0,\\\" Assessment time has expired. You cannot change answers. Please turn in your assessment.\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"timer-display-text\\\",[],[[\\\"@timerInSecs\\\",\\\"@timerFormat\\\",\\\"@secondsThreshold\\\",\\\"@emptyMessage\\\"],[[23,1,[]],[23,2,[]],120,\\\"0s\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isTimedOut\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"assessment-timer__toggle-text app-toggle-assessment-timer\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggleTimer\\\"]]]],[8],[1,[23,0,[\\\"toggleText\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/assessment-timer.hbs\"\n }\n });\n\n var AssessmentTimer = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember.computed.not('timerIsOpen'), _dec6 = Ember.computed.lt('args.timerInSecs', 1), _dec7 = Ember.computed('args.{timerInSecs,startingTime}'), _dec8 = Ember._action, _dec9 = Ember._action, _dec10 = Ember.computed('timerIsOpen'), _dec11 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AssessmentTimer, _Component);\n\n var _super = _createSuper(AssessmentTimer);\n\n function AssessmentTimer(owner, args) {\n var _this;\n\n _classCallCheck(this, AssessmentTimer);\n\n _this = _super.call(this, owner, args);\n\n _defineProperty(_assertThisInitialized(_this), \"highlightThreshold\", 0.1);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasTriggeredTimerOpen\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isFullyClosed\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerIsOpen\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isShowingTimeout\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerIsClosed\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isTimedOut\", _descriptor6, _assertThisInitialized(_this));\n\n if (_this.isTimedOut) {\n _this.triggerLargeMenuOpen();\n } else {\n _this.isFullyClosed = false;\n }\n\n return _this;\n }\n\n _createClass(AssessmentTimer, [{\n key: \"isHighlighted\",\n get: function get() {\n if (Ember.isEmpty(this.args.startingTime)) {\n return false;\n }\n\n var percTimeLeft = this.args.timerInSecs / this.args.startingTime;\n return percTimeLeft <= this.highlightThreshold;\n }\n }, {\n key: \"lowTimeTimerOpen\",\n value: function lowTimeTimerOpen() {\n if (!this.hasTriggeredTimerOpen && this.isHighlighted) {\n this.timerIsOpen = true;\n this.hasTriggeredTimerOpen = true;\n }\n }\n }, {\n key: \"timedOut\",\n value: function timedOut() {\n var _this2 = this;\n\n if (this.isTimedOut) {\n this.isFullyClosed = true;\n Ember.run.later(function () {\n _this2.triggerLargeMenuOpen();\n }, 500);\n }\n }\n }, {\n key: \"triggerLargeMenuOpen\",\n value: function triggerLargeMenuOpen() {\n this.isShowingTimeout = true;\n this.isFullyClosed = false;\n this.timerIsOpen = true;\n }\n }, {\n key: \"toggleText\",\n get: function get() {\n return this.timerIsOpen ? 'Hide Time Remaining' : 'Show Time Remaining';\n }\n }, {\n key: \"toggleTimer\",\n value: function toggleTimer() {\n this.timerIsOpen = !this.timerIsOpen;\n }\n }]);\n\n return AssessmentTimer;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasTriggeredTimerOpen\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isFullyClosed\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"timerIsOpen\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isShowingTimeout\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"timerIsClosed\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isTimedOut\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"isHighlighted\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"isHighlighted\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"lowTimeTimerOpen\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"lowTimeTimerOpen\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"timedOut\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"timedOut\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleText\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleTimer\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleTimer\"), _class.prototype)), _class));\n _exports.default = AssessmentTimer;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AssessmentTimer);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/attempt-actionable-section\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if this.isAvailable}}\n \n Start\n \n {{else}}\n {{#if @attempt.response.scoreReleased }}\n
\n {{#if @attempt.response.score }}\n {{@attempt.response.score}}%\n {{else}}\n ?\n {{/if}}\n
\n {{/if}}\n \n {{#if @attempt.response.retakable}}\n \n \n   Completed\n \n
    \n
  • \n \n Retake Attempt\n \n
  • \n
\n
\n {{else}}\n {{#if @attempt.response.resultsReleased}}\n \n   View Results\n \n {{else}}\n \n   Completed\n \n {{/if}}\n {{/if}}\n {{/if}}\n
\n \n */\n {\n id: \"6MGYyy0d\",\n block: \"{\\\"symbols\\\":[\\\"@attempt\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"data-attempt-id\\\",[23,1,[\\\"id\\\"]]],[10,\\\"class\\\",\\\"student-assessment-listing__actionable-attempt-section\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAvailable\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"disabled\\\",[23,0,[\\\"assessment\\\",\\\"doubleClickDisable\\\"]]],[12,\\\"class\\\",\\\"text-button no-bg btn btn-white app-action\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"startAttempt\\\"]]]],[8],[0,\\\"\\\\n Start\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"response\\\",\\\"scoreReleased\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"badge badge-success score-badge app-score\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"response\\\",\\\"score\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,1,[\\\"response\\\",\\\"score\\\"]],false],[0,\\\"%\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" ?\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"response\\\",\\\"retakable\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"retake-dropdown-container \\\",[28,\\\"if\\\",[[23,1,[\\\"response\\\",\\\"isOpen\\\"]],\\\"open\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white dropdown-toggle course-overview-button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggleDropdown\\\"]],[23,1,[\\\"response\\\"]]],null]]],[8],[0,\\\"\\\\n \\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-ok\\\"],[8],[9],[0,\\\"\\xA0Completed\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"dropdown-menu\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"no-bg no-border no-text-align app-retake-assessment\\\"],[12,\\\"icon\\\",\\\"share-alt\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"retakeAttempt\\\"]]]],[8],[0,\\\"\\\\n Retake Attempt\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"response\\\",\\\"resultsReleased\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"data-response-id\\\",[23,1,[\\\"response\\\",\\\"id\\\"]]],[12,\\\"class\\\",\\\"app-view-results btn btn-white course-overview-button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"viewResponse\\\"]],[23,1,[\\\"response\\\"]]],null]]],[8],[0,\\\"\\\\n \\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"icon-list\\\"],[8],[9],[0,\\\"\\xA0View Results\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",true],[10,\\\"class\\\",\\\"btn btn-white disabled course-overview-button\\\"],[10,\\\"type\\\",\\\"button\\\"],[8],[0,\\\"\\\\n \\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-ok\\\"],[8],[9],[0,\\\"\\xA0Completed\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/attempt-actionable-section.hbs\"\n }\n });\n\n var AttemptActionableSection = (_dec = Ember.computed.empty('args.attempt.response'), _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AttemptActionableSection, _Component);\n\n var _super = _createSuper(AttemptActionableSection);\n\n function AttemptActionableSection() {\n var _this;\n\n _classCallCheck(this, AttemptActionableSection);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isAvailable\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AttemptActionableSection, [{\n key: \"startAttempt\",\n value: function startAttempt() {\n this.args.startAttempt(this.args.attempt);\n }\n }, {\n key: \"retakeAttempt\",\n value: function retakeAttempt() {\n this.args.retakeAttempt(this.args.attempt);\n }\n }, {\n key: \"viewResponse\",\n value: function viewResponse(response) {\n this.args.viewResponse(response);\n }\n }, {\n key: \"toggleDropdown\",\n value: function toggleDropdown(response) {\n response.isOpen = !response.isOpen;\n }\n }]);\n\n return AttemptActionableSection;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isAvailable\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"startAttempt\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"startAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"retakeAttempt\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"retakeAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewResponse\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"viewResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggleDropdown\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleDropdown\"), _class.prototype)), _class));\n _exports.default = AttemptActionableSection;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AttemptActionableSection);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/attempt-row\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{@attempt.name}}\n \n \n \n \n \n \n */\n {\n id: \"IvbCgCqn\",\n block: \"{\\\"symbols\\\":[\\\"@attempt\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-attempt\\\"],[11,\\\"data-attempt-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[1,[23,1,[\\\"name\\\"]],false],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"student-assessment-listing__right-col\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"attempt-actionable-section\\\",[],[[\\\"@attempt\\\",\\\"@viewResponse\\\",\\\"@startAttempt\\\",\\\"@retakeAttempt\\\"],[[23,1,[]],[23,0,[\\\"viewResponse\\\"]],[23,0,[\\\"startAttempt\\\"]],[23,0,[\\\"retakeAttempt\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/attempt-row.hbs\"\n }\n });\n\n var AttemptRow = (_dec = Ember._action, _dec2 = Ember._action, _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AttemptRow, _Component);\n\n var _super = _createSuper(AttemptRow);\n\n function AttemptRow() {\n _classCallCheck(this, AttemptRow);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(AttemptRow, [{\n key: \"startAttempt\",\n value: function startAttempt(attempt) {\n this.args.startAttempt(attempt);\n }\n }, {\n key: \"retakeAttempt\",\n value: function retakeAttempt(attempt) {\n this.args.retakeAttempt(attempt);\n }\n }, {\n key: \"viewResponse\",\n value: function viewResponse(response) {\n this.args.viewResponse(response);\n }\n }]);\n\n return AttemptRow;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"startAttempt\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"startAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"retakeAttempt\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"retakeAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewResponse\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"viewResponse\"), _class.prototype)), _class));\n _exports.default = AttemptRow;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AttemptRow);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/attempt-viewer-list-item\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n {{#if @attempt.currentlyViewing}}\n \n {{/if}}\n \n \n {{#if @attempt.hasTaken}}\n \n {{this.attemptName}}\n \n {{else}}\n {{this.attemptName}}\n {{/if}}\n \n \n {{#if @attempt.hasTaken}}\n \n {{else if @attempt.isExempt}}\n
Exempt
\n {{else}}\n
Not taken
\n {{/if}}\n \n \n \n \n \n \n */\n {\n id: \"2fsogebD\",\n block: \"{\\\"symbols\\\":[\\\"@attempt\\\"],\\\"statements\\\":[[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-attempt attempt-editor-table__row--bordered\\\"],[11,\\\"data-attempt-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__col--small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"currentlyViewing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"app-currently-viewing icon icon--xsmall icon-eye\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"app-attempt-name\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasTaken\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"app-view-results attempt-editor-table__title\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"auth.assessment-response.edit\\\",[23,1,[\\\"responseId\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"attemptName\\\"]],false],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,0,[\\\"attemptName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasTaken\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"percent-bar\\\",[],[[\\\"@itemBuckets\\\",\\\"@form\\\"],[[23,1,[\\\"score\\\"]],\\\"small\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isExempt\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-exempt attempt-editor-table__inline-badge\\\"],[8],[0,\\\"Exempt\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-not-taken attempt-editor-table__inline-badge\\\"],[8],[0,\\\"Not taken\\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__cell--center\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"input\\\",true],[10,\\\"aria-label\\\",\\\"set attempt as official\\\"],[11,\\\"disabled\\\",[23,0,[\\\"isDisabled\\\"]]],[11,\\\"checked\\\",[23,1,[\\\"official\\\"]]],[11,\\\"onChange\\\",[23,0,[\\\"setOfficialAttempt\\\"]]],[10,\\\"class\\\",\\\"app-official-attempt-radio attempt-editor-table__radio\\\"],[10,\\\"type\\\",\\\"radio\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/attempt-viewer-list-item.hbs\"\n }\n });\n\n var AttemptViewerListItem = (_dec = Ember.computed.not('args.attempt.hasTaken'), _dec2 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AttemptViewerListItem, _Component);\n\n var _super = _createSuper(AttemptViewerListItem);\n\n function AttemptViewerListItem() {\n var _this;\n\n _classCallCheck(this, AttemptViewerListItem);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDisabled\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AttemptViewerListItem, [{\n key: \"attemptName\",\n get: function get() {\n if (this.args.attempt.name) {\n return this.args.attempt.name;\n } else {\n return 'Untitled Attempt';\n }\n }\n }, {\n key: \"setOfficialAttempt\",\n value: function setOfficialAttempt() {\n this.args.setOfficialAttempt(this.args.attempt);\n }\n }]);\n\n return AttemptViewerListItem;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDisabled\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"setOfficialAttempt\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setOfficialAttempt\"), _class.prototype)), _class));\n _exports.default = AttemptViewerListItem;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AttemptViewerListItem);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/attempts-editor\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n \n \n \n \n \n \n \n \n {{#each this.attempts as |attempt|}}\n \n \n \n {{#if attempt.isBeingRenamed}}\n \n {{else}}\n \n \n \n \n \n {{/if}}\n \n {{/each}}\n \n {{#if this.isAddingAttempt}}\n \n \n \n \n \n \n \n {{else if this.isRenamingAttempt}}\n \n \n \n {{else}}\n \n \n \n {{/if}}\n \n
AttemptActive
\n {{#if attempt.currentlyViewing}}\n \n {{/if}}\n \n \n \n {{attempt.name}}\n \n \n \n \n
\n \n
\n \n Create Attempt\n \n
\n \n Rename Attempt\n \n
\n \n Add New Attempt\n \n
\n \n */\n {\n id: \"ZeZMP1r0\",\n block: \"{\\\"symbols\\\":[\\\"attempt\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table app-attempt-sidebar\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"attempt-edit-table__cell--left\\\"],[8],[0,\\\"Attempt\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__cell--center\\\"],[8],[0,\\\"Active\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"attempts\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-attempt attempt-editor-table__row--bordered\\\"],[11,\\\"data-attempt-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__col--small\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"currentlyViewing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon icon--xsmall icon-eye\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isBeingRenamed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__cell--right\\\"],[10,\\\"colspan\\\",\\\"3\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"inline-input-with-cancel\\\",[],[[\\\"@inputId\\\",\\\"@textValue\\\",\\\"@updateText\\\",\\\"@enter\\\",\\\"@cancel\\\"],[\\\"rename_attempt_name\\\",[23,1,[\\\"name\\\"]],[23,0,[\\\"updateText\\\"]],[23,0,[\\\"renameAttempt\\\"]],[23,0,[\\\"cancelRenameAttempt\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"td\\\",true],[11,\\\"class\\\",[29,[\\\"attempt-editor-table__cell--set-width \\\",[28,\\\"if\\\",[[23,1,[\\\"currentlyViewing\\\"]],\\\"attempt-editor-table__title--active\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"app-view-results attempt-editor-table__title\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[[23,0,[\\\"attemptLink\\\"]],[23,1,[\\\"id\\\"]]]],{\\\"statements\\\":[[1,[23,1,[\\\"name\\\"]],false]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__cell--center\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"input\\\",true],[10,\\\"aria-label\\\",\\\"active attempt\\\"],[11,\\\"onChange\\\",[28,\\\"fn\\\",[[23,0,[\\\"setActiveAttempt\\\"]],[23,1,[]]],null]],[11,\\\"checked\\\",[23,1,[\\\"active\\\"]]],[10,\\\"class\\\",\\\"app-active-attempt-radio attempt-editor-table__radio\\\"],[10,\\\"type\\\",\\\"radio\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__cell--right\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"kebab-dropdown\\\",[],[[\\\"@menuItem\\\",\\\"@initiateOfficialMassAssign\\\",\\\"@initiateEdit\\\",\\\"@initiateDelete\\\"],[[23,1,[]],[23,0,[\\\"initiateOfficialMassAssign\\\"]],[23,0,[\\\"initiateRenameAttempt\\\"]],[23,0,[\\\"initiateDeleteAttempt\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\" \\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isAddingAttempt\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"3\\\"],[10,\\\"class\\\",\\\"attempt-editor-table__cell--padding-top\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"inline-input-with-cancel\\\",[],[[\\\"@inputId\\\",\\\"@updateText\\\",\\\"@enter\\\",\\\"@cancel\\\"],[\\\"new_attempt_name\\\",[23,0,[\\\"updateText\\\"]],[23,0,[\\\"createAttempt\\\"]],[23,0,[\\\"cancelAddAttempt\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"4\\\"],[10,\\\"class\\\",\\\"attempt-editor-table__cell--button\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-attempt-add-save button btn btn-white attempt-editor-table__button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"createAttempt\\\"]]]],[8],[0,\\\"\\\\n Create Attempt\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isRenamingAttempt\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"4\\\"],[10,\\\"class\\\",\\\"attempt-editor-table__cell--button\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-attempt-rename button btn btn-white attempt-editor-table__button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"renameAttempt\\\"]]]],[8],[0,\\\"\\\\n Rename Attempt\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"colspan\\\",\\\"4\\\"],[10,\\\"class\\\",\\\"attempt-editor-table__cell--button\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-attempt-add button btn btn-white attempt-editor-table__button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"addAttempt\\\"]]]],[8],[0,\\\"\\\\n Add New Attempt\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/attempts-editor.hbs\"\n }\n });\n\n var AttemptsEditor = (_dec = Ember.computed('args.attempts'), _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AttemptsEditor, _Component);\n\n var _super = _createSuper(AttemptsEditor);\n\n function AttemptsEditor() {\n var _this;\n\n _classCallCheck(this, AttemptsEditor);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"attemptName\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AttemptsEditor, [{\n key: \"attempts\",\n get: function get() {\n var _this$args$attempts;\n\n return (_this$args$attempts = this.args.attempts) !== null && _this$args$attempts !== void 0 ? _this$args$attempts : null;\n }\n }, {\n key: \"isAddingAttempt\",\n get: function get() {\n var _this$args$isAddingAt;\n\n return (_this$args$isAddingAt = this.args.isAddingAttempt) !== null && _this$args$isAddingAt !== void 0 ? _this$args$isAddingAt : null;\n }\n }, {\n key: \"isRenamingAttempt\",\n get: function get() {\n var _this$args$isRenaming;\n\n return (_this$args$isRenaming = this.args.isRenamingAttempt) !== null && _this$args$isRenaming !== void 0 ? _this$args$isRenaming : null;\n }\n }, {\n key: \"attemptLink\",\n get: function get() {\n var _this$args$attemptLin;\n\n return (_this$args$attemptLin = this.args.attemptLink) !== null && _this$args$attemptLin !== void 0 ? _this$args$attemptLin : null;\n }\n }, {\n key: \"updateText\",\n value: function updateText(value) {\n this.attemptName = value;\n }\n }, {\n key: \"initiateDeleteAttempt\",\n value: function initiateDeleteAttempt(attempt) {\n this.args.initiateDeleteAttempt(attempt);\n }\n }, {\n key: \"setActiveAttempt\",\n value: function setActiveAttempt(attempt) {\n this.args.setActiveAttempt(attempt);\n }\n }, {\n key: \"addAttempt\",\n value: function addAttempt() {\n this.args.addAttempt();\n }\n }, {\n key: \"cancelAddAttempt\",\n value: function cancelAddAttempt() {\n this.args.cancelAddAttempt();\n this.attemptName = '';\n }\n }, {\n key: \"createAttempt\",\n value: function createAttempt() {\n this.args.createAttempt(this.attemptName);\n this.attemptName = '';\n }\n }, {\n key: \"initiateRenameAttempt\",\n value: function initiateRenameAttempt(attempt) {\n this.args.initiateRenameAttempt(attempt);\n }\n }, {\n key: \"cancelRenameAttempt\",\n value: function cancelRenameAttempt() {\n this.args.cancelRenameAttempt();\n }\n }, {\n key: \"renameAttempt\",\n value: function renameAttempt() {\n this.args.renameAttempt(this.attemptName);\n }\n }, {\n key: \"initiateOfficialMassAssign\",\n value: function initiateOfficialMassAssign(attempt) {\n this.args.initiateOfficialMassAssign(attempt);\n }\n }]);\n\n return AttemptsEditor;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"attempts\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"attempts\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"attemptName\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"updateText\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"updateText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initiateDeleteAttempt\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"initiateDeleteAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setActiveAttempt\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"setActiveAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addAttempt\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"addAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelAddAttempt\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelAddAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createAttempt\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"createAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initiateRenameAttempt\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"initiateRenameAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelRenameAttempt\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelRenameAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"renameAttempt\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"renameAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"initiateOfficialMassAssign\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"initiateOfficialMassAssign\"), _class.prototype)), _class));\n _exports.default = AttemptsEditor;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AttemptsEditor);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/attempts-viewer\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n \n \n \n \n \n \n \n \n \n {{#each @attempts as |attempt|}}\n \n {{/each}}\n \n
AttemptResultOfficial
\n \n */\n {\n id: \"+WDUyeP7\",\n block: \"{\\\"symbols\\\":[\\\"attempt\\\",\\\"@attempts\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"app-attempts-view-table attempt-editor-table\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"attempt-edit-table__cell-left\\\"],[8],[0,\\\"Attempt\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"attempt-editor-table__cell-center\\\"],[8],[0,\\\"Result\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Official\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"attempt-viewer-list-item\\\",[],[[\\\"@attempt\\\",\\\"@setOfficialAttempt\\\"],[[23,1,[]],[23,0,[\\\"setOfficialAttempt\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/attempts-viewer.hbs\"\n }\n });\n\n var AttemptsViewer = (_dec = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AttemptsViewer, _Component);\n\n var _super = _createSuper(AttemptsViewer);\n\n function AttemptsViewer() {\n _classCallCheck(this, AttemptsViewer);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(AttemptsViewer, [{\n key: \"setOfficialAttempt\",\n value: function setOfficialAttempt(attempt) {\n this.args.setOfficialAttempt(attempt);\n }\n }]);\n\n return AttemptsViewer;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"setOfficialAttempt\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"setOfficialAttempt\"), _class.prototype)), _class));\n _exports.default = AttemptsViewer;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, AttemptsViewer);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/audio-player-base\", [\"exports\", \"@glimmer/component\", \"student-app/utils/audio-control\"], function (_exports, _component, _audioControl) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/tracking\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"student-app/utils/audio-control\",0,\"@ember/object/internals\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AudioPlayerBase = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember.computed.readOnly('instrumentation.isPlaying'), _dec5 = Ember.computed.readOnly('instrumentation.seekPercent'), _dec6 = Ember.computed('instrumentation.currentTime'), _dec7 = Ember.computed('asset.title'), _dec8 = Ember._action, _dec9 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AudioPlayerBase, _Component);\n\n var _super = _createSuper(AudioPlayerBase);\n\n function AudioPlayerBase() {\n var _this;\n\n _classCallCheck(this, AudioPlayerBase);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"audioService\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"audioToken\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"instrumentation\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isPlaying\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"seekPercent\", _descriptor5, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AudioPlayerBase, [{\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(AudioPlayerBase.prototype), \"willDestroy\", this).apply(this, arguments);\n\n this.audioService.unregister(this.instrumentation);\n }\n }, {\n key: \"currentTime\",\n get: function get() {\n if (!this.instrumentation) {\n return '';\n }\n\n var seconds = Math.round(this.instrumentation.currentTime);\n var minutes = Math.round(seconds / 60);\n seconds = seconds % 60;\n seconds = (\"00\" + seconds).slice(-2);\n return \"\".concat(minutes, \":\").concat(seconds);\n }\n }, {\n key: \"description\",\n get: function get() {\n var title = this.asset.title;\n\n if (Ember.isEmpty(title)) {\n return \"Audio Clip\";\n } else {\n return title;\n }\n }\n }, {\n key: \"setupAudio\",\n value: function setupAudio(audioElement) {\n var controls = new _audioControl.default({\n id: this.audioToken,\n audio: audioElement\n });\n this.instrumentation = controls;\n this.audioService.register(controls);\n\n if (this.asset && this.asset.autoPlay) {\n this.play();\n }\n }\n }, {\n key: \"play\",\n value: function play() {\n this.audioService.play(this.audioToken);\n }\n }, {\n key: \"pause\",\n value: function pause() {\n this.audioService.pause(this.audioToken);\n }\n }, {\n key: \"seekUpdated\",\n value: function seekUpdated(event) {\n var currentValue = event.target.value;\n this.audioService.seek(this.audioToken, currentValue);\n }\n }]);\n\n return AudioPlayerBase;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"audioService\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"audioToken\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return Ember.guidFor(this);\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"instrumentation\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isPlaying\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"seekPercent\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"currentTime\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"currentTime\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"description\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setupAudio\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"setupAudio\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"play\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"play\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pause\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"pause\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"seekUpdated\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"seekUpdated\"), _class.prototype)), _class));\n _exports.default = AudioPlayerBase;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/body-mod\", [\"exports\", \"jquery\", \"@glimmer/component\"], function (_exports, _jquery, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var BodyMod = /*#__PURE__*/function (_Component) {\n _inherits(BodyMod, _Component);\n\n var _super = _createSuper(BodyMod);\n\n function BodyMod(owner, args) {\n var _this;\n\n _classCallCheck(this, BodyMod);\n\n _this = _super.call(this, owner, args);\n var $body = (0, _jquery.default)(\"body\");\n var bodyId = _this.args.id;\n\n if (bodyId) {\n $body.attr('id', bodyId);\n }\n\n var bodyClass = _this.args.class;\n\n if (bodyClass) {\n $body.attr('class', \"\".concat($body[0].className, \" \").concat(bodyClass));\n }\n\n return _this;\n }\n\n return _createClass(BodyMod);\n }(_component.default);\n\n _exports.default = BodyMod;\n\n window.__CLASSIC_HAS_CONSTRUCTOR__.set(BodyMod, true);\n\n window.__CLASSIC_OWN_CLASSES__.set(BodyMod, true);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/boid-fun\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n

\n Thank you for trying your best!\n

\n \n
\n \n   Return to your dashboard\n \n
\n
\n \n
\n
\n
\n
\n
\n \n */\n {\n id: \"hZClNZyQ\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertFun\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\",true],[10,\\\"class\\\",\\\"text-center thank-you-text\\\"],[8],[0,\\\"\\\\n Thank you for trying your best!\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"text-center\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"app-return-to-dashboard btn btn-white\\\"]],[[\\\"@route\\\"],[\\\"auth.index\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-chevron-left\\\"],[8],[9],[0,\\\"\\xA0Return to your dashboard\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"canvas\\\",true],[10,\\\"width\\\",\\\"900\\\"],[10,\\\"height\\\",\\\"400\\\"],[10,\\\"data-processing-sources\\\",\\\"/ember/boids.pde\\\"],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/boid-fun.hbs\"\n }\n });\n\n var BoidFun = (_dec = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(BoidFun, _Component);\n\n var _super = _createSuper(BoidFun);\n\n function BoidFun() {\n _classCallCheck(this, BoidFun);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(BoidFun, [{\n key: \"didInsertFun\",\n value: function didInsertFun() {\n window.Processing.reload();\n }\n }]);\n\n return BoidFun;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"didInsertFun\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertFun\"), _class.prototype)), _class));\n _exports.default = BoidFun;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, BoidFun);\n});","define(\"student-app/components/bootstrap-datepicker-inline\", [\"exports\", \"ember-cli-bootstrap-datepicker/components/bootstrap-datepicker-inline\"], function (_exports, _bootstrapDatepickerInline) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-bootstrap-datepicker/components/bootstrap-datepicker-inline\"eaimeta@70e063a35619d71f\n\n var _default = _bootstrapDatepickerInline.default;\n _exports.default = _default;\n});","define(\"student-app/components/bootstrap-datepicker\", [\"exports\", \"ember-cli-bootstrap-datepicker/components/bootstrap-datepicker\"], function (_exports, _bootstrapDatepicker) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-bootstrap-datepicker/components/bootstrap-datepicker\"eaimeta@70e063a35619d71f\n\n var _default = _bootstrapDatepicker.default;\n _exports.default = _default;\n});","define(\"student-app/components/building-admin-courses-nav\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n School Courses\n Share Reports\n
\n
\n \n */\n {\n id: \"wfa1hS5J\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bs-row bs-row--remove-column-padding app-page-heading page-heading\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation app-sub-navigation\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@classNames\\\"],[\\\"auth.courses-by-school\\\",\\\"sub-navigation__link app-school-courses-link\\\"]],{\\\"statements\\\":[[0,\\\"School Courses\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@classNames\\\"],[\\\"auth.courses-by-course-group\\\",\\\"sub-navigation__link app-course-groups-link\\\"]],{\\\"statements\\\":[[0,\\\"Share Reports\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/building-admin-courses-nav.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","define(\"student-app/components/callout-wrapper\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n {{#if @point.callout }}\n \n \n {{/if}}\n \n {{#if (eq @componentName \"drag-and-drop-rectangle\")}}\n \n {{else if (eq @componentName \"drag-and-drop-oval\")}}\n \n {{else if (eq @componentName \"drag-and-drop-polygon\")}}\n \n {{else if (eq @componentName \"drag-and-drop-dot\")}}\n \n {{/if}}\n \n */\n {\n id: \"GmJyqzef\",\n block: \"{\\\"symbols\\\":[\\\"@point\\\",\\\"@dragInfo\\\",\\\"@draggedOverAction\\\",\\\"@draggedOutAction\\\",\\\"@componentName\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"callout\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"dnd-callout-line\\\",[],[[\\\"@answer\\\"],[[23,1,[]]]]],[0,\\\"\\\\n \\\"],[5,\\\"dnd-callout-dot\\\",[],[[\\\"@answer\\\",\\\"@draggedOverAction\\\",\\\"@draggedOutAction\\\"],[[23,1,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"drag-and-drop-rectangle\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-rectangle\\\",[],[[\\\"@point\\\",\\\"@dragInfo\\\",\\\"@draggedOver\\\",\\\"@draggedOut\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"drag-and-drop-oval\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-oval\\\",[],[[\\\"@point\\\",\\\"@dragInfo\\\",\\\"@draggedOver\\\",\\\"@draggedOut\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"drag-and-drop-polygon\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-polygon\\\",[],[[\\\"@point\\\",\\\"@dragInfo\\\",\\\"@draggedOver\\\",\\\"@draggedOut\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,5,[]],\\\"drag-and-drop-dot\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-dot\\\",[],[[\\\"@point\\\",\\\"@dragInfo\\\",\\\"@draggedOver\\\",\\\"@draggedOut\\\"],[[23,1,[]],[23,2,[]],[23,3,[]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/callout-wrapper.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/change-organization-link\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n */\n {\n id: \"KsONjv29\",\n block: \"{\\\"symbols\\\":[\\\"@classNames\\\"],\\\"statements\\\":[[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"no-bg no-border no-text-align \\\",[23,1,[]]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"changeCurrentOrg\\\"]]]],[8],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"organizationLabel\\\"]],false],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/change-organization-link.hbs\"\n }\n });\n\n var ChangeOrganizationLink = (_dec = Ember.inject.service, _dec2 = Ember.computed.oneWay('args.organization.title'), _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ChangeOrganizationLink, _Component);\n\n var _super = _createSuper(ChangeOrganizationLink);\n\n function ChangeOrganizationLink() {\n var _this;\n\n _classCallCheck(this, ChangeOrganizationLink);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"organizationLabel\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ChangeOrganizationLink, [{\n key: \"changeCurrentOrg\",\n value: function () {\n var _changeCurrentOrg = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.apiClient.post('users/update-current-organization', {\n userId: this.args.user.id,\n organizationId: this.args.organization.id\n });\n\n case 2:\n window.location.href = \"/\";\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function changeCurrentOrg() {\n return _changeCurrentOrg.apply(this, arguments);\n }\n\n return changeCurrentOrg;\n }()\n }]);\n\n return ChangeOrganizationLink;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"organizationLabel\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"changeCurrentOrg\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"changeCurrentOrg\"), _class.prototype)), _class));\n _exports.default = ChangeOrganizationLink;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, ChangeOrganizationLink);\n});","define(\"student-app/components/check-box\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n \n
\n */\n {\n id: \"ewr07HHx\",\n block: \"{\\\"symbols\\\":[\\\"@checked\\\",\\\"@inputId\\\",\\\"@label\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"span2\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"checkbox app-keyword-label checkbox-label\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"input\\\",[],[[\\\"@type\\\",\\\"@checked\\\",\\\"@id\\\",\\\"@classNames\\\"],[\\\"checkbox\\\",[23,1,[]],[23,2,[]],\\\"app-keyword\\\"]]],[0,\\\"\\\\n \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/check-box.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/choice-answer\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n
\n
\n
\n \n {{#if this.hasAnswerLabels }}\n {{this.answerLabel}}\n {{/if}}\n \n
\n {{#if this.hasAnswerBody}}\n
{{sanitize-and-escape this.answer.body}}
\n {{/if}}\n \n {{#if this.hasMediaAssets }}\n \n {{/if}}\n
\n \n \n */\n {\n id: \"WO2G5MBB\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[29,[\\\"app-answer choice-answer \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelectedAnswer\\\"]],\\\"choice-answer-active\\\"],null]]]],[12,\\\"data-answer-id\\\",[29,[[23,0,[\\\"answer\\\",\\\"id\\\"]]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"selectAnswer\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"print\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"print-checkbox\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasAnswerLabels\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"app-answer-label choice-answer-label\\\"],[8],[1,[23,0,[\\\"answerLabel\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"hasAnswerLabels\\\"]],\\\"choice-body-with-labels\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasAnswerBody\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"app-answer-body choice-body \\\",[28,\\\"if\\\",[[23,0,[\\\"hasMediaAssets\\\"]],\\\"choice-body-with-media-assets\\\"],null]]]],[8],[1,[28,\\\"sanitize-and-escape\\\",[[23,0,[\\\"answer\\\",\\\"body\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"answer-media-assets\\\",[],[[\\\"@mediaAssets\\\"],[[23,0,[\\\"mediaAssets\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/choice-answer.hbs\"\n }\n });\n\n var ChoiceAnswer = (_dec = Ember.computed.equal('columnType', 'single'), _dec2 = Ember.computed.equal('columnType', 'right'), _dec3 = Ember.computed('index', 'isSingleColumn', 'isRightColumn'), _dec4 = Ember.computed('args.selectedAnswers.@each.id', 'answer.id'), _dec5 = Ember.computed.readOnly('answer.mediaAssets'), _dec6 = Ember.computed.notEmpty('mediaAssets'), _dec7 = Ember.computed.notEmpty('answer.body'), _dec8 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ChoiceAnswer, _Component);\n\n var _super = _createSuper(ChoiceAnswer);\n\n function ChoiceAnswer() {\n var _this;\n\n _classCallCheck(this, ChoiceAnswer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isSingleColumn\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isRightColumn\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mediaAssets\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAssets\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasAnswerBody\", _descriptor5, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ChoiceAnswer, [{\n key: \"answer\",\n get: function get() {\n var _this$args$answer;\n\n return (_this$args$answer = this.args.answer) !== null && _this$args$answer !== void 0 ? _this$args$answer : null;\n }\n }, {\n key: \"index\",\n get: function get() {\n var _this$args$index;\n\n return (_this$args$index = this.args.index) !== null && _this$args$index !== void 0 ? _this$args$index : null;\n }\n }, {\n key: \"columnType\",\n get: function get() {\n var _this$args$columnType;\n\n return (_this$args$columnType = this.args.columnType) !== null && _this$args$columnType !== void 0 ? _this$args$columnType : null;\n }\n }, {\n key: \"hasAnswerLabels\",\n get: function get() {\n var _this$args$hasAnswerL;\n\n return (_this$args$hasAnswerL = this.args.hasAnswerLabels) !== null && _this$args$hasAnswerL !== void 0 ? _this$args$hasAnswerL : false;\n }\n }, {\n key: \"selectedAnswers\",\n get: function get() {\n var _this$args$selectedAn;\n\n return (_this$args$selectedAn = this.args.selectedAnswers) !== null && _this$args$selectedAn !== void 0 ? _this$args$selectedAn : null;\n }\n }, {\n key: \"answerLabel\",\n get: function get() {\n var offsetLetter = this.isSingleColumn ? this.index : this.index * 2;\n\n if (this.isRightColumn) {\n offsetLetter += 1;\n }\n\n return \"\".concat(String.fromCharCode(65 + offsetLetter), \".\");\n }\n }, {\n key: \"isSelectedAnswer\",\n get: function get() {\n var id = this.answer.id;\n return (this.selectedAnswers || []).any(function (answer) {\n return answer.id === id;\n });\n }\n }, {\n key: \"selectAnswer\",\n value: function selectAnswer() {\n this.args.selectAnswer(this.answer);\n }\n }]);\n\n return ChoiceAnswer;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isSingleColumn\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isRightColumn\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"answerLabel\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"answerLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isSelectedAnswer\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"isSelectedAnswer\"), _class.prototype), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"mediaAssets\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAssets\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasAnswerBody\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"selectAnswer\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAnswer\"), _class.prototype)), _class));\n _exports.default = ChoiceAnswer;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, ChoiceAnswer);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/choice-question-form\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if @showAnswerShade}}\n
\n \n
\n Answers Hidden\n
\n {{/if}}\n
\n {{#if @displayAsList}}\n \n {{#each @randomizedSortedAnswers as |answer index|}}\n \n {{/each}}\n \n {{else}}\n
\n {{#each @leftColumnAnswers as |answer index|}}\n \n {{/each}}\n
\n
\n {{#each @rightColumnAnswers as |answer index|}}\n \n {{/each}}\n
\n {{/if}}\n
\n
\n \n */\n {\n id: \"0jdocmX2\",\n block: \"{\\\"symbols\\\":[\\\"answer\\\",\\\"index\\\",\\\"answer\\\",\\\"index\\\",\\\"answer\\\",\\\"index\\\",\\\"@shouldShowAnswerLabels\\\",\\\"@selectedAnswers\\\",\\\"@leftColumnAnswers\\\",\\\"@rightColumnAnswers\\\",\\\"@randomizedSortedAnswers\\\",\\\"@showAnswerShade\\\",\\\"@displayAsList\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-answers question-answer-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,12,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"answer-shade-indicator no-print\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"answer-shade\\\"],[10,\\\"alt\\\",\\\"Answer shade\\\"],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n Answers Hidden\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"choice-list \\\",[28,\\\"if\\\",[[23,12,[]],\\\"answers-hidden\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,13,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"app-single-column\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,11,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"choice-answer\\\",[],[[\\\"@answer\\\",\\\"@index\\\",\\\"@columnType\\\",\\\"@hasAnswerLabels\\\",\\\"@selectedAnswers\\\",\\\"@selectAnswer\\\"],[[23,5,[]],[23,6,[]],\\\"single\\\",[23,7,[]],[23,8,[]],[23,0,[\\\"selectAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5,6]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-primary-column choice-left\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,9,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"choice-answer\\\",[],[[\\\"@answer\\\",\\\"@index\\\",\\\"@columnType\\\",\\\"@hasAnswerLabels\\\",\\\"@selectedAnswers\\\",\\\"@selectAnswer\\\"],[[23,3,[]],[23,4,[]],\\\"left\\\",[23,7,[]],[23,8,[]],[23,0,[\\\"selectAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3,4]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-secondary-column choice-right\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,10,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"choice-answer\\\",[],[[\\\"@answer\\\",\\\"@index\\\",\\\"@columnType\\\",\\\"@hasAnswerLabels\\\",\\\"@selectedAnswers\\\",\\\"@selectAnswer\\\"],[[23,1,[]],[23,2,[]],\\\"right\\\",[23,7,[]],[23,8,[]],[23,0,[\\\"selectAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/choice-question-form.hbs\"\n }\n });\n\n var ChoiceQuestionForm = (_dec = Ember.inject.service, _dec2 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ChoiceQuestionForm, _Component);\n\n var _super = _createSuper(ChoiceQuestionForm);\n\n function ChoiceQuestionForm(owner, args) {\n var _this;\n\n _classCallCheck(this, ChoiceQuestionForm);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _this.mathjaxManager.updateFormulas();\n\n return _this;\n }\n\n _createClass(ChoiceQuestionForm, [{\n key: \"selectAnswer\",\n value: function selectAnswer(answer) {\n this.args.selectAnswer(answer);\n }\n }]);\n\n return ChoiceQuestionForm;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"selectAnswer\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAnswer\"), _class.prototype)), _class));\n _exports.default = ChoiceQuestionForm;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, ChoiceQuestionForm);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/choice-response-view\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#each this.sortedAnswers as |h|}}\n
\n
{{sanitize-and-escape h.answer.body}}
\n {{#if h.answer.hasMediaAssets}}\n
    \n {{#each h.answer.mediaAssets as |asset|}}\n {{#if asset.isImage}}\n
  • \n \"{{asset.altText}}\"\n
  • \n {{/if}}\n {{#if asset.isAudio}}\n
  • \n \n
  • \n {{/if}}\n {{/each}}\n
\n {{/if}}\n
\n {{/each}}\n
\n \n */\n {\n id: \"HOlfO8KP\",\n block: \"{\\\"symbols\\\":[\\\"h\\\",\\\"asset\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"response-view__answer-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"sortedAnswers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[11,\\\"data-answer-id\\\",[23,1,[\\\"answer\\\",\\\"id\\\"]]],[11,\\\"class\\\",[29,[\\\"response-view__choice-answer app-answer answer \\\",[23,0,[\\\"typeClass\\\"]],\\\" \\\",[28,\\\"if\\\",[[23,1,[\\\"chosen\\\"]],\\\"app-chosen chosen\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,1,[\\\"studentCorrect\\\"]],\\\"correct app-correct\\\",\\\"incorrect app-incorrect\\\"],null],\\\" \\\",[28,\\\"unless\\\",[[23,1,[\\\"answer\\\",\\\"correct\\\"]],\\\"app-distractor distractor\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"body app-body\\\"],[8],[1,[28,\\\"sanitize-and-escape\\\",[[23,1,[\\\"answer\\\",\\\"body\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"answer\\\",\\\"hasMediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"media-assets-display\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,1,[\\\"answer\\\",\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,2,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"media-asset-display\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[23,2,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,2,[\\\"altText\\\"]]]]],[10,\\\"class\\\",\\\"media-asset-display\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,2,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"media-asset-display\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\"],[[23,2,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/choice-response-view.hbs\"\n }\n });\n\n var ChoiceResponseView = (_dec = Ember.computed('args.answers.[]'), _dec2 = Ember.computed('args.response.type'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(ChoiceResponseView, _Component);\n\n var _super = _createSuper(ChoiceResponseView);\n\n function ChoiceResponseView() {\n _classCallCheck(this, ChoiceResponseView);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ChoiceResponseView, [{\n key: \"sortedAnswers\",\n get: function get() {\n var answerHolders = this.args.answers;\n var buckets = {\n selectedDistractors: [],\n unselectedAnswers: [],\n selectedAnswers: [],\n unselectedDistractors: []\n };\n answerHolders.forEach(function (h) {\n var correct = h.answer.correct;\n\n if (!correct && h.chosen) {\n buckets.selectedDistractors.push(h);\n } else if (correct && !h.chosen) {\n buckets.unselectedAnswers.push(h);\n } else if (correct && h.chosen) {\n buckets.selectedAnswers.push(h);\n } else if (!correct && !h.chosen) {\n buckets.unselectedDistractors.push(h);\n }\n });\n var orderedAnswers = buckets.selectedDistractors.concat(buckets.unselectedAnswers).concat(buckets.selectedAnswers).concat(buckets.unselectedDistractors);\n return orderedAnswers;\n }\n }, {\n key: \"typeClass\",\n get: function get() {\n var type = this.args.response.type.slice(0, -8).dasherize();\n return \"\".concat(type, \"-answer\");\n }\n }]);\n\n return ChoiceResponseView;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"sortedAnswers\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"sortedAnswers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"typeClass\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"typeClass\"), _class.prototype)), _class));\n _exports.default = ChoiceResponseView;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, ChoiceResponseView);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/clear-response\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
Clear answer
\n \n {{#if this.showConfirmClearModal}}\n \n
\n
Are you sure you want to clear your answer?
\n \n
You cannot undo this action.
\n \n
\n   Clear\n or\n Cancel\n
\n
\n \n {{/if}}\n \n */\n {\n id: \"NfyxYFhI\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"app-clear clear-answer\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"confirmClearAnswer\\\"]]]],[8],[0,\\\"Clear answer\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showConfirmClearModal\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@confirm\\\",\\\"@targetAttachment\\\",\\\"@translucentOverlay\\\"],[[23,0,[\\\"cancelConfirm\\\"]],\\\"clearAnswer\\\",\\\"center\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"student-modal span12\\\"],[8],[0,\\\" \\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"student-modal-header\\\"],[8],[0,\\\"Are you sure you want to clear your answer?\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"student-modal-subheader\\\"],[8],[0,\\\"You cannot undo this action.\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"button-controls\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"app-modal-action btn btn-large btn-blue\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"clearAnswer\\\"]]]],[8],[0,\\\"\\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-remove-circle icon-white\\\"],[8],[9],[0,\\\"\\xA0Clear\\\"],[9],[0,\\\"\\\\n or\\\\n \\\"],[7,\\\"span\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"btn btn-white btn-large btn-default app-modal-close\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"cancelConfirm\\\"]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/clear-response.hbs\"\n }\n });\n\n var ClearResponse = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, _dec4 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ClearResponse, _Component);\n\n var _super = _createSuper(ClearResponse);\n\n function ClearResponse() {\n var _this;\n\n _classCallCheck(this, ClearResponse);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"showConfirmClearModal\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ClearResponse, [{\n key: \"response\",\n get: function get() {\n var _this$args$response;\n\n return (_this$args$response = this.args.response) !== null && _this$args$response !== void 0 ? _this$args$response : null;\n }\n }, {\n key: \"confirmClearAnswer\",\n value: function confirmClearAnswer() {\n var needsConfirm = this.response.type === 'InlineResponse' || (this.response.type === 'EssayResponse' || this.response.type === 'ShortAnswerResponse') && this.response.body;\n\n if (needsConfirm) {\n this.showConfirmClearModal = true;\n } else {\n this.clearAnswer();\n }\n }\n }, {\n key: \"cancelConfirm\",\n value: function cancelConfirm() {\n this.showConfirmClearModal = false;\n }\n }, {\n key: \"clearAnswer\",\n value: function clearAnswer() {\n this.showConfirmClearModal = false;\n this.response.body = '';\n this.response.matches = [];\n this.response.manualMatches = [];\n this.response.responseMetadata = [];\n this.response.answerId = '';\n this.response.answers = [];\n\n if (this.args.clearAnswer !== null) {\n this.args.clearAnswer();\n }\n\n this.args.saveResponse(this.response);\n }\n }]);\n\n return ClearResponse;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"showConfirmClearModal\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"confirmClearAnswer\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"confirmClearAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelConfirm\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelConfirm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clearAnswer\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"clearAnswer\"), _class.prototype)), _class));\n _exports.default = ClearResponse;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, ClearResponse);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/collapsable-section\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n {{@title}}\n
\n
\n \n
\n {{#if this.isOpen}}\n
\n {{yield}}\n
\n {{/if}}\n
\n \n */\n {\n id: \"+bj7sJNP\",\n block: \"{\\\"symbols\\\":[\\\"&default\\\",\\\"@title\\\",\\\"@bodyId\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"aria-label\\\",\\\"toggle section\\\"],[12,\\\"class\\\",[29,[\\\"accordion-toggle \\\",[28,\\\"unless\\\",[[23,0,[\\\"isOpen\\\"]],\\\"collapsed\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggleVisibility\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-component-toggle component-title\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"indicator\\\"],[8],[1,[23,2,[]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordion-body collapse in\\\"],[11,\\\"id\\\",[29,[[23,3,[]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isOpen\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"accordion-inner\\\"],[8],[0,\\\"\\\\n \\\"],[14,1],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/collapsable-section.hbs\"\n }\n });\n\n var CollapsableSection = (_dec = Ember._tracked, _dec2 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CollapsableSection, _Component);\n\n var _super = _createSuper(CollapsableSection);\n\n function CollapsableSection() {\n var _this;\n\n _classCallCheck(this, CollapsableSection);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOpen\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CollapsableSection, [{\n key: \"toggleVisibility\",\n value: function toggleVisibility() {\n this.isOpen = !this.isOpen;\n }\n }]);\n\n return CollapsableSection;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n var _this$args$isOpen;\n\n return (_this$args$isOpen = this.args.isOpen) !== null && _this$args$isOpen !== void 0 ? _this$args$isOpen : true;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"toggleVisibility\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"toggleVisibility\"), _class.prototype)), _class));\n _exports.default = CollapsableSection;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CollapsableSection);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/course-assessments\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n

{{@course.title}}

\n
\n \n {{#if this.hasInProgressAssessments}}\n
\n
\n Note:\n You have {{ this.inProgressAssessmentCountLabel }} in progress.\n
\n \n

Assessments In-Progress

\n \n \n {{#each this.inProgressAssessments as |assessment|}}\n \n \n \n \n {{/each}}\n \n
{{assessment.title}}\n \n   Resume\n \n
\n
\n {{/if}}\n \n
\n {{#if this.hasAvailableAssessments}}\n

Assessments

\n \n \n {{#each this.availableAssessments as |assessment|}}\n \n {{/each}}\n \n
\n {{else}}\n
There are no open assessments for {{@course.title}}
\n {{/if}}\n
\n \n
\n {{#if this.hasCompletedAssessments }}\n

Completed Assessments

\n \n \n {{#each this.completedAssessments as |assessment|}}\n \n {{/each}}\n \n
\n {{/if}}\n
\n \n */\n {\n id: \"bueQNKhd\",\n block: \"{\\\"symbols\\\":[\\\"assessment\\\",\\\"assessment\\\",\\\"assessment\\\",\\\"@course\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"breather app-course\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\",true],[8],[1,[23,4,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasInProgressAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"breather\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-message\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\",true],[8],[0,\\\"Note:\\\"],[9],[0,\\\"\\\\n You have \\\"],[1,[23,0,[\\\"inProgressAssessmentCountLabel\\\"]],false],[0,\\\" in progress.\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"fugue-icon-flag-yellow\\\"],[8],[0,\\\"Assessments In-Progress\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table app-resumable-assessments\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"inProgressAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-assessment\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[1,[23,3,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[11,\\\"data-attempt-id\\\",[23,3,[\\\"inProgressAttempt\\\",\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg app-resume btn btn-white right course-overview-button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"editAssessmentResponse\\\"]],[23,3,[\\\"inProgressAttempt\\\",\\\"response\\\"]]],null]]],[8],[0,\\\"\\\\n \\xA0\\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-share-alt\\\"],[8],[9],[0,\\\"\\xA0Resume\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"breather\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasAvailableAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"fugue-icon-flag-blue\\\"],[8],[0,\\\"Assessments\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table app-new-assessments\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"availableAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"student-assessment-listing\\\",[],[[\\\"@assessment\\\",\\\"@viewResponse\\\",\\\"@startAttempt\\\",\\\"@retakeAttempt\\\"],[[23,2,[]],[23,0,[\\\"viewResponse\\\"]],[23,0,[\\\"startAttempt\\\"]],[23,0,[\\\"retakeAttempt\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"alert alert-info\\\"],[8],[0,\\\"There are no open assessments for \\\"],[1,[23,4,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"breather\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasCompletedAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"fugue-icon-flag-green\\\"],[8],[0,\\\"Completed Assessments\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"table app-completed-assessments\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"completedAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"student-assessment-listing\\\",[],[[\\\"@assessment\\\",\\\"@viewResponse\\\",\\\"@startAttempt\\\",\\\"@retakeAttempt\\\"],[[23,1,[]],[23,0,[\\\"viewResponse\\\"]],[23,0,[\\\"startAttempt\\\"]],[23,0,[\\\"retakeAttempt\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/course-assessments.hbs\"\n }\n });\n\n var CourseAssessments = (_dec = Ember.computed.readOnly('args.course.inProgressAssessments'), _dec2 = Ember.computed.readOnly('args.course.completedAssessments'), _dec3 = Ember.computed.readOnly('args.course.availableAssessments'), _dec4 = Ember.computed.readOnly('args.course.educators'), _dec5 = Ember.computed.notEmpty('inProgressAssessments'), _dec6 = Ember.computed.notEmpty('completedAssessments'), _dec7 = Ember.computed.notEmpty('availableAssessments'), _dec8 = Ember.computed.readOnly('inProgressAssessments.length'), _dec9 = Ember.computed('inProgressAssessmentCount'), _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CourseAssessments, _Component);\n\n var _super = _createSuper(CourseAssessments);\n\n function CourseAssessments() {\n var _this;\n\n _classCallCheck(this, CourseAssessments);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"inProgressAssessments\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"completedAssessments\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"availableAssessments\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"educators\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasInProgressAssessments\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasCompletedAssessments\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasAvailableAssessments\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"inProgressAssessmentCount\", _descriptor8, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CourseAssessments, [{\n key: \"inProgressAssessmentCountLabel\",\n get: function get() {\n var label = this.inProgressAssessmentCount === 1 ? \"assessment\" : \"assessments\";\n return \"\".concat(this.inProgressAssessmentCount, \" \").concat(label);\n }\n }, {\n key: \"startAttempt\",\n value: function startAttempt(attempt) {\n this.args.startAttempt(attempt);\n }\n }, {\n key: \"editAssessmentResponse\",\n value: function editAssessmentResponse(response) {\n this.args.editAssessmentResponse(response);\n }\n }, {\n key: \"retakeAttempt\",\n value: function retakeAttempt(attempt) {\n this.args.retakeAttempt(attempt);\n }\n }, {\n key: \"viewResponse\",\n value: function viewResponse(response) {\n this.args.viewAssessmentResponse(response);\n }\n }]);\n\n return CourseAssessments;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"inProgressAssessments\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"completedAssessments\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"availableAssessments\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"educators\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasInProgressAssessments\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"hasCompletedAssessments\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hasAvailableAssessments\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"inProgressAssessmentCount\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"inProgressAssessmentCountLabel\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"inProgressAssessmentCountLabel\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"startAttempt\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"startAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editAssessmentResponse\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"editAssessmentResponse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"retakeAttempt\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"retakeAttempt\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"viewResponse\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"viewResponse\"), _class.prototype)), _class));\n _exports.default = CourseAssessments;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CourseAssessments);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/course-group-table\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n \n \n {{#if @hasCourseGroups}}\n \n \n \n \n \n \n \n \n \n {{#each @courseGroups as |courseGroup|}}\n \n \n \n \n \n \n {{/each}}\n \n
Report Sharing Group NameUsersCourses
\n {{#if courseGroup.title}}\n {{courseGroup.title}}\n {{else}}\n Untitled\n {{/if}}\n \n {{#if courseGroup.hasUsers}}\n {{#each courseGroup.users as |user|}}\n
{{user}}
\n {{/each}}\n {{else}}\n No users assigned\n {{/if}}\n
\n {{courseGroup.courseCount}}\n \n \n \n
\n {{else}}\n \n Your organization does not have any report sharing groups.\n \n {{/if}}\n
\n \n {{#if this.showDeleteConfirmModal}}\n \n
\n

Attention

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

Are you sure you want to delete the report sharing group \"{{this.courseGroupToDelete.title}}\"?

\n
\n \n
\n \n \n
\n
\n {{/if}}\n \n */\n {\n id: \"dyhkWyst\",\n block: \"{\\\"symbols\\\":[\\\"courseGroup\\\",\\\"user\\\",\\\"@courseGroups\\\",\\\"@hasCourseGroups\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bs-row bs-row--remove-column-padding\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white top-margin app-new-course-group\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"createCourseGroup\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-plus\\\"],[8],[9],[0,\\\" Create Report Sharing Group\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"app-course-groups bordered-table bordered-table__with-margins\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Report Sharing Group Name\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Users\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[0,\\\"Courses\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-course-group\\\"],[11,\\\"data-course-group-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"bordered-table__text-data\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"title\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,1,[\\\"title\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"em\\\",true],[8],[0,\\\"Untitled\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"bordered-table__text-data\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"hasUsers\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,1,[\\\"users\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bordered-table__stackable-content\\\"],[8],[1,[23,2,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"em\\\",true],[8],[0,\\\" No users assigned\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"bordered-table__text-data\\\"],[8],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"courseCount\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"bordered-table__text-data\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border app-edit\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"editCourseGroup\\\"]],[23,1,[\\\"id\\\"]]],null]]],[8],[0,\\\"Edit\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border app-delete left-margin\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"openDeleteConfirmModalForGroup\\\"]],[23,1,[]]],null]]],[8],[0,\\\"Remove\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"warning-box\\\",[],[[\\\"@classNames\\\"],[\\\"app-no-course-groups top-margin\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"strong\\\",true],[8],[0,\\\"Your organization does not have any report sharing groups.\\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDeleteConfirmModal\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@translucentOverlay\\\"],[[23,0,[\\\"closeDeleteConfirmModal\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"modal-title\\\"],[8],[0,\\\"Attention\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-close\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"close-x close-x--bland close-x--large\\\"],[12,\\\"aria-label\\\",\\\"close\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"closeDeleteConfirmModal\\\"]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-content\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Are you sure you want to delete the report sharing group \\\\\\\"\\\"],[1,[23,0,[\\\"courseGroupToDelete\\\",\\\"title\\\"]],false],[0,\\\"\\\\\\\"?\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-footer\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"closeDeleteConfirmModal\\\"]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-confirm-delete btn btn-danger\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"destroyCourseGroup\\\"]],[23,0,[\\\"courseGroupToDelete\\\",\\\"id\\\"]]],null]]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/course-group-table.hbs\"\n }\n });\n\n var CourseGroupTable = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._action, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CourseGroupTable, _Component);\n\n var _super = _createSuper(CourseGroupTable);\n\n function CourseGroupTable() {\n var _this;\n\n _classCallCheck(this, CourseGroupTable);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"showDeleteConfirmModal\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"courseGroupToDelete\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CourseGroupTable, [{\n key: \"stateManager\",\n get: function get() {\n var _this$args$stateManag;\n\n return (_this$args$stateManag = this.args.stateManager) !== null && _this$args$stateManag !== void 0 ? _this$args$stateManag : null;\n }\n }, {\n key: \"openDeleteConfirmModalForGroup\",\n value: function openDeleteConfirmModalForGroup(courseGroup) {\n this.courseGroupToDelete = courseGroup;\n this.showDeleteConfirmModal = true;\n }\n }, {\n key: \"closeDeleteConfirmModal\",\n value: function closeDeleteConfirmModal() {\n this.showDeleteConfirmModal = false;\n }\n }, {\n key: \"createCourseGroup\",\n value: function createCourseGroup() {\n this.stateManager.createCourseGroup();\n }\n }, {\n key: \"editCourseGroup\",\n value: function editCourseGroup(courseGroupId) {\n this.stateManager.editCourseGroup(courseGroupId);\n }\n }, {\n key: \"destroyCourseGroup\",\n value: function destroyCourseGroup(courseGroupId) {\n this.stateManager.destroyCourseGroup(courseGroupId);\n this.showDeleteConfirmModal = false;\n }\n }]);\n\n return CourseGroupTable;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"showDeleteConfirmModal\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"courseGroupToDelete\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"openDeleteConfirmModalForGroup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"openDeleteConfirmModalForGroup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeDeleteConfirmModal\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"closeDeleteConfirmModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createCourseGroup\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"createCourseGroup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editCourseGroup\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"editCourseGroup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"destroyCourseGroup\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"destroyCourseGroup\"), _class.prototype)), _class));\n _exports.default = CourseGroupTable;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CourseGroupTable);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/course-pin\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if this.hasPin}}\n
\n Course PIN: \n \n \n ******\n \n \n
\n
\n Valid for date: {{moment-format this.validDate \"l\"}}\n \n Delete\n \n
\n {{else}}\n Course PIN:\n \n Set PIN\n \n {{/if}}\n \n {{#if @isCurrentlyEditingCoursePin}}\n \n
\n

Set Pin for {{this.title}}

\n
\n \n
\n

Course PIN must be at least 6 characters long and contain a capital letter and number.

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

Error: {{this.errorMessage}}

\n {{/if}}\n \n
\n \n \n
\n
\n \n \n
\n
\n \n
\n \n \n
\n \n {{/if}}\n
\n \n */\n {\n id: \"Ce43HMZF\",\n block: \"{\\\"symbols\\\":[\\\"@isCurrentlyEditingCoursePin\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-course-pin\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasPin\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"proctor-question-title__course-pin-label\\\"],[8],[0,\\\"Course PIN:\\\"],[9],[0,\\\" \\\\n \\\"],[5,\\\"css-tool-tip\\\",[],[[\\\"@title\\\"],[[23,0,[\\\"coursePin\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-padding no-text-align app-change-course-pin proctor-question-title__course-pin-link\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openCoursePinEditor\\\"]]]],[8],[0,\\\"\\\\n ******\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"proctor-question-title__course-pin-details app-course-pin-valid-date-text\\\"],[8],[0,\\\"\\\\n Valid for date: \\\"],[1,[28,\\\"moment-format\\\",[[23,0,[\\\"validDate\\\"]],\\\"l\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-padding no-text-align app-delete-course-pin proctor-question-title__course-pin-link\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"deleteCoursePin\\\"]]]],[8],[0,\\\"\\\\n Delete\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"proctor-question-title__course-pin-label\\\"],[8],[0,\\\"Course PIN:\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-padding app-set-course-pin proctor-question-title__course-pin-link\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openCoursePinEditor\\\"]]]],[8],[0,\\\"\\\\n Set PIN\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@confirm\\\",\\\"@targetAttachment\\\",\\\"@translucentOverlay\\\"],[[23,0,[\\\"closeCoursePinEditor\\\"]],\\\"setCoursePin\\\",\\\"center\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\",true],[8],[0,\\\"Set Pin for \\\"],[1,[23,0,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-content course-pin-form app-course-pin-modal\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"form-detail\\\"],[8],[0,\\\"Course PIN must be at least 6 characters long and contain a capital letter and number.\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasError\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"app-course-pin-error form-error\\\"],[8],[0,\\\"Error: \\\"],[1,[23,0,[\\\"errorMessage\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-inline\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"course-pin-entry-1\\\"],[8],[0,\\\"PIN:\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"input\\\",[[12,\\\"aria-label\\\",\\\"course pin entry\\\"],[12,\\\"class\\\",\\\"app-course-pin-text-input\\\"]],[[\\\"@value\\\",\\\"@name\\\"],[[23,0,[\\\"currentCoursePin\\\"]],\\\"course-pin-entry-1\\\"]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"form-inline\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"label\\\",true],[10,\\\"for\\\",\\\"course-pin-date-1\\\"],[8],[0,\\\"Valid for date:\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"bootstrap-datepicker\\\",[[3,\\\"on\\\",[\\\"change\\\",[23,0,[\\\"setDateManually\\\"]]]]],[[\\\"@changeDate\\\",\\\"@class\\\",\\\"@value\\\",\\\"@name\\\",\\\"@placeholder\\\",\\\"@autoclose\\\",\\\"@orientation\\\",\\\"@todayHighlight\\\"],[[23,0,[\\\"setDateFromPicker\\\"]],\\\"app-course-pin-date-input\\\",[23,0,[\\\"displayedCoursePinDate\\\"]],\\\"course-pin-date-1\\\",\\\"Select date\\\",true,\\\"bottom\\\",true]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-footer\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn app-cancel btn-white app-cancel-course-pin\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"closeCoursePinEditor\\\"]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn app-confirm btn-blue app-submit-course-pin\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"setCoursePin\\\"]]]],[8],[0,\\\"Save\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/course-pin.hbs\"\n }\n });\n /* global moment */\n\n\n var MinCoursePinLength = 6;\n var CoursePinLengthError = 'Course PINs must be at least 6 characters long.';\n var CoursePinCharacterError = 'Course PINs must contain a capital letter and number.';\n var CoursePinDateError = 'The date entered is not valid.';\n var CoursePinPastDateError = 'The date cannot be set before today.';\n var CoursePin = (_dec = Ember.computed.readOnly('args.course.coursePin'), _dec2 = Ember.computed.readOnly('args.course.coursePinDate'), _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember.computed.notEmpty('coursePin'), _dec9 = Ember.computed.notEmpty('errorMessage'), _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CoursePin, _Component);\n\n var _super = _createSuper(CoursePin);\n\n function CoursePin() {\n var _this;\n\n _classCallCheck(this, CoursePin);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"coursePin\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"validDate\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currentCoursePin\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currentCoursePinDate\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"displayedCoursePinDate\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"errorMessage\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"lastCoursePin\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasPin\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasError\", _descriptor9, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CoursePin, [{\n key: \"openCoursePinEditor\",\n value: function openCoursePinEditor() {\n this.args.openCoursePinEditor();\n this.currentCoursePin = this.coursePin;\n this.currentCoursePinDate = moment(this.validDate).toDate();\n this.displayedCoursePinDate = this.currentCoursePinDate;\n this.errorMessage = null;\n }\n }, {\n key: \"closeCoursePinEditor\",\n value: function closeCoursePinEditor() {\n this.args.closeCoursePinEditor();\n }\n }, {\n key: \"setDateManually\",\n value: function setDateManually(event) {\n this.currentCoursePinDate = event.target.value;\n }\n }, {\n key: \"setDateFromPicker\",\n value: function setDateFromPicker(date) {\n this.currentCoursePinDate = date;\n }\n }, {\n key: \"setCoursePin\",\n value: function setCoursePin() {\n var pin = this.currentCoursePin;\n var date = moment(this.currentCoursePinDate);\n var today = moment().startOf('day');\n\n if (!pin || pin.length < MinCoursePinLength) {\n this.errorMessage = CoursePinLengthError;\n return;\n } else if (pin.toLowerCase() === pin || !/[0-9]/.test(pin)) {\n this.errorMessage = CoursePinCharacterError;\n return;\n } else if (!moment(date).isValid()) {\n this.errorMessage = CoursePinDateError;\n return;\n } else if (moment(date).isBefore(today)) {\n this.errorMessage = CoursePinPastDateError;\n return;\n }\n\n this.args.setCoursePin(pin, date);\n this.args.closeCoursePinEditor();\n }\n }, {\n key: \"deleteCoursePin\",\n value: function deleteCoursePin() {\n this.args.deleteCoursePin();\n }\n }]);\n\n return CoursePin;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"coursePin\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"validDate\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentCoursePin\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"currentCoursePinDate\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"displayedCoursePinDate\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"errorMessage\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"lastCoursePin\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return this.coursePin;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasPin\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasError\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"openCoursePinEditor\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"openCoursePinEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeCoursePinEditor\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"closeCoursePinEditor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDateManually\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"setDateManually\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setDateFromPicker\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"setDateFromPicker\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCoursePin\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"setCoursePin\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteCoursePin\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteCoursePin\"), _class.prototype)), _class));\n _exports.default = CoursePin;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CoursePin);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-answer-target-preview\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n
\n {{#if this.isDistractorAnswer}}\n

Distractor

\n {{else}}\n {{#if this.matchHasMediaAssets}}\n {{#each this.match.mediaAssets as |asset|}}\n
\n {{#if asset.isImage}}\n \"{{asset.altText}}\"/\n {{/if}}\n {{#if asset.isAudio}}\n \n {{/if}}\n
\n {{/each}}\n {{else}}\n {{sanitize-and-escape this.match.body}}\n {{/if}}\n {{/if}}\n
\n \n \n \n */\n {\n id: \"GCJYVpBL\",\n block: \"{\\\"symbols\\\":[\\\"asset\\\",\\\"@answer\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"actionable\\\"],[3,\\\"on\\\",[\\\"mouseenter\\\",[23,0,[\\\"onMouseEnter\\\"]]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,0,[\\\"onMouseLeave\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onClick\\\"]]]],[8],[0,\\\"\\\\n \\\"],[5,\\\"pop-over\\\",[],[[\\\"@classNames\\\",\\\"@position\\\",\\\"@centerOverride\\\",\\\"@positionTopOffset\\\"],[\\\"app-answer-editor pop-over--remove-paragraph-padding\\\",[23,2,[\\\"centroid\\\"]],true,10]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-drag-and-drop-answer-preview creator-drag-and-drop__dot-preview\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDistractorAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"pop-over__text--italic\\\"],[8],[0,\\\"Distractor\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"matchHasMediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"match\\\",\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-answer__media-asset\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[10,\\\"class\\\",\\\"app-image creator-drag-and-drop__preview-answer-image\\\"],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,0,[\\\"match\\\",\\\"body\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-answer-target-preview.hbs\"\n }\n });\n\n var CreatorAnswerTargetPreview = (_dec = Ember.inject.service, _dec2 = Ember.computed.alias('args.answer.distractor'), _dec3 = Ember.computed.alias('args.answer.answer'), _dec4 = Ember.computed.notEmpty('match.mediaAssets'), _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorAnswerTargetPreview, _Component);\n\n var _super = _createSuper(CreatorAnswerTargetPreview);\n\n function CreatorAnswerTargetPreview(owner, args) {\n var _this;\n\n _classCallCheck(this, CreatorAnswerTargetPreview);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDistractorAnswer\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"match\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"matchHasMediaAssets\", _descriptor4, _assertThisInitialized(_this));\n\n _this.mathjaxManager.updateFormulas();\n\n return _this;\n }\n\n _createClass(CreatorAnswerTargetPreview, [{\n key: \"onMouseEnter\",\n value: function onMouseEnter() {\n this.args.onHover();\n }\n }, {\n key: \"onMouseLeave\",\n value: function onMouseLeave() {\n this.args.onHoverOut();\n }\n }, {\n key: \"onClick\",\n value: function onClick() {\n this.args.clickAnswer(this.args.answer);\n }\n }]);\n\n return CreatorAnswerTargetPreview;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isDistractorAnswer\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"match\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"matchHasMediaAssets\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"onMouseEnter\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"onMouseEnter\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onMouseLeave\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onMouseLeave\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype)), _class));\n _exports.default = CreatorAnswerTargetPreview;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorAnswerTargetPreview);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-dnd-answer-target\", [\"exports\", \"jquery\", \"@glimmer/component\", \"student-app/utils/drop-target-geometry\", \"student-app/api-requests/update-answer-request\", \"student-app/models/answer-segment\"], function (_exports, _jquery, _component, _dropTargetGeometry, _updateAnswerRequest, _answerSegment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/runloop\",0,\"jquery\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"student-app/utils/drop-target-geometry\",0,\"student-app/api-requests/update-answer-request\",0,\"student-app/models/answer-segment\"eaimeta@70e063a35619d71f\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\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\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n {{#if this.hasCallout}}\n \n \n \n {{/if}}\n \n {{#if (eq this.targetComponentName \"creator-drag-and-drop-rectangle\")}}\n \n {{else if (eq this.targetComponentName \"creator-drag-and-drop-oval\")}}\n \n {{else if (eq this.targetComponentName \"creator-drag-and-drop-polygon\")}}\n \n {{else if (eq this.targetComponentName \"creator-drag-and-drop-dot\")}}\n \n {{/if}}\n \n */\n {\n id: \"KPiiFCBa\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@onFinish\\\",\\\"@dropTargets\\\",\\\"@isLocked\\\",\\\"@beginCalloutDrag\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"hasCallout\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"line\\\",true],[11,\\\"class\\\",[29,[\\\"creator-drag-and-drop__target-closed-region-svg \\\",[28,\\\"if\\\",[[23,0,[\\\"isEditingCallout\\\"]],\\\"creator-drag-and-drop__svg--editing\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__target-closed-region-svg--error\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isHighlighted\\\"]],\\\"creator-drag-and-drop__target-closed-region-svg--highlighted\\\"],null]]]],[11,\\\"x1\\\",[23,0,[\\\"calloutX1\\\"]]],[11,\\\"x2\\\",[23,0,[\\\"calloutX2\\\"]]],[11,\\\"y1\\\",[23,0,[\\\"calloutY1\\\"]]],[11,\\\"y2\\\",[23,0,[\\\"calloutY2\\\"]]],[8],[9],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"creator-dnd-callout-dot\\\",[],[[\\\"@answer\\\",\\\"@dropTargets\\\",\\\"@isLocked\\\",\\\"@clickAction\\\",\\\"@isCalloutMode\\\",\\\"@isHighlighted\\\",\\\"@isEditingCallout\\\",\\\"@beginCalloutDrag\\\"],[[23,1,[]],[23,5,[]],[23,6,[]],[23,0,[\\\"clickCallout\\\"]],[23,0,[\\\"isCalloutMode\\\"]],[23,0,[\\\"isHighlighted\\\"]],[23,0,[\\\"isEditingCallout\\\"]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"targetComponentName\\\"]],\\\"creator-drag-and-drop-rectangle\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"creator-drag-and-drop-rectangle\\\",[],[[\\\"@answer\\\",\\\"@isHighlighted\\\",\\\"@isEditingCallout\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@handleMouseDown\\\",\\\"@clickAnswer\\\"],[[23,1,[]],[23,0,[\\\"isHighlighted\\\"]],[23,0,[\\\"isEditingCallout\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"handleMouseDown\\\"]],[23,0,[\\\"clickAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"targetComponentName\\\"]],\\\"creator-drag-and-drop-oval\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"creator-drag-and-drop-oval\\\",[],[[\\\"@answer\\\",\\\"@isHighlighted\\\",\\\"@isEditingCallout\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@handleMouseDown\\\",\\\"@clickAnswer\\\"],[[23,1,[]],[23,0,[\\\"isHighlighted\\\"]],[23,0,[\\\"isEditingCallout\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"handleMouseDown\\\"]],[23,0,[\\\"clickAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"targetComponentName\\\"]],\\\"creator-drag-and-drop-polygon\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"creator-drag-and-drop-polygon\\\",[],[[\\\"@answer\\\",\\\"@isHighlighted\\\",\\\"@isEditingCallout\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@handleMouseDown\\\",\\\"@clickAnswer\\\",\\\"@onFinish\\\"],[[23,1,[]],[23,0,[\\\"isHighlighted\\\"]],[23,0,[\\\"isEditingCallout\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"handleMouseDown\\\"]],[23,0,[\\\"clickAnswer\\\"]],[23,4,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[28,\\\"eq\\\",[[23,0,[\\\"targetComponentName\\\"]],\\\"creator-drag-and-drop-dot\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"creator-drag-and-drop-dot\\\",[],[[\\\"@answer\\\",\\\"@isHighlighted\\\",\\\"@isEditingCallout\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@handleMouseDown\\\",\\\"@clickAnswer\\\"],[[23,1,[]],[23,0,[\\\"isHighlighted\\\"]],[23,0,[\\\"isEditingCallout\\\"]],[23,2,[]],[23,3,[]],[23,0,[\\\"handleMouseDown\\\"]],[23,0,[\\\"clickAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-dnd-answer-target.hbs\"\n }\n });\n\n function offsetSegments(segs, dx, dy) {\n return segs.map(function (seg) {\n return new _answerSegment.default({\n id: seg.id,\n x1: seg.x1 - dx,\n x2: seg.x2 - dx,\n y1: seg.y1 - dy,\n y2: seg.y2 - dy\n });\n });\n }\n\n var CreatorDndAnswerTarget = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember.computed.readOnly('args.answer.isOverlapping'), _dec6 = Ember.computed('args.{targetCreateModes,currentMode}'), _dec7 = Ember.computed.or('args.answer.callout', 'args.answer.activeCallout'), _dec8 = Ember.computed('isCalloutMode', 'args.{answer.activeCallout,currentHoveredAnswer}'), _dec9 = Ember.computed.readOnly('calloutIntersection.firstObject'), _dec10 = Ember.computed.readOnly('calloutIntersection.lastObject'), _dec11 = Ember.computed('args.answer.centroid', 'calloutX2', 'calloutY2'), _dec12 = Ember.computed('answerCallout.firstObject'), _dec13 = Ember.computed('answerCallout.lastObject'), _dec14 = Ember.computed.notEmpty('answerCallout'), _dec15 = Ember.computed.alias('args.answer.distractor'), _dec16 = Ember.computed('args.{answer.answer.id,editingAnswer.answer.id}'), _dec17 = Ember.computed.alias('args.answer.answer'), _dec18 = Ember.computed.alias('args.answer.answerMetadata'), _dec19 = Ember.computed('args.answer.collisionType'), _dec20 = Ember.computed.empty('args.answer.answerMetadata.callout'), _dec21 = Ember.computed.and('isCalloutMode', 'hasNoCallout'), _dec22 = Ember.computed('originalPosition.[]', 'args.answer.answerMetadata.position.[]'), _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorDndAnswerTarget, _Component);\n\n var _super = _createSuper(CreatorDndAnswerTarget);\n\n function CreatorDndAnswerTarget(owner, args) {\n var _this;\n\n _classCallCheck(this, CreatorDndAnswerTarget);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"flashService\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDragging\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"originalPosition\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerCallout\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"calloutX1\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"calloutY1\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasCallout\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDistractorAnswer\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"match\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerMetadata\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasNoCallout\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canCreateCallout\", _descriptor14, _assertThisInitialized(_this));\n\n var id = _this.args.answer.id;\n (0, _jquery.default)(document).on(\"mouseup.\".concat(id), function () {\n Ember.run(function () {\n if (_this.args.isLocked || !_this.isDragging) {\n return;\n }\n\n _this.endRepositionAnswer();\n });\n });\n (0, _jquery.default)(document).on(\"mousemove.\".concat(id), function (e) {\n Ember.run(function () {\n if (_this.args.isLocked || !_this.isDragging) {\n return;\n }\n\n _this.repositionAnswer(e);\n });\n });\n return _this;\n }\n\n _createClass(CreatorDndAnswerTarget, [{\n key: \"isCalloutMode\",\n get: function get() {\n return this.args.targetCreateModes.callout === this.args.currentMode;\n }\n }, {\n key: \"isEditingCallout\",\n get: function get() {\n return !Ember.isEmpty(this.args.answer.activeCallout) || this.isCalloutMode && Ember.isEmpty(this.args.answer.callout) && this.args.currentHoveredAnswer === this.args.answer;\n }\n }, {\n key: \"calloutIntersection\",\n get: function get() {\n return (0, _dropTargetGeometry.nearestIntersection)(this.args.answer.centroid, [this.calloutX2, this.calloutY2], this.args.answer);\n }\n }, {\n key: \"calloutX2\",\n get: function get() {\n return parseInt(this.answerCallout.firstObject, 10);\n }\n }, {\n key: \"calloutY2\",\n get: function get() {\n return parseInt(this.answerCallout.lastObject, 10);\n }\n }, {\n key: \"isHighlighted\",\n get: function get() {\n var _this$args$editingAns, _this$args$answer$ans, _this$args$answer$ans2, _this$args$editingAns2, _this$args$editingAns3;\n\n return this.args.answer.id === ((_this$args$editingAns = this.args.editingAnswer) === null || _this$args$editingAns === void 0 ? void 0 : _this$args$editingAns.id) || ((_this$args$answer$ans = this.args.answer.answer) === null || _this$args$answer$ans === void 0 ? void 0 : _this$args$answer$ans.id) && ((_this$args$answer$ans2 = this.args.answer.answer) === null || _this$args$answer$ans2 === void 0 ? void 0 : _this$args$answer$ans2.id) === ((_this$args$editingAns2 = this.args.editingAnswer) === null || _this$args$editingAns2 === void 0 ? void 0 : (_this$args$editingAns3 = _this$args$editingAns2.answer) === null || _this$args$editingAns3 === void 0 ? void 0 : _this$args$editingAns3.id);\n }\n }, {\n key: \"moveAnswer\",\n value: function moveAnswer(container, answer, dx, dy) {\n if (answer.collisionType === 'polygon') {\n var segs = offsetSegments(answer.segments, dx, dy);\n answer.segments = segs;\n answer.answerMetadata.position = [segs[0].x1, segs[0].y1];\n } else {\n var x = answer.metaPosition[0] - dx;\n var y = answer.metaPosition[1] - dy;\n\n if (x < 0) {\n x = 0;\n }\n\n if (y < 0) {\n y = 0;\n }\n\n if (x > container.width()) {\n x = container.width();\n }\n\n if (y > container.height()) {\n y = container.height();\n }\n\n answer.answerMetadata.position = [x, y];\n }\n\n var wouldOverlap = this.args.dropTargets.without(answer).any(function (dt) {\n return (0, _dropTargetGeometry.answersOverlap)(answer, dt);\n });\n answer.isOverlapping = wouldOverlap;\n }\n }, {\n key: \"repositionAnswer\",\n value: function repositionAnswer(event) {\n if (this.args.isLocked) {\n return;\n }\n\n var answer = this.args.answer;\n var container = (0, _jquery.default)('.creator-drag-and-drop__target-container');\n var offset = container.offset();\n var pageX = event.originalEvent.pageX;\n var pageY = event.originalEvent.pageY;\n var x = pageX - offset.left;\n var y = pageY - offset.top;\n x = Math.max(Math.min(x, container.width()), 0);\n y = Math.max(Math.min(y, container.height()), 0);\n var centroid = answer.centroid;\n var dx = centroid[0] - x;\n var dy = centroid[1] - y;\n this.moveAnswer(container, answer, dx, dy);\n }\n }, {\n key: \"endRepositionAnswer\",\n value: function () {\n var _endRepositionAnswer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var answer, container, _this$originalPositio, origX, origY, dx, dy, updateAnswerRequest;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n answer = this.args.answer;\n\n if (!answer.isOverlapping) {\n _context.next = 9;\n break;\n }\n\n container = (0, _jquery.default)('.creator-drag-and-drop__target-container');\n _this$originalPositio = _slicedToArray(this.originalPosition, 2), origX = _this$originalPositio[0], origY = _this$originalPositio[1];\n dx = answer.x - origX;\n dy = answer.y - origY;\n this.moveAnswer(container, answer, dx, dy);\n _context.next = 19;\n break;\n\n case 9:\n if (this.hasNotMoved) {\n _context.next = 19;\n break;\n }\n\n _context.prev = 10;\n updateAnswerRequest = (0, _updateAnswerRequest.convertAnswerToUpdateAnswerRequest)(answer);\n _context.next = 14;\n return this.apiClient.post('answers/update', updateAnswerRequest);\n\n case 14:\n _context.next = 19;\n break;\n\n case 16:\n _context.prev = 16;\n _context.t0 = _context[\"catch\"](10);\n this.flashService.error('Error: Could not reposition answer.', _context.t0);\n\n case 19:\n this.isDragging = false;\n this.args.onDragEnd();\n\n case 21:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[10, 16]]);\n }));\n\n function endRepositionAnswer() {\n return _endRepositionAnswer.apply(this, arguments);\n }\n\n return endRepositionAnswer;\n }()\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(CreatorDndAnswerTarget.prototype), \"willDestroy\", this).apply(this, arguments);\n\n var id = this.args.answer.id;\n (0, _jquery.default)(document).off(\"mouseup.\".concat(id));\n (0, _jquery.default)(document).off(\"mousemove.\".concat(id));\n }\n }, {\n key: \"targetComponentName\",\n get: function get() {\n return \"creator-drag-and-drop-\".concat(this.args.answer.collisionType);\n }\n }, {\n key: \"hasNotMoved\",\n get: function get() {\n if (Ember.isEmpty(this.originalPosition)) {\n return false;\n }\n\n var _this$originalPositio2 = _slicedToArray(this.originalPosition, 2),\n x1 = _this$originalPositio2[0],\n y1 = _this$originalPositio2[1];\n\n var _this$args$answer$ans3 = _slicedToArray(this.args.answer.answerMetadata.position, 2),\n x2 = _this$args$answer$ans3[0],\n y2 = _this$args$answer$ans3[1];\n\n return x1 === x2 && y1 === y2;\n }\n }, {\n key: \"clickCallout\",\n value: function clickCallout() {\n this.args.clickCallout(this.args.answer);\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n // Prevent Default is required for Firefox to allow other\n // events to propagate through, such as mousemove\n event.preventDefault();\n\n if (this.args.isLocked || this.args.disableDrag) {\n return;\n }\n\n var _this$args$answer$ans4 = _slicedToArray(this.args.answer.answerMetadata.position, 2),\n x = _this$args$answer$ans4[0],\n y = _this$args$answer$ans4[1];\n\n this.isDragging = true;\n this.originalPosition = [x, y]; // don't want this modified\n\n this.args.onDragStart();\n }\n }, {\n key: \"clickAnswer\",\n value: function clickAnswer(event) {\n if (this.args.isLocked) {\n return;\n } // Stop event from propagating to the addPoint action\n\n\n event.stopPropagation();\n\n if (this.hasNotMoved || this.canCreateCallout && this.hasNotMoved) {\n this.args.clickAnswer(this.args.answer);\n this.originalPosition = null;\n }\n }\n }]);\n\n return CreatorDndAnswerTarget;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"flashService\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"originalPosition\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"isCalloutMode\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"isCalloutMode\"), _class.prototype), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"answerCallout\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"isEditingCallout\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"isEditingCallout\"), _class.prototype), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"calloutX1\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"calloutY1\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"calloutIntersection\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"calloutIntersection\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calloutX2\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"calloutX2\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calloutY2\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"calloutY2\"), _class.prototype), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasCallout\", [_dec14], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isDistractorAnswer\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"isHighlighted\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"isHighlighted\"), _class.prototype), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"match\", [_dec17], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"answerMetadata\", [_dec18], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"targetComponentName\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"targetComponentName\"), _class.prototype), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"hasNoCallout\", [_dec20], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"canCreateCallout\", [_dec21], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"hasNotMoved\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"hasNotMoved\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clickCallout\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"clickCallout\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"clickAnswer\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"clickAnswer\"), _class.prototype)), _class));\n _exports.default = CreatorDndAnswerTarget;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorDndAnswerTarget);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-dnd-callout-dot\", [\"exports\", \"jquery\", \"@glimmer/component\", \"student-app/utils/drop-target-geometry\"], function (_exports, _jquery, _component, _dropTargetGeometry) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"jquery\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"student-app/utils/drop-target-geometry\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"Nt/pBfxJ\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\",\\\"@isHighlighted\\\",\\\"@isEditingCallout\\\",\\\"@isCalloutMode\\\"],\\\"statements\\\":[[7,\\\"circle\\\",false],[12,\\\"cx\\\",[23,0,[\\\"cx\\\"]]],[12,\\\"cy\\\",[23,0,[\\\"cy\\\"]]],[12,\\\"r\\\",[23,0,[\\\"r\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"creator-drag-and-drop__target-dot-svg app-dnd-callout \\\",[28,\\\"if\\\",[[23,4,[]],\\\"draggable-object\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"creator-drag-and-drop__dot-svg--editing\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"creator-drag-and-drop__target-closed-region-svg--highlighted\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__target-dot-svg--error\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertComponent\\\"]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-dnd-callout-dot.hbs\"\n }\n });\n\n var CreatorDndCalloutDot = (_dec = Ember.computed.readOnly('args.answer.callout'), _dec2 = Ember.computed.readOnly('currentPosition.firstObject'), _dec3 = Ember.computed.readOnly('currentPosition.lastObject'), _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed.or('args.answer.callout', 'args.answer.activeCallout'), _dec8 = Ember.computed.notEmpty('args.answer.callout'), _dec9 = Ember.computed.alias('args.answer.isOverlapping'), _dec10 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorDndCalloutDot, _Component);\n\n var _super = _createSuper(CreatorDndCalloutDot);\n\n function CreatorDndCalloutDot() {\n var _this;\n\n _classCallCheck(this, CreatorDndCalloutDot);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"callout\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cx\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cy\", _descriptor3, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"r\", 8);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDragging\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"initialPosition\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currentPosition\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasSetPosition\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor9, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CreatorDndCalloutDot, [{\n key: \"checkOverlapping\",\n value: function checkOverlapping() {\n if (this.isOverlapping) {\n // Check to see if this is a new callout\n if (Ember.isEmpty(this.initialPosition)) {\n // This will essentially delete the callout\n this.args.answer.activeCallout = null;\n this.args.answer.callout = null;\n } else {\n // Checks to see if this was an existing callout\n this.args.answer.activeCallout = this.initialPosition;\n this.initialPosition = null;\n }\n\n this.isOverlapping = false;\n }\n }\n }, {\n key: \"didInsertComponent\",\n value: function didInsertComponent(element) {\n var _this2 = this;\n\n if (this.args.isLocked) {\n return;\n }\n\n element.addEventListener('click', function () {\n if (_this2.hasSetPosition && !_this2.isDragging) {\n return;\n }\n\n _this2.checkOverlapping();\n\n _this2.args.clickAction(_this2.args.answer);\n });\n element.addEventListener('mousedown', function (evt) {\n if (evt.button !== 0) {\n return;\n }\n\n if (!_this2.hasSetPosition) {\n return;\n }\n\n _this2.isDragging = true;\n _this2.initialPosition = _this2.args.answer.callout;\n var calloutPos = _this2.args.answer.callout;\n _this2.args.answer.activeCallout = calloutPos;\n _this2.args.answer.callout = null;\n\n _this2.args.beginCalloutDrag(_this2.args.answer);\n });\n (0, _jquery.default)(document).on(\"mouseup.\".concat(this.args.answer.id), function () {\n if (_this2.isDragging) {\n _this2.isDragging = false;\n\n _this2.checkOverlapping();\n\n _this2.args.clickAction(_this2.args.answer);\n }\n }).on(\"mousemove.\".concat(this.args.answer.id), function (event) {\n if (Ember.isEmpty(_this2.args.answer.activeCallout)) {\n return;\n }\n\n var bgImg = (0, _jquery.default)('.creator-drag-and-drop__target-container');\n var bgImgPos = bgImg.offset();\n var x = Math.min(Math.max(event.pageX - bgImgPos.left, 0), bgImg.width());\n var y = Math.min(Math.max(event.pageY - bgImgPos.top, 0), bgImg.height());\n _this2.args.answer.activeCallout = [x, y];\n var answer = _this2.args.answer;\n\n var wouldOverlap = _this2.args.dropTargets.any(function (dt) {\n return (0, _dropTargetGeometry.answersOverlap)(answer, dt);\n });\n\n answer.isOverlapping = wouldOverlap;\n });\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(CreatorDndCalloutDot.prototype), \"willDestroy\", this).apply(this, arguments);\n\n (0, _jquery.default)(document).off(\"mouseup.\".concat(this.args.answer.id));\n (0, _jquery.default)(document).off(\"mousemove.\".concat(this.args.answer.id));\n }\n }]);\n\n return CreatorDndCalloutDot;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"callout\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cx\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"cy\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"initialPosition\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"currentPosition\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasSetPosition\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"didInsertComponent\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertComponent\"), _class.prototype)), _class));\n _exports.default = CreatorDndCalloutDot;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorDndCalloutDot);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-drag-and-drop-dot\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"@ember/object/internals\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"joXbK4tw\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\",\\\"@isEditingCallout\\\",\\\"@isHighlighted\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@clickAnswer\\\"],\\\"statements\\\":[[7,\\\"circle\\\",false],[12,\\\"aria-label\\\",\\\"target dot\\\"],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"cx\\\",[23,0,[\\\"cx\\\"]]],[12,\\\"cy\\\",[23,0,[\\\"cy\\\"]]],[12,\\\"r\\\",[23,0,[\\\"r\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"creator-drag-and-drop__target-dot-svg actionable app-dnd-target app-dot-target \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__target-closed-region-svg--error\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"creator-drag-and-drop__target-closed-region-svg--highlighted\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"creator-drag-and-drop__target-closed-region-svg--editing app-dnd-highlighted\\\"],null]]]],[3,\\\"on\\\",[\\\"mouseenter\\\",[28,\\\"fn\\\",[[23,4,[]],[23,1,[]]],null]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,5,[]]]],[3,\\\"on\\\",[\\\"mousedown\\\",[23,0,[\\\"handleMouseDown\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,6,[]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-drag-and-drop-dot.hbs\"\n }\n });\n\n var CreatorDragAndDropDot = (_dec = Ember.computed.alias('args.answer.x'), _dec2 = Ember.computed.alias('args.answer.y'), _dec3 = Ember.computed('hasCallout', 'args.isEditingCallout'), _dec4 = Ember.computed.readOnly('args.answer.isOverlapping'), _dec5 = Ember.computed.or('args.answer.answerMetadata.callout', 'answer.answerMetadata.activeCallout'), _dec6 = Ember.computed.notEmpty('callout'), _dec7 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorDragAndDropDot, _Component);\n\n var _super = _createSuper(CreatorDragAndDropDot);\n\n function CreatorDragAndDropDot() {\n var _this;\n\n _classCallCheck(this, CreatorDragAndDropDot);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cx\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cy\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"callout\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasCallout\", _descriptor5, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"id\", Ember.guidFor(_assertThisInitialized(_this)));\n\n return _this;\n }\n\n _createClass(CreatorDragAndDropDot, [{\n key: \"r\",\n get: function get() {\n if (this.hasCallout && !this.args.isEditingCallout) {\n return 4;\n } else {\n return 8;\n }\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (event.button !== 0) {\n return;\n }\n\n this.args.handleMouseDown(event);\n }\n }]);\n\n return CreatorDragAndDropDot;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"cx\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cy\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"r\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"r\"), _class.prototype), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"callout\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"hasCallout\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype)), _class));\n _exports.default = CreatorDragAndDropDot;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorDragAndDropDot);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-drag-and-drop-oval\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/object/internals\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"0TcmkMDE\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\",\\\"@isEditingCallout\\\",\\\"@isHighlighted\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@clickAnswer\\\"],\\\"statements\\\":[[7,\\\"ellipse\\\",false],[12,\\\"aria-label\\\",\\\"ellipse region\\\"],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"cx\\\",[23,0,[\\\"cx\\\"]]],[12,\\\"cy\\\",[23,0,[\\\"cy\\\"]]],[12,\\\"rx\\\",[23,0,[\\\"rx\\\"]]],[12,\\\"ry\\\",[23,0,[\\\"ry\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"creator-drag-and-drop__target-closed-region-svg actionable app-dnd-target app-oval-region \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__target-closed-region-svg--error\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"creator-drag-and-drop__target-closed-region-svg--highlighted\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"creator-drag-and-drop__target-closed-region-svg--editing app-dnd-highlighted\\\"],null]]]],[3,\\\"on\\\",[\\\"mouseenter\\\",[28,\\\"fn\\\",[[23,4,[]],[23,1,[]]],null]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,5,[]]]],[3,\\\"on\\\",[\\\"mousedown\\\",[23,0,[\\\"handleMouseDown\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,6,[]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-drag-and-drop-oval.hbs\"\n }\n });\n\n var CreatorDragAndDropOval = (_dec = Ember.computed.alias('args.answer.x'), _dec2 = Ember.computed.alias('args.answer.y'), _dec3 = Ember.computed.readOnly('args.answer.rx'), _dec4 = Ember.computed.readOnly('args.answer.ry'), _dec5 = Ember.computed.readOnly('args.answer.isOverlapping'), _dec6 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorDragAndDropOval, _Component);\n\n var _super = _createSuper(CreatorDragAndDropOval);\n\n function CreatorDragAndDropOval() {\n var _this;\n\n _classCallCheck(this, CreatorDragAndDropOval);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cx\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cy\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"rx\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"ry\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor5, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"id\", Ember.guidFor(_assertThisInitialized(_this)));\n\n return _this;\n }\n\n _createClass(CreatorDragAndDropOval, [{\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (event.button !== 0) {\n return;\n }\n\n this.args.handleMouseDown(event);\n }\n }]);\n\n return CreatorDragAndDropOval;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"cx\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cy\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rx\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"ry\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype)), _class));\n _exports.default = CreatorDragAndDropOval;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorDragAndDropOval);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-drag-and-drop-polygon\", [\"exports\", \"@glimmer/component\", \"student-app/models/answer-segment\"], function (_exports, _component, _answerSegment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"@ember/object/internals\",0,\"student-app/models/answer-segment\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n {{#if this.isCompletedPolygon}}\n \n {{else}}\n {{#each this.segments as |segment|}}\n \n {{/each}}\n \n \n \n {{/if}}\n \n */\n {\n id: \"pdQ9PXxR\",\n block: \"{\\\"symbols\\\":[\\\"segment\\\",\\\"@isEditingCallout\\\",\\\"@isHighlighted\\\",\\\"@answer\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@clickAnswer\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isCompletedPolygon\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"polygon\\\",false],[12,\\\"aria-label\\\",\\\"polygon region\\\"],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"data-answer-id\\\",[23,0,[\\\"answerId\\\"]]],[12,\\\"class\\\",[29,[\\\"app-polygon-region creator-drag-and-drop__target-closed-region-svg \\\",[28,\\\"if\\\",[[23,3,[]],\\\"creator-drag-and-drop__target-closed-region-svg--highlighted\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__target-closed-region-svg--error\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"creator-drag-and-drop__target-closed-region-svg--editing app-dnd-highlighted\\\"],null]]]],[12,\\\"points\\\",[23,0,[\\\"polygonPoints\\\"]]],[3,\\\"on\\\",[\\\"mouseenter\\\",[28,\\\"fn\\\",[[23,5,[]],[23,4,[]]],null]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,6,[]]]],[3,\\\"on\\\",[\\\"mousedown\\\",[23,0,[\\\"handleMouseDown\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,7,[]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"segments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"line\\\",true],[10,\\\"class\\\",\\\"creator-drag-and-drop__target-closed-region-svg\\\"],[11,\\\"x1\\\",[23,1,[\\\"x1\\\"]]],[11,\\\"y1\\\",[23,1,[\\\"y1\\\"]]],[11,\\\"x2\\\",[23,1,[\\\"x2\\\"]]],[11,\\\"y2\\\",[23,1,[\\\"y2\\\"]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n \\\"],[7,\\\"line\\\",true],[11,\\\"class\\\",[29,[\\\"creator-drag-and-drop__target-closed-region-svg \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__invalid-line-svg\\\"],null]]]],[11,\\\"x1\\\",[23,0,[\\\"activeSegment\\\",\\\"x1\\\"]]],[11,\\\"y1\\\",[23,0,[\\\"activeSegment\\\",\\\"y1\\\"]]],[11,\\\"x2\\\",[23,0,[\\\"shorterSegment\\\",\\\"x2\\\"]]],[11,\\\"y2\\\",[23,0,[\\\"shorterSegment\\\",\\\"y2\\\"]]],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"circle\\\",false],[12,\\\"aria-label\\\",\\\"starting dot\\\"],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"cx\\\",[23,0,[\\\"x\\\"]]],[12,\\\"cy\\\",[23,0,[\\\"y\\\"]]],[12,\\\"r\\\",\\\"8\\\"],[12,\\\"class\\\",\\\"app-initial-polygon-point creator-drag-and-drop__target-dot-svg\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"finishPolygonCreation\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-drag-and-drop-polygon.hbs\"\n }\n });\n\n var CreatorDragAndDropPolygon = (_dec = Ember.computed.readOnly('args.answer.x'), _dec2 = Ember.computed.readOnly('args.answer.y'), _dec3 = Ember.computed.readOnly('args.answer.segments'), _dec4 = Ember.computed.readOnly('args.answer.activeSegment'), _dec5 = Ember.computed.readOnly('args.answer.isCompletedPolygon'), _dec6 = Ember.computed.readOnly('args.answer.isOverlapping'), _dec7 = Ember.computed.readOnly('args.answer.id'), _dec8 = Ember.computed('segments.[]'), _dec9 = Ember.computed('activeSegment.{x1,y1,x2,y2}'), _dec10 = Ember._action, _dec11 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorDragAndDropPolygon, _Component);\n\n var _super = _createSuper(CreatorDragAndDropPolygon);\n\n function CreatorDragAndDropPolygon() {\n var _this;\n\n _classCallCheck(this, CreatorDragAndDropPolygon);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"x\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"y\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"segments\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"activeSegment\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isCompletedPolygon\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerId\", _descriptor7, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"id\", Ember.guidFor(_assertThisInitialized(_this)));\n\n return _this;\n }\n\n _createClass(CreatorDragAndDropPolygon, [{\n key: \"polygonPoints\",\n get: function get() {\n return this.segments.reduce(function (agg, seg) {\n return \"\".concat(agg, \" \").concat(seg.x2, \",\").concat(seg.y2);\n }, '');\n }\n }, {\n key: \"shorterSegment\",\n get: function get() {\n var offset = 2;\n var activeSegment = this.activeSegment;\n var x1 = activeSegment.x1;\n var y1 = activeSegment.y1;\n var x2 = activeSegment.x2;\n var y2 = activeSegment.y2;\n var dX = x2 - x1;\n var dY = y2 - y1;\n var d = Math.sqrt(dX * dX + dY * dY);\n\n if (d > 0) {\n var scale = (d - offset) / d;\n x2 = x1 + dX * scale;\n y2 = y1 + dY * scale;\n }\n\n return new _answerSegment.default({\n x1: x1,\n y1: y1,\n x2: x2,\n y2: y2\n });\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (event.button !== 0) {\n return;\n }\n\n this.args.handleMouseDown(event);\n }\n }, {\n key: \"finishPolygonCreation\",\n value: function finishPolygonCreation() {\n this.args.onFinish();\n }\n }]);\n\n return CreatorDragAndDropPolygon;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"x\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"y\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"segments\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"activeSegment\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isCompletedPolygon\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"answerId\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"polygonPoints\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"polygonPoints\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"shorterSegment\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"shorterSegment\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"finishPolygonCreation\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"finishPolygonCreation\"), _class.prototype)), _class));\n _exports.default = CreatorDragAndDropPolygon;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorDragAndDropPolygon);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-drag-and-drop-rectangle\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"@ember/object\",0,\"@ember/object/internals\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"OP/GHBRQ\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\",\\\"@isEditingCallout\\\",\\\"@isHighlighted\\\",\\\"@onHover\\\",\\\"@onHoverOut\\\",\\\"@clickAnswer\\\"],\\\"statements\\\":[[7,\\\"rect\\\",false],[12,\\\"aria-label\\\",\\\"rectangle region\\\"],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"x\\\",[23,0,[\\\"x\\\"]]],[12,\\\"y\\\",[23,0,[\\\"y\\\"]]],[12,\\\"width\\\",[23,0,[\\\"width\\\"]]],[12,\\\"height\\\",[23,0,[\\\"height\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"creator-drag-and-drop__target-closed-region-svg actionable app-dnd-target app-rectangle-region \\\",[28,\\\"if\\\",[[23,0,[\\\"isOverlapping\\\"]],\\\"creator-drag-and-drop__target-closed-region-svg--error\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,3,[]],\\\"creator-drag-and-drop__target-closed-region-svg--highlighted\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"creator-drag-and-drop__target-closed-region-svg--editing app-dnd-highlighted\\\"],null]]]],[3,\\\"on\\\",[\\\"mouseenter\\\",[28,\\\"fn\\\",[[23,4,[]],[23,1,[]]],null]]],[3,\\\"on\\\",[\\\"mouseleave\\\",[23,5,[]]]],[3,\\\"on\\\",[\\\"mousedown\\\",[23,0,[\\\"handleMouseDown\\\"]]]],[3,\\\"on\\\",[\\\"click\\\",[23,6,[]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-drag-and-drop-rectangle.hbs\"\n }\n });\n\n var CreatorDragAndDropRectangle = (_dec = Ember.computed.readOnly('args.answer.x'), _dec2 = Ember.computed.readOnly('args.answer.y'), _dec3 = Ember.computed.readOnly('args.answer.answerMetadata'), _dec4 = Ember.computed.readOnly('meta.width'), _dec5 = Ember.computed.readOnly('meta.height'), _dec6 = Ember.computed.readOnly('args.answer.isOverlapping'), _dec7 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorDragAndDropRectangle, _Component);\n\n var _super = _createSuper(CreatorDragAndDropRectangle);\n\n function CreatorDragAndDropRectangle() {\n var _this;\n\n _classCallCheck(this, CreatorDragAndDropRectangle);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"x\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"y\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"meta\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"width\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"height\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOverlapping\", _descriptor6, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"id\", Ember.guidFor(_assertThisInitialized(_this)));\n\n return _this;\n }\n\n _createClass(CreatorDragAndDropRectangle, [{\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (event.button !== 0) {\n return;\n }\n\n this.args.handleMouseDown(event);\n }\n }]);\n\n return CreatorDragAndDropRectangle;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"x\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"y\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"meta\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"width\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"height\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"isOverlapping\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"handleMouseDown\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"handleMouseDown\"), _class.prototype)), _class));\n _exports.default = CreatorDragAndDropRectangle;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorDragAndDropRectangle);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/creator-matching-answer\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n {{#if this.hasAnswerBody}}\n {{sanitize-and-escape @answer.body}}\n {{/if}}\n
    \n {{#each @answer.mediaAssets as |mediaAsset|}}\n {{#if mediaAsset.isImage}}\n
  • \n \"{{mediaAsset.altText}}\"/\n
  • \n {{/if}}\n {{#if mediaAsset.isAudio}}\n
  • \n \n
  • \n {{/if}}\n {{/each}}\n
\n
\n \n
\n \n \n \n \n
\n \n {{#if this.showDisconnectButton}}\n \n \n {{/if}}\n
\n \n */\n {\n id: \"MPfyQD+8\",\n block: \"{\\\"symbols\\\":[\\\"mediaAsset\\\",\\\"@answer\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"matching-container\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[29,[\\\"app-answer card card--edit-matching \\\",[23,0,[\\\"elementClasses\\\"]]]]],[12,\\\"data-answer-id\\\",[29,[[23,2,[\\\"id\\\"]]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"handleSelect\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasAnswerBody\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"card-answer-body \\\",[28,\\\"if\\\",[[23,0,[\\\"hasMediaAssets\\\"]],\\\"card-answer-body-with-media-assets\\\"],null]]]],[8],[1,[28,\\\"sanitize-and-escape\\\",[[23,2,[\\\"body\\\"]]],null],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"media-assets-display media-assets-display-for-answer\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-media-image media-asset-display\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"card__media-image\\\"],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-media-audio media-asset-display\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\",\\\"@canEdit\\\"],[[23,1,[]],true]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"card__controls\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"tile tile--transparent\\\"],[8],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon icon-updown icon--translucent\\\"],[8],[9],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"aria-label\\\",\\\"edit answer\\\"],[12,\\\"class\\\",\\\"app-edit tile cursor-pointer\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"handleEdit\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"icon icon-pencil\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showDisconnectButton\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"aria-label\\\",\\\"unmatch\\\"],[12,\\\"class\\\",\\\"app-disconnect-match matching-disconnect matching-disconnect-creator\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"handleUnmatch\\\"]]]],[8],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/creator-matching-answer.hbs\"\n }\n });\n\n var CreatorMatchingAnswer = (_dec = Ember.inject.service, _dec2 = Ember.computed.notEmpty('args.answer.body'), _dec3 = Ember.computed.notEmpty('args.answer.mediaAssets'), _dec4 = Ember.computed('args.column'), _dec5 = Ember.computed('args.{column,answer.isSelected}'), _dec6 = Ember.computed('args.answer.{hasMatches,isSelected,isMatched}', 'args.column'), _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(CreatorMatchingAnswer, _Component);\n\n var _super = _createSuper(CreatorMatchingAnswer);\n\n function CreatorMatchingAnswer(owner, args) {\n var _this;\n\n _classCallCheck(this, CreatorMatchingAnswer);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasAnswerBody\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAssets\", _descriptor3, _assertThisInitialized(_this));\n\n _this.mathjaxManager.updateFormulas();\n\n return _this;\n }\n\n _createClass(CreatorMatchingAnswer, [{\n key: \"dotPosition\",\n get: function get() {\n if (this.args.column === 'left') {\n return 'right';\n } else if (this.args.column === 'right') {\n return 'left';\n } else {\n return null;\n }\n }\n }, {\n key: \"showDisconnectButton\",\n get: function get() {\n return this.args.column === 'right' && this.args.answer.isSelected;\n }\n }, {\n key: \"elementClasses\",\n get: function get() {\n var classes = \"\";\n\n if (this.args.answer.hasMatches || this.args.answer.isSelected || this.args.answer.isMatched) {\n classes += \"card--dotted card--dotted--\".concat(this.dotPosition);\n }\n\n if (this.args.answer.isSelected) {\n classes += ' card--dotted--highlight';\n }\n\n return classes;\n }\n }, {\n key: \"handleSelect\",\n value: function handleSelect() {\n if (this.args.isLocked) {\n return;\n }\n\n this.args.select(this.args.answer.answer);\n }\n }, {\n key: \"handleEdit\",\n value: function handleEdit() {\n if (this.args.isLocked) {\n return;\n }\n\n this.args.edit(this.args.answer.answer);\n }\n }, {\n key: \"handleUnmatch\",\n value: function handleUnmatch() {\n this.args.unmatch(this.args.answer.answer);\n }\n }]);\n\n return CreatorMatchingAnswer;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasAnswerBody\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAssets\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"dotPosition\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"dotPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showDisconnectButton\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"showDisconnectButton\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"elementClasses\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"elementClasses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleSelect\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"handleSelect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleEdit\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"handleEdit\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleUnmatch\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"handleUnmatch\"), _class.prototype)), _class));\n _exports.default = CreatorMatchingAnswer;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CreatorMatchingAnswer);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/css-tool-tip\", [\"exports\", \"@glimmer/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-cli-htmlbars\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{this.title}}\n {{yield}}\n
\n */\n {\n id: \"zq+vAUyZ\",\n block: \"{\\\"symbols\\\":[\\\"@classNames\\\",\\\"@tooltipClassNames\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"text-popover \\\",[23,1,[]]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"text-popover__tooltip \\\",[23,2,[]]]]],[8],[1,[23,0,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n \\\"],[14,3],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/css-tool-tip.hbs\"\n }\n });\n\n var CssToolTip = /*#__PURE__*/function (_Component) {\n _inherits(CssToolTip, _Component);\n\n var _super = _createSuper(CssToolTip);\n\n function CssToolTip() {\n _classCallCheck(this, CssToolTip);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(CssToolTip, [{\n key: \"title\",\n get: function get() {\n var _this$args$title;\n\n return (_this$args$title = this.args.title) !== null && _this$args$title !== void 0 ? _this$args$title : null;\n }\n }]);\n\n return CssToolTip;\n }(_component.default);\n\n _exports.default = CssToolTip;\n\n window.__CLASSIC_OWN_CLASSES__.set(CssToolTip, true);\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, CssToolTip);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/data-table-data-item\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@glimmer/component\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{@text}}\n {{yield}}\n \n */\n {\n id: \"han5MZeA\",\n block: \"{\\\"symbols\\\":[\\\"@ariaLabel\\\",\\\"@classNames\\\",\\\"@text\\\",\\\"&default\\\"],\\\"statements\\\":[[7,\\\"td\\\",false],[12,\\\"aria-label\\\",[23,1,[]]],[12,\\\"style\\\",[23,0,[\\\"style\\\"]]],[12,\\\"colspan\\\",[23,0,[\\\"colspan\\\"]]],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[29,[\\\"app-table-data bordered-table__text-data \\\",[23,2,[]],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"hideOverflow\\\"]],\\\"bordered-table__text--no-overflow\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"hasBadge\\\"]],\\\"bordered-table__text--has-badge\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"hasDropdown\\\"]],\\\"bordered-table__text--has-dropdown\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"minimalPadding\\\"]],\\\"bordered-table__text--minimal-padding\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onClick\\\"]]]],[8],[0,\\\"\\\\n \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n \\\"],[14,4],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/data-table-data-item.hbs\"\n }\n });\n\n var DataTableDataItem = (_dec = Ember.computed('args.setWidth'), _dec2 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DataTableDataItem, _Component);\n\n var _super = _createSuper(DataTableDataItem);\n\n function DataTableDataItem() {\n _classCallCheck(this, DataTableDataItem);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(DataTableDataItem, [{\n key: \"hideOverflow\",\n get: function get() {\n var _this$args$hideOverfl;\n\n return (_this$args$hideOverfl = this.args.hideOverflow) !== null && _this$args$hideOverfl !== void 0 ? _this$args$hideOverfl : false;\n }\n }, {\n key: \"hasBadge\",\n get: function get() {\n var _this$args$hasBadge;\n\n return (_this$args$hasBadge = this.args.hasBadge) !== null && _this$args$hasBadge !== void 0 ? _this$args$hasBadge : false;\n }\n }, {\n key: \"hasDropdown\",\n get: function get() {\n var _this$args$hasDropdow;\n\n return (_this$args$hasDropdow = this.args.hasDropdown) !== null && _this$args$hasDropdow !== void 0 ? _this$args$hasDropdow : false;\n }\n }, {\n key: \"minimalPadding\",\n get: function get() {\n var _this$args$minimalPad;\n\n return (_this$args$minimalPad = this.args.minimalPadding) !== null && _this$args$minimalPad !== void 0 ? _this$args$minimalPad : false;\n }\n }, {\n key: \"colspan\",\n get: function get() {\n var _this$args$colspan;\n\n return (_this$args$colspan = this.args.colspan) !== null && _this$args$colspan !== void 0 ? _this$args$colspan : 1;\n }\n }, {\n key: \"style\",\n get: function get() {\n var styleText = \"\";\n\n if (Ember.isPresent(this.args.setWidth)) {\n styleText += \"width: \".concat(this.args.setWidth, \"px;\");\n }\n\n return Ember.String.htmlSafe(styleText);\n }\n }, {\n key: \"onClick\",\n value: function onClick() {\n if (this.args.onClick) {\n this.args.onClick();\n }\n }\n }]);\n\n return DataTableDataItem;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"style\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"style\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype)), _class));\n _exports.default = DataTableDataItem;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DataTableDataItem);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/data-table-header-item\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@glimmer/component\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{this.text}}\n {{yield}}\n \n */\n {\n id: \"R75bF3PL\",\n block: \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"app-table-header\\\"],[11,\\\"data-header-id\\\",[23,0,[\\\"dataId\\\"]]],[11,\\\"style\\\",[23,0,[\\\"style\\\"]]],[8],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"text\\\"]],false],[0,\\\"\\\\n \\\"],[14,1],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/data-table-header-item.hbs\"\n }\n });\n\n var DataTableHeaderItem = (_dec = Ember.computed('setWidth', 'isAlignedRight'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(DataTableHeaderItem, _Component);\n\n var _super = _createSuper(DataTableHeaderItem);\n\n function DataTableHeaderItem() {\n _classCallCheck(this, DataTableHeaderItem);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(DataTableHeaderItem, [{\n key: \"text\",\n get: function get() {\n var _this$args$text;\n\n return (_this$args$text = this.args.text) !== null && _this$args$text !== void 0 ? _this$args$text : null;\n }\n }, {\n key: \"dataId\",\n get: function get() {\n var _this$args$dataId;\n\n return (_this$args$dataId = this.args.dataId) !== null && _this$args$dataId !== void 0 ? _this$args$dataId : null;\n }\n }, {\n key: \"setWidth\",\n get: function get() {\n var _this$args$setWidth;\n\n return (_this$args$setWidth = this.args.setWidth) !== null && _this$args$setWidth !== void 0 ? _this$args$setWidth : null;\n }\n }, {\n key: \"isAlignedRight\",\n get: function get() {\n var _this$args$isAlignedR;\n\n return (_this$args$isAlignedR = this.args.isAlignedRight) !== null && _this$args$isAlignedR !== void 0 ? _this$args$isAlignedR : false;\n }\n }, {\n key: \"isAlignedCenter\",\n get: function get() {\n var _this$args$isAlignedC;\n\n return (_this$args$isAlignedC = this.args.isAlignedCenter) !== null && _this$args$isAlignedC !== void 0 ? _this$args$isAlignedC : false;\n }\n }, {\n key: \"style\",\n get: function get() {\n var styleText = \"\";\n\n if (Ember.isPresent(this.setWidth)) {\n styleText += \"width: \".concat(this.setWidth, \"px;\");\n }\n\n if (this.isAlignedRight) {\n styleText += \" text-align: right;\";\n }\n\n if (this.isAlignedCenter) {\n styleText += \" text-align: center;\";\n }\n\n return Ember.String.htmlSafe(styleText);\n }\n }]);\n\n return DataTableHeaderItem;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"style\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"style\"), _class.prototype)), _class));\n _exports.default = DataTableHeaderItem;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DataTableHeaderItem);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/delete-assessment-template-modal\", [\"exports\", \"@glimmer/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-cli-htmlbars\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n {{#if @assessmentTemplate.isLocked }}\n

THIS ASSESSMENT TEMPLATE IS LOCKED!

\n {{/if}}\n

Removing this assessment template will also remove any student data associated with this template.

\n

Are you sure you want to remove this assessment template?

\n \n \n \n */\n {\n id: \"NSWTo7dZ\",\n block: \"{\\\"symbols\\\":[\\\"@cancelDelete\\\",\\\"@deleteAssessmentTemplate\\\",\\\"@assessmentTemplate\\\"],\\\"statements\\\":[[5,\\\"delete-confirm-modal\\\",[],[[\\\"@close\\\",\\\"@targetAttachment\\\",\\\"@title\\\",\\\"@deleteAction\\\"],[[23,1,[]],\\\"center\\\",\\\"Delete Assessment Template\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isLocked\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",true],[8],[7,\\\"strong\\\",true],[8],[0,\\\"THIS ASSESSMENT TEMPLATE IS LOCKED!\\\"],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Removing this assessment template will also remove any student data associated with this template.\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Are you sure you want to remove this assessment template?\\\"],[9],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/delete-assessment-template-modal.hbs\"\n }\n });\n\n var DeleteAssessmentTemplateModal = /*#__PURE__*/function (_Component) {\n _inherits(DeleteAssessmentTemplateModal, _Component);\n\n var _super = _createSuper(DeleteAssessmentTemplateModal);\n\n function DeleteAssessmentTemplateModal() {\n _classCallCheck(this, DeleteAssessmentTemplateModal);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(DeleteAssessmentTemplateModal);\n }(_component.default);\n\n _exports.default = DeleteAssessmentTemplateModal;\n\n window.__CLASSIC_OWN_CLASSES__.set(DeleteAssessmentTemplateModal, true);\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DeleteAssessmentTemplateModal);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/delete-confirm-modal\", [\"exports\", \"@glimmer/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-cli-htmlbars\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n
\n
\n

{{this.title}}

\n
\n
\n {{yield}}\n
\n
\n \n \n
\n
\n
\n \n */\n {\n id: \"P55riTn2\",\n block: \"{\\\"symbols\\\":[\\\"@close\\\",\\\"&default\\\",\\\"@deleteAction\\\"],\\\"statements\\\":[[5,\\\"modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@targetAttachment\\\",\\\"@translucentOverlay\\\"],[[23,1,[]],[23,0,[\\\"targetAttachment\\\"]],true]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-confirmation-modal\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\",true],[8],[1,[23,0,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-content\\\"],[8],[0,\\\"\\\\n \\\"],[14,2],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-footer\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white app-cancel\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,1,[]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-danger app-confirm app-delete-confirm\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,3,[]]]],[8],[1,[23,0,[\\\"deleteButtonText\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/delete-confirm-modal.hbs\"\n }\n });\n\n var DeleteConfirmModal = /*#__PURE__*/function (_Component) {\n _inherits(DeleteConfirmModal, _Component);\n\n var _super = _createSuper(DeleteConfirmModal);\n\n function DeleteConfirmModal() {\n _classCallCheck(this, DeleteConfirmModal);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(DeleteConfirmModal, [{\n key: \"title\",\n get: function get() {\n var _this$args$title;\n\n return (_this$args$title = this.args.title) !== null && _this$args$title !== void 0 ? _this$args$title : \"Delete Confirmation\";\n }\n }, {\n key: \"deleteButtonText\",\n get: function get() {\n var _this$args$deleteButt;\n\n return (_this$args$deleteButt = this.args.deleteButtonText) !== null && _this$args$deleteButt !== void 0 ? _this$args$deleteButt : \"Delete\";\n }\n }, {\n key: \"targetAttachment\",\n get: function get() {\n var _this$args$targetAtta;\n\n return (_this$args$targetAtta = this.args.targetAttachment) !== null && _this$args$targetAtta !== void 0 ? _this$args$targetAtta : \"center\";\n }\n }]);\n\n return DeleteConfirmModal;\n }(_component.default);\n\n _exports.default = DeleteConfirmModal;\n\n window.__CLASSIC_OWN_CLASSES__.set(DeleteConfirmModal, true);\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DeleteConfirmModal);\n});","define(\"student-app/components/delete-question-group-modal\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n

Removing this question group will also remove it from any assessment templates.

\n

Are you sure you want to remove this question group?

\n
\n \n */\n {\n id: \"h21WH5LO\",\n block: \"{\\\"symbols\\\":[\\\"@cancelDelete\\\",\\\"@deleteQuestionGroup\\\"],\\\"statements\\\":[[5,\\\"delete-confirm-modal\\\",[],[[\\\"@close\\\",\\\"@targetAttachment\\\",\\\"@title\\\",\\\"@deleteAction\\\"],[[23,1,[]],\\\"center\\\",\\\"Delete Question Group\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Removing this question group will also remove it from any assessment templates.\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Are you sure you want to remove this question group?\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/delete-question-group-modal.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","define(\"student-app/components/delete-question-modal\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/component/template-only\"eaimeta@70e063a35619d71f\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{#if @question.isLocked }}\n

THIS QUESTION IS LOCKED!

\n {{/if}}\n

Removing this question will also remove it from any assessment templates.

\n

Are you sure you want to remove this question?

\n
\n \n */\n {\n id: \"8fZTckHI\",\n block: \"{\\\"symbols\\\":[\\\"@cancelDelete\\\",\\\"@deleteQuestion\\\",\\\"@question\\\"],\\\"statements\\\":[[5,\\\"delete-confirm-modal\\\",[],[[\\\"@close\\\",\\\"@targetAttachment\\\",\\\"@title\\\",\\\"@deleteAction\\\"],[[23,1,[]],\\\"center\\\",\\\"Delete Question\\\",[23,2,[]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[\\\"isLocked\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",true],[8],[7,\\\"strong\\\",true],[8],[0,\\\"THIS QUESTION IS LOCKED!\\\"],[9],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Removing this question will also remove it from any assessment templates.\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[0,\\\"Are you sure you want to remove this question?\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/delete-question-modal.hbs\"\n }\n });\n\n var _default = Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, Ember._templateOnlyComponent());\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/digital-keypad\", [\"exports\", \"jquery\", \"@glimmer/component\"], function (_exports, _jquery, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"jquery\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\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: \"OMhj8XpK\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"digital-keypad__keypad-container app-keypad-wrapper app-readable-font no-print\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"setupKeys\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"app-keypad-anchor digital-keypad__anchor \\\",[28,\\\"if\\\",[[23,0,[\\\"slimKeypad\\\"]],\\\"digital-keypad__anchor--slim\\\"],null]]]],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"digital-keypad app-digital-keypad \\\",[28,\\\"if\\\",[[23,0,[\\\"isOffscreen\\\"]],\\\"digital-keypad--sticky\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isAboveScreen\\\"]],\\\"digital-keypad--stick-bottom\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"slimKeypad\\\"]],\\\"digital-keypad--slim\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],7],null]]],[8],[0,\\\"7\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],8],null]]],[8],[0,\\\"8\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],9],null]]],[8],[0,\\\"9\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],4],null]]],[8],[0,\\\"4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],5],null]]],[8],[0,\\\"5\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],6],null]]],[8],[0,\\\"6\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],1],null]]],[8],[0,\\\"1\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],2],null]]],[8],[0,\\\"2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],3],null]]],[8],[0,\\\"3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"aria-label\\\",\\\"backspace\\\"],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-digital-keypad-backspace\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],\\\"backspace\\\"],null]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"digital-keypad__icon icon icon-backspace\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],0],null]]],[8],[0,\\\"0\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"digital-keypad__button app-digital-keypad-button digital-keypad__button--text app-readable-font\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"handleButtonPress\\\"]],\\\"ok\\\"],null]]],[8],[0,\\\"OK\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/digital-keypad.hbs\"\n }\n });\n\n var DigitalKeypad = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DigitalKeypad, _Component);\n\n var _super = _createSuper(DigitalKeypad);\n\n function DigitalKeypad() {\n var _this;\n\n _classCallCheck(this, DigitalKeypad);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"element\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DigitalKeypad, [{\n key: \"isPreview\",\n get: function get() {\n var _this$args$isPreview;\n\n return (_this$args$isPreview = this.args.isPreview) !== null && _this$args$isPreview !== void 0 ? _this$args$isPreview : false;\n }\n }, {\n key: \"slimKeypad\",\n get: function get() {\n var _this$args$slimKeypad;\n\n return (_this$args$slimKeypad = this.args.slimKeypad) !== null && _this$args$slimKeypad !== void 0 ? _this$args$slimKeypad : false;\n }\n }, {\n key: \"setupKeys\",\n value: function setupKeys(element) {\n var _this2 = this;\n\n this.element = element;\n (0, _jquery.default)(window).on('scroll.keypad', function () {\n _this2.stickyRelocate();\n });\n this.stickyRelocate();\n }\n }, {\n key: \"stickyRelocate\",\n value: function stickyRelocate() {\n if (this.isPreview) {\n return;\n }\n\n var rect = this.element.getBoundingClientRect();\n var keypadContainerTop = rect.top;\n var containerHeight = rect.height;\n var keypadHeight = this.element.firstElementChild.getBoundingClientRect().height;\n var bottomThreshold = keypadContainerTop + containerHeight - keypadHeight;\n\n if (50 >= bottomThreshold) {\n this.isOffscreen = false;\n this.isAboveScreen = true;\n } else if (50 > keypadContainerTop) {\n this.isOffscreen = true;\n this.isAboveScreen = false;\n } else {\n this.isOffscreen = false;\n this.isAboveScreen = false;\n }\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n (0, _jquery.default)(window).off('scroll.keypad');\n }\n }, {\n key: \"handleButtonPress\",\n value: function handleButtonPress(value) {\n this.args.keyPress(value);\n }\n }]);\n\n return DigitalKeypad;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"setupKeys\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"setupKeys\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"handleButtonPress\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"handleButtonPress\"), _class.prototype)), _class));\n _exports.default = DigitalKeypad;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DigitalKeypad);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/dnd-callout-dot\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"bd3uI540\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\"],\\\"statements\\\":[[7,\\\"circle\\\",true],[11,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[11,\\\"r\\\",8],[11,\\\"cx\\\",[23,0,[\\\"cx\\\"]]],[11,\\\"cy\\\",[23,0,[\\\"cy\\\"]]],[10,\\\"class\\\",\\\"creator-drag-and-drop__target-dot-svg app-dnd-callout app-dnd-callout-dot\\\"],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/dnd-callout-dot.hbs\"\n }\n });\n\n var DndCalloutDot = (_dec = Ember.computed.or('args.answer.scaledCallout', 'args.answer.callout'), _dec2 = Ember.computed.readOnly('callout.firstObject'), _dec3 = Ember.computed.readOnly('callout.lastObject'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(DndCalloutDot, _Component);\n\n var _super = _createSuper(DndCalloutDot);\n\n function DndCalloutDot() {\n var _this;\n\n _classCallCheck(this, DndCalloutDot);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"callout\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cx\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cy\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(DndCalloutDot);\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"callout\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cx\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"cy\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = DndCalloutDot;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DndCalloutDot);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/dnd-callout-line\", [\"exports\", \"@glimmer/component\", \"student-app/utils/drop-target-geometry\"], function (_exports, _component, _dropTargetGeometry) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"student-app/utils/drop-target-geometry\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n */\n {\n id: \"KsVjpV1D\",\n block: \"{\\\"symbols\\\":[\\\"@answer\\\"],\\\"statements\\\":[[7,\\\"line\\\",true],[11,\\\"x1\\\",[23,0,[\\\"x1\\\"]]],[11,\\\"x2\\\",[23,0,[\\\"x2\\\"]]],[11,\\\"y1\\\",[23,0,[\\\"y1\\\"]]],[11,\\\"y2\\\",[23,0,[\\\"y2\\\"]]],[11,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[10,\\\"class\\\",\\\"creator-drag-and-drop__target-closed-region-svg app-dnd-callout\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/dnd-callout-line.hbs\"\n }\n });\n\n var DndCalloutLine = (_dec = Ember.computed.or('args.answer.scaledCallout', 'args.answer.callout'), _dec2 = Ember.computed.readOnly('calloutIntersection.firstObject'), _dec3 = Ember.computed.readOnly('calloutIntersection.lastObject'), _dec4 = Ember.computed('callout.firstObject'), _dec5 = Ember.computed('callout.lastObject'), _dec6 = Ember.computed('args.answer.centroid', 'x2', 'y2'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(DndCalloutLine, _Component);\n\n var _super = _createSuper(DndCalloutLine);\n\n function DndCalloutLine() {\n var _this;\n\n _classCallCheck(this, DndCalloutLine);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"callout\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"x1\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"y1\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DndCalloutLine, [{\n key: \"x2\",\n get: function get() {\n return parseInt(this.callout.firstObject, 10);\n }\n }, {\n key: \"y2\",\n get: function get() {\n return parseInt(this.callout.lastObject, 10);\n }\n }, {\n key: \"calloutIntersection\",\n get: function get() {\n return (0, _dropTargetGeometry.nearestIntersection)(this.args.answer.centroid, [this.x2, this.y2], this.args.answer);\n }\n }]);\n\n return DndCalloutLine;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"callout\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"x1\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"y1\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"x2\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"x2\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"y2\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"y2\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"calloutIntersection\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"calloutIntersection\"), _class.prototype)), _class));\n _exports.default = DndCalloutLine;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DndCalloutLine);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/dnd-drop-target\", [\"exports\", \"@glimmer/component\", \"jquery\", \"student-app/utils/drop-target-geometry\"], function (_exports, _component, _jquery, _dropTargetGeometry) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"jquery\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/object/internals\",0,\"student-app/utils/drop-target-geometry\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var DndDropTarget = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DndDropTarget, _Component);\n\n var _super = _createSuper(DndDropTarget);\n\n function DndDropTarget() {\n var _this;\n\n _classCallCheck(this, DndDropTarget);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDraggedOver\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"element\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DndDropTarget, [{\n key: \"didInsertTarget\",\n value: // At some point, it would be nice to refactor this to use native\n // drag events, which should greatly improve performance and reduce\n // unnecessary code like this. DragAndDropAnswer would have to change\n // greatly as well.\n function didInsertTarget(element) {\n var _this2 = this;\n\n this.element = element;\n this.id = Ember.guidFor(this);\n var id = this.args.point.id;\n (0, _jquery.default)(document).on(\"mousemove.\".concat(id, \" touchmove.\").concat(id), function () {\n return _this2.onMouseMove();\n });\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(DndDropTarget.prototype), \"willDestroy\", this).apply(this, arguments);\n\n var id = this.args.point.id;\n (0, _jquery.default)(document).off(\"mousemove.\".concat(id));\n (0, _jquery.default)(document).off(\"touchmove.\".concat(id));\n }\n }, {\n key: \"onMouseMove\",\n value: function onMouseMove() {\n var _this3 = this;\n\n var dragInfo = this.args.dragInfo;\n\n if (!dragInfo || !dragInfo.isDragging || !this.element) {\n return;\n }\n\n var svgPos = this.element.closest('svg').getBoundingClientRect();\n var scrollLeft = window.scrollX || document.documentElement.scrollLeft;\n var scrollTop = window.scrollY || document.documentElement.scrollTop;\n var relativeCoords = {\n x: dragInfo.x - svgPos.left - scrollLeft,\n y: dragInfo.y - svgPos.top - scrollTop\n };\n var pointInside = (0, _dropTargetGeometry.pointMatchesAnswer)(relativeCoords, this.args.point.answer);\n\n if (pointInside) {\n if (!this.isDraggedOver) {\n this.isDraggedOver = true;\n Ember.run.next(function () {\n _this3.args.draggedOver(_this3.args.point.id);\n });\n }\n } else {\n if (this.isDraggedOver) {\n this.isDraggedOver = false;\n Ember.run.next(function () {\n _this3.args.draggedOut();\n });\n }\n }\n }\n }]);\n\n return DndDropTarget;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isDraggedOver\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"didInsertTarget\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertTarget\"), _class.prototype)), _class));\n _exports.default = DndDropTarget;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-answer-editor\", [\"exports\", \"@glimmer/component\", \"student-app/api-requests/update-answer-request\", \"student-app/api-requests/update-question-request\", \"student-app/api-requests/delete-media-asset-request\"], function (_exports, _component, _updateAnswerRequest, _updateQuestionRequest, _deleteMediaAssetRequest) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _dec30, _dec31, _dec32, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"@glimmer/component\",0,\"student-app/api-requests/update-answer-request\",0,\"student-app/api-requests/update-question-request\",0,\"student-app/api-requests/delete-media-asset-request\"eaimeta@70e063a35619d71f\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n \n {{#if this.isChoosingAnswerSource}}\n
\n
\n \n Cancel\n \n {{#if this.distractorSelected}}\n \n Save\n \n {{/if}}\n
\n
\n
\n \n Create New Answer\n \n \n Use Existing Answer\n \n \n Distractor {{this.dropTargetTypeLabel}}\n \n
\n {{else if this.isChoosingExistingAnswer}}\n
\n
\n \n Cancel\n \n \n Save\n \n
\n
\n \n
\n {{#each this.existingAnswers as |answer|}}\n \n {{/each}}\n
\n {{else if this.isEditingAnswer}}\n
\n {{#unless this.isDistractorAnswer}}\n \n Upload Media\n \n {{/unless}}\n \n
\n \n Cancel\n \n {{#if @editingAnswer}}\n \n Delete\n \n {{/if}}\n \n {{#unless this.isDistractorAnswer}}\n \n Save\n \n {{/unless}}\n
\n
\n {{#if this.isDistractorAnswer}}\n

This answer is used as a distractor answer.

\n {{else}}\n {{#if this.answerIsUsedInOtherAnswers}}\n

This answer is used for multiple drop points. If you change it here, the change will be reflected for all drop targets that use this answer.

\n {{/if}}\n {{#if this.answerHasAssets}}\n
\n {{#each this.answerMediaAssets as |mediaAsset|}}\n {{#if mediaAsset.isImage }}\n
\n
\n \n Delete\n \n
\n \"{{mediaAsset.altText}}\"\n
\n {{/if}}\n \n {{#if mediaAsset.isAudio }}\n
\n \n
\n {{/if}}\n {{/each}}\n
\n {{else}}\n \n {{/if}}\n {{/if}}\n {{/if}}\n \n
\n \n */\n {\n id: \"BMNWYTGr\",\n block: \"{\\\"symbols\\\":[\\\"mediaAsset\\\",\\\"answer\\\",\\\"@editingAnswer\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-update\\\",[[23,0,[\\\"editingAnswerDidUpdate\\\"]],[23,3,[]]]],[8],[0,\\\"\\\\n \\\"],[5,\\\"pop-over\\\",[],[[\\\"@classNames\\\",\\\"@position\\\",\\\"@centerOverride\\\",\\\"@positionTopOffset\\\"],[\\\"app-answer-editor\\\",[23,0,[\\\"position\\\"]],true,10]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isChoosingAnswerSource\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__upper-button-group\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-right\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border reverse-link app-cancel-answer-editor\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"cancelEditAnswer\\\"]]]],[8],[0,\\\"\\\\n Cancel\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"distractorSelected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-save-answer btn btn-mini btn-blue\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"saveDistractorDot\\\"]]]],[8],[0,\\\"\\\\n Save\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__navigation-buttons\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white button--full-width app-new-answer\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"createNewAnswer\\\"]]]],[8],[0,\\\"\\\\n Create New Answer\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"disabled\\\",[23,0,[\\\"hasNoExistingAnswers\\\"]]],[12,\\\"class\\\",\\\"btn btn-white button--full-width app-use-existing-answer\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"useExistingAnswer\\\"]]]],[8],[0,\\\"\\\\n Use Existing Answer\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white button--full-width app-create-distractor-dot\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"createDistractorDot\\\"]]]],[8],[0,\\\"\\\\n Distractor \\\"],[1,[23,0,[\\\"dropTargetTypeLabel\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isChoosingExistingAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__upper-button-group\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-right\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border reverse-link app-cancel-answer-editor\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"cancelEditAnswer\\\"]]]],[8],[0,\\\"\\\\n Cancel\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"disabled\\\",[23,0,[\\\"hasNoSelectedExistingAnswer\\\"]]],[12,\\\"class\\\",\\\"app-save-existing-answer btn btn-blue btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"saveExistingAnswer\\\"]]]],[8],[0,\\\"\\\\n Save\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__choice-list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"existingAnswers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-existing-answer-choice\\\",[],[[\\\"@answer\\\",\\\"@selectedAnswer\\\",\\\"@selectAnswer\\\"],[[23,2,[]],[23,0,[\\\"selectedExistingAnswer\\\"]],[23,0,[\\\"selectExistingAnswer\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"isEditingAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__upper-button-group\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isDistractorAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white btn-mini upload-media-button app-upload-answer-media\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openUploadModal\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-camera\\\"],[8],[9],[0,\\\" Upload Media\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-right\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border reverse-link app-cancel-answer-editor\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"cancelEditAnswer\\\"]]]],[8],[0,\\\"\\\\n Cancel\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-delete-answer btn btn-white btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"deleteAnswer\\\"]]]],[8],[0,\\\"\\\\n Delete\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"isDistractorAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-save-answer btn btn-blue btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"saveAnswer\\\"]]]],[8],[0,\\\"\\\\n Save\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isDistractorAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"pop-over__text--minimum-content-width\\\"],[8],[0,\\\"This answer is used as a distractor answer.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"answerIsUsedInOtherAnswers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\",true],[10,\\\"class\\\",\\\"pop-over__warning-text\\\"],[8],[0,\\\"This answer is used for multiple drop points. If you change it here, the change will be reflected for all drop targets that use this answer.\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"answerHasAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-assets drag-and-drop-answer__media-assets\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"answerMediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-asset\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-delete-asset btn btn-white delete btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeAsset\\\"]],[23,1,[]]],null]]],[8],[0,\\\"\\\\n Delete\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"app-image media-image\\\"],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[11,\\\"data-id\\\",[29,[[23,1,[\\\"id\\\"]]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-audio\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"large-audio-player\\\",[],[[\\\"@asset\\\",\\\"@canEdit\\\",\\\"@removeAsset\\\"],[[23,1,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"removeAsset\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"rich-text-editor\\\",[],[[\\\"@width\\\",\\\"@value\\\",\\\"@field_id\\\",\\\"@autofocus\\\",\\\"@buttonSet\\\",\\\"@changeAction\\\"],[400,[23,0,[\\\"answerBody\\\"]],\\\"dnd_answer_body\\\",true,\\\"shortButtons\\\",[23,0,[\\\"answerBodyDidUpdate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-answer-editor.hbs\"\n }\n });\n\n var states = {\n choosingAnswerSource: 'choosingAnswerSource',\n choosingExistingAnswer: 'choosingExistingAnswer',\n editingAnswer: 'editingAnswer'\n };\n var DragAndDropAnswerEditor = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed.alias('args.answer.answer.mediaAssets'), _dec8 = Ember.computed.notEmpty('answerMediaAssets'), _dec9 = Ember.computed.equal('currentPopoverStatus', states.choosingAnswerSource), _dec10 = Ember.computed.equal('currentPopoverStatus', states.choosingExistingAnswer), _dec11 = Ember.computed.equal('currentPopoverStatus', states.editingAnswer), _dec12 = Ember.computed('args.answer.collisionType'), _dec13 = Ember.computed.empty('args.editingAnswer'), _dec14 = Ember.computed.alias('args.answer.distractor'), _dec15 = Ember.computed.readOnly('args.answer.centroid'), _dec16 = Ember.computed('args.question.answers.[]'), _dec17 = Ember.computed.empty('existingAnswers'), _dec18 = Ember.computed.empty('selectedExistingAnswer'), _dec19 = Ember.computed('args.question.answers.[]'), _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, _dec28 = Ember._action, _dec29 = Ember._action, _dec30 = Ember._action, _dec31 = Ember._action, _dec32 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropAnswerEditor, _Component);\n\n var _super = _createSuper(DragAndDropAnswerEditor);\n\n function DragAndDropAnswerEditor(owner, args) {\n var _this$args$editingAns;\n\n var _this;\n\n _classCallCheck(this, DragAndDropAnswerEditor);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"flashService\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currentPopoverStatus\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerBody\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"distractorSelected\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"selectedExistingAnswer\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerMediaAssets\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerHasAssets\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isChoosingAnswerSource\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isChoosingExistingAnswer\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isEditingAnswer\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isNewAnswer\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDistractorAnswer\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"position\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasNoExistingAnswers\", _descriptor15, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasNoSelectedExistingAnswer\", _descriptor16, _assertThisInitialized(_this));\n\n if ((_this$args$editingAns = _this.args.editingAnswer) !== null && _this$args$editingAns !== void 0 && _this$args$editingAns.id) {\n Ember.run.next(_assertThisInitialized(_this), _this.setupEditAnswer);\n }\n\n return _this;\n }\n\n _createClass(DragAndDropAnswerEditor, [{\n key: \"dropTargetTypeLabel\",\n get: function get() {\n if (this.args.answer.collisionType === 'dot') {\n return \"Dot\";\n }\n\n return \"Region\";\n }\n }, {\n key: \"existingAnswers\",\n get: function get() {\n return this.args.question.answers.filter(function (a) {\n return a.primary && !a.distractor;\n });\n }\n }, {\n key: \"answerIsUsedInOtherAnswers\",\n get: function get() {\n var _this2 = this;\n\n var match = this.args.question.answers.find(function (a) {\n var _this2$args$answer$an;\n\n return a.id == ((_this2$args$answer$an = _this2.args.answer.answer) === null || _this2$args$answer$an === void 0 ? void 0 : _this2$args$answer$an.id);\n });\n return (match === null || match === void 0 ? void 0 : match.answers.rejectBy('id', this.args.answer.id).length) > 0;\n }\n }, {\n key: \"editingAnswerDidUpdate\",\n value: function editingAnswerDidUpdate() {\n var _this$args$editingAns2;\n\n if ((_this$args$editingAns2 = this.args.editingAnswer) !== null && _this$args$editingAns2 !== void 0 && _this$args$editingAns2.id) {\n if (this.currentPopoverStatus === states.choosingAnswerSource) {\n return;\n }\n\n this.setupEditAnswer();\n }\n }\n }, {\n key: \"setupEditAnswer\",\n value: function setupEditAnswer() {\n var _this$args$answer$ans;\n\n this.answerBody = (_this$args$answer$ans = this.args.answer.answer) === null || _this$args$answer$ans === void 0 ? void 0 : _this$args$answer$ans.body;\n this.currentPopoverStatus = states.editingAnswer;\n }\n }, {\n key: \"saveDistractorDot\",\n value: function () {\n var _saveDistractorDot = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var answer, updateAnswerRequest;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n answer = this.args.answer;\n _context.prev = 1;\n answer.distractor = true;\n updateAnswerRequest = (0, _updateAnswerRequest.convertAnswerToUpdateAnswerRequest)(answer);\n _context.next = 6;\n return this.apiClient.post('answers/update', updateAnswerRequest);\n\n case 6:\n this.args.refetchQuestion();\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](1);\n this.flashService.error('Error: Distractor could not be saved.', _context.t0);\n\n case 12:\n this.args.closePopup();\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[1, 9]]);\n }));\n\n function saveDistractorDot() {\n return _saveDistractorDot.apply(this, arguments);\n }\n\n return saveDistractorDot;\n }()\n }, {\n key: \"createDistractorDot\",\n value: function createDistractorDot() {\n this.distractorSelected = true;\n }\n }, {\n key: \"saveExistingAnswer\",\n value: function () {\n var _saveExistingAnswer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var answer, question, updateQuestionRequest;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n answer = this.args.answer;\n _context2.prev = 1;\n answer.answer = this.selectedExistingAnswer;\n _context2.next = 5;\n return this.apiClient.post(\"answers/match\", {\n id: answer.id,\n matchId: this.selectedExistingAnswer.id\n });\n\n case 5:\n _context2.next = 10;\n break;\n\n case 7:\n _context2.prev = 7;\n _context2.t0 = _context2[\"catch\"](1);\n this.flashService.error('Error: Answer could not be saved.', _context2.t0);\n\n case 10:\n question = this.args.question;\n\n if (question.allowInfiniteAnswers) {\n _context2.next = 22;\n break;\n }\n\n _context2.prev = 12;\n question.allowInfiniteAnswers = true;\n updateQuestionRequest = (0, _updateQuestionRequest.convertQuestionToUpdateQuestionRequest)(question);\n _context2.next = 17;\n return this.apiClient.post('questions/update', updateQuestionRequest);\n\n case 17:\n _context2.next = 22;\n break;\n\n case 19:\n _context2.prev = 19;\n _context2.t1 = _context2[\"catch\"](12);\n this.flashService.error('Error: Question could not be saved.', _context2.t1);\n\n case 22:\n this.args.refetchQuestion();\n this.args.closePopup();\n\n case 24:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[1, 7], [12, 19]]);\n }));\n\n function saveExistingAnswer() {\n return _saveExistingAnswer.apply(this, arguments);\n }\n\n return saveExistingAnswer;\n }()\n }, {\n key: \"selectExistingAnswer\",\n value: function selectExistingAnswer(answer) {\n this.selectedExistingAnswer = answer;\n }\n }, {\n key: \"createNewAnswer\",\n value: function createNewAnswer() {\n this.currentPopoverStatus = states.editingAnswer;\n this.answerBody = this.args.answer.body;\n this.args.newAnswer(this.args.answer);\n }\n }, {\n key: \"useExistingAnswer\",\n value: function useExistingAnswer() {\n this.currentPopoverStatus = states.choosingExistingAnswer;\n }\n }, {\n key: \"openUploadModal\",\n value: function openUploadModal() {\n this.args.openUploadModal();\n }\n }, {\n key: \"cancelEditAnswer\",\n value: function cancelEditAnswer() {\n this.args.cancelEditAnswer();\n }\n }, {\n key: \"deleteAnswer\",\n value: function deleteAnswer() {\n this.args.deleteAnswer();\n }\n }, {\n key: \"saveAnswer\",\n value: function saveAnswer() {\n this.args.saveAnswer();\n }\n }, {\n key: \"removeAsset\",\n value: function () {\n var _removeAsset = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(asset) {\n var answer, request;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n answer = this.args.answer.answer;\n\n if (!answer) {\n _context3.next = 12;\n break;\n }\n\n request = new _deleteMediaAssetRequest.DeleteMediaAssetRequest({\n mediaAssetId: asset.id,\n attacheeId: answer.id,\n attacheeType: \"Answer\"\n });\n _context3.prev = 3;\n _context3.next = 6;\n return this.apiClient.post('media-assets/delete', request);\n\n case 6:\n answer.mediaAssets.removeObject(asset);\n _context3.next = 12;\n break;\n\n case 9:\n _context3.prev = 9;\n _context3.t0 = _context3[\"catch\"](3);\n this.flashService.error('Error: Could not remove asset.', _context3.t0);\n\n case 12:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[3, 9]]);\n }));\n\n function removeAsset(_x) {\n return _removeAsset.apply(this, arguments);\n }\n\n return removeAsset;\n }()\n }, {\n key: \"answerBodyDidUpdate\",\n value: function answerBodyDidUpdate(value) {\n this.args.answerBodyDidUpdate(value);\n }\n }]);\n\n return DragAndDropAnswerEditor;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"flashService\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"currentPopoverStatus\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return states.choosingAnswerSource;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"answerBody\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"distractorSelected\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"selectedExistingAnswer\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"answerMediaAssets\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"answerHasAssets\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isChoosingAnswerSource\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"isChoosingExistingAnswer\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"isEditingAnswer\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"dropTargetTypeLabel\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"dropTargetTypeLabel\"), _class.prototype), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"isNewAnswer\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"isDistractorAnswer\", [_dec14], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"position\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"existingAnswers\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"existingAnswers\"), _class.prototype), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"hasNoExistingAnswers\", [_dec17], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"hasNoSelectedExistingAnswer\", [_dec18], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"answerIsUsedInOtherAnswers\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"answerIsUsedInOtherAnswers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"editingAnswerDidUpdate\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"editingAnswerDidUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveDistractorDot\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"saveDistractorDot\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createDistractorDot\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"createDistractorDot\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveExistingAnswer\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"saveExistingAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"selectExistingAnswer\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"selectExistingAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createNewAnswer\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"createNewAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"useExistingAnswer\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"useExistingAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openUploadModal\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"openUploadModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelEditAnswer\", [_dec28], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelEditAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteAnswer\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveAnswer\", [_dec30], Object.getOwnPropertyDescriptor(_class.prototype, \"saveAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAsset\", [_dec31], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAsset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"answerBodyDidUpdate\", [_dec32], Object.getOwnPropertyDescriptor(_class.prototype, \"answerBodyDidUpdate\"), _class.prototype)), _class));\n _exports.default = DragAndDropAnswerEditor;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropAnswerEditor);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-answer\", [\"exports\", \"jquery\", \"@glimmer/component\"], function (_exports, _jquery, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/tracking\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/string\",0,\"@ember/utils\",0,\"jquery\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n
\n {{#if this.hasMediaAssets}}\n {{#each this.mediaAssets as |asset|}}\n
\n {{#if asset.isImage }}\n {{#if asset.hasTitle }}\n

{{asset.title}}

\n {{/if}}\n \"{{asset.altText}}\"\n {{/if}}\n \n {{#if asset.isAudio }}\n
\n
\n \n
\n \n
\n {{/if}}\n
\n {{/each}}\n {{else}}\n {{sanitize-and-escape @answer.body}}\n {{/if}}\n
\n \n \n */\n {\n id: \"GmEAPHdv\",\n block: \"{\\\"symbols\\\":[\\\"asset\\\",\\\"@answer\\\"],\\\"statements\\\":[[7,\\\"span\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"drag-and-drop-answer-wrapper\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertAnswer\\\"]]]],[3,\\\"on\\\",[\\\"mousedown\\\",[23,0,[\\\"mouseDown\\\"]]]],[3,\\\"on\\\",[\\\"touchstart\\\",[23,0,[\\\"mouseDown\\\"]]]],[3,\\\"on\\\",[\\\"mouseup\\\",[23,0,[\\\"mouseUpPlease\\\"]]]],[3,\\\"on\\\",[\\\"touchend\\\",[23,0,[\\\"mouseUpPlease\\\"]]]],[3,\\\"on\\\",[\\\"contextmenu\\\",[23,0,[\\\"preventDefaultFunctionality\\\"]]]],[3,\\\"on\\\",[\\\"transitionend\\\",[23,0,[\\\"onTransitionEnd\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"data-answer-id\\\",[29,[[23,2,[\\\"id\\\"]]]]],[11,\\\"class\\\",[29,[\\\"app-drag-and-drop-answer drag-and-drop-answer \\\",[23,0,[\\\"answerClasses\\\"]]]]],[11,\\\"style\\\",[23,0,[\\\"answerStyle\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-answer__media-asset\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"hasTitle\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"title\\\"],[8],[1,[23,1,[\\\"title\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-answer__image\\\"],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-answer__audio-handle-wrapper\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-answer__audio\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\"],[[23,1,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"app-drag-handle drag-and-drop-answer__drag-handle\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,2,[\\\"body\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-answer.hbs\"\n }\n });\n\n var DragAndDropAnswer = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember.computed.alias('args.answer.isHidden'), _dec5 = Ember.computed.alias('args.answer.isClone'), _dec6 = Ember.computed.alias('args.answer.nonDrag'), _dec7 = Ember.computed.readOnly('args.question.hideDropRegions'), _dec8 = Ember.computed.readOnly('args.answer.mediaAssets'), _dec9 = Ember.computed.notEmpty('mediaAssets'), _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember.computed('element'), _dec14 = Ember.computed('dragTopOffset', 'isDragging', 'args.{answer.matchId,points.[]}'), _dec15 = Ember.computed('dragLeftOffset', 'isDragging', 'args.{answer.matchId,points.[]}'), _dec16 = Ember.computed('answerTemplate'), _dec17 = Ember.computed('topOffset', 'leftOffset', 'isClone', 'templateAnswerWidth'), _dec18 = Ember.computed('isDragging', 'args.currentDraggedOverZoneId'), _dec19 = Ember.computed('isActive', 'isDragging', 'isHidden'), _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropAnswer, _Component);\n\n var _super = _createSuper(DragAndDropAnswer);\n\n function DragAndDropAnswer(owner, args) {\n var _this;\n\n _classCallCheck(this, DragAndDropAnswer);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isDragging\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isTransitioning\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isHidden\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isClone\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"nonDrag\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isHiddenRegion\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mediaAssets\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAssets\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"dragTopOffset\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"dragLeftOffset\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"element\", _descriptor12, _assertThisInitialized(_this));\n\n _this.isDragging = _this.isClone && !_this.nonDrag;\n return _this;\n }\n\n _createClass(DragAndDropAnswer, [{\n key: \"answerTemplate\",\n get: function get() {\n if (this.isClone) {\n var template = (0, _jquery.default)(\"[data-answer-id='\".concat(this.args.answer.originalId, \"'].drag-and-drop-answer-template\"));\n\n if (template && template.length > 0) {\n return template;\n }\n }\n\n return null;\n }\n }, {\n key: \"topOffsetFromTemplate\",\n get: function get() {\n var answerTemplate = this.answerTemplate;\n\n if (!answerTemplate || !this.element) {\n return 0;\n }\n\n return answerTemplate.position().top - this.element.offsetTop;\n }\n }, {\n key: \"leftOffsetFromTemplate\",\n get: function get() {\n var answerTemplate = this.answerTemplate;\n\n if (!answerTemplate || !this.element) {\n return 0;\n }\n\n return answerTemplate.position().left - this.element.offsetLeft;\n }\n }, {\n key: \"calculateAbsoluteTop\",\n value: function calculateAbsoluteTop(relativeTop) {\n // Use the template to determine the size of this clone,\n // since this clone shouldn't be fully rendered until this\n // calculation is done.\n if (!this.answerTemplate || !this.element) {\n return 0;\n }\n\n var el = this.answerTemplate[0];\n var canvas = this.element.closest('.answers').querySelector('.drag-and-drop-canvas');\n\n if (Ember.isEmpty(canvas)) {\n return 0;\n }\n\n var computedStyle = getComputedStyle(el) || el.currentStyle;\n var answerOuterHeight = el.offsetHeight;\n var answerInnerHeight = el.clientHeight - parseFloat(computedStyle.paddingTop) - parseFloat(computedStyle.paddingBottom); // This accounts for the margin on the answer, and how css translate positions according to\n // the inner coordinates, but position is calculated based on outer coordinates\n\n var halfOfAnswerHeight = answerOuterHeight / 2;\n var answerTopMargin = (answerOuterHeight - answerInnerHeight) / 2.0;\n var topDifferenceRelativeToDocument = canvas.getBoundingClientRect().top - this.element.getBoundingClientRect().top; // This sets the answers center to (0,0) on the svg coordinate plane\n\n var resetTopPosition = topDifferenceRelativeToDocument - halfOfAnswerHeight - answerTopMargin; // From (0,0) sets the position of the answer to the calculated centroid of the target\n\n var calculatedTop = resetTopPosition + relativeTop;\n return calculatedTop;\n }\n }, {\n key: \"calculateAbsoluteLeft\",\n value: function calculateAbsoluteLeft(relativeLeft) {\n // Use the template to determine the size of this clone,\n // since this clone shouldn't be fully rendered until this\n // calculation is done.\n if (!this.answerTemplate || !this.element) {\n return 0;\n }\n\n var el = this.answerTemplate[0];\n var canvas = this.element.closest('.answers').querySelector('.drag-and-drop-canvas');\n\n if (Ember.isEmpty(canvas)) {\n return 0;\n }\n\n var computedStyle = getComputedStyle(el) || el.currentStyle;\n var answerOuterWidth = el.offsetWidth;\n var answerInnerWidth = el.clientWidth - parseFloat(computedStyle.paddingLeft) - parseFloat(computedStyle.paddingRight); // This accounts for the margin on the answer, and how css translate positions according to\n // the inner coordinates, but position is calculated based on outer coordinates\n\n var halfOfAnswerWidth = answerOuterWidth / 2;\n var answerLeftMargin = (answerOuterWidth - answerInnerWidth) / 2;\n var leftDifferenceRelativeToDocument = canvas.getBoundingClientRect().left - this.element.getBoundingClientRect().left; // This sets the answers center to (0,0) on the svg coordinate plane\n\n var resetLeftPosition = leftDifferenceRelativeToDocument - halfOfAnswerWidth - answerLeftMargin; // From (0,0) sets the position of the answer to the calculated centroid of the target\n\n var calculatedLeft = resetLeftPosition + relativeLeft;\n return calculatedLeft;\n }\n }, {\n key: \"topOffset\",\n get: function get() {\n var matchId = this.args.answer.matchId;\n var manualPosition = this.args.answer.manualPosition;\n\n if (Ember.isEmpty(this.dragTopOffset)) {\n this.dragTopOffset = this.topOffsetFromTemplate;\n }\n\n if (this.isDragging) {\n return this.dragTopOffset;\n } else if (Ember.isPresent(matchId)) {\n var point = this.args.points.find(function (p) {\n return (p === null || p === void 0 ? void 0 : p.id) === matchId;\n });\n\n if (Ember.isEmpty(point)) {\n return 0;\n }\n\n var relativeTop = !Ember.isEmpty(point.callout) ? point.callout[1] : point.centroid[1];\n var absoluteTop = this.calculateAbsoluteTop(relativeTop);\n this.dragTopOffset = absoluteTop;\n return absoluteTop;\n } else if (this.isHiddenRegion && Ember.isPresent(manualPosition)) {\n var _absoluteTop = this.calculateAbsoluteTop(manualPosition[1]);\n\n this.dragTopOffset = _absoluteTop;\n return _absoluteTop;\n } else {\n this.dragTopOffset = 0;\n return this.topOffsetFromTemplate;\n }\n }\n }, {\n key: \"leftOffset\",\n get: function get() {\n var matchId = this.args.answer.matchId;\n var manualPosition = this.args.answer.manualPosition;\n\n if (Ember.isEmpty(this.dragLeftOffset)) {\n this.dragLeftOffset = this.leftOffsetFromTemplate;\n }\n\n if (this.isDragging) {\n return this.dragLeftOffset;\n } else if (Ember.isPresent(matchId)) {\n var point = this.args.points.find(function (p) {\n return (p === null || p === void 0 ? void 0 : p.id) === matchId;\n });\n\n if (Ember.isEmpty(point)) {\n return 0;\n }\n\n var relativeLeft = !Ember.isEmpty(point.callout) ? point.callout[0] : point.centroid[0];\n var absoluteLeft = this.calculateAbsoluteLeft(relativeLeft);\n this.dragLeftOffset = absoluteLeft;\n return absoluteLeft;\n } else if (this.isHiddenRegion && !Ember.isEmpty(manualPosition)) {\n var _absoluteLeft = this.calculateAbsoluteLeft(manualPosition[0]);\n\n this.dragLeftOffset = _absoluteLeft;\n return _absoluteLeft;\n } else {\n this.dragLeftOffset = 0;\n return this.leftOffsetFromTemplate;\n }\n }\n }, {\n key: \"templateAnswerWidth\",\n get: function get() {\n if (!this.answerTemplate) {\n return null;\n }\n\n return window.getComputedStyle(this.answerTemplate[0]).width;\n }\n }, {\n key: \"answerStyle\",\n get: function get() {\n var styleString = \"transform: translate(\".concat(this.leftOffset, \"px, \").concat(this.topOffset, \"px)\");\n var webkitStyleString = \"-webkit-\".concat(styleString);\n var additionalStyles = \"\";\n\n if (this.isClone) {\n additionalStyles += \" min-width: \".concat(this.templateAnswerWidth, \";\");\n }\n\n return Ember.String.htmlSafe(\"\".concat(styleString, \"; \").concat(webkitStyleString, \"; \").concat(additionalStyles));\n }\n }, {\n key: \"isActive\",\n get: function get() {\n return this.isDragging && this.args.currentDraggedOverZoneId;\n }\n }, {\n key: \"answerClasses\",\n get: function get() {\n var classes = \"\";\n\n if (this.isActive) {\n classes += \" drag-and-drop-answer-active\";\n }\n\n if (this.isDragging) {\n classes += \" drag-and-drop-answer-dragging\";\n } else {\n classes += \" drag-and-drop-answer-transition\";\n }\n\n if (this.isClone) {\n classes += \" drag-and-drop-answer-clone app-dnd-answer-clone\";\n } else {\n classes += \" drag-and-drop-answer-template app-dnd-answer-template\";\n }\n\n if (this.isHidden) {\n classes += \" drag-and-drop-answer-hidden\";\n }\n\n return classes;\n }\n }, {\n key: \"mouseDown\",\n value: function mouseDown(event) {\n // Prevent Default is required for Firefox to allow other\n // events to propagate through, such as mousemove\n event.preventDefault();\n\n if (event.button && event.button !== 0 || this.isTransitioning) {\n return;\n }\n\n if (this.isClone) {\n this.isDragging = true;\n }\n\n this.args.dragStartAction(this.args.answer, {\n x: event.clientX,\n y: event.clientY\n });\n }\n }, {\n key: \"mouseUpPlease\",\n value: function mouseUpPlease() {\n if (this.isDragging) {\n if (!this.args.currentDraggedOverZoneId && !this.isHiddenRegion) {\n this.isTransitioning = true;\n }\n\n this.isDragging = false;\n this.args.dragEndAction();\n }\n }\n }, {\n key: \"didInsertAnswer\",\n value: function didInsertAnswer(element) {\n var _this2 = this;\n\n this.element = element; // Ensure starting positions of clones are set before we start dragging\n\n this.dragLeftOffset = this.leftOffsetFromTemplate;\n this.dragTopOffset = this.topOffsetFromTemplate; // These two events need to be bound to the document rather\n // than the element itself\n\n var id = this.args.answer.id;\n (0, _jquery.default)(document).on(\"mouseup.\".concat(id, \" touchend.\").concat(id), function () {\n return _this2.mouseUpPlease();\n });\n (0, _jquery.default)(document).on(\"mousemove.\".concat(id, \" touchmove.\").concat(id), function (e) {\n return _this2.mouseMovePlease(e);\n });\n this.mathjaxManager.updateFormulas();\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(DragAndDropAnswer.prototype), \"willDestroy\", this).apply(this, arguments);\n\n var id = this.args.answer.id;\n (0, _jquery.default)(document).off(\"mouseup.\".concat(id));\n (0, _jquery.default)(document).off(\"touchend.\".concat(id));\n (0, _jquery.default)(document).off(\"mousemove.\".concat(id));\n (0, _jquery.default)(document).off(\"touchmove.\".concat(id));\n }\n }, {\n key: \"preventDefaultFunctionality\",\n value: function preventDefaultFunctionality(event) {\n // Needed to prevent the context menu from appearing when trying to drag an element\n event.preventDefault();\n }\n }, {\n key: \"onTransitionEnd\",\n value: function onTransitionEnd() {\n this.isTransitioning = false;\n }\n }, {\n key: \"mouseMovePlease\",\n value: function mouseMovePlease(event) {\n // Prevent default is needed to prevent the screen from scrolling when dragging an element\n event.preventDefault();\n\n if (!this.isDragging) {\n return;\n }\n\n var pageX = event.originalEvent.pageX;\n var pageY = event.originalEvent.pageY;\n\n if (event.originalEvent.touches) {\n var touch = event.originalEvent.touches[0];\n pageX = pageX || touch.pageX;\n pageY = pageY || touch.pageY;\n }\n\n if (pageX === 0) {\n return;\n }\n\n var el = this.element;\n var content = el.firstElementChild;\n var contentRect = content.getBoundingClientRect();\n var elRect = el.getBoundingClientRect();\n var scrollLeft = window.scrollX || document.documentElement.scrollLeft;\n var scrollTop = window.scrollY || document.documentElement.scrollTop;\n var elHeightHalf = content.offsetHeight / 2.0;\n var elWidthHalf = content.offsetWidth / 2.0;\n var x = pageX - elRect.left - scrollLeft - elWidthHalf - 10;\n var y = pageY - elRect.top - scrollTop - elHeightHalf;\n this.args.dragAction({\n x: contentRect.left + scrollLeft + elWidthHalf,\n y: contentRect.top + scrollTop + elHeightHalf\n });\n this.dragTopOffset = y;\n this.dragLeftOffset = x;\n }\n }]);\n\n return DragAndDropAnswer;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isDragging\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"isTransitioning\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"isHidden\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isClone\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"nonDrag\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"isHiddenRegion\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"mediaAssets\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAssets\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dragTopOffset\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"dragLeftOffset\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"answerTemplate\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"answerTemplate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"topOffset\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"topOffset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"leftOffset\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"leftOffset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"templateAnswerWidth\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"templateAnswerWidth\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"answerStyle\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"answerStyle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isActive\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"isActive\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"answerClasses\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"answerClasses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mouseDown\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"mouseDown\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mouseUpPlease\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"mouseUpPlease\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertAnswer\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"preventDefaultFunctionality\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"preventDefaultFunctionality\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onTransitionEnd\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"onTransitionEnd\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"mouseMovePlease\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"mouseMovePlease\"), _class.prototype)), _class));\n _exports.default = DragAndDropAnswer;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropAnswer);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-dot\", [\"exports\", \"student-app/components/dnd-drop-target\"], function (_exports, _dndDropTarget) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/utils\",0,\"student-app/components/dnd-drop-target\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"EJDXqK3S\",\n block: \"{\\\"symbols\\\":[\\\"@point\\\"],\\\"statements\\\":[[7,\\\"circle\\\",false],[12,\\\"cx\\\",[23,0,[\\\"cx\\\"]]],[12,\\\"cy\\\",[23,0,[\\\"cy\\\"]]],[12,\\\"r\\\",[23,0,[\\\"r\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"app-dnd-target creator-drag-and-drop__target-dot-svg draggableDropzone \\\",[28,\\\"if\\\",[[23,0,[\\\"isDraggedOver\\\"]],\\\"drag-and-drop-point-active\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertTarget\\\"]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-dot.hbs\"\n }\n });\n\n var DotSizeWithCallout = 4;\n var DotRadius = 8;\n var DragAndDropDot = (_dec = Ember.computed.or('args.point.left', 'zero'), _dec2 = Ember.computed.or('args.point.top', 'zero'), _dec3 = Ember.computed('args.point.callout'), (_class = /*#__PURE__*/function (_DndDropTarget) {\n _inherits(DragAndDropDot, _DndDropTarget);\n\n var _super = _createSuper(DragAndDropDot);\n\n function DragAndDropDot() {\n var _this;\n\n _classCallCheck(this, DragAndDropDot);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"zero\", 0);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cx\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cy\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DragAndDropDot, [{\n key: \"r\",\n get: function get() {\n if (!Ember.isEmpty(this.args.point.callout)) {\n return DotSizeWithCallout;\n } else {\n return DotRadius;\n }\n }\n }]);\n\n return DragAndDropDot;\n }(_dndDropTarget.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"cx\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cy\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"r\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"r\"), _class.prototype)), _class));\n _exports.default = DragAndDropDot;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropDot);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-existing-answer-choice\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/string\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{#if this.hasMediaAsset}}\n {{#if this.mediaAsset.isImage}}\n \"{{this.mediaAsset.altText}}\"/\n {{/if}}\n {{#if this.mediaAsset.isAudio}}\n \n {{/if}}\n {{else}}\n
{{this.answerBody}}
\n {{/if}}\n \n */\n {\n id: \"eYqbiapu\",\n block: \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[29,[\\\"app-existing-answer choice-answer choice-answer-spaced actionable \\\",[28,\\\"if\\\",[[23,0,[\\\"isSelected\\\"]],\\\"choice-answer-active\\\"],null]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"selectAnswer\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMediaAsset\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,0,[\\\"mediaAsset\\\",\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[23,0,[\\\"mediaAsset\\\",\\\"url\\\"]]],[10,\\\"class\\\",\\\"app-image creator-drag-and-drop__preview-answer-image\\\"],[11,\\\"alt\\\",[29,[[23,0,[\\\"mediaAsset\\\",\\\"altText\\\"]]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"mediaAsset\\\",\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\"],[[23,0,[\\\"mediaAsset\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-answer-body choice-body\\\"],[8],[1,[23,0,[\\\"answerBody\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-existing-answer-choice.hbs\"\n }\n });\n\n var DragAndDropExistingAnswerChoice = (_dec = Ember.computed('args.answer.body'), _dec2 = Ember.computed('args.{answer.id,selectedAnswer.id}'), _dec3 = Ember.computed.notEmpty('args.answer.body'), _dec4 = Ember.computed.alias('args.answer.mediaAssets.firstObject'), _dec5 = Ember.computed.notEmpty('mediaAsset'), _dec6 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropExistingAnswerChoice, _Component);\n\n var _super = _createSuper(DragAndDropExistingAnswerChoice);\n\n function DragAndDropExistingAnswerChoice() {\n var _this;\n\n _classCallCheck(this, DragAndDropExistingAnswerChoice);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isNotEditing\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mediaAsset\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAsset\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DragAndDropExistingAnswerChoice, [{\n key: \"answerBody\",\n get: function get() {\n return Ember.String.htmlSafe(this.args.answer.body);\n }\n }, {\n key: \"isSelected\",\n get: function get() {\n var _this$args$answer, _this$args$selectedAn;\n\n return ((_this$args$answer = this.args.answer) === null || _this$args$answer === void 0 ? void 0 : _this$args$answer.id) === ((_this$args$selectedAn = this.args.selectedAnswer) === null || _this$args$selectedAn === void 0 ? void 0 : _this$args$selectedAn.id);\n }\n }, {\n key: \"selectAnswer\",\n value: function selectAnswer() {\n this.args.selectAnswer(this.args.answer);\n }\n }]);\n\n return DragAndDropExistingAnswerChoice;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"answerBody\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"answerBody\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isSelected\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"isSelected\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"isNotEditing\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"mediaAsset\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAsset\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"selectAnswer\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"selectAnswer\"), _class.prototype)), _class));\n _exports.default = DragAndDropExistingAnswerChoice;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropExistingAnswerChoice);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-oval\", [\"exports\", \"student-app/components/dnd-drop-target\"], function (_exports, _dndDropTarget) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"student-app/components/dnd-drop-target\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"7TP0QpJd\",\n block: \"{\\\"symbols\\\":[\\\"@point\\\"],\\\"statements\\\":[[7,\\\"ellipse\\\",false],[12,\\\"cx\\\",[23,0,[\\\"cx\\\"]]],[12,\\\"cy\\\",[23,0,[\\\"cy\\\"]]],[12,\\\"rx\\\",[23,0,[\\\"rx\\\"]]],[12,\\\"ry\\\",[23,0,[\\\"ry\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"app-dnd-target creator-drag-and-drop__target-closed-region-svg draggableDropzone \\\",[28,\\\"if\\\",[[23,0,[\\\"isDraggedOver\\\"]],\\\"drag-and-drop-point-active\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertTarget\\\"]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-oval.hbs\"\n }\n });\n\n var DragAndDropOval = (_dec = Ember.computed.alias('args.point.left'), _dec2 = Ember.computed.alias('args.point.top'), _dec3 = Ember.computed.alias('args.point.rx'), _dec4 = Ember.computed.alias('args.point.ry'), (_class = /*#__PURE__*/function (_DndDropTarget) {\n _inherits(DragAndDropOval, _DndDropTarget);\n\n var _super = _createSuper(DragAndDropOval);\n\n function DragAndDropOval() {\n var _this;\n\n _classCallCheck(this, DragAndDropOval);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cx\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cy\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"rx\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"ry\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(DragAndDropOval);\n }(_dndDropTarget.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"cx\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"cy\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rx\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"ry\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = DragAndDropOval;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropOval);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-polygon\", [\"exports\", \"student-app/components/dnd-drop-target\"], function (_exports, _dndDropTarget) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"student-app/components/dnd-drop-target\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"OmkI7dlX\",\n block: \"{\\\"symbols\\\":[\\\"@point\\\"],\\\"statements\\\":[[7,\\\"polygon\\\",false],[12,\\\"points\\\",[23,0,[\\\"points\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"app-dnd-target creator-drag-and-drop__target-closed-region-svg draggableDropzone \\\",[28,\\\"if\\\",[[23,0,[\\\"isDraggedOver\\\"]],\\\"drag-and-drop-point-active\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertTarget\\\"]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-polygon.hbs\"\n }\n });\n\n var DragAndDropPolygon = (_dec = Ember.computed.alias('args.point.polygonPointsString'), (_class = /*#__PURE__*/function (_DndDropTarget) {\n _inherits(DragAndDropPolygon, _DndDropTarget);\n\n var _super = _createSuper(DragAndDropPolygon);\n\n function DragAndDropPolygon() {\n var _this;\n\n _classCallCheck(this, DragAndDropPolygon);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"points\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(DragAndDropPolygon);\n }(_dndDropTarget.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"points\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = DragAndDropPolygon;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropPolygon);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-primary-distractor-answer\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if this.hasMediaAssets}}\n {{#each this.answerMediaAssets as |asset|}}\n
\n {{#if asset.isImage}}\n \"{{asset.altText}}\"/\n {{/if}}\n {{#if asset.isAudio}}\n \n {{/if}}\n
\n {{/each}}\n {{else}}\n {{sanitize-and-escape @answer.body}}\n {{/if}}\n {{#unless @isDisabled}}\n \n {{/unless}}\n
\n \n */\n {\n id: \"KweLmLa9\",\n block: \"{\\\"symbols\\\":[\\\"asset\\\",\\\"@answer\\\",\\\"@isDisabled\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"app-draggable-distractor tag-list__tag \\\",[28,\\\"unless\\\",[[23,3,[]],\\\"tag-list__tag--closable\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"answerMediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-answer__media-asset\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\",true],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[10,\\\"class\\\",\\\"app-image creator-drag-and-drop__preview-answer-image\\\"],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"small-audio-player\\\",[],[[\\\"@asset\\\"],[[23,1,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,2,[\\\"body\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[4,\\\"unless\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"aria-label\\\",\\\"delete answer\\\"],[12,\\\"class\\\",\\\"app-delete-draggable-distractor tag-list__x icon icon-x\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"deleteAnswer\\\"]],[23,2,[]]],null]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-primary-distractor-answer.hbs\"\n }\n });\n\n var DragAndDropPrimaryDistractorAnswer = (_dec = Ember.computed.alias('args.answer.mediaAssets'), _dec2 = Ember.computed.notEmpty('answerMediaAssets'), _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropPrimaryDistractorAnswer, _Component);\n\n var _super = _createSuper(DragAndDropPrimaryDistractorAnswer);\n\n function DragAndDropPrimaryDistractorAnswer() {\n var _this;\n\n _classCallCheck(this, DragAndDropPrimaryDistractorAnswer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerMediaAssets\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAssets\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DragAndDropPrimaryDistractorAnswer, [{\n key: \"deleteAnswer\",\n value: function deleteAnswer() {\n this.args.delete(this.args.answer);\n }\n }]);\n\n return DragAndDropPrimaryDistractorAnswer;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"answerMediaAssets\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAssets\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"deleteAnswer\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAnswer\"), _class.prototype)), _class));\n _exports.default = DragAndDropPrimaryDistractorAnswer;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropPrimaryDistractorAnswer);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-question-toolbar\", [\"exports\", \"@glimmer/component\", \"student-app/api-requests/update-answer-request\", \"student-app/api-requests/delete-media-asset-request\", \"student-app/models/answer\"], function (_exports, _component, _updateAnswerRequest, _deleteMediaAssetRequest, _answer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@glimmer/tracking\",0,\"@glimmer/component\",0,\"student-app/api-requests/update-answer-request\",0,\"student-app/api-requests/delete-media-asset-request\",0,\"student-app/models/answer\"eaimeta@70e063a35619d71f\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n Drop Type:\n \n \n \n \n \n \n \n \n \n
\n \n Add Distractor Choice\n \n \n {{#if this.hasEditingDistractorAnswer}}\n \n \n
\n
\n
\n \n \n
\n \n \n
\n
\n {{#if this.distractorHasMediaAssets}}\n
\n {{#each this.distractorMediaAssets as |mediaAsset|}}\n {{#if mediaAsset.isImage }}\n
\n
\n \n
\n \"{{mediaAsset.altText}}\"\n
\n {{/if}}\n \n {{#if mediaAsset.isAudio }}\n
\n \n
\n {{/if}}\n {{/each}}\n
\n {{else}}\n \n {{/if}}\n
\n \n
\n {{/if}}\n
\n \n Add Callout\n \n
\n \n */\n {\n id: \"LuuMtjYv\",\n block: \"{\\\"symbols\\\":[\\\"mediaAsset\\\",\\\"@isDisabled\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-toolbar\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"question-toolbar__label\\\"],[8],[0,\\\"Drop Type:\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"aria-label\\\",\\\"dot mode\\\"],[12,\\\"class\\\",[29,[\\\"app-dot-mode question-toolbar__button question-toolbar__button--dot-mode \\\",[28,\\\"if\\\",[[23,0,[\\\"isDotMode\\\"]],\\\"question-toolbar__button--active\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"dotModeIsDisabled\\\"]],\\\"question-toolbar__button--disabled\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"activateDotMode\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[23,0,[\\\"isDotMode\\\"]],\\\"icon-dot-mode-white\\\",\\\"icon-dot-mode\\\"],null]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"aria-label\\\",\\\"rectangle mode\\\"],[12,\\\"class\\\",[29,[\\\"app-rectangle-region-mode question-toolbar__button question-toolbar__button--rectangle-mode \\\",[28,\\\"if\\\",[[23,0,[\\\"isRectangleMode\\\"]],\\\"question-toolbar__button--active\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"activateRectangleMode\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[23,0,[\\\"isRectangleMode\\\"]],\\\"icon-rectangle-mode-white\\\",\\\"icon-rectangle-mode\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"question-toolbar__button--disabled\\\"],null]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"aria-label\\\",\\\"oval mode\\\"],[12,\\\"class\\\",[29,[\\\"app-oval-region-mode question-toolbar__button question-toolbar__button--oval-mode \\\",[28,\\\"if\\\",[[23,0,[\\\"isOvalMode\\\"]],\\\"question-toolbar__button--active\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"activateOvalMode\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[23,0,[\\\"isOvalMode\\\"]],\\\"icon-circle-mode-white\\\",\\\"icon-circle-mode\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"question-toolbar__button--disabled\\\"],null]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"aria-label\\\",\\\"polygon mode\\\"],[12,\\\"class\\\",[29,[\\\"app-polygon-region-mode question-toolbar__button question-toolbar__button--polygon-mode \\\",[28,\\\"if\\\",[[23,0,[\\\"isPolygonMode\\\"]],\\\"question-toolbar__button--active\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"activatePolygonMode\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"icon \\\",[28,\\\"if\\\",[[23,0,[\\\"isPolygonMode\\\"]],\\\"icon-polygon-mode-white\\\",\\\"icon-polygon-mode\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,2,[]],\\\"question-toolbar__button--disabled\\\"],null]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-toolbar__button-wrapper\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"id\\\",\\\"add-distractor-choice-btn\\\"],[12,\\\"class\\\",[29,[\\\"app-add-draggable-distractor question-toolbar__button \\\",[28,\\\"if\\\",[[23,2,[]],\\\"question-toolbar__button--disabled\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"createDistractorAnswer\\\"]]]],[8],[0,\\\"\\\\n Add Distractor Choice\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasEditingDistractorAnswer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"pop-over\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"ember-tether\\\",[],[[\\\"@target\\\",\\\"@targetAttachment\\\",\\\"@targetOffset\\\",\\\"@classNames\\\",\\\"@attachment\\\"],[\\\"#add-distractor-choice-btn\\\",\\\"middle center\\\",\\\"20px 0\\\",\\\"pop-over app-answer-editor\\\",\\\"top center\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__inner\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__pip\\\"],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pop-over__upper-button-group\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white btn-mini upload-media-button app-upload-answer-media\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openUploadModal\\\"]]]],[8],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-camera\\\"],[8],[9],[0,\\\" Upload Media\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"pull-right\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border reverse-link app-cancel-answer-editor\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"cancelDistractorAnswer\\\"]]]],[8],[0,\\\"Cancel\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-save-answer btn btn-blue btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"saveDistractorAnswer\\\"]]]],[8],[0,\\\"\\\\n Save\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"distractorHasMediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-assets drag-and-drop-answer__media-assets\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"distractorMediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-asset\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white delete btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeAsset\\\"]],[23,1,[]]],null]]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"app-image media-image\\\"],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[11,\\\"data-id\\\",[29,[[23,1,[\\\"id\\\"]]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-audio\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"large-audio-player\\\",[],[[\\\"@asset\\\",\\\"@canEdit\\\",\\\"@removeAsset\\\"],[[23,1,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"removeAsset\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"rich-text-editor\\\",[],[[\\\"@width\\\",\\\"@value\\\",\\\"@field_id\\\",\\\"@autofocus\\\",\\\"@buttonSet\\\",\\\"@changeAction\\\"],[400,[23,0,[\\\"distractorBody\\\"]],\\\"distractor_answer_body\\\",true,\\\"shortButtons\\\",[23,0,[\\\"distractorBodyDidUpdate\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"app-callout-mode question-toolbar__button \\\",[28,\\\"if\\\",[[23,0,[\\\"isCalloutMode\\\"]],\\\"question-toolbar__button--active\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"calloutModeIsDisabled\\\"]],\\\"question-toolbar__button--disabled\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"activateCalloutMode\\\"]]]],[8],[0,\\\"\\\\n Add Callout\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-question-toolbar.hbs\"\n }\n });\n\n var DragAndDropQuestionToolbar = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember.computed.alias('editingDistractorAnswer.mediaAssets'), _dec6 = Ember.computed.notEmpty('distractorMediaAssets'), _dec7 = Ember.computed.notEmpty('editingDistractorAnswer'), _dec8 = Ember.computed.readOnly('args.question.hideDropRegions'), _dec9 = Ember.computed.or('args.isDisabled', 'isHiddenRegions'), _dec10 = Ember.computed.readOnly('calloutModeIsDisabled'), _dec11 = Ember.computed('args.{isDisabled,targetCreateModes,currentMode}'), _dec12 = Ember.computed('args.{isDisabled,targetCreateModes,currentMode}'), _dec13 = Ember.computed('args.{isDisabled,targetCreateModes,currentMode}'), _dec14 = Ember.computed('args.{isDisabled,targetCreateModes,currentMode}'), _dec15 = Ember.computed('args.{isDisabled,targetCreateModes,currentMode}'), _dec16 = Ember._action, _dec17 = Ember._action, _dec18 = Ember._action, _dec19 = Ember._action, _dec20 = Ember._action, _dec21 = Ember._action, _dec22 = Ember._action, _dec23 = Ember._action, _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropQuestionToolbar, _Component);\n\n var _super = _createSuper(DragAndDropQuestionToolbar);\n\n function DragAndDropQuestionToolbar() {\n var _this;\n\n _classCallCheck(this, DragAndDropQuestionToolbar);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"flashService\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"editingDistractorAnswer\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"distractorBody\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"distractorMediaAssets\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"distractorHasMediaAssets\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasEditingDistractorAnswer\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isHiddenRegions\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"calloutModeIsDisabled\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"dotModeIsDisabled\", _descriptor10, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DragAndDropQuestionToolbar, [{\n key: \"isDotMode\",\n get: function get() {\n if (this.args.isDisabled) {\n return false;\n }\n\n return this.args.targetCreateModes.dot === this.args.currentMode;\n }\n }, {\n key: \"isRectangleMode\",\n get: function get() {\n if (this.args.isDisabled) {\n return false;\n }\n\n return this.args.targetCreateModes.rectangle === this.args.currentMode;\n }\n }, {\n key: \"isOvalMode\",\n get: function get() {\n if (this.args.isDisabled) {\n return false;\n }\n\n return this.args.targetCreateModes.oval === this.args.currentMode;\n }\n }, {\n key: \"isPolygonMode\",\n get: function get() {\n if (this.args.isDisabled) {\n return false;\n }\n\n return this.args.targetCreateModes.polygon === this.args.currentMode;\n }\n }, {\n key: \"isCalloutMode\",\n get: function get() {\n if (this.args.isDisabled) {\n return false;\n }\n\n return this.args.targetCreateModes.callout === this.args.currentMode;\n }\n }, {\n key: \"clearDistractorAnswer\",\n value: function clearDistractorAnswer() {\n if (this.args.isDisabled) {\n return;\n }\n\n this.editingDistractorAnswer = null;\n this.distractorBody = null;\n }\n }, {\n key: \"updateCurrentMode\",\n value: function updateCurrentMode(mode) {\n if (this.args.isDisabled) {\n return;\n }\n\n this.args.updateCurrentMode(mode);\n }\n }, {\n key: \"activateDotMode\",\n value: function activateDotMode() {\n if (this.dotModeIsDisabled) {\n return;\n }\n\n this.updateCurrentMode(this.args.targetCreateModes.dot);\n }\n }, {\n key: \"activateRectangleMode\",\n value: function activateRectangleMode() {\n if (this.args.isDisabled) {\n return;\n }\n\n this.updateCurrentMode(this.args.targetCreateModes.rectangle);\n }\n }, {\n key: \"activateOvalMode\",\n value: function activateOvalMode() {\n if (this.args.isDisabled) {\n return;\n }\n\n this.updateCurrentMode(this.args.targetCreateModes.oval);\n }\n }, {\n key: \"activatePolygonMode\",\n value: function activatePolygonMode() {\n if (this.args.isDisabled) {\n return;\n }\n\n this.updateCurrentMode(this.args.targetCreateModes.polygon);\n }\n }, {\n key: \"activateCalloutMode\",\n value: function activateCalloutMode() {\n if (this.calloutModeIsDisabled) {\n return;\n }\n\n this.updateCurrentMode(this.args.targetCreateModes.callout);\n }\n }, {\n key: \"removeAsset\",\n value: function () {\n var _removeAsset = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(asset) {\n var answer, request;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!this.args.isDisabled) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 2:\n answer = this.editingDistractorAnswer;\n request = new _deleteMediaAssetRequest.DeleteMediaAssetRequest({\n mediaAssetId: asset.id,\n attacheeId: answer.id,\n attacheeType: \"Answer\"\n });\n _context.prev = 4;\n _context.next = 7;\n return this.apiClient.post('media-assets/delete', request);\n\n case 7:\n answer.mediaAssets.removeObject(asset);\n _context.next = 13;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context[\"catch\"](4);\n this.flashService.error('Error: Could not remove asset.', _context.t0);\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[4, 10]]);\n }));\n\n function removeAsset(_x) {\n return _removeAsset.apply(this, arguments);\n }\n\n return removeAsset;\n }()\n }, {\n key: \"createDistractorAnswer\",\n value: function () {\n var _createDistractorAnswer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var answer;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!this.args.isDisabled) {\n _context2.next = 2;\n break;\n }\n\n return _context2.abrupt(\"return\");\n\n case 2:\n _context2.prev = 2;\n _context2.next = 5;\n return this.apiClient.fetchWithParams('answers/create', _answer.default, {\n questionId: this.args.question.id,\n primary: true,\n distractor: true\n });\n\n case 5:\n answer = _context2.sent;\n this.editingDistractorAnswer = answer;\n this.args.question.answers.pushObject(answer);\n _context2.next = 13;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t0 = _context2[\"catch\"](2);\n this.flashService.error('Error: Could not create distractor.', _context2.t0);\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 10]]);\n }));\n\n function createDistractorAnswer() {\n return _createDistractorAnswer.apply(this, arguments);\n }\n\n return createDistractorAnswer;\n }()\n }, {\n key: \"saveDistractorAnswer\",\n value: function () {\n var _saveDistractorAnswer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var answer, updateAnswerRequest;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!this.args.isDisabled) {\n _context3.next = 2;\n break;\n }\n\n return _context3.abrupt(\"return\");\n\n case 2:\n answer = this.editingDistractorAnswer;\n answer.body = this.distractorBody;\n _context3.prev = 4;\n updateAnswerRequest = (0, _updateAnswerRequest.convertAnswerToUpdateAnswerRequest)(answer);\n _context3.next = 8;\n return this.apiClient.post('answers/update', updateAnswerRequest);\n\n case 8:\n this.clearDistractorAnswer();\n _context3.next = 14;\n break;\n\n case 11:\n _context3.prev = 11;\n _context3.t0 = _context3[\"catch\"](4);\n this.flashService.error('Error: Could not save distractor.', _context3.t0);\n\n case 14:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[4, 11]]);\n }));\n\n function saveDistractorAnswer() {\n return _saveDistractorAnswer.apply(this, arguments);\n }\n\n return saveDistractorAnswer;\n }()\n }, {\n key: \"cancelDistractorAnswer\",\n value: function () {\n var _cancelDistractorAnswer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n if (!this.args.isDisabled) {\n _context4.next = 2;\n break;\n }\n\n return _context4.abrupt(\"return\");\n\n case 2:\n _context4.prev = 2;\n _context4.next = 5;\n return this.apiClient.post('answers/delete', this.editingDistractorAnswer.id);\n\n case 5:\n this.args.question.answers.removeObject(this.editingDistractorAnswer);\n this.clearDistractorAnswer();\n _context4.next = 12;\n break;\n\n case 9:\n _context4.prev = 9;\n _context4.t0 = _context4[\"catch\"](2);\n this.flashService.error('Error: Could not delete distractor.', _context4.t0);\n\n case 12:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[2, 9]]);\n }));\n\n function cancelDistractorAnswer() {\n return _cancelDistractorAnswer.apply(this, arguments);\n }\n\n return cancelDistractorAnswer;\n }()\n }, {\n key: \"distractorBodyDidUpdate\",\n value: function distractorBodyDidUpdate(value) {\n if (this.args.isDisabled) {\n return;\n }\n\n this.distractorBody = value;\n }\n }, {\n key: \"openUploadModal\",\n value: function openUploadModal() {\n if (this.args.isDisabled) {\n return;\n }\n\n this.args.openUploadModal(this.editingDistractorAnswer);\n }\n }]);\n\n return DragAndDropQuestionToolbar;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"flashService\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"editingDistractorAnswer\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"distractorBody\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"distractorMediaAssets\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"distractorHasMediaAssets\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hasEditingDistractorAnswer\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"isHiddenRegions\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"calloutModeIsDisabled\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"dotModeIsDisabled\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"isDotMode\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"isDotMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isRectangleMode\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"isRectangleMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isOvalMode\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"isOvalMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isPolygonMode\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"isPolygonMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isCalloutMode\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"isCalloutMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateCurrentMode\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"updateCurrentMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"activateDotMode\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"activateDotMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"activateRectangleMode\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"activateRectangleMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"activateOvalMode\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"activateOvalMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"activatePolygonMode\", [_dec20], Object.getOwnPropertyDescriptor(_class.prototype, \"activatePolygonMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"activateCalloutMode\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"activateCalloutMode\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAsset\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAsset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"createDistractorAnswer\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"createDistractorAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveDistractorAnswer\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"saveDistractorAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"cancelDistractorAnswer\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelDistractorAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"distractorBodyDidUpdate\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"distractorBodyDidUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openUploadModal\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"openUploadModal\"), _class.prototype)), _class));\n _exports.default = DragAndDropQuestionToolbar;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropQuestionToolbar);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-rectangle\", [\"exports\", \"student-app/components/dnd-drop-target\"], function (_exports, _dndDropTarget) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"student-app/components/dnd-drop-target\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n */\n {\n id: \"kf0BpwPO\",\n block: \"{\\\"symbols\\\":[\\\"@point\\\"],\\\"statements\\\":[[7,\\\"rect\\\",false],[12,\\\"x\\\",[23,0,[\\\"x\\\"]]],[12,\\\"y\\\",[23,0,[\\\"y\\\"]]],[12,\\\"width\\\",[23,0,[\\\"width\\\"]]],[12,\\\"height\\\",[23,0,[\\\"height\\\"]]],[12,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[12,\\\"id\\\",[23,0,[\\\"id\\\"]]],[12,\\\"class\\\",[29,[\\\"app-dnd-target creator-drag-and-drop__target-closed-region-svg draggableDropzone \\\",[28,\\\"if\\\",[[23,0,[\\\"isDraggedOver\\\"]],\\\"drag-and-drop-point-active\\\"],null]]]],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertTarget\\\"]]]],[8],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-rectangle.hbs\"\n }\n });\n\n var DragAndDropRectangle = (_dec = Ember.computed.alias('args.point.left'), _dec2 = Ember.computed.alias('args.point.top'), _dec3 = Ember.computed.alias('args.point.w'), _dec4 = Ember.computed.alias('args.point.h'), (_class = /*#__PURE__*/function (_DndDropTarget) {\n _inherits(DragAndDropRectangle, _DndDropTarget);\n\n var _super = _createSuper(DragAndDropRectangle);\n\n function DragAndDropRectangle() {\n var _this;\n\n _classCallCheck(this, DragAndDropRectangle);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"x\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"y\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"width\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"height\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(DragAndDropRectangle);\n }(_dndDropTarget.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"x\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"y\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"width\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"height\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = DragAndDropRectangle;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropRectangle);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-review-tooltip\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/object/computed\",0,\"@ember/string\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n \n \n {{this.tooltipText}}\n \n
\n \n */\n {\n id: \"0TLO0nZH\",\n block: \"{\\\"symbols\\\":[\\\"@isShowingCorrectAnswers\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertTooltip\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"data-answer-id\\\",[29,[[23,0,[\\\"answerId\\\"]]]]],[11,\\\"data-clone-id\\\",[29,[[23,0,[\\\"cloneId\\\"]]]]],[11,\\\"class\\\",[29,[\\\"drag-and-drop-tooltip app-answer app-body app-dnd-tooltip \\\",[28,\\\"if\\\",[[23,0,[\\\"correct\\\"]],\\\"app-correct drag-and-drop-tooltip--correct\\\",\\\"app-incorrect drag-and-drop-tooltip--incorrect\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,1,[]],\\\"app-showing-correct-answer\\\",\\\"app-showing-selected-answer\\\"],null]]]],[11,\\\"style\\\",[23,0,[\\\"styleText\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[[28,\\\"if\\\",[[23,0,[\\\"correct\\\"]],\\\"correct\\\",\\\"incorrect\\\"],null]]]],[8],[9],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"tooltipText\\\"]],false],[0,\\\"\\\\n \\\"],[5,\\\"media-assets\\\",[],[[\\\"@mediaAssets\\\",\\\"@showSmallAudioPlayer\\\"],[[23,0,[\\\"mediaAssets\\\"]],true]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-review-tooltip.hbs\"\n }\n });\n\n var DragAndDropReviewTooltip = (_dec = Ember._tracked, _dec2 = Ember._action, _dec3 = Ember.computed.readOnly('args.tooltip.mediaAssets'), _dec4 = Ember.computed.notEmpty('mediaAssets'), _dec5 = Ember.computed('args.tooltip.text'), _dec6 = Ember.computed.notEmpty('args.tooltip.text'), _dec7 = Ember.computed.or('hasBody', 'hasMediaAssets'), _dec8 = Ember.computed.readOnly('args.tooltip.id'), _dec9 = Ember.computed.readOnly('args.tooltip.cloneId'), _dec10 = Ember.computed.readOnly('args.tooltip.correct'), _dec11 = Ember.computed.notEmpty('args.tooltip.manualPosition'), _dec12 = Ember.computed.or('args.tooltip.scaledCallout', 'args.tooltip.callout'), _dec13 = Ember.computed.notEmpty('callout'), _dec14 = Ember.computed('hasManualPosition', 'callout.[]', 'args.tooltip.{centroid.[],manualPosition.[]}'), _dec15 = Ember.computed('element', 'tooltipPosition.[]'), _dec16 = Ember.computed('element', 'tooltipPosition.[]'), _dec17 = Ember.computed('tooltipTop', 'tooltipLeft'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropReviewTooltip, _Component);\n\n var _super = _createSuper(DragAndDropReviewTooltip);\n\n function DragAndDropReviewTooltip() {\n var _this;\n\n _classCallCheck(this, DragAndDropReviewTooltip);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"element\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mediaAssets\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAssets\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasBody\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isVisible\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerId\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cloneId\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"correct\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasManualPosition\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"callout\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasCallout\", _descriptor11, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DragAndDropReviewTooltip, [{\n key: \"didInsertTooltip\",\n value: function didInsertTooltip(element) {\n this.element = element;\n }\n }, {\n key: \"tooltipText\",\n get: function get() {\n return Ember.String.htmlSafe(this.args.tooltip.text);\n }\n }, {\n key: \"tooltipPosition\",\n get: function get() {\n if (this.hasCallout) {\n return this.callout;\n }\n\n return this.hasManualPosition ? this.args.tooltip.manualPosition : this.args.tooltip.centroid;\n }\n }, {\n key: \"tooltipTop\",\n get: function get() {\n if (this.element && this.element.firstElementChild) {\n return this.tooltipPosition[1] - this.element.firstElementChild.offsetHeight / 2.0;\n }\n\n return null;\n }\n }, {\n key: \"tooltipLeft\",\n get: function get() {\n if (this.element && this.element.firstElementChild) {\n return this.tooltipPosition[0] - this.element.firstElementChild.offsetWidth / 2.0;\n }\n\n return null;\n }\n }, {\n key: \"styleText\",\n get: function get() {\n var styles = \"position:absolute; left: \".concat(this.tooltipLeft, \"px; top: \").concat(this.tooltipTop, \"px;\");\n\n if (!this.isVisible) {\n styles += \"display: none;\";\n }\n\n return Ember.String.htmlSafe(styles);\n }\n }]);\n\n return DragAndDropReviewTooltip;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"didInsertTooltip\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertTooltip\"), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"mediaAssets\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAssets\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"tooltipText\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"tooltipText\"), _class.prototype), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"hasBody\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isVisible\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"answerId\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"cloneId\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"correct\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"hasManualPosition\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"callout\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"hasCallout\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"tooltipPosition\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"tooltipPosition\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"tooltipTop\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"tooltipTop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"tooltipLeft\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"tooltipLeft\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"styleText\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"styleText\"), _class.prototype)), _class));\n _exports.default = DragAndDropReviewTooltip;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropReviewTooltip);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-target-dispatcher\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/string\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n {{#if this.isReviewing }}\n \n {{#each @points as |point|}}\n \n {{/each}}\n \n \n {{#each @tooltipsToShow as |tooltip|}}\n \n {{/each}}\n {{else}}\n \n {{#unless this.hiddenRegions}}\n {{#each @points as |point|}}\n \n {{/each}}\n {{/unless}}\n \n {{/if}}\n
\n \n
\n
\n
\n \n */\n {\n id: \"hMVST1pq\",\n block: \"{\\\"symbols\\\":[\\\"point\\\",\\\"tooltip\\\",\\\"point\\\",\\\"@dragInfo\\\",\\\"@points\\\",\\\"@response\\\",\\\"@isShowingCorrectAnswers\\\",\\\"@tooltipsToShow\\\",\\\"@image\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"drag-and-drop-canvas-container \\\",[28,\\\"if\\\",[[23,0,[\\\"smallView\\\"]],\\\"drag-and-drop-canvas-container--small\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"drag-and-drop-image-container \\\",[28,\\\"if\\\",[[23,0,[\\\"smallView\\\"]],\\\"drag-and-drop-image-container--small\\\"],null]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isReviewing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"svg\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-canvas\\\"],[11,\\\"data-response-id\\\",[29,[[23,6,[\\\"id\\\"]]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"callout-wrapper\\\",[],[[\\\"@componentName\\\",\\\"@point\\\"],[[23,3,[\\\"targetComponentName\\\"]],[23,3,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,8,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-review-tooltip\\\",[],[[\\\"@tooltip\\\",\\\"@isShowingCorrectAnswers\\\"],[[23,2,[]],[23,7,[]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"svg\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-canvas\\\"],[11,\\\"data-response-id\\\",[29,[[23,6,[\\\"id\\\"]]]]],[11,\\\"style\\\",[23,0,[\\\"dndInterfaceStyles\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,0,[\\\"hiddenRegions\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"callout-wrapper\\\",[],[[\\\"@componentName\\\",\\\"@point\\\",\\\"@dragInfo\\\",\\\"@draggedOverAction\\\",\\\"@draggedOutAction\\\"],[[23,1,[\\\"targetComponentName\\\"]],[23,1,[]],[23,4,[]],[23,0,[\\\"draggedOver\\\"]],[23,0,[\\\"draggedOut\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop-image__wrapper\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"img\\\",true],[11,\\\"style\\\",[23,0,[\\\"dndInterfaceStyles\\\"]]],[11,\\\"draggable\\\",false],[11,\\\"class\\\",[29,[\\\"drag-and-drop-image \\\",[28,\\\"if\\\",[[23,0,[\\\"smallView\\\"]],\\\"drag-and-drop-image--small\\\"],null]]]],[11,\\\"src\\\",[23,9,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,9,[\\\"altText\\\"]]]]],[11,\\\"data-asset-id\\\",[23,9,[\\\"id\\\"]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-target-dispatcher.hbs\"\n }\n });\n\n var DragAndDropTargetDispatcher = (_dec = Ember.computed('args.imageLoaded'), _dec2 = Ember.computed.readOnly('args.question.hideDropRegions'), _dec3 = Ember.computed('imageLoaded'), _dec4 = Ember._action, _dec5 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropTargetDispatcher, _Component);\n\n var _super = _createSuper(DragAndDropTargetDispatcher);\n\n function DragAndDropTargetDispatcher() {\n var _this;\n\n _classCallCheck(this, DragAndDropTargetDispatcher);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hiddenRegions\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DragAndDropTargetDispatcher, [{\n key: \"imageLoaded\",\n get: function get() {\n var _this$args$imageLoade;\n\n return (_this$args$imageLoade = this.args.imageLoaded) !== null && _this$args$imageLoade !== void 0 ? _this$args$imageLoade : true;\n }\n }, {\n key: \"isReviewing\",\n get: function get() {\n var _this$args$isReviewin;\n\n return (_this$args$isReviewin = this.args.isReviewing) !== null && _this$args$isReviewin !== void 0 ? _this$args$isReviewin : false;\n }\n }, {\n key: \"smallView\",\n get: function get() {\n var _this$args$smallView;\n\n return (_this$args$smallView = this.args.smallView) !== null && _this$args$smallView !== void 0 ? _this$args$smallView : false;\n }\n }, {\n key: \"dndInterfaceStyles\",\n get: function get() {\n var value = this.imageLoaded ? 1 : 0;\n return Ember.String.htmlSafe(\"opacity: \".concat(value, \";\"));\n }\n }, {\n key: \"draggedOver\",\n value: function draggedOver(id) {\n this.args.draggedOver(id);\n }\n }, {\n key: \"draggedOut\",\n value: function draggedOut() {\n this.args.draggedOut();\n }\n }]);\n\n return DragAndDropTargetDispatcher;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"imageLoaded\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"imageLoaded\"), _class.prototype), _descriptor = _applyDecoratedDescriptor(_class.prototype, \"hiddenRegions\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"dndInterfaceStyles\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"dndInterfaceStyles\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"draggedOver\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"draggedOver\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"draggedOut\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"draggedOut\"), _class.prototype)), _class));\n _exports.default = DragAndDropTargetDispatcher;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropTargetDispatcher);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-with-snap-question-analysis\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/component\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n \n \n \n \n \n \n {{#each this.answers as |answer|}}\n \n \n \n \n {{/each}}\n \n
ChoicePlacement
\n
\n {{sanitize-and-escape answer.body}}\n \n \n
\n
\n \n
\n \n {{#if this.scoringDetails}}\n

Scoring

\n
{{this.scoringDetails}}
\n {{/if}}\n \n */\n {\n id: \"Y/IQivBz\",\n block: \"{\\\"symbols\\\":[\\\"answer\\\",\\\"@selectAssessmentResponseAction\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"question-results-table\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"question-results-table__header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"question-results-table__data-column\\\"],[8],[0,\\\"Choice\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"question-results-table__percent-column\\\"],[8],[0,\\\"Placement\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"answers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-answer question-results-table__row\\\"],[11,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-answer-body\\\"],[8],[0,\\\"\\\\n \\\"],[1,[28,\\\"sanitize-and-escape\\\",[[23,1,[\\\"body\\\"]]],null],false],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"answer-media-assets\\\",[],[[\\\"@mediaAssets\\\"],[[23,1,[\\\"mediaAssets\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"question-results-table__percent-data\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"answer-performance-percent-bar\\\",[],[[\\\"@answer\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponse\\\"],[[23,1,[]],[23,0,[\\\"showStudentResults\\\"]],[23,2,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"scoringDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"content-title\\\"],[8],[0,\\\"Scoring\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-scoring-details\\\"],[8],[1,[23,0,[\\\"scoringDetails\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-with-snap-question-analysis.hbs\"\n }\n });\n\n var DragAndDropWithSnapQuestionAnalysis = (_dec = Ember.computed('result.{scoringAlgorithm,scoringMetadata}', 'answers.[]'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropWithSnapQuestionAnalysis, _Component);\n\n var _super = _createSuper(DragAndDropWithSnapQuestionAnalysis);\n\n function DragAndDropWithSnapQuestionAnalysis() {\n _classCallCheck(this, DragAndDropWithSnapQuestionAnalysis);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(DragAndDropWithSnapQuestionAnalysis, [{\n key: \"result\",\n get: function get() {\n var _this$args$result;\n\n return (_this$args$result = this.args.result) !== null && _this$args$result !== void 0 ? _this$args$result : null;\n }\n }, {\n key: \"answers\",\n get: function get() {\n var _this$args$answers;\n\n return (_this$args$answers = this.args.answers) !== null && _this$args$answers !== void 0 ? _this$args$answers : [];\n }\n }, {\n key: \"showStudentResults\",\n get: function get() {\n var _this$args$showStuden;\n\n return (_this$args$showStuden = this.args.showStudentResults) !== null && _this$args$showStuden !== void 0 ? _this$args$showStuden : true;\n }\n }, {\n key: \"scoringDetails\",\n get: function get() {\n var numOfAnswers = this.answers.length;\n var percAnswers = (100 / numOfAnswers).toFixed(1).replace(/\\.0$/, '');\n\n switch (this.result.scoringAlgorithm) {\n case 'all_or_nothing':\n {\n return \"To receive credit for this question, all answers must be correctly positioned.\";\n }\n\n case 'perc_of_matches':\n {\n return \"Each correctly positioned item is worth \".concat(percAnswers, \"%.\");\n }\n\n case 'partial_credit_bands':\n {\n var scoringInfo = this.result.scoringMetadata.bands.sortBy('low').map(function (b) {\n return \"below \".concat(b.high, \"% correct = \").concat(b.percent, \"% credit\");\n }).join('; ');\n return \"This question is scored as follows: \".concat(scoringInfo, \".\");\n }\n\n default:\n {\n return null;\n }\n }\n }\n }]);\n\n return DragAndDropWithSnapQuestionAnalysis;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"scoringDetails\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"scoringDetails\"), _class.prototype)), _class));\n _exports.default = DragAndDropWithSnapQuestionAnalysis;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropWithSnapQuestionAnalysis);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-with-snap-question-form\", [\"exports\", \"@glimmer/component\", \"student-app/utils/utils\", \"student-app/models/base-model\", \"student-app/models/match\"], function (_exports, _component, _utils, _baseModel, _match) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class3, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _dec28, _dec29, _dec30, _dec31, _class5, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _dec52, _dec53, _dec54, _dec55, _dec56, _dec57, _dec58, _dec59, _dec60, _dec61, _class7, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, _descriptor45, _descriptor46, _descriptor47;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/service\",0,\"@glimmer/component\",0,\"student-app/utils/utils\",0,\"@ember/object/internals\",0,\"student-app/models/base-model\",0,\"student-app/models/match\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if @showAnswerShade}}\n
\n \n
\n Answers Hidden\n
\n {{/if}}\n
\n
\n {{#each this.draggableAnswers as |answer|}}\n \n {{/each}}\n \n {{#each @answerDuplicates as |answer|}}\n \n {{/each}}\n
\n \n \n
\n
\n \n */\n {\n id: \"Sqs0M2AU\",\n block: \"{\\\"symbols\\\":[\\\"answer\\\",\\\"answer\\\",\\\"@showAnswerShade\\\",\\\"@answerDuplicates\\\",\\\"@response\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"question-answer-container\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertQuestion\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"answer-shade-indicator no-print\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"answer-shade\\\"],[10,\\\"alt\\\",\\\"Answer shade\\\"],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n Answers Hidden\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"answers \\\",[28,\\\"if\\\",[[23,3,[]],\\\"answers-hidden\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-matching-options drag-and-drop-options-container\\\"],[10,\\\"id\\\",\\\"matching-options\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"draggableAnswers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-answer\\\",[],[[\\\"@answer\\\",\\\"@question\\\",\\\"@points\\\",\\\"@dragAction\\\",\\\"@dragStartAction\\\",\\\"@dragEndAction\\\",\\\"@currentDraggedOverZoneId\\\"],[[23,2,[]],[23,0,[\\\"question\\\"]],[23,0,[\\\"dropTargets\\\"]],[23,0,[\\\"drag\\\"]],[23,0,[\\\"dragStart\\\"]],[23,0,[\\\"dragEnd\\\"]],[23,0,[\\\"currentDraggedOverZoneId\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"drag-and-drop-answer\\\",[],[[\\\"@answer\\\",\\\"@question\\\",\\\"@points\\\",\\\"@dragAction\\\",\\\"@dragStartAction\\\",\\\"@dragEndAction\\\",\\\"@currentDraggedOverZoneId\\\"],[[23,1,[]],[23,0,[\\\"question\\\"]],[23,0,[\\\"dropTargets\\\"]],[23,0,[\\\"drag\\\"]],[23,0,[\\\"dragStart\\\"]],[23,0,[\\\"dragEnd\\\"]],[23,0,[\\\"currentDraggedOverZoneId\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"drag-and-drop-target-dispatcher\\\",[],[[\\\"@response\\\",\\\"@question\\\",\\\"@points\\\",\\\"@image\\\",\\\"@matches\\\",\\\"@dragInfo\\\",\\\"@imageLoaded\\\",\\\"@draggedOver\\\",\\\"@draggedOut\\\"],[[23,5,[]],[23,0,[\\\"question\\\"]],[23,0,[\\\"dropTargets\\\"]],[23,0,[\\\"questionImage\\\"]],[23,0,[\\\"matches\\\"]],[23,0,[\\\"dragInfo\\\"]],[23,0,[\\\"imageLoaded\\\"]],[23,0,[\\\"draggedOver\\\"]],[23,0,[\\\"draggedOut\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-with-snap-question-form.hbs\"\n }\n });\n\n var AnswerClone = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(AnswerClone, _BaseModel);\n\n var _super = _createSuper(AnswerClone);\n\n function AnswerClone() {\n var _this;\n\n _classCallCheck(this, AnswerClone);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isClone\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cloneId\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"matchId\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"manualPosition\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"nonDrag\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"originalId\", _descriptor7, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(AnswerClone);\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isClone\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"cloneId\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"matchId\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"manualPosition\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"nonDrag\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"originalId\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n\n window.__CLASSIC_OWN_CLASSES__.set(AnswerClone, true);\n\n var DropTarget = (_dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember._tracked, _dec12 = Ember._tracked, _dec13 = Ember._tracked, _dec14 = Ember._tracked, _dec15 = Ember._tracked, _dec16 = Ember._tracked, _dec17 = Ember._tracked, _dec18 = Ember._tracked, _dec19 = Ember._tracked, _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember._tracked, _dec23 = Ember._tracked, _dec24 = Ember._tracked, _dec25 = Ember._tracked, _dec26 = Ember._tracked, _dec27 = Ember._tracked, (_class3 = /*#__PURE__*/function (_BaseModel2) {\n _inherits(DropTarget, _BaseModel2);\n\n var _super2 = _createSuper(DropTarget);\n\n function DropTarget() {\n var _this2;\n\n _classCallCheck(this, DropTarget);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _super2.call.apply(_super2, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"id\", _descriptor8, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"position\", _descriptor9, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"callout\", _descriptor10, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"answer\", _descriptor11, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"centroid\", _descriptor12, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"left\", _descriptor13, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"top\", _descriptor14, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"metadata\", _descriptor15, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"answerType\", _descriptor16, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"polygonPointsString\", _descriptor17, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"targetComponentName\", _descriptor18, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"collisionType\", _descriptor19, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"x\", _descriptor20, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"y\", _descriptor21, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"cx\", _descriptor22, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"cy\", _descriptor23, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"w\", _descriptor24, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"h\", _descriptor25, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"rx\", _descriptor26, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"ry\", _descriptor27, _assertThisInitialized(_this2));\n\n return _this2;\n }\n\n return _createClass(DropTarget);\n }(_baseModel.default), (_descriptor8 = _applyDecoratedDescriptor(_class3.prototype, \"id\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, \"position\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, \"callout\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, \"answer\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, \"centroid\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, \"left\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, \"top\", [_dec14], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor15 = _applyDecoratedDescriptor(_class3.prototype, \"metadata\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor16 = _applyDecoratedDescriptor(_class3.prototype, \"answerType\", [_dec16], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor17 = _applyDecoratedDescriptor(_class3.prototype, \"polygonPointsString\", [_dec17], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor18 = _applyDecoratedDescriptor(_class3.prototype, \"targetComponentName\", [_dec18], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor19 = _applyDecoratedDescriptor(_class3.prototype, \"collisionType\", [_dec19], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor20 = _applyDecoratedDescriptor(_class3.prototype, \"x\", [_dec20], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor21 = _applyDecoratedDescriptor(_class3.prototype, \"y\", [_dec21], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor22 = _applyDecoratedDescriptor(_class3.prototype, \"cx\", [_dec22], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor23 = _applyDecoratedDescriptor(_class3.prototype, \"cy\", [_dec23], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor24 = _applyDecoratedDescriptor(_class3.prototype, \"w\", [_dec24], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor25 = _applyDecoratedDescriptor(_class3.prototype, \"h\", [_dec25], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor26 = _applyDecoratedDescriptor(_class3.prototype, \"rx\", [_dec26], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor27 = _applyDecoratedDescriptor(_class3.prototype, \"ry\", [_dec27], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class3));\n\n window.__CLASSIC_OWN_CLASSES__.set(DropTarget, true);\n\n var DragInfo = (_dec28 = Ember._tracked, _dec29 = Ember._tracked, _dec30 = Ember._tracked, _dec31 = Ember._tracked, (_class5 = /*#__PURE__*/function (_BaseModel3) {\n _inherits(DragInfo, _BaseModel3);\n\n var _super3 = _createSuper(DragInfo);\n\n function DragInfo() {\n var _this3;\n\n _classCallCheck(this, DragInfo);\n\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n _this3 = _super3.call.apply(_super3, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this3), \"x\", _descriptor28, _assertThisInitialized(_this3));\n\n _initializerDefineProperty(_assertThisInitialized(_this3), \"y\", _descriptor29, _assertThisInitialized(_this3));\n\n _initializerDefineProperty(_assertThisInitialized(_this3), \"isDragging\", _descriptor30, _assertThisInitialized(_this3));\n\n _initializerDefineProperty(_assertThisInitialized(_this3), \"answer\", _descriptor31, _assertThisInitialized(_this3));\n\n return _this3;\n }\n\n return _createClass(DragInfo);\n }(_baseModel.default), (_descriptor28 = _applyDecoratedDescriptor(_class5.prototype, \"x\", [_dec28], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor29 = _applyDecoratedDescriptor(_class5.prototype, \"y\", [_dec29], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor30 = _applyDecoratedDescriptor(_class5.prototype, \"isDragging\", [_dec30], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor31 = _applyDecoratedDescriptor(_class5.prototype, \"answer\", [_dec31], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class5));\n\n window.__CLASSIC_OWN_CLASSES__.set(DragInfo, true);\n\n var DragAndDropWithSnapQuestionForm = (_dec32 = Ember.inject.service, _dec33 = Ember.inject.service, _dec34 = Ember._tracked, _dec35 = Ember._tracked, _dec36 = Ember._tracked, _dec37 = Ember._tracked, _dec38 = Ember._tracked, _dec39 = Ember._tracked, _dec40 = Ember.computed.notEmpty('currentDraggedOverZoneId'), _dec41 = Ember.computed.alias('args.question'), _dec42 = Ember.computed.alias('question.lockAnswers'), _dec43 = Ember.computed.readOnly('question.allowInfiniteAnswers'), _dec44 = Ember.computed.readOnly('question.backgroundImage'), _dec45 = Ember.computed.alias('args.response.manualMatches'), _dec46 = Ember.computed.readOnly('userSession.current'), _dec47 = Ember._action, _dec48 = Ember.computed('args.response.matches.[]'), _dec49 = Ember.computed('question.id'), _dec50 = Ember.computed('args.answerDuplicates.[]'), _dec51 = Ember.computed('answers.@each.{position,primary}'), _dec52 = Ember.computed('answers.[]'), _dec53 = Ember._tracked, _dec54 = Ember._action, _dec55 = Ember._action, _dec56 = Ember._action, _dec57 = Ember._action, _dec58 = Ember._action, _dec59 = Ember._action, _dec60 = Ember._action, _dec61 = Ember._action, (_class7 = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropWithSnapQuestionForm, _Component);\n\n var _super4 = _createSuper(DragAndDropWithSnapQuestionForm);\n\n function DragAndDropWithSnapQuestionForm() {\n var _this4;\n\n _classCallCheck(this, DragAndDropWithSnapQuestionForm);\n\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n _this4 = _super4.call.apply(_super4, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"userSession\", _descriptor32, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"mathjaxManager\", _descriptor33, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"element\", _descriptor34, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"isDragging\", _descriptor35, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"currentDraggedOverZoneId\", _descriptor36, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"responseIdCache\", _descriptor37, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"imageLoaded\", _descriptor38, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"dragInfo\", _descriptor39, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"isDraggedOver\", _descriptor40, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"question\", _descriptor41, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"lockAnswers\", _descriptor42, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"allowInfiniteAnswers\", _descriptor43, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"questionImage\", _descriptor44, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"manualMatches\", _descriptor45, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"currentStudent\", _descriptor46, _assertThisInitialized(_this4));\n\n _initializerDefineProperty(_assertThisInitialized(_this4), \"dropTargets\", _descriptor47, _assertThisInitialized(_this4));\n\n return _this4;\n }\n\n _createClass(DragAndDropWithSnapQuestionForm, [{\n key: \"didInsertQuestion\",\n value: function didInsertQuestion(element) {\n this.element = element;\n this.checkForImageLoaded();\n this.reinitClones();\n this.mathjaxManager.updateFormulas();\n }\n }, {\n key: \"matches\",\n get: function get() {\n return this.args.response.matches;\n }\n }, {\n key: \"randomSeed\",\n get: function get() {\n var qId = parseInt(this.question.id, 10);\n var sId = parseInt(this.currentStudent.id, 10);\n return sId / qId * sId;\n }\n }, {\n key: \"answers\",\n get: function get() {\n var _this5 = this;\n\n var answers = this.args.answers;\n answers.forEach(function (answer) {\n var duplicate = _this5.args.answerDuplicates.findBy('originalId', answer.id);\n\n if (duplicate && !_this5.allowInfiniteAnswers) {\n answer.isHidden = true;\n } else {\n answer.isHidden = false;\n }\n });\n return answers;\n }\n }, {\n key: \"reinitClones\",\n value: function reinitClones() {\n var _this6 = this;\n\n if (this.responseIdCache !== this.args.response.id) {\n this.args.clearDuplicates();\n var matches = this.question.hideDropRegions ? this.manualMatches : this.matches;\n var answers = this.answers;\n var cloneId = 0;\n matches.forEach(function (match) {\n var answerToClone = answers.findBy('id', match.answerId);\n\n if (!_this6.allowInfiniteAnswers) {\n answerToClone.isHidden = true;\n }\n\n if (_this6.question.hideDropRegions) {\n var position = match.position;\n var clonedAnswer = new AnswerClone(Object.assign({\n originalId: answerToClone.id,\n isClone: true,\n cloneId: cloneId,\n manualPosition: position,\n nonDrag: true\n }, answerToClone.toJSON())); // Generate a unique id for the clone so that it doesn't get deleted when\n // another clone is deleted.\n\n clonedAnswer.id = Ember.guidFor(clonedAnswer);\n clonedAnswer.mediaAssets = answerToClone.mediaAssets;\n clonedAnswer.isHidden = false;\n\n _this6.args.addDuplicate(clonedAnswer);\n\n match.matchId = cloneId;\n cloneId++;\n } else {\n var _clonedAnswer = new AnswerClone(Object.assign({\n originalId: answerToClone.id,\n isClone: true,\n matchId: match.matchId,\n nonDrag: true\n }, answerToClone.toJSON())); // Generate a unique id for the clone so that it doesn't get deleted when\n // another clone is deleted.\n\n\n _clonedAnswer.id = Ember.guidFor(_clonedAnswer);\n _clonedAnswer.mediaAssets = answerToClone.mediaAssets;\n _clonedAnswer.isHidden = false;\n\n _this6.args.addDuplicate(_clonedAnswer);\n }\n });\n } else {\n this.responseIdCache = this.args.response.id;\n }\n }\n }, {\n key: \"draggableAnswers\",\n get: function get() {\n var sortedAnswers = this.answers.filter(function (answer) {\n return answer.primary;\n }).sortBy('position');\n\n if (this.lockAnswers) {\n return sortedAnswers;\n } else {\n return (0, _utils.shuffleArrayWithSeed)(sortedAnswers, this.randomSeed);\n }\n }\n }, {\n key: \"allTargets\",\n get: function get() {\n return this.answers.filter(function (answer) {\n return !answer.primary;\n });\n }\n }, {\n key: \"checkForImageLoaded\",\n value: function checkForImageLoaded() {\n var _this7 = this;\n\n var el = this.element.querySelector('.drag-and-drop-image');\n\n if (el) {\n if (!el.complete) {\n el.addEventListener('load', function () {\n _this7.generateDropTargets();\n }, {\n once: true\n });\n } else {\n this.generateDropTargets();\n }\n } else {\n Ember.run.later(this, this.checkForImageLoaded, 10);\n }\n }\n }, {\n key: \"generateDropTargets\",\n value: function generateDropTargets() {\n var imageContainer = this.element.querySelector('.drag-and-drop-image');\n\n if (!imageContainer) {\n return [];\n }\n\n var needsToRerun = false;\n var targets = this.allTargets.map(function (answer) {\n var centroid = answer.centroid;\n var pos = answer.answerMetadata.position;\n var pointCoords = {\n x: pos[0],\n y: pos[1]\n };\n var polygonPointsString = null;\n\n if (answer.collisionType === 'polygon') {\n polygonPointsString = answer.polygonPointsString;\n }\n\n return new DropTarget({\n id: answer.id,\n position: answer.metaPosition,\n callout: answer.callout,\n answer: answer,\n centroid: centroid,\n left: pointCoords['x'],\n top: pointCoords['y'],\n metadata: answer.answerMetadata,\n answerType: answer.collisionType,\n polygonPointsString: polygonPointsString,\n targetComponentName: \"drag-and-drop-\".concat(answer.collisionType),\n collisionType: answer.collisionType,\n x: answer.x,\n y: answer.y,\n cx: answer.cx,\n cy: answer.cy,\n w: answer.w,\n h: answer.h,\n rx: answer.rx,\n ry: answer.ry\n });\n });\n\n if (!needsToRerun) {\n this.dropTargets = targets;\n this.imageLoaded = true;\n }\n }\n }, {\n key: \"createManualMatch\",\n value: function createManualMatch(answer) {\n var absolutePos = [this.dragInfo.x, this.dragInfo.y];\n var dragInterface = this.element.querySelector('.drag-and-drop-image-container');\n var dragInterfaceOffset = dragInterface.getBoundingClientRect();\n var scrollLeft = window.scrollX || document.documentElement.scrollLeft;\n var scrollTop = window.scrollY || document.documentElement.scrollTop;\n var relativePos = [absolutePos[0] - dragInterfaceOffset.left - scrollLeft, absolutePos[1] - dragInterfaceOffset.top - scrollTop];\n var dragInterfaceStyle = getComputedStyle(dragInterface) || dragInterface.currentStyle;\n var dragInterfaceWidth = dragInterface.clientWidth - parseFloat(dragInterfaceStyle.paddingLeft) - parseFloat(dragInterfaceStyle.paddingRight);\n var dragInterfaceHeight = dragInterface.clientHeight - parseFloat(dragInterfaceStyle.paddingTop) - parseFloat(dragInterfaceStyle.paddingBottom); // The answer is dragged outside of the interface\n\n if (relativePos[0] < 0 || relativePos[1] < 0 || relativePos[0] > dragInterfaceWidth || relativePos[1] > dragInterfaceHeight) {\n this.clearManualMatch(answer);\n return;\n }\n\n var match = this.manualMatches.find(function (m) {\n return m.answerId == answer.originalId;\n });\n\n if (!match) {\n match = new _match.default({\n answerId: answer.originalId\n });\n this.manualMatches.pushObject(match);\n }\n\n var cloneId = answer.cloneId;\n match.matchId = cloneId;\n match.position = relativePos;\n answer.manualPosition = relativePos;\n this.saveResponse();\n }\n }, {\n key: \"clearManualMatch\",\n value: function clearManualMatch(answer) {\n var cloneId = answer.cloneId;\n var match = this.manualMatches.find(function (m) {\n return m.answerId == answer.originalId && m.matchId == cloneId;\n });\n\n if (match) {\n this.manualMatches.removeObject(match);\n answer.manualPosition = null;\n this.saveResponse();\n }\n\n this.removeAnswerFromDOM(answer);\n }\n }, {\n key: \"createMatch\",\n value: function createMatch(answer, matchId) {\n var _this$matches$find;\n\n if (this.args.preview) {\n return;\n }\n\n var answerId = answer.originalId; // bump off other answer from our newly claimed dot\n\n var oldAnswerId = (_this$matches$find = this.matches.find(function (m) {\n return m.answerId != answerId && m.matchId == matchId;\n })) === null || _this$matches$find === void 0 ? void 0 : _this$matches$find.answerId;\n\n if (oldAnswerId) {\n var answerClone = this.args.answerDuplicates.find(function (dup) {\n return dup.originalId == oldAnswerId && dup.matchId == matchId;\n });\n this.removeMatch(answerClone);\n }\n\n this.matches.pushObject(new _match.default({\n answerId: answerId,\n matchId: matchId\n }));\n answer.matchId = matchId;\n this.args.response.matches = this.matches;\n this.saveResponse();\n }\n }, {\n key: \"removeMatch\",\n value: function removeMatch(answer, opts) {\n if (this.preview) {\n return;\n }\n\n opts = opts || {};\n var answerId = answer.originalId;\n var matchId = answer.matchId;\n\n if (matchId) {\n var match = this.matches.find(function (m) {\n return m.answerId == answerId && m.matchId == matchId;\n });\n this.matches.removeObject(match);\n answer.matchId = null;\n\n if (opts.save) {\n this.args.response.matches = this.matches;\n this.saveResponse();\n }\n }\n\n if (!opts.keep) {\n this.removeAnswerFromDOM(answer);\n }\n }\n }, {\n key: \"removeAnswerFromDOM\",\n value: function removeAnswerFromDOM(answer) {\n var _this8 = this;\n\n Ember.run.later(function () {\n _this8.args.removeDuplicate(answer);\n }, 600);\n }\n }, {\n key: \"saveResponse\",\n value: function saveResponse() {\n if (this.args.preview) {\n return;\n }\n\n this.args.saveResponse();\n }\n }, {\n key: \"drag\",\n value: function drag(obj) {\n if (this.args.preview) {\n return;\n }\n\n this.dragInfo.x = obj.x;\n this.dragInfo.y = obj.y;\n }\n }, {\n key: \"dragStart\",\n value: function dragStart(answer, coordinates) {\n if (this.args.preview || answer.isHidden) {\n return;\n }\n\n this.dragInfo.x = coordinates.x;\n this.dragInfo.y = coordinates.y;\n var existingMatchId = answer.matchId; // clean up where this answer was before\n\n if (existingMatchId) {\n this.removeMatch(answer, {\n save: true,\n keep: true\n });\n }\n\n if (answer.isClone) {\n this.dragInfo.answer = answer;\n } else {\n var answerToClone = this.draggableAnswers.findBy('id', answer.id);\n var answerCount = 0;\n var manualMatches = this.manualMatches.filter(function (m) {\n return m.answerId == answer.id;\n });\n var matches = this.matches.filter(function (m) {\n return m.answerId == answer.id;\n });\n\n if (this.question.hideDropRegions) {\n answerCount = manualMatches.length;\n } else {\n answerCount = matches.length;\n }\n\n var clonedAnswer = new AnswerClone(Object.assign({\n originalId: answerToClone.id,\n isClone: true,\n nonDrag: false,\n cloneId: answerCount\n }, answerToClone.toJSON())); // Generate a unique id for the clone so that it doesn't get deleted when\n // another clone is deleted.\n\n clonedAnswer.id = Ember.guidFor(clonedAnswer);\n clonedAnswer.mediaAssets = answerToClone.mediaAssets;\n this.args.addDuplicate(clonedAnswer);\n this.dragInfo.answer = clonedAnswer;\n } // If answer already has a match, highlight it so we can\n // drop the answer here if we want to.\n\n\n var pointId = this.dragInfo.answer.matchId;\n\n if (pointId) {\n this.currentDraggedOverZoneId = pointId;\n }\n\n this.dragInfo.isDragging = true;\n }\n }, {\n key: \"dragEnd\",\n value: function dragEnd() {\n if (this.args.preview) {\n return;\n }\n\n this.dragInfo.isDragging = false;\n var answer = this.dragInfo.answer;\n\n if (answer) {\n if (this.question.hideDropRegions) {\n this.createManualMatch(answer);\n } else {\n if (this.isDraggedOver) {\n this.createMatch(answer, this.currentDraggedOverZoneId);\n this.currentDraggedOverZoneId = null;\n } else {\n this.removeAnswerFromDOM(answer);\n }\n }\n }\n\n this.dragInfo.answer = null;\n }\n }, {\n key: \"draggedOver\",\n value: function draggedOver(pointId) {\n if (this.args.preview) {\n return;\n }\n\n var currentlyDraggingAnswerId = this.dragInfo.answer.originalId;\n var match = this.matches.find(function (m) {\n return m.answerId == currentlyDraggingAnswerId && m.matchId == pointId;\n }); // Highlight answer if this zone does not already contain a copy of this answer or\n // this answer was already here (dragged away and back).\n\n if (!match || this.dragInfo.answer.matchId == pointId) {\n this.currentDraggedOverZoneId = pointId;\n }\n }\n }, {\n key: \"draggedOut\",\n value: function draggedOut() {\n if (this.args.preview) {\n return;\n }\n\n this.currentDraggedOverZoneId = null;\n }\n }]);\n\n return DragAndDropWithSnapQuestionForm;\n }(_component.default), (_descriptor32 = _applyDecoratedDescriptor(_class7.prototype, \"userSession\", [_dec32], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor33 = _applyDecoratedDescriptor(_class7.prototype, \"mathjaxManager\", [_dec33], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor34 = _applyDecoratedDescriptor(_class7.prototype, \"element\", [_dec34], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor35 = _applyDecoratedDescriptor(_class7.prototype, \"isDragging\", [_dec35], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor36 = _applyDecoratedDescriptor(_class7.prototype, \"currentDraggedOverZoneId\", [_dec36], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor37 = _applyDecoratedDescriptor(_class7.prototype, \"responseIdCache\", [_dec37], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor38 = _applyDecoratedDescriptor(_class7.prototype, \"imageLoaded\", [_dec38], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor39 = _applyDecoratedDescriptor(_class7.prototype, \"dragInfo\", [_dec39], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return new DragInfo();\n }\n }), _descriptor40 = _applyDecoratedDescriptor(_class7.prototype, \"isDraggedOver\", [_dec40], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor41 = _applyDecoratedDescriptor(_class7.prototype, \"question\", [_dec41], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor42 = _applyDecoratedDescriptor(_class7.prototype, \"lockAnswers\", [_dec42], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor43 = _applyDecoratedDescriptor(_class7.prototype, \"allowInfiniteAnswers\", [_dec43], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor44 = _applyDecoratedDescriptor(_class7.prototype, \"questionImage\", [_dec44], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor45 = _applyDecoratedDescriptor(_class7.prototype, \"manualMatches\", [_dec45], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor46 = _applyDecoratedDescriptor(_class7.prototype, \"currentStudent\", [_dec46], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class7.prototype, \"didInsertQuestion\", [_dec47], Object.getOwnPropertyDescriptor(_class7.prototype, \"didInsertQuestion\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"matches\", [_dec48], Object.getOwnPropertyDescriptor(_class7.prototype, \"matches\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"randomSeed\", [_dec49], Object.getOwnPropertyDescriptor(_class7.prototype, \"randomSeed\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"answers\", [_dec50], Object.getOwnPropertyDescriptor(_class7.prototype, \"answers\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"draggableAnswers\", [_dec51], Object.getOwnPropertyDescriptor(_class7.prototype, \"draggableAnswers\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"allTargets\", [_dec52], Object.getOwnPropertyDescriptor(_class7.prototype, \"allTargets\"), _class7.prototype), _descriptor47 = _applyDecoratedDescriptor(_class7.prototype, \"dropTargets\", [_dec53], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _applyDecoratedDescriptor(_class7.prototype, \"createMatch\", [_dec54], Object.getOwnPropertyDescriptor(_class7.prototype, \"createMatch\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"removeMatch\", [_dec55], Object.getOwnPropertyDescriptor(_class7.prototype, \"removeMatch\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"saveResponse\", [_dec56], Object.getOwnPropertyDescriptor(_class7.prototype, \"saveResponse\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"drag\", [_dec57], Object.getOwnPropertyDescriptor(_class7.prototype, \"drag\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"dragStart\", [_dec58], Object.getOwnPropertyDescriptor(_class7.prototype, \"dragStart\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"dragEnd\", [_dec59], Object.getOwnPropertyDescriptor(_class7.prototype, \"dragEnd\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"draggedOver\", [_dec60], Object.getOwnPropertyDescriptor(_class7.prototype, \"draggedOver\"), _class7.prototype), _applyDecoratedDescriptor(_class7.prototype, \"draggedOut\", [_dec61], Object.getOwnPropertyDescriptor(_class7.prototype, \"draggedOut\"), _class7.prototype)), _class7));\n _exports.default = DragAndDropWithSnapQuestionForm;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropWithSnapQuestionForm);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/drag-and-drop-with-snap-response-view\", [\"exports\", \"@glimmer/component\", \"student-app/utils/utils\", \"student-app/utils/drop-target-geometry\", \"student-app/models/answer-segment\", \"student-app/models/base-model\", \"student-app/models/match\"], function (_exports, _component, _utils, _dropTargetGeometry, _answerSegment, _baseModel, _match) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _dec28, _dec29, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _dec30, _dec31, _dec32, _dec33, _dec34, _dec35, _dec36, _dec37, _dec38, _dec39, _dec40, _dec41, _dec42, _dec43, _dec44, _dec45, _dec46, _dec47, _dec48, _dec49, _dec50, _dec51, _class3, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@glimmer/tracking\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"@ember/utils\",0,\"@ember/object\",0,\"student-app/utils/utils\",0,\"@ember/runloop\",0,\"student-app/utils/drop-target-geometry\",0,\"student-app/models/answer-segment\",0,\"student-app/models/base-model\",0,\"student-app/models/match\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if this.scoringDetails}}\n
{{this.scoringDetails}}
\n {{/if}}\n \n
\n {{#if this.isShowingStudentResponse}}\n

Student Response

\n \n Show Correct Answers\n \n {{else}}\n

Correct Answers

\n \n Show Student Response\n \n {{/if}}\n
\n \n \n {{#if this.hasUnplacedAnswers }}\n
\n

Unplaced answers

\n
\n {{#each this.unplacedAnswers as |answer|}}\n
\n
\n \n

{{sanitize-and-escape answer.body}}

\n \n \n
\n
\n
\n {{/each}}\n {{/if}}\n
\n */\n {\n id: \"7v1JGrP3\",\n block: \"{\\\"symbols\\\":[\\\"answer\\\",\\\"@response\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertResponseView\\\"]]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"scoringDetails\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"response-view__scoring-details\\\"],[8],[1,[23,0,[\\\"scoringDetails\\\"]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop__review-bar\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isShowingStudentResponse\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"drag-and-drop__review-title\\\"],[8],[0,\\\"Student Response\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border default-link app-show-correct-answers drag-and-drop__review-toggle\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggleShownMatches\\\"]]]],[8],[0,\\\"\\\\n Show Correct Answers\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"drag-and-drop__review-title\\\"],[8],[0,\\\"Correct Answers\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border default-link app-show-correct-answers drag-and-drop__review-toggle\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggleShownMatches\\\"]]]],[8],[0,\\\"\\\\n Show Student Response\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"drag-and-drop-target-dispatcher\\\",[],[[\\\"@response\\\",\\\"@points\\\",\\\"@image\\\",\\\"@matches\\\",\\\"@tooltipsToShow\\\",\\\"@isShowingCorrectAnswers\\\",\\\"@smallView\\\",\\\"@isReviewing\\\"],[[23,2,[]],[23,0,[\\\"dropTargets\\\"]],[23,0,[\\\"questionImage\\\"]],[23,0,[\\\"matches\\\"]],[23,0,[\\\"tooltipsToShow\\\"]],[23,0,[\\\"isShowingCorrectAnswers\\\"]],[23,0,[\\\"smallView\\\"]],true]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasUnplacedAnswers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-unplaced-answers drag-and-drop__review-bar\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h4\\\",true],[10,\\\"class\\\",\\\"drag-and-drop__review-title\\\"],[8],[0,\\\"Unplaced answers\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"unplacedAnswers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"drag-and-drop__review-answer\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"app-answer app-unplaced-answer drag-and-drop-tooltip \\\",[28,\\\"if\\\",[[23,1,[\\\"correct\\\"]],\\\"correct app-correct drag-and-drop-tooltip--correct\\\",\\\"incorrect app-incorrect drag-and-drop-tooltip--incorrect\\\"],null]]]],[11,\\\"data-answer-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"body app-body\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"p\\\",true],[8],[1,[28,\\\"sanitize-and-escape\\\",[[23,1,[\\\"body\\\"]]],null],false],[9],[0,\\\"\\\\n\\\\n \\\"],[5,\\\"media-assets\\\",[],[[\\\"@mediaAssets\\\"],[[23,1,[\\\"mediaAssets\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/drag-and-drop-with-snap-response-view.hbs\"\n }\n });\n\n var ScaledAnswer = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._tracked, _dec11 = Ember.computed.readOnly('x'), _dec12 = Ember.computed.readOnly('y'), _dec13 = Ember.computed.readOnly('answer.metaPosition'), _dec14 = Ember.computed.readOnly('answer.answerMetadata'), _dec15 = Ember.computed.readOnly('answer.answerMetadata'), _dec16 = Ember.computed.readOnly('collisionType'), _dec17 = Ember.computed.alias('answerMetadata.segments'), _dec18 = Ember.computed.alias('answerMetadata.dimensions'), _dec19 = Ember.computed.alias('answerMetadata.callout'), _dec20 = Ember._tracked, _dec21 = Ember._tracked, _dec22 = Ember.computed('collisionType'), _dec23 = Ember.computed('segments.[]'), _dec24 = Ember.computed('collisionType', 'segments.[]', 'x', 'y', 'w', 'h'), _dec25 = Ember.computed('w', 'h', 'rx', 'ry', 'segments', 'activeSegment'), _dec26 = Ember.computed('segments.[]'), _dec27 = Ember.computed('polygonPoints.[]'), _dec28 = Ember.computed.readOnly('question.imageMargin'), _dec29 = Ember.computed('questionImageMargin', 'answerMetadata.position'), (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(ScaledAnswer, _BaseModel);\n\n var _super = _createSuper(ScaledAnswer);\n\n function ScaledAnswer() {\n var _this;\n\n _classCallCheck(this, ScaledAnswer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"text\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"correct\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answer\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"w\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"x\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"y\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"h\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"rx\", _descriptor9, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"ry\", _descriptor10, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"left\", _descriptor11, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"top\", _descriptor12, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"position\", _descriptor13, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"metadata\", _descriptor14, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerMetadata\", _descriptor15, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"answerType\", _descriptor16, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"segments\", _descriptor17, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"dimensions\", _descriptor18, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"callout\", _descriptor19, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"segments\", _descriptor20, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"scale\", _descriptor21, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"questionImageMargin\", _descriptor22, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ScaledAnswer, [{\n key: \"targetComponentName\",\n get: function get() {\n return \"drag-and-drop-\".concat(this.collisionType);\n }\n }, {\n key: \"isCompletedPolygon\",\n get: function get() {\n if (this.segments.length < 3) {\n return false;\n }\n\n var firstSegment = this.segments.firstObject;\n var lastSegment = this.segments.lastObject;\n return firstSegment.x1 === lastSegment.x2 && firstSegment.y1 === lastSegment.y2;\n }\n }, {\n key: \"centroid\",\n get: function get() {\n if (this.collisionType === 'polygon') {\n var segmentCount = this.segments.length;\n\n if (segmentCount > 0 && this.isCompletedPolygon) {\n var points = this.segments.map(function (seg) {\n return [seg.x1, seg.y1];\n });\n var avgPoint = points.reduce(function (agg, seg) {\n var avgX = agg[0] + seg[0] / segmentCount;\n var avgY = agg[1] + seg[1] / segmentCount;\n return [avgX, avgY];\n }, [0, 0]);\n\n if ((0, _dropTargetGeometry.pointInAnswer)({\n x: avgPoint[0],\n y: avgPoint[1]\n }, this)) {\n return avgPoint;\n } else {\n return (0, _dropTargetGeometry.nearestPoint)(points, avgPoint);\n }\n } else {\n return [this.x, this.y];\n }\n } else {\n var w = this.w;\n var h = this.h;\n var x = this.x;\n var y = this.y;\n return [x + w / 2, y + h / 2];\n }\n }\n }, {\n key: \"collisionType\",\n get: function get() {\n var w = this.w;\n var h = this.h;\n var rx = this.rx;\n var ry = this.ry;\n var segments = this.segments;\n var activeSegment = this.activeSegment;\n\n if (w > 0 || h > 0) {\n return 'rectangle';\n } else if (rx > 0 || ry > 0) {\n return 'oval';\n } else if (!Ember.isEmpty(activeSegment) || !Ember.isEmpty(segments)) {\n return 'polygon';\n } else {\n return 'dot';\n }\n }\n }, {\n key: \"polygonPoints\",\n get: function get() {\n return this.segments.map(function (seg) {\n return [seg.x2, seg.y2];\n });\n }\n }, {\n key: \"polygonPointsString\",\n get: function get() {\n return this.polygonPoints.map(function (pt) {\n return pt.join(',');\n }).join(' ');\n }\n }, {\n key: \"positionWithMargin\",\n get: function get() {\n var imageMargin = this.questionImageMargin || 0;\n var pos = this.answerMetadata.position;\n return [pos[0] + imageMargin, pos[1]];\n }\n }]);\n\n return ScaledAnswer;\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"text\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"correct\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"answer\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"w\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"x\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"y\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"h\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"rx\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, \"ry\", [_dec10], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, \"left\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, \"top\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, \"position\", [_dec13], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, \"metadata\", [_dec14], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, \"answerMetadata\", [_dec15], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, \"answerType\", [_dec16], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, \"segments\", [_dec17], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, \"dimensions\", [_dec18], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, \"callout\", [_dec19], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, \"segments\", [_dec20], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return [];\n }\n }), _descriptor21 = _applyDecoratedDescriptor(_class.prototype, \"scale\", [_dec21], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 1;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"targetComponentName\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"targetComponentName\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"isCompletedPolygon\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"isCompletedPolygon\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"centroid\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"centroid\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"collisionType\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"collisionType\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"polygonPoints\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"polygonPoints\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"polygonPointsString\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"polygonPointsString\"), _class.prototype), _descriptor22 = _applyDecoratedDescriptor(_class.prototype, \"questionImageMargin\", [_dec28], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"positionWithMargin\", [_dec29], Object.getOwnPropertyDescriptor(_class.prototype, \"positionWithMargin\"), _class.prototype)), _class));\n\n window.__CLASSIC_OWN_CLASSES__.set(ScaledAnswer, true);\n\n function scaleAnswerGeometry(answer, scale) {\n var originalCallout = answer.callout;\n var scaledCallout = null;\n\n if (Ember.isPresent(originalCallout)) {\n scaledCallout = [originalCallout[0] * scale, originalCallout[1] * scale];\n }\n\n var scaledGeo = {\n answer: answer,\n w: answer.w * scale,\n h: answer.h * scale,\n rx: answer.rx * scale,\n ry: answer.ry * scale,\n scaledCallout: scaledCallout,\n scale: scale\n };\n var segs = answer.segments;\n\n if (segs && scale > 0) {\n scaledGeo.segments = segs.map(function (seg) {\n return new _answerSegment.default({\n x1: seg.x1 * scale,\n x2: seg.x2 * scale,\n y1: seg.y1 * scale,\n y2: seg.y2 * scale\n });\n });\n }\n\n return new ScaledAnswer(scaledGeo);\n }\n\n var DragAndDropWithSnapResponseView = (_dec30 = Ember._tracked, _dec31 = Ember._tracked, _dec32 = Ember._tracked, _dec33 = Ember.computed.not('isShowingCorrectAnswers'), _dec34 = Ember.computed.alias('args.response.matches'), _dec35 = Ember.computed.alias('args.response.manualMatches'), _dec36 = Ember.computed.alias('args.response.studentQuestion'), _dec37 = Ember.computed.alias('question.backgroundImage'), _dec38 = Ember.computed('args.response.studentQuestion.{scoringAlgorithm,scoringMetadata}', 'draggableAnswers'), _dec39 = Ember.computed.notEmpty('unplacedAnswers'), _dec40 = Ember.computed('matches', 'draggableAnswers'), _dec41 = Ember.computed('draggableAnswers.[]', 'imageLoaded'), _dec42 = Ember.computed.readOnly('question.hideDropRegions'), _dec43 = Ember.computed('isShowingCorrectAnswers'), _dec44 = Ember.computed('isShowingCorrectAnswers', 'matches', 'correctMatches'), _dec45 = Ember.computed('matchesToShow', 'args.answers.[]', 'matches', 'imageLoaded', 'element'), _dec46 = Ember.computed('matchesToShow', 'args.answers.[]', 'matches', 'manualMatches', 'imageLoaded'), _dec47 = Ember.computed('matchesToShow', 'args.answers.[]', 'matches', 'manualMatches', 'imageLoaded'), _dec48 = Ember.computed('isShowingCorrectAnswers', 'studentChosenTooltips.[]', 'correctTooltips.[]', 'imageLoaded'), _dec49 = Ember.computed('args.answers.[]'), _dec50 = Ember._action, _dec51 = Ember._action, (_class3 = /*#__PURE__*/function (_Component) {\n _inherits(DragAndDropWithSnapResponseView, _Component);\n\n var _super2 = _createSuper(DragAndDropWithSnapResponseView);\n\n function DragAndDropWithSnapResponseView() {\n var _this2;\n\n _classCallCheck(this, DragAndDropWithSnapResponseView);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _super2.call.apply(_super2, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"isShowingCorrectAnswers\", _descriptor23, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"imageLoaded\", _descriptor24, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"element\", _descriptor25, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"isShowingStudentResponse\", _descriptor26, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"matches\", _descriptor27, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"manualMatches\", _descriptor28, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"question\", _descriptor29, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"questionImage\", _descriptor30, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"hasUnplacedAnswers\", _descriptor31, _assertThisInitialized(_this2));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"isHiddenRegions\", _descriptor32, _assertThisInitialized(_this2));\n\n return _this2;\n }\n\n _createClass(DragAndDropWithSnapResponseView, [{\n key: \"smallView\",\n get: function get() {\n var _this$args$smallView;\n\n return (_this$args$smallView = this.args.smallView) !== null && _this$args$smallView !== void 0 ? _this$args$smallView : false;\n }\n }, {\n key: \"scoringDetails\",\n get: function get() {\n var numOfAnswers = this.draggableAnswers.length;\n var percAnswers = (100 / numOfAnswers).toFixed(1).replace(/\\.0$/, '');\n\n switch (this.args.response.studentQuestion.scoringAlgorithm) {\n case 'all_or_nothing':\n return \"To receive credit for this question, all answers must be correctly positioned.\";\n\n case 'perc_of_matches':\n return \"Each correctly positioned item is worth \".concat(percAnswers, \"%.\");\n\n case 'partial_credit_bands':\n {\n var scoringInfo = this.args.response.studentQuestion.scoringMetadata.bands.sortBy('low').map(function (b) {\n return \"below \".concat(b.high, \"% correct = \").concat(b.percent, \"% credit\");\n }).join('; ');\n return \"This question is scored as follows: \".concat(scoringInfo, \".\");\n }\n\n default:\n {\n return null;\n }\n }\n }\n }, {\n key: \"unplacedAnswers\",\n get: function get() {\n var _this3 = this;\n\n return this.draggableAnswers.filter(function (a) {\n return !_this3.answerIsPlaced(a);\n }).map(function (a) {\n return {\n id: a.id,\n body: a.body,\n correct: !_this3.correctMatches.find(function (m) {\n return m.answerId == a.id;\n }) || Ember.isEmpty(a.answers),\n mediaAssets: a.mediaAssets\n };\n });\n }\n }, {\n key: \"correctMatches\",\n get: function get() {\n var correct = [];\n this.draggableAnswers.forEach(function (a) {\n a.answers.forEach(function (m) {\n correct.pushObject(new _match.default({\n answerId: a.id,\n matchId: m.id\n }));\n });\n });\n return correct;\n }\n }, {\n key: \"toggleButtonText\",\n get: function get() {\n return this.isShowingCorrectAnswers ? 'Show My Answers' : 'Show Correct Answers';\n }\n }, {\n key: \"matchesToShow\",\n get: function get() {\n if (this.isShowingCorrectAnswers) {\n return this.correctMatches;\n } else {\n return this.matches;\n }\n }\n }, {\n key: \"dropTargets\",\n get: function get() {\n var _this4 = this;\n\n var dotAnswers = this.args.answers.map(function (a) {\n return a.answer;\n }).filter(function (answer) {\n return !answer.primary;\n });\n\n if (dotAnswers.length === 0 || !this.element) {\n return [];\n }\n\n var imageDimensions = this.getImageDimensions();\n\n if (imageDimensions[0] == 0 || imageDimensions[1] == 0) {\n return [];\n }\n\n var scale = this.getCurrentScale(dotAnswers);\n this.scaleBackgroundImage(dotAnswers, scale);\n imageDimensions = this.getImageDimensions();\n var matches = this.matchesToShow;\n return dotAnswers.map(function (answer) {\n var _matches$find;\n\n var answerId = answer.id;\n var pos = answer.answerMetadata.position;\n var pointCoords = {\n x: pos[0],\n y: pos[1]\n };\n var scaledGeometry = scaleAnswerGeometry(answer, scale);\n var matchedText = null;\n var correct = false;\n var primaryAnswerId = (_matches$find = matches.find(function (match) {\n return match.matchId == answerId;\n })) === null || _matches$find === void 0 ? void 0 : _matches$find.answerId;\n\n var matchedAnswer = _this4.draggableAnswers.findBy('id', primaryAnswerId);\n\n var id = null;\n\n if (matchedAnswer) {\n var _answer$answer;\n\n matchedText = matchedAnswer.body;\n correct = ((_answer$answer = answer.answer) === null || _answer$answer === void 0 ? void 0 : _answer$answer.id) === primaryAnswerId;\n id = matchedAnswer.id;\n }\n\n scaledGeometry.id = id;\n scaledGeometry.text = matchedText;\n scaledGeometry.correct = correct;\n scaledGeometry.answer = answer;\n scaledGeometry.x = pointCoords.x * scale;\n scaledGeometry.y = pointCoords.y * scale;\n return scaledGeometry;\n });\n }\n }, {\n key: \"studentChosenTooltips\",\n get: function get() {\n var _this5 = this;\n\n var tooltips = [];\n var allAnswers = this.args.answers.map(function (a) {\n return a.answer;\n });\n var draggableAnswers = allAnswers.filter(function (a) {\n return a.primary;\n });\n var targets = this.dropTargets;\n\n if (targets.length === 0) {\n return [];\n }\n\n if (this.isHiddenRegions) {\n var manualMatches = this.manualMatches;\n manualMatches.forEach(function (manualMatch) {\n var primaryAnswer = draggableAnswers.find(function (a) {\n return a.id === manualMatch.answerId;\n });\n\n var scale = _this5.getCurrentScale(targets.map(function (m) {\n return m.answer;\n }));\n\n var manualPosition = [manualMatch.position[0] * scale, manualMatch.position[1] * scale];\n var targetAnswer = null;\n var correct = false;\n var callout = null;\n\n if (Ember.isPresent(manualMatch.matchId)) {\n targetAnswer = targets.find(function (a) {\n return a.answer.id === manualMatch.matchId;\n });\n correct = _this5.isCorrectChoice(primaryAnswer.id, targetAnswer.answer.id);\n callout = targetAnswer.answerMetadata.callout;\n }\n\n tooltips.push({\n id: primaryAnswer.id,\n centroid: targetAnswer ? targetAnswer.centroid : null,\n manualPosition: manualPosition,\n correct: correct,\n text: primaryAnswer.body,\n mediaAssets: primaryAnswer.mediaAssets,\n cloneId: manualMatch.matchId,\n callout: callout\n });\n });\n } else {\n tooltips = this.getTooltipsFromMatches(this.matches);\n }\n\n return tooltips;\n }\n }, {\n key: \"correctTooltips\",\n get: function get() {\n return this.getTooltipsFromMatches(this.correctMatches, true);\n }\n }, {\n key: \"tooltipsToShow\",\n get: function get() {\n return this.isShowingCorrectAnswers ? this.correctTooltips : this.studentChosenTooltips;\n }\n }, {\n key: \"draggableAnswers\",\n get: function get() {\n return this.args.answers.map(function (a) {\n return a.answer;\n }).filter(function (answer) {\n return answer.primary;\n });\n }\n }, {\n key: \"didInsertResponseView\",\n value: function didInsertResponseView(element) {\n this.element = element;\n }\n }, {\n key: \"answerIsPlaced\",\n value: function answerIsPlaced(answer) {\n if (this.isHiddenRegions) {\n return Ember.isPresent(this.manualMatches.find(function (m) {\n return m.answerId == answer.id;\n }));\n } else {\n return Ember.isPresent(this.matches.find(function (m) {\n return m.answerId == answer.id;\n }));\n }\n }\n }, {\n key: \"isCorrectChoice\",\n value: function isCorrectChoice(primaryAnswerId, targetAnswerId) {\n return this.correctMatches.any(function (m) {\n return m.answerId == primaryAnswerId && m.matchId == targetAnswerId;\n });\n }\n }, {\n key: \"getCurrentScale\",\n value: function getCurrentScale(answers) {\n var originalCanvasDimensions = answers[0].answerMetadata.dimensions;\n var canvas = this.element.querySelector('.drag-and-drop-image__wrapper');\n var canvasWidth = canvas.offsetWidth;\n var scale = canvasWidth / originalCanvasDimensions[0];\n return scale;\n }\n }, {\n key: \"scaleBackgroundImage\",\n value: function scaleBackgroundImage(dotAnswers, scale) {\n var dragAndDropImage = this.element.querySelector('.drag-and-drop-image');\n var originalCanvasDimensions = dotAnswers[0].answerMetadata.dimensions;\n var naturalWidth = dragAndDropImage.naturalWidth;\n var naturalHeight = dragAndDropImage.naturalHeight;\n var scaledImageWidth = originalCanvasDimensions[0] * scale;\n var scaledImageHeight = originalCanvasDimensions[1] * scale;\n\n if (naturalWidth < originalCanvasDimensions[0]) {\n scaledImageWidth = naturalWidth * scale;\n }\n\n if (naturalHeight < originalCanvasDimensions[1]) {\n scaledImageHeight = naturalHeight * scale;\n }\n\n if (naturalWidth > naturalHeight) {\n dragAndDropImage.style.width = scaledImageWidth.toString() + \"px\";\n } else {\n dragAndDropImage.style.height = scaledImageHeight.toString() + \"px\";\n }\n }\n }, {\n key: \"getTooltipsFromMatches\",\n value: function getTooltipsFromMatches(matches, shouldMergeWithStudentAnswers) {\n var _this6 = this;\n\n var tooltips = [];\n var allAnswers = this.args.answers.map(function (a) {\n return a.answer;\n });\n var draggableAnswers = allAnswers.filter(function (a) {\n return a.primary;\n });\n var targets = this.dropTargets;\n\n if (targets.length === 0) {\n return [];\n }\n\n var dndInterface = this.element.querySelector('.drag-and-drop-canvas');\n var dndInterfaceStyle = getComputedStyle(dndInterface) || dndInterface.currentStyle;\n var dndInterfaceWidth = dndInterface.clientWidth - parseFloat(dndInterfaceStyle.paddingLeft) - parseFloat(dndInterfaceStyle.paddingRight);\n var dndInterfaceHeight = dndInterface.clientHeight - parseFloat(dndInterfaceStyle.paddingTop) - parseFloat(dndInterfaceStyle.paddingBottom);\n var dndInterfaceDimensions = [dndInterfaceWidth, dndInterfaceHeight];\n var imageContainerDimensions = this.getImageDimensions();\n matches.forEach(function (match) {\n var primaryAnswer = draggableAnswers.find(function (a) {\n return a.id === match.answerId;\n });\n var targetAnswer = targets.find(function (a) {\n return a.answer.id == match.matchId || a.id === match.matchId;\n });\n var callout = targetAnswer.scaledCallout || targetAnswer.answerMetadata.callout;\n\n var correct = _this6.isCorrectChoice(primaryAnswer.id, targetAnswer.answer.id);\n\n var centroid = _this6.getCentroid(targetAnswer, imageContainerDimensions, dndInterfaceDimensions);\n\n if (_this6.isHiddenRegions && shouldMergeWithStudentAnswers) {\n var studentAnswers = _this6.studentChosenTooltips;\n var studentAnswer = studentAnswers.find(function (a) {\n return a.id === primaryAnswer.id && parseInt(a.cloneId, 10) === match.matchId;\n });\n\n if (studentAnswer && studentAnswer.correct) {\n centroid = studentAnswer.manualPosition;\n }\n }\n\n tooltips.push({\n id: primaryAnswer.id,\n centroid: centroid,\n correct: correct,\n text: primaryAnswer.body,\n mediaAssets: primaryAnswer.mediaAssets,\n callout: callout\n });\n });\n return tooltips;\n }\n }, {\n key: \"getCentroid\",\n value: function getCentroid(answer, imageDimensions, canvasDimensions) {\n var calculatedCoords = (0, _utils.calculateDragCoords)(answer.answerMetadata, imageDimensions);\n var xMargin = (canvasDimensions[0] - imageDimensions[0]) / 2;\n var yMargin = (canvasDimensions[1] - imageDimensions[1]) / 2;\n return [calculatedCoords.x + xMargin, calculatedCoords.y + yMargin];\n }\n }, {\n key: \"getImageDimensions\",\n value: function getImageDimensions() {\n var image = this.element.querySelector('.drag-and-drop-image');\n\n if (!this.imageLoaded) {\n this.checkForImageLoaded();\n\n if (!image) {\n return [0, 0];\n }\n }\n\n var imageStyle = getComputedStyle(image) || image.currentStyle;\n var imageWidth = image.clientWidth - parseFloat(imageStyle.paddingLeft) - parseFloat(imageStyle.paddingRight);\n var imageHeight = image.clientHeight - parseFloat(imageStyle.paddingTop) - parseFloat(imageStyle.paddingBottom);\n return [imageWidth, imageHeight];\n }\n }, {\n key: \"checkForImageLoaded\",\n value: function checkForImageLoaded() {\n var _this7 = this;\n\n var el = this.element.querySelector('.drag-and-drop-image');\n\n if (el) {\n if (el.complete) {\n Ember.run.next(function () {\n _this7.imageLoaded = true;\n });\n } else {\n this.element.querySelector('img').addEventListener('load', function () {\n Ember.run.next(function () {\n _this7.imageLoaded = true;\n });\n }, {\n once: true\n });\n }\n } else {\n Ember.run.later(this, this.checkForImageLoaded, 10);\n }\n }\n }, {\n key: \"toggleShownMatches\",\n value: function toggleShownMatches() {\n this.isShowingCorrectAnswers = !this.isShowingCorrectAnswers;\n }\n }]);\n\n return DragAndDropWithSnapResponseView;\n }(_component.default), (_descriptor23 = _applyDecoratedDescriptor(_class3.prototype, \"isShowingCorrectAnswers\", [_dec30], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor24 = _applyDecoratedDescriptor(_class3.prototype, \"imageLoaded\", [_dec31], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor25 = _applyDecoratedDescriptor(_class3.prototype, \"element\", [_dec32], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor26 = _applyDecoratedDescriptor(_class3.prototype, \"isShowingStudentResponse\", [_dec33], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor27 = _applyDecoratedDescriptor(_class3.prototype, \"matches\", [_dec34], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor28 = _applyDecoratedDescriptor(_class3.prototype, \"manualMatches\", [_dec35], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor29 = _applyDecoratedDescriptor(_class3.prototype, \"question\", [_dec36], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor30 = _applyDecoratedDescriptor(_class3.prototype, \"questionImage\", [_dec37], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class3.prototype, \"scoringDetails\", [_dec38], Object.getOwnPropertyDescriptor(_class3.prototype, \"scoringDetails\"), _class3.prototype), _descriptor31 = _applyDecoratedDescriptor(_class3.prototype, \"hasUnplacedAnswers\", [_dec39], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class3.prototype, \"unplacedAnswers\", [_dec40], Object.getOwnPropertyDescriptor(_class3.prototype, \"unplacedAnswers\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"correctMatches\", [_dec41], Object.getOwnPropertyDescriptor(_class3.prototype, \"correctMatches\"), _class3.prototype), _descriptor32 = _applyDecoratedDescriptor(_class3.prototype, \"isHiddenRegions\", [_dec42], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class3.prototype, \"toggleButtonText\", [_dec43], Object.getOwnPropertyDescriptor(_class3.prototype, \"toggleButtonText\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"matchesToShow\", [_dec44], Object.getOwnPropertyDescriptor(_class3.prototype, \"matchesToShow\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"dropTargets\", [_dec45], Object.getOwnPropertyDescriptor(_class3.prototype, \"dropTargets\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"studentChosenTooltips\", [_dec46], Object.getOwnPropertyDescriptor(_class3.prototype, \"studentChosenTooltips\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"correctTooltips\", [_dec47], Object.getOwnPropertyDescriptor(_class3.prototype, \"correctTooltips\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"tooltipsToShow\", [_dec48], Object.getOwnPropertyDescriptor(_class3.prototype, \"tooltipsToShow\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"draggableAnswers\", [_dec49], Object.getOwnPropertyDescriptor(_class3.prototype, \"draggableAnswers\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"didInsertResponseView\", [_dec50], Object.getOwnPropertyDescriptor(_class3.prototype, \"didInsertResponseView\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"toggleShownMatches\", [_dec51], Object.getOwnPropertyDescriptor(_class3.prototype, \"toggleShownMatches\"), _class3.prototype)), _class3));\n _exports.default = DragAndDropWithSnapResponseView;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, DragAndDropWithSnapResponseView);\n});","define(\"student-app/components/draggable-object-target\", [\"exports\", \"ember-drag-drop/components/draggable-object-target\"], function (_exports, _draggableObjectTarget) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-drag-drop/components/draggable-object-target\"eaimeta@70e063a35619d71f\n\n var _default = _draggableObjectTarget.default;\n _exports.default = _default;\n});","define(\"student-app/components/draggable-object\", [\"exports\", \"ember-drag-drop/components/draggable-object\"], function (_exports, _draggableObject) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-drag-drop/components/draggable-object\"eaimeta@70e063a35619d71f\n\n var _default = _draggableObject.default;\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/edit-answer-modal\", [\"exports\", \"jquery\", \"@glimmer/component\", \"student-app/api-requests/update-answer-request\", \"student-app/api-requests/delete-media-asset-request\"], function (_exports, _jquery, _component, _updateAnswerRequest, _deleteMediaAssetRequest) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"@ember/string\",0,\"jquery\",0,\"@glimmer/tracking\",0,\"@glimmer/component\",0,\"student-app/api-requests/update-answer-request\",0,\"student-app/api-requests/delete-media-asset-request\"eaimeta@70e063a35619d71f\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n
\n
\n
\n {{#if @isEditing}}\n

Edit Item

\n {{else}}\n

New Item

\n {{/if}}\n
\n
\n
\n \n
\n \n \n \n \n {{#if this.hasMediaAssets }}\n
\n {{#each @answer.mediaAssets as |mediaAsset|}}\n {{#if mediaAsset.isImage }}\n
\n
\n \n
\n \"{{mediaAsset.altText}}\"\n
\n {{/if}}\n \n {{#if mediaAsset.isAudio }}\n
\n \n
\n {{/if}}\n {{/each}}\n
\n {{/if}}\n
\n \n
\n
\n
\n {{#if @isEditing}}\n \n {{/if}}\n
\n
\n {{#if @isEditing}}\n \n Cancel Changes\n \n {{else}}\n \n Cancel\n \n {{/if}}\n \n {{#if this.isCorrectOrIncorrect}}\n \n {{/if}}\n \n \n Save Item\n \n
\n
\n
\n
\n
\n
\n \n {{#if this.showMediaUploadModal}}\n \n {{/if}}\n \n */\n {\n id: \"lmY/FT78\",\n block: \"{\\\"symbols\\\":[\\\"mediaAsset\\\",\\\"@answer\\\",\\\"@isEditing\\\"],\\\"statements\\\":[[5,\\\"modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@targetAttachment\\\",\\\"@translucentOverlay\\\"],[[23,0,[\\\"close\\\"]],\\\"center\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"span12\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-header\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"modal-title\\\"],[8],[0,\\\"Edit Item\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"modal-title\\\"],[8],[0,\\\"New Item\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-close\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"close-x close-x--bland close-x--large\\\"],[12,\\\"aria-label\\\",\\\"close\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"close\\\"]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-content\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"rich-text-editor\\\",[],[[\\\"@value\\\",\\\"@classes\\\",\\\"@field_id\\\",\\\"@changeAction\\\"],[[23,0,[\\\"body\\\"]],\\\"question-description input--full-width\\\",\\\"editing_answer_body\\\",[23,0,[\\\"answerBodyDidUpdate\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-upload-answer-media btn btn-white btn-mini upload-media-button\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openMediaUploadModal\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"i\\\",true],[10,\\\"class\\\",\\\"glyphicon icon-camera\\\"],[8],[9],[0,\\\"\\\\n Upload Media\\\\n \\\"],[9],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasMediaAssets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-assets create-answer__media-assets\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"mediaAssets\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,1,[\\\"isImage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-asset\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white delete btn-mini\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"removeAsset\\\"]],[23,1,[]]],null]]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\",true],[10,\\\"class\\\",\\\"app-image media-image\\\"],[11,\\\"src\\\",[23,1,[\\\"url\\\"]]],[11,\\\"alt\\\",[29,[[23,1,[\\\"altText\\\"]]]]],[11,\\\"data-id\\\",[29,[[23,1,[\\\"id\\\"]]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"isAudio\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"media-audio\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"large-audio-player\\\",[],[[\\\"@asset\\\",\\\"@canEdit\\\",\\\"@removeAsset\\\"],[[23,1,[]],true,[28,\\\"fn\\\",[[23,0,[\\\"removeAsset\\\"]],[23,1,[]]],null]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-footer\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-button-row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-button-row__left-col\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"btn btn-white app-delete\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"deleteAnswer\\\"]]]],[8],[0,\\\"Delete\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flex-button-row__right-col\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-padding reverse-link app-modal-secondary-action\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"close\\\"]]]],[8],[0,\\\"\\\\n Cancel Changes\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-padding reverse-link app-modal-secondary-action\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"close\\\"]]]],[8],[0,\\\"\\\\n Cancel\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isCorrectOrIncorrect\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"toggle-button\\\",[],[[\\\"@options\\\",\\\"@setToggle\\\",\\\"@value\\\",\\\"@classNames\\\"],[[23,0,[\\\"correctOrIncorrect\\\"]],[23,0,[\\\"setCorrect\\\"]],[23,0,[\\\"newCorrect\\\"]],\\\"app-correct-toggle toggle--correct-incorrect\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"disabled\\\",[23,0,[\\\"cannotSaveAnswer\\\"]]],[12,\\\"class\\\",[29,[\\\"app-modal-action app-save-answer btn btn-blue \\\",[28,\\\"unless\\\",[[23,0,[\\\"canSaveAnswer\\\"]],\\\"disabled\\\"],null]]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"save\\\"]]]],[8],[0,\\\"\\\\n Save Item\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showMediaUploadModal\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"media-upload-modal\\\",[],[[\\\"@attachee\\\",\\\"@allowEmbedCode\\\",\\\"@refreshAction\\\",\\\"@closeMediaUploadModal\\\"],[[23,2,[]],false,[23,0,[\\\"refetchAnswer\\\"]],[23,0,[\\\"closeMediaUploadModal\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/edit-answer-modal.hbs\"\n }\n });\n\n var EditAnswerModal = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember.computed.notEmpty('args.answer.mediaAssets'), _dec8 = Ember._action, _dec9 = Ember._action, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, _dec16 = Ember._action, _dec17 = Ember.computed('newBody', 'args.answer.mediaAssets.[]'), _dec18 = Ember.computed.not('canSaveAnswer'), _dec19 = Ember.computed('args.answer.body'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(EditAnswerModal, _Component);\n\n var _super = _createSuper(EditAnswerModal);\n\n function EditAnswerModal() {\n var _this;\n\n _classCallCheck(this, EditAnswerModal);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"flashService\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"modalDialog\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"newBody\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"newCorrect\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"showMediaUploadModal\", _descriptor6, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"correctOrIncorrect\", ['Answer', 'Distractor']);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasMediaAssets\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"cannotSaveAnswer\", _descriptor8, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(EditAnswerModal, [{\n key: \"isCorrectOrIncorrect\",\n get: function get() {\n var _this$args$isCorrectO;\n\n return (_this$args$isCorrectO = this.args.isCorrectOrIncorrect) !== null && _this$args$isCorrectO !== void 0 ? _this$args$isCorrectO : false;\n }\n }, {\n key: \"answerBodyDidUpdate\",\n value: function answerBodyDidUpdate(body) {\n this.newBody = body;\n }\n }, {\n key: \"close\",\n value: function () {\n var _close = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!this.args.isEditing) {\n _context.next = 4;\n break;\n }\n\n this.args.close();\n _context.next = 6;\n break;\n\n case 4:\n _context.next = 6;\n return this.deleteAnswer();\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function close() {\n return _close.apply(this, arguments);\n }\n\n return close;\n }()\n }, {\n key: \"deleteAnswer\",\n value: function () {\n var _deleteAnswer = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var answer;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n answer = this.args.answer;\n\n if (this.args.willDeleteAnswer != null) {\n this.args.willDeleteAnswer(answer);\n }\n\n _context2.prev = 2;\n _context2.next = 5;\n return this.apiClient.post('answers/delete', answer.id);\n\n case 5:\n this.args.close();\n this.args.refetchQuestion();\n _context2.next = 12;\n break;\n\n case 9:\n _context2.prev = 9;\n _context2.t0 = _context2[\"catch\"](2);\n this.flashService.error('Error: Could not delete answer.', _context2.t0);\n\n case 12:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 9]]);\n }));\n\n function deleteAnswer() {\n return _deleteAnswer.apply(this, arguments);\n }\n\n return deleteAnswer;\n }()\n }, {\n key: \"save\",\n value: function () {\n var _save = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var answer, updateAnswerRequest;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n if (!this.canSaveAnswer) {\n _context3.next = 15;\n break;\n }\n\n answer = this.args.answer;\n answer.body = this.newBody;\n answer.correct = this.newCorrect === 'Answer';\n updateAnswerRequest = (0, _updateAnswerRequest.convertAnswerToUpdateAnswerRequest)(answer);\n _context3.prev = 5;\n _context3.next = 8;\n return this.apiClient.post('answers/update', updateAnswerRequest);\n\n case 8:\n this.args.refetchQuestion();\n this.args.close();\n _context3.next = 15;\n break;\n\n case 12:\n _context3.prev = 12;\n _context3.t0 = _context3[\"catch\"](5);\n this.flashService.error('Error: Could not save answer.', _context3.t0);\n\n case 15:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[5, 12]]);\n }));\n\n function save() {\n return _save.apply(this, arguments);\n }\n\n return save;\n }()\n }, {\n key: \"refetchAnswer\",\n value: function refetchAnswer() {\n this.args.refetchAnswer();\n }\n }, {\n key: \"openMediaUploadModal\",\n value: function openMediaUploadModal() {\n this.showMediaUploadModal = true;\n }\n }, {\n key: \"closeMediaUploadModal\",\n value: function closeMediaUploadModal() {\n this.showMediaUploadModal = false;\n }\n }, {\n key: \"setCorrect\",\n value: function setCorrect(value) {\n this.newCorrect = value;\n }\n }, {\n key: \"removeAsset\",\n value: function () {\n var _removeAsset = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(asset) {\n var answer, request;\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n answer = this.args.answer;\n request = new _deleteMediaAssetRequest.DeleteMediaAssetRequest({\n mediaAssetId: asset.id,\n attacheeId: answer.id,\n attacheeType: \"Answer\"\n });\n _context4.prev = 2;\n _context4.next = 5;\n return this.apiClient.post('media-assets/delete', request);\n\n case 5:\n answer.mediaAssets.removeObject(asset);\n _context4.next = 11;\n break;\n\n case 8:\n _context4.prev = 8;\n _context4.t0 = _context4[\"catch\"](2);\n this.flashService.error('Error: Could not remove asset.', _context4.t0);\n\n case 11:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[2, 8]]);\n }));\n\n function removeAsset(_x) {\n return _removeAsset.apply(this, arguments);\n }\n\n return removeAsset;\n }()\n }, {\n key: \"canSaveAnswer\",\n get: function get() {\n var _this$args$answer$med;\n\n var newBody = \"

\" + this.newBody + \"

\";\n var hasBody = newBody && (0, _jquery.default)(newBody.toString()).text().trim().length > 0;\n var hasWirisContent = newBody && newBody.toString().indexOf(\"Wirisformula\") >= 0;\n var hasMediaAsset = ((_this$args$answer$med = this.args.answer.mediaAssets) === null || _this$args$answer$med === void 0 ? void 0 : _this$args$answer$med.length) > 0;\n return hasBody || hasWirisContent || hasMediaAsset;\n }\n }, {\n key: \"body\",\n get: function get() {\n if (this.args.answer) {\n return Ember.String.htmlSafe(this.args.answer.body);\n } else {\n return \"\";\n }\n }\n }]);\n\n return EditAnswerModal;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"flashService\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"modalDialog\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"newBody\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return this.args.answer.body;\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"newCorrect\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n var _this$args$answer$cor;\n\n return ((_this$args$answer$cor = this.args.answer.correct) !== null && _this$args$answer$cor !== void 0 ? _this$args$answer$cor : true) ? 'Answer' : 'Distractor';\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"showMediaUploadModal\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"hasMediaAssets\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"answerBodyDidUpdate\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"answerBodyDidUpdate\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"close\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"deleteAnswer\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"deleteAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"save\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"save\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"refetchAnswer\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"refetchAnswer\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"openMediaUploadModal\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"openMediaUploadModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeMediaUploadModal\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"closeMediaUploadModal\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"setCorrect\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"setCorrect\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeAsset\", [_dec16], Object.getOwnPropertyDescriptor(_class.prototype, \"removeAsset\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canSaveAnswer\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"canSaveAnswer\"), _class.prototype), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"cannotSaveAnswer\", [_dec18], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"body\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"body\"), _class.prototype)), _class));\n _exports.default = EditAnswerModal;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EditAnswerModal);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/edit-assessment-template-nav\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n Summary & Settings\n Questions\n \n
\n {{#if @assessmentTemplate.locked}}\n
Locked
\n {{/if}}\n
\n
\n \n \n \n
\n {{#if this.showTimerPopup}}\n \n {{/if}}\n
\n
\n {{@questionCount}}\n {{this.questionText}}\n
\n
\n {{@totalPoints}}\n {{this.pointText}}\n
\n
\n {{@standardCount}}\n {{this.standardText}}\n
\n
\n
\n
\n \n */\n {\n id: \"MSr+icds\",\n block: \"{\\\"symbols\\\":[\\\"@assessmentTemplate\\\",\\\"@questionCount\\\",\\\"@totalPoints\\\",\\\"@standardCount\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"bs-row bs-row--remove-column-padding\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation app-sub-navigation\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@model\\\",\\\"@classNames\\\"],[\\\"auth.assessment-template.edit.settings\\\",[23,1,[\\\"id\\\"]],\\\"sub-navigation__link app-assessment-settings\\\"]],{\\\"statements\\\":[[0,\\\"Summary & Settings\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@model\\\",\\\"@classNames\\\"],[\\\"auth.assessment-template.edit.questions\\\",[23,1,[\\\"id\\\"]],\\\"app-assessment-questions sub-navigation__link app-assessment-questions\\\"]],{\\\"statements\\\":[[0,\\\"Questions\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation__aside\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[\\\"locked\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation__aside-info\\\"],[8],[0,\\\"Locked\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",\\\"sub-navigation__aside-info sub-navigation__aside-info--time\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"openTimerPopup\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"app-assessment-timer\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"timer-display-text\\\",[],[[\\\"@timerInSecs\\\",\\\"@timerFormat\\\"],[[23,0,[\\\"timerInSecs\\\"]],[23,0,[\\\"timerFormat\\\"]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"showTimerPopup\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"timer-popup\\\",[],[[\\\"@classNames\\\",\\\"@closeTimerPopup\\\",\\\"@onTimerChange\\\",\\\"@initialTimer\\\",\\\"@initialFormat\\\"],[\\\"timer-popup timer-popup--assessment app-timer-popup\\\",[23,0,[\\\"closeTimerPopup\\\"]],[23,0,[\\\"onTimerChange\\\"]],[23,0,[\\\"timerInSecs\\\"]],[23,0,[\\\"timerFormat\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation__aside-info app-question-count\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"large-content\\\"],[8],[1,[23,2,[]],false],[9],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"questionText\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation__aside-info app-total-points\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"large-content\\\"],[8],[1,[23,3,[]],false],[9],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"pointText\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"sub-navigation__aside-info app-standard-count\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"large-content\\\"],[8],[1,[23,4,[]],false],[9],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"standardText\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/edit-assessment-template-nav.hbs\"\n }\n });\n\n var EditAssessmentTemplateNav = (_dec = Ember.computed.alias('args.assessmentTemplate.timerInSecs'), _dec2 = Ember.computed.alias('args.assessmentTemplate.timerFormat'), _dec3 = Ember.computed('args.questionCount'), _dec4 = Ember.computed('args.standardCount'), _dec5 = Ember.computed('args.totalPoints'), _dec6 = Ember._tracked, _dec7 = Ember._action, _dec8 = Ember._action, _dec9 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(EditAssessmentTemplateNav, _Component);\n\n var _super = _createSuper(EditAssessmentTemplateNav);\n\n function EditAssessmentTemplateNav() {\n var _this;\n\n _classCallCheck(this, EditAssessmentTemplateNav);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerInSecs\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"timerFormat\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"showTimerPopup\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(EditAssessmentTemplateNav, [{\n key: \"questionText\",\n get: function get() {\n return this.args.questionCount === 1 ? 'Question' : 'Questions';\n }\n }, {\n key: \"standardText\",\n get: function get() {\n return this.args.standardCount === 1 ? 'Standard' : 'Standards';\n }\n }, {\n key: \"pointText\",\n get: function get() {\n return this.args.totalPoints === 1 ? 'Point' : 'Points';\n }\n }, {\n key: \"openTimerPopup\",\n value: function openTimerPopup() {\n if (this.args.assessmentTemplate.locked) {\n return;\n }\n\n this.showTimerPopup = true;\n }\n }, {\n key: \"closeTimerPopup\",\n value: function closeTimerPopup() {\n this.showTimerPopup = false;\n }\n }, {\n key: \"onTimerChange\",\n value: function onTimerChange() {\n var _this$args;\n\n if (this.args.assessmentTemplate.locked) {\n return;\n }\n\n (_this$args = this.args).onTimerChange.apply(_this$args, arguments);\n }\n }]);\n\n return EditAssessmentTemplateNav;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"timerInSecs\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"timerFormat\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"questionText\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"questionText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"standardText\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"standardText\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"pointText\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"pointText\"), _class.prototype), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"showTimerPopup\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"openTimerPopup\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"openTimerPopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"closeTimerPopup\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"closeTimerPopup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onTimerChange\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"onTimerChange\"), _class.prototype)), _class));\n _exports.default = EditAssessmentTemplateNav;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EditAssessmentTemplateNav);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/educator-nav\", [\"exports\", \"student-app/models/application-config\", \"@glimmer/component\"], function (_exports, _applicationConfig, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _dec27, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/object/computed\",0,\"student-app/models/application-config\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n \n \n \n
\n
\n
    \n {{#if this.hasDashboard}}\n
  • \n Dashboard\n
  • \n {{/if}}\n \n {{#if this.canManageStudents}}\n
  • \n Students\n
  • \n {{/if}}\n \n {{#if this.canManageProgramSubscriptions}}\n
  • \n Program Subscriptions\n
  • \n {{/if}}\n \n {{#if this.hasBuildingOverview}}\n
  • \n Building Overview\n
  • \n {{/if}}\n \n {{#if this.canManageCourseGroups}}\n
  • \n Share Reports\n
  • \n {{/if}}\n \n {{#if this.canManageQuestions}}\n
  • \n Questions\n
  • \n {{/if}}\n \n {{#if this.canManageQuestionGroups}}\n
  • \n Question Groups\n
  • \n {{/if}}\n \n {{#if this.canManageAssessments}}\n
  • \n Assessments\n
  • \n {{/if}}\n \n {{#if this.canManagePrograms}}\n
  • \n Programs\n
  • \n {{/if}}\n \n {{#if this.canManageRubrics}}\n
  • \n Rubrics\n
  • \n {{/if}}\n \n {{#if this.canManageUsers}}\n
  • \n Users\n
  • \n {{/if}}\n \n {{#if this.canManageStandards}}\n
  • \n Standards\n
  • \n {{/if}}\n \n {{#if this.canViewReports}}\n
  • \n Reports\n
  • \n {{/if}}\n \n {{#if this.isTrainingOrganization}}\n \n
  • \n Training\n
  • \n {{/if}}\n \n
  • \n To Enrollment Management\n
  • \n \n
  • \n \n \n
      \n {{#if this.user.hasMultipleOrganizations}}\n
    • Switch Organizations
    • \n \n {{#each this.user.otherOrganizations as |org|}}\n
    • \n \n
    • \n {{/each}}\n {{/if}}\n \n {{#if this.user.canTrain}}\n
    • \n {{#if this.trainingOrgExists}}\n \n {{else}}\n \n {{/if}}\n
    • \n {{/if}}\n \n
    • \n \n
    • \n
    \n
  • \n
\n
\n
\n
\n \n */\n {\n id: \"/UZAS90P\",\n block: \"{\\\"symbols\\\":[\\\"org\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"class\\\",\\\"app-nav flex\\\"],[12,\\\"id\\\",\\\"nav\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertComponent\\\"]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"oaisd-logo\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"logos/oaisd-logo\\\",[],[[],[]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"nav-container\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"clearfix\\\"],[10,\\\"id\\\",\\\"main-nav\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"app-nav\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasDashboard\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[\\\"app-nav-item nav-item dashboard app-nav-dashboard \\\",[23,0,[\\\"dashboardClass\\\"]]]]],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-dashboard\\\"]],[[\\\"@route\\\"],[[23,0,[\\\"dashboardLink\\\"]]]],{\\\"statements\\\":[[0,\\\"Dashboard\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageStudents\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item students app-nav-students\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-students\\\"]],[[\\\"@route\\\"],[\\\"auth.course-roster\\\"]],{\\\"statements\\\":[[0,\\\"Students\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageProgramSubscriptions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item app-nav-program-subscriptions\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-dashboard\\\"]],[[\\\"@route\\\"],[\\\"auth.program-subscriptions\\\"]],{\\\"statements\\\":[[0,\\\"Program Subscriptions\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasBuildingOverview\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item app-nav-building-overview\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-dashboard\\\"]],[[\\\"@route\\\"],[\\\"auth.building-overview\\\"]],{\\\"statements\\\":[[0,\\\"Building Overview\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageCourseGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item course-groups app-nav-course-groups\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-course-groups\\\"]],[[\\\"@route\\\"],[\\\"auth.course-groups\\\"]],{\\\"statements\\\":[[0,\\\"Share Reports\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageQuestions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item questions app-nav-questions\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-questions\\\"]],[[\\\"@route\\\"],[\\\"auth.questions\\\"]],{\\\"statements\\\":[[0,\\\"Questions\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageQuestionGroups\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item question-groups app-nav-question-groups\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-question-groups\\\"]],[[\\\"@route\\\"],[\\\"auth.question-group\\\"]],{\\\"statements\\\":[[0,\\\"Question Groups\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageAssessments\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item assessments app-nav-assessment-templates\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-assessment-templates\\\"]],[[\\\"@route\\\"],[\\\"auth.assessment-template\\\"]],{\\\"statements\\\":[[0,\\\"Assessments\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManagePrograms\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item programs app-nav-programs\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-programs\\\"]],[[\\\"@route\\\"],[\\\"auth.programs\\\"]],{\\\"statements\\\":[[0,\\\"Programs\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageRubrics\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item rubrics app-nav-rubrics\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-rubrics\\\"]],[[\\\"@route\\\"],[\\\"auth.rubric\\\"]],{\\\"statements\\\":[[0,\\\"Rubrics\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageUsers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item users app-nav-users\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-users\\\"]],[[\\\"@route\\\"],[\\\"auth.users\\\"]],{\\\"statements\\\":[[0,\\\"Users\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canManageStandards\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item standards app-nav-standards\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-standards\\\"]],[[\\\"@route\\\"],[\\\"auth.standard\\\"]],{\\\"statements\\\":[[0,\\\"Standards\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"canViewReports\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item reports app-nav-reports\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-reports\\\"]],[[\\\"@route\\\"],[\\\"auth.reports.index\\\"]],{\\\"statements\\\":[[0,\\\"Reports\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isTrainingOrganization\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"body-mod\\\",[],[[\\\"@class\\\"],[\\\"app-training training\\\"]]],[0,\\\"\\\\n \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item training app-nav-training\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"link-to\\\",[[12,\\\"class\\\",\\\"nav-training\\\"]],[[\\\"@route\\\"],[\\\"auth.training-organization\\\"]],{\\\"statements\\\":[[0,\\\"Training\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-nav-item nav-item\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"a\\\",true],[11,\\\"href\\\",[23,0,[\\\"dataManagerUrl\\\"]]],[8],[0,\\\"To Enrollment Management\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"li\\\",true],[11,\\\"class\\\",[29,[\\\"dropdown \\\",[28,\\\"if\\\",[[23,0,[\\\"isOpen\\\"]],\\\"open\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-user-utils-opener dropdown-toggle nav-item\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggle\\\"]]]],[8],[0,\\\"\\\\n Hello, \\\"],[1,[23,0,[\\\"user\\\",\\\"firstName\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\",true],[10,\\\"class\\\",\\\"dropdown-menu nav-dropdown\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"user\\\",\\\"hasMultipleOrganizations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"nav-header\\\"],[8],[0,\\\"Switch Organizations\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"user\\\",\\\"otherOrganizations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-organization nav-dropdown-item\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"change-organization-link\\\",[],[[\\\"@user\\\",\\\"@organization\\\"],[[23,0,[\\\"user\\\"]],[23,1,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"user\\\",\\\"canTrain\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"app-training-util nav-dropdown-item\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"trainingOrgExists\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"change-organization-link\\\",[],[[\\\"@classNames\\\",\\\"@user\\\",\\\"@organization\\\",\\\"@organizationLabel\\\"],[\\\"app-activate-training\\\",[23,0,[\\\"user\\\"]],[23,0,[\\\"trainingOrg\\\"]],\\\"Training Mode\\\"]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"app-activate-training no-bg no-border no-text-align\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"goToTraining\\\"]]]],[8],[0,\\\"\\\\n Training Mode\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"nav-dropdown-item\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"no-bg no-border no-text-align app-sign-out sign-out-link\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"signOut\\\"]]]],[8],[0,\\\"Sign out\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/educator-nav.hbs\"\n }\n });\n\n var EducatorNav = (_dec = Ember.inject.service('userSession'), _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember.computed('user.roles.[]'), _dec7 = Ember.computed('user.trumpRole.title'), _dec8 = Ember.computed('user.roles.[]'), _dec9 = Ember.computed('user.roles.[]'), _dec10 = Ember.computed('user.roles.[]'), _dec11 = Ember.computed.readOnly('canManageQuestions'), _dec12 = Ember.computed.readOnly('canManageQuestions'), _dec13 = Ember.computed('user.roles.[]'), _dec14 = Ember.computed('user.roles.[]'), _dec15 = Ember.computed('user.roles.[]'), _dec16 = Ember.computed.readOnly('hasBuildingOverview'), _dec17 = Ember.computed('user.roles.[]'), _dec18 = Ember.computed('user.roles.[]'), _dec19 = Ember.computed('user.roles.[]'), _dec20 = Ember.computed.readOnly('user.organization.training'), _dec21 = Ember.computed('user.organizations.[]'), _dec22 = Ember.computed('user.organizations.[]'), _dec23 = Ember.computed('user.roles.[]'), _dec24 = Ember._action, _dec25 = Ember._action, _dec26 = Ember._action, _dec27 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(EducatorNav, _Component);\n\n var _super = _createSuper(EducatorNav);\n\n function EducatorNav() {\n var _this;\n\n _classCallCheck(this, EducatorNav);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"session\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apiClient\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"router\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"dataManagerUrl\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOpen\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canManageQuestionGroups\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canManageRubrics\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"canManageProgramSubscriptions\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isTrainingOrganization\", _descriptor9, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(EducatorNav, [{\n key: \"user\",\n get: function get() {\n return this.session.current;\n }\n }, {\n key: \"hasDashboard\",\n get: function get() {\n var u = this.user;\n return u != null && ((u.hasRole('proctor') || u.hasRole('building_administrator')) && u.hasCourses || u.hasRole('administrator'));\n }\n }, {\n key: \"dashboardClass\",\n get: function get() {\n return \"app-nav-\".concat(this.user.trumpRole.title.dasherize(), \"-dashboard\");\n }\n }, {\n key: \"canManageStudents\",\n get: function get() {\n var u = this.user;\n return u.hasCourses && (u.hasRole('proctor') || u.hasRole('building_administrator'));\n }\n }, {\n key: \"canManageAssessments\",\n get: function get() {\n return this.user.hasRole('creator') || this.user.hasRole('program_administrator');\n }\n }, {\n key: \"canManageQuestions\",\n get: function get() {\n return this.user.hasRole('creator');\n }\n }, {\n key: \"canManagePrograms\",\n get: function get() {\n return this.user.hasRole('program_administrator') || this.user.hasRole('administrator');\n }\n }, {\n key: \"canManageUsers\",\n get: function get() {\n return this.user.hasRole('organization_administrator');\n }\n }, {\n key: \"hasBuildingOverview\",\n get: function get() {\n return this.user.hasRole('building_administrator') || this.user.hasRole('organization_administrator');\n }\n }, {\n key: \"canManageCourseGroups\",\n get: function get() {\n return this.user.hasRole('building_administrator') || this.user.hasRole('organization_administrator');\n }\n }, {\n key: \"canManageStandards\",\n get: function get() {\n return this.user.hasRole('administrator');\n }\n }, {\n key: \"canViewReports\",\n get: function get() {\n return !this.user.hasRole('administrator');\n }\n }, {\n key: \"trainingOrgExists\",\n get: function get() {\n return this.user.organizations.any(function (o) {\n return o.training;\n });\n }\n }, {\n key: \"trainingOrg\",\n get: function get() {\n return this.user.organizations.findBy('training');\n }\n }, {\n key: \"dashboardLink\",\n get: function get() {\n var u = this.user;\n\n if (u.hasRole('administrator')) {\n return 'auth.admin.organizations';\n } else {\n return 'auth.courses-dashboard';\n }\n }\n }, {\n key: \"goToTraining\",\n value: function () {\n var _goToTraining = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.apiClient.post('training/setup-organization');\n\n case 2:\n this.router.transitionTo('auth.training-organization');\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function goToTraining() {\n return _goToTraining.apply(this, arguments);\n }\n\n return goToTraining;\n }()\n }, {\n key: \"didInsertComponent\",\n value: function () {\n var _didInsertComponent = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var appConfig;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return this.apiClient.fetch('application-config', _applicationConfig.default);\n\n case 2:\n appConfig = _context2.sent;\n this.dataManagerUrl = appConfig.dataManagerUrl;\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function didInsertComponent() {\n return _didInsertComponent.apply(this, arguments);\n }\n\n return didInsertComponent;\n }()\n }, {\n key: \"signOut\",\n value: function signOut() {\n this.session.signOut();\n }\n }, {\n key: \"toggle\",\n value: function toggle() {\n this.isOpen = !this.isOpen;\n }\n }]);\n\n return EducatorNav;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"session\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"apiClient\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"dataManagerUrl\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"hasDashboard\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"hasDashboard\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dashboardClass\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"dashboardClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canManageStudents\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"canManageStudents\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canManageAssessments\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"canManageAssessments\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canManageQuestions\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"canManageQuestions\"), _class.prototype), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"canManageQuestionGroups\", [_dec11], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"canManageRubrics\", [_dec12], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"canManagePrograms\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"canManagePrograms\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canManageUsers\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"canManageUsers\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"hasBuildingOverview\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"hasBuildingOverview\"), _class.prototype), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"canManageProgramSubscriptions\", [_dec16], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"canManageCourseGroups\", [_dec17], Object.getOwnPropertyDescriptor(_class.prototype, \"canManageCourseGroups\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canManageStandards\", [_dec18], Object.getOwnPropertyDescriptor(_class.prototype, \"canManageStandards\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"canViewReports\", [_dec19], Object.getOwnPropertyDescriptor(_class.prototype, \"canViewReports\"), _class.prototype), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"isTrainingOrganization\", [_dec20], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"trainingOrgExists\", [_dec21], Object.getOwnPropertyDescriptor(_class.prototype, \"trainingOrgExists\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"trainingOrg\", [_dec22], Object.getOwnPropertyDescriptor(_class.prototype, \"trainingOrg\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"dashboardLink\", [_dec23], Object.getOwnPropertyDescriptor(_class.prototype, \"dashboardLink\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"goToTraining\", [_dec24], Object.getOwnPropertyDescriptor(_class.prototype, \"goToTraining\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertComponent\", [_dec25], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertComponent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"signOut\", [_dec26], Object.getOwnPropertyDescriptor(_class.prototype, \"signOut\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec27], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype)), _class));\n _exports.default = EducatorNav;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EducatorNav);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/embed-code-base\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component\",0,\"@glimmer/tracking\",0,\"@ember/runloop\",0,\"@ember/service\",0,\"@ember/object\",0,\"@ember/string\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var MinimumLoadTimes = [100, 500, 1000, 5000];\n var EmbedCodeBase = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember.computed('content'), _dec6 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(EmbedCodeBase, _Component);\n\n var _super = _createSuper(EmbedCodeBase);\n\n function EmbedCodeBase() {\n var _this;\n\n _classCallCheck(this, EmbedCodeBase);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"modalDialog\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"loadTrigger\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"element\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"minLoadTimers\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(EmbedCodeBase, [{\n key: \"safeContent\",\n get: function get() {\n return Ember.String.htmlSafe(\"
\".concat(this.content, \"
\"));\n }\n }, {\n key: \"hasSrcDoc\",\n get: function get() {\n return !!(\"srcdoc\" in document.createElement(\"iframe\"));\n }\n }, {\n key: \"didInsertEmbedCode\",\n value: function didInsertEmbedCode(element) {\n var _this2 = this;\n\n this.element = element;\n var frame = this.element.querySelector(\"iframe\");\n\n if (!frame) {\n return;\n }\n\n var writeToDocument = function writeToDocument() {\n var doc = frame.contentWindow.document;\n doc.open();\n doc.write(_this2.safeContent);\n doc.close();\n };\n\n if (!this.hasSrcDoc) {\n Ember.run.next(this, writeToDocument);\n }\n\n this.minLoadTimers = MinimumLoadTimes.map(function (t) {\n return Ember.run.later(function () {\n if (_this2.isLoaded) {\n _this2.loadTrigger += 1;\n }\n }, t);\n });\n frame.addEventListener('load', function () {\n _this2.isLoaded = true;\n _this2.loadTrigger += 1;\n });\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(EmbedCodeBase.prototype), \"willDestroy\", this).apply(this, arguments);\n\n if (!this.minLoadTimers) {\n return;\n }\n\n this.minLoadTimers.forEach(function (t) {\n return Ember.run.cancel(t);\n });\n }\n }]);\n\n return EmbedCodeBase;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"modalDialog\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"loadTrigger\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"element\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"minLoadTimers\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"safeContent\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"safeContent\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertEmbedCode\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertEmbedCode\"), _class.prototype)), _class));\n _exports.default = EmbedCodeBase;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/embed-preview-modal\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n
\n
\n
\n

Embedded Content

\n
\n
\n
\n \n
\n \n
\n \n
\n
\n
\n \n */\n {\n id: \"eTvKdiU7\",\n block: \"{\\\"symbols\\\":[\\\"@asset\\\"],\\\"statements\\\":[[5,\\\"modal-dialog\\\",[],[[\\\"@onClose\\\",\\\"@targetAttachment\\\",\\\"@translucentOverlay\\\"],[[23,0,[\\\"close\\\"]],\\\"center\\\",true]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"row app-embed-code-preview-modal\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"span12\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\",true],[10,\\\"class\\\",\\\"modal-title\\\"],[8],[0,\\\"Embedded Content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-close\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"close-x close-x--bland close-x--large\\\"],[12,\\\"aria-label\\\",\\\"close\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"close\\\"]]]],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"modal-content embed-preview-modal__content\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"full-size-embed-code\\\",[],[[\\\"@asset\\\"],[[23,1,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/embed-preview-modal.hbs\"\n }\n });\n\n var EmbedPreviewModal = (_dec = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(EmbedPreviewModal, _Component);\n\n var _super = _createSuper(EmbedPreviewModal);\n\n function EmbedPreviewModal() {\n _classCallCheck(this, EmbedPreviewModal);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(EmbedPreviewModal, [{\n key: \"close\",\n value: function close() {\n this.args.closeModal();\n }\n }]);\n\n return EmbedPreviewModal;\n }(_component.default), (_applyDecoratedDescriptor(_class.prototype, \"close\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"close\"), _class.prototype)), _class));\n _exports.default = EmbedPreviewModal;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EmbedPreviewModal);\n});","define(\"student-app/components/ember-modal-dialog/-basic-dialog\", [\"exports\", \"@makepanic/ember-modal-dialog-lite/components/basic-dialog\"], function (_exports, _basicDialog) {\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 _basicDialog.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"@makepanic/ember-modal-dialog-lite/components/basic-dialog\"eaimeta@70e063a35619d71f\n});","define(\"student-app/components/ember-tether\", [\"exports\", \"ember-tether/components/ember-tether\"], function (_exports, _emberTether) {\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 _emberTether.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-tether/components/ember-tether\"eaimeta@70e063a35619d71f\n});","define(\"student-app/components/ember-truncate/button-toggle\", [\"exports\", \"ember-truncate/components/ember-truncate/button-toggle\"], function (_exports, _buttonToggle) {\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 _buttonToggle.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-truncate/components/ember-truncate/button-toggle\"eaimeta@70e063a35619d71f\n});","define(\"student-app/components/ember-truncate/truncation-noop\", [\"exports\", \"ember-truncate/components/ember-truncate/truncation-noop\"], function (_exports, _truncationNoop) {\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 _truncationNoop.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-truncate/components/ember-truncate/truncation-noop\"eaimeta@70e063a35619d71f\n});","define(\"student-app/components/ember-truncate/truncation-target\", [\"exports\", \"ember-truncate/components/ember-truncate/truncation-target\"], function (_exports, _truncationTarget) {\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 _truncationTarget.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-truncate/components/ember-truncate/truncation-target\"eaimeta@70e063a35619d71f\n});","define(\"student-app/components/ember-wormhole\", [\"exports\", \"ember-wormhole/components/ember-wormhole\"], function (_exports, _emberWormhole) {\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 _emberWormhole.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-wormhole/components/ember-wormhole\"eaimeta@70e063a35619d71f\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/essay-question-analysis\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n \n \n \n \n \n \n {{#each this.brackets as |bracket|}}\n \n \n \n \n {{/each}}\n \n
Performance BracketPercent of Students
\n
\n {{ bracket.label }}\n {{ bracket.percentText }}\n
\n
\n \n
\n \n */\n {\n id: \"gnwN2Wf6\",\n block: \"{\\\"symbols\\\":[\\\"bracket\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponseAction\\\"],\\\"statements\\\":[[7,\\\"table\\\",true],[10,\\\"class\\\",\\\"question-results-table\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"question-results-table__header\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"question-results-table__data-column\\\"],[8],[0,\\\"Performance Bracket\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\",true],[10,\\\"class\\\",\\\"question-results-table__percent-column\\\"],[8],[0,\\\"Percent of Students\\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"brackets\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\",true],[10,\\\"class\\\",\\\"app-answer question-results-table__row\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-answer-body\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[8],[1,[23,1,[\\\"label\\\"]],false],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"question-results-table__extra-data\\\"],[8],[1,[23,1,[\\\"percentText\\\"]],false],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\",true],[10,\\\"class\\\",\\\"question-results-table__percent-data question-results-table__percent-data--essay\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"answer-performance-percent-bar\\\",[],[[\\\"@answer\\\",\\\"@studentLabel\\\",\\\"@bucketId\\\",\\\"@showStudentResults\\\",\\\"@selectAssessmentResponse\\\"],[[23,1,[]],\\\"Students in Bracket\\\",[23,1,[\\\"id\\\"]],[23,2,[]],[23,3,[]]]]],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/essay-question-analysis.hbs\"\n }\n });\n\n var EssayQuestionAnalysis = (_dec = Ember.computed.readOnly('args.answers'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(EssayQuestionAnalysis, _Component);\n\n var _super = _createSuper(EssayQuestionAnalysis);\n\n function EssayQuestionAnalysis() {\n var _this;\n\n _classCallCheck(this, EssayQuestionAnalysis);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"brackets\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(EssayQuestionAnalysis);\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"brackets\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = EssayQuestionAnalysis;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EssayQuestionAnalysis);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/essay-question-form\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/component\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if @showAnswerShade}}\n
\n \n
\n Answers Hidden\n
\n {{/if}}\n
\n \n \n
\n {{#each this.printingLineLoop }}\n
\n {{/each}}\n
\n
\n
\n \n */\n {\n id: \"Ku6WxkG8\",\n block: \"{\\\"symbols\\\":[\\\"@showAnswerShade\\\",\\\"@preview\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"question-answer-container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,1,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"answer-shade-indicator no-print\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"answer-shade\\\"],[10,\\\"alt\\\",\\\"Answer shade\\\"],[8],[9],[0,\\\"\\\\n \\\"],[7,\\\"br\\\",true],[8],[9],[0,\\\"\\\\n Answers Hidden\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"answers \\\",[28,\\\"if\\\",[[23,1,[]],\\\"answers-hidden\\\",\\\"\\\"],null]]]],[8],[0,\\\"\\\\n \\\"],[5,\\\"textarea\\\",[[12,\\\"class\\\",\\\"app-answer app-essay-answer-input answer textarea essay-answer-input no-print\\\"],[12,\\\"placeholder\\\",\\\"Fill in your answer here...\\\"],[12,\\\"disabled\\\",[23,2,[]]]],[[\\\"@autocomplete\\\",\\\"@focus-out\\\",\\\"@name\\\",\\\"@value\\\"],[\\\"off\\\",[23,0,[\\\"saveResponse\\\"]],\\\"answer\\\",[23,0,[\\\"response\\\",\\\"body\\\"]]]]],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"print\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"printingLineLoop\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"hr\\\",true],[10,\\\"class\\\",\\\"print-essay-line\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/essay-question-form.hbs\"\n }\n });\n\n var EssayQuestionForm = (_dec = Ember.inject.service, _dec2 = Ember.computed('printingLineCount'), _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(EssayQuestionForm, _Component);\n\n var _super = _createSuper(EssayQuestionForm);\n\n function EssayQuestionForm(owner, args) {\n var _this;\n\n _classCallCheck(this, EssayQuestionForm);\n\n _this = _super.call(this, owner, args);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"mathjaxManager\", _descriptor, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"printingLineCount\", 10);\n\n _this.mathjaxManager.updateFormulas();\n\n return _this;\n }\n\n _createClass(EssayQuestionForm, [{\n key: \"response\",\n get: function get() {\n var _this$args$response;\n\n return (_this$args$response = this.args.response) !== null && _this$args$response !== void 0 ? _this$args$response : null;\n }\n }, {\n key: \"answers\",\n get: function get() {\n var _this$args$answers;\n\n return (_this$args$answers = this.args.answers) !== null && _this$args$answers !== void 0 ? _this$args$answers : [];\n }\n }, {\n key: \"printingLineLoop\",\n get: function get() {\n return new Array(this.printingLineCount);\n }\n }, {\n key: \"saveResponse\",\n value: function saveResponse() {\n if (this.args.preview) {\n return;\n }\n\n this.args.saveResponse();\n }\n }]);\n\n return EssayQuestionForm;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"mathjaxManager\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"printingLineLoop\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"printingLineLoop\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"saveResponse\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"saveResponse\"), _class.prototype)), _class));\n _exports.default = EssayQuestionForm;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EssayQuestionForm);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/essay-response-view\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object/computed\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n
\n
\n {{@response.body}}\n
\n
\n \n {{#if this.hasRubric}}\n \n {{/if}}\n
\n */\n {\n id: \"r6IcGXko\",\n block: \"{\\\"symbols\\\":[\\\"@response\\\",\\\"@setResponsePoints\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"width-full\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"app-answer answer\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"essay-response app-essay-response\\\"],[11,\\\"data-response-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"body\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"hasRubric\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"response-view-rubric\\\",[],[[\\\"@response\\\",\\\"@setResponsePoints\\\",\\\"@locked\\\"],[[23,1,[]],[23,2,[]],[23,0,[\\\"locked\\\"]]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/essay-response-view.hbs\"\n }\n });\n\n var EssayResponseView = (_dec = Ember.computed.notEmpty('args.response.scoredRubric.id'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(EssayResponseView, _Component);\n\n var _super = _createSuper(EssayResponseView);\n\n function EssayResponseView() {\n var _this;\n\n _classCallCheck(this, EssayResponseView);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasRubric\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(EssayResponseView, [{\n key: \"locked\",\n get: function get() {\n var _this$args$locked;\n\n return (_this$args$locked = this.args.locked) !== null && _this$args$locked !== void 0 ? _this$args$locked : true;\n }\n }]);\n\n return EssayResponseView;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"hasRubric\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = EssayResponseView;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, EssayResponseView);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/filterable-dropdown\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@ember/utils\",0,\"@ember/runloop\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\n function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if @labelText}}\n {{@labelText}}\n {{/if}}\n \n \n \n
\n \n
    \n {{#if @defaultOption}}\n
  • \n \n
  • \n {{/if}}\n {{#if this.optionSections}}\n {{#each this.filteredSections as |section|}}\n
  • {{section.header}}\n {{#each section.optionPairs as |option|}}\n \n {{/each}}\n
  • \n
  • \n {{/each}}\n {{else}}\n {{#each this.filteredOptions as |option|}}\n
  • \n \n
  • \n {{/each}}\n {{/if}}\n
\n
\n
\n
\n \n {{#if this.isOpen}}\n \n {{/if}}\n \n */\n {\n id: \"gW7r2F51\",\n block: \"{\\\"symbols\\\":[\\\"option\\\",\\\"section\\\",\\\"option\\\",\\\"@defaultOption\\\",\\\"@labelText\\\"],\\\"statements\\\":[[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"toggle\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,5,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"toggle__label\\\"],[8],[1,[23,5,[]],false],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"span\\\",true],[11,\\\"class\\\",[29,[\\\"btn-group combined-dropdown \\\",[28,\\\"if\\\",[[23,0,[\\\"dropUp\\\"]],\\\"dropup\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"isOpen\\\"]],\\\"open\\\"],null],\\\" full-width\\\"]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",[29,[\\\"app-dropdown btn btn-white \\\",[28,\\\"if\\\",[[23,0,[\\\"isDisabled\\\"]],\\\"disabled\\\"],null],\\\" full-width\\\"]]],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggle\\\"]]]],[8],[0,\\\"\\\\n \\\"],[1,[23,0,[\\\"displayValue\\\"]],false],[7,\\\"span\\\",true],[10,\\\"class\\\",\\\"caret dropdown-caret\\\"],[8],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"dropdown-menu toggle-dropdown-menu filterable-dropdown\\\"],[8],[0,\\\"\\\\n \\\"],[5,\\\"input\\\",[[12,\\\"class\\\",\\\"input--full-width input--search app-dropdown-search\\\"],[12,\\\"aria-label\\\",\\\"search\\\"],[3,\\\"did-insert\\\",[[23,0,[\\\"didInsertFilter\\\"]]]]],[[\\\"@value\\\"],[[23,0,[\\\"filterValue\\\"]]]]],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\",true],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,4,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-text-align selectable-result\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectOption\\\"]],[23,4,[\\\"value\\\"]]],null]]],[8],[0,\\\"\\\\n \\\"],[1,[23,4,[\\\"text\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,0,[\\\"optionSections\\\"]]],null,{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"filteredSections\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"nav-header app-selection-group\\\"],[8],[1,[23,2,[\\\"header\\\"]],false],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,2,[\\\"optionPairs\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-text-align selectable-result\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectOption\\\"]],[23,3,[\\\"value\\\"]]],null]]],[8],[0,\\\"\\\\n \\\"],[1,[23,3,[\\\"text\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"divider\\\"],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,0,[\\\"filteredOptions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[8],[0,\\\"\\\\n \\\"],[7,\\\"button\\\",false],[12,\\\"class\\\",\\\"text-button no-bg no-border no-text-align selectable-result\\\"],[12,\\\"type\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[28,\\\"fn\\\",[[23,0,[\\\"selectOption\\\"]],[23,1,[\\\"value\\\"]]],null]]],[8],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"text\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,0,[\\\"isOpen\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\",false],[12,\\\"class\\\",\\\"backdrop\\\"],[12,\\\"role\\\",\\\"button\\\"],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"toggle\\\"]]]],[8],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/filterable-dropdown.hbs\"\n }\n });\n\n var FilterableDropdown = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, _dec6 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(FilterableDropdown, _Component);\n\n var _super = _createSuper(FilterableDropdown);\n\n function FilterableDropdown() {\n var _this;\n\n _classCallCheck(this, FilterableDropdown);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isOpen\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"filterValue\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"filterElement\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(FilterableDropdown, [{\n key: \"isDisabled\",\n get: function get() {\n var _this$args$isDisabled;\n\n return (_this$args$isDisabled = this.args.isDisabled) !== null && _this$args$isDisabled !== void 0 ? _this$args$isDisabled : false;\n }\n }, {\n key: \"options\",\n get: function get() {\n var _this$args$options;\n\n return (_this$args$options = this.args.options) !== null && _this$args$options !== void 0 ? _this$args$options : null;\n }\n }, {\n key: \"optionPairs\",\n get: function get() {\n var _this$args$optionPair;\n\n return (_this$args$optionPair = this.args.optionPairs) !== null && _this$args$optionPair !== void 0 ? _this$args$optionPair : null;\n }\n }, {\n key: \"optionSections\",\n get: function get() {\n var _this$args$optionSect;\n\n return (_this$args$optionSect = this.args.optionSections) !== null && _this$args$optionSect !== void 0 ? _this$args$optionSect : null;\n }\n }, {\n key: \"dropUp\",\n get: function get() {\n return this.args.dropUp && this.isOpen;\n }\n }, {\n key: \"value\",\n get: function get() {\n var _this$args$value;\n\n return (_this$args$value = this.args.value) !== null && _this$args$value !== void 0 ? _this$args$value : null;\n }\n }, {\n key: \"placeholder\",\n get: function get() {\n var _this$args$placeholde;\n\n return (_this$args$placeholde = this.args.placeholder) !== null && _this$args$placeholde !== void 0 ? _this$args$placeholde : null;\n }\n }, {\n key: \"displayOptions\",\n get: function get() {\n if (this.optionPairs) {\n return this.optionPairs;\n } else {\n if (Ember.isEmpty(this.options)) {\n return [];\n }\n\n return this.options.map(function (o) {\n return {\n text: o,\n value: o\n };\n });\n }\n }\n }, {\n key: \"filteredOptions\",\n get: function get() {\n var _this2 = this;\n\n if (this.filterValue) {\n return this.displayOptions.filter(function (o) {\n return o.text.toLowerCase().includes(_this2.filterValue.toLowerCase());\n });\n } else {\n return this.displayOptions;\n }\n }\n }, {\n key: \"filteredSections\",\n get: function get() {\n var _this3 = this;\n\n if (this.filterValue) {\n return this.optionSections.map(function (s) {\n return _objectSpread(_objectSpread({}, s), {}, {\n optionPairs: s.optionPairs.filter(function (o) {\n return o.text.toLowerCase().includes(_this3.filterValue.toLowerCase());\n })\n });\n }).filter(function (s) {\n return s.optionPairs.length > 0;\n });\n } else {\n return this.optionSections;\n }\n }\n }, {\n key: \"displayValue\",\n get: function get() {\n var _this$displayOptions$3;\n\n if (this.placeholder) {\n var _this$displayOptions$;\n\n return ((_this$displayOptions$ = this.displayOptions.findBy('value', this.value)) === null || _this$displayOptions$ === void 0 ? void 0 : _this$displayOptions$.text) || this.placeholder;\n }\n\n if (this.args.defaultOption) {\n var _this$displayOptions$2;\n\n return ((_this$displayOptions$2 = this.displayOptions.findBy('value', this.value)) === null || _this$displayOptions$2 === void 0 ? void 0 : _this$displayOptions$2.text) || this.args.defaultOption.text;\n }\n\n return (_this$displayOptions$3 = this.displayOptions.findBy('value', this.value)) === null || _this$displayOptions$3 === void 0 ? void 0 : _this$displayOptions$3.text;\n }\n }, {\n key: \"selectOption\",\n value: function selectOption(value) {\n this.args.selectOption(value);\n this.isOpen = false;\n }\n }, {\n key: \"toggle\",\n value: function toggle() {\n var _this4 = this;\n\n if (this.isDisabled) {\n return;\n }\n\n this.isOpen = !this.isOpen;\n\n if (this.isOpen) {\n Ember.run.next(this, function () {\n _this4.filterElement.focus();\n });\n }\n }\n }, {\n key: \"didInsertFilter\",\n value: function didInsertFilter(element) {\n this.filterElement = element;\n }\n }]);\n\n return FilterableDropdown;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isOpen\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"filterValue\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"filterElement\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"selectOption\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"selectOption\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"toggle\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"toggle\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"didInsertFilter\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"didInsertFilter\"), _class.prototype)), _class));\n _exports.default = FilterableDropdown;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, FilterableDropdown);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/filterable-multi-column-list\", [\"exports\", \"@glimmer/component\", \"student-app/models/base-model\"], function (_exports, _component, _baseModel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3, _dec4, _dec5, _dec6, _dec7, _class3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@glimmer/tracking\",0,\"@glimmer/component\",0,\"student-app/models/base-model\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n \n
\n {{#if @disabled}}\n
\n {{@disabledText}}\n
\n {{else}}\n
    \n {{#each this.filteredItems as |item|}}\n
  1. \n {{#if @radio}}\n \n {{else}}\n \n {{/if}}\n
  2. \n {{/each}}\n
\n {{/if}}\n
\n \n */\n {\n id: \"R2zkJFJh\",\n block: \"{\\\"symbols\\\":[\\\"item\\\",\\\"@dataType\\\",\\\"@radio\\\",\\\"@disabledText\\\",\\\"@ariaLabel\\\",\\\"@disabled\\\"],\\\"statements\\\":[[5,\\\"input\\\",[[12,\\\"class\\\",\\\"input--full-width input--search\\\"],[12,\\\"aria-label\\\",[23,5,[]]]],[[\\\"@value\\\"],[[23,0,[\\\"filterValue\\\"]]]]],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\",true],[11,\\\"data-list-type\\\",[23,2,[]]],[10,\\\"class\\\",\\\"multi-column-list__container\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,6,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"multi-column-list--disabled\\\"],[8],[0,\\\"\\\\n \\\"],[1,[23,4,[]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"ol\\\",true],[10,\\\"class\\\",\\\"multi-column-list__list\\\"],[8],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,0,[\\\"filteredItems\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\",true],[10,\\\"class\\\",\\\"multi-column-list__list--item\\\"],[11,\\\"data-item-id\\\",[23,1,[\\\"id\\\"]]],[8],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"radio\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"input\\\",false],[12,\\\"checked\\\",[23,1,[\\\"checked\\\"]]],[12,\\\"name\\\",[23,2,[]]],[12,\\\"type\\\",\\\"radio\\\"],[3,\\\"on\\\",[\\\"change\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggle\\\"]],[23,1,[\\\"id\\\"]]],null]]],[8],[9],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"displayName\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\",true],[10,\\\"class\\\",\\\"checkbox\\\"],[8],[0,\\\"\\\\n \\\"],[7,\\\"input\\\",false],[12,\\\"checked\\\",[23,1,[\\\"checked\\\"]]],[12,\\\"name\\\",[23,2,[]]],[12,\\\"type\\\",\\\"checkbox\\\"],[3,\\\"on\\\",[\\\"change\\\",[28,\\\"fn\\\",[[23,0,[\\\"toggle\\\"]],[23,1,[\\\"id\\\"]]],null]]],[8],[9],[0,\\\"\\\\n \\\"],[1,[23,1,[\\\"displayName\\\"]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[9],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[9],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/filterable-multi-column-list.hbs\"\n }\n });\n\n var ItemState = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, (_class = /*#__PURE__*/function (_BaseModel) {\n _inherits(ItemState, _BaseModel);\n\n var _super = _createSuper(ItemState);\n\n function ItemState() {\n var _this;\n\n _classCallCheck(this, ItemState);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"id\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"checked\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"displayName\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(ItemState);\n }(_baseModel.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"id\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"checked\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"displayName\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n\n window.__CLASSIC_OWN_CLASSES__.set(ItemState, true);\n\n var FilterableMultiColumnList = (_dec4 = Ember._tracked, _dec5 = Ember.computed('args.items.[]'), _dec6 = Ember.computed('mappedItems', 'filterValue'), _dec7 = Ember._action, (_class3 = /*#__PURE__*/function (_Component) {\n _inherits(FilterableMultiColumnList, _Component);\n\n var _super2 = _createSuper(FilterableMultiColumnList);\n\n function FilterableMultiColumnList() {\n var _this2;\n\n _classCallCheck(this, FilterableMultiColumnList);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _super2.call.apply(_super2, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this2), \"filterValue\", _descriptor4, _assertThisInitialized(_this2));\n\n return _this2;\n }\n\n _createClass(FilterableMultiColumnList, [{\n key: \"mappedItems\",\n get: function get() {\n var _this3 = this;\n\n return this.args.items.map(function (item) {\n var _item$checked;\n\n return new ItemState({\n id: item.id,\n checked: (_item$checked = item.checked) !== null && _item$checked !== void 0 ? _item$checked : false,\n displayName: item[_this3.args.displayProperty]\n });\n });\n }\n }, {\n key: \"filteredItems\",\n get: function get() {\n var _this4 = this;\n\n if (this.filterValue) {\n return this.mappedItems.filter(function (i) {\n return i.displayName.toLowerCase().includes(_this4.filterValue.toLowerCase());\n });\n } else {\n return this.mappedItems;\n }\n }\n }, {\n key: \"toggle\",\n value: function toggle(selectedId) {\n var selectedItem = this.mappedItems.find(function (i) {\n return i.id == selectedId;\n });\n\n if (this.args.radio) {\n this.mappedItems.forEach(function (item) {\n item.checked = false;\n });\n selectedItem.checked = true;\n this.args.handleRadioToggle(selectedId);\n } else {\n selectedItem.checked = !selectedItem.checked;\n this.args.handleCheckboxToggle(selectedId);\n }\n }\n }]);\n\n return FilterableMultiColumnList;\n }(_component.default), (_descriptor4 = _applyDecoratedDescriptor(_class3.prototype, \"filterValue\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _applyDecoratedDescriptor(_class3.prototype, \"mappedItems\", [_dec5], Object.getOwnPropertyDescriptor(_class3.prototype, \"mappedItems\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"filteredItems\", [_dec6], Object.getOwnPropertyDescriptor(_class3.prototype, \"filteredItems\"), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, \"toggle\", [_dec7], Object.getOwnPropertyDescriptor(_class3.prototype, \"toggle\"), _class3.prototype)), _class3));\n _exports.default = FilterableMultiColumnList;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, FilterableMultiColumnList);\n});","define(\"student-app/components/flash-message\", [\"exports\", \"ember-cli-flash/components/flash-message\"], function (_exports, _flashMessage) {\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 _flashMessage.default;\n }\n });\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-flash/components/flash-message\"eaimeta@70e063a35619d71f\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/flash-notify\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@glimmer/tracking\",0,\"@glimmer/component\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n \n {{yield}}\n \n
\n
\n {{@text}}\n
\n
\n \n */\n {\n id: \"TD7m/ich\",\n block: \"{\\\"symbols\\\":[\\\"@classNames\\\",\\\"&default\\\",\\\"@text\\\"],\\\"statements\\\":[[7,\\\"div\\\",false],[12,\\\"role\\\",\\\"button\\\"],[12,\\\"class\\\",[29,[\\\"flash-notify actionable can-slide-up \\\",[28,\\\"if\\\",[[23,0,[\\\"isSlidingUp\\\"]],\\\"slide-up\\\"],null],\\\" \\\",[28,\\\"if\\\",[[23,0,[\\\"shouldHide\\\"]],\\\"hide\\\"],null],\\\" \\\",[23,1,[]]]]],[3,\\\"on\\\",[\\\"click\\\",[23,0,[\\\"onClick\\\"]]]],[8],[0,\\\"\\\\n \\\"],[14,2],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\",true],[11,\\\"class\\\",[29,[\\\"flash-overlay \\\",[23,0,[\\\"overlayClass\\\"]]]]],[8],[0,\\\"\\\\n \\\"],[7,\\\"div\\\",true],[10,\\\"class\\\",\\\"flash-notify__message\\\"],[8],[0,\\\"\\\\n \\\"],[1,[23,3,[]],false],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n \\\"],[9],[0,\\\"\\\\n\\\"],[9]],\\\"hasEval\\\":false}\",\n meta: {\n moduleName: \"student-app/components/flash-notify.hbs\"\n }\n });\n\n var FlashNotify = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember.computed('isHidden', 'isFlashing'), _dec5 = Ember.computed('isFlashing'), _dec6 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(FlashNotify, _Component);\n\n var _super = _createSuper(FlashNotify);\n\n function FlashNotify() {\n var _this;\n\n _classCallCheck(this, FlashNotify);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isFlashing\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isSlidingUp\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hideLaterToken\", _descriptor3, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"duration\", 1100);\n\n return _this;\n }\n\n _createClass(FlashNotify, [{\n key: \"isHidden\",\n get: function get() {\n var _this$args$isHidden;\n\n return (_this$args$isHidden = this.args.isHidden) !== null && _this$args$isHidden !== void 0 ? _this$args$isHidden : false;\n }\n }, {\n key: \"willDestroy\",\n value: function willDestroy() {\n _get(_getPrototypeOf(FlashNotify.prototype), \"willDestroy\", this).apply(this, arguments);\n\n Ember.run.cancel(this.hideLaterToken);\n }\n }, {\n key: \"shouldHide\",\n get: function get() {\n return !this.isFlashing && !this.isSlidingUp && this.isHidden;\n }\n }, {\n key: \"overlayClass\",\n get: function get() {\n return this.isFlashing ? 'flash-overlay--visible' : '';\n }\n }, {\n key: \"onClick\",\n value: function onClick() {\n if (this.isFlashing) {\n return;\n }\n\n this.isFlashing = true;\n this.hide();\n this.args.clickAction();\n }\n }, {\n key: \"hide\",\n value: function hide() {\n var _this2 = this;\n\n var transition = this.args.transitionOut;\n\n if (transition && this.isFlashing) {\n var hideLaterToken = Ember.run.later(this, function () {\n if (transition === 'slideUp') {\n _this2.isSlidingUp = true;\n }\n }, this.duration);\n this.hideLaterToken = hideLaterToken;\n }\n }\n }]);\n\n return FlashNotify;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"isFlashing\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"isSlidingUp\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"hideLaterToken\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"shouldHide\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"shouldHide\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"overlayClass\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"overlayClass\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"onClick\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"onClick\"), _class.prototype)), _class));\n _exports.default = FlashNotify;\n\n Ember._setComponentTemplate(__COLOCATED_TEMPLATE__, FlashNotify);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"student-app/components/full-size-embed-code\", [\"exports\", \"student-app/components/embed-code-base\"], function (_exports, _embedCodeBase) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-htmlbars\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@glimmer/tracking\",0,\"student-app/components/embed-code-base\"eaimeta@70e063a35619d71f\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var __COLOCATED_TEMPLATE__ = Ember.HTMLBars.template(\n /*\n
\n {{#if @canEdit }}\n
\n \n
\n {{/if}}\n \n {{#unless this.isLoaded}}\n
\n
Loading External Media...
\n
\n {{/unless}}\n \n