@zendeskgarden/react-buttons
Advanced tools
Comparing version 3.4.5 to 3.5.0
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="3.5.0"></a> | ||
# [3.5.0](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.4.5...@zendeskgarden/react-buttons@3.5.0) (2018-08-22) | ||
### Features | ||
* **buttons|selection:** allow customization of selected accessibility value ([#109](https://github.com/zendeskgarden/react-components/issues/109)) ([570aa6e](https://github.com/zendeskgarden/react-components/commit/570aa6e)) | ||
<a name="3.4.5"></a> | ||
@@ -8,0 +20,0 @@ ## [3.4.5](https://github.com/zendeskgarden/react-components/compare/@zendeskgarden/react-buttons@3.4.3...@zendeskgarden/react-buttons@3.4.5) (2018-08-17) |
@@ -193,3 +193,3 @@ /*! | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.4.5", | ||
'data-garden-version': "3.5.0", | ||
className: function className(_ref) { | ||
@@ -417,3 +417,3 @@ var _classNames; | ||
getButtonProps: function getButtonProps(props) { | ||
return getItemProps(_this2.getButtonProps(props)); | ||
return getItemProps(_this2.getButtonProps(props), { selectedAriaKey: 'aria-pressed' }); | ||
}, | ||
@@ -504,3 +504,3 @@ focusedKey: focusedKey, | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.4.5", | ||
'data-garden-version': "3.5.0", | ||
className: function className(props) { | ||
@@ -565,3 +565,3 @@ return (0, _classnames2.default)(_cssButtons2.default['l-btn-group'], _defineProperty({}, _cssButtons2.default['is-rtl'], (0, _reactTheming.isRtl)(props))); | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.4.5", | ||
'data-garden-version': "3.5.0", | ||
className: _cssButtons2.default['c-btn--icon'] | ||
@@ -647,3 +647,3 @@ }).withConfig({ | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.4.5", | ||
'data-garden-version': "3.5.0", | ||
className: (0, _classnames2.default)(_cssButtons2.default['c-btn__icon'], _defineProperty({}, _cssButtons2.default['is-rotated'], rotated)) | ||
@@ -994,3 +994,3 @@ }); | ||
'data-garden-id': COMPONENT_ID, | ||
'data-garden-version': "3.4.5", | ||
'data-garden-version': "3.5.0", | ||
className: function className(_ref) { | ||
@@ -997,0 +997,0 @@ var _classNames; |
@@ -20,3 +20,3 @@ /*! | ||
*/ | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(void 0===e?"undefined":r(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(o,u,function(t){return e[t]}.bind(null,u));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t){e.exports=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e&&e.defaultPrevented})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),u=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var a=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.isControlledProp=function(e){return Object.prototype.hasOwnProperty.call(r.props,e)},r.getControlledState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state;return Object.keys(e).reduce(function(t,n){return t[n]=r.isControlledProp(n)?r.props[n]:e[n],t},{})},r.setControlledState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props.onStateChange;if(t){var n={},o={};for(var u in e)r.isControlledProp(u)?n[u]=e[u]:o[u]=e[u];t(n),r.setState(o)}else r.setState(e)},i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),t}();a.propTypes={onStateChange:u.default.func},t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=0;t.default={generateId:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"garden")+"-"+r++},setIdCounter:function(e){r=e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={ALT:18,BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}},function(e,t){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).wrapping,n=void 0===t?"items":t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selectedIndex=void 0,this.numItems=0,this.wrapping=n}return r(e,[{key:"fireSelectionChanged",value:function(e,t){this.onSelectionChanged&&this.onSelectionChanged({newSelection:e,previousSelection:t})}},{key:"select",value:function(e){var t=this.selectedIndex;this.selectedIndex=e,-1===this.selectedIndex&&(this.selectedIndex=void 0),this.fireSelectionChanged(this.selectedIndex,t)}},{key:"selectNext",value:function(){if(this.numItems>0){if(!this.hasSelection())return this.selectFirst();var e=this.selectedIndex+1;return this.numItems<=e&&("clear"===this.wrapping?e=-1:"items"===this.wrapping?e%=this.numItems:"off"===this.wrapping&&(e=this.numItems-1)),this.select(e),!0}return!1}},{key:"selectPrevious",value:function(){if(this.numItems>0){if(!this.hasSelection())return this.selectLast();var e=this.selectedIndex-1;return e<0&&("clear"===this.wrapping?e=-1:"items"===this.wrapping?e=this.numItems-1:"off"===this.wrapping&&(e=0)),this.select(e),!0}return!1}},{key:"selectFirst",value:function(){return this.numItems>0&&(this.select(0),!0)}},{key:"selectLast",value:function(){return this.numItems>0&&(this.select(this.numItems-1),!0)}},{key:"clearSelection",value:function(){this.select()}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numItems,n=void 0===t?0:t,r=e.selectedIndex;this.numItems=n,this.selectedIndex=r}},{key:"hasSelection",value:function(){return void 0!==this.selectedIndex}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);Object.defineProperty(t,"KEY_CODES",{enumerable:!0,get:function(){return c(r).default}});var o=n(8);Object.defineProperty(t,"KeyboardFocusContainer",{enumerable:!0,get:function(){return c(o).default}});var u=n(9);Object.defineProperty(t,"SelectionContainer",{enumerable:!0,get:function(){return c(u).default}});var i=n(12);Object.defineProperty(t,"FieldContainer",{enumerable:!0,get:function(){return c(i).default}});var a=n(1);Object.defineProperty(t,"composeEventHandlers",{enumerable:!0,get:function(){return c(a).default}});var l=n(2);Object.defineProperty(t,"ControlledComponent",{enumerable:!0,get:function(){return c(l).default}});var d=n(3);Object.defineProperty(t,"IdManager",{enumerable:!0,get:function(){return c(d).default}});var f=n(6);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SingleSelectionModel",{enumerable:!0,get:function(){return c(f).default}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(5),a=d(n(0)),l=d(n(1));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,u=Array(n),i=0;i<n;i++)u[i]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u)));return a.onMouseDown=function(){a.keyboardFocusable=!1,setTimeout(function(){a.keyboardFocusable=!0},0)},a.onFocus=function(){a.keyboardFocusable&&a.setState({keyboardFocused:!0})},a.onBlur=function(){a.setState({keyboardFocused:!1})},a.getFocusProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tabIndex,n=void 0===t?0:t,r=e.onBlur,u=e.onFocus,i=e.onMouseDown,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["tabIndex","onBlur","onFocus","onMouseDown"]);return o({tabIndex:n,onBlur:(0,l.default)(r,a.onBlur),onFocus:(0,l.default)(u,a.onFocus),onMouseDown:(0,l.default)(i,a.onMouseDown)},d)},a.state={keyboardFocused:!1},a.keyboardFocusable=!0,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,r=void 0===n?t:n,o=this.state.keyboardFocused;return r({getFocusProps:this.getFocusProps,keyboardFocused:o})}}]),t}();f.propTypes={children:a.default.func,render:a.default.func},t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionContainer=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=v(n(0)),a=v(n(10)),l=n(11),d=v(n(2)),f=v(n(1)),c=v(n(3)),s=v(n(4)),p=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _={HORIZONTAL:"horizontal",VERTICAL:"vertical",BOTH:"both"},h=t.SelectionContainer=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var u=arguments.length,i=Array(u),a=0;a<u;a++)i[a]=arguments[a];var d=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i)));return d.keyDownEventHandlers=(b(n={},s.default.ENTER,function(e){e.preventDefault();var t=d.getControlledState().focusedKey;d.selectItem(t,t)}),b(n,s.default.SPACE,function(e){e.preventDefault();var t=d.getControlledState().focusedKey;d.selectItem(t,t)}),b(n,s.default.END,function(e){e.preventDefault(),d.focusSelectionModel.selectLast()}),b(n,s.default.HOME,function(e){e.preventDefault(),d.focusSelectionModel.selectFirst()}),b(n,s.default.LEFT,function(e){d.props.direction!==_.VERTICAL&&(e.preventDefault(),(0,l.isRtl)(d.props)?d.focusSelectionModel.selectNext():d.focusSelectionModel.selectPrevious())}),b(n,s.default.RIGHT,function(e){d.props.direction!==_.VERTICAL&&(e.preventDefault(),(0,l.isRtl)(d.props)?d.focusSelectionModel.selectPrevious():d.focusSelectionModel.selectNext())}),b(n,s.default.UP,function(e){d.props.direction!==_.HORIZONTAL&&(e.preventDefault(),d.focusSelectionModel.selectPrevious())}),b(n,s.default.DOWN,function(e){d.props.direction!==_.HORIZONTAL&&(e.preventDefault(),d.focusSelectionModel.selectNext())}),n),d.onFocusSelectionModelChange=function(e){var t=e.newSelection,n=d.indexKeyMap[t];d.setControlledState({focusedKey:n})},d.selectItem=function(e,t){d.setControlledState({selectedKey:e,focusedKey:t})},d.getContainerId=function(){return d.getControlledState().id+"--container"},d.getContainerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?d.getContainerId():t,r=e.role,u=void 0===r?"listbox":r,i=e.tabIndex,a=void 0===i?0:i,l=e.onKeyDown,c=e.onFocus,s=e.onBlur,p=e.onMouseDown,v=y(e,["id","role","tabIndex","onKeyDown","onFocus","onBlur","onMouseDown"]),b=d.getControlledState().focusedKey,_=d.props.defaultFocusedIndex;return o({id:n,role:u,tabIndex:a,"aria-activedescendant":d.getItemId(b),onKeyDown:(0,f.default)(l,function(e){var t=d.keyDownEventHandlers[e.keyCode];t&&t(e)}),onFocus:(0,f.default)(c,function(){if(!d.containerMouseDown&&void 0===b){var e=d.keyIndexMap[d.getControlledState().selectedKey];void 0===e&&(e=-1===_?e=Object.keys(d.keyIndexMap).length-1:_),d.focusSelectionModel.select(e)}}),onMouseDown:(0,f.default)(p,function(){d.containerMouseDown=!0,setTimeout(function(){d.containerMouseDown=!1},0)}),onBlur:(0,f.default)(s,function(){d.focusSelectionModel.clearSelection()})},v)},d.getItemId=function(e){return void 0===e?"":d.getControlledState().id+"--item-"+e},d.getItemProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=e.id,r=void 0===n?d.getItemId(t):n,u=e.role,i=void 0===u?"option":u,a=e.onClick,l=y(e,["key","id","role","onClick"]);if(void 0===t)throw new Error('"key" must be defined within getItemProps regardless of being used within a .map()');var c=d.getControlledState(),s=c.selectedKey,p=c.focusedKey,v=t===s,b=t===p,_=d.focusSelectionModel.numItems;return d.indexKeyMap[_]=t,d.keyIndexMap[t]=_,(b||void 0===p&&v)&&(d.focusSelectionModel.selectedIndex=_),d.focusSelectionModel.numItems++,o({id:r,key:t,role:i,"aria-selected":v,onClick:(0,f.default)(a,function(){d.selectItem(t,void 0)})},l)},d.state={focusedKey:void 0,selectedKey:void 0,id:c.default.generateId()},d.focusSelectionModel=new p.default,d.focusSelectionModel.onSelectionChanged=d.onFocusSelectionModelChange,d}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default),u(t,[{key:"componentDidUpdate",value:function(e,t){var n=void 0===this.props.focusedKey?this.state:this.props,r=void 0===e.focusedKey?t:e,o=l.getDocument?(0,l.getDocument)(this.props):document;if(void 0!==n.focusedKey&&n.focusedKey!==r.focusedKey){var u=o.getElementById(this.getItemId(n.focusedKey));u&&(0,a.default)(u)}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,r=void 0===n?t:n,o=this.getControlledState(),u=o.focusedKey,i=o.selectedKey;return this.focusSelectionModel.reset(),this.indexKeyMap={},this.keyIndexMap={},this.items=[],r({getContainerProps:this.getContainerProps,getItemProps:this.getItemProps,focusedKey:u,selectedKey:i,focusSelectionModel:this.focusSelectionModel})}}]),t}();h.propTypes={children:i.default.func,direction:i.default.oneOf([_.HORIZONTAL,_.VERTICAL,_.BOTH]),defaultFocusedIndex:i.default.number,focusedKey:i.default.oneOfType([i.default.string,i.default.number]),selectedKey:i.default.oneOfType([i.default.string,i.default.number]),onStateChange:i.default.func,id:i.default.string,render:i.default.func},h.defaultProps={defaultFocusedIndex:0,direction:_.HORIZONTAL},t.default=(0,l.withTheme)(h)},function(e,t){e.exports=n(18)},function(e,t){e.exports=n(2)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(0)),a=d(n(2)),l=d(n(3));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,u=Array(n),i=0;i<n;i++)u[i]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u)));return a.retrieveInputId=function(){return a.getControlledState().id+"--input"},a.retrieveLabelId=function(){return a.getControlledState().id+"--label"},a.retrieveHintId=function(){return a.getControlledState().id+"--hint"},a.retrieveMessageId=function(){return a.getControlledState().id+"--message"},a.getLabelProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveLabelId():t,r=e.htmlFor,u=void 0===r?a.retrieveInputId():r,i=f(e,["id","htmlFor"]);return o({id:n,htmlFor:u},i)},a.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveInputId():t,r=f(e,["id"]);return o({id:n,"aria-labelledby":a.retrieveLabelId(),"aria-describedby":a.retrieveHintId()+" "+a.retrieveMessageId()},r)},a.getHintProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveHintId():t,r=f(e,["id"]);return o({id:n},r)},a.getMessageProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveMessageId():t,r=f(e,["id"]);return o({id:n},r)},a.state={id:l.default.generateId()},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,r=void 0===n?t:n;return r({getLabelProps:this.getLabelProps,getInputProps:this.getInputProps,getHintProps:this.getHintProps,getMessageProps:this.getMessageProps})}}]),t}();c.propTypes={children:i.default.func,render:i.default.func,id:i.default.string},t.default=c}]))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){var r; | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(void 0===e?"undefined":r(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(o,u,function(t){return e[t]}.bind(null,u));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t){e.exports=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e&&e.defaultPrevented})}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),u=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var a=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.isControlledProp=function(e){return Object.prototype.hasOwnProperty.call(r.props,e)},r.getControlledState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state;return Object.keys(e).reduce(function(t,n){return t[n]=r.isControlledProp(n)?r.props[n]:e[n],t},{})},r.setControlledState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props.onStateChange;if(t){var n={},o={};for(var u in e)r.isControlledProp(u)?n[u]=e[u]:o[u]=e[u];t(n),r.setState(o)}else r.setState(e)},i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),t}();a.propTypes={onStateChange:u.default.func},t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=0;t.default={generateId:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"garden")+"-"+r++},setIdCounter:function(e){r=e}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default={ALT:18,BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}},function(e,t){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).wrapping,n=void 0===t?"items":t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.selectedIndex=void 0,this.numItems=0,this.wrapping=n}return r(e,[{key:"fireSelectionChanged",value:function(e,t){this.onSelectionChanged&&this.onSelectionChanged({newSelection:e,previousSelection:t})}},{key:"select",value:function(e){var t=this.selectedIndex;this.selectedIndex=e,-1===this.selectedIndex&&(this.selectedIndex=void 0),this.fireSelectionChanged(this.selectedIndex,t)}},{key:"selectNext",value:function(){if(this.numItems>0){if(!this.hasSelection())return this.selectFirst();var e=this.selectedIndex+1;return this.numItems<=e&&("clear"===this.wrapping?e=-1:"items"===this.wrapping?e%=this.numItems:"off"===this.wrapping&&(e=this.numItems-1)),this.select(e),!0}return!1}},{key:"selectPrevious",value:function(){if(this.numItems>0){if(!this.hasSelection())return this.selectLast();var e=this.selectedIndex-1;return e<0&&("clear"===this.wrapping?e=-1:"items"===this.wrapping?e=this.numItems-1:"off"===this.wrapping&&(e=0)),this.select(e),!0}return!1}},{key:"selectFirst",value:function(){return this.numItems>0&&(this.select(0),!0)}},{key:"selectLast",value:function(){return this.numItems>0&&(this.select(this.numItems-1),!0)}},{key:"clearSelection",value:function(){this.select()}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numItems,n=void 0===t?0:t,r=e.selectedIndex;this.numItems=n,this.selectedIndex=r}},{key:"hasSelection",value:function(){return void 0!==this.selectedIndex}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);Object.defineProperty(t,"KEY_CODES",{enumerable:!0,get:function(){return c(r).default}});var o=n(8);Object.defineProperty(t,"KeyboardFocusContainer",{enumerable:!0,get:function(){return c(o).default}});var u=n(9);Object.defineProperty(t,"SelectionContainer",{enumerable:!0,get:function(){return c(u).default}});var i=n(12);Object.defineProperty(t,"FieldContainer",{enumerable:!0,get:function(){return c(i).default}});var a=n(1);Object.defineProperty(t,"composeEventHandlers",{enumerable:!0,get:function(){return c(a).default}});var l=n(2);Object.defineProperty(t,"ControlledComponent",{enumerable:!0,get:function(){return c(l).default}});var d=n(3);Object.defineProperty(t,"IdManager",{enumerable:!0,get:function(){return c(d).default}});var f=n(6);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SingleSelectionModel",{enumerable:!0,get:function(){return c(f).default}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(5),a=d(n(0)),l=d(n(1));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,u=Array(n),i=0;i<n;i++)u[i]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u)));return a.onMouseDown=function(){a.keyboardFocusable=!1,setTimeout(function(){a.keyboardFocusable=!0},0)},a.onFocus=function(){a.keyboardFocusable&&a.setState({keyboardFocused:!0})},a.onBlur=function(){a.setState({keyboardFocused:!1})},a.getFocusProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tabIndex,n=void 0===t?0:t,r=e.onBlur,u=e.onFocus,i=e.onMouseDown,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["tabIndex","onBlur","onFocus","onMouseDown"]);return o({tabIndex:n,onBlur:(0,l.default)(r,a.onBlur),onFocus:(0,l.default)(u,a.onFocus),onMouseDown:(0,l.default)(i,a.onMouseDown)},d)},a.state={keyboardFocused:!1},a.keyboardFocusable=!0,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,r=void 0===n?t:n,o=this.state.keyboardFocused;return r({getFocusProps:this.getFocusProps,keyboardFocused:o})}}]),t}();f.propTypes={children:a.default.func,render:a.default.func},t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionContainer=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=v(n(0)),a=v(n(10)),l=n(11),d=v(n(2)),f=v(n(1)),c=v(n(3)),s=v(n(4)),p=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _={HORIZONTAL:"horizontal",VERTICAL:"vertical",BOTH:"both"},h=t.SelectionContainer=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var u=arguments.length,i=Array(u),a=0;a<u;a++)i[a]=arguments[a];var d=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i)));return d.keyDownEventHandlers=(b(n={},s.default.ENTER,function(e){e.preventDefault();var t=d.getControlledState().focusedKey;d.selectItem(t,t)}),b(n,s.default.SPACE,function(e){e.preventDefault();var t=d.getControlledState().focusedKey;d.selectItem(t,t)}),b(n,s.default.END,function(e){e.preventDefault(),d.focusSelectionModel.selectLast()}),b(n,s.default.HOME,function(e){e.preventDefault(),d.focusSelectionModel.selectFirst()}),b(n,s.default.LEFT,function(e){d.props.direction!==_.VERTICAL&&(e.preventDefault(),(0,l.isRtl)(d.props)?d.focusSelectionModel.selectNext():d.focusSelectionModel.selectPrevious())}),b(n,s.default.RIGHT,function(e){d.props.direction!==_.VERTICAL&&(e.preventDefault(),(0,l.isRtl)(d.props)?d.focusSelectionModel.selectPrevious():d.focusSelectionModel.selectNext())}),b(n,s.default.UP,function(e){d.props.direction!==_.HORIZONTAL&&(e.preventDefault(),d.focusSelectionModel.selectPrevious())}),b(n,s.default.DOWN,function(e){d.props.direction!==_.HORIZONTAL&&(e.preventDefault(),d.focusSelectionModel.selectNext())}),n),d.onFocusSelectionModelChange=function(e){var t=e.newSelection,n=d.indexKeyMap[t];d.setControlledState({focusedKey:n})},d.selectItem=function(e,t){d.setControlledState({selectedKey:e,focusedKey:t})},d.getContainerId=function(){return d.getControlledState().id+"--container"},d.getContainerProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?d.getContainerId():t,r=e.role,u=void 0===r?"listbox":r,i=e.tabIndex,a=void 0===i?0:i,l=e.onKeyDown,c=e.onFocus,s=e.onBlur,p=e.onMouseDown,v=y(e,["id","role","tabIndex","onKeyDown","onFocus","onBlur","onMouseDown"]),b=d.getControlledState().focusedKey,_=d.props.defaultFocusedIndex;return o({id:n,role:u,tabIndex:a,"aria-activedescendant":d.getItemId(b),onKeyDown:(0,f.default)(l,function(e){var t=d.keyDownEventHandlers[e.keyCode];t&&t(e)}),onFocus:(0,f.default)(c,function(){if(!d.containerMouseDown&&void 0===b){var e=d.keyIndexMap[d.getControlledState().selectedKey];void 0===e&&(e=-1===_?e=Object.keys(d.keyIndexMap).length-1:_),d.focusSelectionModel.select(e)}}),onMouseDown:(0,f.default)(p,function(){d.containerMouseDown=!0,setTimeout(function(){d.containerMouseDown=!1},0)}),onBlur:(0,f.default)(s,function(){d.focusSelectionModel.clearSelection()})},v)},d.getItemId=function(e){return void 0===e?null:d.getControlledState().id+"--item-"+e},d.getItemProps=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).selectedAriaKey,r=void 0===n?"aria-selected":n,u=t.key,i=t.id,a=void 0===i?d.getItemId(u):i,l=t.role,c=void 0===l?"option":l,s=t.onClick,p=y(t,["key","id","role","onClick"]);if(void 0===u)throw new Error('"key" must be defined within getItemProps regardless of being used within a .map()');var v=d.getControlledState(),_=v.selectedKey,h=v.focusedKey,m=u===_,g=u===h,O=d.focusSelectionModel.numItems;return d.indexKeyMap[O]=u,d.keyIndexMap[u]=O,(g||void 0===h&&m)&&(d.focusSelectionModel.selectedIndex=O),d.focusSelectionModel.numItems++,o((b(e={id:a,key:u,role:c},r,m),b(e,"onClick",(0,f.default)(s,function(){d.selectItem(u,void 0)})),e),p)},d.state={focusedKey:void 0,selectedKey:void 0,id:c.default.generateId()},d.focusSelectionModel=new p.default,d.focusSelectionModel.onSelectionChanged=d.onFocusSelectionModelChange,d}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default),u(t,[{key:"componentDidUpdate",value:function(e,t){var n=void 0===this.props.focusedKey?this.state:this.props,r=void 0===e.focusedKey?t:e,o=l.getDocument?(0,l.getDocument)(this.props):document;if(void 0!==n.focusedKey&&n.focusedKey!==r.focusedKey){var u=o.getElementById(this.getItemId(n.focusedKey));u&&(0,a.default)(u)}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,r=void 0===n?t:n,o=this.getControlledState(),u=o.focusedKey,i=o.selectedKey;return this.focusSelectionModel.reset(),this.indexKeyMap={},this.keyIndexMap={},this.items=[],r({getContainerProps:this.getContainerProps,getItemProps:this.getItemProps,focusedKey:u,selectedKey:i,focusSelectionModel:this.focusSelectionModel})}}]),t}();h.propTypes={children:i.default.func,direction:i.default.oneOf([_.HORIZONTAL,_.VERTICAL,_.BOTH]),defaultFocusedIndex:i.default.number,focusedKey:i.default.oneOfType([i.default.string,i.default.number]),selectedKey:i.default.oneOfType([i.default.string,i.default.number]),onStateChange:i.default.func,id:i.default.string,render:i.default.func},h.defaultProps={defaultFocusedIndex:0,direction:_.HORIZONTAL},t.default=(0,l.withTheme)(h)},function(e,t){e.exports=n(18)},function(e,t){e.exports=n(2)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(0)),a=d(n(2)),l=d(n(3));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,u=Array(n),i=0;i<n;i++)u[i]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u)));return a.retrieveInputId=function(){return a.getControlledState().id+"--input"},a.retrieveLabelId=function(){return a.getControlledState().id+"--label"},a.retrieveHintId=function(){return a.getControlledState().id+"--hint"},a.retrieveMessageId=function(){return a.getControlledState().id+"--message"},a.getLabelProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveLabelId():t,r=e.htmlFor,u=void 0===r?a.retrieveInputId():r,i=f(e,["id","htmlFor"]);return o({id:n,htmlFor:u},i)},a.getInputProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveInputId():t,r=f(e,["id"]);return o({id:n,"aria-labelledby":a.retrieveLabelId(),"aria-describedby":a.retrieveHintId()+" "+a.retrieveMessageId()},r)},a.getHintProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveHintId():t,r=f(e,["id"]);return o({id:n},r)},a.getMessageProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=void 0===t?a.retrieveMessageId():t,r=f(e,["id"]);return o({id:n},r)},a.state={id:l.default.generateId()},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),u(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.render,r=void 0===n?t:n;return r({getLabelProps:this.getLabelProps,getInputProps:this.getInputProps,getHintProps:this.getHintProps,getMessageProps:this.getMessageProps})}}]),t}();c.propTypes={children:i.default.func,render:i.default.func,id:i.default.string},t.default=c}]))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){var r; | ||
/*! | ||
@@ -32,3 +32,3 @@ Copyright (c) 2017 Jed Watson. | ||
*/ | ||
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var u=typeof r;if("string"===u||"number"===u)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===u)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=n(4),f=n(2);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="small",v="large",y=i.default.button.attrs({"data-garden-id":"buttons.button","data-garden-version":"3.4.5",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,u=e.disabled,i=e.focused,d=e.hovered,f=e.active,c=e.selected,y=e.pill,b=e.primary,_=e.basic,h=e.muted,m=e.link;return(0,a.default)(l.default["c-btn"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["c-btn--primary"],b),s(t,l.default["c-btn--basic"],_),s(t,l.default["c-btn--muted"],h),s(t,l.default["c-btn--pill"],y),s(t,l.default["c-btn--anchor"],m),s(t,l.default["c-btn--sm"],r===p),s(t,l.default["c-btn--lg"],r===v),s(t,l.default["c-btn--full"],o),s(t,l.default["is-active"],f),s(t,l.default["is-disabled"],u),s(t,l.default["is-focused"],i),s(t,l.default["is-hovered"],d),s(t,l.default["is-selected"],c),t))},type:"button"}).withConfig({displayName:"Button__StyledButton"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.button",e)}),b=function(e){var t=e.focused,n=e.buttonRef,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused","buttonRef"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var i=e.getFocusProps,a=e.keyboardFocused;return o.default.createElement(y,i(r({innerRef:n},u,{focused:t||a})))})};b.propTypes={danger:u.default.bool,size:u.default.oneOf([p,v]),stretched:u.default.bool,primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,link:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,selected:u.default.bool,buttonRef:u.default.func},b.hasType=function(){return b},t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=d(n(1)),i=d(n(0)),a=n(4),l=d(n(32));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return i.getGroupProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"group":t,o=f(e,["role"]);return r({role:n},o)},i.getButtonProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"button":t,o=e.key,u=e.tabIndex,d=void 0===u?-1:u,c=e.onFocus,s=f(e,["role","key","tabIndex","onFocus"]);if(void 0===o||null===o)throw new Error('"key" must be defined within getButtonProps regardless of being used within a .map()');return r({role:n,key:o,tabIndex:d,onFocus:(0,a.composeEventHandlers)(c,function(e){var t=e.target,n=i.getGroupProps().role;(0,l.default)(t,'[role="'+n+'"]').focus()})},s)},i.state={focusedKey:void 0,selectedKey:void 0,id:a.IdManager.generateId()},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ControlledComponent),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.render,o=void 0===r?n:r,i=this.getControlledState(),l=i.focusedKey,d=i.selectedKey,f=i.id;return u.default.createElement(a.SelectionContainer,{id:f,focusedKey:l,selectedKey:d,onStateChange:this.setControlledState},function(t){var n=t.getContainerProps,r=t.getItemProps;return o({getGroupProps:function(t){return n(e.getGroupProps(t))},getButtonProps:function(t){return r(e.getButtonProps(t))},focusedKey:l,selectedKey:d})})}}]),t}();c.propTypes={id:i.default.string,focusedKey:i.default.oneOfType([i.default.string,i.default.number]),selectedKey:i.default.oneOfType([i.default.string,i.default.number]),onStateChange:i.default.func,children:i.default.func,render:i.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(t),i=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(i,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:a.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=i(n(19)),o=i(n(5)),u=i(n(20));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,r.default)(e).height};var r=u(n(11)),o=u(n(5));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e.replace(o,"ms-"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(23));var o=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(6)),o=a(n(7)),u=a(n(3)),i=n(2);function a(e){return e&&e.__esModule?e:{default:e}}var l=r.default.div.attrs({"data-garden-id":"buttons.button_group_view","data-garden-version":"3.4.5",className:function(e){return(0,o.default)(u.default["l-btn-group"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},u.default["is-rtl"],(0,i.isRtl)(e)))}}).withConfig({displayName:"ButtonGroupView"})([":focus{outline:none;}",";"],function(e){return(0,i.retrieveTheme)("buttons.button_group_view",e)});t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),o=l(n(6)),u=l(n(3)),i=n(2),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}var d="small",f="large",c=(0,o.default)(a.default).attrs({"data-garden-id":"buttons.icon_button","data-garden-version":"3.4.5",className:u.default["c-btn--icon"]}).withConfig({displayName:"IconButton"})(["",";"],function(e){return(0,i.retrieveTheme)("buttons.icon_button",e)});c.propTypes={danger:r.default.bool,size:r.default.oneOf([d,f]),primary:r.default.bool,basic:r.default.bool,muted:r.default.bool,pill:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool,buttonRef:r.default.func},c.defaultProps={pill:!0,muted:!0,basic:!0},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=l(r),u=l(n(0)),i=l(n(7)),a=l(n(3));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.children,n=e.rotated;return o.default.cloneElement(r.Children.only(t),{"data-garden-id":"buttons.icon","data-garden-version":"3.4.5",className:(0,i.default)(a.default["c-btn__icon"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a.default["is-rotated"],n))})};d.propTypes={rotated:u.default.bool},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);Object.defineProperty(t,"ButtonGroupContainer",{enumerable:!0,get:function(){return c(r).default}});var o=n(36);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return c(o).default}});var u=n(39);Object.defineProperty(t,"Anchor",{enumerable:!0,get:function(){return c(u).default}});var i=n(9);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c(i).default}});var a=n(40);Object.defineProperty(t,"ChevronButton",{enumerable:!0,get:function(){return c(a).default}});var l=n(15);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return c(l).default}});var d=n(16);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return c(d).default}});var f=n(14);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ButtonGroupView",{enumerable:!0,get:function(){return c(f).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e),d={top:0,left:0},f=void 0,c=void 0,s=void 0,p=void 0,v=void 0,y=void 0,b=void 0;if(!e)return;f=t||(0,u.default)(e),p=(0,l.default)(f),c=(0,i.default)(f),y=(0,o.default)(f,!0),(p=(0,l.default)(f))||(d=(0,r.default)(f));n={top:n.top-d.top,left:n.left-d.left,height:n.height,width:n.width},v=n.height,s=n.top+(p?0:c),b=s+v,c=c>s?s:b>c+y?b-y:c;var _=(0,a.default)(function(){return(0,i.default)(f,c)});return function(){return a.default.cancel(_)}};var r=d(n(11)),o=d(n(12)),u=d(n(21)),i=d(n(30)),a=d(n(31)),l=d(n(5));function d(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8));function o(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e,"position"),n="absolute"===t,u=e.ownerDocument;if("fixed"===t)return u||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var i=n&&"static"===(0,r.default)(e,"position"),a=(0,r.default)(e,"overflow")+(0,r.default)(e,"overflow-y")+(0,r.default)(e,"overflow-x");if(!i&&(/(auto|scroll)/.test(a)&&(0,o.default)(e)<e.scrollHeight))return e}return document};var r=u(n(22)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var d="",f="",c=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,u.default)(e).getPropertyValue((0,o.default)(t));(c={})[t]=n}Object.keys(c).forEach(function(t){var n=c[t];n||0===n?(0,l.default)(t)?f+=t+"("+n+") ":d+=(0,o.default)(t)+": "+n+";":(0,i.default)(e,(0,o.default)(t))}),f&&(d+=a.transform+": "+f+";");e.style.cssText+=";"+d};var r=d(n(13)),o=d(n(24)),u=d(n(26)),i=d(n(27)),a=n(28),l=d(n(29));function d(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e).replace(o,"-ms-")};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(25));var o=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var i=e.currentStyle[t]||null;if(null==i&&n&&n[t]&&(i=n[t]),u.test(i)&&!o.test(t)){var a=n.left,l=e.runtimeStyle,d=l&&l.left;d&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":i,i=n.pixelLeft+"px",n.left=a,d&&(l.left=d)}return i}}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(13));var o=/^(top|right|bottom|left)$/,u=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r="transform",o=void 0,u=void 0,i=void 0,a=void 0,l=void 0,d=void 0,f=void 0,c=void 0,s=void 0,p=void 0,v=void 0;if(function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default){var y=function(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),r=void 0,o=void 0,u="",i=0;i<n.length;i++){var a=n[i];if(a+"TransitionProperty"in e){u="-"+a.toLowerCase(),r=t[a]("TransitionEnd"),o=t[a]("AnimationEnd");break}}!r&&"transitionProperty"in e&&(r="transitionend");!o&&"animationName"in e&&(o="animationend");return e=null,{animationEnd:o,transitionEnd:r,prefix:u}}();o=y.prefix,t.transitionEnd=u=y.transitionEnd,t.animationEnd=i=y.animationEnd,t.transform=r=o+"-"+r,t.transitionProperty=a=o+"-transition-property",t.transitionDuration=l=o+"-transition-duration",t.transitionDelay=f=o+"-transition-delay",t.transitionTiming=d=o+"-transition-timing-function",t.animationName=c=o+"-animation-name",t.animationDuration=s=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=v=o+"-animation-timing-function"}t.transform=r,t.transitionProperty=a,t.transitionTiming=d,t.transitionDelay=f,t.transitionDuration=l,t.transitionEnd=u,t.animationName=c,t.animationDuration=s,t.animationTiming=p,t.animationDelay=v,t.animationEnd=i,t.default={transform:r,end:u,property:a,timing:d,delay:f,duration:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="clearTimeout",u=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(e,n);return a=t,r},i=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};(function(e){return e&&e.__esModule?e:{default:e}})(n(8)).default&&["","webkit","moz","o","ms"].some(function(e){var t=i(e,"request");if(t in window)return o=i(e,"cancel"),u=function(e){return window[t](e)}});var a=(new Date).getTime();(r=function(e){return u(e)}).cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)},t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(;e&&(o(e)||!(0,r.default)(e,t));)e=e===n||o(e)?void 0:e.parentNode;return e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33));var o=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){!i&&r.default&&function(){var e=document.body,t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;i=t?function(e,n){return t.call(e,n)}:a}();return i?i(e,t):null};var r=u(n(34)),o=u(n(35));function u(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function a(e,t){for(var n=(0,o.default)(e.document||e.ownerDocument,t),r=0;n[r]&&n[r]!==e;)r++;return!!n[r]}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,u="#"===t[0],i="."===t[0],a=u||i?t.slice(1):t;if(r.test(a))return u?(e=e.getElementById?e:document,(n=e.getElementById(a))?[n]:[]):e.getElementsByClassName&&i?o(e.getElementsByClassName(a)):o(e.getElementsByTagName(t));return o(e.querySelectorAll(t))};var r=/^[\w-]*$/,o=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),i=p(u),a=p(n(0)),l=n(4),d=n(37),f=p(n(10)),c=p(n(14)),s=p(n(9));function p(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return a.renderButtons=function(e){var t=a.props.children,n=a.getControlledState(),o=n.selectedKey,i=n.focusedKey;return u.Children.map(t,function(t){if(!(0,u.isValidElement)(t))return t;if((0,d.hasType)(t,s.default)){if(t.props.disabled)return t;var n=t.key;if(!n)throw new Error('"key" prop must be provided to Button');return void 0===a.firstKey&&(a.firstKey=n),(0,u.cloneElement)(t,e(r({key:n,selected:n===o,focused:n===i},t.props)))}return t})},a.state={id:l.IdManager.generateId(),selectedKey:void 0,focusedKey:void 0},a.firstKey=void 0,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.ControlledComponent),o(t,[{key:"componentDidMount",value:function(){this.isControlledProp("selectedKey")||void 0===this.firstKey||this.setControlledState({selectedKey:this.firstKey})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.children,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"])),r=this.getControlledState(),o=r.focusedKey,u=r.selectedKey,a=r.id;return i.default.createElement(f.default,{id:a,focusedKey:o,selectedKey:u,onStateChange:this.setControlledState},function(t){var r=t.getGroupProps,o=t.getButtonProps;return i.default.createElement(c.default,r(n),e.renderButtons(o))})}}]),t}();v.propTypes={id:a.default.any,children:a.default.any,selectedKey:a.default.any,onStateChange:a.default.func},t.default=v},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}; | ||
!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var u=typeof r;if("string"===u||"number"===u)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===u)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}void 0!==e&&e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=n(4),f=n(2);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="small",v="large",y=i.default.button.attrs({"data-garden-id":"buttons.button","data-garden-version":"3.5.0",className:function(e){var t,n=e.danger,r=e.size,o=e.stretched,u=e.disabled,i=e.focused,d=e.hovered,f=e.active,c=e.selected,y=e.pill,b=e.primary,_=e.basic,h=e.muted,m=e.link;return(0,a.default)(l.default["c-btn"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["c-btn--primary"],b),s(t,l.default["c-btn--basic"],_),s(t,l.default["c-btn--muted"],h),s(t,l.default["c-btn--pill"],y),s(t,l.default["c-btn--anchor"],m),s(t,l.default["c-btn--sm"],r===p),s(t,l.default["c-btn--lg"],r===v),s(t,l.default["c-btn--full"],o),s(t,l.default["is-active"],f),s(t,l.default["is-disabled"],u),s(t,l.default["is-focused"],i),s(t,l.default["is-hovered"],d),s(t,l.default["is-selected"],c),t))},type:"button"}).withConfig({displayName:"Button__StyledButton"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.button",e)}),b=function(e){var t=e.focused,n=e.buttonRef,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused","buttonRef"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var i=e.getFocusProps,a=e.keyboardFocused;return o.default.createElement(y,i(r({innerRef:n},u,{focused:t||a})))})};b.propTypes={danger:u.default.bool,size:u.default.oneOf([p,v]),stretched:u.default.bool,primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,link:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,selected:u.default.bool,buttonRef:u.default.func},b.hasType=function(){return b},t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=d(n(1)),i=d(n(0)),a=n(4),l=d(n(32));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var c=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return i.getGroupProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"group":t,o=f(e,["role"]);return r({role:n},o)},i.getButtonProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.role,n=void 0===t?"button":t,o=e.key,u=e.tabIndex,d=void 0===u?-1:u,c=e.onFocus,s=f(e,["role","key","tabIndex","onFocus"]);if(void 0===o||null===o)throw new Error('"key" must be defined within getButtonProps regardless of being used within a .map()');return r({role:n,key:o,tabIndex:d,onFocus:(0,a.composeEventHandlers)(c,function(e){var t=e.target,n=i.getGroupProps().role;(0,l.default)(t,'[role="'+n+'"]').focus()})},s)},i.state={focusedKey:void 0,selectedKey:void 0,id:a.IdManager.generateId()},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ControlledComponent),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.render,o=void 0===r?n:r,i=this.getControlledState(),l=i.focusedKey,d=i.selectedKey,f=i.id;return u.default.createElement(a.SelectionContainer,{id:f,focusedKey:l,selectedKey:d,onStateChange:this.setControlledState},function(t){var n=t.getContainerProps,r=t.getItemProps;return o({getGroupProps:function(t){return n(e.getGroupProps(t))},getButtonProps:function(t){return r(e.getButtonProps(t),{selectedAriaKey:"aria-pressed"})},focusedKey:l,selectedKey:d})})}}]),t}();c.propTypes={id:i.default.string,focusedKey:i.default.oneOfType([i.default.string,i.default.number]),selectedKey:i.default.oneOfType([i.default.string,i.default.number]),onStateChange:i.default.func,children:i.default.func,render:i.default.func},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.default)(e),n=(0,o.default)(t),i=t&&t.documentElement,a={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(i,e))return a;void 0!==e.getBoundingClientRect&&(a=e.getBoundingClientRect());return a={top:a.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:a.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==a.width?e.offsetWidth:a.width)||0,height:(null==a.height?e.offsetHeight:a.height)||0}};var r=i(n(19)),o=i(n(5)),u=i(n(20));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);return n?n.innerHeight:t?e.clientHeight:(0,r.default)(e).height};var r=u(n(11)),o=u(n(5));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e.replace(o,"ms-"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(23));var o=/^-ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(6)),o=a(n(7)),u=a(n(3)),i=n(2);function a(e){return e&&e.__esModule?e:{default:e}}var l=r.default.div.attrs({"data-garden-id":"buttons.button_group_view","data-garden-version":"3.5.0",className:function(e){return(0,o.default)(u.default["l-btn-group"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},u.default["is-rtl"],(0,i.isRtl)(e)))}}).withConfig({displayName:"ButtonGroupView"})([":focus{outline:none;}",";"],function(e){return(0,i.retrieveTheme)("buttons.button_group_view",e)});t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(0)),o=l(n(6)),u=l(n(3)),i=n(2),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}var d="small",f="large",c=(0,o.default)(a.default).attrs({"data-garden-id":"buttons.icon_button","data-garden-version":"3.5.0",className:u.default["c-btn--icon"]}).withConfig({displayName:"IconButton"})(["",";"],function(e){return(0,i.retrieveTheme)("buttons.icon_button",e)});c.propTypes={danger:r.default.bool,size:r.default.oneOf([d,f]),primary:r.default.bool,basic:r.default.bool,muted:r.default.bool,pill:r.default.bool,disabled:r.default.bool,focused:r.default.bool,hovered:r.default.bool,active:r.default.bool,buttonRef:r.default.func},c.defaultProps={pill:!0,muted:!0,basic:!0},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=l(r),u=l(n(0)),i=l(n(7)),a=l(n(3));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.children,n=e.rotated;return o.default.cloneElement(r.Children.only(t),{"data-garden-id":"buttons.icon","data-garden-version":"3.5.0",className:(0,i.default)(a.default["c-btn__icon"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a.default["is-rotated"],n))})};d.propTypes={rotated:u.default.bool},t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);Object.defineProperty(t,"ButtonGroupContainer",{enumerable:!0,get:function(){return c(r).default}});var o=n(36);Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return c(o).default}});var u=n(39);Object.defineProperty(t,"Anchor",{enumerable:!0,get:function(){return c(u).default}});var i=n(9);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return c(i).default}});var a=n(40);Object.defineProperty(t,"ChevronButton",{enumerable:!0,get:function(){return c(a).default}});var l=n(15);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return c(l).default}});var d=n(16);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return c(d).default}});var f=n(14);function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ButtonGroupView",{enumerable:!0,get:function(){return c(f).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e),d={top:0,left:0},f=void 0,c=void 0,s=void 0,p=void 0,v=void 0,y=void 0,b=void 0;if(!e)return;f=t||(0,u.default)(e),p=(0,l.default)(f),c=(0,i.default)(f),y=(0,o.default)(f,!0),(p=(0,l.default)(f))||(d=(0,r.default)(f));n={top:n.top-d.top,left:n.left-d.left,height:n.height,width:n.width},v=n.height,s=n.top+(p?0:c),b=s+v,c=c>s?s:b>c+y?b-y:c;var _=(0,a.default)(function(){return(0,i.default)(f,c)});return function(){return a.default.cancel(_)}};var r=d(n(11)),o=d(n(12)),u=d(n(21)),i=d(n(30)),a=d(n(31)),l=d(n(5));function d(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8));function o(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):o(e,t)}:o,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,r.default)(e,"position"),n="absolute"===t,u=e.ownerDocument;if("fixed"===t)return u||document;for(;(e=e.parentNode)&&9!==e.nodeType;){var i=n&&"static"===(0,r.default)(e,"position"),a=(0,r.default)(e,"overflow")+(0,r.default)(e,"overflow-y")+(0,r.default)(e,"overflow-x");if(!i&&(/(auto|scroll)/.test(a)&&(0,o.default)(e)<e.scrollHeight))return e}return document};var r=u(n(22)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var d="",f="",c=t;if("string"==typeof t){if(void 0===n)return e.style[(0,r.default)(t)]||(0,u.default)(e).getPropertyValue((0,o.default)(t));(c={})[t]=n}Object.keys(c).forEach(function(t){var n=c[t];n||0===n?(0,l.default)(t)?f+=t+"("+n+") ":d+=(0,o.default)(t)+": "+n+";":(0,i.default)(e,(0,o.default)(t))}),f&&(d+=a.transform+": "+f+";");e.style.cssText+=";"+d};var r=d(n(13)),o=d(n(24)),u=d(n(26)),i=d(n(27)),a=n(28),l=d(n(29));function d(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,function(e,t){return t.toUpperCase()})};var r=/-(.)/g;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e).replace(o,"-ms-")};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(25));var o=/^ms-/;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,"-$1").toLowerCase()};var r=/([A-Z])/g;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var i=e.currentStyle[t]||null;if(null==i&&n&&n[t]&&(i=n[t]),u.test(i)&&!o.test(t)){var a=n.left,l=e.runtimeStyle,d=l&&l.left;d&&(l.left=e.currentStyle.left),n.left="fontSize"===t?"1em":i,i=n.pixelLeft+"px",n.left=a,d&&(l.left=d)}return i}}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(13));var o=/^(top|right|bottom|left)$/,u=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r="transform",o=void 0,u=void 0,i=void 0,a=void 0,l=void 0,d=void 0,f=void 0,c=void 0,s=void 0,p=void 0,v=void 0;if(function(e){return e&&e.__esModule?e:{default:e}}(n(8)).default){var y=function(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),r=void 0,o=void 0,u="",i=0;i<n.length;i++){var a=n[i];if(a+"TransitionProperty"in e){u="-"+a.toLowerCase(),r=t[a]("TransitionEnd"),o=t[a]("AnimationEnd");break}}!r&&"transitionProperty"in e&&(r="transitionend");!o&&"animationName"in e&&(o="animationend");return e=null,{animationEnd:o,transitionEnd:r,prefix:u}}();o=y.prefix,t.transitionEnd=u=y.transitionEnd,t.animationEnd=i=y.animationEnd,t.transform=r=o+"-"+r,t.transitionProperty=a=o+"-transition-property",t.transitionDuration=l=o+"-transition-duration",t.transitionDelay=f=o+"-transition-delay",t.transitionTiming=d=o+"-transition-timing-function",t.animationName=c=o+"-animation-name",t.animationDuration=s=o+"-animation-duration",t.animationTiming=p=o+"-animation-delay",t.animationDelay=v=o+"-animation-timing-function"}t.transform=r,t.transitionProperty=a,t.transitionTiming=d,t.transitionDelay=f,t.transitionDuration=l,t.transitionEnd=u,t.animationName=c,t.animationDuration=s,t.animationTiming=p,t.animationDelay=v,t.animationEnd=i,t.default={transform:r,end:u,property:a,timing:d,delay:f,duration:l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!r.test(e))};var r=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,r.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5));e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="clearTimeout",u=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(e,n);return a=t,r},i=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};(function(e){return e&&e.__esModule?e:{default:e}})(n(8)).default&&["","webkit","moz","o","ms"].some(function(e){var t=i(e,"request");if(t in window)return o=i(e,"cancel"),u=function(e){return window[t](e)}});var a=(new Date).getTime();(r=function(e){return u(e)}).cancel=function(e){window[o]&&"function"==typeof window[o]&&window[o](e)},t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){for(;e&&(o(e)||!(0,r.default)(e,t));)e=e===n||o(e)?void 0:e.parentNode;return e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(33));var o=function(e){return null!=e&&e.nodeType===e.DOCUMENT_NODE};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){!i&&r.default&&function(){var e=document.body,t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;i=t?function(e,n){return t.call(e,n)}:a}();return i?i(e,t):null};var r=u(n(34)),o=u(n(35));function u(e){return e&&e.__esModule?e:{default:e}}var i=void 0;function a(e,t){for(var n=(0,o.default)(e.document||e.ownerDocument,t),r=0;n[r]&&n[r]!==e;)r++;return!!n[r]}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=!("undefined"==typeof window||!window.document||!window.document.createElement),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,u="#"===t[0],i="."===t[0],a=u||i?t.slice(1):t;if(r.test(a))return u?(e=e.getElementById?e:document,(n=e.getElementById(a))?[n]:[]):e.getElementsByClassName&&i?o(e.getElementsByClassName(a)):o(e.getElementsByTagName(t));return o(e.querySelectorAll(t))};var r=/^[\w-]*$/,o=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),i=p(u),a=p(n(0)),l=n(4),d=n(37),f=p(n(10)),c=p(n(14)),s=p(n(9));function p(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)));return a.renderButtons=function(e){var t=a.props.children,n=a.getControlledState(),o=n.selectedKey,i=n.focusedKey;return u.Children.map(t,function(t){if(!(0,u.isValidElement)(t))return t;if((0,d.hasType)(t,s.default)){if(t.props.disabled)return t;var n=t.key;if(!n)throw new Error('"key" prop must be provided to Button');return void 0===a.firstKey&&(a.firstKey=n),(0,u.cloneElement)(t,e(r({key:n,selected:n===o,focused:n===i},t.props)))}return t})},a.state={id:l.IdManager.generateId(),selectedKey:void 0,focusedKey:void 0},a.firstKey=void 0,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.ControlledComponent),o(t,[{key:"componentDidMount",value:function(){this.isControlledProp("selectedKey")||void 0===this.firstKey||this.setControlledState({selectedKey:this.firstKey})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.children,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"])),r=this.getControlledState(),o=r.focusedKey,u=r.selectedKey,a=r.id;return i.default.createElement(f.default,{id:a,focusedKey:o,selectedKey:u,onStateChange:this.setControlledState},function(t){var r=t.getGroupProps,o=t.getButtonProps;return i.default.createElement(c.default,r(n),e.renderButtons(o))})}}]),t}();v.propTypes={id:a.default.any,children:a.default.any,selectedKey:a.default.any,onStateChange:a.default.func},t.default=v},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}; | ||
/*! | ||
@@ -46,3 +46,3 @@ * Copyright Zendesk, Inc. | ||
*/ | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(void 0===e?"undefined":r(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(o,u,function(t){return e[t]}.bind(null,u));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"hasType",{enumerable:!0,get:function(){return u(r).default}});var o=n(2);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"requiredParam",{enumerable:!0,get:function(){return u(o).default}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=e.type,r=void 0===n?{}:n,o=r.target,u=r.hasType,i=void 0;return u?i=u()===t:o&&o.hasType&&(i=o.hasType()===t),i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t)throw new Error(t);throw new Error('"'+e+'" is required')}}]))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=n(4),f=n(2);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=i.default.a.attrs({"data-garden-id":"buttons.anchor","data-garden-version":"3.4.5",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,u=e.hovered,i=e.active,d=e.selected;return(0,a.default)(l.default["c-btn"],l.default["c-btn--anchor"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["is-active"],i),s(t,l.default["is-disabled"],r),s(t,l.default["is-focused"],o),s(t,l.default["is-hovered"],u),s(t,l.default["is-selected"],d),t))}}).withConfig({displayName:"Anchor__StyledAnchor"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.anchor",e)}),v=function(e){var t=e.focused,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var u=e.getFocusProps,i=e.keyboardFocused;return o.default.createElement(p,u(r({},n,{focused:t||i})))})};v.propTypes={danger:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(1)),u=l(n(0)),i=l(n(15)),a=l(n(16));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){return o.default.createElement("svg",e,o.default.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M4 6.5l3.6 3.6c.2.2.5.2.7 0L12 6.5"}))};d.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"};var f="small",c="large",s=function(e){var t=e.rotated,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["rotated"]);return o.default.createElement(i.default,r({pill:!1,muted:!1,basic:!1},n),o.default.createElement(a.default,{rotated:t},o.default.createElement(d,null)))};s.propTypes={danger:u.default.bool,size:u.default.oneOf([f,c]),primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,buttonRef:u.default.func,rotated:u.default.bool},t.default=s}])}); | ||
!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===(void 0===e?"undefined":r(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(o,u,function(t){return e[t]}.bind(null,u));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"hasType",{enumerable:!0,get:function(){return u(r).default}});var o=n(2);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"requiredParam",{enumerable:!0,get:function(){return u(o).default}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=e.type,r=void 0===n?{}:n,o=r.target,u=r.hasType,i=void 0;return u?i=u()===t:o&&o.hasType&&(i=o.hasType()===t),i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t)throw new Error(t);throw new Error('"'+e+'" is required')}}]))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=c(n(1)),u=c(n(0)),i=c(n(6)),a=c(n(7)),l=c(n(3)),d=n(4),f=n(2);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=i.default.a.attrs({"data-garden-id":"buttons.anchor","data-garden-version":"3.5.0",className:function(e){var t,n=e.danger,r=e.disabled,o=e.focused,u=e.hovered,i=e.active,d=e.selected;return(0,a.default)(l.default["c-btn"],l.default["c-btn--anchor"],(s(t={},l.default["c-btn--danger"],n),s(t,l.default["is-active"],i),s(t,l.default["is-disabled"],r),s(t,l.default["is-focused"],o),s(t,l.default["is-hovered"],u),s(t,l.default["is-selected"],d),t))}}).withConfig({displayName:"Anchor__StyledAnchor"})(["",";"],function(e){return(0,f.retrieveTheme)("buttons.anchor",e)}),v=function(e){var t=e.focused,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["focused"]);return o.default.createElement(d.KeyboardFocusContainer,null,function(e){var u=e.getFocusProps,i=e.keyboardFocused;return o.default.createElement(p,u(r({},n,{focused:t||i})))})};v.propTypes={danger:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(1)),u=l(n(0)),i=l(n(15)),a=l(n(16));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){return o.default.createElement("svg",e,o.default.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",d:"M4 6.5l3.6 3.6c.2.2.5.2.7 0L12 6.5"}))};d.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"};var f="small",c="large",s=function(e){var t=e.rotated,n=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["rotated"]);return o.default.createElement(i.default,r({pill:!1,muted:!1,basic:!1},n),o.default.createElement(a.default,{rotated:t},o.default.createElement(d,null)))};s.propTypes={danger:u.default.bool,size:u.default.oneOf([f,c]),primary:u.default.bool,basic:u.default.bool,muted:u.default.bool,pill:u.default.bool,disabled:u.default.bool,focused:u.default.bool,hovered:u.default.bool,active:u.default.bool,buttonRef:u.default.func,rotated:u.default.bool},t.default=s}])}); | ||
//# sourceMappingURL=bundle.min.js.map |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "3.4.5", | ||
"version": "3.5.0", | ||
"main": "./dist/index.js", | ||
@@ -23,3 +23,3 @@ "files": [ | ||
"dependencies": { | ||
"@zendeskgarden/react-selection": "^4.3.4", | ||
"@zendeskgarden/react-selection": "^4.4.0", | ||
"@zendeskgarden/react-utilities": "^0.2.2", | ||
@@ -26,0 +26,0 @@ "classnames": "^2.2.5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
339593