var CommBankApp;(function(n){var t=function(){function n(n,t,i){this.$httpProvider=n;this.jwtOptionsProvider=t;this.jwtInterceptorProvider=i;this.jwtOptionsProvider.config({tokenGetter:["store",function(n){return n.get("id_token")}]});this.$httpProvider.interceptors.push("jwtInterceptor")}return n.$inject=["$httpProvider","jwtOptionsProvider","jwtInterceptorProvider"],n}();n.ConfigAuth=t})(CommBankApp||(CommBankApp={})),function(n){var t=function(){function t(t,i,r){this.$stateProvider=t;this.$urlRouterProvider=i;this.$locationProvider=r;r.html5Mode(!0);i.otherwise("/");t.state("root",{abstract:!0,url:"",views:{sidenav:{templateUrl:"./app/site/_shared/sidenav.html",controller:n.SidenavController,controllerAs:"vm"},navbar:{templateUrl:"./app/site/_shared/navbar.html",controller:n.SidenavController,controllerAs:"vm"},toolbar:{templateUrl:"./app/site/_shared/toolbar.html",controller:n.ToolbarController,controllerAs:"vm"}},data:{requiresLogin:!1}}).state("root.home",{url:"/",views:{"main@":{templateUrl:"./app/site/home/home.html",controller:n.HomeController,controllerAs:"vm"}}}).state("root.home-blog",{url:"/blog-home",views:{"main@":{templateUrl:"./app/site/home/home_blog.html",controller:n.HomeController,controllerAs:"vm"}}}).state("root.conf-all",{url:"/2017-conference-all",views:{"main@":{templateUrl:"./app/site/conf/_single-page.html",controller:n.ConfController,controllerAs:"vm"}}}).state("root.conf-about",{url:"/2017-conference",views:{"main@":{templateUrl:"./app/site/conf/about.html",controller:n.ConfController,controllerAs:"vm"}}}).state("root.conf-agenda",{url:"/2017-conference/agenda",views:{"main@":{templateUrl:"./app/site/conf/agenda.html",controller:n.ConfController,controllerAs:"vm"}}}).state("root.conf-papers",{url:"/2017-conference/papers",views:{"main@":{templateUrl:"./app/site/conf/papers.html",controller:n.ConfController,controllerAs:"vm"}}}).state("root.conf-speakers",{url:"/2017-conference/speakers",views:{"main@":{templateUrl:"./app/site/conf/speakers.html",controller:n.ConfController,controllerAs:"vm"}}}).state("root.conf-videos",{url:"/2017-conference/videos",views:{"main@":{templateUrl:"./app/site/conf/videos.html",controller:n.ConfController,controllerAs:"vm"}}}).state("root.login",{url:"/login",views:{"main@":{templateUrl:"./app/site/login/login.html",controller:n.LoginController,controllerAs:"vm"}},data:{requiresLogin:!1},params:{toState:{value:null},toParams:{value:null}}}).state("root.unauthorized",{url:"/unauthorized",views:{"main@":{templateUrl:"./app/site/login/unauthorized.html",controller:n.LoginController,controllerAs:"vm"}},data:{requiresLogin:!1}})}return t.$inject=["$stateProvider","$urlRouterProvider","$locationProvider"],t}();n.ConfigRoutes=t}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t){this.$mdIconProvider=n;this.$mdThemingProvider=t;n.defaultIconSet("./Content/svg/avatars.svg",128).icon("google_plus","/Content/svg/google-plus.svg",512).icon("hangouts","/Content/svg/hangouts.svg",512).icon("twitter","/Content/svg/twitter-box.svg",512).icon("phone","/Content/svg/phone.svg",512).icon("dots-v","/Content/svg/dots-vertical.svg",24).icon("menu","/Content/svg/menu.svg",24).icon("view-dash","/Content/svg/view-dashboard.svg",48);t.theme("default").primaryPalette("deep-purple").accentPalette("orange")}return n.$inject=["$mdIconProvider","$mdThemingProvider"],n}();n.ConfigTheme=t}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i,r){this.$log=n;this.$rootScope=t;this.$state=i;this.loginManager=r;this.$rootScope.$on("$stateChangeStart",function(n,t,u){!r.isAuthenticated()&&t.data&&t.data.requiresLogin===!0&&(n.preventDefault(),i.go("root.login",{toState:t.name,toParams:u}))})}return n.$inject=["$log","$rootScope","$state","loginManager"],n}();n.CommBankAppRunner=t;angular.module("app",["ngMaterial","ngMdIcons","ngMessages","ngAria","ngSanitize","ngAnimate","ui.router","angular-storage","angular-jwt"]).constant("_",window._).run(t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t){this.$log=n;this.demoSvc=t;var i=this;this.testResult="(testing)"}return n.prototype.$onInit=function(){},n.prototype.testPost=function(){var n=this;this.testResult="posting..";this.demoSvc.testPost().then(function(t){n.testResult=t.data})},n.prototype.testGet=function(){var n=this;this.testResult="getting..";this.demoSvc.testGet().then(function(t){n.testResult=t.data})},n.$inject=["$log","demoService"],n}();n.ConfController=t;angular.module("app").controller("confController",t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t){this.$log=n;this.demoSvc=t;var i=this;this.testResult="(testing)"}return n.prototype.$onInit=function(){},n.prototype.testPost=function(){var n=this;this.testResult="posting..";this.demoSvc.testPost().then(function(t){n.testResult=t.data})},n.prototype.testGet=function(){var n=this;this.testResult="getting..";this.demoSvc.testGet().then(function(t){n.testResult=t.data})},n.$inject=["$log","demoService"],n}();n.HomeController=t;angular.module("app").controller("homeController",t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i,r,u,f){this.$log=n;this.$rootScope=t;this.loginMgr=i;this.$state=r;this.$stateParams=u;this.store=f;this.loggingIn=!1;this.hasLoginError=!1;this.loginError=null;this.notAllowed=!1;var o=this,e=t.manualLogin==="manual";n.info("manualLogin",e);e||this.login()}return n.prototype.$onInit=function(){},n.prototype.login=function(){var n=this;n.loggingIn=!0;n.loginMgr.login().then(function(t){if(t){var i=n.$stateParams.toState,r=n.$stateParams.toParams;i?r?n.$state.go(i,r):n.$state.go(i):n.$state.go("root.home")}else n.notAllowed=!0,n.$state.go("root.unauthorized")},function(t){n.hasLoginError=!0;n.loginError=t}).finally(function(){n.loggingIn=!1})},n.$inject=["$log","$rootScope","loginManager","$state","$stateParams","store"],n}();n.LoginController=t;angular.module("app").controller("loginController",t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i,r,u,f,e){this.$log=n;this.$rootScope=t;this.$q=i;this.store=r;this.authService=u;this.jwtHelper=f;this.$state=e;var o=this;o.userProfile=null}return n.prototype.login=function(){var n=this,t=this.$q.defer();return n.$log.info("logging in..."),n.$rootScope.isLoggingIn=!0,n.authService.login().then(function(i){if(i.data&&i.data.token){var u=i.data.token,r=n.jwtHelper.decodeToken(u);n.store.set("id_token",u);n.store.set("profile",r);n.$rootScope.isAuthenticated=!0;n.$rootScope.$broadcast("USER-AUTH",r);t.resolve(r.IsAllowed)}else n.$rootScope.hasLoginError=!0,t.reject("Login error");n.$rootScope.isLoggingIn=!1}),t.promise},n.prototype.logout=function(){this.store.remove("id_token");this.store.remove("profile");this.$rootScope.isAuthenticated=!1;this.$rootScope.manualLogin="manual";this.$state.go("root.home",{},{reload:!0})},n.prototype.isAuthenticated=function(){return this.$rootScope.isAuthenticated===!0},n.prototype.isAdmin=function(){return},n.$inject=["$log","$rootScope","$q","store","authService","jwtHelper","$state"],n}();n.LoginManager=t;angular.module("app").service("loginManager",t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n){var t=this;this.$http=n;this.login=function(){return t.$http({url:"api/auth/login",method:"post",data:null})}}return n}();n.AuthService=t;angular.module("app").service("authService",["$http",t])}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t,i){t.countdown(i.targetTime,function(n){$(this).html(n.strftime('<div class="count-item days">%D<div>Days<\/div><\/div><div class="count-item hours">%H<div>Hours<\/div><\/div><div class="count-item minutes">%M<div>Minutes<\/div><\/div><div class="count-item seconds">%S<div>Seconds<\/div><\/div>'))})}}}n.Countdown=t;angular.module("app").directive("countdown",n.Countdown)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n){var t=this;this.$http=n;this.testPost=function(){return t.$http({url:"api/demo/",method:"post",data:null})};this.testGet=function(){return t.$http({url:"api/demo/",method:"get",data:null})}}return n}();n.DemoService=t;angular.module("app").service("demoService",["$http",t])}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n){var t=this;this.$http=n;this.getDocumentsFolder=function(){return t.$http({url:"api/documents/get",method:"get",data:null})}}return n}();n.DocumentsService=t;angular.module("app").service("documentsService",["$http",t])}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){function n(n,t){n.$set("src",n.errSrc);t.addClass("using-err-src")}return{link:function(t,i,r){i.bind("error",function(){r.src!=r.errSrc&&n(r,i)});r.$observe("ngSrc",function(t){!t&&r.errSrc&&n(r,i)})}}}n.ErrSrc=t;angular.module("app").directive("errSrc",n.ErrSrc)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t,i){t.find(".inner").owlCarousel({loop:i.loop,margin:0,nav:!0,dots:!1,navText:[,],autoplay:i.autoplay,autoplayTimeout:i.interval,autoHeight:i.autoheight,responsive:{0:{items:i.itemsMobile},768:{items:i.itemsTablet},1200:{items:i.itemsDesktop}}});i.asGallery==="true"&&t.find(".gallery-item").magnificPopup({type:"image",delegate:"a",mainClass:"mfp-fade",gallery:{enabled:!0},removalDelay:500,image:{titleSrc:"data-title"}})}}}n.GalleryGrid=t;angular.module("app").directive("galleryGrid",n.GalleryGrid)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i){var r=this,u,f;this.$log=n;this.$scope=t;this.streamsSvc=i;u=this;f=$(window);i.getCurrentOrImminentStreams().then(function(n){console.log("sreamsSvc result",n.data);r.$scope.data=n.data})}return n.prototype.$onInit=function(){},n.$inject=["$log","$scope","streamsService"],n}();n.LiveFeedBannerController=t;angular.module("app").controller("liveFeedBannerController",t)}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(n){var t=this;this.streamsSvc=n;this.restrict="E";this.replace=!0;this.templateUrl="./app/site/_shared/liveFeedBanner.html";this.lastHash=null;this.liveUrl=location.protocol+"//"+location.host+"/live";this.link=function(n,i,r){n.animate=r.animate==="true";n.animatePreview=r.animatePreview==="true";n.shareUrl=t.liveUrl;n.closingText=r.popupText;t.checkForStreams(n,!0)}}return n.prototype.checkForStreams=function(n,t){var i=this;t===void 0&&(t=!1);this.streamsSvc.getCurrentOrImminentStreamsWithHash().then(function(r){var f=r.data,u,o,e;if(i.lastHash==f.hash){console.info("STREAMS: no change");t&&i.runAgain(n);return}console.info("STREAMS: changed!!");i.lastHash=f.hash;u=f.streams?f.streams[0]:null;o=f.streams&&f.streams.length>1?f.streams[1]:null;n.stream=u;e=(new Date).getTime();i.hideAll(n);!u||e>u.endTicks?i.hideAll(n):u.hasPreview&&e<u.startTicks?i.showPreview(u,n):i.showLive(u,n,o);setTimeout(function(){n.$root.$apply()},100);t&&i.runAgain(n)})},n.prototype.runAgain=function(n){var t=this;setInterval(function(){t.checkForStreams(n)},6e3)},n.prototype.showPreview=function(n,t){$("body").addClass("has-live-feed-banner");this.setScope(t,!0,!1,n.previewText,null)},n.prototype.showLive=function(n,t,i){var u=this;i===void 0&&(i=null);$("body").addClass("has-live-feed-banner");var r="closedLiveFeed",f=t.liveMode!==!0,e=location.pathname.toLowerCase()==="/live",o=this.readCookie(r)==="Y";this.setScope(t,!0,!0,null,n.title,n.videoId,n.videoType,i?i.title:null,i?i.videoId:null,i?i.videoType:null);!f||e||o||setTimeout(function(){$("a.live-feed-link").on("mfpClose",function(){alert("LIVE STREAM CLOSED\n\nYou may reopen the live stream by clicking the banner above, or by visiting the CommunityBanking.org home page.");u.createCookie(r,"Y",1/6)});$("a.live-feed-link").click()},500)},n.prototype.hideAll=function(n){$("body").removeClass("has-live-feed-banner");this.setScope(n,!1,!1,null,null)},n.prototype.setScope=function(n,t,i,r,u,f,e,o,s,h){f===void 0&&(f=null);e===void 0&&(e=null);o===void 0&&(o=null);s===void 0&&(s=null);h===void 0&&(h=null);n.show=t;n.liveMode=i;n.previewText=r;n.liveText=u;n.videoId=f;n.videoType=e;n.hasVideo2=!!s;n.video2Text=o;n.video2Id=s;n.video2Type=h},n.prototype.createCookie=function(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toUTCString());document.cookie=n+"="+t+u+"; path=/"},n.prototype.readCookie=function(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null},n.prototype.eraseCookie=function(n){this.createCookie(n,"",-1)},n.factory=function(){var t=function(t){return new n(t)};return t.$inject=["streamsService"],t},n}();n.LiveFeedBanner=t;angular.module("app").directive("liveFeedBanner",t.factory())})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){t.magnificPopup({type:"iframe",mainClass:"mfp-fade",removalDelay:500,iframe:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-title"><\/div><div class="mfp-close"><\/div><iframe class="mfp-iframe" frameborder="0" allowfullscreen><\/iframe><div class="mfp-bottom-bar"><div class="mfp-closing"><\/div><\/div><\/div>',patterns:{youtube:{index:"youtube.com/",id:function(n){var t=n.match(/[\\?\\&]v=([^\\?\\&]+)/);return!t||!t[1]?null:t[1]},src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:function(n){var t=n.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);return!t||!t[5]?null:t[5]},src:"//player.vimeo.com/video/%id%?autoplay=1"}}},callbacks:{markupParse:function(n,t,i){var r=i.el.attr("share-url"),o=i.el.attr("share-href"),u="_self",f=i.el.attr("closing-text"),e;o==="true"&&(r=i.el.attr("href"),u="_blank");r&&(e='<div class="social-bar magnifi-share"><div class="title">Share this:<\/div><a class="sb-facebook" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='+r+'"><i class="fa-brands fa-facebook-f" style="color:white"><\/i><\/a><a class="sb-twitter" target="_blank" href="https://twitter.com/intent/tweet?text=Check%20this%20out:%20'+r+'" data-size="large"><i class="fa-brands fa-x-twitter" style="color: white"><\/i><\/a><a class="sb-linkedin" target="_blank" href="https://www.linkedin.com/cws/share?url='+r+'"><i class="fa-brands fa-linkedin-in" style="color:white"><\/i><\/a><a class="sb-email" target="_top" href="mailto:who?subject=News%20from%20CommunityBanking.org&body='+r+'"><i class="fa fa-envelope"><\/i><\/a><a href="'+r+'" class="full-page-link" title="Go to this video\'s page" target="'+u+'"><i class="fa fa-external-link-square"><\/i><\/a><\/div>',t.title=e);f&&(t.closing='<div class="magnifi-closing">'+f+"<\/div>")}}})}}}n.Magnific=t;angular.module("app").directive("magnific",n.Magnific)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){t.isotope({masonry:{columnWidth:".grid-sizer",gutter:".gutter-sizer"}});setTimeout(function(){t.isotope()},2500)}}}n.MasonryGrid=t;angular.module("app").directive("masonryGrid",n.MasonryGrid)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){var i=t.find(".main-navigation"),r=i.height();i.wrap('<div class="sticky-wrap" />');$(".sticky-wrap").height(r);$(t).waypoint({handler:function(){$(i).toggleClass("stuck")},offset:"-170"});$(t).waypoint({handler:function(){$(i).toggleClass("stuck-animation")},offset:"-220"})}}}n.NavbarSticky=t;angular.module("app").directive("navbarSticky",n.NavbarSticky)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){t.bind("click",function(){$(this).toggleClass("active").parents(".navbar").find(".main-navigation").toggleClass("expanded");$(".main-navigation").find(".expanded").removeClass("expanded");$(".main-navigation").find(".active").removeClass("active")})}}}n.NavToggle=t;angular.module("app").directive("navToggle",n.NavToggle)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n){var t=this;this.$http=n;this.getNews=function(){return t.$http({url:"api/news/get",method:"get",data:null})}}return n}();n.NewsService=t;angular.module("app").service("newsService",["$http",t])}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){$(t).prop("tagName")==="BODY"&&$.stellar({scrollProperty:"scroll",verticalOffset:0,horizontalOffset:0,horizontalScrolling:!1,responsive:!0})}}}n.Parallax=t;angular.module("app").directive("parallax",n.Parallax)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"E",replace:!0,scope:{doc:"=",noDocText:"@"},templateUrl:"./app/site/_shared/researchDoc.html"}}n.ResearchDoc=t;angular.module("app").directive("researchDoc",n.ResearchDoc)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i){this.$log=n;this.$scope=t;this.docSvc=i;this.docsFolder=null;this.selected=null;var r=this;i.getDocumentsFolder().then(function(n){n.data.isOpen=!0;r.docsFolder=n.data;console.log("vm.docsFolder",r.docsFolder)});t.$on("research-doc-click",function(n,t){var o=t.link?'<a href="'+t.link+'" target="_blank" class="btn btn-sm btn-default btn-rounded waves-effect waves-light">Open '+t.type+"<\/a>":'<button class="btn btn-sm btn-default btn-rounded" disabled>'+(t.type?t.type:"")+" Not Available<\/button>",i="",r;if(!t.customByLine&&t.authors&&t.authors.length>0){for(i="by ",r=0;r<t.authors.length;r++){var u=r==0,f=r==t.authors.length-1,e=t.authors[r];u||f||(i+=", ");!u&&f&&(i+=" and ");i+='<a href="'+e.url+'">'+e.name+"<\/a>"}i="<div>"+i+"<\/div>"}$.magnificPopup.open({items:{src:'<div class="white-popup"><div class="mfp-close" style="color:#000;cursor:pointer;right:-5px;top:-10px;">&times;<\/div>\n        <div class="panel" style="margin-bottom:0;">\n            <div class="panel-heading" style="position: relative;">\n                <div style="position: absolute; top: 0; right: 0; border-left: 1px solid #d9d9d9; padding: 0 2px; color: #777; border-bottom: 1px solid #d9d9d9; font-size: 11px;">'+t.type+'<\/div>\n                <h3 class="panel-title">'+t.title+'<\/h3>\n            <\/div>\n            <div class="panel-body">\n                <div>'+o+"<\/div>\n                <div>"+t.customByLine+"<\/div>\n                "+i+"\n                <div>"+t.authorAffiliation+'<\/div>\n                <div style="background-color: #fefefe; margin-top: 10px;">\n                    <strong>'+t.summaryType+"<\/strong>\n                    <span>"+t.summary+"<\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n<\/div>",type:"inline"},mainClass:"mfp-fade",closeBtnInside:!0})})}return n.prototype.$onInit=function(){},n.$inject=["$log","$scope","documentsService"],n}();n.ResearchDocsController=t;angular.module("app").controller("researchDocsController",n.ResearchDocsController)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i){this.$log=n;this.$scope=t;this.$rootScope=i;var r=this}return n.prototype.$onInit=function(){},n.prototype.documentClick=function(n,t){n.preventDefault();this.$rootScope.$broadcast("research-doc-click",t)},n.$inject=["$log","$scope","$rootScope"],n}();n.ResearchDocsFolderController=t;angular.module("app").controller("researchDocsFolderController",n.ResearchDocsFolderController)}(CommBankApp||(CommBankApp={})),function(n){var t;(function(t){function i(){return{restrict:"E",replace:!0,scope:{src:"="},templateUrl:"./app/site/_shared/researchDocsFolder.html",controller:n.ResearchDocsFolderController,controllerAs:"vm"}}t.ResearchDocsFolder=i;angular.module("app").directive("researchDocsFolder",t.ResearchDocsFolder)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"A",replace:!1,link:function(n,t){t.revolution({sliderType:"carousel",sliderLayout:"auto",delay:9e3,navigation:{bullets:{enable:!0,hide_onleave:!1,v_align:"bottom"}},gridwidth:1230,gridheight:500})}}}n.RevolutionSlider=t;angular.module("app").directive("revolutionSlider",n.RevolutionSlider)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t){this.$log=n;this.$scope=t;this.scrollBridges=[];this.isViz=!0;var i=this,r=$(window);i.hasScrollBridge()&&$("[scroll-bridge]").each(function(n,t){var r=$(t),u={name:r.attr("scroll-bridge"),id:r.attr("id")?r.attr("id"):null};i.scrollBridges.push(u)})}return n.prototype.$onInit=function(){},n.prototype.hasScrollBridge=function(){return $(".conference-title").length===0&&$("[scroll-bridge]").length>0},n.prototype.isVisible=function(){return this.isViz},n.prototype.scrollTo=function(n,t){n.preventDefault();var i=$("#"+t).offset().top;this.$log.info("scrolling to id",t,i);$("html").velocity("scroll",{offset:i,duration:1e3,easing:"easeOutExpo",mobileHA:!1})},n.prototype.isAbove=function(n){var t=$("#"+n).offset().top;return t<$(window).scrollTop()},n.prototype.isBelow=function(n){var t=$("#"+n).offset().top;return t>$(window).scrollTop()+$(window).outerHeight()},n.$inject=["$log","$scope"],n}();n.ScrollBridgeController=t;angular.module("app").controller("scrollBridgeController",t)}(CommBankApp||(CommBankApp={})),function(n){var t;(function(t){function i(){return{restrict:"E",replace:!0,controller:n.ScrollBridgeController,controllerAs:"vm",templateUrl:"./app/site/_shared/scrollBridge.html"}}t.ScrollBridge=i;angular.module("app").directive("scrollBridge",t.ScrollBridge)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){t.on("click",function(n){var t=$(this).data("offset-top")||150;$("html").velocity("scroll",{offset:$(this.hash).offset().top-t,duration:1e3,mobileHA:!1});n.preventDefault()})}}}n.ScrollTo=t;angular.module("app").directive("scrollTo",n.ScrollTo)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){$(window).on("scroll",function(){$(window).scrollTop()>600?t.addClass("visible"):t.removeClass("visible")});t.on("click",function(n){n.preventDefault();$("html").velocity("scroll",{offset:0,duration:1e3,easing:"easeOutExpo",mobileHA:!1})})}}}n.ScrollToTopBtn=t;angular.module("app").directive("scrollToTopBtn",n.ScrollToTopBtn)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"A",replace:!1,link:function(n,t){t.on("click",function(){$(this).parent().find(".search-box").addClass("open").focus()});$(".search-btn").on("click",function(n){n.stopPropagation()});$(document).on("click",function(){$(".search-box").removeClass("open")})}}}n.SearchButton=t;angular.module("app").directive("searchButton",n.SearchButton)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i,r,u){this.$log=n;this.$mdSidenav=t;this.loginMgr=i;this.store=r;this.$rootScope=u;this.profile=null;var f=this;f.isLoggedIn()&&(f.profile=r.get("profile"));u.$on("USER-AUTH",function(n,t){f.profile=t})}return n.prototype.$onInit=function(){},n.prototype.isLoggedIn=function(){return this.loginMgr.isAuthenticated()},n.prototype.isAdmin=function(){return this.isLoggedIn()&&this.profile.IsAdmin},n.prototype.closeSidenav=function(){var n=this.$mdSidenav("left");n.isOpen()&&n.close()},n.$inject=["$log","$mdSidenav","loginManager","store","$rootScope"],n}();n.SidenavController=t;angular.module("app").controller("sidenavController",t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n){var t=this;this.$http=n;this.getCurrentOrImminentStreams=function(){return t.$http({url:"api/streams/get",method:"get",data:null})};this.getCurrentOrImminentStreamsWithHash=function(){return t.$http({url:"api/streams/get2",method:"get",data:null})}}return n}();n.StreamsService=t;angular.module("app").service("streamsService",["$http",t])}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"C",replace:!1,link:function(n,t){t.find("li").waypoint(function(){$(this.element).addClass("in-view")},{offset:"75%"})}}}n.Timeline=t;angular.module("app").directive("timeline",n.Timeline)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i,r,u,f){this.$log=n;this.$rootScope=t;this.$mdSidenav=i;this.store=r;this.loginMgr=u;this.$state=f;this.profile=null;var e=this;e.isLoggedIn()&&(e.profile=r.get("profile"));t.$on("USER-AUTH",function(n,t){e.profile=t})}return n.prototype.$onInit=function(){},n.prototype.isLoggedIn=function(){return this.loginMgr.isAuthenticated()},n.prototype.isAuthenticated=function(){var n=this.$rootScope.isAuthenticated===!0;return n&&this.profile==null&&(this.profile=this.store.get("profile")),n},n.prototype.isLoggingIn=function(){return this.$rootScope.isLoggingIn===!0},n.prototype.toggleSideNav=function(){this.$mdSidenav("left").toggle()},n.prototype.getProfile=function(){return this.store.get("profile")},n.prototype.logout=function(){this.loginMgr.logout()},n.$inject=["$log","$rootScope","$mdSidenav","store","loginManager","$state"],n}();n.ToolbarController=t;angular.module("app").controller("toolbarController",t)}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n,t,i){this.$log=n;this.$scope=t;this.docSvc=i;this.vidsFolder=null;this.selected=null;var r=this;i.getVideosFolder().then(function(n){n.data.isOpen=!0;r.vidsFolder=n.data;console.log("vm.vidsFolder",r.vidsFolder)});t.$on("video-click",function(n,t){r.selected=t})}return n.prototype.$onInit=function(){},n.$inject=["$log","$scope","documentsService"],n}();n.VideoArchiveController=t;angular.module("app").controller("videoArchiveController",n.VideoArchiveController)}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){function t(){return{restrict:"E",replace:!0,scope:{src:"=",prefix:"@"},templateUrl:"./app/site/_shared/videoFolder.html"}}n.VideoFolder=t;angular.module("app").directive("videoFolder",n.VideoFolder)})(t=n.Directives||(n.Directives={}))}(CommBankApp||(CommBankApp={})),function(n){var t=function(){function n(n){var t=this;this.$http=n;this.getVideosFolder=function(){return t.$http({url:"api/videos/get",method:"get",data:null})}}return n}();n.VideosService=t;angular.module("app").service("videosService",["$http",t])}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.name=null;this.url=null}return n}();n.AuthorJsonModel=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var i=function(){function n(){this.attachments=[];this.author_affiliation="";this.authors=[];this.custom_byline="";this.key="";this.link="";this.publication_date="";this.summary="";this.summary_type="";this.title=null;this.type="";this.videos=[]}return n}(),t;n.Document=i;t=function(){function n(){this.documents=[];this.folders=[];this.isOpen=!1}return n}();n.DocumentsFolder=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.authorAffiliation=null;this.authors=[];this.customByLine=null;this.key=null;this.link=null;this.publicationDate=null;this.summary=null;this.summaryType=null;this.title=null;this.type=null}return n}();n.DocumentJsonModel=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.streams=[];this.hash=null}return n}();n.LiveStreamCollectionJsonModel=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.title=null;this.startTicks=0;this.endTicks=0;this.videoId=null;this.videoType=null;this.hasPreview=!1;this.previewText=null;this.previewStarts=0;this.isError=!1;this.error=null}return n}();n.LiveStreamJsonModel=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.shortSummary=null;this.tags=null;this.title=null;this.mainContent=null;this.browserTitle=null;this.keywords=null;this.description=null;this.datePosted=null;this.isFeatured=!1}return n}();n.News=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.key=null;this.videoId=null;this.videoType=null;this.videoStillUrl=null;this.videoStillAlt=null;this.title=null;this.summary=null;this.content=null}return n}();n.VideoJsonModel=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={})),function(n){var t;(function(n){var t=function(){function n(){this.videos=[];this.folders=[];this.isOpen=!1}return n}();n.VideosFolder=t})(t=n.Models||(n.Models={}))}(CommBankApp||(CommBankApp={}))