// eslint-disable-next-line no-shadow-restricted-names (function(define, undefined) { 'use strict'; define([ 'gettext', 'underscore', 'backbone', 'edx-ui-toolkit/js/utils/html-utils' ], function(gettext, _, Backbone, HtmlUtils) { var GroupView, ChapterView; GroupView = Backbone.View.extend({ tagName: 'section', id: function() { return 'note-section-' + _.uniqueId(); }, initialize: function(options) { this.options = _.extend({}, options); this.template = HtmlUtils.template(this.options.template); this.className = this.options.className; }, render: function() { HtmlUtils.prepend(this.$el, this.template({ displayName: this.options.displayName })); return this; }, addChild: function(child) { this.$el.append(HtmlUtils.HTML(child).toString()); } }); ChapterView = Backbone.View.extend({ tagName: 'section', className: 'note-group', id: function() { return 'note-group-' + _.uniqueId(); }, template: HtmlUtils.template('