angular.module("naut",["ngRoute","ngAnimate","ngStorage","ngCookies","ngSanitize","ngResource","ui.bootstrap","ui.router","ui.utils","oc.lazyLoad",]),function(){"use strict";angular.module("naut").constant("COLORS",{primary:"#3F51B5",success:"#4caf50",info:"#2095f2",warning:"#fe9700",danger:"#f34235",inverse:"#363f45",amber:"#FFC107",pink:"#e91e63",purple:"#6639b6",orange:"#fe5621",noir:"#212121",white:"#fff","gray-darker":"#2b3d51","gray-dark":"#515d6e",gray:"#A0AAB2","gray-light":"#e6e9ee","gray-lighter":"#f4f5f5"})}(),function(){"use strict";function n(n,t){n.colorByName=t.byName}angular.module("naut").run(n);n.$inject=["$rootScope","colors"]}(),function(){"use strict";function n(n){return{byName:function(t){return n[t]||"#fff"}}}angular.module("naut").factory("colors",n);n.$inject=["COLORS"]}(),function(){"use strict";function n(n){return{restrict:"A",link:function(t,i,r){t.$watch(function(){return t.$eval(r.animateEnabled,t)},function(t){n.enabled(!!t,i)})}}}angular.module("naut").directive("animateEnabled",n);n.$inject=["$animate"]}(),function(){"use strict";function n(){function n(n,t,i){if(!t.parents("[chained-animation]").length){var r=2e3,u=t.find("[chained-animation]").add(t);u.each(function(){var t=angular.element(this),u=t.offset(),f=u.left*.8+u.top,n=parseFloat(f/r).toFixed(2);t.css("-webkit-animation-delay",n+"s").css("-o-animation-delay",n+"s").css("animation-delay",n+"s").addClass("animated").addClass(i.chainedAnimation)})}}return{restrict:"A",link:n}}angular.module("naut").directive("chainedAnimation",n)}(),function(){"use strict";function n(){function n(n,i){i.on("change",function(){var n=angular.element(this),i=t(this),r=n.find("input"),u=n.parent().parent().parent();angular.forEach(u.find("tbody").find("tr"),function(n){var u=angular.element(n).find("td"),t=u.eq(i).find("input");t&&t.length&&(t[0].checked=r[0].checked)})})}function t(n){for(var i=n.parentNode.childNodes,r=0,t=0;t<i.length;t++){if(i[t]==n)return r;i[t].nodeType==1&&r++}return-1}return n.$inject=["$scope","$element"],{restrict:"A",controller:n}}angular.module("naut").directive("checkAll",n)}(),function(){"use strict";function n(){function n(n,t){if(screenfull.enabled)t.on("click",function(n){n.preventDefault();screenfull.toggle();var t=angular.element(this).find("em");screenfull.isFullscreen?t.removeClass("fa-expand").addClass("fa-compress"):t.removeClass("fa-compress").addClass("fa-expand")});else t.remove()}return{restrict:"A",link:n}}angular.module("naut").directive("toggleFullscreen",n)}(),function(){"use strict";function n(n,t){function i(i,r,u){var f=u.resetKey;r.on("click",function(i){i.preventDefault();f?(delete t.$storage[f],n.go(n.current,{},{reload:!0})):$.error("No storage key specified for reset.")})}return{restrict:"EA",link:i}}angular.module("naut").directive("resetKey",n);n.$inject=["$state","$rootScope"]}(),function(){"use strict";function n(){function n(n){return n=n===undefined||n===null?"":n,n.toString().toLowerCase().replace(/\b([a-z])/g,function(n){return n.toUpperCase()})}return n}angular.module("naut").filter("titlecase",n)}(),function(){"use strict";function n(){var t,n=this,f=function(n){n=n.toLowerCase();var t=/(opr)[\/]([\w.]+)/.exec(n)||/(chrome)[ \/]([\w.]+)/.exec(n)||/(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[],i=/(ipad)/.exec(n)||/(iphone)/.exec(n)||/(android)/.exec(n)||/(windows phone)/.exec(n)||/(win)/.exec(n)||/(mac)/.exec(n)||/(linux)/.exec(n)||/(cros)/i.exec(n)||[];return{browser:t[3]||t[1]||"",version:t[2]||"0",platform:i[0]||""}},i,r,u;return t=f(window.navigator.userAgent),t.browser&&(n[t.browser]=!0,n.version=t.version,n.versionNumber=parseInt(t.version)),t.platform&&(n[t.platform]=!0),(n.android||n.ipad||n.iphone||n["windows phone"])&&(n.mobile=!0),(n.cros||n.mac||n.linux||n.win)&&(n.desktop=!0),(n.chrome||n.opr||n.safari)&&(n.webkit=!0),n.rv&&(i="msie",t.browser=i,n[i]=!0),n.opr&&(r="opera",t.browser=r,n[r]=!0),n.safari&&n.android&&(u="android",t.browser=u,n[u]=!0),n.name=t.browser,n.platform=t.platform,n}angular.module("naut").service("browser",n)}(),function(){"use strict";function n(n,t){var i=this,r=n[0];return i.transition=function(){function n(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}return n()}(),i.animation=function(){var n=function(){var i=r.body||r.documentElement,t={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"},n;for(n in t)if(i.style[n]!==undefined)return t[n]}();return n&&{end:n}}(),i.touch="ontouchstart"in window&&navigator.userAgent.toLowerCase().match(/mobile|tablet/)||t.DocumentTouch&&document instanceof t.DocumentTouch||t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints>0||t.navigator.pointerEnabled&&t.navigator.maxTouchPoints>0||!1,i}angular.module("naut").service("support",n);n.$inject=["$document","$window"]}(),function(){"use strict";function n(n,t){var i=this;i.touchHandler=function(n){var t=n.changedTouches[0],i=document.createEvent("MouseEvent");i.initMouseEvent({touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"}[n.type],!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null);t.target.dispatchEvent(i);n.preventDefault()};i.addTo=function(i){i=i||n;t.mobile&&(i.addEventListener("touchstart",this.touchHandler,!0),i.addEventListener("touchmove",this.touchHandler,!0),i.addEventListener("touchend",this.touchHandler,!0),i.addEventListener("touchcancel",this.touchHandler,!0))}}angular.module("naut").service("touchDrag",n);n.$inject=["$document","browser"]}(),function(){"use strict";function n(n,t,i,r){var u=angular.module("naut");u.controller=n.register;u.directive=t.directive;u.filter=i.register;u.factory=r.factory;u.service=r.service;u.constant=r.constant;u.value=r.value}function t(n,t){n.config({debug:!1,events:!0,modules:t.modules})}angular.module("naut").config(n).config(t);n.$inject=["$controllerProvider","$compileProvider","$filterProvider","$provide"];t.$inject=["$ocLazyLoadProvider","VENDOR_ASSETS"]}(),function(){"use strict";angular.module("naut").constant("MEDIA_QUERY",{desktopLG:1200,desktop:992,tablet:768,mobile:480})}(),function(){"use strict";function n(n){n.cancel=function(n){n.preventDefault();n.stopPropagation()}}angular.module("naut").controller("CoreController",n);n.$inject=["$rootScope"]}(),function(){"use strict";function n(n,t,i,r,u,f){n.$state=t;n.$stateParams=i;n.$storage=r;u.init();var e=document.querySelector("html");e.className+=" "+f.platform}angular.module("naut").run(n);n.$inject=["$rootScope","$state","$stateParams","$localStorage","settings","browser"]}(),function(){"use strict";function n(){function n(n,t){var i=t.data();i.classInput=t.data("classinput")||i.classInput;t.filestyle(i)}return n.$inject=["$scope","$element"],{restrict:"A",controller:n}}angular.module("naut").directive("filestyle",n)}(),function(){"use strict";function n(){function i(i,r,u){function h(n){var t=angular.element(n).find("svg");t.css({width:o,height:s});t.find(".climacon_component-stroke").css("fill",e);r.append(t)}function c(){r.text("Error loading SVG: "+f)}var e=u.color||"#000",f=u.name||"sun",o=u.width||20,s=u.height||20;$.get(n+f+t).then(h,c)}var n="vendor/animated-climacons/svgs/",t=".svg";return{restrict:"EA",link:i}}angular.module("naut").directive("climacon",n)}(),function(){"use strict";function n(n){return{restrict:"A",link:function(t,i,r){var f=document.querySelector(r.target),u=angular.element(f);if(!u.length){console.log("LayerMorph: Wrong target "+r.target);return}i.on("click",function(){n.open(i,u)})}}}function t(n,t){return{restrict:"C",link:function(){t.ready(function(){n.init()})}}}function i(n){return{restrict:"A",link:function(t,i){i.on("click",function(){n.close()})}}}angular.module("naut").directive("btnLayerMorph",n).directive("layerMorphOverlay",t).directive("layerMorphClose",i);n.$inject=["LayerMorph"];t.$inject=["LayerMorph","$document"];i.$inject=["LayerMorph"]}(),function(){"use strict";function n(n,t){function f(){i.container=angular.element(document.querySelector(".layer-morph-container"));i.inner=angular.element(document.querySelector(".layer-morph-inner"));i.attachResize()}function e(n){function r(){i.container.addClass("active");i.inner.off(t.transition.end);n&&n()}if(t.transition.end)i.inner.on(t.transition.end,r);else r()}function o(n,t){i.currentElement=n;i.currentElement.addClass("active");i.isActive()||(i.placeLayer(),i.ready(function(){t.addClass("active");i.isReady(!0)}),i.isActive(!0))}function s(){angular.element(document.querySelector(".layer-morph.active")).removeClass("active");i.container.removeClass("active");i.currentElement.removeClass("active");i.isReady(!1);i.isActive(!1)}function h(n){r[typeof n=="undefined"?"hasClass":n?"addClass":"removeClass"]("layer-morph-active");r[0].offsetWidth}function c(n){r[typeof n=="undefined"?"hasClass":n?"addClass":"removeClass"]("layer-morph-ready");r[0].offsetWidth}function l(){var r=i.currentElement;if(r){var t=p(r[0]),f=Math.max(document.documentElement.clientHeight,window.innerHeight||0),e=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u=Math.sqrt(Math.pow(f,2)+Math.pow(e,2))*2;i.inner.css("height",u+"px").css("width",u+"px");t.top=t.top+v(r[0])/2-n.pageYOffset;t.left=t.left+y(r[0])/2;i.inner.css("top",t.top-i.inner[0].offsetHeight/2+"px").css("left",t.left-i.inner[0].offsetWidth/2+"px")}}function a(){u.on("resize",function(){i.placeLayer()})}function v(n){var t=getComputedStyle(n);return n.offsetHeight+parseInt(t.paddingTop)+parseInt(t.paddingBottom)}function y(n){var t=getComputedStyle(n);return n.offsetWidth+parseInt(t.paddingLeft)+parseInt(t.paddingRight)}function p(n){var t=n.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}}var u=angular.element(n),r=angular.element(document.querySelector("body")),i=this;i.init=f;i.ready=e;i.open=o;i.close=s;i.isActive=h;i.isReady=c;i.placeLayer=l;i.attachResize=a}angular.module("naut").service("LayerMorph",n);n.$inject=["$window","support"]}(),function(){"use strict";function n(n){var t=this;t.headerMenuCollapsed=!0;t.toggleHeaderMenu=function(){t.headerMenuCollapsed=!t.headerMenuCollapsed};n.$on("$stateChangeStart",function(){t.headerMenuCollapsed=!0})}angular.module("naut").controller("HeaderNavController",n);n.$inject=["$rootScope"]}(),function(){"use strict";function n(n,t,i,r){function u(){function u(){return t.innerWidth<r.tablet}u()?i(function(){n.app.sidebar.isOffscreen=!0}):i(function(){n.app.sidebar.isOffscreen=!n.canDisplayTopBarElements()});n.$on("$stateChangeStart",function(t,i){n.app.sidebar.isOffscreen=u()||i.name==="app.home"||i.name==="app.about"?!0:!1});t.addEventListener("resize",function(){i(function(){n.app.sidebar.isOffscreen=u()?!0:!n.canDisplayTopBarElements()})})}return{restrict:"A",link:u}}function t(n){function t(t,i){n(function(){i.bind("click",function(n){var t=angular.element(this),r=t.parent()[0],u=t.parent().parent().children(),i;angular.forEach(u,function(n){n!==r&&(n.children.length>2&&n.children[2]&&n.children[2].localName==="ul"&&n.children[2].children&&angular.forEach(angular.element(n.children[2].children),function(n){angular.element(n).removeClass("active")}),angular.element(n).removeClass("active"))});i=t.next();i.length&&i[0].tagName==="UL"&&(t.parent().toggleClass("active"),t[0].attributes.abstract!==null&&t[0].attributes.abstract.value=="true"&&n.preventDefault())});t.$on("$destroy",function(){$(i).unbind("click")})},0)}return{restrict:"A",link:t}}angular.module("naut").directive("uiSidebar",n).directive("uiSidebarMenuItem",t);n.$inject=["$rootScope","$window","$timeout","MEDIA_QUERY"];t.$inject=["$timeout"]}(),function(){"use strict";function n(n){function t(t,r){var f,e,u,o;r.append('<span class="ripple"><\/span>');r.on("click touchstart",function(t){var c=t.type,s=this.querySelector(".ripple"),r=s.querySelector(".angular-ripple"),h;r===null&&(r=document.createElement("span"),r.className="angular-ripple",s.insertBefore(r,s.firstChild),r.offsetHeight||r.offsetWidth||(u=Math.max(s.offsetWidth,s.offsetHeight),r.style.width=u+"px",r.style.height=u+"px"));h=angular.element(r);h.removeClass("animate");c==="click"?(f=t.pageX,e=t.pageY):c==="touchstart"&&(f=t.changedTouches[0].pageX,e=t.changedTouches[0].pageY);o=i(h.parent()[0]);r.style.left=f-o.left-u/2+"px";r.style.top=e-o.top-u/2+"px";h.addClass("animate");n(function(){h.removeClass("animate")},500)})}function i(n){var t=n.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}}return{restrict:"A",link:t}}angular.module("naut").directive("ripple",n);n.$inject=["$timeout"]}(),function(){"use strict";function n(n){this.base=function(n){return"/app/crosscut/views/"+n};this.require=function(){var t=arguments;return["$ocLazyLoad","$q",function(i,r){function o(n){return typeof n=="function"?u.then(n):u.then(function(){var t=s(n);return t?i.load(t):$.error("Route resolve: Bad resource name ["+n+"]")})}function s(t){if(n.modules)for(var i in n.modules)if(n.modules[i].name&&n.modules[i].name===t)return n.modules[i];return n.scripts&&n.scripts[t]}for(var u=r.when(1),f=0,e=t.length;f<e;f++)u=o(t[f]);return u}]};this.$get=function(){}}angular.module("naut").provider("Route",n);n.$inject=["VENDOR_ASSETS"]}(),function(){"use strict";function n(n,t){n.$on("$stateNotFound",function(n,t){console.log(t.to);console.log(t.toParams);console.log(t.options)});n.$on("$stateChangeSuccess",function(){t.scrollTo(0,0)})}angular.module("naut").run(n);n.$inject=["$rootScope","$window"]}(),function(){"use strict";angular.module("naut").constant("VENDOR_ASSETS",{scripts:{animate:["vendor/animate.css/animate.min.css"],icons:["../font-awesome/css/font-awesome.min.css","vendor/weather-icons/css/weather-icons.min.css","vendor/feather/webfont/feather-webfont/feather.css"]},modules:[{name:"toaster",files:["vendor/angularjs-toaster/toaster.js","vendor/angularjs-toaster/toaster.css"]}]})}(),function(){"use strict";function n(n){var t=this;n.loadAndWatch();t.themes=n.availableThemes();t.setTheme=n.setTheme}angular.module("naut").controller("SettingsController",n);n.$inject=["settings"]}(),function(){"use strict";function n(n,t){function r(){n.app={name:"Naut",description:"Bootstrap + AngularJS",year:(new Date).getFullYear(),type:"",views:{animation:"ng-fadeIn"},layout:{isFixed:!1},sidebar:{isOffscreen:!0,isMini:!1},footer:{hidden:!1},themeId:0,theme:{name:"primary",sidebar:"bg-white",sidebarHeader:"bg-primary bg-light",brand:"bg-primary",topbar:"bg-primary"}}}function u(){angular.isDefined(t.settings)?n.app=t.settings:t.settings=n.app;n.$watch("app.layout",function(){t.settings=n.app},!0)}function f(){return i.themes}function e(t){n.app.theme=this.themes[t]}var i=this;i.init=r;i.loadAndWatch=u;i.availableThemes=f;i.setTheme=e;i.themes=[{name:"primary",sidebar:"bg-white",sidebarHeader:"bg-primary bg-light",brand:"bg-primary",topbar:"bg-primary"},{name:"purple",sidebar:"bg-white",sidebarHeader:"bg-purple bg-light",brand:"bg-purple",topbar:"bg-purple"},{name:"success",sidebar:"bg-white",sidebarHeader:"bg-success bg-light",brand:"bg-success",topbar:"bg-success"},{name:"warning",sidebar:"bg-white",sidebarHeader:"bg-warning bg-light",brand:"bg-warning",topbar:"bg-warning"},{name:"info",sidebar:"bg-white",sidebarHeader:"bg-info bg-light",brand:"bg-info",topbar:"bg-info"},{name:"danger",sidebar:"bg-white",sidebarHeader:"bg-danger bg-light",brand:"bg-danger",topbar:"bg-danger"},{name:"pink",sidebar:"bg-white",sidebarHeader:"bg-pink bg-light",brand:"bg-pink",topbar:"bg-pink"},{name:"amber",sidebar:"bg-white",sidebarHeader:"bg-amber bg-light",brand:"bg-amber",topbar:"bg-amber"},]}angular.module("naut").service("settings",n);n.$inject=["$rootScope","$localStorage"]}(),function(){"use strict";function n(n,t){return{restrict:"A",link:function(n,i,r){var u={},f=function(){t(function(){angular.isDefined(r.slimscroll)?u=n.$eval(r.slimscroll)||{}:r.slimscrollOption&&(u=n.$eval(r.slimscrollOption)||{});$(i).slimScroll(u)})},e=function(){$(i).slimScroll({destroy:!0})};f();n.$on("$destroy",e)}}}angular.module("naut").directive("slimscroll",n);n.$inject=["$window","$timeout"]}()