cmx-components
Advanced tools
Comparing version 1.0.9 to 1.2.0
@@ -32,3 +32,6 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
className = _props.className, | ||
number = _props.number; | ||
number = _props.number, | ||
flex = _props.flex, | ||
column = _props.column, | ||
row = _props.row; | ||
@@ -81,3 +84,3 @@ | ||
var classes = classnames('cmx-col', sizes, className, flexOrder, paddings, { 'center': this.props.center }); | ||
var classes = classnames('cmx-col', sizes, className, flexOrder, paddings, { 'flex': flex }, { 'column': column }, { 'row': row }, { 'center': this.props.center }); | ||
@@ -84,0 +87,0 @@ return React.createElement( |
@@ -18,37 +18,19 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); | ||
return _possibleConstructorReturn(this, _React$Component.call(this, props)); | ||
} | ||
_this.activeInputRef = function () { | ||
var active = _this.props.active; | ||
MadLibForm.prototype.activeInputRef = function activeInputRef() { | ||
var active = this.props.active; | ||
return _this[active.name + 'Input']; | ||
}; | ||
return this[active.name + 'Input']; | ||
}; | ||
_this.getStepsBefore = function (clickedNumber) { | ||
var steps = _this.props.steps; | ||
MadLibForm.prototype.getStepsBefore = function getStepsBefore(clickedNumber) { | ||
var steps = this.props.steps; | ||
return steps.filter(function (step) { | ||
return step.number < clickedNumber; | ||
}); | ||
}; | ||
return steps.filter(function (step) { | ||
return step.number < clickedNumber; | ||
}); | ||
}; | ||
_this.isFirstQuestion = function () { | ||
var _this$props = _this.props, | ||
active = _this$props.active, | ||
steps = _this$props.steps; | ||
return active.number == 0; | ||
}; | ||
_this.isLastQuestion = function () { | ||
var _this$props2 = _this.props, | ||
active = _this$props2.active, | ||
steps = _this$props2.steps; | ||
return active.number == steps.length; | ||
}; | ||
return _this; | ||
} | ||
MadLibForm.prototype.getLastStep = function getLastStep() { | ||
@@ -76,10 +58,26 @@ var _props = this.props, | ||
MadLibForm.prototype.isFirstQuestion = function isFirstQuestion() { | ||
var _props3 = this.props, | ||
active = _props3.active, | ||
steps = _props3.steps; | ||
return active.number == 0; | ||
}; | ||
MadLibForm.prototype.isLastQuestion = function isLastQuestion() { | ||
var _props4 = this.props, | ||
active = _props4.active, | ||
steps = _props4.steps; | ||
return active.number == steps.length; | ||
}; | ||
MadLibForm.prototype.render = function render() { | ||
var _this2 = this; | ||
var _props3 = this.props, | ||
active = _props3.active, | ||
completed = _props3.completed, | ||
height = _props3.height, | ||
steps = _props3.steps; | ||
var _props5 = this.props, | ||
active = _props5.active, | ||
completed = _props5.completed, | ||
height = _props5.height, | ||
steps = _props5.steps; | ||
// COMPONENT RENDER | ||
@@ -95,3 +93,2 @@ | ||
var inputType = void 0; | ||
// const {name, number, errorText, validate, textBefore, textAfter, type, inputWidth} = step; | ||
var inputRef = _this2[step.name + 'Input']; | ||
@@ -98,0 +95,0 @@ return React.createElement(MadLibInput, { |
@@ -30,10 +30,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
date = _props.date, | ||
size = _props.size; | ||
size = _props.size, | ||
number = _props.number; | ||
console.log(type); | ||
var pressClass = classnames('cmx-press-card', 'category ' + Utils.slugify(type)); | ||
var pressClass = classnames('cmx-press-card'); | ||
var tagClass = classnames('tag', 'category ' + Utils.slugify(type)); | ||
return React.createElement( | ||
Column, | ||
{ size: [12, size, size] }, | ||
{ size: [12, size, size], number: number, flex: true }, | ||
React.createElement( | ||
@@ -45,2 +48,7 @@ 'div', | ||
{ className: 'cover' }, | ||
React.createElement( | ||
'div', | ||
{ className: tagClass }, | ||
type | ||
), | ||
React.createElement(BackgroundImage, { image: cover[0].url, position: 'center center' }) | ||
@@ -52,5 +60,10 @@ ), | ||
React.createElement( | ||
Heading, | ||
{ small: true }, | ||
'div', | ||
{ className: 'title' }, | ||
title | ||
), | ||
React.createElement( | ||
'div', | ||
{ className: 'sub' }, | ||
sub | ||
) | ||
@@ -57,0 +70,0 @@ ) |
@@ -39,9 +39,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; }; | ||
React.Children.map(this.props.children, function (child, i) { | ||
if (child.type == Column) { | ||
return React.cloneElement(child, { | ||
number: i | ||
}); | ||
} else { | ||
return React.cloneElement(child); | ||
} | ||
return React.cloneElement(child, { | ||
number: i | ||
}); | ||
}) | ||
@@ -48,0 +44,0 @@ ); |
@@ -45,3 +45,6 @@ 'use strict'; | ||
className = _props.className, | ||
number = _props.number; | ||
number = _props.number, | ||
flex = _props.flex, | ||
column = _props.column, | ||
row = _props.row; | ||
@@ -94,3 +97,3 @@ | ||
var classes = (0, _classnames2.default)('cmx-col', sizes, className, flexOrder, paddings, { 'center': this.props.center }); | ||
var classes = (0, _classnames2.default)('cmx-col', sizes, className, flexOrder, paddings, { 'flex': flex }, { 'column': column }, { 'row': row }, { 'center': this.props.center }); | ||
@@ -97,0 +100,0 @@ return _react2.default.createElement( |
@@ -34,37 +34,19 @@ 'use strict'; | ||
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props)); | ||
return _possibleConstructorReturn(this, _React$Component.call(this, props)); | ||
} | ||
_this.activeInputRef = function () { | ||
var active = _this.props.active; | ||
MadLibForm.prototype.activeInputRef = function activeInputRef() { | ||
var active = this.props.active; | ||
return _this[active.name + 'Input']; | ||
}; | ||
return this[active.name + 'Input']; | ||
}; | ||
_this.getStepsBefore = function (clickedNumber) { | ||
var steps = _this.props.steps; | ||
MadLibForm.prototype.getStepsBefore = function getStepsBefore(clickedNumber) { | ||
var steps = this.props.steps; | ||
return steps.filter(function (step) { | ||
return step.number < clickedNumber; | ||
}); | ||
}; | ||
return steps.filter(function (step) { | ||
return step.number < clickedNumber; | ||
}); | ||
}; | ||
_this.isFirstQuestion = function () { | ||
var _this$props = _this.props, | ||
active = _this$props.active, | ||
steps = _this$props.steps; | ||
return active.number == 0; | ||
}; | ||
_this.isLastQuestion = function () { | ||
var _this$props2 = _this.props, | ||
active = _this$props2.active, | ||
steps = _this$props2.steps; | ||
return active.number == steps.length; | ||
}; | ||
return _this; | ||
} | ||
MadLibForm.prototype.getLastStep = function getLastStep() { | ||
@@ -92,10 +74,26 @@ var _props = this.props, | ||
MadLibForm.prototype.isFirstQuestion = function isFirstQuestion() { | ||
var _props3 = this.props, | ||
active = _props3.active, | ||
steps = _props3.steps; | ||
return active.number == 0; | ||
}; | ||
MadLibForm.prototype.isLastQuestion = function isLastQuestion() { | ||
var _props4 = this.props, | ||
active = _props4.active, | ||
steps = _props4.steps; | ||
return active.number == steps.length; | ||
}; | ||
MadLibForm.prototype.render = function render() { | ||
var _this2 = this; | ||
var _props3 = this.props, | ||
active = _props3.active, | ||
completed = _props3.completed, | ||
height = _props3.height, | ||
steps = _props3.steps; | ||
var _props5 = this.props, | ||
active = _props5.active, | ||
completed = _props5.completed, | ||
height = _props5.height, | ||
steps = _props5.steps; | ||
// COMPONENT RENDER | ||
@@ -111,3 +109,2 @@ | ||
var inputType = void 0; | ||
// const {name, number, errorText, validate, textBefore, textAfter, type, inputWidth} = step; | ||
var inputRef = _this2[step.name + 'Input']; | ||
@@ -114,0 +111,0 @@ return _react2.default.createElement(_MadLibInput2.default, { |
@@ -47,10 +47,13 @@ 'use strict'; | ||
date = _props.date, | ||
size = _props.size; | ||
size = _props.size, | ||
number = _props.number; | ||
console.log(type); | ||
var pressClass = (0, _classnames2.default)('cmx-press-card', 'category ' + _utils2.default.slugify(type)); | ||
var pressClass = (0, _classnames2.default)('cmx-press-card'); | ||
var tagClass = (0, _classnames2.default)('tag', 'category ' + _utils2.default.slugify(type)); | ||
return _react2.default.createElement( | ||
_index.Column, | ||
{ size: [12, size, size] }, | ||
{ size: [12, size, size], number: number, flex: true }, | ||
_react2.default.createElement( | ||
@@ -62,2 +65,7 @@ 'div', | ||
{ className: 'cover' }, | ||
_react2.default.createElement( | ||
'div', | ||
{ className: tagClass }, | ||
type | ||
), | ||
_react2.default.createElement(_index.BackgroundImage, { image: cover[0].url, position: 'center center' }) | ||
@@ -69,5 +77,10 @@ ), | ||
_react2.default.createElement( | ||
_index.Heading, | ||
{ small: true }, | ||
'div', | ||
{ className: 'title' }, | ||
title | ||
), | ||
_react2.default.createElement( | ||
'div', | ||
{ className: 'sub' }, | ||
sub | ||
) | ||
@@ -74,0 +87,0 @@ ) |
@@ -55,9 +55,5 @@ 'use strict'; | ||
_react2.default.Children.map(this.props.children, function (child, i) { | ||
if (child.type == _Column2.default) { | ||
return _react2.default.cloneElement(child, { | ||
number: i | ||
}); | ||
} else { | ||
return _react2.default.cloneElement(child); | ||
} | ||
return _react2.default.cloneElement(child, { | ||
number: i | ||
}); | ||
}) | ||
@@ -64,0 +60,0 @@ ); |
{ | ||
"name": "cmx-components", | ||
"version": "1.0.9", | ||
"version": "1.2.0", | ||
"description": "cmx-components React component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
/*! | ||
* cmx-components v1.0.9 | ||
* cmx-components v1.2.0 | ||
* 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=48)}([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";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 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;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 a=[];for(var s in l)a.push("cmx-col-"+l[s]+"-"+t);void 0=a.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 p in n)void 0=n.hasOwnProperty("tablet")&&!n.hasOwnProperty("mobile")?"order-mobile-"+n[p]+" order-tablet-"+n[p]:"order-"+p+"-"+n[p];var f=u()("cmx-col",void 0,o,void 0,void 0,{center:this.props.center});return c.a.createElement("div",{className:f,style:void 0},this.props.children)},t}(c.a.Component)},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(5),s=n(32),u=n(33),p=n(3),l=n(34),f=n(35),h=n(6),d=n(36),m=n(37),y=n(38),v=n(39),b=n(40),w=n(41),g=n(42),E=n(43),O=n(44),x=n(45),j=n(2),_=n(46);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,"MadLibForm",function(){return f.a}),n.d(t,"MadLibInput",function(){return h.a}),n.d(t,"Paragraph",function(){return d.a}),n.d(t,"PressCard",function(){return m.a}),n.d(t,"RadioInput",function(){return y.a}),n.d(t,"Row",function(){return v.a}),n.d(t,"Section",function(){return b.a}),n.d(t,"SelectInput",function(){return w.a}),n.d(t,"Step",function(){return g.a}),n.d(t,"Stepper",function(){return E.a}),n.d(t,"StepperIndicator",function(){return O.a}),n.d(t,"TextInput",function(){return x.a}),n.d(t,"Utils",function(){return j.a}),n.d(t,"Video",function(){return _.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(10);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(3),n(16));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.componentWillReceiveProps=function(e){var t=e.active,n=e.completed,r=e.step;t.number==r.number&&i.focusMe(),n.some(function(e){return e.number==r.number})&&(i.updateWidth(),i.blurMe())},i.changeValue=function(e){var t=i.props.step.type,n=e.target.value,r=e.target;i.setState({value:n},function(){i.props.parent.inputChanged(i)}),"select"==t&&(i.setState({selectedValue:r.options[r.selectedIndex].text}),i.updateWidth())},i.focusMe=function(){i.cmxInput.focus()},i.blurMe=function(){i.cmxInput.blur()},i.isComplete=function(){var e=i.props,t=e.completed,n=e.step;return t.some(function(e){return e.number==n.number})},i.openMe=function(){"select"==i.props.step.type||i.focusMe()},i.state={error:!1,value:i.props.step.value||"",selectedValue:"",step:i.props.step,inputWidth:i.props.step.inputWidth},i}return i(t,e),t.prototype.checkKey=function(e){13!=e.keyCode&&39!=e.keyCode||(e.preventDefault(),this.props.parent.goToNextStep())},t.prototype.isActive=function(){var e=this.props,t=e.active,n=e.step;return t.number==n.number},t.prototype.isValid=function(){var e=this.state.value;return this.props.step.validate(e)},t.prototype.updateWidth=function(){var e=this,t=this.spanPlaceholder;setTimeout(function(){e.setState({inputWidth:t.offsetWidth})},100)},t.prototype.render=function(){var e=this,t=this.state,n=t.error,r=t.value,o=t.inputWidth,i=t.selectedValue,a=this.props,s=a.active,p=(a.completed,a.className,a.defaultValue,a.id),l=void 0===p?this.props.id||this.props.step.name+"-input":p,f=this.props.step,h=f.errorText,d=f.name,m=f.number,y=f.textBefore,v=f.textAfter,b=f.type,w=f.options,g=u()("cmx-mad-lib-question",{invisible:s.number<m},{active:s.number==m},{error:n},{completed:this.isComplete()},"offset-"+(s.number-m));"text"==b||"number"==b?void 0=c.a.createElement("input",{id:l,name:d,required:!0,style:{width:o,marginLeft:10,marginRight:10},type:b,value:r,onBlur:this.onBlur,onChange:this.changeValue.bind(this),ref:function(t){e.cmxInput=t},onKeyDown:function(t){return e.checkKey(t)}}):"select"==b&&(void 0=c.a.createElement("div",{className:"cmx-mad-lib-select"},c.a.createElement("select",{id:l,name:d,required:!0,style:{width:o},value:r,onBlur:this.onBlur,onFocus:this.onFocus,onChange:this.changeValue.bind(this),onKeyDown:function(t){return e.checkKey(t)},ref:function(t){e.cmxInput=t}},c.a.createElement("option",{value:""}),w.map(function(e,t){return c.a.createElement("option",{key:t,value:e.value},e.label)}))));var E=u()("error-text",{active:n});return void 0="text"==b||"number"==b?c.a.createElement("span",{className:"cmx-mad-lib-placeholder",ref:function(t){e.spanPlaceholder=t}},r):c.a.createElement("span",{className:"cmx-mad-lib-placeholder",ref:function(t){e.spanPlaceholder=t}},i),c.a.createElement("div",{onClick:this.props.onClick,className:g,ref:function(t){e.cmxRow=t},id:d+"-question"},c.a.createElement("span",null,y),void 0,void 0,c.a.createElement("span",null,v),c.a.createElement("div",{className:E},h))},t}(c.a.Component)},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(7);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(8);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(9)),p=(n.n(u),n(5));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(11),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,v=void 0!==y&&y,b=a.type,w=u()({required:v}),g=u()("cmx-checkbox",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=b,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:g},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(12),l=(n.n(p),n(47)),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(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=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(1),u=(n.n(s),n(6)),p=n(15);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.activeInputRef=function(){return i[i.props.active.name+"Input"]},i.getStepsBefore=function(e){return i.props.steps.filter(function(t){return t.number<e})},i.isFirstQuestion=function(){var e=i.props,t=e.active;e.steps;return 0==t.number},i.isLastQuestion=function(){var e=i.props,t=e.active,n=e.steps;return t.number==n.length},i}return i(t,e),t.prototype.getLastStep=function(){var e=this.props,t=e.active;return e.steps.findIndex(function(e){return e.number==t.number})-1},t.prototype.getNextStep=function(){var e=this.props,t=e.active,n=e.steps;return n[n.findIndex(function(e){return e.number==t.number})+1]},t.prototype.render=function(){var e=this,t=this.props,n=t.active,r=t.completed,o=t.height,i=t.steps;return c.a.createElement("div",{className:"cmx-mad-lib-container",style:{height:o}},c.a.createElement("div",{className:"cmx-mad-lib",style:{top:o-100}},i.map(function(t,o){e[t.name+"Input"];return c.a.createElement(u.a,{key:o,active:n,isActive:n.number==t.number,completed:r,onClick:function(){return e.props.inputClicked(e[t.name+"Input"])},parent:e.props.parent,step:t,ref:function(n){e[t.name+"Input"]=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(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)},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(4);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,e.type),r=e.cover,o=(e.url,e.date,e.size);console.log(n);var i=u()("cmx-press-card","category "+l.a.slugify(n));return c.a.createElement(f.Column,{size:[12,o,o]},c.a.createElement("div",{className:i},c.a.createElement("div",{className:"cover"},c.a.createElement(f.BackgroundImage,{image:r[0].url,position:"center center"})),c.a.createElement("div",{className:"details"},c.a.createElement(f.Heading,{small:!0},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(19),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,v=void 0!==y&&y,b=a.type,w=u()({required:v}),g=u()("cmx-radio",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=b,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:g},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(3),u=n(1),p=n.n(u),l=n(20);n.n(l);n.d(t,"a",function(){return h});var f=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},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=p()("cmx-row",this.props.className,{columns:this.props.columns});return c.a.createElement("div",{className:e,style:f({},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 e.type==s.a?c.a.cloneElement(e,{number:t}):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(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)},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),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,v=s.options,b=s.required,w=void 0!==b&&b,g=s.type;(""!=a||o)&&(!1=!0);var E=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]=g,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:""}),v.map(function(e,t){return c.a.createElement("option",{key:t,value:e},e)})),c.a.createElement("label",{className:E,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(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)},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)},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)},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,v=l.name,b=(l.options,l.pattern),w=void 0===b?"":b,g=l.type,E=void 0===g?"text":g;(""!=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]=E,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:v,pattern:w,required:s,type:E,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:v},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(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)},function(e,t,n){e.exports=n.p+"checkmark.0e8993a1.svg"},function(e,t,n){e.exports=n(4)}])}); | ||
!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=48)}([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";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 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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),o=(n.n(r),n(29)),i=n(30),a=n(31),c=n(5),s=n(32),u=n(33),p=n(3),l=n(34),f=n(35),h=n(6),d=n(36),m=n(37),y=n(38),v=n(39),b=n(40),w=n(41),g=n(42),E=n(43),O=n(44),x=n(45),j=n(2),_=n(46);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,"MadLibForm",function(){return f.a}),n.d(t,"MadLibInput",function(){return h.a}),n.d(t,"Paragraph",function(){return d.a}),n.d(t,"PressCard",function(){return m.a}),n.d(t,"RadioInput",function(){return y.a}),n.d(t,"Row",function(){return v.a}),n.d(t,"Section",function(){return b.a}),n.d(t,"SelectInput",function(){return w.a}),n.d(t,"Step",function(){return g.a}),n.d(t,"Stepper",function(){return E.a}),n.d(t,"StepperIndicator",function(){return O.a}),n.d(t,"TextInput",function(){return x.a}),n.d(t,"Utils",function(){return j.a}),n.d(t,"Video",function(){return _.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(10);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(3),n(16));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.componentWillReceiveProps=function(e){var t=e.active,n=e.completed,r=e.step;t.number==r.number&&i.focusMe(),n.some(function(e){return e.number==r.number})&&(i.updateWidth(),i.blurMe())},i.changeValue=function(e){var t=i.props.step.type,n=e.target.value,r=e.target;i.setState({value:n},function(){i.props.parent.inputChanged(i)}),"select"==t&&(i.setState({selectedValue:r.options[r.selectedIndex].text}),i.updateWidth())},i.focusMe=function(){i.cmxInput.focus()},i.blurMe=function(){i.cmxInput.blur()},i.isComplete=function(){var e=i.props,t=e.completed,n=e.step;return t.some(function(e){return e.number==n.number})},i.openMe=function(){"select"==i.props.step.type||i.focusMe()},i.state={error:!1,value:i.props.step.value||"",selectedValue:"",step:i.props.step,inputWidth:i.props.step.inputWidth},i}return i(t,e),t.prototype.checkKey=function(e){13!=e.keyCode&&39!=e.keyCode||(e.preventDefault(),this.props.parent.goToNextStep())},t.prototype.isActive=function(){var e=this.props,t=e.active,n=e.step;return t.number==n.number},t.prototype.isValid=function(){var e=this.state.value;return this.props.step.validate(e)},t.prototype.updateWidth=function(){var e=this,t=this.spanPlaceholder;setTimeout(function(){e.setState({inputWidth:t.offsetWidth})},100)},t.prototype.render=function(){var e=this,t=this.state,n=t.error,r=t.value,o=t.inputWidth,i=t.selectedValue,a=this.props,s=a.active,p=(a.completed,a.className,a.defaultValue,a.id),l=void 0===p?this.props.id||this.props.step.name+"-input":p,f=this.props.step,h=f.errorText,d=f.name,m=f.number,y=f.textBefore,v=f.textAfter,b=f.type,w=f.options,g=u()("cmx-mad-lib-question",{invisible:s.number<m},{active:s.number==m},{error:n},{completed:this.isComplete()},"offset-"+(s.number-m));"text"==b||"number"==b?void 0=c.a.createElement("input",{id:l,name:d,required:!0,style:{width:o,marginLeft:10,marginRight:10},type:b,value:r,onBlur:this.onBlur,onChange:this.changeValue.bind(this),ref:function(t){e.cmxInput=t},onKeyDown:function(t){return e.checkKey(t)}}):"select"==b&&(void 0=c.a.createElement("div",{className:"cmx-mad-lib-select"},c.a.createElement("select",{id:l,name:d,required:!0,style:{width:o},value:r,onBlur:this.onBlur,onFocus:this.onFocus,onChange:this.changeValue.bind(this),onKeyDown:function(t){return e.checkKey(t)},ref:function(t){e.cmxInput=t}},c.a.createElement("option",{value:""}),w.map(function(e,t){return c.a.createElement("option",{key:t,value:e.value},e.label)}))));var E=u()("error-text",{active:n});return void 0="text"==b||"number"==b?c.a.createElement("span",{className:"cmx-mad-lib-placeholder",ref:function(t){e.spanPlaceholder=t}},r):c.a.createElement("span",{className:"cmx-mad-lib-placeholder",ref:function(t){e.spanPlaceholder=t}},i),c.a.createElement("div",{onClick:this.props.onClick,className:g,ref:function(t){e.cmxRow=t},id:d+"-question"},c.a.createElement("span",null,y),void 0,void 0,c.a.createElement("span",null,v),c.a.createElement("div",{className:E},h))},t}(c.a.Component)},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(7);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(8);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(9)),p=(n.n(u),n(5));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(11),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,v=void 0!==y&&y,b=a.type,w=u()({required:v}),g=u()("cmx-checkbox",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=b,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:g},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(12),l=(n.n(p),n(47)),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(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=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(1),u=(n.n(s),n(6)),p=n(15);n.n(p);n.d(t,"a",function(){return l});var l=function(e){function t(n){return r(this,t),o(this,e.call(this,n))}return i(t,e),t.prototype.activeInputRef=function(){return this[this.props.active.name+"Input"]},t.prototype.getStepsBefore=function(e){return this.props.steps.filter(function(t){return t.number<e})},t.prototype.getLastStep=function(){var e=this.props,t=e.active;return e.steps.findIndex(function(e){return e.number==t.number})-1},t.prototype.getNextStep=function(){var e=this.props,t=e.active,n=e.steps;return n[n.findIndex(function(e){return e.number==t.number})+1]},t.prototype.isFirstQuestion=function(){var e=this.props,t=e.active;e.steps;return 0==t.number},t.prototype.isLastQuestion=function(){var e=this.props,t=e.active,n=e.steps;return t.number==n.length},t.prototype.render=function(){var e=this,t=this.props,n=t.active,r=t.completed,o=t.height,i=t.steps;return c.a.createElement("div",{className:"cmx-mad-lib-container",style:{height:o}},c.a.createElement("div",{className:"cmx-mad-lib",style:{top:o-100}},i.map(function(t,o){e[t.name+"Input"];return c.a.createElement(u.a,{key:o,active:n,isActive:n.number==t.number,completed:r,onClick:function(){return e.props.inputClicked(e[t.name+"Input"])},parent:e.props.parent,step:t,ref:function(n){e[t.name+"Input"]=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(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)},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(4);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;console.log(r);var s=u()("cmx-press-card"),p=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:s},c.a.createElement("div",{className:"cover"},c.a.createElement("div",{className:p},r),c.a.createElement(f.BackgroundImage,{image:o[0].url,position:"center 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(19),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,v=void 0!==y&&y,b=a.type,w=u()({required:v}),g=u()("cmx-radio",(e={},e[""+s]=this.props.className,e),(t={},t[""+this.props.type]=b,t),{error:o});return o&&(void 0=c.a.createElement("div",{className:"error-text"},l)),c.a.createElement("div",{className:g},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(3),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){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(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)},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),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,v=s.options,b=s.required,w=void 0!==b&&b,g=s.type;(""!=a||o)&&(!1=!0);var E=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]=g,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:""}),v.map(function(e,t){return c.a.createElement("option",{key:t,value:e},e)})),c.a.createElement("label",{className:E,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(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)},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)},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)},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,v=l.name,b=(l.options,l.pattern),w=void 0===b?"":b,g=l.type,E=void 0===g?"text":g;(""!=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]=E,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:v,pattern:w,required:s,type:E,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:v},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(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)},function(e,t,n){e.exports=n.p+"checkmark.0e8993a1.svg"},function(e,t,n){e.exports=n(4)}])}); | ||
//# sourceMappingURL=cmx-components.min.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
618204
7169