Comparing version 0.17.46 to 0.17.52
@@ -9,3 +9,4 @@ function _extends() { _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; }; return _extends.apply(this, arguments); } | ||
import Link from '../Link'; | ||
import Wrapper from '../Wrapper'; | ||
import Wrapper from '../Wrapper'; //import logoExtended from '../../../assets/logos/extended/en/wfp-logo-extended-black-en.svg'; | ||
//import logoVertical from '../../../assets/logos/vertical/en/wfp-logo-vertical-black-en.svg'; | ||
@@ -21,6 +22,8 @@ var Footer = function Footer(_ref) { | ||
linkHrefTwo = _ref.linkHrefTwo, | ||
logoExtended = _ref.logoExtended, | ||
logoVertical = _ref.logoVertical, | ||
metaContent = _ref.metaContent, | ||
secondary = _ref.secondary, | ||
pageWidth = _ref.pageWidth, | ||
other = _objectWithoutProperties(_ref, ["className", "children", "labelOne", "linkTextOne", "linkHrefOne", "labelTwo", "linkTextTwo", "linkHrefTwo", "metaContent", "secondary", "pageWidth"]); | ||
other = _objectWithoutProperties(_ref, ["className", "children", "labelOne", "linkTextOne", "linkHrefOne", "labelTwo", "linkTextTwo", "linkHrefTwo", "logoExtended", "logoVertical", "metaContent", "secondary", "pageWidth"]); | ||
@@ -54,7 +57,7 @@ var classNames = classnames('wfp--footer', className); | ||
className: "wfp--footer-cta-logo", | ||
src: "logos/extended/en/wfp-logo-extended-black-en.svg", | ||
src: logoExtended ? logoExtended : 'logos/extended/en/wfp-logo-extended-black-en.svg', | ||
alt: "World Food Programme Logo" | ||
}), React.createElement("img", { | ||
className: "wfp--footer-cta-logo-small", | ||
src: "logos/vertical/en/wfp-logo-vertical-black-en.svg", | ||
src: logoVertical ? logoVertical : 'logos/vertical/en/wfp-logo-vertical-black-en.svg', | ||
alt: "World Food Programme Logo" | ||
@@ -61,0 +64,0 @@ }), secondary)), metaContent && React.createElement("div", { |
@@ -68,15 +68,15 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
children: PropTypes.node.isRequired | ||
}; //const MainNavigation = ({children, className, id, pageWidth}) => { | ||
}; | ||
var MainNavigationEl = | ||
var MainNavigation = | ||
/*#__PURE__*/ | ||
function (_Component) { | ||
_inherits(MainNavigationEl, _Component); | ||
_inherits(MainNavigation, _Component); | ||
function MainNavigationEl(props) { | ||
function MainNavigation(props) { | ||
var _this; | ||
_classCallCheck(this, MainNavigationEl); | ||
_classCallCheck(this, MainNavigation); | ||
_this = _possibleConstructorReturn(this, (MainNavigationEl.__proto__ || Object.getPrototypeOf(MainNavigationEl)).call(this, props)); | ||
_this = _possibleConstructorReturn(this, (MainNavigation.__proto__ || Object.getPrototypeOf(MainNavigation)).call(this, props)); | ||
Object.defineProperty(_assertThisInitialized(_this), "onChangeSub", { | ||
@@ -115,2 +115,12 @@ configurable: true, | ||
}); | ||
Object.defineProperty(_assertThisInitialized(_this), "triggerSubNavigation", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: function value(trigger) { | ||
_this.setState({ | ||
activeMenuItem: undefined | ||
}); | ||
} | ||
}); | ||
Object.defineProperty(_assertThisInitialized(_this), "handleClickOutside", { | ||
@@ -135,3 +145,3 @@ configurable: true, | ||
_createClass(MainNavigationEl, [{ | ||
_createClass(MainNavigation, [{ | ||
key: "render", | ||
@@ -176,6 +186,6 @@ value: function render() { | ||
return MainNavigationEl; | ||
return MainNavigation; | ||
}(Component); | ||
MainNavigationEl.propTypes = { | ||
MainNavigation.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
@@ -190,6 +200,6 @@ | ||
}; | ||
MainNavigationEl.defaultProps = { | ||
MainNavigation.defaultProps = { | ||
pageWidth: 'narrow-full' | ||
}; | ||
var MainNavigation = onClickOutside(MainNavigationEl); | ||
export { MainNavigationItem, MainNavigation }; | ||
}; //const MainNavigation = onClickOutside(MainNavigationEl); | ||
export { MainNavigation, MainNavigationItem }; |
@@ -24,2 +24,4 @@ "use strict"; | ||
//import logoExtended from '../../../assets/logos/extended/en/wfp-logo-extended-black-en.svg'; | ||
//import logoVertical from '../../../assets/logos/vertical/en/wfp-logo-vertical-black-en.svg'; | ||
var Footer = function Footer(_ref) { | ||
@@ -34,6 +36,8 @@ var className = _ref.className, | ||
linkHrefTwo = _ref.linkHrefTwo, | ||
logoExtended = _ref.logoExtended, | ||
logoVertical = _ref.logoVertical, | ||
metaContent = _ref.metaContent, | ||
secondary = _ref.secondary, | ||
pageWidth = _ref.pageWidth, | ||
other = _objectWithoutProperties(_ref, ["className", "children", "labelOne", "linkTextOne", "linkHrefOne", "labelTwo", "linkTextTwo", "linkHrefTwo", "metaContent", "secondary", "pageWidth"]); | ||
other = _objectWithoutProperties(_ref, ["className", "children", "labelOne", "linkTextOne", "linkHrefOne", "labelTwo", "linkTextTwo", "linkHrefTwo", "logoExtended", "logoVertical", "metaContent", "secondary", "pageWidth"]); | ||
@@ -68,7 +72,7 @@ var classNames = (0, _classnames.default)('wfp--footer', className); | ||
className: "wfp--footer-cta-logo", | ||
src: "logos/extended/en/wfp-logo-extended-black-en.svg", | ||
src: logoExtended ? logoExtended : 'logos/extended/en/wfp-logo-extended-black-en.svg', | ||
alt: "World Food Programme Logo" | ||
}), _react.default.createElement("img", { | ||
className: "wfp--footer-cta-logo-small", | ||
src: "logos/vertical/en/wfp-logo-vertical-black-en.svg", | ||
src: logoVertical ? logoVertical : 'logos/vertical/en/wfp-logo-vertical-black-en.svg', | ||
alt: "World Food Programme Logo" | ||
@@ -75,0 +79,0 @@ }), secondary)), metaContent && _react.default.createElement("div", { |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.MainNavigation = exports.MainNavigationItem = void 0; | ||
exports.MainNavigationItem = exports.MainNavigation = void 0; | ||
@@ -86,15 +86,15 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
children: _propTypes.default.node.isRequired | ||
}; //const MainNavigation = ({children, className, id, pageWidth}) => { | ||
}; | ||
var MainNavigationEl = | ||
var MainNavigation = | ||
/*#__PURE__*/ | ||
function (_Component) { | ||
_inherits(MainNavigationEl, _Component); | ||
_inherits(MainNavigation, _Component); | ||
function MainNavigationEl(props) { | ||
function MainNavigation(props) { | ||
var _this; | ||
_classCallCheck(this, MainNavigationEl); | ||
_classCallCheck(this, MainNavigation); | ||
_this = _possibleConstructorReturn(this, (MainNavigationEl.__proto__ || Object.getPrototypeOf(MainNavigationEl)).call(this, props)); | ||
_this = _possibleConstructorReturn(this, (MainNavigation.__proto__ || Object.getPrototypeOf(MainNavigation)).call(this, props)); | ||
Object.defineProperty(_assertThisInitialized(_this), "onChangeSub", { | ||
@@ -133,2 +133,12 @@ configurable: true, | ||
}); | ||
Object.defineProperty(_assertThisInitialized(_this), "triggerSubNavigation", { | ||
configurable: true, | ||
enumerable: true, | ||
writable: true, | ||
value: function value(trigger) { | ||
_this.setState({ | ||
activeMenuItem: undefined | ||
}); | ||
} | ||
}); | ||
Object.defineProperty(_assertThisInitialized(_this), "handleClickOutside", { | ||
@@ -153,3 +163,3 @@ configurable: true, | ||
_createClass(MainNavigationEl, [{ | ||
_createClass(MainNavigation, [{ | ||
key: "render", | ||
@@ -194,6 +204,7 @@ value: function render() { | ||
return MainNavigationEl; | ||
return MainNavigation; | ||
}(_react.Component); | ||
MainNavigationEl.propTypes = { | ||
exports.MainNavigation = MainNavigation; | ||
MainNavigation.propTypes = { | ||
children: _propTypes.default.node.isRequired, | ||
@@ -208,6 +219,4 @@ | ||
}; | ||
MainNavigationEl.defaultProps = { | ||
MainNavigation.defaultProps = { | ||
pageWidth: 'narrow-full' | ||
}; | ||
var MainNavigation = (0, _reactOnclickoutside.default)(MainNavigationEl); | ||
exports.MainNavigation = MainNavigation; | ||
}; //const MainNavigation = onClickOutside(MainNavigationEl); |
{ | ||
"name": "@wfp/ui", | ||
"version": "0.17.46", | ||
"version": "0.17.52", | ||
"description": "WFP UI-Kit Next", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2", |
@@ -7,2 +7,5 @@ import PropTypes from 'prop-types'; | ||
//import logoExtended from '../../../assets/logos/extended/en/wfp-logo-extended-black-en.svg'; | ||
//import logoVertical from '../../../assets/logos/vertical/en/wfp-logo-vertical-black-en.svg'; | ||
const Footer = ({ | ||
@@ -17,2 +20,4 @@ className, | ||
linkHrefTwo, | ||
logoExtended, | ||
logoVertical, | ||
metaContent, | ||
@@ -49,4 +54,12 @@ secondary, | ||
<div className="wfp--footer-cta"> | ||
<img className="wfp--footer-cta-logo" src="logos/extended/en/wfp-logo-extended-black-en.svg" alt="World Food Programme Logo" /> | ||
<img className="wfp--footer-cta-logo-small" src="logos/vertical/en/wfp-logo-vertical-black-en.svg" alt="World Food Programme Logo" /> | ||
<img | ||
className="wfp--footer-cta-logo" | ||
src={logoExtended ? logoExtended : 'logos/extended/en/wfp-logo-extended-black-en.svg'} | ||
alt="World Food Programme Logo" | ||
/> | ||
<img | ||
className="wfp--footer-cta-logo-small" | ||
src={logoVertical ? logoVertical : 'logos/vertical/en/wfp-logo-vertical-black-en.svg'} | ||
alt="World Food Programme Logo" | ||
/> | ||
{secondary} | ||
@@ -53,0 +66,0 @@ </div> |
@@ -62,5 +62,4 @@ import PropTypes from 'prop-types'; | ||
//const MainNavigation = ({children, className, id, pageWidth}) => { | ||
class MainNavigationEl extends Component { | ||
class MainNavigation extends Component { | ||
constructor(props) { | ||
@@ -97,2 +96,9 @@ super(props); | ||
triggerSubNavigation = (trigger) => { | ||
this.setState({ | ||
activeMenuItem: undefined | ||
}); | ||
} | ||
handleClickOutside = evt => { | ||
@@ -152,3 +158,3 @@ console.log("clicked outside", evt); | ||
MainNavigationEl.propTypes = { | ||
MainNavigation.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
@@ -163,8 +169,8 @@ /** | ||
MainNavigationEl.defaultProps = { | ||
MainNavigation.defaultProps = { | ||
pageWidth: 'narrow-full' | ||
}; | ||
const MainNavigation = onClickOutside(MainNavigationEl); | ||
//const MainNavigation = onClickOutside(MainNavigationEl); | ||
export { MainNavigationItem, MainNavigation }; | ||
export { MainNavigation, MainNavigationItem }; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react"),require("classnames"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","classnames","react-dom"],t):t(e.WfpComponentsReact={},e.PropTypes,e.React,e.classNames,e.ReactDOM)}(this,function(e,t,n,a,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var i="default"in n?n.default:n;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}function d(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a=a&&a.hasOwnProperty("default")?a.default:a;var h=function(e){var t=e.background,n=e.children,r=e.className,o=e.pageWidth,l=e.spacing,s=d(e,["background","children","className","pageWidth","spacing"]),p=a(c({"wfp--wrapper":!0,"wfp--wrapper--narrow":"narrow"===o,"wfp--wrapper--narrower":"narrower"===o,"wfp--wrapper--narrowest":"narrowest"===o,"wfp--wrapper--narrow wfp--wrapper--mobile-full":"narrow-full"===o,"wfp--wrapper--narrower wfp--wrapper--mobile-full":"narrower-full"===o,"wfp--wrapper--spacing-md":"md"===l},"".concat(r),r));if(t){var f=a({"wfp--wrapper--background-lighter":"lighter"===t});return i.createElement("div",{className:f},i.createElement("div",u({className:p},s),n))}return i.createElement("div",u({className:p},s),n)};h.propTypes={children:t.node,className:t.string,pageWidth:t.string};var b=function(e){var t=e.className,n=e.children,r=a("wfp--banner-navigation__item",t);return i.createElement("li",{className:r},n)};b.propTypes={className:t.string,children:t.node.isRequired};var v=function(e){var t=e.children,n=e.className,r=e.id,o=e.pageWidth,l=a("wfp--banner-navigation",n);return i.createElement("div",{id:r,className:l},i.createElement(h,{pageWidth:o},i.createElement("ul",{className:"wfp--banner-navigation__list"},t)))};v.propTypes={children:t.node.isRequired,className:t.string,id:t.string,wrapperClassName:t.string},v.defaultProps={pageWidth:"narrower"};var g=function(e){function t(e){var n;return o(this,t),n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),Object.defineProperty(f(n),"toggleBlockquote",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState({open:!n.state.open})}}),Object.defineProperty(f(n),"showInnerHtml",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return{__html:e}}}),n.state={open:!1},n}return p(t,i.Component),s(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=e.style,o=e.title,l=e.toggleable,s=(e.columnCount,e.innerHtml),u=e.type,p=(d(e,["className","children","style","title","toggleable","columnCount","innerHtml","type"]),a({"wfp--blockquote":!0,"wfp--blockquote--toggleable":!0===l,"wfp--blockquote--light":"light"===u,"wfp--blockquote--code":"code"===u,"wfp--blockquote--warning":"warning"===u,"wfp--blockquote--info":"info"===u,"wfp--blockquote--open":this.state.open})),f=a(c({"wfp--blockquote__content":!0},"".concat(t),t));return i.createElement("div",{className:p},o&&i.createElement("div",{onClick:this.toggleBlockquote,className:"wfp--blockquote__title"},o),i.createElement("div",{className:f,style:r},n,s&&i.createElement("div",{dangerouslySetInnerHTML:this.showInnerHtml(s)})))}}]),t}();g.propTypes={children:t.node,type:t.string};var y=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--breadcrumb wfp--breadcrumb--no-trailing-slash",n);return i.createElement("div",u({className:o},r),t)};y.propTypes={children:t.node,className:t.string};var w=function(e){var t=e.children,n=e.className,r=e.href,o=d(e,["children","className","href"]),l=a("wfp--link",n);return i.createElement("a",u({href:r,className:l},o),t)};w.propTypes={children:t.node,className:t.string,href:t.string};var _=function(e){var t=e.children,n=e.className,r=e.href,o=d(e,["children","className","href"]),l=a("wfp--breadcrumb-item",n);return i.createElement("div",u({className:l},o),function(e,t){return"string"==typeof e&&void 0!==t?i.createElement(w,{href:t},e):i.cloneElement(i.Children.only(e),{className:"wfp--link"})}(t,r))};_.propTypes={children:t.node,className:t.string,href:t.string};var N=function(e){var t=e.className,n=d(e,["className"]),r=a("wfp--breadcrumb-home",t);return i.createElement("div",u({className:r},n))};N.propTypes={type:t.string};var E=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--icon",n);return i.createElement("div",u({className:o},r),t)};E.propTypes={children:t.node,className:t.string};var O=function(e){var t=e.children,n=e.className,r=e.disabled,o=e.small,l=e.kind,s=e.href,c=e.tabIndex,p=e.type,f=e.icon,m=e.iconDescription,h=d(e,["children","className","disabled","small","kind","href","tabIndex","type","icon","iconDescription"]),b={tabIndex:c,className:a(n,{"wfp--btn":!0,"wfp--btn--sm":o,"wfp--btn--primary":"primary"===l,"wfp--btn--danger":"danger"===l,"wfp--btn--secondary":"secondary"===l,"wfp--btn--ghost":"ghost"===l,"wfp--btn--danger--primary":"danger--primary"===l,"wfp--btn--tertiary":"tertiary"===l})},v=f?i.createElement(E,{name:f,description:m,className:"wfp--btn__icon"}):null,g=i.createElement("button",u({},h,b,{disabled:r,type:p}),t,v),y=i.createElement("a",u({},h,b,{href:s,role:"button"}),t,v);return s?y:g};O.propTypes={children:t.node,className:t.string,disabled:t.bool,small:t.bool,kind:t.oneOf(["primary","secondary","danger","ghost","danger--primary","tertiary"]).isRequired,href:t.string,tabIndex:t.number,type:t.oneOf(["button","reset","submit"]),role:t.string,icon:t.string,iconDescription:function(e){if(e.icon&&!e.iconDescription)return new Error("icon property specified without also providing an iconDescription property.")}},O.defaultProps={iconDescription:"Provide icon description if icon is used",tabIndex:0,type:"button",disabled:!1,small:!1,kind:"primary"};var C=function(e){var t,n=e.className,r=e.id,o=e.input,l=e.labelText,s=e.onChange,c=e.indeterminate,p=e.hideLabel,f=e.wrapperClassName,m=d(e,["className","id","input","labelText","onChange","indeterminate","hideLabel","wrapperClassName"]),h=a("wfp--checkbox-label",n),b=a({"wfp--visually-hidden":p}),v=a("wfp--form-item","wfp--checkbox-wrapper",f);return i.createElement("div",{className:v},i.createElement("input",u({},m,o,{type:"checkbox",onClick:function(e){s&&s(o.checked,r,e),o&&o.onChange&&o.onChange(o.checked)},className:"wfp--checkbox",id:r,ref:function(e){(t=e)&&(t.indeterminate=c)}})),i.createElement("label",{htmlFor:r,className:h},i.createElement("span",{className:b},l)))};C.propTypes={checked:t.bool,defaultChecked:t.bool,indeterminate:t.bool,className:t.string,disabled:t.bool,id:t.string.isRequired,labelText:t.node.isRequired,hideLabel:t.bool,onChange:t.func,wrapperClassName:t.string},C.defaultProps={onChange:function(){},indeterminate:!1};var T=function(e){var t=e.className,n=e.children,r=e.labelOne,o=e.linkTextOne,l=e.linkHrefOne,s=e.labelTwo,c=e.linkTextTwo,p=e.linkHrefTwo,f=e.metaContent,m=e.secondary,b=e.pageWidth,v=d(e,["className","children","labelOne","linkTextOne","linkHrefOne","labelTwo","linkTextTwo","linkHrefTwo","metaContent","secondary","pageWidth"]),g=a("wfp--footer",t);return i.createElement("footer",u({},v,{className:g}),i.createElement(h,{pageWidth:b},i.createElement("div",{className:"wfp--footer__content"},n?i.createElement("div",{className:"wfp--footer-info"},n):i.createElement("div",{className:"wfp--footer-info"},i.createElement("div",{className:"wfp--footer-info__item"},i.createElement("p",{className:"wfp--footer-label"},r),i.createElement(w,{href:l},o)),i.createElement("div",{className:"wfp--footer-info__item"},i.createElement("p",{className:"wfp--footer-label"},s),i.createElement(w,{href:p},c))),i.createElement("div",{className:"wfp--footer-cta"},i.createElement("img",{className:"wfp--footer-cta-logo",src:"logos/extended/en/wfp-logo-extended-black-en.svg",alt:"World Food Programme Logo"}),i.createElement("img",{className:"wfp--footer-cta-logo-small",src:"logos/vertical/en/wfp-logo-vertical-black-en.svg",alt:"World Food Programme Logo"}),m)),f&&i.createElement("div",{className:"wfp--footer-meta"},f)))};T.propTypes={children:t.node,className:t.string,labelOne:t.string,linkTextOne:t.string,linkHrefOne:t.string,labelTwo:t.string,linkTextTwo:t.string,linkHrefTwo:t.string,buttonText:t.string},T.defaultProps={labelOne:"Need Help?",linkTextOne:"Contact Bluemix Sales",linkHrefOne:"#",labelTwo:"Estimate Monthly Cost",linkTextTwo:"Cost Calculator",linkHrefTwo:"#",buttonText:"Create"};var k=function(e){var t=e.className,n=e.children,r=d(e,["className","children"]),o=a("wfp--form",t);return i.createElement("form",u({className:o},r)," ",n," ")};k.propTypes={children:t.node,className:t.string};var x=function(e){var t=e.legendText,n=e.invalid,r=e.children,o=e.className,l=e.message,s=e.messageText,c=d(e,["legendText","invalid","children","className","message","messageText"]),p=a("wfp--form-group__title",o),f=a("wfp--fieldset",o);return i.createElement("fieldset",u({},n&&{"data-invalid":""},{className:f},c),i.createElement("legend",{className:p},t),r,l?i.createElement("div",{className:"wfp--form__requirements"},s):null)};x.propTypes={children:t.node,legendText:t.string.isRequired,className:t.string,invalid:t.bool,message:t.bool,messageText:t.string},x.defaultProps={invalid:!1,message:!1,messageText:""};var P=function(e){var t=e.className,n=e.children,r=d(e,["className","children"]),o=a("bx--form-item",t);return i.createElement("div",u({className:o},r),n)};P.propTypes={children:t.node,className:t.string};var j=function(e){var t=e.className,n=e.children,r=e.id,o=d(e,["className","children","id"]),l=a("bx--label",t);return i.createElement("label",u({htmlFor:r,className:l},o),n)};function S(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}j.propTypes={children:t.node,className:t.string,id:t.string};var I=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};var L,R,M=(void 0===L&&(L=0),function(){return++L}),q={},D={},B=["touchstart","touchmove"],z="ignore-react-onclickoutside";function A(e,t){var n=null;return-1!==B.indexOf(t)&&R&&(n={passive:!e.props.preventDefault}),n}var W=function(e){var t=e.activeMenuItem,n=e.className,r=e.children,o=e.menuItem,l=e.onChangeSub,s=e.subNavigation,c=a(n,{"wfp--main-navigation__item":!0,"wfp--main-navigation__item--open":o===t}),u=a({"wfp--main-navigation__sub":!0,"wfp--main-navigation__sub--open":o===t}),p=a({"wfp--main-navigation__trigger":!0,"wfp--main-navigation__trigger--has-sub":s,"wfp--main-navigation__trigger--open":o===t}),d=s?i.cloneElement(r,{onClick:function(e){return l(e,o,"toggle")}}):r;return i.createElement("li",{className:c},i.createElement("div",{className:p},d),s&&i.createElement("div",{className:u},s))};W.propTypes={className:t.string,children:t.node.isRequired};var H=function(e){function t(e){var n;return o(this,t),n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),Object.defineProperty(f(n),"onChangeSub",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t,a){if(e.preventDefault(),console.log("I've been clicked",e.target,e.target.id,t,a),"toggle"===a){var r=void 0===n.state.activeMenuItem||n.state.activeMenuItem!==t?t:void 0;n.setState({activeMenuItem:r})}}}),Object.defineProperty(f(n),"toggleMenu",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState({openMobile:!n.state.openMobile})}}),Object.defineProperty(f(n),"handleClickOutside",{configurable:!0,enumerable:!0,writable:!0,value:function(e){console.log("clicked outside",e),n.setState({activeMenuItem:void 0})}}),n.state={openMobile:!1,activeMenuItem:void 0},n}return p(t,n.Component),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.id,l=t.logo,s=t.pageWidth,c=a("wfp--main-navigation",r),u=a("wfp--main-navigation__list",{"wfp--main-navigation__list--open":this.state.openMobile});return i.createElement("div",{id:o,className:c},i.createElement(h,{pageWidth:s,className:"wfp--main-navigation__wrapper"},i.createElement("div",{className:"wfp--main-navigation__logo-wrapper"},i.createElement(O,{className:"wfp--main-navigation__button",onClick:this.toggleMenu},"Menu"),i.createElement("div",{className:"wfp--main-navigation__logo"},l)),i.createElement("ul",{className:u},i.Children.map(n,function(t,n){return i.cloneElement(t,{activeMenuItem:e.state.activeMenuItem,menuItem:n,onChangeSub:e.onChangeSub})}))))}}]),t}();H.propTypes={children:t.node.isRequired,className:t.string,id:t.string,wrapperClassName:t.string},H.defaultProps={pageWidth:"narrow-full"};var F,U,V,$,G=(F=H,$=V=function(e){var t,a;function i(t){var n;return(n=e.call(this,t)||this).__outsideClickHandler=function(e){if("function"!=typeof n.__clickOutsideHandlerProp){var t=n.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else n.__clickOutsideHandlerProp(e)},n.enableOnClickOutside=function(){if("undefined"!=typeof document&&!D[n._uid]){void 0===R&&(R=I()),D[n._uid]=!0;var e=n.props.eventTypes;e.forEach||(e=[e]),q[n._uid]=function(e){var t;n.props.disableOnClickOutside||null!==n.componentNode&&(n.props.preventDefault&&e.preventDefault(),n.props.stopPropagation&&e.stopPropagation(),n.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(S(e,t,n))return!0;e=e.parentNode}return e}(e.target,n.componentNode,n.props.outsideClickIgnoreClass)===document&&n.__outsideClickHandler(e))},e.forEach(function(e){document.addEventListener(e,q[n._uid],A(n,e))})}},n.disableOnClickOutside=function(){delete D[n._uid];var e=q[n._uid];if(e&&"undefined"!=typeof document){var t=n.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,A(n,t))}),delete q[n._uid]}},n.getRef=function(e){return n.instanceRef=e},n._uid=M(),n}a=e,(t=i).prototype=Object.create(a.prototype),t.prototype.constructor=t,t.__proto__=a;var o=i.prototype;return o.getInstance=function(){if(!F.prototype.isReactComponent)return this;var e=this.instanceRef;return e.getInstance?e.getInstance():e},o.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(U&&"function"==typeof U.handleClickOutside&&(this.__clickOutsideHandlerProp=U.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=r.findDOMNode(this.getInstance()),this.enableOnClickOutside()}},o.componentDidUpdate=function(){this.componentNode=r.findDOMNode(this.getInstance())},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var e=this.props,t=(e.excludeScrollbar,function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["excludeScrollbar"]));return F.prototype.isReactComponent?t.ref=this.getRef:t.wrappedRef=this.getRef,t.disableOnClickOutside=this.disableOnClickOutside,t.enableOnClickOutside=this.enableOnClickOutside,n.createElement(F,t)},i}(n.Component),V.displayName="OnClickOutside("+(F.displayName||F.name||"Component")+")",V.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:U&&U.excludeScrollbar||!1,outsideClickIgnoreClass:z,preventDefault:!1,stopPropagation:!1},V.getClass=function(){return F.getClass?F.getClass():F},$),X=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),o=a("wfp--sub-navigation",{className:n});return i.createElement("div",u({className:o},r),t)};X.propTypes={},X.defaultProps={};var K=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),o=a("wfp--sub-navigation__item",{className:n});return i.createElement("div",u({className:o},r),t)};K.propTypes={},K.defaultProps={};var Y=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),o=a("wfp--sub-navigation__header",{className:n});return i.createElement("div",u({className:o},r),t)};Y.propTypes={},Y.defaultProps={};var J=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),o=a("wfp--sub-navigation__filter",{className:n});return i.createElement("div",u({className:o},r),t)};J.propTypes={image:t.string},J.defaultProps={};var Q=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--sub-navigation__list",{className:n});return i.createElement("div",u({className:o},r),t)};Q.propTypes={image:t.string},Q.defaultProps={};var Z=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--sub-navigation__content",{className:n});return i.createElement("div",u({className:o},r),t)};Z.propTypes={image:t.string};var ee=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--sub-navigation__title",{className:n});return i.createElement("div",u({className:o},r),t)};ee.propTypes={image:t.string},ee.defaultProps={};var te=function(e){var t=e.children,n=e.className,r=e.title,o=d(e,["children","className","title"]),l=a("wfp--sub-navigation__group",{className:n});return i.createElement("div",u({className:l},o),r&&i.createElement("h3",{className:"wfp--sub-navigation__group__title"},r),t)};te.propTypes={image:t.string},te.defaultProps={};var ne={children:t.node,className:t.string,size:t.oneOf(["single","double"])},ae={children:t.node,centered:t.bool,className:t.string},re={children:t.node,className:t.string},ie={centered:!1},oe=function(e){var t=e.children,n=e.className,r=e.size,o=d(e,["children","className","size"]),l=a("wfp--module wfp--module--".concat(r),n);return i.createElement("div",u({className:l},o),i.createElement("div",{className:"wfp--module__inner"},t))},le=function(e){var t=e.children,n=e.className,r=e.centered,o=d(e,["children","className","centered"]),l=a("wfp--module__content",n,{"wfp--module__content--centered":r});return i.createElement("div",u({className:l},o),t)},se=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--module__header",n);return i.createElement("div",u({className:o},r),i.createElement("h1",{className:"wfp--module__title"},t))},ce=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),o=a("wfp--module__footer",n);return i.createElement("div",u({className:o},r),t)};oe.propTypes=ne,le.propTypes=ae,oe.defaultProps={size:"double"},le.defaultProps=ie,se.propTypes=re,ce.defaultProps=ie;var ue=function(e){function t(e){var n;o(this,t),n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),pe.call(f(n));var a=e.value;return(e.min||0===e.min)&&(a=Math.max(e.min,a)),n.state={value:a},n}return p(t,n.Component),s(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.props.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.disabled,o=(t.iconDescription,t.id),l=t.label,s=t.max,c=t.min,p=t.step,f=t.invalid,m=t.invalidText,h=d(t,["className","disabled","iconDescription","id","label","max","min","step","invalid","invalidText"]),b=a("wfp--number",n),v={disabled:r,id:o,max:s,min:c,step:p,onChange:this.handleChange,value:this.state.value},g={disabled:r,type:"button",className:"wfp--number__control-btn"},y={},w=null;return f&&(y["data-invalid"]=!0,w=i.createElement("div",{className:"wfp--form-requirement"},m)),i.createElement("div",{className:"wfp--form-item"},i.createElement("label",{htmlFor:o,className:"wfp--label"},l),i.createElement("div",u({className:b},y),i.createElement("input",u({type:"number",pattern:"[0-9]*"},h,v,{ref:this._handleInputRef})),i.createElement("div",{className:"wfp--number__controls"},i.createElement("button",u({},g,{onClick:function(t){return e.handleArrowClick(t,"up")}}),i.createElement(E,{className:"up-icon",name:"caret--up",description:this.props.iconDescription,viewBox:"0 2 10 5"})),i.createElement("button",u({},g,{onClick:function(t){return e.handleArrowClick(t,"down")}}),i.createElement(E,{className:"down-icon",name:"caret--down",viewBox:"0 2 10 5",description:this.props.iconDescription})))),w)}}]),t}();Object.defineProperty(ue,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:t.string,disabled:t.bool,iconDescription:t.string.isRequired,id:t.string.isRequired,label:t.string,max:t.number,min:t.number,onChange:t.func,onClick:t.func,step:t.number,value:t.number,invalid:t.bool,invalidText:t.string}}),Object.defineProperty(ue,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{disabled:!1,iconDescription:"choose a number",label:" ",onChange:function(){},onClick:function(){},step:1,value:0,invalid:!1,invalidText:"Provide invalidText"}});var pe=function(){var e=this;Object.defineProperty(this,"_inputRef",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty(this,"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(t){e.props.disabled||(t.persist(),t.imaginaryTarget=e._inputRef,e.setState({value:t.target.value},function(){e.props.onChange(t)}))}}),Object.defineProperty(this,"handleArrowClick",{configurable:!0,enumerable:!0,writable:!0,value:function(t,n){var a="string"==typeof e.state.value?Number(e.state.value):e.state.value,r=e.props,i=r.disabled,o=r.min,l=r.max,s=r.step;!i&&("down"===n?void 0!==o&&a>o||void 0===o:void 0!==l&&a<l||void 0===l)&&(a="down"===n?a-s:a+s,t.persist(),t.imaginaryTarget=e._inputRef,e.setState({value:a},function(){e.props.onClick(t,n),e.props.onChange(t,n)}))}}),Object.defineProperty(this,"_handleInputRef",{configurable:!0,enumerable:!0,writable:!0,value:function(t){e._inputRef=t}})},de=0;var fe=function(e){function t(){var e,n,a;o(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){a.props.onChange&&a.props.onChange(a.props.value,a.props.name,e),a.props.input&&a.props.input.onChange&&a.props.input.onChange(e.target.value)}}),n))}return p(t,i.Component),s(t,[{key:"componentWillMount",value:function(){this.uid=this.props.id||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return de++,"".concat(e).concat(de)}()}},{key:"render",value:function(){var e=a("radioButtonWrapper",this.props.className),t=this.props,n=(t.component,t.labelText),r=t.input,o=t.value,l=d(t,["component","labelText","input","value"]);return i.createElement("div",{className:e},i.createElement("input",u({},l,r,{type:"radio",value:r&&r.value?r.value:o,className:"wfp--radio-button",onChange:this.handleChange,id:this.uid})),i.createElement("label",{htmlFor:this.uid,className:"wfp--radio-button__label"},i.createElement("span",{className:"wfp--radio-button__appearance"}),n))}}]),t}();Object.defineProperty(fe,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{checked:t.bool,className:t.string,defaultChecked:t.bool,disabled:t.bool,id:t.string,labelText:t.string.isRequired,name:t.string,onChange:t.func,value:t.oneOfType([t.string,t.number])}}),Object.defineProperty(fe,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{onChange:function(){}}});var me=function(){};var he=me,be=function(e){function t(){var e,n,a;o(this,t);for(var r=arguments.length,l=new Array(r),s=0;s<r;s++)l[s]=arguments[s];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),Object.defineProperty(f(a),"state",{configurable:!0,enumerable:!0,writable:!0,value:{selected:null}}),Object.defineProperty(f(a),"getRadioButtons",{configurable:!0,enumerable:!0,writable:!0,value:function(){return i.Children.map(a.props.children,function(e){var t=e.props,n=t.value,r=d(t,["value"]);return e.props.hasOwnProperty("checked")&&he(!1,"Instead of using the checked property on the RadioButton, set\n the defaultSelected property or valueSelected property on the RadioButtonGroup."),i.createElement(fe,u({},r,{name:a.props.name,key:n,value:n,onChange:a.handleChange,checked:n===a.state.selected}))})}}),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t,n){e!==a.state.selected&&(a.setState({selected:e}),a.props.onChange(e,a.props.name,n))}}),n))}return p(t,i.Component),s(t,[{key:"componentWillMount",value:function(){this.setState({selected:this.props.valueSelected||this.props.defaultSelected||null})}},{key:"componentWillReceiveProps",value:function(e){e.hasOwnProperty("valueSelected")&&this.setState({selected:e.valueSelected})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.className;return i.createElement("div",{className:"wfp--form-item"},i.createElement("div",{className:n,disabled:t},this.getRadioButtons()))}}]),t}();Object.defineProperty(be,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:t.node,className:t.string,defaultSelected:t.oneOfType([t.string,t.number]),name:t.string.isRequired,disabled:t.bool,onChange:t.func,valueSelected:t.oneOfType([t.string,t.number])}}),Object.defineProperty(be,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{onChange:function(){},className:"wfp--radio-button-group"}});var ve=function(e){function t(){var e,n,a;o(this,t);for(var r=arguments.length,l=new Array(r),s=0;s<r;s++)l[s]=arguments[s];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),Object.defineProperty(f(a),"state",{configurable:!0,enumerable:!0,writable:!0,value:{format:"list",hasContent:a.props.value||a.props.defaultValue||!1}}),Object.defineProperty(f(a),"clearInput",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if(a.props.value){var t=Object.assign({},e.target,{target:{value:""}});a.props.onChange(t)}else a.input.value="",a.props.onChange(e);a.setState({hasContent:!1},function(){return a.input.focus()})}}),Object.defineProperty(f(a),"toggleLayout",{configurable:!0,enumerable:!0,writable:!0,value:function(){"list"===a.state.format?a.setState({format:"grid"}):a.setState({format:"list"})}}),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){a.setState({hasContent:""!==e.target.value}),a.props.onChange(e)}}),Object.defineProperty(f(a),"searchFilterBtn",{configurable:!0,enumerable:!0,writable:!0,value:function(){if(!a.props.small)return i.createElement("button",{className:"wfp--search-button",type:"button","aria-label":a.props.searchButtonLabelText},i.createElement(E,{name:"filter--glyph",description:"filter",className:"wfp--search-filter"}))}}),Object.defineProperty(f(a),"searchLayoutBtn",{configurable:!0,enumerable:!0,writable:!0,value:function(){if(!a.props.small)return i.createElement("button",{className:"wfp--search-button",type:"button",onClick:a.toggleLayout,"aria-label":a.props.layoutButtonLabelText},"list"===a.state.format?i.createElement("div",{className:"wfp--search__toggle-layout__container"},i.createElement(E,{name:"list",description:"list",className:"wfp--search-view"})):i.createElement("div",{className:"wfp--search__toggle-layout__container"},i.createElement(E,{name:"grid",description:"toggle-layout",className:"wfp--search-view"})))}}),n))}return p(t,n.Component),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.type,o=t.id,l=void 0===o?this._inputId=this._inputId||"search__input__id_".concat(Math.random().toString(36).substr(2)):o,s=t.placeHolderText,p=t.labelText,f=t.size,m=d(t,["className","type","id","placeHolderText","labelText","size"]),h=this.state.hasContent,b=a(c({"wfp--search wfp--search-with-options":!0,"wfp--search--lg":!f,"wfp--search--md":"medium"===f,"wfp--search--sm":"small"===f},n,n)),v=a({"wfp--search-close":!0,"wfp--search-close--hidden":!h});return i.createElement("div",{className:b,role:"search"},i.createElement("div",{name:"search--glyph",description:"search",className:"wfp--search-magnifier"}),i.createElement("label",{htmlFor:l,className:"wfp--label"},p),i.createElement("input",u({},m,{type:r,className:"wfp--search-input",id:l,placeholder:s,onChange:this.handleChange,ref:function(t){e.input=t}})),i.createElement(E,{name:"close--glyph",description:"close",className:v,onClick:this.clearInput}))}}]),t}();Object.defineProperty(ve,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:t.node,className:t.string,type:t.string,size:t.string,placeHolderText:t.string,labelText:t.node.isRequired,id:t.string,searchButtonLabelText:t.string,layoutButtonLabelText:t.string}}),Object.defineProperty(ve,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{type:"text",small:!1,placeHolderText:"",onChange:function(){}}});var ge=function(e){var t=e.className,n=e.children,r=a("wfp--secondary-tabs__item",t);return i.createElement("li",{className:r},n)};ge.propTypes={className:t.string,children:t.node.isRequired};var ye=function(e){var t=e.children,n=e.className,r=e.id,o=a("wfp--secondary-tabs",n);return i.createElement("div",{id:r,className:o},i.createElement("ul",{className:"wfp--secondary-tabs__list"},t))};ye.propTypes={children:t.node.isRequired,className:t.string,id:t.string};var we="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var _e,Ne=(function(e,t){var n=200,a="__lodash_hash_undefined__",r=1,i=2,o=9007199254740991,l="[object Arguments]",s="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",p="[object Date]",d="[object Error]",f="[object Function]",m="[object GeneratorFunction]",h="[object Map]",b="[object Number]",v="[object Null]",g="[object Object]",y="[object Proxy]",w="[object RegExp]",_="[object Set]",N="[object String]",E="[object Symbol]",O="[object Undefined]",C="[object ArrayBuffer]",T="[object DataView]",k=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[l]=P[s]=P[C]=P[u]=P[T]=P[p]=P[d]=P[f]=P[h]=P[b]=P[g]=P[w]=P[_]=P[N]=P["[object WeakMap]"]=!1;var j="object"==typeof we&&we&&we.Object===Object&&we,S="object"==typeof self&&self&&self.Object===Object&&self,I=j||S||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L,q=M&&j.process,D=function(){try{return q&&q.binding&&q.binding("util")}catch(e){}}(),B=D&&D.isTypedArray;function z(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}function A(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var H,F,U,V=Array.prototype,$=Function.prototype,G=Object.prototype,X=I["__core-js_shared__"],K=$.toString,Y=G.hasOwnProperty,J=(H=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",Q=G.toString,Z=RegExp("^"+K.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=M?I.Buffer:void 0,te=I.Symbol,ne=I.Uint8Array,ae=G.propertyIsEnumerable,re=V.splice,ie=te?te.toStringTag:void 0,oe=Object.getOwnPropertySymbols,le=ee?ee.isBuffer:void 0,se=(F=Object.keys,U=Object,function(e){return F(U(e))}),ce=Be(I,"DataView"),ue=Be(I,"Map"),pe=Be(I,"Promise"),de=Be(I,"Set"),fe=Be(I,"WeakMap"),me=Be(Object,"create"),he=He(ce),be=He(ue),ve=He(pe),ge=He(de),ye=He(fe),_e=te?te.prototype:void 0,Ne=_e?_e.valueOf:void 0;function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Te(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ce;++t<n;)this.add(e[t])}function ke(e){var t=this.__data__=new Oe(e);this.size=t.size}function xe(e,t){var n=Ve(e),a=!n&&Ue(e),r=!n&&!a&&$e(e),i=!n&&!a&&!r&&Je(e),o=n||a||r||i,l=o?function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}(e.length,String):[],s=l.length;for(var c in e)!t&&!Y.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||We(c,s))||l.push(c);return l}function Pe(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function je(e){return null==e?void 0===e?O:v:ie&&ie in Object(e)?function(e){var t=Y.call(e,ie),n=e[ie];try{e[ie]=void 0;var a=!0}catch(e){}var r=Q.call(e);a&&(t?e[ie]=n:delete e[ie]);return r}(e):function(e){return Q.call(e)}(e)}function Se(e){return Ye(e)&&je(e)==l}function Ie(e,t,n,a,o){return e===t||(null==e||null==t||!Ye(e)&&!Ye(t)?e!=e&&t!=t:function(e,t,n,a,o,c){var f=Ve(e),m=Ve(t),v=f?s:Ae(e),y=m?s:Ae(t),O=(v=v==l?g:v)==g,k=(y=y==l?g:y)==g,x=v==y;if(x&&$e(e)){if(!$e(t))return!1;f=!0,O=!1}if(x&&!O)return c||(c=new ke),f||Je(e)?Me(e,t,n,a,o,c):function(e,t,n,a,o,l,s){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!l(new ne(e),new ne(t)));case u:case p:case b:return Fe(+e,+t);case d:return e.name==t.name&&e.message==t.message;case w:case N:return e==t+"";case h:var c=A;case _:var f=a&r;if(c||(c=W),e.size!=t.size&&!f)return!1;var m=s.get(e);if(m)return m==t;a|=i,s.set(e,t);var v=Me(c(e),c(t),a,o,l,s);return s.delete(e),v;case E:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}(e,t,v,n,a,o,c);if(!(n&r)){var P=O&&Y.call(e,"__wrapped__"),j=k&&Y.call(t,"__wrapped__");if(P||j){var S=P?e.value():e,I=j?t.value():t;return c||(c=new ke),o(S,I,n,a,c)}}if(!x)return!1;return c||(c=new ke),function(e,t,n,a,i,o){var l=n&r,s=qe(e),c=s.length,u=qe(t).length;if(c!=u&&!l)return!1;for(var p=c;p--;){var d=s[p];if(!(l?d in t:Y.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var m=!0;o.set(e,t),o.set(t,e);for(var h=l;++p<c;){d=s[p];var b=e[d],v=t[d];if(a)var g=l?a(v,b,d,t,e,o):a(b,v,d,e,t,o);if(!(void 0===g?b===v||i(b,v,n,a,o):g)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(m=!1)}return o.delete(e),o.delete(t),m}(e,t,n,a,o,c)}(e,t,n,a,Ie,o))}function Le(e){return!(!Ke(e)||J&&J in e)&&(Ge(e)?Z:k).test(He(e))}function Re(e){if(n=(t=e)&&t.constructor,a="function"==typeof n&&n.prototype||G,t!==a)return se(e);var t,n,a,r=[];for(var i in Object(e))Y.call(e,i)&&"constructor"!=i&&r.push(i);return r}function Me(e,t,n,a,o,l){var s=n&r,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var p=l.get(e);if(p&&l.get(t))return p==t;var d=-1,f=!0,m=n&i?new Te:void 0;for(l.set(e,t),l.set(t,e);++d<c;){var h=e[d],b=t[d];if(a)var v=s?a(b,h,d,t,e,l):a(h,b,d,e,t,l);if(void 0!==v){if(v)continue;f=!1;break}if(m){if(!z(t,function(e,t){if(r=t,!m.has(r)&&(h===e||o(h,e,n,a,l)))return m.push(t);var r})){f=!1;break}}else if(h!==b&&!o(h,b,n,a,l)){f=!1;break}}return l.delete(e),l.delete(t),f}function qe(e){return function(e,t,n){var a=t(e);return Ve(e)?a:function(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}(a,n(e))}(e,Qe,ze)}function De(e,t){var n,a,r=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(n)?n:void 0}Ee.prototype.clear=function(){this.__data__=me?me(null):{},this.size=0},Ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ee.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===a?void 0:n}return Y.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Y.call(t,e)},Ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=me&&void 0===t?a:t,this},Oe.prototype.clear=function(){this.__data__=[],this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=Pe(t,e);return!(n<0||(n==t.length-1?t.pop():re.call(t,n,1),--this.size,0))},Oe.prototype.get=function(e){var t=this.__data__,n=Pe(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Pe(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,a=Pe(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},Ce.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(ue||Oe),string:new Ee}},Ce.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},Ce.prototype.get=function(e){return De(this,e).get(e)},Ce.prototype.has=function(e){return De(this,e).has(e)},Ce.prototype.set=function(e,t){var n=De(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,a),this},Te.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.clear=function(){this.__data__=new Oe,this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var a=this.__data__;if(a instanceof Oe){var r=a.__data__;if(!ue||r.length<n-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new Ce(r)}return a.set(e,t),this.size=a.size,this};var ze=oe?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n<a;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}(oe(e),function(t){return ae.call(e,t)}))}:function(){return[]},Ae=je;function We(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function He(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ce&&Ae(new ce(new ArrayBuffer(1)))!=T||ue&&Ae(new ue)!=h||pe&&"[object Promise]"!=Ae(pe.resolve())||de&&Ae(new de)!=_||fe&&"[object WeakMap]"!=Ae(new fe))&&(Ae=function(e){var t=je(e),n=t==g?e.constructor:void 0,a=n?He(n):"";if(a)switch(a){case he:return T;case be:return h;case ve:return"[object Promise]";case ge:return _;case ye:return"[object WeakMap]"}return t});var Ue=Se(function(){return arguments}())?Se:function(e){return Ye(e)&&Y.call(e,"callee")&&!ae.call(e,"callee")},Ve=Array.isArray;var $e=le||function(){return!1};function Ge(e){if(!Ke(e))return!1;var t=je(e);return t==f||t==m||t==c||t==y}function Xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ye(e){return null!=e&&"object"==typeof e}var Je=B?function(e){return function(t){return e(t)}}(B):function(e){return Ye(e)&&Xe(e.length)&&!!P[je(e)]};function Qe(e){return null!=(t=e)&&Xe(t.length)&&!Ge(t)?xe(e):Re(e);var t}e.exports=function(e,t){return Ie(e,t)}}(_e={exports:{}},_e.exports),_e.exports),Ee=function(e){var t=e.labelText,n=e.className,r=e.id,o=e.input,l=e.meta,s=e.placeholder,c=e.type,p=(e.onChange,e.onClick),f=e.hideLabel,m=e.invalid,h=e.invalidText,b=d(e,["labelText","className","id","input","meta","placeholder","type","onChange","onClick","hideLabel","invalid","invalidText"]),v={id:r,onClick:function(e){b.disabled||p(e)},placeholder:s,type:c},g=l?l.error:h,y=l?!l.valid:m,w=r+"-error-msg",_=a("wfp--text-input",n),N=a("wfp--label",{"wfp--visually-hidden":f}),E=t?i.createElement("label",{htmlFor:r,className:N},t):null,O=y?i.createElement("div",{className:"wfp--form-requirement",id:w},g):null,C=y?i.createElement("input",u({},b,o,v,{"data-invalid":!0,"aria-invalid":!0,"aria-describedby":w,className:_})):i.createElement("input",u({},b,o,v,{className:_}));return i.createElement("div",{className:"wfp--form-item"},E,C,O)};Ee.propTypes={className:t.string,defaultValue:t.oneOfType([t.string,t.number]),disabled:t.bool,id:t.string.isRequired,labelText:t.string.isRequired,onChange:t.func,onClick:t.func,placeholder:t.string,type:t.string,value:t.oneOfType([t.string,t.number]),hideLabel:t.bool,invalid:t.bool,invalidText:t.string},Ee.defaultProps={className:"wfp--text__input",disabled:!1,type:"text",onChange:function(){},onClick:function(){},invalid:!1,invalidText:""};var Oe=function(e,t){return"function"==typeof t?t(e):"".concat(e).concat(t)},Ce=function(e){function t(){var e,n,a;o(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(f(a),"state",{configurable:!0,enumerable:!0,writable:!0,value:{dragging:!1,value:a.props.input&&a.props.input.value?a.props.input.value:a.props.value,left:0}}),Object.defineProperty(f(a),"updatePosition",{configurable:!0,enumerable:!0,writable:!0,value:function(e){e&&a.props.disabled||(e&&e.dispatchConfig&&e.persist(),a.state.dragging||(a.setState({dragging:!0}),requestAnimationFrame(function(){a.setState(function(t,n){var r=e&&e.target&&e.target.classList.contains("wfp-slider-text-input"),i=a.calcValue(e,t,n),o=i.left,l=i.newValue,s=r?Number(e.target.value):l;return t.left===o&&t.value===s?{dragging:!1}:("function"==typeof n.onChange&&n.onChange({value:s}),console.log("new",s),a.props.input&&a.props.input.onChange&&a.props.input.onChange(s),{dragging:!1,left:o,value:s})})})))}}),Object.defineProperty(f(a),"calcValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t,n){var r,i,o=n.min,l=n.max,s=n.step,c=n.stepMuliplier,u=t.value,p=l-o,d=(u-o)/p*100;if(r=d,i=u,e){var f=e.type;if("keydown"===f){var m={40:-1,37:-1,38:1,39:1}[e.which];if(void 0!==m){var h=s*(!0===e.shiftKey?p/s/c:1);r=d+h/p*100*m,i=Number(u)+h*m}}if("mousemove"===f||"click"===f||"touchmove"===f){var b=e.touches?e.touches[0].clientX:e.clientX,v=a.track.getBoundingClientRect(),g=(b-v.left)/v.width,y=o+Math.round(p*g/s)*s;r=(y-o)/p*100,i=y}}return i<=Number(o)&&(r=0,i=o),i>=Number(l)&&(r=100,i=l),{left:r,newValue:i}}}),Object.defineProperty(f(a),"handleMouseStart",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.addEventListener("mousemove",a.updatePosition),a.element.ownerDocument.addEventListener("mouseup",a.handleMouseEnd)}}),Object.defineProperty(f(a),"handleMouseEnd",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.removeEventListener("mousemove",a.updatePosition),a.element.ownerDocument.removeEventListener("mouseup",a.handleMouseEnd)}}),Object.defineProperty(f(a),"handleTouchStart",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.addEventListener("touchmove",a.updatePosition),a.element.ownerDocument.addEventListener("touchup",a.handleTouchEnd),a.element.ownerDocument.addEventListener("touchend",a.handleTouchEnd),a.element.ownerDocument.addEventListener("touchcancel",a.handleTouchEnd)}}),Object.defineProperty(f(a),"handleTouchEnd",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.removeEventListener("touchmove",a.updatePosition),a.element.ownerDocument.removeEventListener("touchup",a.handleTouchEnd),a.element.ownerDocument.removeEventListener("touchend",a.handleTouchEnd),a.element.ownerDocument.removeEventListener("touchcancel",a.handleTouchEnd)}}),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){a.setState({value:e.target.value}),a.updatePosition(e)}}),n))}return p(t,n.PureComponent),s(t,[{key:"componentDidMount",value:function(){this.updatePosition()}},{key:"componentWillReceiveProps",value:function(e){Ne(e,this.props)||this.updatePosition(),e.input&&e.input.value!==this.state.value&&this.setState({value:e.input.value})}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabelInput,r=t.className,o=t.hideTextInput,l=t.id,s=void 0===l?this.inputId=this.inputId||"__carbon-slider_".concat(Math.random().toString(36).substr(2)):l,c=t.min,p=t.minLabel,f=t.max,m=t.maxLabel,h=t.formatLabel,b=void 0===h?Oe:h,v=t.labelText,g=t.step,y=(t.stepMuliplier,t.inputType),w=t.required,_=t.disabled,N=t.name,E=d(t,["ariaLabelInput","className","hideTextInput","id","min","minLabel","max","maxLabel","formatLabel","labelText","step","stepMuliplier","inputType","required","disabled","name"]),O=this.state,C=O.value,T=O.left,k=a("wfp--slider",{"wfp--slider--disabled":_},r),x={transform:"translate(0%, -50%) scaleX(".concat(T/100,")")},P={left:"".concat(T,"%")};return i.createElement("div",{className:"wfp--form-item"},i.createElement("label",{htmlFor:s,className:"wfp--label"},v),i.createElement("div",{className:"wfp--slider-container"},i.createElement("span",{className:"wfp--slider__range-label"},b(c,p)),i.createElement("div",u({className:k,ref:function(t){e.element=t},onClick:this.updatePosition,onKeyPress:this.updatePosition,role:"presentation",tabIndex:-1},E),i.createElement("div",{className:"wfp--slider__track",ref:function(t){e.track=t}}),i.createElement("div",{className:"wfp--slider__filled-track",style:x}),i.createElement("div",{className:"wfp--slider__thumb",role:"slider",id:s,tabIndex:0,"aria-valuemax":f,"aria-valuemin":c,"aria-valuenow":C,style:P,onMouseDown:this.handleMouseStart,onTouchStart:this.handleTouchStart,onKeyDown:this.updatePosition}),i.createElement("input",{type:"hidden",name:N,value:C,required:w,min:c,max:f,step:g,onChange:this.handleChange})),i.createElement("span",{className:"wfp--slider__range-label"},b(f,m)),!o&&i.createElement(Ee,{type:y,id:"input-for-slider",className:"wfp-slider-text-input",value:C,onChange:this.handleChange,labelText:"","aria-label":n})))}}]),t}();Object.defineProperty(Ce,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:t.string,hideTextInput:t.bool,id:t.string,onChange:t.func,value:t.number.isRequired,min:t.number.isRequired,minLabel:t.string,max:t.number.isRequired,maxLabel:t.string,formatLabel:t.func,labelText:t.string,step:t.number,stepMuliplier:t.number,children:t.node,disabled:t.bool,name:t.bool,inputType:t.string,ariaLabelInput:t.string}}),Object.defineProperty(Ce,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{hideTextInput:!1,step:1,stepMuliplier:4,disabled:!1,minLabel:"",maxLabel:"",inputType:"number",ariaLabelInput:"Slider number input"}});var Te=function(e){var t=e.children,n=e.className,r=a(c({"wfp--story":!0},"".concat(n),n));return i.createElement(h,{className:r},t)};Te.propTypes={children:t.node,className:t.string};var ke=function(e){var t=e.className,n=e.id,r=e.labelText,o=e.hideLabel,l=e.onChange,s=e.onClick,c=e.input,p=e.invalid,f=e.invalidText,m=d(e,["className","id","labelText","hideLabel","onChange","onClick","input","invalid","invalidText"]),h={id:n,onChange:function(e){m.disabled||l(e)},onClick:function(e){m.disabled||s(e)}},b=a("wfp--text-area",t),v=a("wfp--label",{"wfp--visually-hidden":o}),g=r?i.createElement("label",{htmlFor:n,className:v},r):null,y=p?i.createElement("div",{className:"wfp--form-requirement"},f):null,w=p?i.createElement("textarea",u({},m,c,h,{className:b,"data-invalid":!0})):i.createElement("textarea",u({},m,c,h,{className:b}));return i.createElement("div",{className:"wfp--form-item"},g,w,y)};ke.propTypes={className:t.string,cols:t.number,defaultValue:t.oneOfType([t.string,t.number]),disabled:t.bool,id:t.string,labelText:t.string.isRequired,onChange:t.func,onClick:t.func,placeholder:t.string,rows:t.number,value:t.oneOfType([t.string,t.number]),invalid:t.bool,invalidText:t.string,hideLabel:t.bool},ke.defaultProps={disabled:!1,onChange:function(){},onClick:function(){},placeholder:"",rows:4,cols:50,invalid:!1,invalidText:""};var xe=function(e){var t,n=e.alt,r=e.className,o=e.ellipsis,l=e.image,s=e.title,c=d(e,["alt","className","ellipsis","image","title"]);t=l&&l.includes("auto")||void 0===l?i.createElement("div",{className:"wfp--user__icon wfp--user__icon--empty",alt:n}):i.createElement("img",{alt:n,className:"wfp--user__icon",src:l});var p=a("wfp--user",{className:r}),f=a({"wfp--user__title":!0,"wfp--user__title--ellipsis":o});return i.createElement("div",u({className:p},c),t,s&&i.createElement("span",{className:f},s))};xe.propTypes={alt:t.string,ellipsis:t.bool,image:t.string,title:t.string},xe.defaultProps={alt:"User Icon"},e.Blockquote=g,e.Breadcrumb=y,e.BreadcrumbItem=_,e.BreadcrumbHome=N,e.Button=O,e.Checkbox=C,e.Footer=T,e.Form=k,e.FormGroup=x,e.FormItem=P,e.FormLabel=j,e.Link=w,e.NumberInput=ue,e.RadioButton=fe,e.RadioButtonGroup=be,e.Search=ve,e.Slider=Ce,e.Story=Te,e.TextArea=ke,e.TextInput=Ee,e.User=xe,e.Wrapper=h,e.BannerNavigation=v,e.BannerNavigationItem=b,e.MainNavigation=G,e.MainNavigationItem=W,e.SubNavigation=X,e.SubNavigationHeader=Y,e.SubNavigationTitle=ee,e.SubNavigationFilter=J,e.SubNavigationContent=Z,e.SubNavigationList=Q,e.SubNavigationGroup=te,e.SubNavigationItem=K,e.Module=oe,e.ModuleBody=le,e.ModuleHeader=se,e.ModuleFooter=ce,e.SecondaryTabs=ye,e.SecondaryTabsItem=ge,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prop-types"),require("react"),require("classnames"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","prop-types","react","classnames","react-dom"],t):t(e.WfpComponentsReact={},e.PropTypes,e.React,e.classNames,e.ReactDOM)}(this,function(e,t,n,a,r){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var i="default"in n?n.default:n;function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}function d(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a=a&&a.hasOwnProperty("default")?a.default:a;var b=function(e){var t=e.background,n=e.children,r=e.className,l=e.pageWidth,o=e.spacing,s=d(e,["background","children","className","pageWidth","spacing"]),p=a(c({"wfp--wrapper":!0,"wfp--wrapper--narrow":"narrow"===l,"wfp--wrapper--narrower":"narrower"===l,"wfp--wrapper--narrowest":"narrowest"===l,"wfp--wrapper--narrow wfp--wrapper--mobile-full":"narrow-full"===l,"wfp--wrapper--narrower wfp--wrapper--mobile-full":"narrower-full"===l,"wfp--wrapper--spacing-md":"md"===o},"".concat(r),r));if(t){var f=a({"wfp--wrapper--background-lighter":"lighter"===t});return i.createElement("div",{className:f},i.createElement("div",u({className:p},s),n))}return i.createElement("div",u({className:p},s),n)};b.propTypes={children:t.node,className:t.string,pageWidth:t.string};var h=function(e){var t=e.className,n=e.children,r=a("wfp--banner-navigation__item",t);return i.createElement("li",{className:r},n)};h.propTypes={className:t.string,children:t.node.isRequired};var v=function(e){var t=e.children,n=e.className,r=e.id,l=e.pageWidth,o=a("wfp--banner-navigation",n);return i.createElement("div",{id:r,className:o},i.createElement(b,{pageWidth:l},i.createElement("ul",{className:"wfp--banner-navigation__list"},t)))};v.propTypes={children:t.node.isRequired,className:t.string,id:t.string,wrapperClassName:t.string},v.defaultProps={pageWidth:"narrower"};var g=function(e){function t(e){var n;return l(this,t),n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),Object.defineProperty(f(n),"toggleBlockquote",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState({open:!n.state.open})}}),Object.defineProperty(f(n),"showInnerHtml",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return{__html:e}}}),n.state={open:!1},n}return p(t,i.Component),s(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,r=e.style,l=e.title,o=e.toggleable,s=(e.columnCount,e.innerHtml),u=e.type,p=(d(e,["className","children","style","title","toggleable","columnCount","innerHtml","type"]),a({"wfp--blockquote":!0,"wfp--blockquote--toggleable":!0===o,"wfp--blockquote--light":"light"===u,"wfp--blockquote--code":"code"===u,"wfp--blockquote--warning":"warning"===u,"wfp--blockquote--info":"info"===u,"wfp--blockquote--open":this.state.open})),f=a(c({"wfp--blockquote__content":!0},"".concat(t),t));return i.createElement("div",{className:p},l&&i.createElement("div",{onClick:this.toggleBlockquote,className:"wfp--blockquote__title"},l),i.createElement("div",{className:f,style:r},n,s&&i.createElement("div",{dangerouslySetInnerHTML:this.showInnerHtml(s)})))}}]),t}();g.propTypes={children:t.node,type:t.string};var y=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--breadcrumb wfp--breadcrumb--no-trailing-slash",n);return i.createElement("div",u({className:l},r),t)};y.propTypes={children:t.node,className:t.string};var w=function(e){var t=e.children,n=e.className,r=e.href,l=d(e,["children","className","href"]),o=a("wfp--link",n);return i.createElement("a",u({href:r,className:o},l),t)};w.propTypes={children:t.node,className:t.string,href:t.string};var _=function(e){var t=e.children,n=e.className,r=e.href,l=d(e,["children","className","href"]),o=a("wfp--breadcrumb-item",n);return i.createElement("div",u({className:o},l),function(e,t){return"string"==typeof e&&void 0!==t?i.createElement(w,{href:t},e):i.cloneElement(i.Children.only(e),{className:"wfp--link"})}(t,r))};_.propTypes={children:t.node,className:t.string,href:t.string};var N=function(e){var t=e.className,n=d(e,["className"]),r=a("wfp--breadcrumb-home",t);return i.createElement("div",u({className:r},n))};N.propTypes={type:t.string};var E=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--icon",n);return i.createElement("div",u({className:l},r),t)};E.propTypes={children:t.node,className:t.string};var T=function(e){var t=e.children,n=e.className,r=e.disabled,l=e.small,o=e.kind,s=e.href,c=e.tabIndex,p=e.type,f=e.icon,m=e.iconDescription,b=d(e,["children","className","disabled","small","kind","href","tabIndex","type","icon","iconDescription"]),h={tabIndex:c,className:a(n,{"wfp--btn":!0,"wfp--btn--sm":l,"wfp--btn--primary":"primary"===o,"wfp--btn--danger":"danger"===o,"wfp--btn--secondary":"secondary"===o,"wfp--btn--ghost":"ghost"===o,"wfp--btn--danger--primary":"danger--primary"===o,"wfp--btn--tertiary":"tertiary"===o})},v=f?i.createElement(E,{name:f,description:m,className:"wfp--btn__icon"}):null,g=i.createElement("button",u({},b,h,{disabled:r,type:p}),t,v),y=i.createElement("a",u({},b,h,{href:s,role:"button"}),t,v);return s?y:g};T.propTypes={children:t.node,className:t.string,disabled:t.bool,small:t.bool,kind:t.oneOf(["primary","secondary","danger","ghost","danger--primary","tertiary"]).isRequired,href:t.string,tabIndex:t.number,type:t.oneOf(["button","reset","submit"]),role:t.string,icon:t.string,iconDescription:function(e){if(e.icon&&!e.iconDescription)return new Error("icon property specified without also providing an iconDescription property.")}},T.defaultProps={iconDescription:"Provide icon description if icon is used",tabIndex:0,type:"button",disabled:!1,small:!1,kind:"primary"};var x=function(e){var t,n=e.className,r=e.id,l=e.input,o=e.labelText,s=e.onChange,c=e.indeterminate,p=e.hideLabel,f=e.wrapperClassName,m=d(e,["className","id","input","labelText","onChange","indeterminate","hideLabel","wrapperClassName"]),b=a("wfp--checkbox-label",n),h=a({"wfp--visually-hidden":p}),v=a("wfp--form-item","wfp--checkbox-wrapper",f);return i.createElement("div",{className:v},i.createElement("input",u({},m,l,{type:"checkbox",onClick:function(e){s&&s(l.checked,r,e),l&&l.onChange&&l.onChange(l.checked)},className:"wfp--checkbox",id:r,ref:function(e){(t=e)&&(t.indeterminate=c)}})),i.createElement("label",{htmlFor:r,className:b},i.createElement("span",{className:h},o)))};x.propTypes={checked:t.bool,defaultChecked:t.bool,indeterminate:t.bool,className:t.string,disabled:t.bool,id:t.string.isRequired,labelText:t.node.isRequired,hideLabel:t.bool,onChange:t.func,wrapperClassName:t.string},x.defaultProps={onChange:function(){},indeterminate:!1};var C=function(e){var t=e.className,n=e.children,r=e.labelOne,l=e.linkTextOne,o=e.linkHrefOne,s=e.labelTwo,c=e.linkTextTwo,p=e.linkHrefTwo,f=e.logoExtended,m=e.logoVertical,h=e.metaContent,v=e.secondary,g=e.pageWidth,y=d(e,["className","children","labelOne","linkTextOne","linkHrefOne","labelTwo","linkTextTwo","linkHrefTwo","logoExtended","logoVertical","metaContent","secondary","pageWidth"]),_=a("wfp--footer",t);return i.createElement("footer",u({},y,{className:_}),i.createElement(b,{pageWidth:g},i.createElement("div",{className:"wfp--footer__content"},n?i.createElement("div",{className:"wfp--footer-info"},n):i.createElement("div",{className:"wfp--footer-info"},i.createElement("div",{className:"wfp--footer-info__item"},i.createElement("p",{className:"wfp--footer-label"},r),i.createElement(w,{href:o},l)),i.createElement("div",{className:"wfp--footer-info__item"},i.createElement("p",{className:"wfp--footer-label"},s),i.createElement(w,{href:p},c))),i.createElement("div",{className:"wfp--footer-cta"},i.createElement("img",{className:"wfp--footer-cta-logo",src:f||"logos/extended/en/wfp-logo-extended-black-en.svg",alt:"World Food Programme Logo"}),i.createElement("img",{className:"wfp--footer-cta-logo-small",src:m||"logos/vertical/en/wfp-logo-vertical-black-en.svg",alt:"World Food Programme Logo"}),v)),h&&i.createElement("div",{className:"wfp--footer-meta"},h)))};C.propTypes={children:t.node,className:t.string,labelOne:t.string,linkTextOne:t.string,linkHrefOne:t.string,labelTwo:t.string,linkTextTwo:t.string,linkHrefTwo:t.string,buttonText:t.string},C.defaultProps={labelOne:"Need Help?",linkTextOne:"Contact Bluemix Sales",linkHrefOne:"#",labelTwo:"Estimate Monthly Cost",linkTextTwo:"Cost Calculator",linkHrefTwo:"#",buttonText:"Create"};var O=function(e){var t=e.className,n=e.children,r=d(e,["className","children"]),l=a("wfp--form",t);return i.createElement("form",u({className:l},r)," ",n," ")};O.propTypes={children:t.node,className:t.string};var k=function(e){var t=e.legendText,n=e.invalid,r=e.children,l=e.className,o=e.message,s=e.messageText,c=d(e,["legendText","invalid","children","className","message","messageText"]),p=a("wfp--form-group__title",l),f=a("wfp--fieldset",l);return i.createElement("fieldset",u({},n&&{"data-invalid":""},{className:f},c),i.createElement("legend",{className:p},t),r,o?i.createElement("div",{className:"wfp--form__requirements"},s):null)};k.propTypes={children:t.node,legendText:t.string.isRequired,className:t.string,invalid:t.bool,message:t.bool,messageText:t.string},k.defaultProps={invalid:!1,message:!1,messageText:""};var j=function(e){var t=e.className,n=e.children,r=d(e,["className","children"]),l=a("bx--form-item",t);return i.createElement("div",u({className:l},r),n)};j.propTypes={children:t.node,className:t.string};var P=function(e){var t=e.className,n=e.children,r=e.id,l=d(e,["className","children","id"]),o=a("bx--label",t);return i.createElement("label",u({htmlFor:r,className:o},l),n)};P.propTypes={children:t.node,className:t.string,id:t.string};var S=function(e){var t=e.activeMenuItem,n=e.className,r=e.children,l=e.menuItem,o=e.onChangeSub,s=e.subNavigation,c=a(n,{"wfp--main-navigation__item":!0,"wfp--main-navigation__item--open":l===t}),u=a({"wfp--main-navigation__sub":!0,"wfp--main-navigation__sub--open":l===t}),p=a({"wfp--main-navigation__trigger":!0,"wfp--main-navigation__trigger--has-sub":s,"wfp--main-navigation__trigger--open":l===t}),d=s?i.cloneElement(r,{onClick:function(e){return o(e,l,"toggle")}}):r;return i.createElement("li",{className:c},i.createElement("div",{className:p},d),s&&i.createElement("div",{className:u},s))};S.propTypes={className:t.string,children:t.node.isRequired};var L=function(e){function t(e){var n;return l(this,t),n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),Object.defineProperty(f(n),"onChangeSub",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t,a){if(e.preventDefault(),console.log("I've been clicked",e.target,e.target.id,t,a),"toggle"===a){var r=void 0===n.state.activeMenuItem||n.state.activeMenuItem!==t?t:void 0;n.setState({activeMenuItem:r})}}}),Object.defineProperty(f(n),"toggleMenu",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState({openMobile:!n.state.openMobile})}}),Object.defineProperty(f(n),"triggerSubNavigation",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({activeMenuItem:void 0})}}),Object.defineProperty(f(n),"handleClickOutside",{configurable:!0,enumerable:!0,writable:!0,value:function(e){console.log("clicked outside",e),n.setState({activeMenuItem:void 0})}}),n.state={openMobile:!1,activeMenuItem:void 0},n}return p(t,n.Component),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,l=t.id,o=t.logo,s=t.pageWidth,c=a("wfp--main-navigation",r),u=a("wfp--main-navigation__list",{"wfp--main-navigation__list--open":this.state.openMobile});return i.createElement("div",{id:l,className:c},i.createElement(b,{pageWidth:s,className:"wfp--main-navigation__wrapper"},i.createElement("div",{className:"wfp--main-navigation__logo-wrapper"},i.createElement(T,{className:"wfp--main-navigation__button",onClick:this.toggleMenu},"Menu"),i.createElement("div",{className:"wfp--main-navigation__logo"},o)),i.createElement("ul",{className:u},i.Children.map(n,function(t,n){return i.cloneElement(t,{activeMenuItem:e.state.activeMenuItem,menuItem:n,onChangeSub:e.onChangeSub})}))))}}]),t}();L.propTypes={children:t.node.isRequired,className:t.string,id:t.string,wrapperClassName:t.string},L.defaultProps={pageWidth:"narrow-full"};var I=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),l=a("wfp--sub-navigation",{className:n});return i.createElement("div",u({className:l},r),t)};I.propTypes={},I.defaultProps={};var M=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),l=a("wfp--sub-navigation__item",{className:n});return i.createElement("div",u({className:l},r),t)};M.propTypes={},M.defaultProps={};var q=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),l=a("wfp--sub-navigation__header",{className:n});return i.createElement("div",u({className:l},r),t)};q.propTypes={},q.defaultProps={};var R=function(e){var t=e.children,n=e.className,r=(e.title,d(e,["children","className","title"])),l=a("wfp--sub-navigation__filter",{className:n});return i.createElement("div",u({className:l},r),t)};R.propTypes={image:t.string},R.defaultProps={};var B=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--sub-navigation__list",{className:n});return i.createElement("div",u({className:l},r),t)};B.propTypes={image:t.string},B.defaultProps={};var D=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--sub-navigation__content",{className:n});return i.createElement("div",u({className:l},r),t)};D.propTypes={image:t.string};var z=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--sub-navigation__title",{className:n});return i.createElement("div",u({className:l},r),t)};z.propTypes={image:t.string},z.defaultProps={};var A=function(e){var t=e.children,n=e.className,r=e.title,l=d(e,["children","className","title"]),o=a("wfp--sub-navigation__group",{className:n});return i.createElement("div",u({className:o},l),r&&i.createElement("h3",{className:"wfp--sub-navigation__group__title"},r),t)};A.propTypes={image:t.string},A.defaultProps={};var F={children:t.node,className:t.string,size:t.oneOf(["single","double"])},W={children:t.node,centered:t.bool,className:t.string},H={children:t.node,className:t.string},V={centered:!1},U=function(e){var t=e.children,n=e.className,r=e.size,l=d(e,["children","className","size"]),o=a("wfp--module wfp--module--".concat(r),n);return i.createElement("div",u({className:o},l),i.createElement("div",{className:"wfp--module__inner"},t))},$=function(e){var t=e.children,n=e.className,r=e.centered,l=d(e,["children","className","centered"]),o=a("wfp--module__content",n,{"wfp--module__content--centered":r});return i.createElement("div",u({className:o},l),t)},G=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--module__header",n);return i.createElement("div",u({className:l},r),i.createElement("h1",{className:"wfp--module__title"},t))},K=function(e){var t=e.children,n=e.className,r=d(e,["children","className"]),l=a("wfp--module__footer",n);return i.createElement("div",u({className:l},r),t)};U.propTypes=F,$.propTypes=W,U.defaultProps={size:"double"},$.defaultProps=V,G.propTypes=H,K.defaultProps=V;var X=function(e){function t(e){var n;l(this,t),n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),J.call(f(n));var a=e.value;return(e.min||0===e.min)&&(a=Math.max(e.min,a)),n.state={value:a},n}return p(t,n.Component),s(t,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.props.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.disabled,l=(t.iconDescription,t.id),o=t.label,s=t.max,c=t.min,p=t.step,f=t.invalid,m=t.invalidText,b=d(t,["className","disabled","iconDescription","id","label","max","min","step","invalid","invalidText"]),h=a("wfp--number",n),v={disabled:r,id:l,max:s,min:c,step:p,onChange:this.handleChange,value:this.state.value},g={disabled:r,type:"button",className:"wfp--number__control-btn"},y={},w=null;return f&&(y["data-invalid"]=!0,w=i.createElement("div",{className:"wfp--form-requirement"},m)),i.createElement("div",{className:"wfp--form-item"},i.createElement("label",{htmlFor:l,className:"wfp--label"},o),i.createElement("div",u({className:h},y),i.createElement("input",u({type:"number",pattern:"[0-9]*"},b,v,{ref:this._handleInputRef})),i.createElement("div",{className:"wfp--number__controls"},i.createElement("button",u({},g,{onClick:function(t){return e.handleArrowClick(t,"up")}}),i.createElement(E,{className:"up-icon",name:"caret--up",description:this.props.iconDescription,viewBox:"0 2 10 5"})),i.createElement("button",u({},g,{onClick:function(t){return e.handleArrowClick(t,"down")}}),i.createElement(E,{className:"down-icon",name:"caret--down",viewBox:"0 2 10 5",description:this.props.iconDescription})))),w)}}]),t}();Object.defineProperty(X,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:t.string,disabled:t.bool,iconDescription:t.string.isRequired,id:t.string.isRequired,label:t.string,max:t.number,min:t.number,onChange:t.func,onClick:t.func,step:t.number,value:t.number,invalid:t.bool,invalidText:t.string}}),Object.defineProperty(X,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{disabled:!1,iconDescription:"choose a number",label:" ",onChange:function(){},onClick:function(){},step:1,value:0,invalid:!1,invalidText:"Provide invalidText"}});var J=function(){var e=this;Object.defineProperty(this,"_inputRef",{configurable:!0,enumerable:!0,writable:!0,value:null}),Object.defineProperty(this,"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(t){e.props.disabled||(t.persist(),t.imaginaryTarget=e._inputRef,e.setState({value:t.target.value},function(){e.props.onChange(t)}))}}),Object.defineProperty(this,"handleArrowClick",{configurable:!0,enumerable:!0,writable:!0,value:function(t,n){var a="string"==typeof e.state.value?Number(e.state.value):e.state.value,r=e.props,i=r.disabled,l=r.min,o=r.max,s=r.step;!i&&("down"===n?void 0!==l&&a>l||void 0===l:void 0!==o&&a<o||void 0===o)&&(a="down"===n?a-s:a+s,t.persist(),t.imaginaryTarget=e._inputRef,e.setState({value:a},function(){e.props.onClick(t,n),e.props.onChange(t,n)}))}}),Object.defineProperty(this,"_handleInputRef",{configurable:!0,enumerable:!0,writable:!0,value:function(t){e._inputRef=t}})},Q=0;var Y=function(e){function t(){var e,n,a;l(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){a.props.onChange&&a.props.onChange(a.props.value,a.props.name,e),a.props.input&&a.props.input.onChange&&a.props.input.onChange(e.target.value)}}),n))}return p(t,i.Component),s(t,[{key:"componentWillMount",value:function(){this.uid=this.props.id||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";return Q++,"".concat(e).concat(Q)}()}},{key:"render",value:function(){var e=a("radioButtonWrapper",this.props.className),t=this.props,n=(t.component,t.labelText),r=t.input,l=t.value,o=d(t,["component","labelText","input","value"]);return i.createElement("div",{className:e},i.createElement("input",u({},o,r,{type:"radio",value:r&&r.value?r.value:l,className:"wfp--radio-button",onChange:this.handleChange,id:this.uid})),i.createElement("label",{htmlFor:this.uid,className:"wfp--radio-button__label"},i.createElement("span",{className:"wfp--radio-button__appearance"}),n))}}]),t}();Object.defineProperty(Y,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{checked:t.bool,className:t.string,defaultChecked:t.bool,disabled:t.bool,id:t.string,labelText:t.string.isRequired,name:t.string,onChange:t.func,value:t.oneOfType([t.string,t.number])}}),Object.defineProperty(Y,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{onChange:function(){}}});var Z=function(){};var ee=Z,te=function(e){function t(){var e,n,a;l(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),Object.defineProperty(f(a),"state",{configurable:!0,enumerable:!0,writable:!0,value:{selected:null}}),Object.defineProperty(f(a),"getRadioButtons",{configurable:!0,enumerable:!0,writable:!0,value:function(){return i.Children.map(a.props.children,function(e){var t=e.props,n=t.value,r=d(t,["value"]);return e.props.hasOwnProperty("checked")&&ee(!1,"Instead of using the checked property on the RadioButton, set\n the defaultSelected property or valueSelected property on the RadioButtonGroup."),i.createElement(Y,u({},r,{name:a.props.name,key:n,value:n,onChange:a.handleChange,checked:n===a.state.selected}))})}}),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t,n){e!==a.state.selected&&(a.setState({selected:e}),a.props.onChange(e,a.props.name,n))}}),n))}return p(t,i.Component),s(t,[{key:"componentWillMount",value:function(){this.setState({selected:this.props.valueSelected||this.props.defaultSelected||null})}},{key:"componentWillReceiveProps",value:function(e){e.hasOwnProperty("valueSelected")&&this.setState({selected:e.valueSelected})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.className;return i.createElement("div",{className:"wfp--form-item"},i.createElement("div",{className:n,disabled:t},this.getRadioButtons()))}}]),t}();Object.defineProperty(te,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:t.node,className:t.string,defaultSelected:t.oneOfType([t.string,t.number]),name:t.string.isRequired,disabled:t.bool,onChange:t.func,valueSelected:t.oneOfType([t.string,t.number])}}),Object.defineProperty(te,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{onChange:function(){},className:"wfp--radio-button-group"}});var ne=function(e){function t(){var e,n,a;l(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),Object.defineProperty(f(a),"state",{configurable:!0,enumerable:!0,writable:!0,value:{format:"list",hasContent:a.props.value||a.props.defaultValue||!1}}),Object.defineProperty(f(a),"clearInput",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if(a.props.value){var t=Object.assign({},e.target,{target:{value:""}});a.props.onChange(t)}else a.input.value="",a.props.onChange(e);a.setState({hasContent:!1},function(){return a.input.focus()})}}),Object.defineProperty(f(a),"toggleLayout",{configurable:!0,enumerable:!0,writable:!0,value:function(){"list"===a.state.format?a.setState({format:"grid"}):a.setState({format:"list"})}}),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){a.setState({hasContent:""!==e.target.value}),a.props.onChange(e)}}),Object.defineProperty(f(a),"searchFilterBtn",{configurable:!0,enumerable:!0,writable:!0,value:function(){if(!a.props.small)return i.createElement("button",{className:"wfp--search-button",type:"button","aria-label":a.props.searchButtonLabelText},i.createElement(E,{name:"filter--glyph",description:"filter",className:"wfp--search-filter"}))}}),Object.defineProperty(f(a),"searchLayoutBtn",{configurable:!0,enumerable:!0,writable:!0,value:function(){if(!a.props.small)return i.createElement("button",{className:"wfp--search-button",type:"button",onClick:a.toggleLayout,"aria-label":a.props.layoutButtonLabelText},"list"===a.state.format?i.createElement("div",{className:"wfp--search__toggle-layout__container"},i.createElement(E,{name:"list",description:"list",className:"wfp--search-view"})):i.createElement("div",{className:"wfp--search__toggle-layout__container"},i.createElement(E,{name:"grid",description:"toggle-layout",className:"wfp--search-view"})))}}),n))}return p(t,n.Component),s(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.type,l=t.id,o=void 0===l?this._inputId=this._inputId||"search__input__id_".concat(Math.random().toString(36).substr(2)):l,s=t.placeHolderText,p=t.labelText,f=t.size,m=d(t,["className","type","id","placeHolderText","labelText","size"]),b=this.state.hasContent,h=a(c({"wfp--search wfp--search-with-options":!0,"wfp--search--lg":!f,"wfp--search--md":"medium"===f,"wfp--search--sm":"small"===f},n,n)),v=a({"wfp--search-close":!0,"wfp--search-close--hidden":!b});return i.createElement("div",{className:h,role:"search"},i.createElement("div",{name:"search--glyph",description:"search",className:"wfp--search-magnifier"}),i.createElement("label",{htmlFor:o,className:"wfp--label"},p),i.createElement("input",u({},m,{type:r,className:"wfp--search-input",id:o,placeholder:s,onChange:this.handleChange,ref:function(t){e.input=t}})),i.createElement(E,{name:"close--glyph",description:"close",className:v,onClick:this.clearInput}))}}]),t}();Object.defineProperty(ne,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:t.node,className:t.string,type:t.string,size:t.string,placeHolderText:t.string,labelText:t.node.isRequired,id:t.string,searchButtonLabelText:t.string,layoutButtonLabelText:t.string}}),Object.defineProperty(ne,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{type:"text",small:!1,placeHolderText:"",onChange:function(){}}});var ae=function(e){var t=e.className,n=e.children,r=a("wfp--secondary-tabs__item",t);return i.createElement("li",{className:r},n)};ae.propTypes={className:t.string,children:t.node.isRequired};var re=function(e){var t=e.children,n=e.className,r=e.id,l=a("wfp--secondary-tabs",n);return i.createElement("div",{id:r,className:l},i.createElement("ul",{className:"wfp--secondary-tabs__list"},t))};re.propTypes={children:t.node.isRequired,className:t.string,id:t.string};var ie="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var le,oe=(function(e,t){var n=200,a="__lodash_hash_undefined__",r=1,i=2,l=9007199254740991,o="[object Arguments]",s="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",p="[object Date]",d="[object Error]",f="[object Function]",m="[object GeneratorFunction]",b="[object Map]",h="[object Number]",v="[object Null]",g="[object Object]",y="[object Proxy]",w="[object RegExp]",_="[object Set]",N="[object String]",E="[object Symbol]",T="[object Undefined]",x="[object ArrayBuffer]",C="[object DataView]",O=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[o]=j[s]=j[x]=j[u]=j[C]=j[p]=j[d]=j[f]=j[b]=j[h]=j[g]=j[w]=j[_]=j[N]=j["[object WeakMap]"]=!1;var P="object"==typeof ie&&ie&&ie.Object===Object&&ie,S="object"==typeof self&&self&&self.Object===Object&&self,L=P||S||Function("return this")(),I=t&&!t.nodeType&&t,M=I&&e&&!e.nodeType&&e,q=M&&M.exports===I,R=q&&P.process,B=function(){try{return R&&R.binding&&R.binding("util")}catch(e){}}(),D=B&&B.isTypedArray;function z(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}function A(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W,H,V,U=Array.prototype,$=Function.prototype,G=Object.prototype,K=L["__core-js_shared__"],X=$.toString,J=G.hasOwnProperty,Q=(W=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",Y=G.toString,Z=RegExp("^"+X.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=q?L.Buffer:void 0,te=L.Symbol,ne=L.Uint8Array,ae=G.propertyIsEnumerable,re=U.splice,le=te?te.toStringTag:void 0,oe=Object.getOwnPropertySymbols,se=ee?ee.isBuffer:void 0,ce=(H=Object.keys,V=Object,function(e){return H(V(e))}),ue=De(L,"DataView"),pe=De(L,"Map"),de=De(L,"Promise"),fe=De(L,"Set"),me=De(L,"WeakMap"),be=De(Object,"create"),he=We(ue),ve=We(pe),ge=We(de),ye=We(fe),we=We(me),_e=te?te.prototype:void 0,Ne=_e?_e.valueOf:void 0;function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function xe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Ce(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new xe;++t<n;)this.add(e[t])}function Oe(e){var t=this.__data__=new Te(e);this.size=t.size}function ke(e,t){var n=Ue(e),a=!n&&Ve(e),r=!n&&!a&&$e(e),i=!n&&!a&&!r&&Qe(e),l=n||a||r||i,o=l?function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}(e.length,String):[],s=o.length;for(var c in e)!t&&!J.call(e,c)||l&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fe(c,s))||o.push(c);return o}function je(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Pe(e){return null==e?void 0===e?T:v:le&&le in Object(e)?function(e){var t=J.call(e,le),n=e[le];try{e[le]=void 0;var a=!0}catch(e){}var r=Y.call(e);a&&(t?e[le]=n:delete e[le]);return r}(e):function(e){return Y.call(e)}(e)}function Se(e){return Je(e)&&Pe(e)==o}function Le(e,t,n,a,l){return e===t||(null==e||null==t||!Je(e)&&!Je(t)?e!=e&&t!=t:function(e,t,n,a,l,c){var f=Ue(e),m=Ue(t),v=f?s:Ae(e),y=m?s:Ae(t),T=(v=v==o?g:v)==g,O=(y=y==o?g:y)==g,k=v==y;if(k&&$e(e)){if(!$e(t))return!1;f=!0,T=!1}if(k&&!T)return c||(c=new Oe),f||Qe(e)?qe(e,t,n,a,l,c):function(e,t,n,a,l,o,s){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!o(new ne(e),new ne(t)));case u:case p:case h:return He(+e,+t);case d:return e.name==t.name&&e.message==t.message;case w:case N:return e==t+"";case b:var c=A;case _:var f=a&r;if(c||(c=F),e.size!=t.size&&!f)return!1;var m=s.get(e);if(m)return m==t;a|=i,s.set(e,t);var v=qe(c(e),c(t),a,l,o,s);return s.delete(e),v;case E:if(Ne)return Ne.call(e)==Ne.call(t)}return!1}(e,t,v,n,a,l,c);if(!(n&r)){var j=T&&J.call(e,"__wrapped__"),P=O&&J.call(t,"__wrapped__");if(j||P){var S=j?e.value():e,L=P?t.value():t;return c||(c=new Oe),l(S,L,n,a,c)}}if(!k)return!1;return c||(c=new Oe),function(e,t,n,a,i,l){var o=n&r,s=Re(e),c=s.length,u=Re(t).length;if(c!=u&&!o)return!1;for(var p=c;p--;){var d=s[p];if(!(o?d in t:J.call(t,d)))return!1}var f=l.get(e);if(f&&l.get(t))return f==t;var m=!0;l.set(e,t),l.set(t,e);for(var b=o;++p<c;){d=s[p];var h=e[d],v=t[d];if(a)var g=o?a(v,h,d,t,e,l):a(h,v,d,e,t,l);if(!(void 0===g?h===v||i(h,v,n,a,l):g)){m=!1;break}b||(b="constructor"==d)}if(m&&!b){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(m=!1)}return l.delete(e),l.delete(t),m}(e,t,n,a,l,c)}(e,t,n,a,Le,l))}function Ie(e){return!(!Xe(e)||Q&&Q in e)&&(Ge(e)?Z:O).test(We(e))}function Me(e){if(n=(t=e)&&t.constructor,a="function"==typeof n&&n.prototype||G,t!==a)return ce(e);var t,n,a,r=[];for(var i in Object(e))J.call(e,i)&&"constructor"!=i&&r.push(i);return r}function qe(e,t,n,a,l,o){var s=n&r,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var p=o.get(e);if(p&&o.get(t))return p==t;var d=-1,f=!0,m=n&i?new Ce:void 0;for(o.set(e,t),o.set(t,e);++d<c;){var b=e[d],h=t[d];if(a)var v=s?a(h,b,d,t,e,o):a(b,h,d,e,t,o);if(void 0!==v){if(v)continue;f=!1;break}if(m){if(!z(t,function(e,t){if(r=t,!m.has(r)&&(b===e||l(b,e,n,a,o)))return m.push(t);var r})){f=!1;break}}else if(b!==h&&!l(b,h,n,a,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Re(e){return function(e,t,n){var a=t(e);return Ue(e)?a:function(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}(a,n(e))}(e,Ye,ze)}function Be(e,t){var n,a,r=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function De(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Ee.prototype.clear=function(){this.__data__=be?be(null):{},this.size=0},Ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ee.prototype.get=function(e){var t=this.__data__;if(be){var n=t[e];return n===a?void 0:n}return J.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return be?void 0!==t[e]:J.call(t,e)},Ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=be&&void 0===t?a:t,this},Te.prototype.clear=function(){this.__data__=[],this.size=0},Te.prototype.delete=function(e){var t=this.__data__,n=je(t,e);return!(n<0||(n==t.length-1?t.pop():re.call(t,n,1),--this.size,0))},Te.prototype.get=function(e){var t=this.__data__,n=je(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return je(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,a=je(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},xe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(pe||Te),string:new Ee}},xe.prototype.delete=function(e){var t=Be(this,e).delete(e);return this.size-=t?1:0,t},xe.prototype.get=function(e){return Be(this,e).get(e)},xe.prototype.has=function(e){return Be(this,e).has(e)},xe.prototype.set=function(e,t){var n=Be(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,a),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new Te,this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var a=this.__data__;if(a instanceof Te){var r=a.__data__;if(!pe||r.length<n-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new xe(r)}return a.set(e,t),this.size=a.size,this};var ze=oe?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n<a;){var l=e[n];t(l,n,e)&&(i[r++]=l)}return i}(oe(e),function(t){return ae.call(e,t)}))}:function(){return[]},Ae=Pe;function Fe(e,t){return!!(t=null==t?l:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function We(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(ue&&Ae(new ue(new ArrayBuffer(1)))!=C||pe&&Ae(new pe)!=b||de&&"[object Promise]"!=Ae(de.resolve())||fe&&Ae(new fe)!=_||me&&"[object WeakMap]"!=Ae(new me))&&(Ae=function(e){var t=Pe(e),n=t==g?e.constructor:void 0,a=n?We(n):"";if(a)switch(a){case he:return C;case ve:return b;case ge:return"[object Promise]";case ye:return _;case we:return"[object WeakMap]"}return t});var Ve=Se(function(){return arguments}())?Se:function(e){return Je(e)&&J.call(e,"callee")&&!ae.call(e,"callee")},Ue=Array.isArray;var $e=se||function(){return!1};function Ge(e){if(!Xe(e))return!1;var t=Pe(e);return t==f||t==m||t==c||t==y}function Ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Xe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Je(e){return null!=e&&"object"==typeof e}var Qe=D?function(e){return function(t){return e(t)}}(D):function(e){return Je(e)&&Ke(e.length)&&!!j[Pe(e)]};function Ye(e){return null!=(t=e)&&Ke(t.length)&&!Ge(t)?ke(e):Me(e);var t}e.exports=function(e,t){return Le(e,t)}}(le={exports:{}},le.exports),le.exports),se=function(e){var t=e.labelText,n=e.className,r=e.id,l=e.input,o=e.meta,s=e.placeholder,c=e.type,p=(e.onChange,e.onClick),f=e.hideLabel,m=e.invalid,b=e.invalidText,h=d(e,["labelText","className","id","input","meta","placeholder","type","onChange","onClick","hideLabel","invalid","invalidText"]),v={id:r,onClick:function(e){h.disabled||p(e)},placeholder:s,type:c},g=o?o.error:b,y=o?!o.valid:m,w=r+"-error-msg",_=a("wfp--text-input",n),N=a("wfp--label",{"wfp--visually-hidden":f}),E=t?i.createElement("label",{htmlFor:r,className:N},t):null,T=y?i.createElement("div",{className:"wfp--form-requirement",id:w},g):null,x=y?i.createElement("input",u({},h,l,v,{"data-invalid":!0,"aria-invalid":!0,"aria-describedby":w,className:_})):i.createElement("input",u({},h,l,v,{className:_}));return i.createElement("div",{className:"wfp--form-item"},E,x,T)};se.propTypes={className:t.string,defaultValue:t.oneOfType([t.string,t.number]),disabled:t.bool,id:t.string.isRequired,labelText:t.string.isRequired,onChange:t.func,onClick:t.func,placeholder:t.string,type:t.string,value:t.oneOfType([t.string,t.number]),hideLabel:t.bool,invalid:t.bool,invalidText:t.string},se.defaultProps={className:"wfp--text__input",disabled:!1,type:"text",onChange:function(){},onClick:function(){},invalid:!1,invalidText:""};var ce=function(e,t){return"function"==typeof t?t(e):"".concat(e).concat(t)},ue=function(e){function t(){var e,n,a;l(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return m(a,(n=a=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(f(a),"state",{configurable:!0,enumerable:!0,writable:!0,value:{dragging:!1,value:a.props.input&&a.props.input.value?a.props.input.value:a.props.value,left:0}}),Object.defineProperty(f(a),"updatePosition",{configurable:!0,enumerable:!0,writable:!0,value:function(e){e&&a.props.disabled||(e&&e.dispatchConfig&&e.persist(),a.state.dragging||(a.setState({dragging:!0}),requestAnimationFrame(function(){a.setState(function(t,n){var r=e&&e.target&&e.target.classList.contains("wfp-slider-text-input"),i=a.calcValue(e,t,n),l=i.left,o=i.newValue,s=r?Number(e.target.value):o;return t.left===l&&t.value===s?{dragging:!1}:("function"==typeof n.onChange&&n.onChange({value:s}),console.log("new",s),a.props.input&&a.props.input.onChange&&a.props.input.onChange(s),{dragging:!1,left:l,value:s})})})))}}),Object.defineProperty(f(a),"calcValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t,n){var r,i,l=n.min,o=n.max,s=n.step,c=n.stepMuliplier,u=t.value,p=o-l,d=(u-l)/p*100;if(r=d,i=u,e){var f=e.type;if("keydown"===f){var m={40:-1,37:-1,38:1,39:1}[e.which];if(void 0!==m){var b=s*(!0===e.shiftKey?p/s/c:1);r=d+b/p*100*m,i=Number(u)+b*m}}if("mousemove"===f||"click"===f||"touchmove"===f){var h=e.touches?e.touches[0].clientX:e.clientX,v=a.track.getBoundingClientRect(),g=(h-v.left)/v.width,y=l+Math.round(p*g/s)*s;r=(y-l)/p*100,i=y}}return i<=Number(l)&&(r=0,i=l),i>=Number(o)&&(r=100,i=o),{left:r,newValue:i}}}),Object.defineProperty(f(a),"handleMouseStart",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.addEventListener("mousemove",a.updatePosition),a.element.ownerDocument.addEventListener("mouseup",a.handleMouseEnd)}}),Object.defineProperty(f(a),"handleMouseEnd",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.removeEventListener("mousemove",a.updatePosition),a.element.ownerDocument.removeEventListener("mouseup",a.handleMouseEnd)}}),Object.defineProperty(f(a),"handleTouchStart",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.addEventListener("touchmove",a.updatePosition),a.element.ownerDocument.addEventListener("touchup",a.handleTouchEnd),a.element.ownerDocument.addEventListener("touchend",a.handleTouchEnd),a.element.ownerDocument.addEventListener("touchcancel",a.handleTouchEnd)}}),Object.defineProperty(f(a),"handleTouchEnd",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.element.ownerDocument.removeEventListener("touchmove",a.updatePosition),a.element.ownerDocument.removeEventListener("touchup",a.handleTouchEnd),a.element.ownerDocument.removeEventListener("touchend",a.handleTouchEnd),a.element.ownerDocument.removeEventListener("touchcancel",a.handleTouchEnd)}}),Object.defineProperty(f(a),"handleChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){a.setState({value:e.target.value}),a.updatePosition(e)}}),n))}return p(t,n.PureComponent),s(t,[{key:"componentDidMount",value:function(){this.updatePosition()}},{key:"componentWillReceiveProps",value:function(e){oe(e,this.props)||this.updatePosition(),e.input&&e.input.value!==this.state.value&&this.setState({value:e.input.value})}},{key:"render",value:function(){var e=this,t=this.props,n=t.ariaLabelInput,r=t.className,l=t.hideTextInput,o=t.id,s=void 0===o?this.inputId=this.inputId||"__carbon-slider_".concat(Math.random().toString(36).substr(2)):o,c=t.min,p=t.minLabel,f=t.max,m=t.maxLabel,b=t.formatLabel,h=void 0===b?ce:b,v=t.labelText,g=t.step,y=(t.stepMuliplier,t.inputType),w=t.required,_=t.disabled,N=t.name,E=d(t,["ariaLabelInput","className","hideTextInput","id","min","minLabel","max","maxLabel","formatLabel","labelText","step","stepMuliplier","inputType","required","disabled","name"]),T=this.state,x=T.value,C=T.left,O=a("wfp--slider",{"wfp--slider--disabled":_},r),k={transform:"translate(0%, -50%) scaleX(".concat(C/100,")")},j={left:"".concat(C,"%")};return i.createElement("div",{className:"wfp--form-item"},i.createElement("label",{htmlFor:s,className:"wfp--label"},v),i.createElement("div",{className:"wfp--slider-container"},i.createElement("span",{className:"wfp--slider__range-label"},h(c,p)),i.createElement("div",u({className:O,ref:function(t){e.element=t},onClick:this.updatePosition,onKeyPress:this.updatePosition,role:"presentation",tabIndex:-1},E),i.createElement("div",{className:"wfp--slider__track",ref:function(t){e.track=t}}),i.createElement("div",{className:"wfp--slider__filled-track",style:k}),i.createElement("div",{className:"wfp--slider__thumb",role:"slider",id:s,tabIndex:0,"aria-valuemax":f,"aria-valuemin":c,"aria-valuenow":x,style:j,onMouseDown:this.handleMouseStart,onTouchStart:this.handleTouchStart,onKeyDown:this.updatePosition}),i.createElement("input",{type:"hidden",name:N,value:x,required:w,min:c,max:f,step:g,onChange:this.handleChange})),i.createElement("span",{className:"wfp--slider__range-label"},h(f,m)),!l&&i.createElement(se,{type:y,id:"input-for-slider",className:"wfp-slider-text-input",value:x,onChange:this.handleChange,labelText:"","aria-label":n})))}}]),t}();Object.defineProperty(ue,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:t.string,hideTextInput:t.bool,id:t.string,onChange:t.func,value:t.number.isRequired,min:t.number.isRequired,minLabel:t.string,max:t.number.isRequired,maxLabel:t.string,formatLabel:t.func,labelText:t.string,step:t.number,stepMuliplier:t.number,children:t.node,disabled:t.bool,name:t.bool,inputType:t.string,ariaLabelInput:t.string}}),Object.defineProperty(ue,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{hideTextInput:!1,step:1,stepMuliplier:4,disabled:!1,minLabel:"",maxLabel:"",inputType:"number",ariaLabelInput:"Slider number input"}});var pe=function(e){var t=e.children,n=e.className,r=a(c({"wfp--story":!0},"".concat(n),n));return i.createElement(b,{className:r},t)};pe.propTypes={children:t.node,className:t.string};var de=function(e){var t=e.className,n=e.id,r=e.labelText,l=e.hideLabel,o=e.onChange,s=e.onClick,c=e.input,p=e.invalid,f=e.invalidText,m=d(e,["className","id","labelText","hideLabel","onChange","onClick","input","invalid","invalidText"]),b={id:n,onChange:function(e){m.disabled||o(e)},onClick:function(e){m.disabled||s(e)}},h=a("wfp--text-area",t),v=a("wfp--label",{"wfp--visually-hidden":l}),g=r?i.createElement("label",{htmlFor:n,className:v},r):null,y=p?i.createElement("div",{className:"wfp--form-requirement"},f):null,w=p?i.createElement("textarea",u({},m,c,b,{className:h,"data-invalid":!0})):i.createElement("textarea",u({},m,c,b,{className:h}));return i.createElement("div",{className:"wfp--form-item"},g,w,y)};de.propTypes={className:t.string,cols:t.number,defaultValue:t.oneOfType([t.string,t.number]),disabled:t.bool,id:t.string,labelText:t.string.isRequired,onChange:t.func,onClick:t.func,placeholder:t.string,rows:t.number,value:t.oneOfType([t.string,t.number]),invalid:t.bool,invalidText:t.string,hideLabel:t.bool},de.defaultProps={disabled:!1,onChange:function(){},onClick:function(){},placeholder:"",rows:4,cols:50,invalid:!1,invalidText:""};var fe=function(e){var t,n=e.alt,r=e.className,l=e.ellipsis,o=e.image,s=e.title,c=d(e,["alt","className","ellipsis","image","title"]);t=o&&o.includes("auto")||void 0===o?i.createElement("div",{className:"wfp--user__icon wfp--user__icon--empty",alt:n}):i.createElement("img",{alt:n,className:"wfp--user__icon",src:o});var p=a("wfp--user",{className:r}),f=a({"wfp--user__title":!0,"wfp--user__title--ellipsis":l});return i.createElement("div",u({className:p},c),t,s&&i.createElement("span",{className:f},s))};fe.propTypes={alt:t.string,ellipsis:t.bool,image:t.string,title:t.string},fe.defaultProps={alt:"User Icon"},e.Blockquote=g,e.Breadcrumb=y,e.BreadcrumbItem=_,e.BreadcrumbHome=N,e.Button=T,e.Checkbox=x,e.Footer=C,e.Form=O,e.FormGroup=k,e.FormItem=j,e.FormLabel=P,e.Link=w,e.NumberInput=X,e.RadioButton=Y,e.RadioButtonGroup=te,e.Search=ne,e.Slider=ue,e.Story=pe,e.TextArea=de,e.TextInput=se,e.User=fe,e.Wrapper=b,e.BannerNavigation=v,e.BannerNavigationItem=h,e.MainNavigation=L,e.MainNavigationItem=S,e.SubNavigation=I,e.SubNavigationHeader=q,e.SubNavigationTitle=z,e.SubNavigationFilter=R,e.SubNavigationContent=D,e.SubNavigationList=B,e.SubNavigationGroup=A,e.SubNavigationItem=M,e.Module=U,e.ModuleBody=$,e.ModuleHeader=G,e.ModuleFooter=K,e.SecondaryTabs=re,e.SecondaryTabsItem=ae,Object.defineProperty(e,"__esModule",{value:!0})}); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10279174
666
25942