react-responsive-select
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactResponsiveSelect=t():e.ReactResponsiveSelect=t()}(window,function(){return function(e){var t={};function n(l){if(t[l])return t[l].exports;var r=t[l]={i:l,l:!1,exports:{}};return e[l].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:l})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=52)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.INITIALISE="INITIALISE",t.UPDATE_VIA_PROPS="UPDATE_VIA_PROPS",t.SET_IS_DRAGGING="SET_IS_DRAGGING",t.SET_OPTIONS_PANEL_OPEN="SET_OPTIONS_PANEL_OPEN",t.SET_OPTIONS_PANEL_CLOSED="SET_OPTIONS_PANEL_CLOSED",t.SET_SINGLESELECT_OPTIONS="SET_SINGLESELECT_OPTIONS",t.SET_MULTISELECT_OPTIONS="SET_MULTISELECT_OPTIONS",t.SET_OPTIONS_PANEL_CLOSED_NO_SELECTION="SET_OPTIONS_PANEL_CLOSED_NO_SELECTION",t.SET_OPTIONS_PANEL_CLOSED_ONBLUR="SET_OPTIONS_PANEL_CLOSED_ONBLUR",t.SET_NEXT_SELECTED_INDEX="SET_NEXT_SELECTED_INDEX",t.SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC="SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC"},function(e,t,n){e.exports=n(39)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(40);Object.defineProperty(t,"ReactResponsiveSelectProps",{enumerable:!0,get:function(){return l.ReactResponsiveSelectProps}});var r=n(35);Object.defineProperty(t,"MultiSelectProps",{enumerable:!0,get:function(){return r.MultiSelectProps}});var o=n(34);Object.defineProperty(t,"MultiSelectOptionProps",{enumerable:!0,get:function(){return o.MultiSelectOptionProps}});var i=n(33);Object.defineProperty(t,"SingleSelectProps",{enumerable:!0,get:function(){return i.SingleSelectProps}});var a=n(32);Object.defineProperty(t,"SingleSelectOptionProps",{enumerable:!0,get:function(){return a.SingleSelectOptionProps}})},function(e,t){e.exports=require("singleline")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("lodash.isequal")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=function e(t,n,l){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,l)}if("value"in r)return r.value;var i=r.get;return void 0!==i?i.call(l):void 0},o=a(n(15)),i=a(n(10));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),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,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}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)}(n,e),l(n,[{key:"scrollIntoView",value:function(){var e=this.props,t=e.scrollIntoViewElementSelector,n=e.scrollIntoViewScrollPaneRef,l=e.isDragging;this.scrollPaneDOM=this.scrollPaneDOM||n(),this.elementDOM=this.elementDOM||o.default.findDOMNode(this);var r=(0,i.default)(this.elementDOM,t);if(!0===l&&(this.dontScrollIntoView=!0),!this.dontScrollIntoView&&r){var a=this.scrollPaneDOM.getBoundingClientRect().top,u=this.scrollPaneDOM.getBoundingClientRect().bottom,s=this.elementDOM.getBoundingClientRect().top;this.elementDOM.getBoundingClientRect().bottom>u&&(this.scrollPaneDOM.scrollTop+=this.elementDOM.getBoundingClientRect().height),s<a&&(this.scrollPaneDOM.scrollTop-=this.elementDOM.getBoundingClientRect().height),"0"===this.elementDOM.getAttribute("data-key")&&(this.scrollPaneDOM.scrollTop=0)}}},{key:"componentDidUpdate",value:function(){return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentDidUpdate",this)&&r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentDidUpdate",this).call(this),this.scrollIntoView()}},{key:"render",value:function(){return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this)}}]),n}()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={multiselect:!1,name:void 0,options:[],isDragging:!1,isOptionsPanelOpen:!1,altered:!1,singleSelectInitialIndex:0,singleSelectSelectedIndex:0,singleSelectSelectedOption:{},nextPotentialSelectionIndex:0,multiSelectInitialSelectedIndexes:[0],multiSelectSelectedOptions:{options:[]},multiSelectSelectedIndexes:[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef,l=e.type,r=t.isOptionsPanelOpen;if(t.disabled)return;n.updateState({type:i.SET_NEXT_SELECTED_INDEX,optionIndex:(0,o.default)(l,t)}),!1===r&&n.updateState({type:i.SET_OPTIONS_PANEL_OPEN})};var l,r=n(46),o=(l=r)&&l.__esModule?l:{default:l},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));t.default=function(e){var t=e.event,n=e.state,r=e.props,o=e.ReactResponsiveSelectClassRef,i=n.multiselect,a=n.isOptionsPanelOpen,u=n.nextPotentialSelectionIndex;n.disabled||(i?o.updateState({type:l.SET_MULTISELECT_OPTIONS,optionIndex:u}):o.updateState({type:l.SET_SINGLESELECT_OPTIONS,optionIndex:u}),a?t.stopPropagation():r.onSubmit())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return String(e.className).split(" ").indexOf(t)>-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.event,n=e.state,l=e.ReactResponsiveSelectClassRef,r=n.multiselect,a=n.isOptionsPanelOpen,u=n.isDragging;if(n.disabled)return;if(!1===u){if(t.preventDefault(),t&&(0,o.default)(t.target,"rrs__options"))return;if((0,o.default)(t.target,"rrs__option"))return void l.updateState({type:r?i.SET_MULTISELECT_OPTIONS:i.SET_SINGLESELECT_OPTIONS,optionIndex:parseFloat(t.target.getAttribute("data-key"))});l.updateState({type:a?i.SET_OPTIONS_PANEL_CLOSED:i.SET_OPTIONS_PANEL_OPEN},function(){!1===l.state.isOptionsPanelOpen&&l.focusButton()})}};var l,r=n(10),o=(l=r)&&l.__esModule?l:{default:l},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));t.default=function(e){var t=e.event,n=e.state,r=e.ReactResponsiveSelectClassRef,o=n.options;if(!n.disabled){var i=o.map(function(e){return e.text.toLowerCase().charAt(0)}).indexOf(t.key);i>-1&&r.updateState({type:l.SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC,optionIndex:i})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=u(r),i=u(n(3)),a=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.index,n=e.isOptionsPanelOpen;t===e.nextPotentialSelectionIndex&&n&&this["option_"+t].focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.index,l=t.nextPotentialSelectionIndex,r=t.option,a=t.singleSelectSelectedIndex;return o.default.createElement("li",{role:"menuitem",tabIndex:"-1","data-key":n,ref:function(t){e["option_"+n]=t},className:(0,i.default)("\n rrs__option\n "+(a===n?"rrs__option--selected":"")+"\n "+(l===n?"rrs__option--next-selection":"")+"\n ")},r.markup||r.text)}}]),t}();t.default=s,s.propTypes=a.SingleSelectOptionProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=s(r),i=s(n(3)),a=n(2),u=s(n(13));function s(e){return e&&e.__esModule?e:{default:e}}var c=(0,s(n(6)).default)(u.default),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(e){!this.props.isOptionsPanelOpen&&e.isOptionsPanelOpen&&e.singleSelectSelectedIndex!==this.props.singleSelectSelectedIndex&&this.optionsButton.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.caretIcon,l=t.customLabelText,r=t.disabled,a=t.isOptionsPanelOpen,u=t.isDragging,s=t.name,d=t.nextPotentialSelectionIndex,f=t.options,p=t.prefix,S=t.singleSelectSelectedIndex,_=t.singleSelectSelectedOption;return o.default.createElement("div",null,o.default.createElement("div",{role:"button",tabIndex:"0","aria-disabled":r,"aria-haspopup":"true","aria-expanded":a,"aria-controls":"rrs-"+s+"-menu",ref:function(t){t&&(e.optionsButton=t)},className:(0,i.default)("\n rrs__button\n "+(!0===r?"rrs__button--disabled":"")+"\n ")},l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":(p?p+" ":"")+_.text+" selected",className:"rrs__label__text",id:"rrs-"+s+"-label"},l),n&&n),!l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":(p?p+" ":"")+_.text+" selected",className:"rrs__label__text",id:"rrs-"+s+"-label"},p&&o.default.createElement("span",null,p),_.text),n&&n),s&&o.default.createElement("input",{type:"hidden",name:s,value:_.value})),o.default.createElement("ul",{id:"rrs-"+s+"-menu","aria-labelledby":"rrs-"+s+"-label",role:"menu",className:"rrs__options",ref:function(t){t&&(e.optionsContainer=t)}},f.length>0&&f.map(function(t,n){return o.default.createElement(c,{scrollIntoViewScrollPaneRef:function(){return e.optionsContainer},scrollIntoViewElementSelector:"rrs__option--next-selection",key:n,index:n,isDragging:u,isOptionsPanelOpen:a,option:t,singleSelectSelectedIndex:S,nextPotentialSelectionIndex:d})})))}}]),t}();t.default=d,d.propTypes=a.SingleSelectProps},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=u(r),i=u(n(3)),a=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.index,n=e.isOptionsPanelOpen;t===e.nextPotentialSelectionIndex&&n&&this["option_"+t].focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.index,l=t.multiSelectSelectedIndexes,r=t.nextPotentialSelectionIndex,a=t.option,u=l.some(function(e){return e===n});return o.default.createElement("li",{role:"checkbox",tabIndex:"-1","aria-checked":u,"aria-label":a.text,"aria-live":"assertive","data-key":n,ref:function(t){e["option_"+n]=t},className:(0,i.default)("\n rrs__option\n "+(u?"rrs__option--selected":"")+"\n "+(r===n?"rrs__option--next-selection":"")+"\n ")},a.markup||a.text)}}]),t}();t.default=s,s.propTypes=a.MultiSelectOptionProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=c(r),i=c(n(3)),a=c(n(5)),u=n(2),s=c(n(16));function c(e){return e&&e.__esModule?e:{default:e}}var d=(0,c(n(6)).default)(s.default),f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(e){this.props.isOptionsPanelOpen||!e.isOptionsPanelOpen||(0,a.default)(e.multiSelectSelectedIndexes,this.props.multiSelectSelectedIndexes)||this.optionsButton.focus()}},{key:"getAriaLabel",value:function(){var e=this.props,t=e.multiSelectSelectedOptions,n=e.prefix,l=t.options.length;return(0,i.default)("\n Checkbox group "+(n?n+" ":"")+" has\n "+l+" item"+(1===l?"":"s")+" selected.\n Selected option"+(1===l?"":"s")+" "+(1===l?"is":"are")+"\n "+t.options.map(function(e){return e.text}).join(" and ")+"\n ")}},{key:"render",value:function(){var e=this,t=this.props,n=t.caretIcon,l=t.customLabelText,r=t.disabled,a=t.isDragging,u=t.isOptionsPanelOpen,s=t.multiSelectSelectedIndexes,c=t.multiSelectSelectedOptions,f=t.name,p=t.options,S=t.nextPotentialSelectionIndex,_=t.prefix;return o.default.createElement("div",null,o.default.createElement("div",{role:"button",tabIndex:"0","aria-disabled":r,"aria-haspopup":"true","aria-expanded":u,"aria-controls":"rrs-"+f+"-menu",ref:function(t){t&&(e.optionsButton=t)},className:(0,i.default)("\n rrs__button\n "+(!0===r?"rrs__button--disabled":"")+"\n ")},l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":this.getAriaLabel(),className:"rrs__label__text",id:"rrs-"+f+"-label"},l),n&&n),!l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":this.getAriaLabel(),className:"rrs__label__text",id:"rrs-"+f+"-label"},o.default.createElement("span",{className:"rrs__multiselect-label"},o.default.createElement("span",{className:"rrs__multiselect-label__text"},(_?_+" ":"")+c.options[0].text),c.options.length>1&&o.default.createElement("span",{className:"rrs__multiselect-label__badge"},"+ "+(c.options.length-1)))),n&&n),f&&o.default.createElement("input",{type:"hidden",name:f,value:[c.options.map(function(e){return e.value})].join(",")})),o.default.createElement("ul",{id:"rrs-"+f+"-menu","aria-labelledby":"rrs-"+f+"-label",role:"menu",className:"rrs__options",ref:function(t){t&&(e.optionsContainer=t)}},p.length>0&&p.map(function(t,n){return o.default.createElement(d,{scrollIntoViewScrollPaneRef:function(){return e.optionsContainer},scrollIntoViewElementSelector:"rrs__option--next-selection",key:n,index:n,option:t,isDragging:a,isOptionsPanelOpen:u,multiSelectSelectedIndexes:s,nextPotentialSelectionIndex:S})})))}}]),t}();t.default=f,f.propTypes=u.MultiSelectProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e){return l({},e,{multiSelectSelectedIndexes:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(i.default.multiSelectSelectedIndexes)),multiSelectSelectedOptions:l({},i.default.multiSelectSelectedOptions)})};var r,o=n(7),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e){return l({},e,{multiSelectSelectedIndexes:[0],multiSelectSelectedOptions:{options:[l({name:e.name},e.options[0])]},nextPotentialSelectionIndex:0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.isAltered=a,t.default=function(e){return l({},e,{altered:a(e)})};var r,o=n(5),i=(r=o)&&r.__esModule?r:{default:r};function a(e){return e.multiselect?!(0,i.default)(e.multiSelectInitialSelectedIndexes,e.multiSelectSelectedIndexes):e.singleSelectSelectedIndex!==e.singleSelectInitialIndex}},function(e,t,n){"use strict";function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return{options:[].concat(l(e.multiSelectSelectedOptions.options.slice(0,t)),l(e.multiSelectSelectedOptions.options.slice(t+1)))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e,t){return{options:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.multiSelectSelectedOptions.options),[l({name:e.name},e.options[t])])}}},function(e,t,n){"use strict";function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return[].concat(l(e.multiSelectSelectedIndexes.slice(0,t)),l(e.multiSelectSelectedIndexes.slice(t+1)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.multiSelectSelectedIndexes),[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e,t,n){if(t)return e.filter(function(e){return t.some(function(t){return t===e.value})}).map(function(e){return l({name:n},e)});return[l({name:n},e[0])]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.map(function(e,n){return t.some(function(t){return e.value===t})?n:void 0}).filter(function(e){return void 0!==e});return n.length?n:[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.map(function(e){return e.value}).indexOf(t);return n>-1?n:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetMultiSelectState=t.getInitialOption=t.mergeIsAlteredState=t.removeMultiSelectOption=t.addMultiSelectOption=t.removeMultiSelectIndex=t.addMultiSelectIndex=t.getInitialMultiSelectSelectedOptions=t.getSelectedValueIndexes=t.getSelectedValueIndex=void 0;var l=p(n(27)),r=p(n(26)),o=p(n(25)),i=p(n(24)),a=p(n(23)),u=p(n(22)),s=p(n(21)),c=p(n(20)),d=p(n(19)),f=p(n(18));function p(e){return e&&e.__esModule?e:{default:e}}t.getSelectedValueIndex=l.default,t.getSelectedValueIndexes=r.default,t.getInitialMultiSelectSelectedOptions=o.default,t.addMultiSelectIndex=i.default,t.removeMultiSelectIndex=a.default,t.addMultiSelectOption=u.default,t.removeMultiSelectOption=s.default,t.mergeIsAlteredState=c.default,t.getInitialOption=d.default,t.resetMultiSelectState=f.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e,t){switch(t.type){case r.UPDATE_VIA_PROPS:case r.INITIALISE:var n=(0,o.getSelectedValueIndex)(t.value.options,t.value.selectedValue),i=(0,o.getSelectedValueIndexes)(t.value.options,t.value.selectedValues),a=(0,o.getInitialMultiSelectSelectedOptions)(t.value.options,t.value.selectedValues,t.value.name);return l({},e,{multiselect:t.value.multiselect||!1,name:t.value.name,options:t.value.options,altered:t.value.altered||!1,disabled:t.value.disabled||!1,singleSelectInitialIndex:n,singleSelectSelectedIndex:n,singleSelectSelectedOption:l({name:t.value.name},t.value.options[n]),nextPotentialSelectionIndex:e.nextPotentialSelectionIndex?e.nextPotentialSelectionIndex:n,multiSelectInitialSelectedIndexes:i,multiSelectSelectedIndexes:i,multiSelectSelectedOptions:{options:a}});case r.SET_IS_DRAGGING:return l({},e,{isDragging:t.value});case r.SET_OPTIONS_PANEL_OPEN:var u=l({},e,{isOptionsPanelOpen:!0,nextPotentialSelectionIndex:e.multiselect?e.multiSelectSelectedIndexes.length?e.multiSelectSelectedIndexes[0]:0:e.nextPotentialSelectionIndex,singleSelectSelectedOption:l({name:e.name},e.options[e.singleSelectSelectedIndex])});return(0,o.mergeIsAlteredState)(u);case r.SET_OPTIONS_PANEL_CLOSED:var s=l({},e,{isOptionsPanelOpen:!1,singleSelectSelectedIndex:e.nextPotentialSelectionIndex,singleSelectSelectedOption:l({name:e.name},e.options[e.nextPotentialSelectionIndex])});return(0,o.mergeIsAlteredState)(s);case r.SET_OPTIONS_PANEL_CLOSED_NO_SELECTION:case r.SET_OPTIONS_PANEL_CLOSED_ONBLUR:return l({},e,{isOptionsPanelOpen:!1});case r.SET_NEXT_SELECTED_INDEX:return l({},e,{nextPotentialSelectionIndex:t.optionIndex});case r.SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC:return l({},e,{isOptionsPanelOpen:!0,nextPotentialSelectionIndex:t.optionIndex});case r.SET_SINGLESELECT_OPTIONS:var c=l({},e,{nextPotentialSelectionIndex:t.optionIndex,singleSelectSelectedIndex:t.optionIndex,isOptionsPanelOpen:!1,singleSelectSelectedOption:l({name:e.name},e.options[t.optionIndex])});return(0,o.mergeIsAlteredState)(c);case r.SET_MULTISELECT_OPTIONS:var d=0===e.multiSelectSelectedIndexes[0]&&1===e.multiSelectSelectedIndexes.length,f=e.multiSelectSelectedIndexes.length>0&&!d&&0===t.optionIndex,p=d&&0!==t.optionIndex;if(f){var S=(0,o.getInitialOption)(e);return(0,o.mergeIsAlteredState)(S)}p&&(e=(0,o.resetMultiSelectState)(e));var _=e.multiSelectSelectedIndexes.indexOf(t.optionIndex),O=l({},e,{nextPotentialSelectionIndex:t.optionIndex,multiSelectSelectedIndexes:-1===_?(0,o.addMultiSelectIndex)(e,t.optionIndex):(0,o.removeMultiSelectIndex)(e,_),multiSelectSelectedOptions:-1===_?(0,o.addMultiSelectOption)(e,t.optionIndex):(0,o.removeMultiSelectOption)(e,_)});return 0===O.multiSelectSelectedOptions.options.length&&(O=(0,o.getInitialOption)(e)),(0,o.mergeIsAlteredState)(O);default:return e}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),o=n(28)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.props,l=n.multiselect,r=n.customLabelRenderer,o=t.multiSelectSelectedOptions,i=t.singleSelectSelectedOption;return!!r&&r(l?o:i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});"function"==typeof Symbol&&Symbol.iterator;t.default=function(e,t,n){0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleSelectOptionProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.SingleSelectOptionProps={index:o.default.number.isRequired,isOptionsPanelOpen:o.default.bool.isRequired,nextPotentialSelectionIndex:o.default.number,option:o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired,markup:o.default.element}).isRequired,singleSelectSelectedIndex:o.default.number}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleSelectProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.SingleSelectProps={altered:o.default.bool,caretIcon:o.default.oneOfType([o.default.string,o.default.element]),customLabelText:o.default.oneOfType([o.default.string,o.default.bool,o.default.element]),disabled:o.default.bool,singleSelectInitialIndex:o.default.number,singleSelectSelectedIndex:o.default.number,singleSelectSelectedOption:o.default.shape({text:o.default.string,value:o.default.string}),isDragging:o.default.bool,isOptionsPanelOpen:o.default.bool,name:o.default.string,nextPotentialSelectionIndex:o.default.number,onSubmit:o.default.func,options:o.default.arrayOf(o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired})).isRequired,prefix:o.default.string,selectedValue:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectOptionProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.MultiSelectOptionProps={index:o.default.number.isRequired,isOptionsPanelOpen:o.default.bool.isRequired,multiSelectSelectedIndexes:o.default.arrayOf(o.default.number),nextPotentialSelectionIndex:o.default.number,option:o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired,markup:o.default.element}).isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.MultiSelectProps={altered:o.default.bool,caretIcon:o.default.oneOfType([o.default.string,o.default.element]),customLabelText:o.default.oneOfType([o.default.string,o.default.bool,o.default.element]),disabled:o.default.bool,multiSelectInitialSelectedIndexes:o.default.arrayOf(o.default.number),multiSelectSelectedIndexes:o.default.arrayOf(o.default.number),multiSelectSelectedOptions:o.default.shape({altered:o.default.bool,options:o.default.arrayOf(o.default.shape({name:o.default.string,text:o.default.string,value:o.default.string,markup:o.default.object}))}),isDragging:o.default.bool,isOptionsPanelOpen:o.default.bool,name:o.default.string,nextPotentialSelectionIndex:o.default.number,onSubmit:o.default.func,options:o.default.arrayOf(o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired})).isRequired,prefix:o.default.string}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=require("fbjs/lib/invariant")},function(e,t){e.exports=require("fbjs/lib/emptyFunction")},function(e,t,n){"use strict";var l=n(38),r=n(37),o=n(36);e.exports=function(){function e(e,t,n,l,i,a){a!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=l,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactResponsiveSelectProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.ReactResponsiveSelectProps={caretIcon:o.default.oneOfType([o.default.string,o.default.element]),customLabelRenderer:o.default.func,disabled:o.default.bool,multiselect:o.default.bool,name:o.default.string.isRequired,onChange:o.default.func,options:o.default.arrayOf(o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired})).isRequired,onSubmit:o.default.func,prefix:o.default.string,selectedValue:o.default.string,selectedValues:o.default.arrayOf(o.default.string.isRequired)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,l){l&&(e&&e.value!==t.value&&l({name:t.name,text:t.text,value:t.value,altered:n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,l){l&&(e.length&&(e.length!==t.length||e.map(function(e){return e.value}).join("")!==t.map(function(e){return e.value}).join(""))&&l({options:t.map(function(e){return{name:e.name,text:e.text,value:e.value}}),altered:n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleSelectBroadcastChange=t.multiSelectBroadcastChange=void 0;var l=o(n(42)),r=o(n(41));function o(e){return e&&e.__esModule?e:{default:e}}t.multiSelectBroadcastChange=l.default,t.singleSelectBroadcastChange=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef;if(t.disabled)return;n.updateState({type:l.SET_IS_DRAGGING,value:!1})};var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef,r=t.isDragging;if(t.disabled)return;r||n.updateState({type:l.SET_IS_DRAGGING,value:!0})};var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.isOptionsPanelOpen,l=t.nextPotentialSelectionIndex,r=t.options;switch(e){case"increment":return!1===n?l:l===r.length-1?0:l+1;case"decrement":return!1===n?l:0===l?r.length-1:l-1;default:return 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.forEach(function(e){e===t.keyCode&&t.preventDefault()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TAB:9,ENTER:13,SPACE:32,ESCAPE:27,UP:38,DOWN:40}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.event,n=e.state,c=e.props,d=e.ReactResponsiveSelectClassRef,f=n.multiselect,p=n.isOptionsPanelOpen;if(n.disabled)return;(0,o.default)([l.default.ENTER,l.default.SPACE,l.default.ESCAPE,l.default.UP,l.default.DOWN],t),/^[a-z0-9]+$/.test(t.key)&&(0,i.default)({event:t,ReactResponsiveSelectClassRef:d,state:n});switch(t.keyCode){case l.default.TAB:p&&(t.preventDefault(),f&&d.updateState({type:r.SET_OPTIONS_PANEL_CLOSED},function(){return d.focusButton()}));break;case l.default.ENTER:(0,a.default)({event:t,state:n,props:c,ReactResponsiveSelectClassRef:d});break;case l.default.SPACE:p?(0,u.default)({event:t,state:n,ReactResponsiveSelectClassRef:d}):d.updateState({type:r.SET_OPTIONS_PANEL_OPEN});break;case l.default.ESCAPE:d.updateState({type:r.SET_OPTIONS_PANEL_CLOSED_NO_SELECTION},function(){return d.focusButton()});break;case l.default.UP:(0,s.default)({state:n,ReactResponsiveSelectClassRef:d,type:"decrement"});break;case l.default.DOWN:(0,s.default)({state:n,ReactResponsiveSelectClassRef:d,type:"increment"})}};var l=c(n(48)),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),o=c(n(47)),i=c(n(12)),a=c(n(9)),u=c(n(11)),s=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef,r=t.isOptionsPanelOpen;if(t.disabled)return;r&&n.selectBox&&!n.selectBox.contains(document.activeElement)&&n.updateState({type:l.SET_OPTIONS_PANEL_CLOSED_ONBLUR})};var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleTouchStart=t.handleTouchMove=t.handleKeyUpOrDownPressed=t.handleKeyEvent=t.handleEnterPressed=t.handleClick=t.handleBlur=t.handleAlphaNumerical=void 0;var l=d(n(12)),r=d(n(50)),o=d(n(11)),i=d(n(9)),a=d(n(49)),u=d(n(8)),s=d(n(45)),c=d(n(44));function d(e){return e&&e.__esModule?e:{default:e}}t.handleAlphaNumerical=l.default,t.handleBlur=r.default,t.handleClick=o.default,t.handleEnterPressed=i.default,t.handleKeyEvent=a.default,t.handleKeyUpOrDownPressed=u.default,t.handleTouchMove=s.default,t.handleTouchStart=c.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),o=n(4),i=m(o),a=m(n(5)),u=m(n(3)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),c=n(51),d=n(43),f=n(2),p=m(n(31)),S=m(n(30)),_=m(n(7)),O=m(n(29)),v=m(n(17)),b=m(n(14));function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state=_.default,e.reducer=O.default,e}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,o.Component),r(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.selectedValue,l=e.selectedValues,r=e.name,o=e.multiselect,i=e.disabled,a=e.altered;this.updateState({type:s.INITIALISE,value:{options:t,selectedValue:n,selectedValues:l,name:r,multiselect:o,disabled:i,altered:a}})}},{key:"componentWillReceiveProps",value:function(e){(0,a.default)(e,this.props)||this.updateState({type:s.UPDATE_VIA_PROPS,value:l({},this.props,e)})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,l=n.singleSelectInitialIndex,r=n.singleSelectSelectedOption,o=n.multiSelectSelectedOptions,i=n.multiselect,u=n.altered,s=n.selectedValues,c=n.multiSelectInitialSelectedIndexes,f=this.props,p=f.onChange;return f.selectedValue!==l&&!(0,a.default)(s,c)&&(i?(0,d.multiSelectBroadcastChange)(t.multiSelectSelectedOptions.options,o.options,u,p):(0,d.singleSelectBroadcastChange)(t.singleSelectSelectedOption,r,u,p),!0)}},{key:"updateState",value:function(e,t){var n=this.reducer(this.state,e);this.setState(n,function(){return t&&t()}),(0,p.default)(this.props.name,e,n)}},{key:"focusButton",value:function(){this.selectBox.querySelector(".rrs__button").focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefix,l=t.caretIcon,r=t.disabled,o=this.state,a=o.altered,s=o.singleSelectInitialIndex,d=o.isOptionsPanelOpen,f=o.isDragging,p=o.multiSelectInitialSelectedIndexes,_=o.multiSelectSelectedIndexes,O=o.multiSelectSelectedOptions,m=o.name,y=o.nextPotentialSelectionIndex,P=o.options,h=o.singleSelectSelectedIndex,g=o.singleSelectSelectedOption,I=o.multiselect,E=(0,S.default)({state:this.state,props:this.props});return i.default.createElement("div",{className:(0,u.default)("\n rrs\n "+(!0===d?"rrs--options-visible":"")+"\n "+(a?"rrs--has-changed":"")+"\n "),ref:function(t){e.selectBox=t},onKeyDown:function(t){return(0,c.handleKeyEvent)({event:t,ReactResponsiveSelectClassRef:e,state:e.state,props:e.props})},onTouchStart:function(){return(0,c.handleTouchStart)({ReactResponsiveSelectClassRef:e,state:e.state})},onTouchMove:function(){return(0,c.handleTouchMove)({ReactResponsiveSelectClassRef:e,state:e.state})},onTouchEnd:function(t){return(0,c.handleClick)({event:t,ReactResponsiveSelectClassRef:e,state:e.state})},onMouseDown:function(t){return(0,c.handleClick)({event:t,ReactResponsiveSelectClassRef:e,state:e.state})},onBlur:function(){return(0,c.handleBlur)({ReactResponsiveSelectClassRef:e,state:e.state})}},I?i.default.createElement(v.default,{disabled:r,altered:a,isDragging:f,caretIcon:l,customLabelText:E,prefix:n,name:m,multiSelectInitialSelectedIndexes:p,multiSelectSelectedOptions:O,multiSelectSelectedIndexes:_,nextPotentialSelectionIndex:y,isOptionsPanelOpen:d,options:P}):i.default.createElement(b.default,{disabled:r,altered:a,isDragging:f,singleSelectInitialIndex:s,caretIcon:l,prefix:n,name:m,customLabelText:E,singleSelectSelectedOption:g,singleSelectSelectedIndex:h,nextPotentialSelectionIndex:y,isOptionsPanelOpen:d,options:P}))}}]),t}();t.default=y,y.propTypes=f.ReactResponsiveSelectProps}])}); | ||
module.exports=function(e){var t={};function n(l){if(t[l])return t[l].exports;var r=t[l]={i:l,l:!1,exports:{}};return e[l].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:l})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=52)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.INITIALISE="INITIALISE",t.UPDATE_VIA_PROPS="UPDATE_VIA_PROPS",t.SET_IS_DRAGGING="SET_IS_DRAGGING",t.SET_OPTIONS_PANEL_OPEN="SET_OPTIONS_PANEL_OPEN",t.SET_OPTIONS_PANEL_CLOSED="SET_OPTIONS_PANEL_CLOSED",t.SET_SINGLESELECT_OPTIONS="SET_SINGLESELECT_OPTIONS",t.SET_MULTISELECT_OPTIONS="SET_MULTISELECT_OPTIONS",t.SET_OPTIONS_PANEL_CLOSED_NO_SELECTION="SET_OPTIONS_PANEL_CLOSED_NO_SELECTION",t.SET_OPTIONS_PANEL_CLOSED_ONBLUR="SET_OPTIONS_PANEL_CLOSED_ONBLUR",t.SET_NEXT_SELECTED_INDEX="SET_NEXT_SELECTED_INDEX",t.SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC="SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC"},function(e,t,n){e.exports=n(39)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(40);Object.defineProperty(t,"ReactResponsiveSelectProps",{enumerable:!0,get:function(){return l.ReactResponsiveSelectProps}});var r=n(35);Object.defineProperty(t,"MultiSelectProps",{enumerable:!0,get:function(){return r.MultiSelectProps}});var o=n(34);Object.defineProperty(t,"MultiSelectOptionProps",{enumerable:!0,get:function(){return o.MultiSelectOptionProps}});var i=n(33);Object.defineProperty(t,"SingleSelectProps",{enumerable:!0,get:function(){return i.SingleSelectProps}});var a=n(32);Object.defineProperty(t,"SingleSelectOptionProps",{enumerable:!0,get:function(){return a.SingleSelectOptionProps}})},function(e,t){e.exports=require("singleline")},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("lodash.isequal")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=function e(t,n,l){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,l)}if("value"in r)return r.value;var i=r.get;return void 0!==i?i.call(l):void 0},o=a(n(15)),i=a(n(10));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){return function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),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,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}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)}(n,e),l(n,[{key:"scrollIntoView",value:function(){var e=this.props,t=e.scrollIntoViewElementSelector,n=e.scrollIntoViewScrollPaneRef,l=e.isDragging;this.scrollPaneDOM=this.scrollPaneDOM||n(),this.elementDOM=this.elementDOM||o.default.findDOMNode(this);var r=(0,i.default)(this.elementDOM,t);if(!0===l&&(this.dontScrollIntoView=!0),!this.dontScrollIntoView&&r){var a=this.scrollPaneDOM.getBoundingClientRect().top,u=this.scrollPaneDOM.getBoundingClientRect().bottom,s=this.elementDOM.getBoundingClientRect().top;this.elementDOM.getBoundingClientRect().bottom>u&&(this.scrollPaneDOM.scrollTop+=this.elementDOM.getBoundingClientRect().height),s<a&&(this.scrollPaneDOM.scrollTop-=this.elementDOM.getBoundingClientRect().height),"0"===this.elementDOM.getAttribute("data-key")&&(this.scrollPaneDOM.scrollTop=0)}}},{key:"componentDidUpdate",value:function(){return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentDidUpdate",this)&&r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentDidUpdate",this).call(this),this.scrollIntoView()}},{key:"render",value:function(){return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this)}}]),n}()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={multiselect:!1,name:void 0,options:[],isDragging:!1,isOptionsPanelOpen:!1,altered:!1,singleSelectInitialIndex:0,singleSelectSelectedIndex:0,singleSelectSelectedOption:{},nextPotentialSelectionIndex:0,multiSelectInitialSelectedIndexes:[0],multiSelectSelectedOptions:{options:[]},multiSelectSelectedIndexes:[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef,l=e.type,r=t.isOptionsPanelOpen;if(t.disabled)return;n.updateState({type:i.SET_NEXT_SELECTED_INDEX,optionIndex:(0,o.default)(l,t)}),!1===r&&n.updateState({type:i.SET_OPTIONS_PANEL_OPEN})};var l,r=n(46),o=(l=r)&&l.__esModule?l:{default:l},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));t.default=function(e){var t=e.event,n=e.state,r=e.props,o=e.ReactResponsiveSelectClassRef,i=n.multiselect,a=n.isOptionsPanelOpen,u=n.nextPotentialSelectionIndex;n.disabled||(i?o.updateState({type:l.SET_MULTISELECT_OPTIONS,optionIndex:u}):o.updateState({type:l.SET_SINGLESELECT_OPTIONS,optionIndex:u}),a?t.stopPropagation():r.onSubmit())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return String(e.className).split(" ").indexOf(t)>-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.event,n=e.state,l=e.ReactResponsiveSelectClassRef,r=n.multiselect,a=n.isOptionsPanelOpen,u=n.isDragging;if(n.disabled)return;if(!1===u){if(t.preventDefault(),t&&(0,o.default)(t.target,"rrs__options"))return;if((0,o.default)(t.target,"rrs__option"))return void l.updateState({type:r?i.SET_MULTISELECT_OPTIONS:i.SET_SINGLESELECT_OPTIONS,optionIndex:parseFloat(t.target.getAttribute("data-key"))});l.updateState({type:a?i.SET_OPTIONS_PANEL_CLOSED:i.SET_OPTIONS_PANEL_OPEN},function(){!1===l.state.isOptionsPanelOpen&&l.focusButton()})}};var l,r=n(10),o=(l=r)&&l.__esModule?l:{default:l},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));t.default=function(e){var t=e.event,n=e.state,r=e.ReactResponsiveSelectClassRef,o=n.options;if(!n.disabled){var i=o.map(function(e){return e.text.toLowerCase().charAt(0)}).indexOf(t.key);i>-1&&r.updateState({type:l.SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC,optionIndex:i})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=u(r),i=u(n(3)),a=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.index,n=e.isOptionsPanelOpen;t===e.nextPotentialSelectionIndex&&n&&this["option_"+t].focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.index,l=t.nextPotentialSelectionIndex,r=t.option,a=t.singleSelectSelectedIndex;return o.default.createElement("li",{role:"menuitem",tabIndex:"-1","data-key":n,ref:function(t){e["option_"+n]=t},className:(0,i.default)("\n rrs__option\n "+(a===n?"rrs__option--selected":"")+"\n "+(l===n?"rrs__option--next-selection":"")+"\n ")},r.markup||r.text)}}]),t}();t.default=s,s.propTypes=a.SingleSelectOptionProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=s(r),i=s(n(3)),a=n(2),u=s(n(13));function s(e){return e&&e.__esModule?e:{default:e}}var c=(0,s(n(6)).default)(u.default),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(e){!this.props.isOptionsPanelOpen&&e.isOptionsPanelOpen&&e.singleSelectSelectedIndex!==this.props.singleSelectSelectedIndex&&this.optionsButton.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.caretIcon,l=t.customLabelText,r=t.disabled,a=t.isOptionsPanelOpen,u=t.isDragging,s=t.name,d=t.nextPotentialSelectionIndex,f=t.options,p=t.prefix,S=t.singleSelectSelectedIndex,_=t.singleSelectSelectedOption;return o.default.createElement("div",null,o.default.createElement("div",{role:"button",tabIndex:"0","aria-disabled":r,"aria-haspopup":"true","aria-expanded":a,"aria-controls":"rrs-"+s+"-menu",ref:function(t){t&&(e.optionsButton=t)},className:(0,i.default)("\n rrs__button\n "+(!0===r?"rrs__button--disabled":"")+"\n ")},l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":(p?p+" ":"")+_.text+" selected",className:"rrs__label__text",id:"rrs-"+s+"-label"},l),n&&n),!l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":(p?p+" ":"")+_.text+" selected",className:"rrs__label__text",id:"rrs-"+s+"-label"},p&&o.default.createElement("span",null,p),_.text),n&&n),s&&o.default.createElement("input",{type:"hidden",name:s,value:_.value})),o.default.createElement("ul",{id:"rrs-"+s+"-menu","aria-labelledby":"rrs-"+s+"-label",role:"menu",className:"rrs__options",ref:function(t){t&&(e.optionsContainer=t)}},f.length>0&&f.map(function(t,n){return o.default.createElement(c,{scrollIntoViewScrollPaneRef:function(){return e.optionsContainer},scrollIntoViewElementSelector:"rrs__option--next-selection",key:n,index:n,isDragging:u,isOptionsPanelOpen:a,option:t,singleSelectSelectedIndex:S,nextPotentialSelectionIndex:d})})))}}]),t}();t.default=d,d.propTypes=a.SingleSelectProps},function(e,t){e.exports=require("react-dom")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=u(r),i=u(n(3)),a=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.index,n=e.isOptionsPanelOpen;t===e.nextPotentialSelectionIndex&&n&&this["option_"+t].focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.index,l=t.multiSelectSelectedIndexes,r=t.nextPotentialSelectionIndex,a=t.option,u=l.some(function(e){return e===n});return o.default.createElement("li",{role:"checkbox",tabIndex:"-1","aria-checked":u,"aria-label":a.text,"aria-live":"assertive","data-key":n,ref:function(t){e["option_"+n]=t},className:(0,i.default)("\n rrs__option\n "+(u?"rrs__option--selected":"")+"\n "+(r===n?"rrs__option--next-selection":"")+"\n ")},a.markup||a.text)}}]),t}();t.default=s,s.propTypes=a.MultiSelectOptionProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),r=n(4),o=c(r),i=c(n(3)),a=c(n(5)),u=n(2),s=c(n(16));function c(e){return e&&e.__esModule?e:{default:e}}var d=(0,c(n(6)).default)(s.default),f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,r.Component),l(t,[{key:"componentDidUpdate",value:function(e){this.props.isOptionsPanelOpen||!e.isOptionsPanelOpen||(0,a.default)(e.multiSelectSelectedIndexes,this.props.multiSelectSelectedIndexes)||this.optionsButton.focus()}},{key:"getAriaLabel",value:function(){var e=this.props,t=e.multiSelectSelectedOptions,n=e.prefix,l=t.options.length;return(0,i.default)("\n Checkbox group "+(n?n+" ":"")+" has\n "+l+" item"+(1===l?"":"s")+" selected.\n Selected option"+(1===l?"":"s")+" "+(1===l?"is":"are")+"\n "+t.options.map(function(e){return e.text}).join(" and ")+"\n ")}},{key:"render",value:function(){var e=this,t=this.props,n=t.caretIcon,l=t.customLabelText,r=t.disabled,a=t.isDragging,u=t.isOptionsPanelOpen,s=t.multiSelectSelectedIndexes,c=t.multiSelectSelectedOptions,f=t.name,p=t.options,S=t.nextPotentialSelectionIndex,_=t.prefix;return o.default.createElement("div",null,o.default.createElement("div",{role:"button",tabIndex:"0","aria-disabled":r,"aria-haspopup":"true","aria-expanded":u,"aria-controls":"rrs-"+f+"-menu",ref:function(t){t&&(e.optionsButton=t)},className:(0,i.default)("\n rrs__button\n "+(!0===r?"rrs__button--disabled":"")+"\n ")},l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":this.getAriaLabel(),className:"rrs__label__text",id:"rrs-"+f+"-label"},l),n&&n),!l&&o.default.createElement("div",{className:"rrs__label"},o.default.createElement("span",{"aria-label":this.getAriaLabel(),className:"rrs__label__text",id:"rrs-"+f+"-label"},o.default.createElement("span",{className:"rrs__multiselect-label"},o.default.createElement("span",{className:"rrs__multiselect-label__text"},(_?_+" ":"")+c.options[0].text),c.options.length>1&&o.default.createElement("span",{className:"rrs__multiselect-label__badge"},"+ "+(c.options.length-1)))),n&&n),f&&o.default.createElement("input",{type:"hidden",name:f,value:[c.options.map(function(e){return e.value})].join(",")})),o.default.createElement("ul",{id:"rrs-"+f+"-menu","aria-labelledby":"rrs-"+f+"-label",role:"menu",className:"rrs__options",ref:function(t){t&&(e.optionsContainer=t)}},p.length>0&&p.map(function(t,n){return o.default.createElement(d,{scrollIntoViewScrollPaneRef:function(){return e.optionsContainer},scrollIntoViewElementSelector:"rrs__option--next-selection",key:n,index:n,option:t,isDragging:a,isOptionsPanelOpen:u,multiSelectSelectedIndexes:s,nextPotentialSelectionIndex:S})})))}}]),t}();t.default=f,f.propTypes=u.MultiSelectProps},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e){return l({},e,{multiSelectSelectedIndexes:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(i.default.multiSelectSelectedIndexes)),multiSelectSelectedOptions:l({},i.default.multiSelectSelectedOptions)})};var r,o=n(7),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e){return l({},e,{multiSelectSelectedIndexes:[0],multiSelectSelectedOptions:{options:[l({name:e.name},e.options[0])]},nextPotentialSelectionIndex:0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.isAltered=a,t.default=function(e){return l({},e,{altered:a(e)})};var r,o=n(5),i=(r=o)&&r.__esModule?r:{default:r};function a(e){return e.multiselect?!(0,i.default)(e.multiSelectInitialSelectedIndexes,e.multiSelectSelectedIndexes):e.singleSelectSelectedIndex!==e.singleSelectInitialIndex}},function(e,t,n){"use strict";function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return{options:[].concat(l(e.multiSelectSelectedOptions.options.slice(0,t)),l(e.multiSelectSelectedOptions.options.slice(t+1)))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e,t){return{options:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.multiSelectSelectedOptions.options),[l({name:e.name},e.options[t])])}}},function(e,t,n){"use strict";function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return[].concat(l(e.multiSelectSelectedIndexes.slice(0,t)),l(e.multiSelectSelectedIndexes.slice(t+1)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.multiSelectSelectedIndexes),[t])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e,t,n){if(t)return e.filter(function(e){return t.some(function(t){return t===e.value})}).map(function(e){return l({name:n},e)});return[l({name:n},e[0])]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.map(function(e,n){return t.some(function(t){return e.value===t})?n:void 0}).filter(function(e){return void 0!==e});return n.length?n:[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.map(function(e){return e.value}).indexOf(t);return n>-1?n:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetMultiSelectState=t.getInitialOption=t.mergeIsAlteredState=t.removeMultiSelectOption=t.addMultiSelectOption=t.removeMultiSelectIndex=t.addMultiSelectIndex=t.getInitialMultiSelectSelectedOptions=t.getSelectedValueIndexes=t.getSelectedValueIndex=void 0;var l=p(n(27)),r=p(n(26)),o=p(n(25)),i=p(n(24)),a=p(n(23)),u=p(n(22)),s=p(n(21)),c=p(n(20)),d=p(n(19)),f=p(n(18));function p(e){return e&&e.__esModule?e:{default:e}}t.getSelectedValueIndex=l.default,t.getSelectedValueIndexes=r.default,t.getInitialMultiSelectSelectedOptions=o.default,t.addMultiSelectIndex=i.default,t.removeMultiSelectIndex=a.default,t.addMultiSelectOption=u.default,t.removeMultiSelectOption=s.default,t.mergeIsAlteredState=c.default,t.getInitialOption=d.default,t.resetMultiSelectState=f.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};t.default=function(e,t){switch(t.type){case r.UPDATE_VIA_PROPS:case r.INITIALISE:var n=(0,o.getSelectedValueIndex)(t.value.options,t.value.selectedValue),i=(0,o.getSelectedValueIndexes)(t.value.options,t.value.selectedValues),a=(0,o.getInitialMultiSelectSelectedOptions)(t.value.options,t.value.selectedValues,t.value.name);return l({},e,{multiselect:t.value.multiselect||!1,name:t.value.name,options:t.value.options,altered:t.value.altered||!1,disabled:t.value.disabled||!1,singleSelectInitialIndex:n,singleSelectSelectedIndex:n,singleSelectSelectedOption:l({name:t.value.name},t.value.options[n]),nextPotentialSelectionIndex:e.nextPotentialSelectionIndex?e.nextPotentialSelectionIndex:n,multiSelectInitialSelectedIndexes:i,multiSelectSelectedIndexes:i,multiSelectSelectedOptions:{options:a}});case r.SET_IS_DRAGGING:return l({},e,{isDragging:t.value});case r.SET_OPTIONS_PANEL_OPEN:var u=l({},e,{isOptionsPanelOpen:!0,nextPotentialSelectionIndex:e.multiselect?e.multiSelectSelectedIndexes.length?e.multiSelectSelectedIndexes[0]:0:e.nextPotentialSelectionIndex,singleSelectSelectedOption:l({name:e.name},e.options[e.singleSelectSelectedIndex])});return(0,o.mergeIsAlteredState)(u);case r.SET_OPTIONS_PANEL_CLOSED:var s=l({},e,{isOptionsPanelOpen:!1,singleSelectSelectedIndex:e.nextPotentialSelectionIndex,singleSelectSelectedOption:l({name:e.name},e.options[e.nextPotentialSelectionIndex])});return(0,o.mergeIsAlteredState)(s);case r.SET_OPTIONS_PANEL_CLOSED_NO_SELECTION:case r.SET_OPTIONS_PANEL_CLOSED_ONBLUR:return l({},e,{isOptionsPanelOpen:!1});case r.SET_NEXT_SELECTED_INDEX:return l({},e,{nextPotentialSelectionIndex:t.optionIndex});case r.SET_NEXT_SELECTED_INDEX_ALPHA_NUMERIC:return l({},e,{isOptionsPanelOpen:!0,nextPotentialSelectionIndex:t.optionIndex});case r.SET_SINGLESELECT_OPTIONS:var c=l({},e,{nextPotentialSelectionIndex:t.optionIndex,singleSelectSelectedIndex:t.optionIndex,isOptionsPanelOpen:!1,singleSelectSelectedOption:l({name:e.name},e.options[t.optionIndex])});return(0,o.mergeIsAlteredState)(c);case r.SET_MULTISELECT_OPTIONS:var d=0===e.multiSelectSelectedIndexes[0]&&1===e.multiSelectSelectedIndexes.length,f=e.multiSelectSelectedIndexes.length>0&&!d&&0===t.optionIndex,p=d&&0!==t.optionIndex;if(f){var S=(0,o.getInitialOption)(e);return(0,o.mergeIsAlteredState)(S)}p&&(e=(0,o.resetMultiSelectState)(e));var _=e.multiSelectSelectedIndexes.indexOf(t.optionIndex),O=l({},e,{nextPotentialSelectionIndex:t.optionIndex,multiSelectSelectedIndexes:-1===_?(0,o.addMultiSelectIndex)(e,t.optionIndex):(0,o.removeMultiSelectIndex)(e,_),multiSelectSelectedOptions:-1===_?(0,o.addMultiSelectOption)(e,t.optionIndex):(0,o.removeMultiSelectOption)(e,_)});return 0===O.multiSelectSelectedOptions.options.length&&(O=(0,o.getInitialOption)(e)),(0,o.mergeIsAlteredState)(O);default:return e}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),o=n(28)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.props,l=n.multiselect,r=n.customLabelRenderer,o=t.multiSelectSelectedOptions,i=t.singleSelectSelectedOption;return!!r&&r(l?o:i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});"function"==typeof Symbol&&Symbol.iterator;t.default=function(e,t,n){0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleSelectOptionProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.SingleSelectOptionProps={index:o.default.number.isRequired,isOptionsPanelOpen:o.default.bool.isRequired,nextPotentialSelectionIndex:o.default.number,option:o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired,markup:o.default.element}).isRequired,singleSelectSelectedIndex:o.default.number}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleSelectProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.SingleSelectProps={altered:o.default.bool,caretIcon:o.default.oneOfType([o.default.string,o.default.element]),customLabelText:o.default.oneOfType([o.default.string,o.default.bool,o.default.element]),disabled:o.default.bool,singleSelectInitialIndex:o.default.number,singleSelectSelectedIndex:o.default.number,singleSelectSelectedOption:o.default.shape({text:o.default.string,value:o.default.string}),isDragging:o.default.bool,isOptionsPanelOpen:o.default.bool,name:o.default.string,nextPotentialSelectionIndex:o.default.number,onSubmit:o.default.func,options:o.default.arrayOf(o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired})).isRequired,prefix:o.default.string,selectedValue:o.default.string}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectOptionProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.MultiSelectOptionProps={index:o.default.number.isRequired,isOptionsPanelOpen:o.default.bool.isRequired,multiSelectSelectedIndexes:o.default.arrayOf(o.default.number),nextPotentialSelectionIndex:o.default.number,option:o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired,markup:o.default.element}).isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSelectProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.MultiSelectProps={altered:o.default.bool,caretIcon:o.default.oneOfType([o.default.string,o.default.element]),customLabelText:o.default.oneOfType([o.default.string,o.default.bool,o.default.element]),disabled:o.default.bool,multiSelectInitialSelectedIndexes:o.default.arrayOf(o.default.number),multiSelectSelectedIndexes:o.default.arrayOf(o.default.number),multiSelectSelectedOptions:o.default.shape({altered:o.default.bool,options:o.default.arrayOf(o.default.shape({name:o.default.string,text:o.default.string,value:o.default.string,markup:o.default.object}))}),isDragging:o.default.bool,isOptionsPanelOpen:o.default.bool,name:o.default.string,nextPotentialSelectionIndex:o.default.number,onSubmit:o.default.func,options:o.default.arrayOf(o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired})).isRequired,prefix:o.default.string}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=require("fbjs/lib/invariant")},function(e,t){e.exports=require("fbjs/lib/emptyFunction")},function(e,t,n){"use strict";var l=n(38),r=n(37),o=n(36);e.exports=function(){function e(e,t,n,l,i,a){a!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=l,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactResponsiveSelectProps=void 0;var l,r=n(1),o=(l=r)&&l.__esModule?l:{default:l};t.ReactResponsiveSelectProps={caretIcon:o.default.oneOfType([o.default.string,o.default.element]),customLabelRenderer:o.default.func,disabled:o.default.bool,multiselect:o.default.bool,name:o.default.string.isRequired,onChange:o.default.func,options:o.default.arrayOf(o.default.shape({text:o.default.string.isRequired,value:o.default.string.isRequired})).isRequired,onSubmit:o.default.func,prefix:o.default.string,selectedValue:o.default.string,selectedValues:o.default.arrayOf(o.default.string.isRequired)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,l){l&&(e&&e.value!==t.value&&l({name:t.name,text:t.text,value:t.value,altered:n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,l){l&&(e.length&&(e.length!==t.length||e.map(function(e){return e.value}).join("")!==t.map(function(e){return e.value}).join(""))&&l({options:t.map(function(e){return{name:e.name,text:e.text,value:e.value}}),altered:n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.singleSelectBroadcastChange=t.multiSelectBroadcastChange=void 0;var l=o(n(42)),r=o(n(41));function o(e){return e&&e.__esModule?e:{default:e}}t.multiSelectBroadcastChange=l.default,t.singleSelectBroadcastChange=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef;if(t.disabled)return;n.updateState({type:l.SET_IS_DRAGGING,value:!1})};var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef,r=t.isDragging;if(t.disabled)return;r||n.updateState({type:l.SET_IS_DRAGGING,value:!0})};var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.isOptionsPanelOpen,l=t.nextPotentialSelectionIndex,r=t.options;switch(e){case"increment":return!1===n?l:l===r.length-1?0:l+1;case"decrement":return!1===n?l:0===l?r.length-1:l-1;default:return 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.forEach(function(e){e===t.keyCode&&t.preventDefault()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TAB:9,ENTER:13,SPACE:32,ESCAPE:27,UP:38,DOWN:40}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.event,n=e.state,c=e.props,d=e.ReactResponsiveSelectClassRef,f=n.multiselect,p=n.isOptionsPanelOpen;if(n.disabled)return;(0,o.default)([l.default.ENTER,l.default.SPACE,l.default.ESCAPE,l.default.UP,l.default.DOWN],t),/^[a-z0-9]+$/.test(t.key)&&(0,i.default)({event:t,ReactResponsiveSelectClassRef:d,state:n});switch(t.keyCode){case l.default.TAB:p&&(t.preventDefault(),f&&d.updateState({type:r.SET_OPTIONS_PANEL_CLOSED},function(){return d.focusButton()}));break;case l.default.ENTER:(0,a.default)({event:t,state:n,props:c,ReactResponsiveSelectClassRef:d});break;case l.default.SPACE:p?(0,u.default)({event:t,state:n,ReactResponsiveSelectClassRef:d}):d.updateState({type:r.SET_OPTIONS_PANEL_OPEN});break;case l.default.ESCAPE:d.updateState({type:r.SET_OPTIONS_PANEL_CLOSED_NO_SELECTION},function(){return d.focusButton()});break;case l.default.UP:(0,s.default)({state:n,ReactResponsiveSelectClassRef:d,type:"decrement"});break;case l.default.DOWN:(0,s.default)({state:n,ReactResponsiveSelectClassRef:d,type:"increment"})}};var l=c(n(48)),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),o=c(n(47)),i=c(n(12)),a=c(n(9)),u=c(n(11)),s=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.state,n=e.ReactResponsiveSelectClassRef,r=t.isOptionsPanelOpen;if(t.disabled)return;r&&n.selectBox&&!n.selectBox.contains(document.activeElement)&&n.updateState({type:l.SET_OPTIONS_PANEL_CLOSED_ONBLUR})};var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleTouchStart=t.handleTouchMove=t.handleKeyUpOrDownPressed=t.handleKeyEvent=t.handleEnterPressed=t.handleClick=t.handleBlur=t.handleAlphaNumerical=void 0;var l=d(n(12)),r=d(n(50)),o=d(n(11)),i=d(n(9)),a=d(n(49)),u=d(n(8)),s=d(n(45)),c=d(n(44));function d(e){return e&&e.__esModule?e:{default:e}}t.handleAlphaNumerical=l.default,t.handleBlur=r.default,t.handleClick=o.default,t.handleEnterPressed=i.default,t.handleKeyEvent=a.default,t.handleKeyUpOrDownPressed=u.default,t.handleTouchMove=s.default,t.handleTouchStart=c.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),o=n(4),i=m(o),a=m(n(5)),u=m(n(3)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),c=n(51),d=n(43),f=n(2),p=m(n(31)),S=m(n(30)),_=m(n(7)),O=m(n(29)),v=m(n(17)),b=m(n(14));function m(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state=_.default,e.reducer=O.default,e}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,o.Component),r(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.options,n=e.selectedValue,l=e.selectedValues,r=e.name,o=e.multiselect,i=e.disabled,a=e.altered;this.updateState({type:s.INITIALISE,value:{options:t,selectedValue:n,selectedValues:l,name:r,multiselect:o,disabled:i,altered:a}})}},{key:"componentWillReceiveProps",value:function(e){(0,a.default)(e,this.props)||this.updateState({type:s.UPDATE_VIA_PROPS,value:l({},this.props,e)})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,l=n.singleSelectInitialIndex,r=n.singleSelectSelectedOption,o=n.multiSelectSelectedOptions,i=n.multiselect,u=n.altered,s=n.selectedValues,c=n.multiSelectInitialSelectedIndexes,f=this.props,p=f.onChange;return f.selectedValue!==l&&!(0,a.default)(s,c)&&(i?(0,d.multiSelectBroadcastChange)(t.multiSelectSelectedOptions.options,o.options,u,p):(0,d.singleSelectBroadcastChange)(t.singleSelectSelectedOption,r,u,p),!0)}},{key:"updateState",value:function(e,t){var n=this.reducer(this.state,e);this.setState(n,function(){return t&&t()}),(0,p.default)(this.props.name,e,n)}},{key:"focusButton",value:function(){this.selectBox.querySelector(".rrs__button").focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefix,l=t.caretIcon,r=t.disabled,o=this.state,a=o.altered,s=o.singleSelectInitialIndex,d=o.isOptionsPanelOpen,f=o.isDragging,p=o.multiSelectInitialSelectedIndexes,_=o.multiSelectSelectedIndexes,O=o.multiSelectSelectedOptions,m=o.name,y=o.nextPotentialSelectionIndex,P=o.options,h=o.singleSelectSelectedIndex,g=o.singleSelectSelectedOption,I=o.multiselect,E=(0,S.default)({state:this.state,props:this.props});return i.default.createElement("div",{className:(0,u.default)("\n rrs\n "+(!0===d?"rrs--options-visible":"")+"\n "+(a?"rrs--has-changed":"")+"\n "),ref:function(t){e.selectBox=t},onKeyDown:function(t){return(0,c.handleKeyEvent)({event:t,ReactResponsiveSelectClassRef:e,state:e.state,props:e.props})},onTouchStart:function(){return(0,c.handleTouchStart)({ReactResponsiveSelectClassRef:e,state:e.state})},onTouchMove:function(){return(0,c.handleTouchMove)({ReactResponsiveSelectClassRef:e,state:e.state})},onTouchEnd:function(t){return(0,c.handleClick)({event:t,ReactResponsiveSelectClassRef:e,state:e.state})},onMouseDown:function(t){return(0,c.handleClick)({event:t,ReactResponsiveSelectClassRef:e,state:e.state})},onBlur:function(){return(0,c.handleBlur)({ReactResponsiveSelectClassRef:e,state:e.state})}},I?i.default.createElement(v.default,{disabled:r,altered:a,isDragging:f,caretIcon:l,customLabelText:E,prefix:n,name:m,multiSelectInitialSelectedIndexes:p,multiSelectSelectedOptions:O,multiSelectSelectedIndexes:_,nextPotentialSelectionIndex:y,isOptionsPanelOpen:d,options:P}):i.default.createElement(b.default,{disabled:r,altered:a,isDragging:f,singleSelectInitialIndex:s,caretIcon:l,prefix:n,name:m,customLabelText:E,singleSelectSelectedOption:g,singleSelectSelectedIndex:h,nextPotentialSelectionIndex:y,isOptionsPanelOpen:d,options:P}))}}]),t}();t.default=y,y.propTypes=f.ReactResponsiveSelectProps}]); |
{ | ||
"name": "react-responsive-select", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A React customisable, touchable, single-select / multi-select form component. Built with keyboard and screen reader accessibility in mind.", | ||
@@ -5,0 +5,0 @@ "main": "dist/ReactResponsiveSelect.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%359510
-0.07%