instructure/lti_public_resources

View on GitHub
app/assets/javascripts/lti_public_resources/app.min.js

Summary

Maintainability
A
0 mins
Test Coverage
define("appkit/app",["resolver","exports"],function(a,b){"use strict";var c=a["default"];Ember.View.reopen({init:function(){this._super();var a=this;Em.keys(this).forEach(function(b){"data-"===b.substr(0,5)&&a.get("attributeBindings").pushObject(b)})}});var d=Ember.Application.extend({LOG_ACTIVE_GENERATION:!0,LOG_MODULE_RESOLVER:!0,LOG_TRANSITIONS:!0,LOG_TRANSITIONS_INTERNAL:!0,LOG_VIEW_LOOKUPS:!0,modulePrefix:"appkit",Resolver:c["default"]});Ember.RSVP.configure("onerror",function(a){a instanceof Error&&(Ember.Logger.assert(!1,a),Ember.Logger.error(a.stack))}),b["default"]=d}),define("appkit/components/ic-spinner",["exports"],function(a){"use strict";var b=Ember.Component.extend({spinner:void 0,lines:9,length:4,width:3,radius:6,corners:1,rotate:0,direction:1,color:"#000",speed:1,trail:63,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"auto",left:"auto",showSpinner:function(){var a=this.get("element");this.spinner=new Spinner({lines:this.get("lines"),length:this.get("length"),width:this.get("width"),radius:this.get("radius"),corners:this.get("corners"),rotate:this.get("rotate"),direction:this.get("direction"),color:this.get("color"),speed:this.get("speed"),trail:this.get("trail"),shadow:this.get("shadow"),hwaccel:this.get("hwaccel"),className:this.get("className"),zIndex:this.get("zIndex"),top:this.get("top"),left:this.get("left")}),this.spinner.spin(a)}.on("didInsertElement"),teardown:function(){this.spinner&&this.spinner.stop()}.on("willDestroyElement")});a["default"]=b}),define("appkit/controllers/lti-app",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({returnType:null,triggerModal:function(a){this.set("returnType",a),Em.$("#embed-modal").modal("show")}});a["default"]=b}),define("appkit/controllers/lti-app/browse-details",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({actions:{performSearch:function(){this.transitionToRoute("ltiApp.browse",{folderChain:this.get("folderChain")})}}});a["default"]=b}),define("appkit/controllers/lti-app/browse",["appkit/libs/browsable","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.ObjectController.extend({isLoaded:!0,targetRoute:"ltiApp.browseDetails",showDashboard:function(){return Ember.isEmpty(Ember.ENV.TOOL_ID)}.property("Ember.ENV.TOOL_ID"),parentFolderChain:function(){return"root"===this.get("folderChain")?null:this.get("folderChain").split(".").slice(0,-1).join(".")}.property("folderChain"),parentFolder:function(){return"root"===this.get("folderChain")?null:this.get("folderChain").split(".").pop()}.property("folderChain"),currentFolder:function(){return this.get("folderChain").split(".").pop()}.property("folderChain"),loadData:function(){var a=this;this.set("isLoaded",!1),c.findFolder(this.get("ltiApp.toolId"),this.get("currentFolder"),this.get("parentFolderChain")).then(function(b){a.set("isLoaded",!0),a.set("folders",b.get("folders")),a.set("items",b.get("items"))},function(b){console.log(b),a.set("isLoaded",!0)})}.observes("folderChain"),isEmptyResults:function(){return Em.isEmpty(this.get("items"))&&Em.isEmpty(this.get("folders"))}.property("items.@each","folders.@each"),actions:{goToFolder:function(a){var b=this.get("folderChain")+"."+a.id;this.transitionToRoute("ltiApp.browse",{folderChain:b})},goUpFolder:function(){var a=this.get("parentFolderChain");this.transitionToRoute("ltiApp.browse",{folderChain:a})},goToItem:function(a){this.transitionToRoute("ltiApp.browseDetails",{folderChain:this.get("folderChain"),item:a})}}});b["default"]=d}),define("appkit/controllers/lti-app/search",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({searchText:"",searchResults:null,init:function(){this._super(),this.set("searchResults",Em.A([]))}});a["default"]=b}),define("appkit/controllers/lti-app/search/details",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({});a["default"]=b}),define("appkit/controllers/lti-app/search/details/embed",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({});a["default"]=b}),define("appkit/controllers/lti-app/search/details/index",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({});a["default"]=b}),define("appkit/controllers/lti-app/search/index",["exports"],function(a){"use strict";var b=Ember.ArrayController.extend({showDashboard:function(){return Ember.isEmpty(Ember.ENV.TOOL_ID)}.property("Ember.ENV.TOOL_ID")});a["default"]=b}),define("appkit/controllers/lti-app/search/results",["appkit/libs/search","appkit/libs/response_types/video","appkit/libs/response_types/folder","appkit/libs/response_types/image","appkit/libs/response_types/quiz","appkit/libs/response_types/exercise","exports"],function(a,b,c,d,e,f,g){"use strict";var h=a["default"],i=b["default"],j=c["default"],k=d["default"],l=e["default"],m=f["default"],n=Ember.ArrayController.extend({isLoaded:!0,nextCriteria:null,loadingMore:!1,targetRoute:"ltiApp.search.details",showDashboard:function(){return Ember.isEmpty(Ember.ENV.TOOL_ID)}.property("Ember.ENV.TOOL_ID"),performSearch:function(){Ember.debug("performSearch: "+this.get("searchText"));var a=this;if(!Ember.isEmpty(this.get("searchText"))){this.set("isLoaded",!1),this.clear();var b=h.create({toolId:this.get("ltiApp.toolId"),searchText:this.get("searchText")});b.performRequest().then(function(c){var d=Em.Object.create(c.driver_response);return Em.isEmpty(d.get("next_criteria"))||d.set("next_criteria.tool_id",b.get("toolId")),a.parseResults(d),a.set("isLoaded",!0)},function(b){return Ember.debug("ERROR: "+b),a.set("isLoaded",!0)})}},searchForText:function(a){this.set("searchText",a),this.performSearch()},parseResults:function(a){var b=this;this.set("nextCriteria",a.get("next_criteria")),this.set("performedSearch",!0),a.get("items").forEach(function(a){var c=null;switch(a.kind){case"video":c=i.createFromData(a);break;case"folder":c=j.createFromData(a);break;case"image":c=k.createFromData(a);break;case"quiz":c=l.createFromData(a);break;case"exercise":c=m.createFromData(a)}c&&b.pushObject(c)})},actions:{showDetails:function(a){this.transitionToRoute("ltiApp.search.details.index",a)},getMore:function(){if(!Ember.isEmpty(this.get("nextCriteria"))){this.set("loadingMore",!0);var a=Ember.ENV.CONFIG.host+"/api/search",b=this.get("nextCriteria"),c=this;Em.$.post(a,b).done(function(a){var d;d=Ember.Object.create(a.driver_response),Em.isEmpty(d.get("next_criteria"))||d.set("next_criteria.tool_id",b.tool_id),c.parseResults(d),c.set("loadingMore",!1)}).fail(function(a){return Ember.debug("Error: "+a),c.set("loadingMore",!1)})}}}});g["default"]=n}),define("appkit/controllers/lti-apps",["exports"],function(a){"use strict";var b=Ember.ArrayController.extend({searchText:"",filteredApps:function(){var a=this.get("searchText");if(Em.isEmpty(a))return this.get("content");var b=this.get("content").filter(function(b){var c=b.get("name").toLowerCase();return c.match(a.toLowerCase())});return b}.property("searchText")});a["default"]=b}),define("appkit/helpers/if-equal",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.registerHelper(function(a,b,c){return c.data.view.content.get(a)===b?c.fn(this):c.inverse(this)})}),define("appkit/helpers/seconds-to-time",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.makeBoundHelper(function(a){var b=Math.floor(a/3600);a-=3600*b;var c=Math.floor(a/60);a-=60*c;var d=parseInt(a%60,10);return b?b+":"+(10>c?"0"+c:c)+":"+(10>d?"0"+d:d):(10>c?"0"+c:c)+":"+(10>d?"0"+d:d)})}),define("appkit/helpers/truncate-text",["exports"],function(a){"use strict";a["default"]=Ember.Handlebars.makeBoundHelper(function(a,b){return a.length>b?new Handlebars.SafeString(a.substring(0,b-3)+"&#8230;"):a})}),define("appkit/libs/browsable",["appkit/utils/ajax","appkit/libs/response_types/video","appkit/libs/response_types/folder","appkit/libs/response_types/image","appkit/libs/response_types/quiz","appkit/libs/response_types/exercise","exports"],function(a,b,c,d,e,f,g){"use strict";var h=a["default"],i=b["default"],j=c["default"],k=d["default"],l=e["default"],m=(f["default"],Ember.Object.extend({folders:null,items:null,init:function(){this._super(),this.set("folders",Em.A([])),this.set("items",Em.A([]))}}));m.reopenClass({findFolder:function(a,b,c){var d,e,f;return f=Ember.ENV.CONFIG.host+"/api/browse",d=m.create({}),e=c+"."+b,h({type:"POST",url:f,dataType:"json",data:{folder:b,tool_id:a}}).then(function(a){var b=a.driver_response.items;return b.forEach(function(a){var b;switch(b=null,a.kind){case"folder":b=j.createFromData(a),d.get("folders").pushObject(b);break;case"video":b=i.createFromData(a),b.set("folderChain",e),d.get("items").pushObject(b);break;case"image":b=k.createFromData(a),b.set("folderChain",e),d.get("items").pushObject(b);break;case"quiz":b=l.createFromData(a),b.set("folderChain",e),d.get("items").pushObject(b);break;default:Em.debug("UNKNOWN KIND: "+a.kind)}}),new Ember.RSVP.Promise(function(a,b){a(d),b(d)})},function(a){return Ember.debug("Error: "+a),new Ember.RSVP.Promise(function(b,c){b(d),c(a)})})}}),g["default"]=m}),define("appkit/libs/lti-app",["appkit/utils/ajax","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Object.extend({toolId:null,name:null,toolType:null,imageUrl:null,description:null,imageSrc:function(){return Em.ENV.CONFIG.imagePath+"/"+this.get("imageUrl")}.property("imageUrl")});d.reopenClass({find:function(){var a=c(Em.ENV.CONFIG.host+"/api/lti_apps").then(function(a){var b=Em.A([]);for(var c in a.lti_apps)b.addObject(d.createFromData(a.lti_apps[c]));return b});return a},findOne:function(a){var b=c(Em.ENV.CONFIG.host+"/api/lti_apps/"+a).then(function(a){return d.createFromData(a.lti_app)});return b},createFromData:function(a){return d.create({toolId:a.tool_id,name:a.name,toolType:a.tool_type,imageUrl:a.image_url,description:a.description})}}),b["default"]=d}),define("appkit/libs/response-type",["appkit/libs/return_types/url","appkit/libs/return_types/iframe","appkit/libs/return_types/image-url","appkit/libs/return_types/oembed","appkit/libs/return_types/file","appkit/libs/return_types/lti-launch-url","appkit/mixins/jsonable","exports"],function(a,b,c,d,e,f,g,h){"use strict";var i=a["default"],j=b["default"],k=c["default"],l=d["default"],m=e["default"],n=f["default"],o=g["default"];h["default"]=Ember.Object.extend(o,{returnTypes:null,isFolder:!1,isExercise:!1,isImage:!1,isQuiz:!1,isVideo:!1,isLtiLaunchUrl:!1,isUnknownResourceType:function(){return(this.get("isFolder")&&this.get("isLtiLaunchUrl")&&this.get("isExercise")&&this.get("isImage")&&this.get("isQuiz")&&this.get("isVideo"))===!1}.property("returnType"),init:function(){this._super(),this.set("returnTypes",Em.A([]))},returnableReturnTypes:function(){var a=this.get("returnTypes").filterBy("returnable",!0);return a.length>0?a:this.get("returnTypes")}.property("returnTypes"),addReturnTypes:function(a){var b=this,c=null,d=Em.ENV.RETURN_TYPES.contains("lti_launch_url");a.forEach(function(a){switch(a.return_type){case"url":c=i.create(a),Em.ENV.RETURN_TYPES.contains("url")?c.set("returnable",!0):d&&(c=n.create(a),c.set("returnable",!0)),b.get("returnTypes").pushObject(c);break;case"iframe":c=j.create(a),Em.ENV.RETURN_TYPES.contains("iframe")&&c.set("returnable",!0),b.get("returnTypes").pushObject(c);break;case"image_url":c=k.create(a),Em.ENV.RETURN_TYPES.contains("image_url")&&c.set("returnable",!0),b.get("returnTypes").pushObject(c);break;case"oembed":c=l.create(a),Em.ENV.RETURN_TYPES.contains("oembed")&&c.set("returnable",!0),b.get("returnTypes").pushObject(c);break;case"file":c=m.create(a),Em.ENV.RETURN_TYPES.contains("file")&&c.set("returnable",!0),b.get("returnTypes").pushObject(c)}})}})}),define("appkit/libs/response_types/exercise",["appkit/libs/response-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({resourceType:"exercise",isExercise:!0})}),define("appkit/libs/response_types/folder",["appkit/libs/response-type","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({resourceType:"folder",isFolder:!0,id:null,title:null,description:null,parentId:null});d.reopenClass({createFromData:function(a){var b=d.create({id:a.id,title:a.title,description:a.description,parentId:a.parent_id});return b}}),b["default"]=d}),define("appkit/libs/response_types/image",["appkit/libs/response-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({resourceType:"image",isImage:!0})}),define("appkit/libs/response_types/quiz",["appkit/libs/response-type","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({resourceType:"quiz",id:null,title:null,description:null,thumbnailUrl:null,url:null,termCount:null,createdDate:null,hasImages:null,subjects:null,isQuiz:!0,embedHref:function(){var a=this.get("returnTypes").findProperty("return_type","iframe");return'<iframe src="'+a.url+'" width="'+a.width+'" height="'+a.height+'" title="'+a.title+'" allowfullscreen="allowfullscreen" frameborder="0"></iframe>'}.property("returnTypes.@each"),init:function(){return this._super(),this.set("subjects",Em.A([]))}});d.reopenClass({createFromData:function(a){var b;return b=d.create({id:a.id,title:a.title,description:a.description,thumbnailUrl:a.thumbnail_url,url:a.url,termCount:a.term_count,createdDate:a.created_date,hasImages:a.has_images}),a.subjects.forEach(function(a){b.get("subjects").pushObject(a)}),b.addReturnTypes(a.return_types),b}}),b["default"]=d}),define("appkit/libs/response_types/video",["appkit/libs/response-type","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({resourceType:"video",id:null,title:null,description:null,thumbnailUrl:null,url:null,embedUrl:null,duration:null,numViews:null,width:null,height:null,username:null,numLikes:null,numComments:null,createdDate:null,isVideo:!0,shortDescription:function(){var a=this.get("description"),b=150;return a.length<b?a:a.substring(0,b-4)+" ..."}.property("description"),addedTimeAgo:function(){return moment(this.get("createdDate")).fromNow()}.property("createdDate"),embedHtml:function(){var a;return a='<iframe src="'+this.get("embedUrl")+'" width="'+this.get("width")+'" height="'+this.get("height")+'" title="'+this.get("title")+'" frameborder="0" allowfullscreen></iframe>'}.property("title","url","width","height")});d.reopenClass({createFromData:function(a){var b=d.create({id:a.id,title:a.title,description:a.description,thumbnailUrl:a.thumbnail_url,url:a.url,embedUrl:a.embed_url,duration:a.duration,numViews:a.num_views,width:a.width,height:a.height,username:a.username,numLikes:a.num_likes,numComments:a.num_comments,createdDate:a.created_date});return b.addReturnTypes(a.return_types),b}}),b["default"]=d}),define("appkit/libs/return-type",["appkit/mixins/jsonable","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=Ember.Object.extend(c,{})}),define("appkit/libs/return_types/file",["appkit/libs/return-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({returnType:"file",url:null,text:null,content_type:null,embedCode:function(){this.get("url")}.property("url"),displayReturnType:"Return File"})}),define("appkit/libs/return_types/iframe",["appkit/libs/return-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({returnType:"iframe",url:null,title:null,width:null,height:null,embedCode:function(){return'<iframe src="'+this.get("url")+'" width="'+this.get("width")+'" height="'+this.get("height")+'" title="'+this.get("title")+'" frameborder="0" allowfullscreen></iframe>'}.property("url","title","width","height"),displayReturnType:"Embed Iframe"})}),define("appkit/libs/return_types/image-url",["appkit/libs/return-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({returnType:"imageUrl",url:null,title:null,width:null,height:null,embedCode:function(){return this.get("url")}.property("url"),displayReturnType:"Embed Image"})}),define("appkit/libs/return_types/lti-launch-url",["appkit/libs/return-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({init:function(){this._super(),this.set("return_type","lti_launch_url")},returnType:"ltiLaunchUrl",displayReturnType:"LTI Launch"})}),define("appkit/libs/return_types/oembed",["appkit/libs/return-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({returnType:"oembed",url:null,endpoint:null,embedCode:function(){return this.get("url")}.property("url"),displayReturnType:"Oembed"})}),define("appkit/libs/return_types/url",["appkit/libs/return-type","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.extend({returnType:"url",url:null,text:null,title:null,target:null,embedCode:function(){return this.get("url")}.property("url"),displayReturnType:"Return Link"})}),define("appkit/libs/search",["appkit/utils/ajax","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Object.extend({toolId:null,searchText:null,searchResults:null,ajaxData:function(){return{tool_id:this.get("toolId"),query:this.get("searchText")}}.property("toolId","searchText"),performRequest:function(){return c({type:"POST",url:Em.ENV.CONFIG.host+"/api/search",data:this.get("ajaxData")})}});b["default"]=d}),define("appkit/mixins/jsonable",["exports"],function(a){"use strict";var b=Ember.Mixin.create({getJson:function(){var a,b,c;c=[];for(b in this)if(this.hasOwnProperty(b)){if(a=this[b],"toString"===a)continue;if("function"===Ember.typeOf(a))continue;c.push(b)}return this.getProperties.apply(this,c)}});a["default"]=b}),define("appkit/router",["exports"],function(a){"use strict";var b=Ember.Router.extend();b.map(function(){this.resource("ltiApps",{path:"/"}),this.resource("ltiApp",{path:"/:toolId"},function(){this.resource("ltiApp.browse",{path:"/browse/:folderChain"}),this.resource("ltiApp.browseDetails",{path:"/browse/:folderChain/:item"}),this.resource("ltiApp.search",{path:"/search"},function(){this.route("results",{path:"/results/:searchText"}),this.resource("ltiApp.search.details",{path:"/details/:id"},function(){this.route("embed",{path:"/embed/:returnType"})})})}),this.route("helper-test")}),a["default"]=b}),define("appkit/routes/helper-test",["exports"],function(a){"use strict";a["default"]=Ember.Route.extend({})}),define("appkit/routes/lti-app",["appkit/libs/lti-app","appkit/utils/ajax","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend({model:function(a){return d.findOne(a.toolId)},setupController:function(a,b){a.set("model",b)},afterModel:function(a){this.transitionTo("browse"===a.get("toolType")?"ltiApp.browse":"ltiApp.search")},actions:{embedItem:function(a){var b=this,c=Ember.ENV.CONFIG.host+"/api/embed",d={return_type:a.getJson(),launch_params:Em.ENV.LAUNCH_PARAMS};e({type:"POST",url:c,dataType:"json",data:d}).then(function(c){c.hasOwnProperty("redirectUrl")?window.location.replace(c.redirectUrl):b.get("controller").triggerModal(a)},function(a){Em.debug("Error: + ",a)})}}});c["default"]=f}),define("appkit/routes/lti-app/browse-details",["exports"],function(a){"use strict";var b=Ember.Route.extend({setupController:function(a,b){a.set("model",b)},serialize:function(a){return{folderChain:a.folderChain,item:a.id}}});a["default"]=b}),define("appkit/routes/lti-app/browse",["exports"],function(a){"use strict";var b=Ember.Route.extend({model:function(a){return{folderChain:a.folderChain||"root"}},setupController:function(a,b){var c=Ember.Object.create({ltiApp:this.modelFor("ltiApp"),folderChain:b.folderChain||"root",folders:Em.A([]),items:Em.A([])});a.set("model",c)}});a["default"]=b}),define("appkit/routes/lti-app/search",["exports"],function(a){"use strict";var b=Ember.Route.extend({model:function(){return this.modelFor("ltiApp")},actions:{performSearch:function(){var a=this.controllerFor("ltiApp.search").get("searchText");this.transitionTo("ltiApp.search.results",{searchText:a})}}});a["default"]=b}),define("appkit/routes/lti-app/search/details",["exports"],function(a){"use strict";var b=Ember.Route.extend({});a["default"]=b}),define("appkit/routes/lti-app/search/details/embed",["exports"],function(a){"use strict";var b=Ember.Route.extend({setupController:function(a){a.set("model",this.modelFor("ltiApp.search.details"))}});a["default"]=b}),define("appkit/routes/lti-app/search/details/index",["exports"],function(a){"use strict";var b=Ember.Route.extend({setupController:function(a){a.set("model",this.modelFor("ltiApp.search.details"))}});a["default"]=b}),define("appkit/routes/lti-app/search/results",["exports"],function(a){"use strict";var b=Ember.Route.extend({model:function(a){this.transitionTo("ltiApp.search.results",{searchText:a.searchText})},setupController:function(a,b){a.set("ltiApp",this.modelFor("ltiApp")),a.searchForText(b.searchText)}});a["default"]=b}),define("appkit/routes/lti-apps",["appkit/libs/lti-app","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend({beforeModel:function(){if(!Em.isEmpty(Em.ENV.TOOL_ID)){var a=c.findOne(Em.ENV.TOOL_ID);this.transitionTo("ltiApp",a)}},model:function(){return c.find()}});b["default"]=d}),define("appkit/utils/ajax",["exports"],function(a){"use strict";a["default"]=function(){return ic.ajax.apply(null,arguments)}}),define("appkit/views/a-embed-item",["exports"],function(a){"use strict";var b=Ember.View.extend({tagName:"a",classNames:["btn btn-xs btn-default"],classNameBindings:["returnType.returnType"],attributeBindings:["title","toggle:data-toggle"],toggle:"tooltip",templateName:"views/a-embed-item",title:function(){return this.get("returnType.text")}.property("returnType.returnType"),iconClass:function(){switch(this.get("returnType.returnType")){case"file":return"fa fa-file-text";case"iframe":return"fa fa-arrow-circle-o-down";case"imageUrl":return"fa fa-picture-o";case"oembed":return"fa fa-dot-circle-o";case"url":return"fa fa-link";case"ltiLaunchUrl":return"fa fa-link";default:return"fa fa-caret-square-o-right"}}.property("returnType.returnType"),applyTooltip:function(){this.get("showTooltip")&&this.$().tooltip()}.on("didInsertElement"),click:function(){this.get("controller").send("embedItem",this.get("returnType"),this.get("item"))}});a["default"]=b}),define("appkit/views/details",["exports"],function(a){"use strict";var b=Ember.View.extend({templateNameBinding:"hbsName",hbsName:function(){var a=this.get("content.resourceType");return"views/details-"+a}.property("content.resourceType")});a["default"]=b}),define("appkit/views/li-item",["exports"],function(a){"use strict";var b=Ember.View.extend({tagName:"li",classNames:"list-item media",templateNameBinding:"hbsName",hbsName:function(){var a=this.get("item.resourceType");return"views/li-"+a}.property("content.resourceType")});a["default"]=b}),define("appkit/views/lti-app/search",["exports"],function(a){"use strict";var b=Ember.View.extend({willDestroyElement:function(){this.get("controller").get("searchResults").clear(),this.get("controller").set("searchText",null)}});a["default"]=b}),define("appkit/templates/application",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g="";return e.buffer.push('<div id="wrapper">\n  '),f=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push("\n</div>\n"),g})}),define("appkit/templates/components/ic-spinner",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g="";return f=c._triageMustache.call(b,"yield",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push("\n"),g})}),define("appkit/templates/helper-test",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=c.helperMissing,j=this.escapeExpression;return e.buffer.push('<style>span { font-weight: bold; }</style>\n<div class="container">\n  <h3>seconds-to-time</h3>\n  <ul id="seconds-to-time">\n    <li class="test-1">\n      <span class="actual">'),e.buffer.push(j((f=c["seconds-to-time"]||b&&b["seconds-to-time"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["INTEGER"],data:e},f?f.call(b,150,g):i.call(b,"seconds-to-time",150,g)))),e.buffer.push('</span> should be \n      <span class="should">02:30<span>\n    </li>\n    <li class="test-2">\n      <span class="actual">'),e.buffer.push(j((f=c["seconds-to-time"]||b&&b["seconds-to-time"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["INTEGER"],data:e},f?f.call(b,0,g):i.call(b,"seconds-to-time",0,g)))),e.buffer.push('</span> should be \n      <span class="should">00:00<span>\n    </li>\n    <li class="test-3">\n      <span class="actual">'),e.buffer.push(j((f=c["seconds-to-time"]||b&&b["seconds-to-time"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["INTEGER"],data:e},f?f.call(b,99999,g):i.call(b,"seconds-to-time",99999,g)))),e.buffer.push('</span> should be \n      <span class="should">27:46:39<span>\n    </li>\n  </ul>\n\n  <h3>truncate-text</h3>\n  <ul id="truncate-text">\n    <li class="test-1">\n      <span class="actual">'),e.buffer.push(j((f=c["truncate-text"]||b&&b["truncate-text"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","INTEGER"],data:e},f?f.call(b,"abcdefghijklmnopqrstuvwxyz",10,g):i.call(b,"truncate-text","abcdefghijklmnopqrstuvwxyz",10,g)))),e.buffer.push('</span> should be \n      <span class="should">abcdefg...</span>\n    </li>\n    <li class="test-2">\n      <span class="actual">'),e.buffer.push(j((f=c["truncate-text"]||b&&b["truncate-text"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","INTEGER"],data:e},f?f.call(b,"abcdefghijklmnopqrstuvwxyz",50,g):i.call(b,"truncate-text","abcdefghijklmnopqrstuvwxyz",50,g)))),e.buffer.push('</span> should be \n      <span class="should">abcdefghijklmnopqrstuvwxyz</span>\n    </li>\n  </ul>\n</div>'),h})}),define("appkit/templates/lti-app",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h,i="",j=c.helperMissing,k=this.escapeExpression;return e.buffer.push("<div "),e.buffer.push(k((g=c.bindAttr||b&&b.bindAttr,h={hash:{"class":"toolId"},hashTypes:{"class":"ID"},hashContexts:{"class":b},contexts:[],types:[],data:e},g?g.call(b,h):j.call(b,"bindAttr",h)))),e.buffer.push(">\n  "),f=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push('\n\n  <div id="embed-modal" class="modal fade">\n    <div class="modal-dialog">\n      <div class="modal-content">\n        <div class="modal-header">\n          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\n          <h4 class="modal-title">Resource Selected</h4>\n        </div>\n        <div class="modal-body">\n          <p>You\'re not in a system that supports auto-inserting content, so you\'ll need to copy and past the following code by hand in order to insert it into your content.</p>\n          '),e.buffer.push(k((g=c.textarea||b&&b.textarea,h={hash:{"class":"form-control",rows:"5",value:"returnType.embedCode"},hashTypes:{"class":"STRING",rows:"STRING",value:"ID"},hashContexts:{"class":b,rows:b,value:b},contexts:[],types:[],data:e},g?g.call(b,h):j.call(b,"textarea",h)))),e.buffer.push('\n        </div>\n        <div class="modal-footer">\n          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>\n        </div>\n      </div><!-- /.modal-content -->\n    </div><!-- /.modal-dialog -->\n  </div><!-- /.modal -->\n</div>'),i})}),define("appkit/templates/lti-app/browse-details",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f="",g=this.escapeExpression;return e.buffer.push('<div id="tool-default" class="lti-search">\n  <header class="fixed clearfix"></header>\n\n  <div class="below-search-bar">\n    '),e.buffer.push(g(c.view.call(b,"details",{hash:{contentBinding:"model"},hashTypes:{contentBinding:"STRING"},hashContexts:{contentBinding:b},contexts:[b],types:["STRING"],data:e}))),e.buffer.push("\n  </div>\n</div>"),f})}),define("appkit/templates/lti-app/browse",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return b.buffer.push('\n        <a href="#" '),b.buffer.push(q(c.action.call(a,"goUpFolder",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),b.buffer.push(">&laquo; "),d=c._triageMustache.call(a,"parentFolder",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</a>\n      "),e}function g(a,b){var d,e,f,g="";return b.buffer.push("\n        "),e=c["link-to"]||a&&a["link-to"],f={hash:{},hashTypes:{},hashContexts:{},inverse:r.noop,fn:r.program(4,h,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"ltiApps",f):s.call(a,"link-to","ltiApps",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n      "),g}function h(a,b){b.buffer.push("&laquo; dashboard")}function i(a,b){var d,e="";return b.buffer.push("\n      "),d=c["if"].call(a,"isEmptyResults",{hash:{},hashTypes:{},hashContexts:{},inverse:r.program(9,k,b),fn:r.program(7,j,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n\n    "),e}function j(a,b){b.buffer.push('\n        <h5 class="text-center">There are no folders or videos available in this folder</h5>\n      ')}function k(a,b){var d,e="";return b.buffer.push('\n        <table class="table">\n          <tbody>\n            '),d=c.each.call(a,"folder","in","folders",{hash:{},hashTypes:{},hashContexts:{},inverse:r.noop,fn:r.program(10,l,b),contexts:[a,a,a],types:["ID","ID","ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n          </tbody>\n        </table>\n\n        <ul>\n          "),d=c.each.call(a,"item","in","items",{hash:{},hashTypes:{},hashContexts:{},inverse:r.noop,fn:r.program(12,m,b),contexts:[a,a,a],types:["ID","ID","ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n        </ul>\n      "),e}function l(a,b){var d,e="";return b.buffer.push('\n              <tr>\n                <td style="width: 25px;"><i class="fa fa-folder"></i></td>\n                <td><a href="#" '),b.buffer.push(q(c.action.call(a,"goToFolder","folder",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["ID","ID"],data:b}))),b.buffer.push(' class="text-info">'),d=c._triageMustache.call(a,"folder.title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</a></td>\n              </tr>\n            "),e}function m(a,b){var d="";return b.buffer.push("\n            "),b.buffer.push(q(c.view.call(a,"li-item",{hash:{itemBinding:"item"},hashTypes:{itemBinding:"STRING"},hashContexts:{itemBinding:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n          "),d}function n(a,b){var d,e="";return b.buffer.push("\n      "),d=c._triageMustache.call(a,"ic-spinner",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n    "),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var o,p="",q=this.escapeExpression,r=this,s=c.helperMissing;return e.buffer.push('<div id="tool-default" class="lti-search">\n  <header class="fixed clearfix"></header>\n\n  <div class="below-search-bar">\n    <div class="above-link">\n      '),o=c["if"].call(b,"parentFolder",{hash:{},hashTypes:{},hashContexts:{},inverse:r.program(3,g,e),fn:r.program(1,f,e),contexts:[b],types:["ID"],data:e}),(o||0===o)&&e.buffer.push(o),e.buffer.push("\n    </div>\n\n    "),o=c["if"].call(b,"isLoaded",{hash:{},hashTypes:{},hashContexts:{},inverse:r.program(14,n,e),fn:r.program(6,i,e),contexts:[b],types:["ID"],data:e}),(o||0===o)&&e.buffer.push(o),e.buffer.push("\n\n  </div>\n</div>\n"),p
})}),define("appkit/templates/lti-app/search",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h,i="",j=this.escapeExpression,k=c.helperMissing;return e.buffer.push('<div id="tool-default" class="lti-search">\n  <header class="fixed clearfix">\n    <form class="form-search" '),e.buffer.push(j(c.action.call(b,"performSearch",{hash:{on:"submit"},hashTypes:{on:"STRING"},hashContexts:{on:b},contexts:[b],types:["ID"],data:e}))),e.buffer.push(">\n      "),e.buffer.push(j((g=c.input||b&&b.input,h={hash:{type:"search",id:"search",classNames:"form-control search",value:"searchText",placeholder:"Search ...",autofocus:"autofocus"},hashTypes:{type:"STRING",id:"STRING",classNames:"STRING",value:"ID",placeholder:"STRING",autofocus:"STRING"},hashContexts:{type:b,id:b,classNames:b,value:b,placeholder:b,autofocus:b},contexts:[],types:[],data:e},g?g.call(b,h):k.call(b,"input",h)))),e.buffer.push('\n    </form>\n  </header>\n\n  <div class="below-search-bar">\n    '),f=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push("\n  </div>\n</div>"),i})}),define("appkit/templates/lti-app/search/details",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g="";return f=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push("\n"),g})}),define("appkit/templates/lti-app/search/details/index",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f="",g=this.escapeExpression;return e.buffer.push(g(c.view.call(b,"details",{hash:{contentBinding:"model"},hashTypes:{contentBinding:"STRING"},hashContexts:{contentBinding:b},contexts:[b],types:["STRING"],data:e}))),e.buffer.push("\n"),f})}),define("appkit/templates/lti-app/search/index",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return b.buffer.push('\n  <div class="above-link">\n    '),e=c["link-to"]||a&&a["link-to"],f={hash:{},hashTypes:{},hashContexts:{},inverse:j.noop,fn:j.program(2,g,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"ltiApps",f):k.call(a,"link-to","ltiApps",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n  </div>\n"),h}function g(a,b){b.buffer.push("&laquo; dashboard")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i="",j=this,k=c.helperMissing;return h=c["if"].call(b,"showDashboard",{hash:{},hashTypes:{},hashContexts:{},inverse:j.noop,fn:j.program(1,f,e),contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),e.buffer.push('\n\n<h5 class="text-center">Type in your search criteria above</h5>\n'),i})}),define("appkit/templates/lti-app/search/results",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return b.buffer.push('\n  <div class="above-link">\n    '),e=c["link-to"]||a&&a["link-to"],f={hash:{},hashTypes:{},hashContexts:{},inverse:q.noop,fn:q.program(2,g,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"ltiApps",f):r.call(a,"link-to","ltiApps",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n  </div>\n"),h}function g(a,b){b.buffer.push("&laquo; dashboard")}function h(a,b){var d,e="";return b.buffer.push("\n  <ul>\n    "),d=c.each.call(a,"item","in","controller",{hash:{},hashTypes:{},hashContexts:{},inverse:q.noop,fn:q.program(5,i,b),contexts:[a,a,a],types:["ID","ID","ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\n  </ul>\n\n  <div class="load-more">\n    '),d=c["if"].call(a,"nextCriteria",{hash:{},hashTypes:{},hashContexts:{},inverse:q.program(12,m,b),fn:q.program(7,j,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n  </div>\n\n"),e}function i(a,b){var d="";return b.buffer.push("\n      "),b.buffer.push(s(c.view.call(a,"li-item",{hash:{itemBinding:"item"},hashTypes:{itemBinding:"STRING"},hashContexts:{itemBinding:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n    "),d}function j(a,b){var d,e="";return b.buffer.push("\n      "),d=c["if"].call(a,"loadingMore",{hash:{},hashTypes:{},hashContexts:{},inverse:q.program(10,l,b),fn:q.program(8,k,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n    "),e}function k(a,b){var d,e="";return b.buffer.push("\n        "),d=c._triageMustache.call(a,"ic-spinner",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n      "),e}function l(a,b){var d="";return b.buffer.push('\n        <a href="#" '),b.buffer.push(s(c.action.call(a,"getMore",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push(">load more results</a>\n      "),d}function m(a,b){var d,e="";return b.buffer.push("\n      Found "),d=c._triageMustache.call(a,"length",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push(" results\n    "),e}function n(a,b){var d,e="";return b.buffer.push("\n  "),d=c._triageMustache.call(a,"ic-spinner",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n"),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var o,p="",q=this,r=c.helperMissing,s=this.escapeExpression;return o=c["if"].call(b,"showDashboard",{hash:{},hashTypes:{},hashContexts:{},inverse:q.noop,fn:q.program(1,f,e),contexts:[b],types:["ID"],data:e}),(o||0===o)&&e.buffer.push(o),e.buffer.push("\n\n"),o=c["if"].call(b,"isLoaded",{hash:{},hashTypes:{},hashContexts:{},inverse:q.program(14,n,e),fn:q.program(4,h,e),contexts:[b],types:["ID"],data:e}),(o||0===o)&&e.buffer.push(o),p})}),define("appkit/templates/lti-apps",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,i="";return b.buffer.push('\n      <li class="media list-item">\n        '),e=c["link-to"]||a&&a["link-to"],f={hash:{"class":"pull-left"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},inverse:o.noop,fn:o.program(2,g,b),contexts:[a,a],types:["STRING","ID"],data:b},d=e?e.call(a,"ltiApp","",f):m.call(a,"link-to","ltiApp","",f),(d||0===d)&&b.buffer.push(d),b.buffer.push('\n        <div class="video data media-body">\n          <h4 class="media-heading">'),e=c["link-to"]||a&&a["link-to"],f={hash:{rel:"name"},hashTypes:{rel:"ID"},hashContexts:{rel:a},inverse:o.noop,fn:o.program(4,h,b),contexts:[a,a],types:["STRING","ID"],data:b},d=e?e.call(a,"ltiApp","",f):m.call(a,"link-to","ltiApp","",f),(d||0===d)&&b.buffer.push(d),b.buffer.push('</h4>\n          <div class="duration">'),d=c._triageMustache.call(a,"toolType",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</div>\n          <p class="description">'),d=c._triageMustache.call(a,"description",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</p>\n        </div>\n      </li>\n    "),i}function g(a,b){var d,e,f="";return b.buffer.push("\n          <img "),b.buffer.push(n((d=c.bindAttr||a&&a.bindAttr,e={hash:{src:"imageSrc",alt:"title"},hashTypes:{src:"ID",alt:"ID"},hashContexts:{src:a,alt:a},contexts:[],types:[],data:b},d?d.call(a,e):m.call(a,"bindAttr",e)))),b.buffer.push(' class="media-object thumbnail thumbnail_med_wide">\n        '),f}function h(a,b){var d;d=c._triageMustache.call(a,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l="",m=c.helperMissing,n=this.escapeExpression,o=this;return e.buffer.push('<div id="tool-default" class="lti-search">\n  <header class="fixed clearfix">\n    <form class="form-search">\n      '),e.buffer.push(n((j=c.input||b&&b.input,k={hash:{type:"search",classNames:"form-control search",value:"searchText",placeholder:"Filter Apps ..."},hashTypes:{type:"STRING",classNames:"STRING",value:"ID",placeholder:"STRING"},hashContexts:{type:b,classNames:b,value:b,placeholder:b},contexts:[],types:[],data:e},j?j.call(b,k):m.call(b,"input",k)))),e.buffer.push('\n    </form>\n  </header>\n</div>\n<div class="below-search-bar">\n  <ul class="list media-list">\n    '),i=c.each.call(b,"filteredApps",{hash:{},hashTypes:{},hashContexts:{},inverse:o.noop,fn:o.program(1,f,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("\n  </ul>\n</div>"),l})}),define("appkit/templates/views/a-embed-item",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f="",g=this.escapeExpression;return e.buffer.push("<i "),e.buffer.push(g(c["bind-attr"].call(b,{hash:{"class":"view.iconClass"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push("></i>"),f})}),define("appkit/templates/views/details-quiz",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d="";return b.buffer.push("\n    "),b.buffer.push(n(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",itemBinding:"model","class":"btn-info pull-right",title:"returnType.displayReturnType",showTooltip:"true","data-placement":"left"},hashTypes:{returnTypeBinding:"STRING",itemBinding:"STRING","class":"STRING",title:"ID",showTooltip:"STRING","data-placement":"STRING"},hashContexts:{returnTypeBinding:a,itemBinding:a,"class":a,title:a,showTooltip:a,"data-placement":a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n  "),d}function g(a,b){var d;d=c._triageMustache.call(a,"title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}function h(a,b){var d,e="";return b.buffer.push('\n      created by <span class="username">'),d=c._triageMustache.call(a,"username",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span> /\n    "),e}function i(a,b){var d,e="";return b.buffer.push('\n      <span class="label label-default">'),d=c._triageMustache.call(a,"subject",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span>\n    "),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var j,k,l,m="",n=this.escapeExpression,o=this,p=c.helperMissing;return e.buffer.push('<div class="above-link">\n  <a href="#" '),e.buffer.push(n(c.action.call(b,"performSearch",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push(' class="back_button">&laquo; search results</a>\n  '),j=c.each.call(b,"returnType","in","returnableReturnTypes",{hash:{},hashTypes:{},hashContexts:{},inverse:o.noop,fn:o.program(1,f,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\n</div>\n\n"),e.buffer.push(n(c._triageMustache.call(b,"embedHref",{hash:{unescaped:"true"},hashTypes:{unescaped:"STRING"},hashContexts:{unescaped:b},contexts:[b],types:["ID"],data:e}))),e.buffer.push('\n\n<hr class="clearfix" />\n\n<div class="video data media-body">\n  <h2 class="title clearfix">\n    '),k=c["link-to"]||b&&b["link-to"],l={hash:{classNames:"pull-left"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:o.noop,fn:o.program(3,g,e),contexts:[b,b],types:["STRING","ID"],data:e},j=k?k.call(b,"ltiApp.search.details","",l):p.call(b,"link-to","ltiApp.search.details","",l),(j||0===j)&&e.buffer.push(j),e.buffer.push('\n  </h2>\n  <div class="duration">'),j=c._triageMustache.call(b,"termCount",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push(' terms</div>\n  <p class="meta">\n    '),j=c["if"].call(b,"username",{hash:{},hashTypes:{},hashContexts:{},inverse:o.noop,fn:o.program(5,h,e),contexts:[b],types:["ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\n    Added <time>"),j=c._triageMustache.call(b,"createdDate",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push('</time>\n  </p>\n  <p class="count">\n    '),j=c.each.call(b,"subject","in","subjects",{hash:{},hashTypes:{},hashContexts:{},inverse:o.noop,fn:o.program(7,i,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push('\n  </p>\n\n  <p class="description">'),j=c._triageMustache.call(b,"description",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("</p>\n</div>\n"),m})}),define("appkit/templates/views/details-video",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d="";return b.buffer.push("\n    "),b.buffer.push(k(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",itemBinding:"model","class":"btn-info pull-right",title:"returnType.displayReturnType",showTooltip:"true","data-placement":"left"},hashTypes:{returnTypeBinding:"STRING",itemBinding:"STRING","class":"STRING",title:"ID",showTooltip:"STRING","data-placement":"STRING"},hashContexts:{returnTypeBinding:a,itemBinding:a,"class":a,title:a,showTooltip:a,"data-placement":a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n  "),d}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this.escapeExpression,l=this,m=c.helperMissing;return e.buffer.push('<div class="above-link">\n  <a href="#" '),e.buffer.push(k(c.action.call(b,"performSearch",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push(' class="back_button">&laquo; search results</a>\n  '),g=c.each.call(b,"returnType","in","returnableReturnTypes",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(1,f,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push('\n</div>\n\n<div class="lti-video-embed">\n  <div class="flex-video widescreen clearfix">\n    '),e.buffer.push(k(c._triageMustache.call(b,"embedHtml",{hash:{unescaped:"true"},hashTypes:{unescaped:"STRING"},hashContexts:{unescaped:b},contexts:[b],types:["ID"],data:e}))),e.buffer.push('\n  </div>\n  <div class="video data">\n    <h2 class="title">\n      <span class="faux_link">'),g=c._triageMustache.call(b,"title",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push('</span>\n    </h2>\n    <div class="duration">'),e.buffer.push(k((h=c["seconds-to-time"]||b&&b["seconds-to-time"],i={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},h?h.call(b,"duration",i):m.call(b,"seconds-to-time","duration",i)))),e.buffer.push('</div>\n    <p class="meta">\n      from <span class="username">'),g=c._triageMustache.call(b,"username",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("</span> /\n      Added <time>"),g=c._triageMustache.call(b,"video.createdDate",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push('</time>\n    </p>\n    <p class="count">\n      <span class="plays">'),g=c._triageMustache.call(b,"numViews",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push(' Plays</span> /\n      <span class="likes">'),g=c._triageMustache.call(b,"numLikes",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push(' Likes</span> /\n      <span class="comments">'),g=c._triageMustache.call(b,"numComments",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push(' Comments</span>\n    </p>\n    <p class="description">'),g=c._triageMustache.call(b,"description",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("</p>\n  </div>\n</div>\n"),j})}),define("appkit/templates/views/li-quiz",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d;d=c._triageMustache.call(a,"item.title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}function g(a,b){var d,e="";return b.buffer.push('\n      created by <span class="username">'),d=c._triageMustache.call(a,"username",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span> /\n    "),e}function h(a,b){var d,e="";return b.buffer.push('\n      <span class="label label-default">'),d=c._triageMustache.call(a,"subject",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span>\n    "),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l="",m=this,n=c.helperMissing,o=this.escapeExpression;return e.buffer.push('<div class="video data media-body">\n  <h2 class="title clearfix">\n    '),j=c["link-to"]||b&&b["link-to"],k={hash:{classNames:"pull-left"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:m.noop,fn:m.program(1,f,e),contexts:[b,b],types:["ID","ID"],data:e},i=j?j.call(b,"targetRoute","item",k):n.call(b,"link-to","targetRoute","item",k),(i||0===i)&&e.buffer.push(i),e.buffer.push('\n  </h2>\n  <div class="duration">'),i=c._triageMustache.call(b,"item.termCount",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push(' terms</div>\n  <p class="meta">\n    '),i=c["if"].call(b,"username",{hash:{},hashTypes:{},hashContexts:{},inverse:m.noop,fn:m.program(3,g,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("\n    Added <time>"),i=c._triageMustache.call(b,"item.createdDate",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</time>\n  </p>\n  <p class="count">\n    '),i=c.each.call(b,"subject","in","item.subjects",{hash:{},hashTypes:{},hashContexts:{},inverse:m.noop,fn:m.program(5,h,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('\n  </p>\n  <p class="description">'),e.buffer.push(o((j=c["truncate-text"]||b&&b["truncate-text"],k={hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["ID","INTEGER"],data:e},j?j.call(b,"item.description",150,k):n.call(b,"truncate-text","item.description",150,k)))),e.buffer.push("</p>\n</div>"),l})}),define("appkit/templates/views/li-video",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push("\n  <img "),b.buffer.push(n((d=c.bindAttr||a&&a.bindAttr,e={hash:{src:"item.thumbnailUrl"},hashTypes:{src:"ID"},hashContexts:{src:a},contexts:[],types:[],data:b},d?d.call(a,e):m.call(a,"bindAttr",e)))),b.buffer.push(' class="media-object thumbnail thumbnail_med_wide">\n'),f}function g(a,b){var d;d=c._triageMustache.call(a,"item.title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}function h(a,b){var d="";return b.buffer.push("\n      "),b.buffer.push(n(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",itemBinding:"item",title:"returnType.displayReturnType",showTooltip:"true","data-placement":"left"},hashTypes:{returnTypeBinding:"STRING",itemBinding:"STRING",title:"ID",showTooltip:"STRING","data-placement":"STRING"},hashContexts:{returnTypeBinding:a,itemBinding:a,title:a,showTooltip:a,"data-placement":a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n    "),d}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l="",m=c.helperMissing,n=this.escapeExpression,o=this;return j=c["link-to"]||b&&b["link-to"],k={hash:{classNames:"pull-left"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:o.noop,fn:o.program(1,f,e),contexts:[b,b],types:["ID","ID"],data:e},i=j?j.call(b,"targetRoute","item",k):m.call(b,"link-to","targetRoute","item",k),(i||0===i)&&e.buffer.push(i),e.buffer.push('\n<div class="video data media-body">\n  <h2 class="title clearfix">\n    '),j=c["link-to"]||b&&b["link-to"],k={hash:{classNames:"pull-left"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:o.noop,fn:o.program(3,g,e),contexts:[b,b],types:["ID","ID"],data:e},i=j?j.call(b,"targetRoute","item",k):m.call(b,"link-to","targetRoute","item",k),(i||0===i)&&e.buffer.push(i),e.buffer.push('\n  </h2>\n  <div class="duration">'),e.buffer.push(n((j=c["seconds-to-time"]||b&&b["seconds-to-time"],k={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},j?j.call(b,"item.duration",k):m.call(b,"seconds-to-time","item.duration",k)))),e.buffer.push('</div>\n  <p class="meta">\n    from <span class="username">'),i=c._triageMustache.call(b,"item.username",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("</span> /\n    Added <time>"),i=c._triageMustache.call(b,"item.createdDate",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</time>\n  </p>\n  <p class="count">\n    <span class="plays">'),i=c._triageMustache.call(b,"item.numViews",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push(' Plays</span> /\n    <span class="likes">'),i=c._triageMustache.call(b,"item.numLikes",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push(' Likes</span> /\n    <span class="comments">'),i=c._triageMustache.call(b,"item.numComments",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push(' Comments</span>\n  </p>\n  <p class="description">'),i=c._triageMustache.call(b,"item.shortDescription",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</p>\n  <div class="return-types text-right">\n    '),i=c.each.call(b,"returnType","in","item.returnableReturnTypes",{hash:{},hashTypes:{},hashContexts:{},inverse:o.noop,fn:o.program(5,h,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("\n  </div>\n</div>\n"),l})});