New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cmx-components

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmx-components - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

umd/main.9e657bfe.css

16

es/CheckboxInput/index.js

@@ -33,2 +33,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var checkedOptions = _this.state.checkedOptions;
var onChange = _this.props.onChange;

@@ -41,10 +42,10 @@ var clickedIndex = checkedOptions.indexOf(value);

});
_this.setState({ checkedOptions: newArray });
_this.setState({ checkedOptions: newArray }, function () {
return onChange && onChange(_this.state.checkedOptions, id);
});
} else {
_this.setState({ checkedOptions: [].concat(checkedOptions, [value]) });
_this.setState({ checkedOptions: [].concat(checkedOptions, [value]) }, function () {
return onChange && onChange(_this.state.checkedOptions, id);
});
}
if (_this.props.onChange) {
// console.log(this.props)
_this.props.onChange(value, id);
}
};

@@ -54,3 +55,4 @@

error: false,
checkedOptions: []
checkedOptions: [],
required: _this.props.required || false
};

@@ -57,0 +59,0 @@ return _this;

@@ -51,2 +51,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

error: false,
required: _this.props.required || false,
value: _this.props.value || ''

@@ -53,0 +54,0 @@ };

@@ -46,2 +46,3 @@ 'use strict';

var checkedOptions = _this.state.checkedOptions;
var onChange = _this.props.onChange;

@@ -54,10 +55,10 @@ var clickedIndex = checkedOptions.indexOf(value);

});
_this.setState({ checkedOptions: newArray });
_this.setState({ checkedOptions: newArray }, function () {
return onChange && onChange(_this.state.checkedOptions, id);
});
} else {
_this.setState({ checkedOptions: [].concat(checkedOptions, [value]) });
_this.setState({ checkedOptions: [].concat(checkedOptions, [value]) }, function () {
return onChange && onChange(_this.state.checkedOptions, id);
});
}
if (_this.props.onChange) {
// console.log(this.props)
_this.props.onChange(value, id);
}
};

@@ -67,3 +68,4 @@

error: false,
checkedOptions: []
checkedOptions: [],
required: _this.props.required || false
};

@@ -70,0 +72,0 @@ return _this;

@@ -64,2 +64,3 @@ 'use strict';

error: false,
required: _this.props.required || false,
value: _this.props.value || ''

@@ -66,0 +67,0 @@ };

{
"name": "cmx-components",
"version": "1.3.2",
"version": "1.3.3",
"description": "cmx-components React component",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

/*!
* cmx-components v1.3.2
* cmx-components v1.3.3
* 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(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),_=n(48),j=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 _.a}),n.d(t,"TextInput",function(){return j.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.order,n=e.style,r=e.className,o=e.flex,i=e.column,a=e.row,s=e.mobileSize,p=e.tabletSize,f=e.desktopSize,h=e.mobilePadding,d=e.tabletPadding,m=e.desktopPadding;n&&(void 0=n);if(t)if(Array.isArray(t))void 0=t.map(function(e,t){return"order-"+l[t]+"-"+e}).join(" ");else for(var y in t)void 0=t.hasOwnProperty("tablet")&&!t.hasOwnProperty("mobile")?"order-mobile-"+t[y]+" order-tablet-"+t[y]:"order-"+y+"-"+t[y];var b=u()("cmx-col","cmx-col-mobile-"+s,"cmx-col-tablet-"+p,"cmx-col-desktop-"+f,{"cmx-col-mobile-no-pad-right":0==h},{"cmx-col-tablet-no-pad-right":0==d},{"cmx-col-desktop-no-pad-right":0==m},{flex:o},{column:i},{row:a},{center:this.props.center},r,void 0);return c.a.createElement("div",{className:b,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){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.render=function(){var e=this,t=this.state,n=t.value,r=t.inputWidth,o=t.listVisible,i=this.props,a=i.name,s=i.options,p=u()("cmx-madlib__select-options",{"cmx-madlib__select-options--open":o});return c.a.createElement("div",{className:"cmx-madlib__select",onClick:function(){return e.show()}},c.a.createElement("span",{className:"cmx-madlib__select-placeholder--hidden",ref:function(t){e.placeholder=t}},n),c.a.createElement("input",{type:"hidden",name:a,value:n,ref:function(t){e.cmxInput=t}}),""==n&&c.a.createElement("span",{className:"cmx-madlib__select-caret"}),c.a.createElement("div",{className:"cmx-madlib__select-placeholder",style:{minWidth:r}},n),c.a.createElement("div",{className:p},s.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.onKeyUp=function(e){var t=i.state,n=t.active,r=t.step,o=t.value;n==r&&13==e.keyCode&&(i.props.onKeyUp(o),document.removeEventListener("keydown",i.onKeyUp))},i.state={inputWidth:i.props.inputWidth,value:i.props.value||""},i}return i(t,e),t.prototype.onBlur=function(){document.addEventListener("keydown",this.onKeyUp)},t.prototype.render=function(){var e=this,t=this.state,n=(t.currentlyFocused,t.value),r=t.inputWidth,o=this.props,i=(o.className,o.id),a=void 0===i?this.props.id||this.props.name:i,s=o.name,u=o.type;return c.a.createElement("div",{className:"cmx-madlib__text"},c.a.createElement("span",{className:"cmx-madlib__text-placeholder",ref:function(t){e.spanPlaceholder=t}},n),c.a.createElement("input",{className:"cmx-madlib__text-input",id:a,name:s,style:{width:r},type:u,value:n,onBlur:this.onBlur.bind(this),onChange:this.changeValue.bind(this),onKeyDown:function(t){return e.onKeyUp(t)},ref:function(t){e.cmxInput=t}}),c.a.createElement("div",{className:"cmx-madlib__enter-to-continue",onClick:function(){return e.props.onKeyUp(n)}},c.a.createElement("span",null,"press",c.a.createElement("b",null,"ENTER"),"to continue")))},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.bgPosition),a=u()("cmx-press-card"),s=u()("tag","category "+l.a.slugify(r));return c.a.createElement("div",{className:a},c.a.createElement("div",{className:"cover"},c.a.createElement("div",{className:s},r),c.a.createElement(f.BackgroundImage,{image:o[0].url,position:i||"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(e&&"Column"==e.type.displayName){var n=e.props.size[0],r=e.props.size[1],o=e.props.size[2];0=0+n,0=0+r,0=0+o;return c.a.cloneElement(e,{mobileSize:n,tabletSize:r,desktopSize:o,mobilePadding:!0,tabletPadding:!0,desktopPadding:!0})}if(null!=e)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)}])});
!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),_=n(48),j=n(49),N=n(2),C=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 _.a}),n.d(t,"TextInput",function(){return j.a}),n.d(t,"Utils",function(){return N.a}),n.d(t,"Video",function(){return C.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,r=i.props.onChange;if(n.indexOf(e)>-1){var o=n.filter(function(t){return t!=e});i.setState({checkedOptions:o},function(){return r&&r(i.state.checkedOptions,t)})}else i.setState({checkedOptions:[].concat(n,[e])},function(){return r&&r(i.state.checkedOptions,t)})},i.state={error:!1,checkedOptions:[],required:i.props.required||!1},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.order,n=e.style,r=e.className,o=e.flex,i=e.column,a=e.row,s=e.mobileSize,p=e.tabletSize,f=e.desktopSize,h=e.mobilePadding,d=e.tabletPadding,m=e.desktopPadding;n&&(void 0=n);if(t)if(Array.isArray(t))void 0=t.map(function(e,t){return"order-"+l[t]+"-"+e}).join(" ");else for(var y in t)void 0=t.hasOwnProperty("tablet")&&!t.hasOwnProperty("mobile")?"order-mobile-"+t[y]+" order-tablet-"+t[y]:"order-"+y+"-"+t[y];var b=u()("cmx-col","cmx-col-mobile-"+s,"cmx-col-tablet-"+p,"cmx-col-desktop-"+f,{"cmx-col-mobile-no-pad-right":0==h},{"cmx-col-tablet-no-pad-right":0==d},{"cmx-col-desktop-no-pad-right":0==m},{flex:o},{column:i},{row:a},{center:this.props.center},r,void 0);return c.a.createElement("div",{className:b,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){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.render=function(){var e=this,t=this.state,n=t.value,r=t.inputWidth,o=t.listVisible,i=this.props,a=i.name,s=i.options,p=u()("cmx-madlib__select-options",{"cmx-madlib__select-options--open":o});return c.a.createElement("div",{className:"cmx-madlib__select",onClick:function(){return e.show()}},c.a.createElement("span",{className:"cmx-madlib__select-placeholder--hidden",ref:function(t){e.placeholder=t}},n),c.a.createElement("input",{type:"hidden",name:a,value:n,ref:function(t){e.cmxInput=t}}),""==n&&c.a.createElement("span",{className:"cmx-madlib__select-caret"}),c.a.createElement("div",{className:"cmx-madlib__select-placeholder",style:{minWidth:r}},n),c.a.createElement("div",{className:p},s.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.onKeyUp=function(e){var t=i.state,n=t.active,r=t.step,o=t.value;n==r&&13==e.keyCode&&(i.props.onKeyUp(o),document.removeEventListener("keydown",i.onKeyUp))},i.state={inputWidth:i.props.inputWidth,value:i.props.value||""},i}return i(t,e),t.prototype.onBlur=function(){document.addEventListener("keydown",this.onKeyUp)},t.prototype.render=function(){var e=this,t=this.state,n=(t.currentlyFocused,t.value),r=t.inputWidth,o=this.props,i=(o.className,o.id),a=void 0===i?this.props.id||this.props.name:i,s=o.name,u=o.type;return c.a.createElement("div",{className:"cmx-madlib__text"},c.a.createElement("span",{className:"cmx-madlib__text-placeholder",ref:function(t){e.spanPlaceholder=t}},n),c.a.createElement("input",{className:"cmx-madlib__text-input",id:a,name:s,style:{width:r},type:u,value:n,onBlur:this.onBlur.bind(this),onChange:this.changeValue.bind(this),onKeyDown:function(t){return e.onKeyUp(t)},ref:function(t){e.cmxInput=t}}),c.a.createElement("div",{className:"cmx-madlib__enter-to-continue",onClick:function(){return e.props.onKeyUp(n)}},c.a.createElement("span",null,"press",c.a.createElement("b",null,"ENTER"),"to continue")))},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.bgPosition),a=u()("cmx-press-card"),s=u()("tag","category "+l.a.slugify(r));return c.a.createElement("div",{className:a},c.a.createElement("div",{className:"cover"},c.a.createElement("div",{className:s},r),c.a.createElement(f.BackgroundImage,{image:o[0].url,position:i||"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(e&&"Column"==e.type.displayName){var n=e.props.size[0],r=e.props.size[1],o=e.props.size[2];0=0+n,0=0+r,0=0+o;return c.a.cloneElement(e,{mobileSize:n,tabletSize:r,desktopSize:o,mobilePadding:!0,tabletPadding:!0,desktopPadding:!0})}if(null!=e)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,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.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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc