lti_public_resources 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +5 -0
- data/app/assets/javascripts/lti_public_resources/app.min.js +2 -2
- data/app/assets/javascripts/lti_public_resources/vendor.min.js +13 -13
- data/app/assets/stylesheets/lti_public_resources/app.min.css +1 -1
- data/app/controllers/lti_public_resources/api_controller.rb +5 -5
- data/app/controllers/lti_public_resources/application_controller.rb +5 -0
- data/app/controllers/lti_public_resources/ember_controller.rb +13 -3
- data/config/routes.rb +1 -0
- data/lib/lti_public_resources/version.rb +1 -1
- data/lib/tasks/{ember.rake → assets.rake} +0 -0
- data/spec/controllers/lti_public_resources/ember_controller_spec.rb +20 -0
- data/spec/features/lti_public_resources/workflow_spec.rb +1 -1
- data/spec/test_app/db/development.sqlite3 +0 -0
- data/spec/test_app/log/development.log +3049 -0
- data/spec/test_app/log/test.log +417 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/017101d8798ff568f45f0a474a9224fd +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/0204100251237efc3fd2dd7b25c67a3a +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/02258d65e761675feb45fff74a117329 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/056a853a384ade3a915333a6654b71db +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/0701cc5184e6fb4e4c7aabf2e2be67b4 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/0c8074af703365b5f31176665cfe9dbe +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/0cc6e7c6250e445251c211f12fa5e799 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/0d18ed93fbb280d6544a10355c04ec90 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/10d0431cd6133f92ee101b75588ae46d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/1689310d8bf063252b0ac804c84ea7fd +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/2070d49cfaabf9bd40997af6aeee74f4 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/282bb568d8eb8709b6cf770dde794b9b +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/2bacc3a78a4d9184482e9ced42407b39 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/30fa9b2e88e240dfa382cc039d7a68b7 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/31c59729c823e0500a22598eeac16c2c +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/3475a5d4af07e8438bb3206b4fd665f1 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/361d82427e3d667c6426959c1b84818d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/397b382ddc77fcc59eada17b87ca3844 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/3b1cd4759e6455b702a4a66434d6d4d3 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/40a189a5701341989411168b2f04b001 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/43165bf4ba33f491d828b3c3e1306555 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/47dd46c20ed7f42fd5aa97d6d6a72ba5 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/4c84557bdf227c54e12daab6467e60a0 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/4d11f15f6e9877d04b6cb67c0d291554 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/4ef78c40b57fc237d06a955f3bb64074 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/51e4d12e045377528d32d0e99f3b23fc +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/528904284a3ac5927e833f812148448c +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/594d8e1916ab24a8257587125baba5f3 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/59ea1f9969a93db0940a0ba7f748057d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/5cd771c7ecb7f92df29b1cf31ace30e5 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/5d7b3b4903883854e98068b6a4c542e6 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/5f07e9c61b066105fe96e6bbdb314049 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/638cf376566bc26bb673af298ebd4da2 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/64829bc129e7aef33cf3167e7116098b +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/6816777ac981ca34843b7b4d3694d724 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/6b1b852c5bebe6ab2e135893cf8a968c +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/70c38cc5f49a87b9fb3454edad1afd36 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/7234cbd0a402f5d623912d2647015e55 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/79e4c02adfa3be301ce7bb604d502cee +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/7a490c251567a163afe01c47a630ff0f +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/84aa472c036524cbaf100bf42ee34541 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/8c93462ae47b4011514b7a1226047036 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/921608a8be0c91ef8e512ada0fa0367c +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/97d38269653aa72a2dfc49d810640269 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/98e3a1effd8bbf96f9c49a5daf5c9617 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/9bcd1b2c2c5f7a9044f4ef00740cda70 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/9d045893392ec2e733c898ce37382efd +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/9eab799364d776964d2e6b18fb9c14ef +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/9f1f3e4f626447e69612f2ed2234491d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/aeb5c77cef011926c38bbee4bdb24672 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/b2f36842f1da2cbfadc1f1fabb3b207d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/b3e0dc6bd97d81f0e3ef9b763caf3b4e +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/b4f36e9bfe427d6f3591bf34f57b5e24 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/b65e5f3b0fb722f8d622be61dbefa144 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/b79b17995fea04a3151a3c6e3498b0cb +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/be151b52340c234a7b52678fae576fe9 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/c1eecb56a3c83d23a987dfe2d5b85937 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/c5a57ad60fc3c0c25e4e60a3f577535d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/cd18b6e8c11b141140d011ffa802c0b1 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/cff6c0afd89e57165d4916370d76607b +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/d29a485e7a3d73d206c9f9a4dd1207d2 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/d6ad6730986f874ccb3e3b023b36feb6 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/d7d5b1e1d007f69e2341da3053d98bd8 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/d879d3142c45d8288eeaec54fdcc3d14 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/e522b3f3da1e1aa4ce5965b643f2d11b +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/e53839807af34d9bad4d6d104c60bd0d +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/e652b9f1115a84c686c0960616cb0040 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/ea8f89d7b26a4b453a828bf12b625c9a +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/edbab1b555026d93850ca1deab06eb03 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/f15cc4598c1fe6c00dce0ad5f5e999a8 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/f20838a45c988c788b03233a6fb2eb09 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/f61b1eedcab6d9c68c66d10afdd120d5 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/fe5266b8c335d96e5b36a4f10995fbc5 +0 -0
- data/spec/test_app/tmp/cache/assets/development/sprockets/ffd034e84822331c80a8c0007c62985c +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/017101d8798ff568f45f0a474a9224fd +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/0204100251237efc3fd2dd7b25c67a3a +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/1689310d8bf063252b0ac804c84ea7fd +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/2bacc3a78a4d9184482e9ced42407b39 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/30fa9b2e88e240dfa382cc039d7a68b7 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/361d82427e3d667c6426959c1b84818d +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/3b1cd4759e6455b702a4a66434d6d4d3 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/47dd46c20ed7f42fd5aa97d6d6a72ba5 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/4d11f15f6e9877d04b6cb67c0d291554 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/51e4d12e045377528d32d0e99f3b23fc +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/528904284a3ac5927e833f812148448c +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/5f07e9c61b066105fe96e6bbdb314049 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/64829bc129e7aef33cf3167e7116098b +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/6b1b852c5bebe6ab2e135893cf8a968c +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/7234cbd0a402f5d623912d2647015e55 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/73da2101e87dd7be2079dccbb8142e04 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/84aa472c036524cbaf100bf42ee34541 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/97d38269653aa72a2dfc49d810640269 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/9bcd1b2c2c5f7a9044f4ef00740cda70 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/aad84833fdfda172746a2ab387b9bbc0 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/aeb5c77cef011926c38bbee4bdb24672 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/b79b17995fea04a3151a3c6e3498b0cb +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/be151b52340c234a7b52678fae576fe9 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/c5a57ad60fc3c0c25e4e60a3f577535d +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/d29a485e7a3d73d206c9f9a4dd1207d2 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/d6ad6730986f874ccb3e3b023b36feb6 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/d879d3142c45d8288eeaec54fdcc3d14 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/e522b3f3da1e1aa4ce5965b643f2d11b +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/e53839807af34d9bad4d6d104c60bd0d +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/e652b9f1115a84c686c0960616cb0040 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/ea8f89d7b26a4b453a828bf12b625c9a +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/edbab1b555026d93850ca1deab06eb03 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/f20838a45c988c788b03233a6fb2eb09 +0 -0
- data/spec/test_app/tmp/cache/assets/test/sprockets/fe5266b8c335d96e5b36a4f10995fbc5 +0 -0
- metadata +223 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d39149d0176a2eeeffa53c4cd320fa138016c65b
|
4
|
+
data.tar.gz: b2dbbc3efb02d9fa9141d4786eb990b690bf59c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99de6b5f3caaed7571b604859fc9e818dd51911860ec2cf8c010099417741f6cadb44b83f70100c056008c49bb07326bd485263b83acdd7294066060f45cd76c
|
7
|
+
data.tar.gz: bf3c69c494cccc8d5b64a60ea848df6757d87b358b0dc8a9b351ecaf6a55eca78ee624d6779e7960b768a56e84c500082a8a94898609bdda986f49ebd12b1cf4
|
data/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
define("appkit/app",["resolver","exports"],function(a,b){"use strict";var c=a["default"],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(){this.set("isLoaded",!1);var a=c.findFolder(this.get("ltiApp.toolId"),this.get("currentFolder"),this.get("parentFolderChain"));this.set("isLoaded",!0),this.set("folders",a.get("folders")),this.set("items",a.get("items"))}.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)+"…"):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"],n=Ember.Object.extend({folders:null,items:null,init:function(){this._super(),this.set("folders",Em.A([])),this.set("items",Em.A([]))}});n.reopenClass({findFolder:function(a,b,c){var d,e,f;return f=Ember.ENV.CONFIG.host+"/api/browse",d=n.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;case"exercise":b=m.createFromData(a),b.set("folderChain",e),d.get("items").pushObject(b);break;default:Em.debug("UNKNOWN KIND: "+a.kind)}})},function(a){Ember.debug("Error: "+a)}),d}}),g["default"]=n}),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/mixins/jsonable","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"];g["default"]=Ember.Object.extend(m,{returnTypes:null,isFolder:!1,isExercise:!1,isImage:!1,isQuiz:!1,isVideo:!1,isUnknownResourceType:function(){return(this.get("isFolder")&&this.get("isExercise")&&this.get("isImage")&&this.get("isQuiz")&&this.get("isVideo"))===!1}.property("returnType"),init:function(){this._super(),this.set("returnTypes",Em.A([]))},addReturnTypes:function(a){var b=this;a.forEach(function(a){switch(a.return_type){case"url":return b.get("returnTypes").pushObject(h.create(a));case"iframe":return b.get("returnTypes").pushObject(i.create(a));case"image_url":return b.get("returnTypes").pushObject(j.create(a));case"oembed":return b.get("returnTypes").pushObject(k.create(a));case"file":return b.get("returnTypes").pushObject(l.create(a))}})}})}),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")})}),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")})}),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")})}),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")})}),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")})}),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){"browse"===a.get("toolType")?this.transitionTo("ltiApp.browse"):this.transitionTo("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";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,h="",i=this.escapeExpression;return e.buffer.push('<div id="wrapper">\n '),f={},g={},e.buffer.push(i(c._triageMustache.call(b,"outlet",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e}))),e.buffer.push("\n</div>\n"),h})}),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,h="",i=this.escapeExpression;return f={},g={},e.buffer.push(i(c._triageMustache.call(b,"yield",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e}))),e.buffer.push("\n"),h})}),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,j="",k=c.helperMissing,l=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">'),g={},h={},i={hash:{},contexts:[b],types:["INTEGER"],hashContexts:h,hashTypes:g,data:e},e.buffer.push(l((f=c["seconds-to-time"]||b&&b["seconds-to-time"],f?f.call(b,150,i):k.call(b,"seconds-to-time",150,i)))),e.buffer.push('</span> should be \n <span class="should">02:30<span>\n </li>\n <li class="test-2">\n <span class="actual">'),g={},h={},i={hash:{},contexts:[b],types:["INTEGER"],hashContexts:h,hashTypes:g,data:e},e.buffer.push(l((f=c["seconds-to-time"]||b&&b["seconds-to-time"],f?f.call(b,0,i):k.call(b,"seconds-to-time",0,i)))),e.buffer.push('</span> should be \n <span class="should">00:00<span>\n </li>\n <li class="test-3">\n <span class="actual">'),g={},h={},i={hash:{},contexts:[b],types:["INTEGER"],hashContexts:h,hashTypes:g,data:e},e.buffer.push(l((f=c["seconds-to-time"]||b&&b["seconds-to-time"],f?f.call(b,99999,i):k.call(b,"seconds-to-time",99999,i)))),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">'),g={},h={},i={hash:{},contexts:[b,b],types:["STRING","INTEGER"],hashContexts:h,hashTypes:g,data:e},e.buffer.push(l((f=c["truncate-text"]||b&&b["truncate-text"],f?f.call(b,"abcdefghijklmnopqrstuvwxyz",10,i):k.call(b,"truncate-text","abcdefghijklmnopqrstuvwxyz",10,i)))),e.buffer.push('</span> should be \n <span class="should">abcdefg...</span>\n </li>\n <li class="test-2">\n <span class="actual">'),g={},h={},i={hash:{},contexts:[b,b],types:["STRING","INTEGER"],hashContexts:h,hashTypes:g,data:e},e.buffer.push(l((f=c["truncate-text"]||b&&b["truncate-text"],f?f.call(b,"abcdefghijklmnopqrstuvwxyz",50,i):k.call(b,"truncate-text","abcdefghijklmnopqrstuvwxyz",50,i)))),e.buffer.push('</span> should be \n <span class="should">abcdefghijklmnopqrstuvwxyz</span>\n </li>\n </ul>\n</div>'),j})}),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="",k=this.escapeExpression,l=c.helperMissing;return e.buffer.push("<div "),g={"class":b},h={"class":"ID"},e.buffer.push(k(c.bindAttr.call(b,{hash:{"class":"toolId"},contexts:[],types:[],hashContexts:g,hashTypes:h,data:e}))),e.buffer.push(">\n "),h={},g={},e.buffer.push(k(c._triageMustache.call(b,"outlet",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:h,data:e}))),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">×</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 '),g={"class":b,rows:b,value:b},h={"class":"STRING",rows:"STRING",value:"ID"},i={hash:{"class":"form-control",rows:"5",value:"returnType.embedCode"},contexts:[],types:[],hashContexts:g,hashTypes:h,data:e},e.buffer.push(k((f=c.textarea||b&&b.textarea,f?f.call(b,i):l.call(b,"textarea",i)))),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>'),j})}),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,h="",i=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 '),f={contentBinding:b},g={contentBinding:"STRING"},e.buffer.push(i(c.view.call(b,"details",{hash:{contentBinding:"model"},contexts:[b],types:["STRING"],hashContexts:f,hashTypes:g,data:e}))),e.buffer.push("\n </div>\n</div>"),h})}),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,f="";return b.buffer.push('\n <a href="#" '),d={},e={},b.buffer.push(q(c.action.call(a,"goUpFolder",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push(">« "),d={},e={},b.buffer.push(q(c._triageMustache.call(a,"parentFolder",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("</a>\n "),f}function g(a,b){var d,e,f,g,i,j="";return b.buffer.push("\n "),f={},g={},i={hash:{},inverse:r.noop,fn:r.program(4,h,b),contexts:[a],types:["STRING"],hashContexts:g,hashTypes:f,data:b},d=c["link-to"]||a&&a["link-to"],e=d?d.call(a,"ltiApps",i):s.call(a,"link-to","ltiApps",i),(e||0===e)&&b.buffer.push(e),b.buffer.push("\n "),j}function h(a,b){b.buffer.push("« dashboard")}function i(a,b){var d,e,f,g="";return b.buffer.push('\n\n <table class="table">\n <tbody>\n '),e={},f={},d=c.each.call(a,"folder","in","folders",{hash:{},inverse:r.noop,fn:r.program(7,j,b),contexts:[a,a,a],types:["ID","ID","ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n </tbody>\n </table>\n\n <ul>\n "),e={},f={},d=c.each.call(a,"item","in","items",{hash:{},inverse:r.noop,fn:r.program(9,k,b),contexts:[a,a,a],types:["ID","ID","ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n </ul>\n\n "),g}function j(a,b){var d,e,f="";return b.buffer.push('\n <tr>\n <td style="width: 25px;"><i class="fa fa-folder"></i></td>\n <td><a href="#" '),d={},e={},b.buffer.push(q(c.action.call(a,"goToFolder","folder",{hash:{},contexts:[a,a],types:["ID","ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push(' class="text-info">'),d={},e={},b.buffer.push(q(c._triageMustache.call(a,"folder.title",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("</a></td>\n </tr>\n "),f}function k(a,b){var d,e,f="";return b.buffer.push("\n "),d={itemBinding:a},e={itemBinding:"STRING"},b.buffer.push(q(c.view.call(a,"li-item",{hash:{itemBinding:"item"},contexts:[a],types:["STRING"],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push("\n "),f}function l(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(q(c._triageMustache.call(a,"ic-spinner",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var m,n,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 '),n={},o={},m=c["if"].call(b,"parentFolder",{hash:{},inverse:r.program(3,g,e),fn:r.program(1,f,e),contexts:[b],types:["ID"],hashContexts:o,hashTypes:n,data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n </div>\n\n "),n={},o={},m=c["if"].call(b,"isLoaded",{hash:{},inverse:r.program(11,l,e),fn:r.program(6,i,e),contexts:[b],types:["ID"],hashContexts:o,hashTypes:n,data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n\n </div>\n</div>"),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="",k=this.escapeExpression,l=c.helperMissing;return e.buffer.push('<div id="tool-default" class="lti-search">\n <header class="fixed clearfix">\n <form class="form-search" '),g={on:b},h={on:"STRING"},e.buffer.push(k(c.action.call(b,"performSearch",{hash:{on:"submit"},contexts:[b],types:["ID"],hashContexts:g,hashTypes:h,data:e}))),e.buffer.push(">\n "),g={type:b,id:b,classNames:b,value:b,placeholder:b,autofocus:b},h={type:"STRING",id:"STRING",classNames:"STRING",value:"ID",placeholder:"STRING",autofocus:"STRING"},i={hash:{type:"search",id:"search",classNames:"form-control search",value:"searchText",placeholder:"Search ...",autofocus:"autofocus"},contexts:[],types:[],hashContexts:g,hashTypes:h,data:e},e.buffer.push(k((f=c.input||b&&b.input,f?f.call(b,i):l.call(b,"input",i)))),e.buffer.push('\n </form>\n </header>\n\n <div class="below-search-bar">\n '),h={},g={},e.buffer.push(k(c._triageMustache.call(b,"outlet",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:h,data:e}))),e.buffer.push("\n </div>\n</div>"),j})}),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||{};
|
2
|
-
var f,g,h="",i=this.escapeExpression;return f={},g={},e.buffer.push(i(c._triageMustache.call(b,"outlet",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e}))),e.buffer.push("\n"),h})}),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,h="",i=this.escapeExpression;return f={contentBinding:b},g={contentBinding:"STRING"},e.buffer.push(i(c.view.call(b,"details",{hash:{contentBinding:"model"},contexts:[b],types:["STRING"],hashContexts:f,hashTypes:g,data:e}))),e.buffer.push("\n"),h})}),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,i,j="";return b.buffer.push('\n <div class="above-link">\n '),f={},h={},i={hash:{},inverse:l.noop,fn:l.program(2,g,b),contexts:[a],types:["STRING"],hashContexts:h,hashTypes:f,data:b},d=c["link-to"]||a&&a["link-to"],e=d?d.call(a,"ltiApps",i):m.call(a,"link-to","ltiApps",i),(e||0===e)&&b.buffer.push(e),b.buffer.push("\n </div>\n"),j}function g(a,b){b.buffer.push("« dashboard")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i,j,k="",l=this,m=c.helperMissing;return i={},j={},h=c["if"].call(b,"showDashboard",{hash:{},inverse:l.noop,fn:l.program(1,f,e),contexts:[b],types:["ID"],hashContexts:j,hashTypes:i,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'),k})}),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,i,j="";return b.buffer.push('\n <div class="above-link">\n '),f={},h={},i={hash:{},inverse:s.noop,fn:s.program(2,g,b),contexts:[a],types:["STRING"],hashContexts:h,hashTypes:f,data:b},d=c["link-to"]||a&&a["link-to"],e=d?d.call(a,"ltiApps",i):t.call(a,"link-to","ltiApps",i),(e||0===e)&&b.buffer.push(e),b.buffer.push("\n </div>\n"),j}function g(a,b){b.buffer.push("« dashboard")}function h(a,b){var d,e,f,g="";return b.buffer.push("\n <ul>\n "),e={},f={},d=c.each.call(a,"item","in","controller",{hash:{},inverse:s.noop,fn:s.program(5,i,b),contexts:[a,a,a],types:["ID","ID","ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\n </ul>\n\n <div class="load-more">\n '),e={},f={},d=c["if"].call(a,"nextCriteria",{hash:{},inverse:s.program(12,m,b),fn:s.program(7,j,b),contexts:[a],types:["ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n </div>\n\n"),g}function i(a,b){var d,e,f="";return b.buffer.push("\n "),d={itemBinding:a},e={itemBinding:"STRING"},b.buffer.push(u(c.view.call(a,"li-item",{hash:{itemBinding:"item"},contexts:[a],types:["STRING"],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push("\n "),f}function j(a,b){var d,e,f,g="";return b.buffer.push("\n "),e={},f={},d=c["if"].call(a,"loadingMore",{hash:{},inverse:s.program(10,l,b),fn:s.program(8,k,b),contexts:[a],types:["ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n "),g}function k(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(u(c._triageMustache.call(a,"ic-spinner",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}function l(a,b){var d,e,f="";return b.buffer.push('\n <a href="#" '),d={},e={},b.buffer.push(u(c.action.call(a,"getMore",{hash:{},contexts:[a],types:["STRING"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push(">load more results</a>\n "),f}function m(a,b){var d,e,f="";return b.buffer.push("\n Found "),d={},e={},b.buffer.push(u(c._triageMustache.call(a,"length",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push(" results\n "),f}function n(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(u(c._triageMustache.call(a,"ic-spinner",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var o,p,q,r="",s=this,t=c.helperMissing,u=this.escapeExpression;return p={},q={},o=c["if"].call(b,"showDashboard",{hash:{},inverse:s.noop,fn:s.program(1,f,e),contexts:[b],types:["ID"],hashContexts:q,hashTypes:p,data:e}),(o||0===o)&&e.buffer.push(o),e.buffer.push("\n\n"),p={},q={},o=c["if"].call(b,"isLoaded",{hash:{},inverse:s.program(14,n,e),fn:s.program(4,h,e),contexts:[b],types:["ID"],hashContexts:q,hashTypes:p,data:e}),(o||0===o)&&e.buffer.push(o),r})}),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,j,k="";return b.buffer.push('\n <li class="media list-item">\n '),f={"class":a},i={"class":"STRING"},j={hash:{"class":"pull-left"},inverse:p.noop,fn:p.program(2,g,b),contexts:[a,a],types:["STRING","ID"],hashContexts:f,hashTypes:i,data:b},d=c["link-to"]||a&&a["link-to"],e=d?d.call(a,"ltiApp","",j):q.call(a,"link-to","ltiApp","",j),(e||0===e)&&b.buffer.push(e),b.buffer.push('\n <div class="video data media-body">\n <h4 class="media-heading">'),f={rel:a},i={rel:"ID"},j={hash:{rel:"name"},inverse:p.noop,fn:p.program(4,h,b),contexts:[a,a],types:["STRING","ID"],hashContexts:f,hashTypes:i,data:b},d=c["link-to"]||a&&a["link-to"],e=d?d.call(a,"ltiApp","",j):q.call(a,"link-to","ltiApp","",j),(e||0===e)&&b.buffer.push(e),b.buffer.push('</h4>\n <div class="duration">'),i={},f={},b.buffer.push(o(c._triageMustache.call(a,"toolType",{hash:{},contexts:[a],types:["ID"],hashContexts:f,hashTypes:i,data:b}))),b.buffer.push('</div>\n <p class="description">'),i={},f={},b.buffer.push(o(c._triageMustache.call(a,"description",{hash:{},contexts:[a],types:["ID"],hashContexts:f,hashTypes:i,data:b}))),b.buffer.push("</p>\n </div>\n </li>\n "),k}function g(a,b){var d,e,f="";return b.buffer.push("\n <img "),d={src:a,alt:a},e={src:"ID",alt:"ID"},b.buffer.push(o(c.bindAttr.call(a,{hash:{src:"imageSrc",alt:"title"},contexts:[],types:[],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push(' class="media-object thumbnail thumbnail_med_wide">\n '),f}function h(a,b){var d,e;d={},e={},b.buffer.push(o(c._triageMustache.call(a,"name",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b})))}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l,m,n="",o=this.escapeExpression,p=this,q=c.helperMissing;return e.buffer.push('<div id="tool-default" class="lti-search">\n <header class="fixed clearfix">\n <form class="form-search">\n '),k={type:b,classNames:b,value:b,placeholder:b},l={type:"STRING",classNames:"STRING",value:"ID",placeholder:"STRING"},m={hash:{type:"search",classNames:"form-control search",value:"searchText",placeholder:"Filter Apps ..."},contexts:[],types:[],hashContexts:k,hashTypes:l,data:e},e.buffer.push(o((i=c.input||b&&b.input,i?i.call(b,m):q.call(b,"input",m)))),e.buffer.push('\n </form>\n </header>\n</div>\n<div class="below-search-bar">\n <ul class="list media-list">\n '),l={},k={},j=c.each.call(b,"filteredApps",{hash:{},inverse:p.noop,fn:p.program(1,f,e),contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\n </ul>\n</div>"),n})}),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,h,i,j="",k=c.helperMissing,l=this.escapeExpression;return e.buffer.push("<i "),g={"class":b},h={"class":"STRING"},i={hash:{"class":"view.iconClass"},contexts:[],types:[],hashContexts:g,hashTypes:h,data:e},e.buffer.push(l((f=c["bind-attr"]||b&&b["bind-attr"],f?f.call(b,i):k.call(b,"bind-attr",i)))),e.buffer.push("></i>"),j})}),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,e,f="";return b.buffer.push("\n "),d={returnTypeBinding:a,showTooltip:a,itemBinding:a,"class":a},e={returnTypeBinding:"STRING",showTooltip:"STRING",itemBinding:"STRING","class":"STRING"},b.buffer.push(p(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",showTooltip:"true",itemBinding:"model","class":"btn-info pull-right"},contexts:[a],types:["STRING"],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push("</li>\n "),f}function g(a,b){var d,e;d={},e={},b.buffer.push(p(c._triageMustache.call(a,"title",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b})))}function h(a,b){var d,e,f="";return b.buffer.push('\n created by <span class="username">'),d={},e={},b.buffer.push(p(c._triageMustache.call(a,"username",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("</span> /\n "),f}function i(a,b){var d,e,f="";return b.buffer.push('\n <span class="label label-default">'),d={},e={},b.buffer.push(p(c._triageMustache.call(a,"subject",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("</span>\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var j,k,l,m,n,o="",p=this.escapeExpression,q=this,r=c.helperMissing;return e.buffer.push('<div class="above-link">\n <a href="#" '),l={},m={},e.buffer.push(p(c.action.call(b,"performSearch",{hash:{},contexts:[b],types:["ID"],hashContexts:m,hashTypes:l,data:e}))),e.buffer.push(' class="back_button">« search results</a>\n '),l={},m={},j=c.each.call(b,"returnType","in","returnTypes",{hash:{},inverse:q.noop,fn:q.program(1,f,e),contexts:[b,b,b],types:["ID","ID","ID"],hashContexts:m,hashTypes:l,data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\n</div>\n\n"),m={unescaped:b},l={unescaped:"STRING"},e.buffer.push(p(c._triageMustache.call(b,"embedHref",{hash:{unescaped:"true"},contexts:[b],types:["ID"],hashContexts:m,hashTypes:l,data:e}))),e.buffer.push('\n\n<hr class="clearfix" />\n\n<div class="video data media-body">\n <h2 class="title clearfix">\n '),m={classNames:b},l={classNames:"STRING"},n={hash:{classNames:"pull-left"},inverse:q.noop,fn:q.program(3,g,e),contexts:[b,b],types:["STRING","ID"],hashContexts:m,hashTypes:l,data:e},j=c["link-to"]||b&&b["link-to"],k=j?j.call(b,"ltiApp.search.details","",n):r.call(b,"link-to","ltiApp.search.details","",n),(k||0===k)&&e.buffer.push(k),e.buffer.push('\n </h2>\n <div class="duration">'),l={},m={},e.buffer.push(p(c._triageMustache.call(b,"termCount",{hash:{},contexts:[b],types:["ID"],hashContexts:m,hashTypes:l,data:e}))),e.buffer.push(' terms</div>\n <p class="meta">\n '),l={},m={},k=c["if"].call(b,"username",{hash:{},inverse:q.noop,fn:q.program(5,h,e),contexts:[b],types:["ID"],hashContexts:m,hashTypes:l,data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push("\n Added <time>"),l={},m={},e.buffer.push(p(c._triageMustache.call(b,"createdDate",{hash:{},contexts:[b],types:["ID"],hashContexts:m,hashTypes:l,data:e}))),e.buffer.push('</time>\n </p>\n <p class="count">\n '),l={},m={},k=c.each.call(b,"subject","in","subjects",{hash:{},inverse:q.noop,fn:q.program(7,i,e),contexts:[b,b,b],types:["ID","ID","ID"],hashContexts:m,hashTypes:l,data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push('\n </p>\n\n <p class="description">'),l={},m={},e.buffer.push(p(c._triageMustache.call(b,"description",{hash:{},contexts:[b],types:["ID"],hashContexts:m,hashTypes:l,data:e}))),e.buffer.push("</p>\n</div>"),o})}),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,e,f="";return b.buffer.push("\n "),d={returnTypeBinding:a,itemBinding:a,"class":a},e={returnTypeBinding:"STRING",itemBinding:"STRING","class":"STRING"},b.buffer.push(l(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",itemBinding:"model","class":"btn-info pull-right"},contexts:[a],types:["STRING"],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push("\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j,k="",l=this.escapeExpression,m=this,n=c.helperMissing;return e.buffer.push('<div class="above-link">\n <a href="#" '),h={},i={},e.buffer.push(l(c.action.call(b,"performSearch",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push(' class="back_button">« search results</a>\n '),h={},i={},g=c.each.call(b,"returnType","in","returnTypes",{hash:{},inverse:m.noop,fn:m.program(1,f,e),contexts:[b,b,b],types:["ID","ID","ID"],hashContexts:i,hashTypes:h,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 '),i={unescaped:b},h={unescaped:"STRING"},e.buffer.push(l(c._triageMustache.call(b,"embedHtml",{hash:{unescaped:"true"},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push('\n </div>\n <div class="video data">\n <h2 class="title">\n <span class="faux_link">'),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"title",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push('</span>\n </h2>\n <div class="duration">'),h={},i={},j={hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e},e.buffer.push(l((g=c["seconds-to-time"]||b&&b["seconds-to-time"],g?g.call(b,"duration",j):n.call(b,"seconds-to-time","duration",j)))),e.buffer.push('</div>\n <p class="meta">\n from <span class="username">'),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"username",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push("</span> /\n Added <time>"),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"video.createdDate",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push('</time>\n </p>\n <p class="count">\n <span class="plays">'),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"numViews",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push(' Plays</span> /\n <span class="likes">'),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"numLikes",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push(' Likes</span> /\n <span class="comments">'),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"numComments",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push(' Comments</span>\n </p>\n <p class="description">'),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"description",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push("</p>\n </div>\n</div>"),k})}),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,e;d={},e={},b.buffer.push(o(c._triageMustache.call(a,"item.title",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b})))}function g(a,b){var d,e,f="";return b.buffer.push('\n created by <span class="username">'),d={},e={},b.buffer.push(o(c._triageMustache.call(a,"username",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("</span> /\n "),f}function h(a,b){var d,e,f="";return b.buffer.push('\n <span class="label label-default">'),d={},e={},b.buffer.push(o(c._triageMustache.call(a,"subject",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("</span>\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l,m,n="",o=this.escapeExpression,p=this,q=c.helperMissing;return e.buffer.push('<div class="video data media-body">\n <h2 class="title clearfix">\n '),k={classNames:b},l={classNames:"STRING"},m={hash:{classNames:"pull-left"},inverse:p.noop,fn:p.program(1,f,e),contexts:[b,b],types:["ID","ID"],hashContexts:k,hashTypes:l,data:e},i=c["link-to"]||b&&b["link-to"],j=i?i.call(b,"targetRoute","item",m):q.call(b,"link-to","targetRoute","item",m),(j||0===j)&&e.buffer.push(j),e.buffer.push('\n </h2>\n <div class="duration">'),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.termCount",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push(' terms</div>\n <p class="meta">\n '),l={},k={},j=c["if"].call(b,"username",{hash:{},inverse:p.noop,fn:p.program(3,g,e),contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\n Added <time>"),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.createdDate",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push('</time>\n </p>\n <p class="count">\n '),l={},k={},j=c.each.call(b,"subject","in","item.subjects",{hash:{},inverse:p.noop,fn:p.program(5,h,e),contexts:[b,b,b],types:["ID","ID","ID"],hashContexts:k,hashTypes:l,data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push('\n </p>\n <p class="description">'),l={},k={},m={hash:{},contexts:[b,b],types:["ID","INTEGER"],hashContexts:k,hashTypes:l,data:e},e.buffer.push(o((i=c["truncate-text"]||b&&b["truncate-text"],i?i.call(b,"item.description",150,m):q.call(b,"truncate-text","item.description",150,m)))),e.buffer.push("</p>\n</div>"),n})}),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 "),d={src:a},e={src:"ID"},b.buffer.push(o(c.bindAttr.call(a,{hash:{src:"item.thumbnailUrl"},contexts:[],types:[],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push(' class="media-object thumbnail thumbnail_med_wide">\n'),f}function g(a,b){var d,e;d={},e={},b.buffer.push(o(c._triageMustache.call(a,"item.title",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b})))}function h(a,b){var d,e,f="";return b.buffer.push("\n "),d={returnTypeBinding:a,itemBinding:a},e={returnTypeBinding:"STRING",itemBinding:"STRING"},b.buffer.push(o(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",itemBinding:"item"},contexts:[a],types:["STRING"],hashContexts:d,hashTypes:e,data:b}))),b.buffer.push("\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l,m,n="",o=this.escapeExpression,p=this,q=c.helperMissing;return k={classNames:b},l={classNames:"STRING"},m={hash:{classNames:"pull-left"},inverse:p.noop,fn:p.program(1,f,e),contexts:[b,b],types:["ID","ID"],hashContexts:k,hashTypes:l,data:e},i=c["link-to"]||b&&b["link-to"],j=i?i.call(b,"targetRoute","item",m):q.call(b,"link-to","targetRoute","item",m),(j||0===j)&&e.buffer.push(j),e.buffer.push('\n<div class="video data media-body">\n <h2 class="title clearfix">\n '),k={classNames:b},l={classNames:"STRING"},m={hash:{classNames:"pull-left"},inverse:p.noop,fn:p.program(3,g,e),contexts:[b,b],types:["ID","ID"],hashContexts:k,hashTypes:l,data:e},i=c["link-to"]||b&&b["link-to"],j=i?i.call(b,"targetRoute","item",m):q.call(b,"link-to","targetRoute","item",m),(j||0===j)&&e.buffer.push(j),e.buffer.push('\n </h2>\n <div class="duration">'),l={},k={},m={hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e},e.buffer.push(o((i=c["seconds-to-time"]||b&&b["seconds-to-time"],i?i.call(b,"item.duration",m):q.call(b,"seconds-to-time","item.duration",m)))),e.buffer.push('</div>\n <p class="meta">\n from <span class="username">'),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.username",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push("</span> /\n Added <time>"),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.createdDate",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push('</time>\n </p>\n <p class="count">\n <span class="plays">'),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.numViews",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push(' Plays</span> /\n <span class="likes">'),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.numLikes",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push(' Likes</span> /\n <span class="comments">'),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.numComments",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push(' Comments</span>\n </p>\n <p class="description">'),l={},k={},e.buffer.push(o(c._triageMustache.call(b,"item.shortDescription",{hash:{},contexts:[b],types:["ID"],hashContexts:k,hashTypes:l,data:e}))),e.buffer.push('</p>\n <div class="return-types text-right">\n '),l={},k={},j=c.each.call(b,"returnType","in","item.returnTypes",{hash:{},inverse:p.noop,fn:p.program(5,h,e),contexts:[b,b,b],types:["ID","ID","ID"],hashContexts:k,hashTypes:l,data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\n </div>\n</div>"),n})});
|
1
|
+
define("appkit/app",["resolver","exports"],function(a,b){"use strict";var c=a["default"],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(){this.set("isLoaded",!1);var a=c.findFolder(this.get("ltiApp.toolId"),this.get("currentFolder"),this.get("parentFolderChain"));this.set("isLoaded",!0),this.set("folders",a.get("folders")),this.set("items",a.get("items"))}.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)+"…"):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"],n=Ember.Object.extend({folders:null,items:null,init:function(){this._super(),this.set("folders",Em.A([])),this.set("items",Em.A([]))}});n.reopenClass({findFolder:function(a,b,c){var d,e,f;return f=Ember.ENV.CONFIG.host+"/api/browse",d=n.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;case"exercise":b=m.createFromData(a),b.set("folderChain",e),d.get("items").pushObject(b);break;default:Em.debug("UNKNOWN KIND: "+a.kind)}})},function(a){Ember.debug("Error: "+a)}),d}}),g["default"]=n}),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")})}),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")})}),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")})}),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"})}),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")})}),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")})}),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">×</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(o(c.action.call(a,"goUpFolder",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),b.buffer.push(">« "),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:p.noop,fn:p.program(4,h,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"ltiApps",f):q.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("« dashboard")}function i(a,b){var d,e="";return b.buffer.push('\n\n <table class="table">\n <tbody>\n '),d=c.each.call(a,"folder","in","folders",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(7,j,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:p.noop,fn:p.program(9,k,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 "),e}function j(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(o(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 k(a,b){var d="";return b.buffer.push("\n "),b.buffer.push(o(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 l(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 m,n="",o=this.escapeExpression,p=this,q=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 '),m=c["if"].call(b,"parentFolder",{hash:{},hashTypes:{},hashContexts:{},inverse:p.program(3,g,e),fn:p.program(1,f,e),contexts:[b],types:["ID"],data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n </div>\n\n "),m=c["if"].call(b,"isLoaded",{hash:{},hashTypes:{},hashContexts:{},inverse:p.program(11,l,e),fn:p.program(6,i,e),contexts:[b],types:["ID"],data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n\n </div>\n</div>"),n})}),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
|
2
|
+
})}),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("« 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("« 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(o(c.view.call(a,"a-embed-item",{hash:{returnTypeBinding:"returnType",showTooltip:"true",itemBinding:"model","class":"btn-info pull-right"},hashTypes:{returnTypeBinding:"STRING",showTooltip:"STRING",itemBinding:"STRING","class":"STRING"},hashContexts:{returnTypeBinding:a,showTooltip:a,itemBinding:a,"class":a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push("\n "),d}function g(a,b){b.buffer.push("\n LINK TO EMBED PAGE\n ")}function h(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 i(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 j(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 k,l,m,n="",o=this.escapeExpression,p=this,q=c.helperMissing;return e.buffer.push('<div class="above-link">\n <a href="#" '),e.buffer.push(o(c.action.call(b,"performSearch",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push(' class="back_button">« search results</a>\n '),k=c.each.call(b,"returnType","in","returnTypes",{hash:{},hashTypes:{},hashContexts:{},inverse:p.program(3,g,e),fn:p.program(1,f,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push("\n</div>\n\n"),e.buffer.push(o(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 '),l=c["link-to"]||b&&b["link-to"],m={hash:{classNames:"pull-left"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:p.noop,fn:p.program(5,h,e),contexts:[b,b],types:["STRING","ID"],data:e},k=l?l.call(b,"ltiApp.search.details","",m):q.call(b,"link-to","ltiApp.search.details","",m),(k||0===k)&&e.buffer.push(k),e.buffer.push('\n </h2>\n <div class="duration">'),k=c._triageMustache.call(b,"termCount",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push(' terms</div>\n <p class="meta">\n '),k=c["if"].call(b,"username",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(7,i,e),contexts:[b],types:["ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push("\n Added <time>"),k=c._triageMustache.call(b,"createdDate",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push('</time>\n </p>\n <p class="count">\n '),k=c.each.call(b,"subject","in","subjects",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(9,j,e),contexts:[b,b,b],types:["ID","ID","ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push('\n </p>\n\n <p class="description">'),k=c._triageMustache.call(b,"description",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push("</p>\n</div>\n"),n})}),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.log.call(a,"returnType",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),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"},hashTypes:{returnTypeBinding:"STRING",itemBinding:"STRING","class":"STRING"},hashContexts:{returnTypeBinding:a,itemBinding:a,"class":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">« search results</a>\n '),g=c.each.call(b,"returnType","in","returnTypes",{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"},hashTypes:{returnTypeBinding:"STRING",itemBinding:"STRING"},hashContexts:{returnTypeBinding:a,itemBinding: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})});
|