/**
* SlideOnline - SlideOnline, A Modern Web Presentaton Player
* @authors
* @version v0.0.5
* @link
* @license UNLICENSED
*/
!function(){"use strict";angular.module("app",["app.core","app.admin","app.eventplayer","app.layout"])}(),function(){"use strict";angular.module("app.admin",["app.core","blocks.tools","blocks.filter","blocks.socket","blocks.crudtable","ui.bootstrap","ui.grid","ui.grid.resizeColumns","ui.grid.exporter"])}(),function(){"use strict";angular.module("blocks.crudtable",["blocks.logger","ui.bootstrap","ngFileSaver","uploader"])}(),function(){"use strict";angular.module("blocks.exception",["blocks.logger"])}(),function(){"use strict";angular.module("blocks.filter",["blocks.logger"])}(),function(){"use strict";angular.module("blocks.logger",[])}(),function(){"use strict";angular.module("blocks.modal",[])}(),function(){"use strict";angular.module("blocks.router",["ui.router","blocks.logger"])}(),function(){"use strict";angular.module("blocks.socket",["blocks.logger"])}(),function(){"use strict";angular.module("blocks.soplayer",["blocks.logger"])}(),function(){"use strict";angular.module("blocks.tools",["blocks.logger"])}(),function(){"use strict";angular.module("uploader",["ui.bootstrap","ngFileUpload","ngImgCrop","angular-uuid-generator"])}(),function(){"use strict";angular.module("blocks.validation",[])}(),function(){"use strict";angular.module("app.core",["ngAnimate","ngSanitize","blocks.exception","blocks.logger","blocks.router","ui.router","ngplus"])}(),function(){"use strict";angular.module("app.eventplayer",["app.core","blocks.soplayer","blocks.tools","blocks.filter","ui.bootstrap","angular.filter","angularUtils.directives.dirPagination","matchMedia"])}(),function(){"use strict";angular.module("app.layout",["app.core","ngDialog"])}(),function(){"use strict";function e(e){var n="/404";e.configureStates(t(),n)}function t(){return[{state:"info",config:{url:"/event/:eventCode/info",templateUrl:"app/admin/info.html",controller:"InfoController",controllerAs:"vm",title:"Info",resolve:{eventCode:["$stateParams",function(e){return e.eventCode}]}}}]}angular.module("app.admin").run(e),e.$inject=["routerHelper"]}(),function(){"use strict";function e(e,t,n,i,o,a,r){function s(){var e=[l()];return t.all(e).then(function(){i.log("Info view activated")})}function l(){return n.getAllPresentationsForEvent(c.eventCode).then(function(e){return e&&!_.isEmpty(e)?(angular.forEach(e,function(e){e.rating=function(){return this.presRates>0?Math.round(this.presRating/this.presRates):0},e.link=function(){return a.protocol()+"://"+a.host()+":"+a.port()+"/event/"+c.eventCode+"/presentation/"+this.id+"/"+this.presId+"/"+this.ratio+"/"+this.slug}}),c.gridOptions.data=e,e):(i.log("No presentations found for eventCode: "+c.eventCode),void a.path("/404"))},function(e){i.log(e),a.path("/404")})}var c=this;c.gridOptions={},c.eventCode=_.trim(o.eventCode).toUpperCase(),c.gridOptions.enableSorting=!0,c.gridOptions.enableColumnResizing=!0,c.gridOptions.enableGridMenu=!0,c.gridOptions.enableSelectAll=!0,c.gridOptions.exporterCsvFilename="export-"+c.eventCode+"-"+r().toISOString()+".csv",c.gridOptions.exporterMenuPdf=!1,c.gridOptions.columnDefs=[{name:"#",field:"presId",width:60,type:"number"},{name:"Date, Time & Room",field:"sessionRoomDate"},{name:"Session Title",field:"sessionTitle"},{name:"Pres Title",field:"presTitle"},{name:"Speaker",field:"speakerName"},{name:"Views",field:"presViews",width:60,type:"number"},{name:"Rating",field:"rating()",width:60,type:"number"},{name:"Direct Link",field:"link()",cellTemplate:'
'}],s()}angular.module("app.admin").controller("InfoController",e),e.$inject=["$rootScope","$q","dataservice","logger","$stateParams","$location","moment"]}(),function(){"use strict";function e(){function e(e,t,n){e.$on("$destroy",function(){})}var n={bindToController:!0,controller:t,controllerAs:"vm",templateUrl:"app/blocks/crudtable/crud-table.html",link:e,restrict:"EA"};return n}function t(e,t,n,i,o,a,r,s,l,c){var u=this;u.title=t.title?t.title:"List of "+t.api;var d=JSON.parse(t.cols),p=[];u.noedit=t.noedit,u.nodelete=t.nodelete,u.noadd=t.noadd,u.noexport=t.noexport,u.nofilter=t.nofilter,u.nocolumns=t.nocolumns,u.layout="list",u.l=12,u.loadMore=function(){u.l+=12},u.exportData=function(e){var n=JSON.stringify(u.data,void 0,2);if("txt"===e){var r=new o([n],{type:"text/plain;charset=utf-8"});i.saveAs(r,t.api+".txt")}else if("csv"===e){var s=new o([a.convert(document.getElementById("exportable").children[0])],{type:"text/csv;charset=utf-8"});i.saveAs(s,t.api+".csv")}else if("xls"===e){var l=new o([document.getElementById("exportable").innerHTML],{type:"application/vnd.ms-excel;charset=utf-8"});i.saveAs(l,t.api+".xls")}else{var c=new o([n],{type:"application/json"});i.saveAs(c,t.api+".json")}},angular.forEach(d,function(e){angular.forEach(e,function(e,t){var n;n="number"===e.type||"float"===e.type||"integer"===e.type||"currency"===e.type?"parseFloat":"lowercase",p.push({heading:t,dataType:e.type,sortType:n,noAdvFilter:e.noAdvFilter,noEdit:e.noEdit})})}),u.cols=p;var g=n.get(t.api+"DataService");u.data=[],g.getAll().then(function(e){u.data=e}),u.predicate=t.predicate?t.predicate:u.predicate="name",u.reverse=!0,u.order=function(e){u.reverse=u.predicate===e&&!u.reverse,u.predicate=e},u.edit=function(e){console.log("Edit Fired");var n;n=e?"Editing: "+e[t.uniqueColumn]:"Add New "+r(t.api),s.open(e,{title:n,api:t.api,columns:p})},u.changeActive=function(e){e.active=!e.active,g.putById(e.id,e).then(function(){var t=e.active?"Activation successful":"Deactivation successful";c.success(t)})["catch"](function(t){var n=e.active?"Activation failed":"Deactivation failed";c.error(n)})},u["delete"]=function(e){g.deleteById(e.id).then(function(){var t=e.active?"Deletion successful":"Deactivation successful";c.success(t)})["catch"](function(t){var n=e.active?"Deletion failed":"Deactivation failed";c.success(n)})},u.showImage=function(e,n){window.alert("show: "+e+" for "+n[t.uniqueColumn])},u.editImage=function(e,n){var i="Edit "+e+"image for "+n[t.uniqueColumn];l.open({type:e,id:n.id},{title:i,api:t.api})},u.deleteImage=function(e,n){window.alert("delete: "+e+" for "+n[t.uniqueColumn])},u.addImage=function(e,n){var i="Add "+e+"image for "+n[t.uniqueColumn];n[t.uniqueColumn];l.open({type:e,id:n.id},{title:i,uploadUrl:g.uploadUrl()})}}angular.module("blocks.crudtable").directive("crudTable",e),e.$inject=[],t.$inject=["$scope","$attrs","$injector","FileSaver","Blob","table2csv","labelCaseFilter","addEditModal","pluginImageUploadModal","logger"]}(),function(){"use strict";function e(e,t){return function(e){var t="I";return e===!0&&(t="A"),t}}angular.module("blocks.crudtable").filter("active",e),e.$inject=["$filter","logger"]}(),function(){"use strict";function e(e,t){return function(e){return e?e.toLowerCase().replace(/ (\w)/g,function(e,t){return t.toUpperCase()}):e}}angular.module("blocks.crudtable").filter("camelCase",e),e.$inject=["$filter","logger"]}(),function(){"use strict";function e(e,t){return function(e){return e?(e=e.replace(/([A-Z])/g," $1"),e[0].toUpperCase()+e.slice(1)):e}}angular.module("blocks.crudtable").filter("labelCase",e),e.$inject=["$filter","logger"]}(),function(){"use strict";function e(e,t){return function(e,t){var n=[];return angular.isArray(e)?e.forEach(function(e){for(var i=!1,o=Object.keys(t),a=0;a"+(s.statusText||"")+": "+(s.status||"");a.warning(c,[n]),e.path("/")}})}function l(){s(),u(),d()}function c(){return i.get()}function u(){n.$on("$stateChangeSuccess",function(e,t,i,a,r){g.changes++,p=!1;var s=o.docTitle+" "+(t.title||"");n.title=s})}function d(){n.$on("$stateChangeStart",function(e,t,i,o,a){"playermenu"===t.name&&(n.showBackButton=!1),"playermenu.player"===t.name&&(n.showBackButton=!0),"404"===t.name||"emailVerify"===t.name?n.showActionBar=!1:n.showActionBar=!0})}var p=!1,g={errors:0,changes:0},m={configureStates:r,getStates:c,stateCounts:g};return l(),m}var o={docTitle:void 0,resolveAlways:{}};e.html5Mode(!0),this.configure=function(e){angular.extend(o,e)},this.$get=i,i.$inject=["$location","$rootScope","$state","logger"]}angular.module("blocks.router").provider("routerHelper",e),e.$inject=["$locationProvider","$stateProvider","$urlRouterProvider"]}(),function(){"use strict";function e(){function e(e,t,n){if(typeof t!==n)throw new TypeError("'+ name +' must be of type '"+n+"'");i[e]=t}function t(e){var t=io(n,i);return{on:function(n,i){t.on(n,function(){var n=arguments;e.$apply(function(){i.apply(t,n)})})},off:function(e,n){"function"==typeof n?t.removeListener(e,n):t.removeAllListeners(e)},emit:function(n,i,o){"function"==typeof o?t.emit(n,i,function(){var n=arguments;e.$apply(function(){o.apply(t,n)})}):t.emit(n,i)}}}var n="",i={};this.setResource=function(t){e("resource",t,"string")},this.setConnectTimeout=function(t){e("connect timeout",t,"number")},this.setTryMultipleTransports=function(t){e("try multiple transports",t,"boolean")},this.setReconnect=function(t){e("reconnect",t,"boolean")},this.setReconnectionDelay=function(t){e("reconnection delay",t,"number")},this.setReconnectionLimit=function(t){e("reconnection limit",t,"number")},this.setMaxReconnectionAttempts=function(t){e("max reconnection attempts",t,"number")},this.setSyncDisconnectOnUnload=function(t){e("sync disconnect on unload",t,"boolean")},this.setAutoConnect=function(t){e("auto connect",t,"boolean")},this.setFlashPolicyPort=function(t){e("flash policy port",t,"number")},this.setForceNewConnection=function(t){e("force new connection",t,"boolean")},this.setConnectionUrl=function(e){if("string"!=typeof e)throw new TypeError("setConnectionUrl error: value must be of type 'string'");n=e},this.$get=t,t.$inject=["$rootScope"]}angular.module("blocks.socket").provider("socketHelper",e),e.$inject=[]}(),function(){"use strict";function e(e,t){function n(e,n,i){var o=e.playerId||"random_player_"+Math.floor(999999999*Math.random()+1),a=function(e){return''};n.html(a(o)),t(n.contents())(e),jwplayer(o).setup(e.setupVars),jwplayer(o).once("beforePlay",e.beforeCallback),jwplayer(o).once("complete",e.completeCallback,jwplayer(o))}var i={link:n,restrict:"E",scope:{playerId:"@",setupVars:"=setup",completeCallback:"=complete",beforeCallback:"=before"}};return i}angular.module("blocks.soplayer").directive("soPlayer",e),e.$inject=["config","$compile"]}(),function(){"use strict";function e(e,t){function n(e,t,n){e.$watch(function(){return n.backImg},function(e){e?t.css({"background-image":"url("+n.backImg+"), url("+n.errImg+")"}):t.css({"background-image":"url("+n.errImg+")"})})}var i={link:n};return i}angular.module("blocks.tools").directive("backImg",e),e.$inject=["config","$compile"]}(),function(){"use strict";function e(e,t){function n(e,t,n){e.$watch(function(){return n.ngSrc},function(e){e||t.attr("src",n.errSrc)}),t.bind("error",function(){t.attr("src",n.errSrc)})}var i={link:n};return i}angular.module("blocks.tools").directive("errSrc",e),e.$inject=["config","$compile"]}(),function(){"use strict";function e(e){function t(t){var n=e.defer(),i=new Image;return i.onerror=function(){n.resolve(!1)},i.onload=function(){n.resolve(!0)},i.src=t,n.promise}var n={imageExists:t};return n}angular.module("blocks.tools").factory("soUtils",e),e.$inject=["$q"]}(),function(){"use strict";function e(e,t,n,i,o,a,r,s,l){function c(){}function u(e,t){s.hash=r.v4(),a.upload({url:g,file:a.dataUrltoBlob(e,t),data:s,resumeChunkSize:"10KB"}).then(function(e){n(function(){p.result=e.data})},function(e){e.status>0&&(p.errorMsg=e.status+": "+e.data)},function(e){p.progress=parseInt(100*e.loaded/e.total)})}function d(){e.close()}var p=this,g=l.uploadUrl;p.picFile="",p.croppedDataUrl="",p.upload=u,p.close=d,p.title=l.title,c()}angular.module("uploader").controller("PluginImageUploadInstanceController",e),e.$inject=["$uibModalInstance","$injector","$timeout","config","logger","Upload","uuid","data","options"]}(),function(){"use strict";function e(e,t,n){function i(t,n){e.open({templateUrl:"app/blocks/uploader/modals/plugin-image-upload.html",controller:"PluginImageUploadInstanceController",controllerAs:"vm",windowClass:"modal-danger",resolve:{data:function(){return t},options:function(){return n}}})}var o={open:i};return o}angular.module("uploader").factory("pluginImageUploadModal",e),e.$inject=["$uibModal","$q","logger"]}(),function(){"use strict";function e(e,n){function i(t,n,i,o){function a(){return e.FormData&&"upload"in $.ajaxSettings.xhr()?(console.log(n.innerHeight()),console.log(n.innerWidth()),(!t.uploaderOptions||!t.uploaderOptions.width&&!t.uploaderOptions.height)&&n.innerHeight()<=0?(o.fatalError="HTML5 Upload Image: Image height is not set and can not be calculated...",!1):(!t.uploaderOptions||!t.uploaderOptions.height&&!t.uploaderOptions.width)&&n.innerWidth()<=0?(o.fatalError="HTML5 Upload Image: Image width is not set and can not be calculated...",!1):void 0):(o.fatalError="HTML5 Upload Image: Sadly.. this browser does not support the plugin, update your browser today!",!1)}a(),o.init()}var o={bindToController:!0,controller:t,controllerAs:"vm",templateUrl:"imageResizingUploader.html",link:i,restrict:"EA",scope:{uploaderOptions:"=?"}};return o}function t(e,t,n){function i(){}var o=this;o.init=i,o.options=angular.extend({},n,this.uploaderOptions)}angular.module("blocks.uploader",[]).constant("dwImageResizingUploaderDefaults",{width:null,height:null,image:null,ghost:!0,originalsize:!0,url:!1,removeurl:null,canvas:!0,canvasImageOnly:!1,ajax:!0,resize:!1,dimensionsonly:!1,editstart:!1,saveOriginal:!1,save:!0,download:!1,smaller:!1,smallerWidth:!1,smallerHeight:!1,background:null,onAfterZoomImage:null,onAfterInitImage:null,onAfterMoveImage:null,onAfterProcessImage:null,onAfterResetImage:null,onAfterCancel:null,onAfterRemoveImage:null,onAfterSelectImage:null}).directive("dwImageResizingUploader",e),e.$inject=["$window","$timeout"],t.$inject=["$window","$element","dwImageResizingUploaderDefaults"]}(),function(){"use strict";function e(){function e(e,t,n,i){i.$validators.compareTo=function(t){return t===e.otherModelValue},e.$watch("otherModelValue",function(){i.$validate()})}var t={link:e,require:"ngModel",scope:{otherModelValue:"=passwordMatch"}};return t}angular.module("blocks.validation").directive("passwordMatch",e),e.$inject=[]}(),function(){"use strict";function e(e){e.options.timeOut=4e3,e.options.positionClass="toast-bottom-right"}function t(e,t,n){e.debugEnabled&&e.debugEnabled(!0),n.configure(i.appErrorPrefix),t.configure({docTitle:i.appTitle+": "})}var n=angular.module("app.core");n.config(e),e.$inject=["toastr"];var i={localMode:!1,appErrorPrefix:"[SlideOnline Error] ",appTitle:"SlideOnline",actionBarColour:"#F5F5F5",showRatings:!0,apiBase:"/api/",localJson:{}};n.value("config",i),n.config(t),t.$inject=["$logProvider","routerHelperProvider","exceptionHandlerProvider"]}(),function(){"use strict";angular.module("app.core").constant("toastr",toastr).constant("moment",moment).constant("_",window._)}(),function(){"use strict";function e(e){var n="/404";e.configureStates(t(),n)}function t(){return[{state:"404",config:{url:"/404",templateUrl:"app/core/404.html",title:"404"}}]}e.$inject=["routerHelper"],angular.module("app.core").run(e)}(),function(){"use strict";function e(e,t,n){function i(e){var t=d+"presentations/"+e+"/all",n="get query for presentations for eventCode: "+e+" failed";return c(t,n)}function o(e){var t=d+"presentations/"+e,n="get query for presentation with id: "+e+" failed";return c(t,n)}function a(e){var t=d+"events/"+e,n=!1;return c(t,n)}function r(e){var t=d+"presentations/"+e+"/view",n={},i="post a view of a presentation with id: "+e+" failed";return u(t,n,i)}function s(e,t){var n=d+"presentations/"+e+"/rate",i={rating:t},o="post a rating for presentation with id: "+e+" failed";return u(n,i,o)}function l(e,t,n){var i=d+"events/"+e+"/login",o={username:t,password:n},a=!1;return u(i,o,a)}function c(i,o){function a(e){return e.data}function r(e){var i="";return o&&(i=o+": "+e.data.description,n.error(i)),t.reject(i)}return e.get(i).then(a)["catch"](r)}function u(i,o,a){function r(e){return e.data}function s(e){var i="";return a&&(i=a+": "+e.data.description,n.error(i)),t.reject(i)}return e.post(i,o).then(r)["catch"](s)}var d="https://slideonline-api.azurewebsites.net/api/",p={getAllPresentationsForEvent:i,getPresentation:o,getEvent:a,postPresentationView:r,postPresentationRating:s,postLogin:l};return p}angular.module("app.core").factory("dataservice",e),e.$inject=["$http","$q","logger"]}(),function(){"use strict";function e(e,t,n,i,o,a){function r(){var e=[];return t.all(e).then(function(){o.log("Activated BeforeController")})}var s=this;s.eventCode=a;var l=.5*n.outerWidth,c=.75*l,u=-(c/2),d=-(l/2);s.modalWidth=l+"px",s.modalHeight=c+"px",s.y=u+"px",s.x=d+"px",r()}angular.module("app.eventplayer").controller("BeforeController",e),e.$inject=["$rootScope","$q","$window","config","logger","eventCode"]}(),function(){"use strict";function e(e,t,n,i,o,a){function r(){var e=[];return t.all(e).then(function(){o.log("Activated CompleteController")})}var s=this;s.eventCode=a;var l=.5*n.outerWidth,c=.75*l,u=-(c/2),d=-(l/2);s.modalWidth=l+"px",s.modalHeight=c+"px",s.y=u+"px",s.x=d+"px",r()}angular.module("app.eventplayer").controller("CompleteController",e),e.$inject=["$rootScope","$q","$window","config","logger","eventCode"]}(),function(){"use strict";function e(e){var n="/404";e.configureStates(t(),n)}function t(){return[{state:"playermenu",config:{url:"/event/:eventCode",templateUrl:"app/eventplayer/playermenu.html",controller:"PlayerMenuController",controllerAs:"vm",title:"Menu",resolve:{eventCode:["$stateParams",function(e){return e.eventCode}]}}},{state:"playermenu.player",config:{url:"/presentation/:id/:presId/:ratio/:slug",templateUrl:"app/eventplayer/player.html",controller:"PlayerController",controllerAs:"vm",title:"Player"}}]}angular.module("app.eventplayer").run(e),e.$inject=["routerHelper"]}(),function(){"use strict";function e(e,t,n,i,o,a,r,s){function l(){var e=[];return e=v.localMode?[c()]:[u()],t.all(e).then(function(){i.log("Player view activated")})}function c(){v.presentation=_.find(s.localJson,{eventCode:v.eventCode,presId:v.presId})}function u(){return n.getPresentation(v.id).then(function(e){return v.presentation=e,v.presentation}).then(function(e){return e.presViews++,v.rating=e.presRating/e.presRates,n.postPresentationView(e.id)})["catch"](function(e){i.log(e),a.path("/event/"+v.eventCode)})}function d(){if(!v.clickedRating)return v.clickedRating=!0,n.postPresentationRating(v.presentation.id,v.rating).then(function(e){v.presentation.presRates++})["catch"](function(e){v.clickedRating=!1,i.log(e)})}function p(e){if(v.event&&v.event.postroll){r.open({templateUrl:"app/eventplayer/complete.html",controller:"CompleteController",controllerAs:"vm",size:"lg",resolve:{eventCode:function(){return v.eventCode}}})}}function g(e){if(v.event&&v.event.preroll){jwplayer("videoPlayer").pause(!0);var t=r.open({templateUrl:"app/eventplayer/before.html",controller:"BeforeController",controllerAs:"vm",size:"lg",resolve:{eventCode:function(){return v.eventCode}}});t.closed.then(function(){jwplayer("videoPlayer").play(!0)})}else jwplayer("videoPlayer").play(!0)}function m(e){var t=new XMLHttpRequest,n="events/"+v.eventCode+"/data.json";t.overrideMimeType("application/json"),t.open("GET",n,!0),t.onreadystatechange=function(){4===t.readyState&&200===t.status&&e(t.responseText)},t.send(null)}var v=this;v.eventCode=_.trim(o.eventCode).toUpperCase(),v.id=o.id,v.slug=o.slug,v.presId=o.presId,v.ratio=o.ratio,v.ratioClass="","16:9"===v.ratio?v.ratioClass="embed-responsive-16by9":"4:3"===v.ratio&&(v.ratioClass="embed-responsive-4by3"),v.event=null,v.presentation=null,v.ratingClick=d,v.rating=0,v.clickedRating=!1,v.showRatings=s.showRatings,v.complete=p,v.before=g,v.localMode=s.localMode,v.blobRoot="https://slideonline.blob.core.windows.net/slideonline-blob-container",v.playerOptions={abouttext:"Open Slide & Services",aboutlink:"http://www.openslideservices.com",width:"100%",autostart:!1,logo:{file:"/events/"+v.eventCode+"/watermark.png"},playlist:[{file:v.blobRoot+"/events/"+v.eventCode+"/presentations/"+v.presId+"/video1.mp4",image:v.blobRoot+"/events/"+v.eventCode+"/presentations/"+v.presId+"/poster.jpg",tracks:[{file:v.blobRoot+"/events/"+v.eventCode+"/presentations/"+v.presId+"/chapters.vtt",kind:"chapters"},{file:v.blobRoot+"/events/"+v.eventCode+"/presentations/"+v.presId+"/thumbnails.vtt",kind:"thumbnails"}]}],aspectratio:v.ratio},v.localMode?m(function(e){s.localJson=JSON.parse(e),l()}):l()}angular.module("app.eventplayer").controller("PlayerController",e),e.$inject=["$rootScope","$q","dataservice","logger","$stateParams","$location","$uibModal","config"]}(),function(){"use strict";function e(e,t,n,i,o,a,r,s,l){function c(){return e.isAuthenticated?(v.isAuthenticated=!0,void u()):i.getEvent(v.eventCode).then(function(t){t&&!_.isEmpty(t)&&t.protect?(e.isAuthenticated=!1,v.isAuthenticated=!1):(e.isAuthenticated=!0,v.isAuthenticated=!0,u())})["catch"](function(e){v.isAuthenticated=!0,u()})}function u(){var e=[p()];return n.all(e).then(function(){s.on("xs",function(e){e?v.maxPaginationItems=5:v.maxPaginationItems=9}),o.log("EventPlayer view activated")})}function d(){v.selectedSessionTitle="",v.selectedSessionTheme="",v.selectedSessionRoomDate="",v.searchKeyword=""}function p(){return v.localMode?(l.localJson.length>12&&(v.showPagination=v.showItemsPerPage=!0),void(v.presentations=l.localJson)):i.getAllPresentationsForEvent(v.eventCode).then(function(e){return e&&!_.isEmpty(e)?(v.presentations=e,e.length>12&&(v.showPagination=v.showItemsPerPage=!0),v.presentations):(o.log("No presentations found for eventCode: "+v.eventCode),void r.path("/404"))},function(e){o.log(e),r.path("/404")})}function g(){return v.errorMessage="",v.password||v.username?(v.errorMessage="",e.isAuthenticated=!0,i.postLogin(v.eventCode,v.username,v.password).then(function(t){t&&!_.isEmpty(t)&&t.protect?(e.isAuthenticated=!1,v.isAuthenticated=!1,v.errorMessage="Login incorrect"):(e.isAuthenticated=!0,v.isAuthenticated=!0,c())})["catch"](function(e){v.isAuthenticated=!1,v.errorMessage="Login incorrect"})):void(v.errorMessage="Login incorrect")}function m(e){var t=new XMLHttpRequest,n="events/"+v.eventCode+"/data.json?_="+(new Date).getTime();t.overrideMimeType("application/json"),t.open("GET",n,!0),t.onreadystatechange=function(){4===t.readyState&&200===t.status&&e(t.responseText)},t.send(null)}var v=this;v.selectedSessionTitle="",v.selectedSessionTheme="",v.selectedSessionRoomDate="",v.searchKeyword="",v.config=l,v.showRatings=l.showRatings,v.itemsPerPageOptions=[{value:12,name:"12"},{value:24,name:"24"},{value:36,name:"36"},{value:48,name:"48"},{value:0,name:"All"}],v.showPagination=v.showItemsPerPage=!1,v.itemsPerPage={value:12,name:"12"},v.showPaginationBoundaryLinks=!1,v.eventCode=_.trim(a.eventCode).toUpperCase(),v.localMode=l.localMode,v.clearFilters=d,v.login=g,e.showBackButton=!1,l.localMode?m(function(e){l.localJson=JSON.parse(e),c()}):c()}angular.module("app.eventplayer").controller("PlayerMenuController",e),e.$inject=["$rootScope","$scope","$q","dataservice","logger","$stateParams","$location","screenSize","config"]}(),function(){"use strict";function e(e){var t={restrict:"AE",templateUrl:"app/eventplayer/so-player-menu-item.html",scope:{item:"=presentation",eventCode:"=eventCode",showRatings:"=showRatings",localMode:"=localMode"},link:function(e,t,n){e.$watch("item.presRating",function(t){e.item.presRates>0&&(e.calculatedRating=t/e.item.presRates)})}};return t}angular.module("app.eventplayer").directive("soPlayerMenuItem",e),e.$inject=["config"]}(),function(){"use strict";function e(e,t,n){function i(){}var o=this;o.eventCode=_.trim(e.eventCode).toUpperCase(),o.backButtonText="Menu",i()}angular.module("app.layout").controller("ActionbarController",e),e.$inject=["$stateParams","logger","$scope"]}(),function(){"use strict";function e(e,t,n,i,o){function a(){o.log(i.appTitle+" loaded!",null),r()}function r(){n(function(){e.showSplash=!1},1e3)}var s=this;s.busyMessage="Please wait ...",s.isBusy=!0,e.showSplash=!0;var l=t.path(),c=l.split("/"),u=c.indexOf("admin"),d=c.indexOf("event");u>-1?s.bannerUri="content/img/backend-banner.png":d>-1&&(s.eventName=c[d+1],s.bannerUri="events/"+s.eventName+"/banner.png"),s.actionbarColour=i.actionBarColour,a()}angular.module("app.layout").controller("ShellController",e),e.$inject=["$rootScope","$location","$timeout","config","logger"]}(),angular.module("app.core").run(["$templateCache",function(e){e.put("app/admin/info.html",'Summary: {{vm.eventCode}}
'),e.put("app/core/404.html","Oh No!
It looks like you are lost
The page you're looking for is not here.
Go Back "),e.put("app/eventplayer/before.html",""),e.put("app/eventplayer/complete.html",""),e.put("app/eventplayer/pagination.tpl.html",''),
e.put("app/eventplayer/player.html",' '),e.put("app/eventplayer/playermenu.html",''),e.put("app/eventplayer/so-player-menu-item.html",'
Play video![photo of]()
{{item.speakerName}}- ({{item.presRates}} reviews - {{item.presViews}} views)
- ({{item.presViews}} views)
{{item.presTitle}}
'),e.put("app/layout/actionbar.html",''),e.put("app/layout/shell.html",'![](content/img/busy.gif)
{{vm.busyMessage}}
'),e.put("app/blocks/crudtable/crud-table.html",'
No data found.
# | {{c.heading | labelCase}} | Actions |
---|
{{$index+1}} | {{p[c.heading] | amCalendar}} {{p[c.heading] | currency}} {{p[c.heading]}} | |
'),e.put("app/blocks/crudtable/modals/add-edit.html",''),e.put("app/blocks/crudtable/modals/confirm-click.html",'{{vm.message}}
'),e.put("app/blocks/uploader/modals/plugin-image-upload.html",''),e.put("app/blocks/uploader/todo/imageResizingUploader.html",'{{vm.fatalError}}
')}]);