cmx-components
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -40,2 +40,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export { BackgroundImage as default }; | ||
export { BackgroundImage as default }; | ||
BackgroundImage.displayName = 'BackgroundImage'; |
@@ -35,2 +35,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Button as default }; | ||
export { Button as default }; | ||
Button.displayName = 'Button'; |
@@ -83,2 +83,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export { Carousel as default }; | ||
export { Carousel as default }; | ||
Carousel.displayName = 'Carousel'; |
@@ -36,2 +36,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
export { CarouselSlide as default }; | ||
export { CarouselSlide as default }; | ||
CarouselSlide.displayName = 'CarouselSlide'; |
@@ -165,2 +165,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export default CheckboxInput; | ||
export { CheckboxInput as default }; | ||
CheckboxInput.displayName = 'CheckboxInput'; |
@@ -40,2 +40,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Checklist as default }; | ||
export { Checklist as default }; | ||
Checklist.displayName = 'Checklist'; |
@@ -95,2 +95,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Column as default }; | ||
export { Column as default }; | ||
Column.displayName = 'Column'; |
@@ -32,2 +32,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Heading as default }; | ||
export { Heading as default }; | ||
Heading.displayName = 'Heading'; |
@@ -9,4 +9,2 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import classnames from 'classnames'; | ||
import MadlibSelect from '../MadlibSelect'; | ||
import MadlibText from '../MadlibText'; | ||
import './styles.scss'; | ||
@@ -24,2 +22,4 @@ | ||
MadlibStep.prototype.render = function render() { | ||
var _this2 = this; | ||
var _props = this.props, | ||
@@ -42,9 +42,12 @@ active = _props.active, | ||
React.Children.map(this.props.children, function (child, i) { | ||
if (child.type == MadlibSelect || child.type == MadlibText) { | ||
if (child.type.displayName == "MadlibSelect" || child.type.displayName == "MadlibText") { | ||
return React.cloneElement(child, { | ||
step: step, | ||
active: active, | ||
completed: completed | ||
completed: completed, | ||
ref: function ref(input) { | ||
_this2.props.parent['madlib' + step] = input; | ||
} | ||
}); | ||
} else if (child != null) { | ||
} else { | ||
return React.cloneElement(child); | ||
@@ -51,0 +54,0 @@ } |
@@ -8,3 +8,2 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import React from 'react'; | ||
import MadlibStep from '../MadlibStep'; | ||
import './styles.scss'; | ||
@@ -45,3 +44,3 @@ | ||
React.Children.map(this.props.children, function (child, i) { | ||
if (child && child.type == MadlibStep) { | ||
if (child && child.type.displayName == "MadlibStep") { | ||
var step = stepNumber++; | ||
@@ -48,0 +47,0 @@ return React.cloneElement(child, { |
@@ -33,2 +33,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Paragraph as default }; | ||
export { Paragraph as default }; | ||
Paragraph.displayName = 'Paragraph'; |
@@ -76,2 +76,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { PressCard as default }; | ||
export { PressCard as default }; | ||
PressCard.displayName = 'PressCard'; |
@@ -135,2 +135,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export default RadioInput; | ||
export { RadioInput as default }; | ||
RadioInput.displayName = 'RadioInput'; |
@@ -10,3 +10,2 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
import React from 'react'; | ||
import Column from '../Column'; | ||
import classnames from 'classnames'; | ||
@@ -28,2 +27,4 @@ import './styles.scss'; | ||
var columnNumber = 0; | ||
return React.createElement( | ||
@@ -41,5 +42,10 @@ 'div', | ||
React.Children.map(this.props.children, function (child, i) { | ||
return React.cloneElement(child, { | ||
number: i | ||
}); | ||
if (child.type.displayName == "Column") { | ||
var number = columnNumber++; | ||
return React.cloneElement(child, { | ||
number: number | ||
}); | ||
} else { | ||
return React.cloneElement(child); | ||
} | ||
}) | ||
@@ -52,2 +58,5 @@ ); | ||
export { Row as default }; | ||
export { Row as default }; | ||
Row.displayName = 'Row'; |
@@ -33,2 +33,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Step as default }; | ||
export { Step as default }; | ||
Step.displayName = 'Step'; |
@@ -148,2 +148,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export default SelectInput; | ||
export { SelectInput as default }; | ||
SelectInput.displayName = 'SelectInput'; |
@@ -37,2 +37,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Step as default }; | ||
export { Step as default }; | ||
Step.displayName = 'Step'; |
@@ -41,2 +41,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Stepper as default }; | ||
export { Stepper as default }; | ||
Stepper.displayName = 'Stepper'; |
@@ -62,2 +62,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { StepperIndicator as default }; | ||
export { StepperIndicator as default }; | ||
StepperIndicator.displayName = 'StepperIndicator'; |
@@ -158,2 +158,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { TextInput as default }; | ||
export { TextInput as default }; | ||
TextInput.displayName = 'TextInput'; |
@@ -38,2 +38,5 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
export { Video as default }; | ||
export { Video as default }; | ||
Video.displayName = 'Video'; |
@@ -54,2 +54,5 @@ 'use strict'; | ||
exports.default = BackgroundImage; | ||
BackgroundImage.displayName = 'BackgroundImage'; | ||
module.exports = exports['default']; |
@@ -49,2 +49,5 @@ 'use strict'; | ||
exports.default = Button; | ||
Button.displayName = 'Button'; | ||
module.exports = exports['default']; |
@@ -100,2 +100,5 @@ 'use strict'; | ||
exports.default = Carousel; | ||
Carousel.displayName = 'Carousel'; | ||
module.exports = exports['default']; |
@@ -50,2 +50,5 @@ 'use strict'; | ||
exports.default = CarouselSlide; | ||
CarouselSlide.displayName = 'CarouselSlide'; | ||
module.exports = exports['default']; |
'use strict'; | ||
exports.__esModule = true; | ||
exports.default = undefined; | ||
@@ -178,2 +179,5 @@ var _react = require('react'); | ||
exports.default = CheckboxInput; | ||
CheckboxInput.displayName = 'CheckboxInput'; | ||
module.exports = exports['default']; |
@@ -57,2 +57,5 @@ 'use strict'; | ||
exports.default = Checklist; | ||
Checklist.displayName = 'Checklist'; | ||
module.exports = exports['default']; |
@@ -109,2 +109,5 @@ 'use strict'; | ||
exports.default = Column; | ||
Column.displayName = 'Column'; | ||
module.exports = exports['default']; |
@@ -46,2 +46,5 @@ 'use strict'; | ||
exports.default = Heading; | ||
Heading.displayName = 'Heading'; | ||
module.exports = exports['default']; |
@@ -14,10 +14,2 @@ 'use strict'; | ||
var _MadlibSelect = require('../MadlibSelect'); | ||
var _MadlibSelect2 = _interopRequireDefault(_MadlibSelect); | ||
var _MadlibText = require('../MadlibText'); | ||
var _MadlibText2 = _interopRequireDefault(_MadlibText); | ||
require('./styles.scss'); | ||
@@ -43,2 +35,4 @@ | ||
MadlibStep.prototype.render = function render() { | ||
var _this2 = this; | ||
var _props = this.props, | ||
@@ -61,9 +55,12 @@ active = _props.active, | ||
_react2.default.Children.map(this.props.children, function (child, i) { | ||
if (child.type == _MadlibSelect2.default || child.type == _MadlibText2.default) { | ||
if (child.type.displayName == "MadlibSelect" || child.type.displayName == "MadlibText") { | ||
return _react2.default.cloneElement(child, { | ||
step: step, | ||
active: active, | ||
completed: completed | ||
completed: completed, | ||
ref: function ref(input) { | ||
_this2.props.parent['madlib' + step] = input; | ||
} | ||
}); | ||
} else if (child != null) { | ||
} else { | ||
return _react2.default.cloneElement(child); | ||
@@ -70,0 +67,0 @@ } |
@@ -10,6 +10,2 @@ 'use strict'; | ||
var _MadlibStep = require('../MadlibStep'); | ||
var _MadlibStep2 = _interopRequireDefault(_MadlibStep); | ||
require('./styles.scss'); | ||
@@ -58,3 +54,3 @@ | ||
_react2.default.Children.map(this.props.children, function (child, i) { | ||
if (child && child.type == _MadlibStep2.default) { | ||
if (child && child.type.displayName == "MadlibStep") { | ||
var step = stepNumber++; | ||
@@ -61,0 +57,0 @@ return _react2.default.cloneElement(child, { |
@@ -47,2 +47,5 @@ 'use strict'; | ||
exports.default = Paragraph; | ||
Paragraph.displayName = 'Paragraph'; | ||
module.exports = exports['default']; |
@@ -94,2 +94,5 @@ 'use strict'; | ||
exports.default = PressCard; | ||
PressCard.displayName = 'PressCard'; | ||
module.exports = exports['default']; |
'use strict'; | ||
exports.__esModule = true; | ||
exports.default = undefined; | ||
@@ -148,2 +149,5 @@ var _react = require('react'); | ||
exports.default = RadioInput; | ||
RadioInput.displayName = 'RadioInput'; | ||
module.exports = exports['default']; |
@@ -12,6 +12,2 @@ 'use strict'; | ||
var _Column = require('../Column'); | ||
var _Column2 = _interopRequireDefault(_Column); | ||
var _classnames = require('classnames'); | ||
@@ -44,2 +40,4 @@ | ||
var columnNumber = 0; | ||
return _react2.default.createElement( | ||
@@ -57,5 +55,10 @@ 'div', | ||
_react2.default.Children.map(this.props.children, function (child, i) { | ||
return _react2.default.cloneElement(child, { | ||
number: i | ||
}); | ||
if (child.type.displayName == "Column") { | ||
var number = columnNumber++; | ||
return _react2.default.cloneElement(child, { | ||
number: number | ||
}); | ||
} else { | ||
return _react2.default.cloneElement(child); | ||
} | ||
}) | ||
@@ -69,2 +72,5 @@ ); | ||
exports.default = Row; | ||
Row.displayName = 'Row'; | ||
module.exports = exports['default']; |
@@ -47,2 +47,5 @@ 'use strict'; | ||
exports.default = Step; | ||
Step.displayName = 'Step'; | ||
module.exports = exports['default']; |
'use strict'; | ||
exports.__esModule = true; | ||
exports.default = undefined; | ||
@@ -161,2 +162,5 @@ var _react = require('react'); | ||
exports.default = SelectInput; | ||
SelectInput.displayName = 'SelectInput'; | ||
module.exports = exports['default']; |
@@ -51,2 +51,5 @@ 'use strict'; | ||
exports.default = Step; | ||
Step.displayName = 'Step'; | ||
module.exports = exports['default']; |
@@ -52,2 +52,5 @@ 'use strict'; | ||
exports.default = Stepper; | ||
Stepper.displayName = 'Stepper'; | ||
module.exports = exports['default']; |
@@ -79,2 +79,5 @@ 'use strict'; | ||
exports.default = StepperIndicator; | ||
StepperIndicator.displayName = 'StepperIndicator'; | ||
module.exports = exports['default']; |
@@ -175,2 +175,5 @@ 'use strict'; | ||
exports.default = TextInput; | ||
TextInput.displayName = 'TextInput'; | ||
module.exports = exports['default']; |
@@ -52,2 +52,5 @@ 'use strict'; | ||
exports.default = Video; | ||
Video.displayName = 'Video'; | ||
module.exports = exports['default']; |
{ | ||
"name": "cmx-components", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "cmx-components React component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
/*! | ||
* cmx-components v1.2.4 | ||
* cmx-components v1.2.5 | ||
* MIT Licensed | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.CmxComponents=t(require("react")):e.CmxComponents=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=52)}([function(t,n){t.exports=e},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[];0<arguments.length;0++){var t=arguments[0];if(t){var r=typeof t;if("string"===r||"number"===r)e.push(t);else if(Array.isArray(t))e.push(n.apply(null,t));else if("object"===r)for(var o in t)i.call(t,o)&&t[o]&&e.push(o)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),void 0!==o&&(e.exports=o))}()},function(e,t,n){"use strict";var r,o={validateInputs:function(e,t,n){var r=e.map(function(e){return t[""+e.name]}).filter(function(e){return e.state.required&&""==e.state.value||e.state.error});0==r.length?n("success"):r.forEach(function(e){return e.setState({error:!0},function(){n("error")})})},format:(r={capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},checkbox:function(e){return e}},r.checkbox=function(e){return e},r.email=function(e){return e},r.number=function(e){return e},r.password=function(e){return e},r.radio=function(e){return e},r.select=function(e){return e},r.tel=function(e){e=e.replace(/\D/g,""),e=e.substring(0,10);var t=e.length;return e=0==t?e:t<4?"("+e:t<7?"("+e.substring(0,3)+") "+e.substring(3,6):"("+e.substring(0,3)+") "+e.substring(3,6)+" - "+e.substring(6,10)},r.text=function(e){return e},r),slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},validate:{email:function(e){return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},zip:function(e){return/\d{5}([\-]\d{4})?/.test(e)}}};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(32),o=(n.n(r),n(33)),i=n(34),a=n(35),c=n(4),s=n(36),u=n(37),p=n(5),l=n(38),f=n(6),h=n(7),d=n(39),m=n(8),y=n(40),b=n(41),v=n(42),w=n(43),E=n(44),g=n(45),O=n(46),x=n(47),j=n(48),_=n(49),C=n(2),N=n(50);n.d(t,"BackgroundImage",function(){return o.a}),n.d(t,"Button",function(){return i.a}),n.d(t,"Carousel",function(){return a.a}),n.d(t,"CarouselSlide",function(){return c.a}),n.d(t,"CheckboxInput",function(){return s.a}),n.d(t,"Checklist",function(){return u.a}),n.d(t,"Column",function(){return p.a}),n.d(t,"Heading",function(){return l.a}),n.d(t,"MadlibSelect",function(){return f.a}),n.d(t,"MadlibStep",function(){return h.a}),n.d(t,"MadlibStepper",function(){return d.a}),n.d(t,"MadlibText",function(){return m.a}),n.d(t,"Paragraph",function(){return y.a}),n.d(t,"PressCard",function(){return b.a}),n.d(t,"RadioInput",function(){return v.a}),n.d(t,"Row",function(){return w.a}),n.d(t,"Section",function(){return E.a}),n.d(t,"SelectInput",function(){return g.a}),n.d(t,"Step",function(){return O.a}),n.d(t,"Stepper",function(){return x.a}),n.d(t,"StepperIndicator",function(){return j.a}),n.d(t,"TextInput",function(){return _.a}),n.d(t,"Utils",function(){return C.a}),n.d(t,"Video",function(){return N.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(12);n.n(p);n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-carousel-slide",{active:this.props.activeSlide==this.props.index+1});return c.a.createElement("div",{className:e,style:l({},this.props.style)},this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(15);n.n(p);n.d(t,"a",function(){return f});var l={0:"mobile",1:"tablet",2:"desktop"},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.size,n=e.order,r=e.style,o=e.className,i=e.number,a=e.flex,s=e.column,p=e.row;if(Array.isArray(t))void 0=t.map(function(e,t){return"cmx-col-"+l[t]+"-"+e}).join(" "),void 0=t.map(function(e,t){if((i+1)%(12-e)==0)return"cmx-col-"+l[t]+"-no-pad-right"}).join(" ");else{var f=[];for(var h in l)f.push("cmx-col-"+l[h]+"-"+t);void 0=f.join(" ")}r&&(void 0=r);if(n)if(Array.isArray(n))void 0=n.map(function(e,t){return"order-"+l[t]+"-"+e}).join(" ");else for(var d in n)void 0=n.hasOwnProperty("tablet")&&!n.hasOwnProperty("mobile")?"order-mobile-"+n[d]+" order-tablet-"+n[d]:"order-"+d+"-"+n[d];var m=u()("cmx-col",void 0,o,void 0,void 0,{flex:a},{column:s},{row:p},{center:this.props.center});return c.a.createElement("div",{className:m,style:void 0},this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(17);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.show=function(){i.setState({listVisible:!0}),document.addEventListener("click",i.hide)},i.hide=function(){i.setState({listVisible:!1}),document.removeEventListener("click",i.hide)},i.changeValue=function(e,t){console.log(t);var n=i.props.onChange;n&&n(t),i.setState({value:t,listVisible:!1,inputWidth:0})},i.state={listVisible:!1,value:"",inputWidth:i.props.inputWidth},i}return i(t,e),t.prototype.focus=function(){console.log("focus")},t.prototype.blur=function(){console.log("blur")},t.prototype.onFocus=function(){console.log("focused")},t.prototype.render=function(){var e=this,t=this.state,n=t.name,r=t.value,o=t.inputWidth,i=t.listVisible,a=this.props.options,s=u()("cmx-madlib__select-options",{"cmx-madlib__select-options--open":i});return c.a.createElement("div",{className:"cmx-madlib__select",onBlur:this.onBlur,onClick:function(){return e.show()},onFocus:this.onFocus},c.a.createElement("span",{className:"cmx-madlib__select-placeholder--hidden",ref:function(t){e.placeholder=t}},r),c.a.createElement("input",{type:"hidden",name:n,value:r,ref:function(t){e.cmxInput=t}}),c.a.createElement("div",{className:"cmx-madlib__select-placeholder",style:{minWidth:o}},r),c.a.createElement("div",{className:s},a.map(function(t,n){return c.a.createElement("li",{key:n,onClick:function(n){return e.changeValue(n,t)}},t)})))},t}(c.a.Component);l.displayName="MadlibSelect"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(6),l=n(8),f=n(18);n.n(f);n.d(t,"a",function(){return h});var h=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.step,r=e.completed,o=e.onClick,i=u()("cmx-madlib-step",{invisible:t<n},{active:t==n},{completed:r.some(function(e){return e==n})},"offset-"+(t-n));return c.a.createElement("div",{onClick:o,className:i},c.a.Children.map(this.props.children,function(e,o){return e.type==p.a||e.type==l.a?c.a.cloneElement(e,{step:n,active:t,completed:r}):null!=e?c.a.cloneElement(e):void 0}))},t}(c.a.Component);h.displayName="MadlibStep"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=(n.n(s),n(20));n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.changeValue=function(e){var t=i.props.onChange;t&&t(e.target.value),i.setState({value:e.target.value})},i.state={currentlyFocused:!1,error:!1,inputWidth:i.props.inputWidth,value:i.props.value||""},i}return i(t,e),t.prototype.checkKey=function(e){13==e.keyCode&&(e.preventDefault(),this.props.onKeyUp(e.target.value),this.updateWidth())},t.prototype.updateWidth=function(){var e=this,t=this.spanPlaceholder;setTimeout(function(){e.setState({inputWidth:t.offsetWidth})},50)},t.prototype.render=function(){var e=this,t=this.state,n=(t.currentlyFocused,t.error,t.value),r=t.inputWidth,o=this.props,i=(o.className,o.errorText,o.id),a=void 0===i?this.props.id||this.props.name:i,s=(o.label,o.name),u=o.type;return c.a.createElement("div",{className:"text",onClick:function(){return e.cmxInput.focus()},style:{width:r}},c.a.createElement("span",{className:"placeholder",ref:function(t){e.spanPlaceholder=t}},n),c.a.createElement("input",{id:a,name:s,required:!0,type:u,value:n,onBlur:this.onBlur,onChange:this.changeValue.bind(this),onKeyDown:function(t){return e.checkKey(t)},ref:function(t){e.cmxInput=t}}))},t}(c.a.Component);p.displayName="MadlibText"},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(9);n.n(p);n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e,t=u()("cmx-background-image",(e={},e[""+this.props.className]=this.props.className,e),{contain:this.props.contain},{circle:this.props.circle});return c.a.createElement("div",{className:t,style:l({},this.props.style,{backgroundPosition:this.props.position,backgroundImage:'url("'+this.props.image+'")'})},this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(10);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e,t=u()("cmx-button",{"teal-outline":this.props.secondary},(e={},e[""+this.props.className]=this.props.className,e));return c.a.createElement("div",{className:t,onClick:this.props.onClick}," ",this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=(n.n(s),n(11)),p=(n.n(u),n(4));n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){i.startTransition()},i.navigate=function(e){i.stopTransition(),i.setState({activeSlide:e},function(){i.startTransition()})},i.startTransition=function(){i.stopTransition();void 0=i.state.activeSlide%i.props.children.length==0?1:i.state.activeSlide+1,i.timer=setTimeout(function(){i.navigate(void 0)},6e3)},i.stopTransition=function(){clearTimeout(i.timer)},i.componentWillUnmount=function(){clearTimeout(i.timer)},i.state={activeSlide:1},i}return i(t,e),t.prototype.render=function(){var e=this;return c.a.createElement("div",{className:"cmx-carousel",style:l({height:this.props.height+"px"},this.props.style)},c.a.Children.map(this.props.children,function(t,n){return t.type==p.a?c.a.cloneElement(t,{index:n,activeSlide:e.state.activeSlide}):c.a.cloneElement(t)}))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(13),l=(n.n(p),function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=i.props.options.filter(function(e){return 1==e.checked}).map(function(e){return e.value});e.length>0&&i.setState({checkedOptions:e})},i.triggerChange=function(e,t){var n=i.state.checkedOptions;if(n.indexOf(e)>-1){var r=n.filter(function(t){return t!=e});i.setState({checkedOptions:r})}else i.setState({checkedOptions:[].concat(n,[e])});i.props.onChange&&i.props.onChange(e,t)},i.state={error:!1,checkedOptions:[]},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.error,i=r.checkedOptions,a=this.props,s=a.className,p=a.errorText,l=void 0===p?"Required":p,f=a.id,h=(void 0===f?this.props.id||this.props.name:f,a.label),d=a.name,m=a.options,y=a.required,b=void 0!==y&&y,v=a.type,w=u()({required:b}),E=u()("cmx-checkbox",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=v,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:E},c.a.createElement("label",{className:w,htmlFor:d},h),c.a.createElement("div",{className:"error-text"},void 0),c.a.createElement("ul",null,m.map(function(e,t){i.indexOf(e.value)>-1&&(void 0=!0,void 0=c.a.createElement("div",{className:"inside"},"✔"));var r=d+"["+e.value+"]",o=r;return c.a.createElement("li",{key:t,onClick:function(){return n.triggerChange(e.value,r)}},c.a.createElement("div",{className:"checkbox-input"},c.a.createElement("input",{id:r,type:"radio",name:o,value:e.value,checked:i.indexOf(e.value)>-1}),c.a.createElement("div",{className:"check"},c.a.createElement("div",{className:"inside"},void 0)),c.a.createElement("label",{htmlFor:e.value},e.label)))})))},t}(c.a.Component));t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(14),l=(n.n(p),n(51)),f=n.n(l);n.d(t,"a",function(){return h});var h=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-checklist");return c.a.createElement("div",{className:e},c.a.Children.map(this.props.children,function(e,t){return c.a.createElement("div",{className:"cmx-checklist-item"},c.a.createElement("img",{src:f.a,alt:""}),c.a.cloneElement(e))}))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(16);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-heading",{left:this.props.left},{right:this.props.right},{small:this.props.small},{serif:this.props.serif});return c.a.createElement("h1",{className:e},this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(7),u=n(19);n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.active,r=t.completed,o=t.height,i=t.parent;this.props.className;return c.a.createElement("div",{className:"cmx-madlib-stepper",style:{height:o,top:o-100},ref:function(t){e.cmxStepper=t}},c.a.Children.map(this.props.children,function(t,o){if(t&&t.type==s.a){var a=0++;return c.a.cloneElement(t,{step:a,active:n,completed:r,onClick:function(){e.props.inputClicked(a)},parent:i})}if(null!=t)return c.a.cloneElement(t)}))},t}(c.a.Component);p.displayName="MadlibStepper"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(21);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-paragraph",{columns:this.props.columns},{bold:this.props.bold},{left:this.props.left},{right:this.props.right},{margin:this.props.margin});return c.a.createElement("p",{style:{columnCount:this.props.columns},className:e}," ",this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(22),l=(n.n(p),n(2)),f=n(3);n.d(t,"a",function(){return h});var h=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.sub,r=e.type,o=e.cover,i=(e.url,e.date,e.size),a=e.number,s=e.bgPosition,p=u()("cmx-press-card"),h=u()("tag","category "+l.a.slugify(r));return c.a.createElement(f.Column,{size:[12,i,i],number:a,flex:!0},c.a.createElement("div",{className:p},c.a.createElement("div",{className:"cover"},c.a.createElement("div",{className:h},r),c.a.createElement(f.BackgroundImage,{image:o[0].url,position:s||"center"})),c.a.createElement("div",{className:"details"},c.a.createElement("div",{className:"title"},t),c.a.createElement("div",{className:"sub"},n))))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(23),l=(n.n(p),function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=i.props.options.filter(function(e){return 1==e.checked});e.length>0&&i.setState({value:e[0].value})},i.triggerChange=function(e){i.props.onChange&&i.props.onChange(e),i.setState({value:e})},i.state={error:!1,value:""},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.error,i=r.value,a=this.props,s=a.className,p=a.errorText,l=void 0===p?"Required":p,f=a.id,h=(void 0===f?this.props.id||this.props.name:f,a.label),d=a.name,m=a.options,y=a.required,b=void 0!==y&&y,v=a.type,w=u()({required:b}),E=u()("cmx-radio",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=v,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:E},c.a.createElement("label",{className:w,htmlFor:d},h),c.a.createElement("div",{className:"error-text"},void 0),c.a.createElement("ul",null,m.map(function(e,t){return c.a.createElement("li",{key:t,onClick:function(){return n.triggerChange(e.value)},id:d+"_option_"+t},c.a.createElement("div",{className:"radio-input"},c.a.createElement("input",{ref:function(e){n.cmxInput=e},type:"radio",name:d,value:e.value,checked:e.value===i}),c.a.createElement("div",{className:"check"},c.a.createElement("div",{className:"inside"})),c.a.createElement("label",{htmlFor:e.value},e.label)))})))},t}(c.a.Component));t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=(n(5),n(1)),u=n.n(s),p=n(24);n.n(p);n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-row",this.props.className,{columns:this.props.columns});return c.a.createElement("div",{className:e,style:l({},this.props.style,{width:""+this.props.width,maxWidth:this.props.maxWidth+"px",alignItems:this.props.align,justifyContent:this.props.justify})},c.a.Children.map(this.props.children,function(e,t){return c.a.cloneElement(e,{number:t})}))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(25);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-section",this.props.className);return c.a.createElement("section",{className:e}," ",this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(26),l=(n.n(p),function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=i.props.options.filter(function(e){return 1==e.checked});e.length>0&&i.setState({value:e[0].value})},i.onFocus=function(e){i.setState({currentlyFocused:!0})},i.onBlur=function(e){i.state.value.length>0&&i.state.error?i.setState({currentlyFocused:!1,error:!1}):i.setState({currentlyFocused:!1})},i.changeValue=function(e){i.props.onChange&&i.props.onChange(e.target.value),i.setState({value:e.target.value})},i.state={currentlyFocused:!1,error:!1,value:i.props.value||""},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.currentlyFocused,i=r.error,a=r.value,s=this.props,p=s.className,l=s.errorText,f=void 0===l?"Required":l,h=s.id,d=void 0===h?this.props.id||this.props.name:h,m=s.label,y=s.name,b=s.options,v=s.required,w=void 0!==v&&v,E=s.type;(""!=a||o)&&(!1=!0);var g=u()({required:w},{"active-label":!1},{"active-label not-focused":!1}),O=u()("cmx-select",(e={},e[""+p]=this.props.className,e),(t={},t[""+this.props.type]=E,t),{error:i});return i&&(void 0=c.a.createElement("div",{className:"error-text"},f)),c.a.createElement("div",{className:O},c.a.createElement("select",{id:d,required:w,value:a,name:y,onChange:this.changeValue.bind(this),onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){n.cmxInput=e}},c.a.createElement("option",{value:""}),b.map(function(e,t){return c.a.createElement("option",{key:t,value:e},e)})),c.a.createElement("label",{className:g,htmlFor:y},m),c.a.createElement("div",{className:"error-text"},void 0))},t}(c.a.Component));t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(27);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=u()("cmx-step",{active:this.props.activeStep==this.props.step});return c.a.createElement("div",{className:t,ref:function(t){e.step=t}}," ",this.props.children)},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(28);n.n(s);n.d(t,"a",function(){return u});var u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props.activeStep-1,t={transform:"translateX("+e*-100+"%)"};return c.a.createElement("div",{className:"cmx-stepper-container",style:this.props.style},c.a.createElement("div",{className:"cmx-stepper-slider",style:t},this.props.children))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=(n(2),n(1)),u=(n.n(s),n(29));n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.steps.map(function(t,n){var r=e.props.activeStep==n+1?"active":"",o=e.props.completedSteps.includes(n+1)?"completed":"";return void 0=0==n?{borderTopLeftRadius:"100px",borderBottomLeftRadius:"100px",width:100/e.props.steps.length+"%"}:n==e.props.steps.length-1?{borderTopRightRadius:"100px",borderBottomRightRadius:"100px",width:100/e.props.steps.length+"%"}:{width:100/e.props.steps.length+"%"},c.a.createElement("div",{key:n,className:"item "+r+" "+o,style:void 0},c.a.createElement("span",null,t))});return c.a.createElement("div",{className:"cmx-stepper-indicator"},c.a.createElement("div",{className:"items"},t))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(2),u=n(1),p=n.n(u),l=n(30);n.n(l);n.d(t,"a",function(){return f});var f=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=s.a.format[""+i.state.format](i.state.value);i.setState({value:e})},i.changeValue=function(e){i.props.onChange&&i.props.onChange(i);var t=s.a.format[""+i.state.format](e.target.value);i.setState({value:t})},i.onFocus=function(e){i.setState({currentlyFocused:!0}),i.props.pattern&&(e.target.pattern="d*")},i.onBlur=function(e){i.props.type,"tel"==i.props.type&&i.state.value>0&&i.state.value<16?i.setState({error:!0,errorText:"Opps looks like this # is incorrect",currentlyFocused:!1}):"email"!=i.props.type||""==e.target.value||s.a.validate.email(e.target.value)?i.state.value.length>0&&i.state.error?i.setState({currentlyFocused:!1,error:!1}):i.setState({currentlyFocused:!1}):i.setState({error:!0,errorText:"Hmmm I don't recognize this type of email",currentlyFocused:!1})},i.state={autofill:i.props.autofill||!1,currentlyFocused:!1,error:!1,errorText:"Required",format:i.props.format||i.props.type||"text",required:i.props.required||!1,value:i.props.value||""},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.currentlyFocused,i=r.error,a=r.errorText,s=r.required,u=r.value,l=this.props,f=l.className,h=(l.customType,l.defaultValue,l.id),d=void 0===h?this.props.id||this.props.name:h,m=(l.label,l.maxlength),y=void 0===m?"":m,b=l.name,v=(l.options,l.pattern),w=void 0===v?"":v,E=l.type,g=void 0===E?"text":E;(""!=u||o)&&(!1=!0);var O=p()({required:s},{"active-label":!1},{"active-label not-focused":!1}),x=p()("cmx-input",(e={},e[""+f]=this.props.className,e),(t={},t[""+this.props.type]=g,t),{error:i});return i&&(void 0=c.a.createElement("div",{className:"error-text"},a)),c.a.createElement("div",{className:x},c.a.createElement("input",{id:d,maxLength:y,name:b,pattern:w,required:s,type:g,value:u,onChange:this.changeValue.bind(this),onBlur:this.onBlur,onFocus:this.onFocus,ref:function(e){n.cmxInput=e}}),void 0,c.a.createElement("label",{className:O,htmlFor:b},this.props.label))},t}(c.a.Component)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=(n.n(s),n(31));n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return c.a.createElement("video",{playsInline:!0,autoPlay:!0,muted:!0,loop:!0,poster:this.props.poster,id:this.props.id,style:{backgroundImage:"url("+this.props.poster+")"}},c.a.createElement("source",{src:this.props.video,type:"video/mp4"}))},t}(c.a.Component)},function(e,t,n){e.exports=n.p+"checkmark.0e8993a1.svg"},function(e,t,n){e.exports=n(3)}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.CmxComponents=t(require("react")):e.CmxComponents=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=52)}([function(t,n){t.exports=e},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[];0<arguments.length;0++){var t=arguments[0];if(t){var r=typeof t;if("string"===r||"number"===r)e.push(t);else if(Array.isArray(t))e.push(n.apply(null,t));else if("object"===r)for(var o in t)i.call(t,o)&&t[o]&&e.push(o)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),void 0!==o&&(e.exports=o))}()},function(e,t,n){"use strict";var r,o={validateInputs:function(e,t,n){var r=e.map(function(e){return t[""+e.name]}).filter(function(e){return e.state.required&&""==e.state.value||e.state.error});0==r.length?n("success"):r.forEach(function(e){return e.setState({error:!0},function(){n("error")})})},format:(r={capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},checkbox:function(e){return e}},r.checkbox=function(e){return e},r.email=function(e){return e},r.number=function(e){return e},r.password=function(e){return e},r.radio=function(e){return e},r.select=function(e){return e},r.tel=function(e){e=e.replace(/\D/g,""),e=e.substring(0,10);var t=e.length;return e=0==t?e:t<4?"("+e:t<7?"("+e.substring(0,3)+") "+e.substring(3,6):"("+e.substring(0,3)+") "+e.substring(3,6)+" - "+e.substring(6,10)},r.text=function(e){return e},r),slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},validate:{email:function(e){return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},zip:function(e){return/\d{5}([\-]\d{4})?/.test(e)}}};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=(n.n(r),n(29)),i=n(30),a=n(31),c=n(4),s=n(32),u=n(33),p=n(34),l=n(35),f=n(36),h=n(37),d=n(38),m=n(39),y=n(40),b=n(41),v=n(42),w=n(43),E=n(44),g=n(45),O=n(46),x=n(47),j=n(48),_=n(49),C=n(2),N=n(50);n.d(t,"BackgroundImage",function(){return o.a}),n.d(t,"Button",function(){return i.a}),n.d(t,"Carousel",function(){return a.a}),n.d(t,"CarouselSlide",function(){return c.a}),n.d(t,"CheckboxInput",function(){return s.a}),n.d(t,"Checklist",function(){return u.a}),n.d(t,"Column",function(){return p.a}),n.d(t,"Heading",function(){return l.a}),n.d(t,"MadlibSelect",function(){return f.a}),n.d(t,"MadlibStep",function(){return h.a}),n.d(t,"MadlibStepper",function(){return d.a}),n.d(t,"MadlibText",function(){return m.a}),n.d(t,"Paragraph",function(){return y.a}),n.d(t,"PressCard",function(){return b.a}),n.d(t,"RadioInput",function(){return v.a}),n.d(t,"Row",function(){return w.a}),n.d(t,"Section",function(){return E.a}),n.d(t,"SelectInput",function(){return g.a}),n.d(t,"Step",function(){return O.a}),n.d(t,"Stepper",function(){return x.a}),n.d(t,"StepperIndicator",function(){return j.a}),n.d(t,"TextInput",function(){return _.a}),n.d(t,"Utils",function(){return C.a}),n.d(t,"Video",function(){return N.a})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(8);n.n(p);n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-carousel-slide",{active:this.props.activeSlide==this.props.index+1});return c.a.createElement("div",{className:e,style:l({},this.props.style)},this.props.children)},t}(c.a.Component);f.displayName="CarouselSlide"},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(5);n.n(p);n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e,t=u()("cmx-background-image",(e={},e[""+this.props.className]=this.props.className,e),{contain:this.props.contain},{circle:this.props.circle});return c.a.createElement("div",{className:t,style:l({},this.props.style,{backgroundPosition:this.props.position,backgroundImage:'url("'+this.props.image+'")'})},this.props.children)},t}(c.a.Component);f.displayName="BackgroundImage"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(6);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e,t=u()("cmx-button",{"teal-outline":this.props.secondary},(e={},e[""+this.props.className]=this.props.className,e));return c.a.createElement("div",{className:t,onClick:this.props.onClick}," ",this.props.children)},t}(c.a.Component);l.displayName="Button"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=(n.n(s),n(7)),p=(n.n(u),n(4));n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){i.startTransition()},i.navigate=function(e){i.stopTransition(),i.setState({activeSlide:e},function(){i.startTransition()})},i.startTransition=function(){i.stopTransition();void 0=i.state.activeSlide%i.props.children.length==0?1:i.state.activeSlide+1,i.timer=setTimeout(function(){i.navigate(void 0)},6e3)},i.stopTransition=function(){clearTimeout(i.timer)},i.componentWillUnmount=function(){clearTimeout(i.timer)},i.state={activeSlide:1},i}return i(t,e),t.prototype.render=function(){var e=this;return c.a.createElement("div",{className:"cmx-carousel",style:l({height:this.props.height+"px"},this.props.style)},c.a.Children.map(this.props.children,function(t,n){return t.type==p.a?c.a.cloneElement(t,{index:n,activeSlide:e.state.activeSlide}):c.a.cloneElement(t)}))},t}(c.a.Component);f.displayName="Carousel"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(9);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=i.props.options.filter(function(e){return 1==e.checked}).map(function(e){return e.value});e.length>0&&i.setState({checkedOptions:e})},i.triggerChange=function(e,t){var n=i.state.checkedOptions;if(n.indexOf(e)>-1){var r=n.filter(function(t){return t!=e});i.setState({checkedOptions:r})}else i.setState({checkedOptions:[].concat(n,[e])});i.props.onChange&&i.props.onChange(e,t)},i.state={error:!1,checkedOptions:[]},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.error,i=r.checkedOptions,a=this.props,s=a.className,p=a.errorText,l=void 0===p?"Required":p,f=a.id,h=(void 0===f?this.props.id||this.props.name:f,a.label),d=a.name,m=a.options,y=a.required,b=void 0!==y&&y,v=a.type,w=u()({required:b}),E=u()("cmx-checkbox",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=v,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:E},c.a.createElement("label",{className:w,htmlFor:d},h),c.a.createElement("div",{className:"error-text"},void 0),c.a.createElement("ul",null,m.map(function(e,t){i.indexOf(e.value)>-1&&(void 0=!0,void 0=c.a.createElement("div",{className:"inside"},"✔"));var r=d+"["+e.value+"]",o=r;return c.a.createElement("li",{key:t,onClick:function(){return n.triggerChange(e.value,r)}},c.a.createElement("div",{className:"checkbox-input"},c.a.createElement("input",{id:r,type:"radio",name:o,value:e.value,checked:i.indexOf(e.value)>-1}),c.a.createElement("div",{className:"check"},c.a.createElement("div",{className:"inside"},void 0)),c.a.createElement("label",{htmlFor:e.value},e.label)))})))},t}(c.a.Component);l.displayName="CheckboxInput"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(10),l=(n.n(p),n(51)),f=n.n(l);n.d(t,"a",function(){return h});var h=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-checklist");return c.a.createElement("div",{className:e},c.a.Children.map(this.props.children,function(e,t){return c.a.createElement("div",{className:"cmx-checklist-item"},c.a.createElement("img",{src:f.a,alt:""}),c.a.cloneElement(e))}))},t}(c.a.Component);h.displayName="Checklist"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(11);n.n(p);n.d(t,"a",function(){return f});var l={0:"mobile",1:"tablet",2:"desktop"},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.size,n=e.order,r=e.style,o=e.className,i=e.number,a=e.flex,s=e.column,p=e.row;if(Array.isArray(t))void 0=t.map(function(e,t){return"cmx-col-"+l[t]+"-"+e}).join(" "),void 0=t.map(function(e,t){if((i+1)%(12-e)==0)return"cmx-col-"+l[t]+"-no-pad-right"}).join(" ");else{var f=[];for(var h in l)f.push("cmx-col-"+l[h]+"-"+t);void 0=f.join(" ")}r&&(void 0=r);if(n)if(Array.isArray(n))void 0=n.map(function(e,t){return"order-"+l[t]+"-"+e}).join(" ");else for(var d in n)void 0=n.hasOwnProperty("tablet")&&!n.hasOwnProperty("mobile")?"order-mobile-"+n[d]+" order-tablet-"+n[d]:"order-"+d+"-"+n[d];var m=u()("cmx-col",void 0,o,void 0,void 0,{flex:a},{column:s},{row:p},{center:this.props.center});return c.a.createElement("div",{className:m,style:void 0},this.props.children)},t}(c.a.Component);f.displayName="Column"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(12);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-heading",{left:this.props.left},{right:this.props.right},{small:this.props.small},{serif:this.props.serif});return c.a.createElement("h1",{className:e},this.props.children)},t}(c.a.Component);l.displayName="Heading"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(13);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.show=function(){i.setState({listVisible:!0}),document.addEventListener("click",i.hide)},i.hide=function(){i.setState({listVisible:!1}),document.removeEventListener("click",i.hide)},i.changeValue=function(e,t){console.log(t);var n=i.props.onChange;n&&n(t),i.setState({value:t,listVisible:!1,inputWidth:0})},i.state={listVisible:!1,value:"",inputWidth:i.props.inputWidth},i}return i(t,e),t.prototype.focus=function(){console.log("focus")},t.prototype.blur=function(){console.log("blur")},t.prototype.onFocus=function(){console.log("focused")},t.prototype.render=function(){var e=this,t=this.state,n=t.name,r=t.value,o=t.inputWidth,i=t.listVisible,a=this.props.options,s=u()("cmx-madlib__select-options",{"cmx-madlib__select-options--open":i});return c.a.createElement("div",{className:"cmx-madlib__select",onBlur:this.onBlur,onClick:function(){return e.show()},onFocus:this.onFocus},c.a.createElement("span",{className:"cmx-madlib__select-placeholder--hidden",ref:function(t){e.placeholder=t}},r),c.a.createElement("input",{type:"hidden",name:n,value:r,ref:function(t){e.cmxInput=t}}),c.a.createElement("div",{className:"cmx-madlib__select-placeholder",style:{minWidth:o}},r),c.a.createElement("div",{className:s},a.map(function(t,n){return c.a.createElement("li",{key:n,onClick:function(n){return e.changeValue(n,t)}},t)})))},t}(c.a.Component);l.displayName="MadlibSelect"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(14);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.active,r=t.step,o=t.completed,i=t.onClick,a=u()("cmx-madlib-step",{invisible:n<r},{active:n==r},{completed:o.some(function(e){return e==r})},"offset-"+(n-r));return c.a.createElement("div",{onClick:i,className:a},c.a.Children.map(this.props.children,function(t,i){return"MadlibSelect"==t.type.displayName||"MadlibText"==t.type.displayName?c.a.cloneElement(t,{step:r,active:n,completed:o,ref:function(t){e.props.parent["madlib"+r]=t}}):c.a.cloneElement(t)}))},t}(c.a.Component);l.displayName="MadlibStep"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(15);n.n(s);n.d(t,"a",function(){return u});var u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.active,r=t.completed,o=t.height,i=t.parent;this.props.className;return c.a.createElement("div",{className:"cmx-madlib-stepper",style:{height:o,top:o-100},ref:function(t){e.cmxStepper=t}},c.a.Children.map(this.props.children,function(t,o){if(t&&"MadlibStep"==t.type.displayName){var a=0++;return c.a.cloneElement(t,{step:a,active:n,completed:r,onClick:function(){e.props.inputClicked(a)},parent:i})}if(null!=t)return c.a.cloneElement(t)}))},t}(c.a.Component);u.displayName="MadlibStepper"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=(n.n(s),n(16));n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.changeValue=function(e){var t=i.props.onChange;t&&t(e.target.value),i.setState({value:e.target.value})},i.state={currentlyFocused:!1,error:!1,inputWidth:i.props.inputWidth,value:i.props.value||""},i}return i(t,e),t.prototype.checkKey=function(e){13==e.keyCode&&(e.preventDefault(),this.props.onKeyUp(e.target.value),this.updateWidth())},t.prototype.updateWidth=function(){var e=this,t=this.spanPlaceholder;setTimeout(function(){e.setState({inputWidth:t.offsetWidth})},50)},t.prototype.render=function(){var e=this,t=this.state,n=(t.currentlyFocused,t.error,t.value),r=t.inputWidth,o=this.props,i=(o.className,o.errorText,o.id),a=void 0===i?this.props.id||this.props.name:i,s=(o.label,o.name),u=o.type;return c.a.createElement("div",{className:"text",onClick:function(){return e.cmxInput.focus()},style:{width:r}},c.a.createElement("span",{className:"placeholder",ref:function(t){e.spanPlaceholder=t}},n),c.a.createElement("input",{id:a,name:s,required:!0,type:u,value:n,onBlur:this.onBlur,onChange:this.changeValue.bind(this),onKeyDown:function(t){return e.checkKey(t)},ref:function(t){e.cmxInput=t}}))},t}(c.a.Component);p.displayName="MadlibText"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(17);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-paragraph",{columns:this.props.columns},{bold:this.props.bold},{left:this.props.left},{right:this.props.right},{margin:this.props.margin});return c.a.createElement("p",{style:{columnCount:this.props.columns},className:e}," ",this.props.children)},t}(c.a.Component);l.displayName="Paragraph"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(18),l=(n.n(p),n(2)),f=n(3);n.d(t,"a",function(){return h});var h=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.sub,r=e.type,o=e.cover,i=(e.url,e.date,e.size),a=e.number,s=e.bgPosition,p=u()("cmx-press-card"),h=u()("tag","category "+l.a.slugify(r));return c.a.createElement(f.Column,{size:[12,i,i],number:a,flex:!0},c.a.createElement("div",{className:p},c.a.createElement("div",{className:"cover"},c.a.createElement("div",{className:h},r),c.a.createElement(f.BackgroundImage,{image:o[0].url,position:s||"center"})),c.a.createElement("div",{className:"details"},c.a.createElement("div",{className:"title"},t),c.a.createElement("div",{className:"sub"},n))))},t}(c.a.Component);h.displayName="PressCard"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(19);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=i.props.options.filter(function(e){return 1==e.checked});e.length>0&&i.setState({value:e[0].value})},i.triggerChange=function(e){i.props.onChange&&i.props.onChange(e),i.setState({value:e})},i.state={error:!1,value:""},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.error,i=r.value,a=this.props,s=a.className,p=a.errorText,l=void 0===p?"Required":p,f=a.id,h=(void 0===f?this.props.id||this.props.name:f,a.label),d=a.name,m=a.options,y=a.required,b=void 0!==y&&y,v=a.type,w=u()({required:b}),E=u()("cmx-radio",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=v,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:E},c.a.createElement("label",{className:w,htmlFor:d},h),c.a.createElement("div",{className:"error-text"},void 0),c.a.createElement("ul",null,m.map(function(e,t){return c.a.createElement("li",{key:t,onClick:function(){return n.triggerChange(e.value)},id:d+"_option_"+t},c.a.createElement("div",{className:"radio-input"},c.a.createElement("input",{ref:function(e){n.cmxInput=e},type:"radio",name:d,value:e.value,checked:e.value===i}),c.a.createElement("div",{className:"check"},c.a.createElement("div",{className:"inside"})),c.a.createElement("label",{htmlFor:e.value},e.label)))})))},t}(c.a.Component);l.displayName="RadioInput"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(20);n.n(p);n.d(t,"a",function(){return f});var l=Object.assign||function(e){for(;1<arguments.length;1++){var t=arguments[1];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-row",this.props.className,{columns:this.props.columns});return c.a.createElement("div",{className:e,style:l({},this.props.style,{width:""+this.props.width,maxWidth:this.props.maxWidth+"px",alignItems:this.props.align,justifyContent:this.props.justify})},c.a.Children.map(this.props.children,function(e,t){if("Column"==e.type.displayName){var n=0++;return c.a.cloneElement(e,{number:n})}return c.a.cloneElement(e)}))},t}(c.a.Component);f.displayName="Row"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(21);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=u()("cmx-section",this.props.className);return c.a.createElement("section",{className:e}," ",this.props.children)},t}(c.a.Component);l.displayName="Step"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(22);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=i.props.options.filter(function(e){return 1==e.checked});e.length>0&&i.setState({value:e[0].value})},i.onFocus=function(e){i.setState({currentlyFocused:!0})},i.onBlur=function(e){i.state.value.length>0&&i.state.error?i.setState({currentlyFocused:!1,error:!1}):i.setState({currentlyFocused:!1})},i.changeValue=function(e){i.props.onChange&&i.props.onChange(e.target.value),i.setState({value:e.target.value})},i.state={currentlyFocused:!1,error:!1,value:i.props.value||""},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.currentlyFocused,i=r.error,a=r.value,s=this.props,p=s.className,l=s.errorText,f=void 0===l?"Required":l,h=s.id,d=void 0===h?this.props.id||this.props.name:h,m=s.label,y=s.name,b=s.options,v=s.required,w=void 0!==v&&v,E=s.type;(""!=a||o)&&(!1=!0);var g=u()({required:w},{"active-label":!1},{"active-label not-focused":!1}),O=u()("cmx-select",(e={},e[""+p]=this.props.className,e),(t={},t[""+this.props.type]=E,t),{error:i});return i&&(void 0=c.a.createElement("div",{className:"error-text"},f)),c.a.createElement("div",{className:O},c.a.createElement("select",{id:d,required:w,value:a,name:y,onChange:this.changeValue.bind(this),onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){n.cmxInput=e}},c.a.createElement("option",{value:""}),b.map(function(e,t){return c.a.createElement("option",{key:t,value:e},e)})),c.a.createElement("label",{className:g,htmlFor:y},m),c.a.createElement("div",{className:"error-text"},void 0))},t}(c.a.Component);l.displayName="SelectInput"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=n.n(s),p=n(23);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=u()("cmx-step",{active:this.props.activeStep==this.props.step});return c.a.createElement("div",{className:t,ref:function(t){e.step=t}}," ",this.props.children)},t}(c.a.Component);l.displayName="Step"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(24);n.n(s);n.d(t,"a",function(){return u});var u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props.activeStep-1,t={transform:"translateX("+e*-100+"%)"};return c.a.createElement("div",{className:"cmx-stepper-container",style:this.props.style},c.a.createElement("div",{className:"cmx-stepper-slider",style:t},this.props.children))},t}(c.a.Component);u.displayName="Stepper"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=(n(2),n(1)),u=(n.n(s),n(25));n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.steps.map(function(t,n){var r=e.props.activeStep==n+1?"active":"",o=e.props.completedSteps.includes(n+1)?"completed":"";return void 0=0==n?{borderTopLeftRadius:"100px",borderBottomLeftRadius:"100px",width:100/e.props.steps.length+"%"}:n==e.props.steps.length-1?{borderTopRightRadius:"100px",borderBottomRightRadius:"100px",width:100/e.props.steps.length+"%"}:{width:100/e.props.steps.length+"%"},c.a.createElement("div",{key:n,className:"item "+r+" "+o,style:void 0},c.a.createElement("span",null,t))});return c.a.createElement("div",{className:"cmx-stepper-indicator"},c.a.createElement("div",{className:"items"},t))},t}(c.a.Component);p.displayName="StepperIndicator"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(2),u=n(1),p=n.n(u),l=n(26);n.n(l);n.d(t,"a",function(){return f});var f=function(e){function t(n){r(this,t);var i=o(this,e.call(this,n));return i.componentDidMount=function(){var e=s.a.format[""+i.state.format](i.state.value);i.setState({value:e})},i.changeValue=function(e){i.props.onChange&&i.props.onChange(i);var t=s.a.format[""+i.state.format](e.target.value);i.setState({value:t})},i.onFocus=function(e){i.setState({currentlyFocused:!0}),i.props.pattern&&(e.target.pattern="d*")},i.onBlur=function(e){i.props.type,"tel"==i.props.type&&i.state.value>0&&i.state.value<16?i.setState({error:!0,errorText:"Opps looks like this # is incorrect",currentlyFocused:!1}):"email"!=i.props.type||""==e.target.value||s.a.validate.email(e.target.value)?i.state.value.length>0&&i.state.error?i.setState({currentlyFocused:!1,error:!1}):i.setState({currentlyFocused:!1}):i.setState({error:!0,errorText:"Hmmm I don't recognize this type of email",currentlyFocused:!1})},i.state={autofill:i.props.autofill||!1,currentlyFocused:!1,error:!1,errorText:"Required",format:i.props.format||i.props.type||"text",required:i.props.required||!1,value:i.props.value||""},i}return i(t,e),t.prototype.render=function(){var e,t,n=this,r=this.state,o=r.currentlyFocused,i=r.error,a=r.errorText,s=r.required,u=r.value,l=this.props,f=l.className,h=(l.customType,l.defaultValue,l.id),d=void 0===h?this.props.id||this.props.name:h,m=(l.label,l.maxlength),y=void 0===m?"":m,b=l.name,v=(l.options,l.pattern),w=void 0===v?"":v,E=l.type,g=void 0===E?"text":E;(""!=u||o)&&(!1=!0);var O=p()({required:s},{"active-label":!1},{"active-label not-focused":!1}),x=p()("cmx-input",(e={},e[""+f]=this.props.className,e),(t={},t[""+this.props.type]=g,t),{error:i});return i&&(void 0=c.a.createElement("div",{className:"error-text"},a)),c.a.createElement("div",{className:x},c.a.createElement("input",{id:d,maxLength:y,name:b,pattern:w,required:s,type:g,value:u,onChange:this.changeValue.bind(this),onBlur:this.onBlur,onFocus:this.onFocus,ref:function(e){n.cmxInput=e}}),void 0,c.a.createElement("label",{className:O,htmlFor:b},this.props.label))},t}(c.a.Component);f.displayName="TextInput"},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),c=n.n(a),s=n(1),u=(n.n(s),n(27));n.n(u);n.d(t,"a",function(){return p});var p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return c.a.createElement("video",{playsInline:!0,autoPlay:!0,muted:!0,loop:!0,poster:this.props.poster,id:this.props.id,style:{backgroundImage:"url("+this.props.poster+")"}},c.a.createElement("source",{src:this.props.video,type:"video/mp4"}))},t}(c.a.Component);p.displayName="Video"},function(e,t,n){e.exports=n.p+"checkmark.0e8993a1.svg"},function(e,t,n){e.exports=n(3)}])}); | ||
//# sourceMappingURL=cmx-components.min.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
641643
7286