UNPKG

lumen-foundation-apps

Version:
2 lines 50.4 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.RFA=e(require("react")):t.RFA=e(t.React)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports={Accordion:n(1),ActionSheet:n(16),Iconic:n(22),Interchange:n(24),Modal:n(30),Notification:n(35),OffCanvas:n(39),Panel:n(40),Popup:n(41),Tabs:n(43),Trigger:n(45)}},function(t,e,n){"use strict";var i=n(2),o=n(3),s=i.createClass({displayName:"Accordion",getInitialState:function(){return{sections:[]}},getDefaultProps:function(){return{autoOpen:!0,multiOpen:!1,collapsible:!1}},componentWillMount:function(){var t=[];i.Children.forEach(this.props.children,function(e,n){t.push({active:!1})}),this.props.autoOpen&&(t[0].active=!0),this.setState({sections:t})},select:function(t){var e=this.state.sections;e.forEach(function(e,n){this.props.multiOpen?n===t&&(e.active=!e.active):n===t?e.active=this.props.collapsible===!0?!e.active:!0:e.active=!1}.bind(this)),this.setState({sections:e})},render:function(){var t=i.Children.map(this.props.children,function(t,e){return o(t,{active:this.state.sections[e]?this.state.sections[e].active:!1,activate:this.select.bind(this,e)})}.bind(this));return i.createElement("div",{className:"accordion"},t)}});t.exports=s,s.Item=n(14)},function(e,n){e.exports=t},function(t,e,n){"use strict";function i(t,e){a(!t.ref,"You are calling cloneWithProps() on a child with a ref. This is dangerous because you're creating a new child which will not be added as a ref to its parent.");var n=s.mergeProps(e,t.props);return!n.hasOwnProperty(l)&&t.props.hasOwnProperty(l)&&(n.children=t.props.children),o.createElement(t.type,n)}var o=n(4),s=n(11),r=n(13),a=n(8),l=r({children:null});t.exports=i},function(t,e,n){"use strict";function i(t,e){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:function(){return this._store?this._store[e]:null},set:function(t){l(!1,"Don't set the %s property of the React element. Instead, specify the correct value when initially creating the element.",e),this._store[e]=t}})}function o(t){try{var e={props:!0};for(var n in e)i(t,n);h=!0}catch(o){}}var s=n(5),r=n(10),a=n(6),l=n(8),c={key:!0,ref:!0},h=!1,u=function(t,e,n,i,o,s){this.type=t,this.key=e,this.ref=n,this._owner=i,this._context=o,this._store={props:s,originalProps:a({},s)};try{Object.defineProperty(this._store,"validated",{configurable:!1,enumerable:!1,writable:!0})}catch(r){}return this._store.validated=!1,h?void Object.freeze(this):void(this.props=s)};u.prototype={_isReactElement:!0},o(u.prototype),u.createElement=function(t,e,n){var i,o={},a=null,l=null;if(null!=e){l=void 0===e.ref?null:e.ref,a=void 0===e.key?null:""+e.key;for(i in e)e.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&(o[i]=e[i])}var h=arguments.length-2;if(1===h)o.children=n;else if(h>1){for(var p=Array(h),f=0;h>f;f++)p[f]=arguments[f+2];o.children=p}if(t&&t.defaultProps){var d=t.defaultProps;for(i in d)"undefined"==typeof o[i]&&(o[i]=d[i])}return new u(t,a,l,r.current,s.current,o)},u.createFactory=function(t){var e=u.createElement.bind(null,t);return e.type=t,e},u.cloneAndReplaceProps=function(t,e){var n=new u(t.type,t.key,t.ref,t._owner,t._context,e);return n._store.validated=t._store.validated,n},u.cloneElement=function(t,e,n){var i,o=a({},t.props),s=t.key,l=t.ref,h=t._owner;if(null!=e){void 0!==e.ref&&(l=e.ref,h=r.current),void 0!==e.key&&(s=""+e.key);for(i in e)e.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&(o[i]=e[i])}var p=arguments.length-2;if(1===p)o.children=n;else if(p>1){for(var f=Array(p),d=0;p>d;d++)f[d]=arguments[d+2];o.children=f}return new u(t.type,s,l,h,t._context,o)},u.isValidElement=function(t){var e=!(!t||!t._isReactElement);return e},t.exports=u},function(t,e,n){"use strict";var i=n(6),o=n(7),s=n(8),r=!1,a={current:o,withContext:function(t,e){s(r,"withContext is deprecated and will be removed in a future version. Use a wrapper component with getChildContext instead."),r=!0;var n,o=a.current;a.current=i({},o,t);try{n=e()}finally{a.current=o}return n}};t.exports=a},function(t,e){"use strict";function n(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(t),i=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var s=arguments[o];if(null!=s){var r=Object(s);for(var a in r)i.call(r,a)&&(n[a]=r[a])}}return n}t.exports=n},function(t,e,n){"use strict";var i={};Object.freeze(i),t.exports=i},function(t,e,n){"use strict";var i=n(9),o=i;o=function(t,e){for(var n=[],i=2,o=arguments.length;o>i;i++)n.push(arguments[i]);if(void 0===e)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(e.length<10||/^[s\W]*$/.test(e))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+e);if(0!==e.indexOf("Failed Composite propType: ")&&!t){var s=0,r="Warning: "+e.replace(/%s/g,function(){return n[s++]});console.warn(r);try{throw new Error(r)}catch(a){}}},t.exports=o},function(t,e){function n(t){return function(){return t}}function i(){}i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){"use strict";function i(t){return function(e,n,i){e.hasOwnProperty(n)?e[n]=t(e[n],i):e[n]=i}}function o(t,e){for(var n in e)if(e.hasOwnProperty(n)){var i=c[n];i&&c.hasOwnProperty(n)?i(t,n,e[n]):t.hasOwnProperty(n)||(t[n]=e[n])}return t}var s=n(6),r=n(9),a=n(12),l=i(function(t,e){return s({},e,t)}),c={children:r,className:i(a),style:l},h={mergeProps:function(t,e){return o(s({},t),e)}};t.exports=h},function(t,e){"use strict";function n(t){t||(t="");var e,n=arguments.length;if(n>1)for(var i=1;n>i;i++)e=arguments[i],e&&(t=(t?t+" ":"")+e);return t}t.exports=n},function(t,e){var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},function(t,e,n){"use strict";var i=n(2),o=n(15),s=i.createClass({displayName:"AccordionItem",render:function(){var t={"accordion-item":!0,"is-active":this.props.active};return i.createElement("div",{className:o(t)},i.createElement("div",{className:"accordion-title",onClick:this.props.activate},this.props.title),i.createElement("div",{className:"accordion-content"},this.props.children))}});t.exports=s},function(t,e,n){"use strict";function i(t){return o(s,"React.addons.classSet will be deprecated in a future version. See http://fb.me/react-addons-classset"),s=!0,"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).join(" "):Array.prototype.join.call(arguments," ")}var o=n(8),s=!1;t.exports=i},function(t,e,n){"use strict";var i=n(2),o=n(3),s=n(17),r=i.createClass({displayName:"ActionSheet",getInitialState:function(){return{active:!1}},setActiveState:function(t){this.setState({active:t})},onBodyClick:function(t){var e=t.target,n=!1;do if(e.classList&&e.classList.contains("action-sheet-container")){n=!0;break}while(e=e.parentNode);n||this.setActiveState(!1)},componentDidMount:function(){this.props.id&&s.subscribe(this.props.id,function(t,e){"open"===e?this.setState({active:!0}):"close"===e?this.setState({active:!1}):"toggle"===e&&this.setState({active:!this.state.active})}.bind(this)),document.body.addEventListener("click",this.onBodyClick)},componentWillUnmount:function(){this.props.id&&s.unsubscribe(this.props.id),document.body.removeEventListener("click",this.onBodyClick)},render:function(){var t=i.Children.map(this.props.children,function(t,e){var n={active:this.state.active};return"ActionSheetButton"===t.type.displayName&&(n.setActiveState=this.setActiveState),o(t,n)}.bind(this));return i.createElement("div",{id:this.props.id,"data-closable":!0,className:"action-sheet-container"},t)}});t.exports=r,r.Button=n(20),r.Content=n(21)},function(t,e,n){"use strict";var i=n(18),o=(n(19),{}),s=[],r={subscribe:i.subscribe,publish:i.publish,unsubscribe:i.unsubscribe,closeActiveElements:function(t){var e=this;t=t||{};var n=document.querySelectorAll(".is-active[data-closable]");Array.prototype.forEach.call(n,function(n){t.exclude!==n.id&&e.publish(n.id,"close")})},getSettings:function(){return o},modifySettings:function(t){return o=angular.extend(o,t)},generateUuid:function(){var t="";do{t+="zf-uuid-";for(var e=0;15>e;e++)t+=Math.floor(16*Math.random()).toString(16)}while(!s.indexOf(t));return s.push(t),t}};t.exports=r},function(t,e,n){var i,o,s;!function(n,r){"use strict";o=[e],i=r,s="function"==typeof i?i.apply(e,o):i,!(void 0!==s&&(t.exports=s))}("object"==typeof window&&window||this,function(t){"use strict";function e(t){var e;for(e in t)if(t.hasOwnProperty(e))return!0;return!1}function n(t){return function(){throw t}}function i(t,e,i){try{t(e,i)}catch(o){setTimeout(n(o),0)}}function o(t,e,n){t(e,n)}function s(t,e,n,s){var r,a=c[e],l=s?o:i;if(c.hasOwnProperty(e))for(r in a)a.hasOwnProperty(r)&&l(a[r],t,n)}function r(t,e,n){return function(){var i=String(t),o=i.lastIndexOf(".");for(s(t,t,e,n);-1!==o;)i=i.substr(0,o),o=i.lastIndexOf("."),s(t,i,e,n)}}function a(t){for(var n=String(t),i=Boolean(c.hasOwnProperty(n)&&e(c[n])),o=n.lastIndexOf(".");!i&&-1!==o;)n=n.substr(0,o),o=n.lastIndexOf("."),i=Boolean(c.hasOwnProperty(n)&&e(c[n]));return i}function l(t,e,n,i){var o=r(t,e,i),s=a(t);return s?(n===!0?o():setTimeout(o,0),!0):!1}var c={},h=-1;t.publish=function(e,n){return l(e,n,!1,t.immediateExceptions)},t.publishSync=function(e,n){return l(e,n,!0,t.immediateExceptions)},t.subscribe=function(t,e){if("function"!=typeof e)return!1;c.hasOwnProperty(t)||(c[t]={});var n="uid_"+String(++h);return c[t][n]=e,n},t.clearAllSubscriptions=function(){c={}},t.clearSubscriptions=function(t){var e;for(e in c)c.hasOwnProperty(e)&&0===e.indexOf(t)&&delete c[e]},t.unsubscribe=function(t){var e,n,i,o="string"==typeof t&&c.hasOwnProperty(t),s=!o&&"string"==typeof t,r="function"==typeof t,a=!1;if(o)return void delete c[t];for(e in c)if(c.hasOwnProperty(e)){if(n=c[e],s&&n[t]){delete n[t],a=t;break}if(r)for(i in n)n.hasOwnProperty(i)&&n[i]===t&&(delete n[i],a=!0)}return a}})},function(t,e){"use strict";function n(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=Object.assign||function(t,e){for(var i,o,s=n(t),r=1;r<arguments.length;r++){i=arguments[r],o=Object.keys(Object(i));for(var a=0;a<o.length;a++)s[o[a]]=i[o[a]]}return s}},function(t,e,n){"use strict";var i=n(2),o=i.createClass({displayName:"ActionSheetButton",toggle:function(){this.props.setActiveState(!this.props.active)},render:function(){var t=null;return this.props.title.length>0&&(t=i.createElement("a",{className:"button"},this.props.title)),i.createElement("div",{onClick:this.toggle},t,i.createElement("div",null,this.props.children))}});t.exports=o},function(t,e,n){"use strict";var i=n(2),o=n(15),s=i.createClass({displayName:"ActionSheetContent",getDefaultProps:function(){return{position:"bottom"}},render:function(){var t={"action-sheet":!0,"is-active":this.props.active};return i.createElement("div",{className:o(t)},this.props.children)}});t.exports=s},function(t,e,n){"use strict";var i=n(2),o=n(23),s=o.canUseDOM&&n(!function(){var t=new Error('Cannot find module "../vendor/iconic.min"');throw t.code="MODULE_NOT_FOUND",t}()),r=(n(3),i.createClass({displayName:"Iconic",inject:function(){var t=s();t.inject(this.getDOMNode())},componentDidMount:function(){this.inject()},componentDidUpdate:function(){this.inject()},render:function(){return i.Children.only(this.props.children)}}));t.exports=r},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=i},function(t,e,n){"use strict";var i=n(2),o=n(25),s=i.createClass({displayName:"Interchange",mixins:[o],getInitialState:function(){return{matchedMedia:"large"}},componentDidMount:function(){this.media({minWidth:0,maxWidth:640},function(){this.setState({matchedMedia:"small"})}.bind(this)),this.media({minWidth:641,maxWidth:1200},function(){this.setState({matchedMedia:"medium"})}.bind(this)),this.media({minWidth:1200,maxWidth:1440},function(){this.setState({matchedMedia:"large"})}.bind(this))},render:function(){var t=null;return i.Children.forEach(this.props.children,function(e){e.props.media===this.state.matchedMedia&&(t=e)}.bind(this)),t}});t.exports=s},function(t,e,n){var i=n(26),o=i&&n(27),s=n(28),r={media:function(t,e){t=s(t),"function"==typeof e&&(e={match:e}),o.register(t,e),this._responsiveMediaHandlers||(this._responsiveMediaHandlers=[]),this._responsiveMediaHandlers.push({query:t,handler:e})},componentWillUnmount:function(){this._responsiveMediaHandlers&&this._responsiveMediaHandlers.forEach(function(t){o.unregister(t.query,t.handler)})}};t.exports=r},function(t,e){var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=n},function(t,e,n){var i;!function(o,s,r){var a=window.matchMedia;"undefined"!=typeof t&&t.exports?t.exports=r(a):(i=function(){return s[o]=r(a)}.call(e,n,e,t),!(void 0!==i&&(t.exports=i)))}("enquire",this,function(t){"use strict";function e(t,e){var n,i=0,o=t.length;for(i;o>i&&(n=e(t[i],i),n!==!1);i++);}function n(t){return"[object Array]"===Object.prototype.toString.apply(t)}function i(t){return"function"==typeof t}function o(t){this.options=t,!t.deferSetup&&this.setup()}function s(e,n){this.query=e,this.isUnconditional=n,this.handlers=[],this.mql=t(e);var i=this;this.listener=function(t){i.mql=t,i.assess()},this.mql.addListener(this.listener)}function r(){if(!t)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!t("only all").matches}return o.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},s.prototype={addHandler:function(t){var e=new o(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var n=this.handlers;e(n,function(e,i){return e.equals(t)?(e.destroy(),!n.splice(i,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){e(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";e(this.handlers,function(e){e[t]()})}},r.prototype={register:function(t,o,r){var a=this.queries,l=r&&this.browserIsIncapable;return a[t]||(a[t]=new s(t,l)),i(o)&&(o={match:o}),n(o)||(o=[o]),e(o,function(e){a[t].addHandler(e)}),this},unregister:function(t,e){var n=this.queries[t];return n&&(e?n.removeHandler(e):(n.clear(),delete this.queries[t])),this}},new r})},function(t,e,n){var i=n(29),o=function(t){var e=/[height|width]$/;return e.test(t)},s=function(t){var e="",n=Object.keys(t);return n.forEach(function(s,r){var a=t[s];s=i(s),o(s)&&"number"==typeof a&&(a+="px"),e+=a===!0?s:a===!1?"not "+s:"("+s+": "+a+")",r<n.length-1&&(e+=" and ")}),e},r=function(t){var e="";return"string"==typeof t?t:t instanceof Array?(t.forEach(function(n,i){e+=s(n),i<t.length-1&&(e+=", ")}),e):s(t)};t.exports=r},function(t,e){var n=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()};t.exports=n},function(t,e,n){"use strict";var i=n(2),o=(n(15),n(31)),s=n(17),r=i.createClass({displayName:"Modal",getInitialState:function(){return{open:!1}},getDefaultProps:function(){return{overlay:!0,overlayClose:!0,animationIn:"fadeIn",animationOut:"fadeOut"}},componentDidMount:function(){s.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e?this.setState({open:!1}):"toggle"===e&&this.setState({open:!this.state.open})}.bind(this))},componentWillUnmount:function(){s.unsubscribe(this.props.id)},hideOverlay:function(t){t.preventDefault(),this.props.overlayClose&&this.setState({open:!1})},stopClickPropagation:function(t){t.preventDefault(),t.stopPropagation()},render:function(){var t={};return this.props.overlay||(t.background="transparent"),i.createElement(o,{active:this.state.open,animationIn:"fadeIn",animationOut:"fadeOut"},i.createElement("div",{className:"modal-overlay",style:t,onClick:this.hideOverlay},i.createElement(o,{active:this.state.open,animationIn:this.props.animationIn,animationOut:this.props.animationOut},i.createElement("div",{id:this.props.id,"data-closable":!0,className:"modal",onClick:this.stopClickPropagation},this.props.children))))}});t.exports=r},function(t,e,n){"use strict";var i=n(2),o=n(32),s=n(33),r=n(3),a=(n(15),i.createClass({displayName:"Animation",getInitialState:function(){return{}},getDefaultProps:function(){return{active:!1,animationIn:"",animationOut:""}},reflow:function(t){return t.offsetWidth},reset:function(t){t.style.transitionDuration=0,s.removeClass(t,"ng-enter"),s.removeClass(t,"ng-leave"),s.removeClass(t,"ng-enter-active"),s.removeClass(t,"ng-leave-active"),s.removeClass(t,this.props.animationIn),s.removeClass(t,this.props.animationOut)},finishAnimation:function(){var t=this.getDOMNode();this.reset(t),s.removeClass(t,this.props.active?"":"is-active"),this.reflow(t),o.removeEndEventListener(t,this.finishAnimation)},animate:function(t,e){var n=this.getDOMNode(),i="ng-"+e,r=i+"-active";this.reset(n),s.addClass(n,t),s.addClass(n,i),s.addClass(n,"is-active"),this.reflow(n),n.style.transitionDuration="",s.addClass(n,r),o.addEndEventListener(n,this.finishAnimation)},componentDidUpdate:function(t){if(t.active!==this.props.active){var e=this.props.active?this.props.animationIn:this.props.animationOut,n=this.props.active?"enter":"leave";this.animate(e,n)}},render:function(){var t=i.Children.only(this.props.children),e={};return r(t,e)}}));t.exports=a},function(t,e,n){"use strict";function i(){var t=document.createElement("div"),e=t.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var i=a[n];for(var o in i)if(o in e){l.push(i[o]);break}}}function o(t,e,n){t.addEventListener(e,n,!1)}function s(t,e,n){t.removeEventListener(e,n,!1)}var r=n(23),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},l=[];r.canUseDOM&&i();var c={addEndEventListener:function(t,e){return 0===l.length?void window.setTimeout(e,0):void l.forEach(function(n){o(t,n,e)})},removeEndEventListener:function(t,e){0!==l.length&&l.forEach(function(n){s(t,n,e)})}};t.exports=c},function(t,e,n){var i=n(34),o={addClass:function(t,e){return i(!/\s/.test(e),'CSSCore.addClass takes only a single class name. "%s" contains multiple classes.',e),e&&(t.classList?t.classList.add(e):o.hasClass(t,e)||(t.className=t.className+" "+e)),t},removeClass:function(t,e){return i(!/\s/.test(e),'CSSCore.removeClass takes only a single class name. "%s" contains multiple classes.',e),e&&(t.classList?t.classList.remove(e):o.hasClass(t,e)&&(t.className=t.className.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),t},conditionClass:function(t,e,n){return(n?o.addClass:o.removeClass)(t,e)},hasClass:function(t,e){return i(!/\s/.test(e),"CSS.hasClass takes only a single class name."),t.classList?!!e&&t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}};t.exports=o},function(t,e,n){"use strict";var i=function(t,e,n,i,o,s,r,a){if(void 0===e)throw new Error("invariant requires an error message argument");if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,s,r,a],h=0;l=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[h++]}))}throw l.framesToPop=1,l}};t.exports=i},function(t,e,n){"use strict";t.exports={Set:n(36),Static:n(38)}},function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(2),s=n(17),r=n(37),a=(n(31),o.createClass({displayName:"NotificationSet",getInitialState:function(){return{notifications:[]}},componentDidMount:function(){s.subscribe(this.props.id,function(t,e){"clearall"===e?this.clearAll():this.addNotification(e)}.bind(this))},addNotification:function(t){t.id=s.generateUuid();var e=this.state.notifications.concat(t);this.setState({notifications:e})},removeNotifcation:function(t){return function(e){var n=[];this.state.notifications.forEach(function(e){e.id!==t&&n.push(e)}),this.setState({notifications:n}),e.preventDefault()}.bind(this)},clearAll:function(){this.setState({notifications:[]})},render:function(){var t=this.state.notifications.map(function(t){return o.createElement(r,i({key:t.id},t,{closeHandler:this.removeNotifcation(t.id),className:"is-active"}),t.content)}.bind(this));return o.createElement("div",null,t)}}));t.exports=a},function(t,e,n){"use strict";var i=n(2),o=i.createClass({displayName:"Notification",getDefaultProps:function(){return{position:"top-right",color:"success",title:null,image:null,content:null}},render:function(){var t="notification "+this.props.position+" "+this.props.color;t+=" "+(this.props.className||"");var e=null;return this.props.image&&(e=i.createElement("div",{className:"notification-icon"},i.createElement("img",{src:"{{ image }}"}))),i.createElement("div",{id:this.props.id,"data-closable":!0,className:t},i.createElement("a",{href:"#",className:"close-button",onClick:this.props.closeHandler},"×"),e,i.createElement("div",{className:"notification-content"},i.createElement("h1",null,this.props.title),i.createElement("p",null,this.props.children)))}});t.exports=o},function(t,e,n){"use strict";var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o=n(2),s=(n(15),n(17)),r=n(31),a=n(37),l=o.createClass({displayName:"NotificationStatic",getInitialState:function(){return{open:!1}},componentDidMount:function(){s.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e&&this.setState({open:!1})}.bind(this))},componentWillUnmount:function(){s.unsubscribe(this.props.id)},closeHandler:function(t){this.setState({open:!1}),t.preventDefault(),t.stopPropagation()},render:function(){return o.createElement(r,{active:this.state.open,animationIn:"fadeIn",animationOut:"fadeOut"},o.createElement(a,i({},this.props,{closeHandler:this.closeHandler}),this.props.children))}});t.exports=l},function(t,e,n){"use strict";var i=n(2),o=n(15),s=n(17),r=i.createClass({displayName:"Offcanvas",getInitialState:function(){return{open:!1}},getDefaultProps:function(){return{position:"left"}},componentDidMount:function(){s.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e?this.setState({open:!1}):"toggle"===e&&this.setState({open:!this.state.open})}.bind(this))},componentWillUnmount:function(){s.unsubscribe(this.props.id)},render:function(){var t={"off-canvas":!0,"is-active":this.state.open};return t[this.props.position]=!0,this.props.className&&(t[this.props.className]=!0),i.createElement("div",{id:this.props.id,"data-closable":!0,className:o(t)},this.props.children)}});t.exports=r},function(t,e,n){"use strict";var i=n(2),o=(n(15),n(31)),s=n(17),r=i.createClass({displayName:"Panel",getInitialState:function(){return{open:!1}},getDefaultProps:function(){return{position:"left"}},componentDidMount:function(){s.subscribe(this.props.id,function(t,e){"open"===e?this.setState({open:!0}):"close"===e?this.setState({open:!1}):"toggle"===e&&this.setState({open:!this.state.open})}.bind(this))},componentWillUnmount:function(){s.unsubscribe(this.props.id)},render:function(){var t,e,n="panel panel-"+this.props.position;return this.props.className&&(n+=" "+this.props.className),"left"===this.props.position?(t=this.props.animationIn||"slideInRight",e=this.props.animationOut||"slideOutLeft"):"right"===this.props.position?(t=this.props.animationIn||"slideInLeft",e=this.props.animationOut||"slideOutRight"):"top"===this.props.position?(t=this.props.animationIn||"slideInDown",e=this.props.animationOut||"slideOutUp"):"bottom"===this.props.position&&(t=this.props.animationIn||"slideInUp",e=this.props.animationOut||"slideOutBottom"),i.createElement(o,{active:this.state.open,animationIn:t,animationOut:e},i.createElement("div",{"data-closable":!0,id:this.props.id,className:n},this.props.children))}});t.exports=r},function(t,e,n){"use strict";var i=n(2),o=n(15),s=n(23),r=n(17),a=s.canUseDOM&&n(42),l=i.createClass({displayName:"Popup",getInitialState:function(){return{active:!1,tetherInit:!1}},getDefaultProps:function(){return{pinTo:"top center",pinAt:""}},componentDidMount:function(){this.tether={},r.subscribe(this.props.id,function(t,e){"toggle"===e[0]&&this.toggle(e[1])}.bind(this))},toggle:function(t){var e=!this.state.active;this.setState({active:e},function(){e?this.tetherElement(t):this.tether.destroy()}.bind(this))},tetherElement:function(t){var e=document.getElementById(t),n="top center";this.tether=new a({element:this.getDOMNode(),target:e,attachment:n})},render:function(){var t={popup:!0,"is-active":this.state.active};return i.createElement("div",{id:this.props.id,className:o(t),"data-closable":"popup"},this.props.children)}});t.exports=l},function(t,e,n){var i,o;/*! tether 0.6.5 */ !function(s,r){i=r,o="function"==typeof i?i.call(e,n,e,t):i,!(void 0!==o&&(t.exports=o))}(this,function(t,e,n){return function(){var t,e,n,i,o,s,r,a,l,c,h,u,p,f,d,m,g,v,b,y={}.hasOwnProperty,w=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},C=[].slice;null==this.Tether&&(this.Tether={modules:[]}),u=function(t){var e,n,i,o,s;if(n=getComputedStyle(t).position,"fixed"===n)return t;for(i=void 0,e=t;e=e.parentNode;){try{o=getComputedStyle(e)}catch(r){}if(null==o)return e;if(/(auto|scroll)/.test(o.overflow+o.overflowY+o.overflowX)&&("absolute"!==n||"relative"===(s=o.position)||"absolute"===s||"fixed"===s))return e}return document.body},g=function(){var t;return t=0,function(){return t++}}(),b={},c=function(t){var e,i,s,r,a;if(s=t._tetherZeroElement,null==s&&(s=t.createElement("div"),s.setAttribute("data-tether-id",g()),o(s.style,{top:0,left:0,position:"absolute"}),t.body.appendChild(s),t._tetherZeroElement=s),e=s.getAttribute("data-tether-id"),null==b[e]){b[e]={},a=s.getBoundingClientRect();for(i in a)r=a[i],b[e][i]=r;n(function(){return b[e]=void 0})}return b[e]},f=null,r=function(t){var e,n,i,o,s,r,a;t===document?(n=document,t=document.documentElement):n=t.ownerDocument,i=n.documentElement,e={},a=t.getBoundingClientRect();for(o in a)r=a[o],e[o]=r;return s=c(n),e.top-=s.top,e.left-=s.left,null==e.width&&(e.width=document.body.scrollWidth-e.left-e.right),null==e.height&&(e.height=document.body.scrollHeight-e.top-e.bottom),e.top=e.top-i.clientTop,e.left=e.left-i.clientLeft,e.right=n.body.clientWidth-e.width-e.left,e.bottom=n.body.clientHeight-e.height-e.top,e},l=function(t){return t.offsetParent||document.documentElement},h=function(){var t,e,n,i,s;return t=document.createElement("div"),t.style.width="100%",t.style.height="200px",e=document.createElement("div"),o(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e),i=t.offsetWidth,e.style.overflow="scroll",s=t.offsetWidth,i===s&&(s=e.clientWidth),document.body.removeChild(e),n=i-s,{width:n,height:n}},o=function(t){var e,n,i,o,s,r,a;for(null==t&&(t={}),e=[],Array.prototype.push.apply(e,arguments),a=e.slice(1),s=0,r=a.length;r>s;s++)if(i=a[s])for(n in i)y.call(i,n)&&(o=i[n],t[n]=o);return t},d=function(t,e){var n,i,o,s,r,l;if(null!=t.classList){for(r=e.split(" "),l=[],o=0,s=r.length;s>o;o++)i=r[o],i.trim()&&l.push(t.classList.remove(i));return l}return n=a(t).replace(new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi")," "),m(t,n)},e=function(t,e){var n,i,o,s,r;if(null!=t.classList){for(s=e.split(" "),r=[],i=0,o=s.length;o>i;i++)n=s[i],n.trim()&&r.push(t.classList.add(n));return r}return d(t,e),n=a(t)+(" "+e),m(t,n)},p=function(t,e){return null!=t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(a(t))},a=function(t){return t.className instanceof SVGAnimatedString?t.className.baseVal:t.className},m=function(t,e){return t.setAttribute("class",e)},v=function(t,n,i){var o,s,r,a,l,c;for(s=0,a=i.length;a>s;s++)o=i[s],w.call(n,o)<0&&p(t,o)&&d(t,o);for(c=[],r=0,l=n.length;l>r;r++)o=n[r],p(t,o)?c.push(void 0):c.push(e(t,o));return c},i=[],n=function(t){return i.push(t)},s=function(){var t,e;for(e=[];t=i.pop();)e.push(t());return e},t=function(){function t(){}return t.prototype.on=function(t,e,n,i){var o;return null==i&&(i=!1),null==this.bindings&&(this.bindings={}),null==(o=this.bindings)[t]&&(o[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})},t.prototype.once=function(t,e,n){return this.on(t,e,n,!0)},t.prototype.off=function(t,e){var n,i,o;if(null!=(null!=(i=this.bindings)?i[t]:void 0)){if(null==e)return delete this.bindings[t];for(n=0,o=[];n<this.bindings[t].length;)this.bindings[t][n].handler===e?o.push(this.bindings[t].splice(n,1)):o.push(n++);return o}},t.prototype.trigger=function(){var t,e,n,i,o,s,r,a,l;if(n=arguments[0],t=2<=arguments.length?C.call(arguments,1):[],null!=(r=this.bindings)?r[n]:void 0){for(o=0,l=[];o<this.bindings[n].length;)a=this.bindings[n][o],i=a.handler,e=a.ctx,s=a.once,i.apply(null!=e?e:this,t),s?l.push(this.bindings[n].splice(o,1)):l.push(o++);return l}},t}(),this.Tether.Utils={getScrollParent:u,getBounds:r,getOffsetParent:l,extend:o,addClass:e,removeClass:d,hasClass:p,updateClasses:v,defer:n,flush:s,uniqueId:g,Evented:t,getScrollBarSize:h}}.call(this),function(){var t,e,n,i,o,s,r,a,l,c,h,u,p,f,d,m,g,v,b,y,w,C,O,E,x,S,N,T,P,A=[].slice,M=function(t,e){return function(){return t.apply(e,arguments)}};if(null==this.Tether)throw new Error("You must include the utils.js file before tether.js");i=this.Tether,P=i.Utils,m=P.getScrollParent,g=P.getSize,f=P.getOuterSize,u=P.getBounds,p=P.getOffsetParent,c=P.extend,o=P.addClass,O=P.removeClass,S=P.updateClasses,l=P.defer,h=P.flush,d=P.getScrollBarSize,N=function(t,e,n){return null==n&&(n=1),t+n>=e&&e>=t-n},x=function(){var t,e,n,i,o;for(t=document.createElement("div"),o=["transform","webkitTransform","OTransform","MozTransform","msTransform"],n=0,i=o.length;i>n;n++)if(e=o[n],void 0!==t.style[e])return e}(),E=[],C=function(){var t,e,n;for(e=0,n=E.length;n>e;e++)t=E[e],t.position(!1);return h()},v=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},function(){var t,e,n,i,o,s,r,a,l;for(e=null,n=null,i=null,o=function(){if(null!=n&&n>16)return n=Math.min(n-16,250),void(i=setTimeout(o,250));if(!(null!=e&&v()-e<10))return null!=i&&(clearTimeout(i),i=null),e=v(),C(),n=v()-e},a=["resize","scroll","touchmove"],l=[],s=0,r=a.length;r>s;s++)t=a[s],l.push(window.addEventListener(t,o));return l}(),t={center:"center",left:"right",right:"left"},e={middle:"middle",top:"bottom",bottom:"top"},n={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},a=function(n,i){var o,s;return o=n.left,s=n.top,"auto"===o&&(o=t[i.left]),"auto"===s&&(s=e[i.top]),{left:o,top:s}},r=function(t){var e,i;return{left:null!=(e=n[t.left])?e:t.left,top:null!=(i=n[t.top])?i:t.top}},s=function(){var t,e,n,i,o,s,r;for(e=1<=arguments.length?A.call(arguments,0):[],n={top:0,left:0},o=0,s=e.length;s>o;o++)r=e[o],i=r.top,t=r.left,"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof t&&(t=parseFloat(t,10)),n.top+=i,n.left+=t;return n},b=function(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t},y=w=function(t){var e,n,i;return i=t.split(" "),n=i[0],e=i[1],{top:n,left:e}},T=function(){function t(t){this.position=M(this.position,this);var e,n,o,s,r;for(E.push(this),this.history=[],this.setOptions(t,!1),s=i.modules,n=0,o=s.length;o>n;n++)e=s[n],null!=(r=e.initialize)&&r.call(this);this.position()}return t.modules=[],t.prototype.getClass=function(t){var e,n;return(null!=(e=this.options.classes)?e[t]:void 0)?this.options.classes[t]:(null!=(n=this.options.classes)?n[t]:void 0)!==!1?this.options.classPrefix?""+this.options.classPrefix+"-"+t:t:""},t.prototype.setOptions=function(t,e){var n,i,s,r,a,l;for(this.options=t,null==e&&(e=!0),n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},this.options=c(n,this.options),a=this.options,this.element=a.element,this.target=a.target,this.targetModifier=a.targetModifier,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),l=["element","target"],s=0,r=l.length;r>s;s++){if(i=l[s],null==this[i])throw new Error("Tether Error: Both element and target must be defined");null!=this[i].jquery?this[i]=this[i][0]:"string"==typeof this[i]&&(this[i]=document.querySelector(this[i]))}if(o(this.element,this.getClass("element")),o(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");return this.targetAttachment=y(this.options.targetAttachment),this.attachment=y(this.options.attachment),this.offset=w(this.options.offset),this.targetOffset=w(this.options.targetOffset),null!=this.scrollParent&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParent=this.target:this.scrollParent=m(this.target),this.options.enabled!==!1?this.enable(e):void 0},t.prototype.getTargetBounds=function(){var t,e,n,i,o,s,r,a,l;if(null==this.targetModifier)return u(this.target);switch(this.targetModifier){case"visible":return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:(t=u(this.target),o={height:t.height,width:t.width,top:t.top,left:t.left},o.height=Math.min(o.height,t.height-(pageYOffset-t.top)),o.height=Math.min(o.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),o.height=Math.min(innerHeight,o.height),o.height-=2,o.width=Math.min(o.width,t.width-(pageXOffset-t.left)),o.width=Math.min(o.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),o.width=Math.min(innerWidth,o.width),o.width-=2,o.top<pageYOffset&&(o.top=pageYOffset),o.left<pageXOffset&&(o.left=pageXOffset),o);case"scroll-handle":return l=this.target,l===document.body?(l=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=u(l),a=getComputedStyle(l),n=l.scrollWidth>l.clientWidth||"scroll"===[a.overflow,a.overflowX]||this.target!==document.body,s=0,n&&(s=15),i=t.height-parseFloat(a.borderTopWidth)-parseFloat(a.borderBottomWidth)-s,o={width:15,height:.975*i*(i/l.scrollHeight),left:t.left+t.width-parseFloat(a.borderLeftWidth)-15},e=0,408>i&&this.target===document.body&&(e=-11e-5*Math.pow(i,2)-.00727*i+22.58),this.target!==document.body&&(o.height=Math.max(o.height,24)),r=this.target.scrollTop/(l.scrollHeight-i),o.top=r*(i-o.height-e)+t.top+parseFloat(a.borderTopWidth),this.target===document.body&&(o.height=Math.max(o.height,24)),o}},t.prototype.clearCache=function(){return this._cache={}},t.prototype.cache=function(t,e){return null==this._cache&&(this._cache={}),null==this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]},t.prototype.enable=function(t){return null==t&&(t=!0),o(this.target,this.getClass("enabled")),o(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParent!==document&&this.scrollParent.addEventListener("scroll",this.position),t?this.position():void 0},t.prototype.disable=function(){return O(this.target,this.getClass("enabled")),O(this.element,this.getClass("enabled")),this.enabled=!1,null!=this.scrollParent?this.scrollParent.removeEventListener("scroll",this.position):void 0},t.prototype.destroy=function(){var t,e,n,i,o;for(this.disable(),o=[],t=n=0,i=E.length;i>n;t=++n){if(e=E[t],e===this){E.splice(t,1);break}o.push(void 0)}return o},t.prototype.updateAttachClasses=function(t,e){var n,i,o,s,r,a,c,h,u,p=this;for(null==t&&(t=this.attachment),null==e&&(e=this.targetAttachment),s=["left","top","bottom","right","middle","center"],(null!=(u=this._addAttachClasses)?u.length:void 0)&&this._addAttachClasses.splice(0,this._addAttachClasses.length),n=null!=this._addAttachClasses?this._addAttachClasses:this._addAttachClasses=[],t.top&&n.push(""+this.getClass("element-attached")+"-"+t.top),t.left&&n.push(""+this.getClass("element-attached")+"-"+t.left),e.top&&n.push(""+this.getClass("target-attached")+"-"+e.top),e.left&&n.push(""+this.getClass("target-attached")+"-"+e.left),i=[],r=0,c=s.length;c>r;r++)o=s[r],i.push(""+this.getClass("element-attached")+"-"+o);for(a=0,h=s.length;h>a;a++)o=s[a],i.push(""+this.getClass("target-attached")+"-"+o);return l(function(){return null!=p._addAttachClasses?(S(p.element,p._addAttachClasses,i),S(p.target,p._addAttachClasses,i),p._addAttachClasses=void 0):void 0})},t.prototype.position=function(t){var e,n,o,l,c,f,m,g,v,y,w,C,O,E,x,S,N,T,P,A,M,I,k,D,W,_,L,j,H,B,U,z,q,R,F,Y=this;if(null==t&&(t=!0),this.enabled){for(this.clearCache(),A=a(this.targetAttachment,this.attachment),this.updateAttachClasses(this.attachment,A),e=this.cache("element-bounds",function(){return u(Y.element)}),W=e.width,o=e.height,0===W&&0===o&&null!=this.lastSize?(B=this.lastSize,W=B.width,o=B.height):this.lastSize={width:W,height:o},k=I=this.cache("target-bounds",function(){return Y.getTargetBounds()}),v=b(r(this.attachment),{width:W,height:o}),M=b(r(A),k),c=b(this.offset,{width:W,height:o}),f=b(this.targetOffset,k),v=s(v,c),M=s(M,f),l=I.left+M.left-v.left,D=I.top+M.top-v.top,U=i.modules,_=0,j=U.length;j>_;_++)if(m=U[_],x=m.position.call(this,{left:l,top:D,targetAttachment:A,targetPos:I,attachment:this.attachment,elementPos:e,offset:v,targetOffset:M,manualOffset:c,manualTargetOffset:f,scrollbarSize:T}),null!=x&&"object"==typeof x){if(x===!1)return!1;D=x.top,l=x.left}if(g={page:{top:D,left:l},viewport:{top:D-pageYOffset,bottom:pageYOffset-D-o+innerHeight,left:l-pageXOffset,right:pageXOffset-l-W+innerWidth}},document.body.scrollWidth>window.innerWidth&&(T=this.cache("scrollbar-size",d),g.viewport.bottom-=T.height),document.body.scrollHeight>window.innerHeight&&(T=this.cache("scrollbar-size",d),g.viewport.right-=T.width),(""!==(z=document.body.style.position)&&"static"!==z||""!==(q=document.body.parentElement.style.position)&&"static"!==q)&&(g.page.bottom=document.body.scrollHeight-D-o,g.page.right=document.body.scrollWidth-l-W),(null!=(R=this.options.optimizations)?R.moveElement:void 0)!==!1&&null==this.targetModifier){for(w=this.cache("target-offsetparent",function(){return p(Y.target)}),E=this.cache("target-offsetparent-bounds",function(){return u(w)}),O=getComputedStyle(w),n=getComputedStyle(this.element),C=E,y={},F=["Top","Left","Bottom","Right"],L=0,H=F.length;H>L;L++)P=F[L],y[P.toLowerCase()]=parseFloat(O["border"+P+"Width"]);E.right=document.body.scrollWidth-E.left-C.width+y.right,E.bottom=document.body.scrollHeight-E.top-C.height+y.bottom,g.page.top>=E.top+y.top&&g.page.bottom>=E.bottom&&g.page.left>=E.left+y.left&&g.page.right>=E.right&&(N=w.scrollTop,S=w.scrollLeft,g.offset={top:g.page.top-E.top+N-y.top,left:g.page.left-E.left+S-y.left})}return this.move(g),this.history.unshift(g),this.history.length>3&&this.history.pop(),t&&h(),!0}},t.prototype.move=function(t){var e,n,i,o,s,r,a,h,u,f,d,m,g,v,b,y,w,C=this;if(null!=this.element.parentNode){h={};for(f in t){h[f]={};for(o in t[f]){for(i=!1,y=this.history,v=0,b=y.length;b>v;v++)if(a=y[v],!N(null!=(w=a[f])?w[o]:void 0,t[f][o])){i=!0;break}i||(h[f][o]=!0)}}e={top:"",left:"",right:"",bottom:""},u=function(t,n){var i,o,s;return(null!=(s=C.options.optimizations)?s.gpu:void 0)===!1?(t.top?e.top=""+n.top+"px":e.bottom=""+n.bottom+"px",t.left?e.left=""+n.left+"px":e.right=""+n.right+"px"):(t.top?(e.top=0,o=n.top):(e.bottom=0,o=-n.bottom),t.left?(e.left=0,i=n.left):(e.right=0,i=-n.right),e[x]="translateX("+Math.round(i)+"px) translateY("+Math.round(o)+"px)","msTransform"!==x?e[x]+=" translateZ(0)":void 0)},s=!1,(h.page.top||h.page.bottom)&&(h.page.left||h.page.right)?(e.position="absolute",u(h.page,t.page)):(h.viewport.top||h.viewport.bottom)&&(h.viewport.left||h.viewport.right)?(e.position="fixed",u(h.viewport,t.viewport)):null!=h.offset&&h.offset.top&&h.offset.left?(e.position="absolute",r=this.cache("target-offsetparent",function(){return p(C.target)}),p(this.element)!==r&&l(function(){return C.element.parentNode.removeChild(C.element),r.appendChild(C.element)}),u(h.offset,t.offset),s=!0):(e.position="absolute",u({top:!0,left:!0},t.page)),s||"BODY"===this.element.parentNode.tagName||(this.element.parentNode.removeChild(this.element),document.body.appendChild(this.element)),g={},m=!1;for(o in e)d=e[o],n=this.element.style[o],""===n||""===d||"top"!==o&&"left"!==o&&"bottom"!==o&&"right"!==o||(n=parseFloat(n),d=parseFloat(d)),n!==d&&(m=!0,g[o]=e[o]);return m?l(function(){return c(C.element.style,g)}):void 0}},t}(),i.position=C,this.Tether=c(T,i)}.call(this),function(){var t,e,n,i,o,s,r,a,l,c,h=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1};c=this.Tether.Utils,r=c.getOuterSize,s=c.getBounds,a=c.getSize,i=c.extend,l=c.updateClasses,n=c.defer,e={left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle"},t=["left","top","right","bottom"],o=function(e,n){var i,o,r,a,l,c,h;if("scrollParent"===n?n=e.scrollParent:"window"===n&&(n=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),n===document&&(n=n.documentElement),null!=n.nodeType)for(o=a=s(n),l=getComputedStyle(n),n=[o.left,o.top,a.width+o.left,a.height+o.top],i=c=0,h=t.length;h>c;i=++c)r=t[i],r=r[0].toUpperCase()+r.substr(1),"Top"===r||"Left"===r?n[i]+=parseFloat(l["border"+r+"Width"]):n[i]-=parseFloat(l["border"+r+"Width"]);return n},this.Tether.modules.push({position:function(e){var r,a,c,u,p,f,d,m,g,v,b,y,w,C,O,E,x,S,N,T,P,A,M,I,k,D,W,_,L,j,H,B,U,z,q,R,F,Y,X,$,V,Z,G,J,K,Q,tt,et=this;if(D=e.top,b=e.left,P=e.targetAttachment,!this.options.constraints)return!0;for(S=function(e){var n,i,o,s;for(et.removeClass(e),s=[],i=0,o=t.length;o>i;i++)n=t[i],s.push(et.removeClass(""+e+"-"+n));return s},$=this.cache("element-bounds",function(){return s(et.element)}),v=$.height,W=$.width,0===W&&0===v&&null!=this.lastSize&&(V=this.lastSize,W=V.width,v=V.height),M=this.cache("target-bounds",function(){return et.getTargetBounds()}),A=M.height,I=M.width,T={},g={},a=[this.getClass("pinned"),this.getClass("out-of-bounds")],Z=this.options.constraints,_=0,B=Z.length;B>_;_++)m=Z[_],m.outOfBoundsClass&&a.push(m.outOfBoundsClass),m.pinnedClass&&a.push(m.pinnedClass);for(L=0,U=a.length;U>L;L++)for(d=a[L],G=["left","top","right","bottom"],j=0,z=G.length;z>j;j++)N=G[j],a.push(""+d+"-"+N);for(r=[],T=i({},P),g=i({},this.attachment),J=this.options.constraints,H=0,q=J.length;q>H;H++){if(m=J[H],k=m.to,c=m.attachment,O=m.pin,null==c&&(c=""),h.call(c," ")>=0?(K=c.split(" "),f=K[0],p=K[1]):p=f=c,u=o(this,k),("target"===f||"both"===f)&&(D<u[1]&&"top"===T.top&&(D+=A,T.top="bottom"),D+v>u[3]&&"bottom"===T.top&&(D-=A,T.top="top")),"together"===f&&(D<u[1]&&"top"===T.top&&("bottom"===g.top?(D+=A,T.top="bottom",D+=v,g.top="top"):"top"===g.top&&(D+=A,T.top="bottom",D-=v,g.top="bottom")),D+v>u[3]&&"bottom"===T.top&&("top"===g.top?(D-=A,T.top="top",D-=v,g.top="bottom"):"bottom"===g.top&&(D-=A,T.top="top",D+=v,g.top="top")),"middle"===T.top&&(D+v>u[3]&&"top"===g.top?(D-=v,g.top="bottom"):D<u[1]&&"bottom"===g.top&&(D+=v,g.top="top"))),("target"===p||"both"===p)&&(b<u[0]&&"left"===T.left&&(b+=I,T.left="right"),b+W>u[2]&&"right"===T.left&&(b-=I,T.left="left")),"together"===p&&(b<u[0]&&"left"===T.left?"right"===g.left?(b+=I,T.left="right",b+=W,g.left="left"):"left"===g.left&&(b+=I,T.left="right",b-=W,g.left="right"):b+W>u[2]&&"right"===T.left?"left"===g.left?(b-=I,T.left="left",b-=W,g.left="right"):"right"===g.left&&(b-=I,T.left="left",b+=W,g.left="left"):"center"===T.left&&(b+W>u[2]&&"left"===g.left?(b-=W,g.left="right"):b<u[0]&&"right"===g.left&&(b+=W,g.left="left"))),("element"===f||"both"===f)&&(D<u[1]&&"bottom"===g.top&&(D+=v,g.top="top"),D+v>u[3]&&"top"===g.top&&(D-=v,g.top="bottom")),("element"===p||"both"===p)&&(b<u[0]&&"right"===g.left&&(b+=W,g.left="left"),b+W>u[2]&&"left"===g.left&&(b-=W,g.left="right")),"string"==typeof O?O=function(){var t,e,n,i;for(n=O.split(","),i=[],e=0,t=n.length;t>e;e++)C=n[e],i.push(C.trim());return i}():O===!0&&(O=["top","left","right","bottom"]),O||(O=[]),E=[],y=[],D<u[1]&&(h.call(O,"top")>=0?(D=u[1],E.push("top")):y.push("top")),D+v>u[3]&&(h.call(O,"bottom")>=0?(D=u[3]-v,E.push("bottom")):y.push("bottom")),b<u[0]&&(h.call(O,"left")>=0?(b=u[0],E.push("left")):y.push("left")),b+W>u[2]&&(h.call(O,"right")>=0?(b=u[2]-W,E.push("right")):y.push("right")),E.length)for(x=null!=(Q=this.options.pinnedClass)?Q:this.getClass("pinned"),r.push(x),Y=0,R=E.length;R>Y;Y++)N=E[Y],r.push(""+x+"-"+N);if(y.length)for(w=null!=(tt=this.options.outOfBoundsClass)?tt:this.getClass("out-of-bounds"),r.push(w),X=0,F=y.length;F>X;X++)N=y[X],r.push(""+w+"-"+N);(h.call(E,"left")>=0||h.call(E,"right")>=0)&&(g.left=T.left=!1),(h.call(E,"top")>=0||h.call(E,"bottom")>=0)&&(g.top=T.top=!1),(T.top!==P.top||T.left!==P.left||g.top!==this.attachment.top||g.left!==this.attachment.left)&&this.updateAttachClasses(g,T)}return n(function(){return l(et.target,r,a),l(et.element,r,a)}),{top:D,left:b}}})}.call(this),function(){var t,e,n,i;i=this.Tether.Utils,e=i.getBounds,n=i.updateClasses,t=i.defer,this.Tether.modules.push({position:function(i){var o,s,r,a,l,c,h,u,p,f,d,m,g,v,b,y,w,C,O,E,x,S,N,T,P,A=this;if(d=i.top,c=i.left,x=this.cache("element-bounds",function(){return e(A.element)}),l=x.height,m=x.width,f=this.getTargetBounds(),a=d+l,h=c+m,o=[],d<=f.bottom&&a>=f.top)for(S=["left","right"],g=0,w=S.length;w>g;g++)u=S[g],((N=f[u])===c||N===h)&&o.push(u);if(c<=f.right&&h>=f.left)for(T=["top","bottom"],v=0,C=T.length;C>v;v++)u=T[v],((P=f[u])===d||P===a)&&o.push(u);for(r=[],s=[],p=["left","top","right","bottom"],r.push(this.getClass("abutted")),b=0,O=p.length;O>b;b++)u=p[b],r.push(""+this.getClass("abutted")+"-"+u);for(o.length&&s.push(this.getClass("abutted")),y=0,E=o.length;E>y;y++)u=o[y],s.push(""+this.getClass("abutted")+"-"+u);return t(function(){return n(A.target,s,r),n(A.element,s,r)}),!0}})}.call(this),function(){this.Tether.modules.push({position:function(t){var e,n,i,o,s,r,a;return r=t.top,e=t.left,this.options.shift?(n=function(t){return"function"==typeof t?t.call(this,{top:r,left:e}):t},i=n(this.options.shift),"string"==typeof i?(i=i.split(" "),i[1]||(i[1]=i[0]),s=i[0],o=i[1],s=parseFloat(s,10),o=parseFloat(o,10)):(a=[i.top,i.left],s=a[0],o=a[1]),r+=s,e+=o,{top:r,left:e}):void 0}})}.call(this),this.Tether})},function(t,e,n){"use strict";var i=n(2),o=n(3),s=i.createClass({displayName:"Tabs",getInitialState:function(){return{selectedTab:0,content:null}},selectTab:function(t){this.setState(t)},render:function(){var t=i.Children.map(this.props.children,function(t,e){return o(t,{active:e===this.state.selectedTab,index:e,selectTab:this.selectTab})}.bind(this));return i.createElement("div",null,i.createElement("div",{className:"tabs"},t),i.createElement("div",null,this.state.content))}});t.exports=s,s.Tab=n(44)},function(t,e,n){"use strict";var i=n(2),o=n(15),s=i.createClass({displayName:"Tab",componentDidMount:function(){this.props.active&&this.select()},select:function(){var t={selectedTab:this.props.index,content:this.props.children};this.props.selectTab(t)},render:function(){var t={"tab-item":!0,"is-active":this.props.active};return i.createElement("div",{className:o(t),onClick:this.select},this.props.title)}});t.exports=s},function(t,e,n){"use strict";var i=n(2),o=n(3),s=n(17),r=n(46),a=i.createClass({displayName:"Trigger",getDefaultProps:function(){return{open:null,close:null,toggle:null,hardToggle:null,popupToggle:null,notify:null}},getCloseId:function(){if(this.props.close)return this.props.close;for(var t=!1,e=this.getDOMNode().parentNode;t===!1;)"BODY"==e.nodeName&&(t=""),"undefined"!=typeof e.getAttribute("data-closable")&&e.getAttribute("data-closable")!==!1&&(t=e),e=e.parentNode;return t.getAttribute("id")},clickHandler:function(t){t.preventDefault(),this.props.open?s.publish(this.props.open,"open"):null!==this.props.close?s.publish(this.getCloseId(),"close"):this.props.toggle?s.publish(this.props.toggle,"toggle"):this.props.hardToggle?(s.closeActiveElements({exclude:this.props.hardToggle}),s.publish(this.props.hardToggle,"toggle")):this.props.notify&&s.publish(this.props.notify,{title:this.props.title,content:this.props.content,position:this.props.position,color:this.props.color,image:this.props.image})},render:function(){if(this.props.popupToggle)return i.createElement(r,this.props);var t=i.Children.only(this.props.children);return o(t,{onClick:this.click