PageSourceSearch

https://www.converse.in/5.564f506bfc48a512220b.js

js converse.in collected 2026-10-04 13:27:29 UTC 77,571 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{F0kS:function(e,t,r){"use strict";var n=r("JPst"),o=r.n(n)()(function(e){return e[1]});o.push([e.i,'.tag{background-color:#f4f4f4;border:1px solid #e9e9e9;padding:2px 0 2px 2px;border-radius:2px;display:inline-block}.tag:focus-within{background-color:#e9e9e9;border-color:#a0a0a0}.tag-remove{color:#a0a0a0;font-size:75%;line-height:100%;cursor:pointer;background-color:transparent;border:none;outline:none}.tag-remove.disabled,.tag-remove.readOnly{cursor:not-allowed}.tag-remove:focus{color:#3c3c3c}\n.node>label{cursor:pointer;margin-left:2px}.tag-list{display:inline;padding:0;margin:0}.tag-item{display:inline-block;margin:4px}.tag-item .search{border:none;border-bottom:1px solid #ccc;outline:none}.tag-item:last-child{margin-right:4px}\n.node{list-style:none;white-space:nowrap;padding:4px}.node.leaf.collapsed{display:none}.node.disabled>*{color:gray;cursor:not-allowed}.node.match-in-children.hide .node-label{opacity:.5}.node.focused{background-color:#f4f4f4}.toggle{white-space:pre;margin-right:4px;cursor:pointer}.toggle:after{content:" "}.toggle.collapsed:after{content:"+"}.toggle.expanded:after{content:"-"}.searchModeOn .toggle{display:none}.checkbox-item,.radio-item{vertical-align:middle;margin:0 4px 0 0}.checkbox-item.simple-select,.radio-item.simple-select{display:none}\n.hide:not(.match-in-children){display:none}.react-dropdown-tree-select .dropdown{position:relative;display:table}.react-dropdown-tree-select .dropdown .dropdown-trigger{padding:4px;line-height:20px;max-height:200px;display:inline-block;overflow:auto;border:1px solid #b9b9b9}.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow{cursor:pointer}.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow.bottom:after{content:"\\25BC";vertical-align:middle;color:#3c3c3c;margin-right:2px}.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow.top:after{content:"\\25B2";vertical-align:middle;color:#3c3c3c;margin-right:2px}.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow.disabled{cursor:not-allowed}.react-dropdown-tree-select .dropdown .dropdown-trigger.arrow.disabled.bottom:after{color:#b9b9b9}.react-dropdown-tree-select .dropdown .dropdown-content{position:absolute;padding:4px;z-index:1;background:#fff;border-top:1px solid rgba(0,0,0,.05);box-shadow:0 5px 8px rgba(0,0,0,.15)}.react-dropdown-tree-select .dropdown .dropdown-content .search{width:100%;border:none;border-bottom:1px solid #ccc;outline:none}.react-dropdown-tree-select .dropdown .dropdown-content ul{margin:0;padding:0}',""]),t.a=o},I6lN:function(e,t,r){var n;n=(e=>(()=>{var t={865:e=>{"use strict";e.exports=function(e,t){var r=e.filter(t);return 0!==r.length&&r.length!==e.length}},703:(e,t,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("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");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(e,t,r)=>{e.exports=r(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},385:function(e,t,r){var n;n=function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();
1function i(e){return e&&e.__esModule?e:{default:e}}var a=r(8),c=i(a),l=i(r(6)),s=i(r(2)),u=r(1),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){for(var n=!0;n;){var o=e,i=t,a=r;n=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,i);if(void 0!==c){if("value"in c)return c.value;var l=c.get;if(void 0===l)return;return l.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return;e=s,t=i,r=a,n=!0,c=s=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.state={showLoader:!1,lastScrollTop:0,actionTriggered:!1,pullToRefreshThresholdBreached:!1},this.startY=0,this.currentY=0,this.dragging=!1,this.maxPullDownDistance=0,this.onScrollListener=this.onScrollListener.bind(this),this.throttledOnScrollListener=(0,s.default)(this.onScrollListener,150).bind(this),this.onStart=this.onStart.bind(this),this.onMove=this.onMove.bind(this),this.onEnd=this.onEnd.bind(this),this.getScrollableTarget=this.getScrollableTarget.bind(this)}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)}
1(t,a.Component),o(t,[{key:"componentDidMount",value:function(){if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown.firstChild.getBoundingClientRect().height,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')}},{key:"componentWillUnmount",value:function(){this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd))}},{key:"componentWillReceiveProps",value:function(e){this.props.key===e.key&&this.props.dataLength===e.dataLength||this.setState({showLoader:!1,actionTriggered:!1,pullToRefreshThresholdBreached:!1})}},{key:"getScrollableTarget",value:function(){return this.props.scrollableTarget instanceof HTMLElement?this.props.scrollableTarget:"string"==typeof this.props.scrollableTarget?document.getElementById(this.props.scrollableTarget):(this.props.scrollableTarget,null)}},{key:"onStart",value:function(e){this.state.lastScrollTop||(this.dragging=!0,this.startY=e.pageY||e.touches[0].pageY,this.currentY=this.startY,this._infScroll.style.willChange="transform",this._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)")}},{key:"onMove",value:function(e){this.dragging&&(this.currentY=e.pageY||e.touches[0].pageY,this.currentY<this.startY||(this.currentY-this.startY>=this.props.pullDownToRefreshThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),this.currentY-this.startY>1.5*this.maxPullDownDistance||(this._infScroll.style.overflow="visible",this._infScroll.style.transform="translate3d(0px, "+(this.currentY-this.startY)+"px, 0px)")))}},{key:"onEnd",value:function(e){var t=this;this.startY=0,this.currentY=0,this.dragging=!1,this.state.pullToRefreshThresholdBreached&&this.props.refreshFunction&&this.props.refreshFunction(),requestAnimationFrame(function(){t._infScroll&&(t._infScroll.style.overflow="auto",t._infScroll.style.transform="none",t._infScroll.style.willChange="none")})}},{key:"isElementAtBottom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?.8:arguments[1],r=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,n=(0,u.parseThreshold)(t);return n.unit===u.ThresholdUnits.Pixel?e.scrollTop+r>=e.scrollHeight-n.value:e.scrollTop+r>=n.value/100*e.scrollHeight}},{key:"onScrollListener",value:function(e){var t=this;"function"==typeof this.props.onScroll&&setTimeout(function(){return t.props.onScroll(e)},0);var r=this.props.height||this._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;this.state.actionTriggered||(this.isElementAtBottom(r,this.props.scrollThreshold)&&this.props.hasMore&&(this.setState({actionTriggered:!0,showLoader:!0}),this.props.next()),this.setState({lastScrollTop:r.scrollTop}))}},{key:"render",value:function(){var e=this,t=n({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!(!this.props.children||!this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return c.default.createElement("div",{style:o},c.default.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&c.default.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},c.default.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},!this.state.pullToRefreshThresholdBreached&&this.props.pullDownToRefreshContent,this.state.pullToRefreshThresholdBreached&&this.props.releaseToRefreshContent)),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))}}]),t}();t.default=f,f.defaultProps={pullDownToRefreshContent:c.default.createElement("h3",null,"Pull down to refresh"),releaseToRefreshContent:c.default.createElement("h3",null,"Release to refresh"),pullDownToRefreshThreshold:100,disableBrowserPullToRefresh:!0}
1,f.propTypes={next:l.default.func,hasMore:l.default.bool,children:l.default.node,loader:l.default.node.isRequired,scrollThreshold:l.default.oneOfType([l.default.number,l.default.string]),endMessage:l.default.node,style:l.default.object,height:l.default.number,scrollableTarget:l.default.node,hasChildren:l.default.bool,pullDownToRefresh:l.default.bool,pullDownToRefreshContent:l.default.node,releaseToRefreshContent:l.default.node,pullDownToRefreshThreshold:l.default.number,refreshFunction:l.default.func,onScroll:l.default.func,dataLength:l.default.number.isRequired,key:l.default.string},e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseThreshold=function(e){return"number"==typeof e?{unit:r.Percent,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:r.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:r.Percent,value:parseFloat(e)}:n:n};var r={Pixel:"Pixel",Percent:"Percent"};t.ThresholdUnits=r;var n={unit:r.Percent,value:.8}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n,o;return t||(t=250),function(){var i=r||this,a=+new Date,c=arguments;n&&a<n+t?(clearTimeout(o),o=setTimeout(function(){n=a,e.apply(i,c)},t)):(n=a,e.apply(i,c))}},e.exports=t.default},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,i,a,c){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,i,a,c],u=0;(l=new Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,r){"use strict";var n=r(3),o=r(4),i=r(7);e.exports=function(){function e(e,t,r,n,a,c){c!==i&&o(!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 r={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};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){e.exports=r(5)()},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,r){t.exports=e}])},e.exports=n(r(787))},787:t=>{"use strict";t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.n=(e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t}),n.d=((e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}),n.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),n.r=(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})});var o={};return(()=>{"use strict";n.r(o),n.d(o,{default:()=>Ft});var e=n(697),t=n.n(e),r=n(787),i=n.n(r);const a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){return t["data-".concat(function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}(r))]=e[r],t},{})},c=function(e){return!e||Array.isArray(e)&&!e.length};var l,s;const u=(l=1,s=new WeakMap,{get:function(e){return s.has(e)||s.set(e,l++),"".concat("rdts").concat(s.get(e))},reset:function(){s=new WeakMap,l=1}}),f=function(e,t,r){if(Array.prototype.findIndex)return e.findIndex(t,r);if(!e)throw new TypeError("findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("findIndex predicate must be a function");for(var n=0;n<e.length;n++){var o=e[n];if(t.call(r,o,n,e))return n}return-1};function p(e,t){var r=function(e){return e?"#"===e[0]?{"aria-labelledby":e.substring(1).replace(/ #/g," ")}:{"aria-label":e}:{}}(e);return t&&(r["aria-labelledby"]="".concat(r["aria-labelledby"]||""," ").concat(t).trim()),r}function d(e){return(d="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})(e)}
1function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=g(n);if(o){var r=g(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}(this,e)});function c(e){var t,r,n;return function(e,t){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this),v(b(t=a.call(this,e)),"handleInputChange",function(e){e.persist(),t.delayedCallback(e)}),t.delayedCallback=(r=function(e){return t.props.onInputChange(e.target.value)},function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=!n;clearTimeout(n),n=setTimeout(function(){n=null,r.apply(void 0,t)},300),i&&r.apply(void 0,t)}),t}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.inputRef,r=e.texts,n=void 0===r?{}:r,o=e.onFocus,a=e.onBlur,c=e.disabled,l=e.readOnly,s=e.onKeyDown,u=e.activeDescendant,f=e.inlineSearchInput;return i().createElement("input",h({type:"text",disabled:c,ref:t,className:"search",placeholder:f?n.inlineSearchPlaceholder||"Search...":n.placeholder||"Choose...",onKeyDown:s,onChange:this.handleInputChange,onFocus:o,onBlur:a,readOnly:l,"aria-activedescendant":u,"aria-autocomplete":s?"list":void 0},p(n.label)))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);v(m,"propTypes",{tags:t().array,texts:t().object,onInputChange:t().func,onFocus:t().func,onBlur:t().func,onTagRemove:t().func,onKeyDown:t().func,inputRef:t().func,disabled:t().bool,readOnly:t().bool,activeDescendant:t().string,inlineSearchInput:t().bool});const w=m;function O(e){return(O="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})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=function(e){return"".concat(e,"_tag")},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=k(n);if(o){var r=k(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}(this,e)});function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];
1return j(S(e=a.call.apply(a,[this].concat(r))),"handleClick",function(t){var r=e.props,n=r.id,o=r.onDelete;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),o(n,void 0!==(t.key||t.keyCode))}),j(S(e),"onKeyDown",function(t){"Backspace"===t.key&&(e.handleClick(t),t.preventDefault())}),j(S(e),"onKeyUp",function(t){(32===t.keyCode||["Delete","Enter"].indexOf(t.key)>-1)&&(e.handleClick(t),t.preventDefault())}),e}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.label,n=e.labelRemove,o=void 0===n?"Remove":n,a=e.readOnly,c=e.disabled,l=T(t),s="".concat(t,"_button"),u=["tag-remove",a&&"readOnly",c&&"disabled"].filter(Boolean).join(" "),f=a||c;return i().createElement("span",{className:"tag",id:l,"aria-label":r},r,i().createElement("button",{id:s,onClick:f?void 0:this.handleClick,onKeyDown:f?void 0:this.onKeyDown,onKeyUp:f?void 0:this.onKeyUp,className:u,type:"button","aria-label":o,"aria-labelledby":"".concat(s," ").concat(l),"aria-disabled":f},"x"))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);j(_,"propTypes",{id:t().string.isRequired,label:t().string.isRequired,onDelete:t().func,readOnly:t().bool,disabled:t().bool,labelRemove:t().string});const x=_;function E(e){return(E="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})(e)}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var D,I,M,B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(l,e);var t,r,n,o,c=(n=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=R(n);if(o){var r=R(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),c.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.tags,r=e.onTagRemove,n=e.texts,o=void 0===n?{}:n,c=e.disabled,l=e.readOnly,s=e.children||i().createElement("span",{className:"placeholder"},o.placeholder||"Choose...");return i().createElement("ul",{className:"tag-list"},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return e.map(function(e){var c=e._id,l=e.label,s=e.tagClassName,u=e.dataset,f=e.tagLabel;return i().createElement("li",N({className:["tag-item",s].filter(Boolean).join(" "),key:"tag-item-".concat(c)},a(u)),i().createElement(x,{label:f||l,id:c,onDelete:t,readOnly:r,disabled:n||e.disabled,labelRemove:o}))})}(t,r,l,c,o.labelRemove),i().createElement("li",{className:"tag-item"},s))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.PureComponent);D=B,I="propTypes",M={tags:t().array,onTagRemove:t().func,readOnly:t().bool,disabled:t().bool,texts:t().object,children:t().node},I in D?Object.defineProperty(D,I,{value:M,enumerable:!0,configurable:!0,writable:!0}):D[I]=M;const F=B;function A(e){return(A="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})(e)}function L(){return(L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=U(n);if(o){var r=U(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}(this,e)});function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return q(Y(e=a.call.apply(a,[this].concat(r))),"getAriaAttributes",function(){var t=e.props,r=t.mode,n=t.texts,o=void 0===n?{}:n,i=t.showDropdown,a=t.clientId,c=t.tags,l="".concat(a,"_trigger"),s=[],u=p(o.label);return c&&c.length&&(u["aria-label"]&&s.push(l),c.forEach(function(e){s.push(T(e._id))}),u=p(o.label,s.join(" "))),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({id:l,role:"button",tabIndex:e.props.tabIndex,"aria-haspopup":"simpleSelect"===r?"listbox":"tree","aria-expanded":i?"true":"false"},u)}),q(Y(e),"handleTrigger",function(t){t.key&&13!==t.keyCode&&32!==t.keyCode&&40!==t.keyCode||t.key&&e.triggerNode&&e.triggerNode!==document.activeElement||(e.props.showDropdown||32!==t.keyCode||t.preventDefault(),e.props.onTrigger(t))}),e}return t=c,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.disabled,n=t.readOnly,o=t.showDropdown,a=["dropdown-trigger","arrow",r&&"disabled",n&&"readOnly",o&&"top",!o&&"bottom"].filter(Boolean).join(" ");return i().createElement("a",L({ref:function(t){e.triggerNode=t},className:a,onClick:r?void 0:this.handleTrigger,onKeyDown:r?void 0:this.handleTrigger},this.getAriaAttributes()),this.props.children)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);q(H,"propTypes",{onTrigger:t().func,disabled:t().bool,readOnly:t().bool,showDropdown:t().bool,mode:t().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),texts:t().object,clientId:t().string,tags:t().array,tabIndex:t().number});const W=H;var z=n(385),$=n.n(z);function J(e){return(J="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})(e)}
1function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Q(n);if(o){var r=Q(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return G(e)}(this,e)});function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return X(G(e=a.call.apply(a,[this].concat(r))),"handleClick",function(){var t=e.props,r=t.onAction,n=t.actionData;r&&r(n.nodeId,n.action)}),e}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.title,r=e.className,n=e.text,o=e.readOnly;return i().createElement("i",{title:t,className:r,onClick:o?void 0:this.handleClick},n)}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);X(ee,"propTypes",{title:t().string,text:t().string,className:t().string,actionData:t().object,onAction:t().func,readOnly:t().bool}),X(ee,"defaultProps",{onAction:function(){}});const te=ee;function re(e){return(re="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})(e)}var ne=["actions","id"];function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(t){se(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ce(e,t)}(l,e);var t,r,n,o,a=(n=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=le(n);if(o){var r=le(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.actions,r=e.id,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ne);return c(t)?null:t.map(function(e,t){var o=e.id||"action-".concat(t);return i().createElement(te,oe({key:o},n,e,{actionData:{action:ae(ae({},e),{},{id:o}),nodeId:r}}))})}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.PureComponent);
1se(ue,"propTypes",{id:t().string.isRequired,actions:t().array});const fe=ue;function pe(e){return(pe="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})(e)}var de=["checked","indeterminate","onChange","disabled","readOnly"];function he(){return(he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e){return(be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ge=function(e){var t=e.checked,r=e.indeterminate;return function(e){e&&(e.checked=t,e.indeterminate=r)}},ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=be(n);if(o){var r=be(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.checked,r=e.indeterminate,n=void 0!==r&&r,o=e.onChange,a=e.disabled,c=e.readOnly,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,de),s=a||c;return i().createElement("input",he({type:"checkbox",ref:ge({checked:t,indeterminate:n}),onChange:o,disabled:s},l))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(ve,"propTypes",{checked:t().bool,indeterminate:t().bool,onChange:t().func,disabled:t().bool,readOnly:t().bool});const me=ve;function we(e){return(we="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})(e)}var Oe=["name","checked","onChange","disabled","readOnly"];function Pe(){return(Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Se(e,t){return(Se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){var t=e.checked;return function(e){e&&(e.checked=t)}},Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ke(n);if(o){var r=ke(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.name,r=e.checked,n=e.onCh
1ange,o=e.disabled,a=e.readOnly,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Oe),l=o||a;return i().createElement("input",Pe({type:"radio",name:t,ref:je({checked:r}),onChange:n,disabled:l},c))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);!function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(Te,"propTypes",{name:t().string.isRequired,checked:t().bool,onChange:t().func,disabled:t().bool,readOnly:t().bool});const _e=Te;function xe(e){return(xe="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})(e)}function Ee(){return(Ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Ne(n);if(o){var r=Ne(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Re(e)}(this,e)});function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return De(Re(e=a.call.apply(a,[this].concat(r))),"handleCheckboxChange",function(t){var r=e.props,n=r.mode,o=r.id;(0,r.onCheckboxChange)(o,"simpleSelect"===n||"radioSelect"===n||t.target.checked),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()}),e}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.mode,r=e.title,n=e.label,o=e.id,a=e.partial,c=e.checked,l=this.props,s=l.value,u=l.disabled,f=l.showPartiallySelected,p=l.readOnly,d=l.clientId,h={className:"node-label"};"simpleSelect"===t&&!p&&!u&&(h.onClick=this.handleCheckboxChange);var y={id:o,value:s,checked:c,disabled:u,readOnly:p,tabIndex:-1},b=["checkbox-item","simpleSelect"===t&&"simple-select"].filter(Boolean).join(" ");return i().createElement("label",{title:r||n,htmlFor:o},"radioSelect"===t?i().createElement(_e,Ee({name:d,className:"radio-item",onCh
1ange:this.handleCheckboxChange},y)):i().createElement(me,Ee({name:o,className:b,indeterminate:f&&a,onChange:this.handleCheckboxChange},y)),i().createElement("span",h,n))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);De(Ie,"propTypes",{id:t().string.isRequired,actions:t().array,title:t().string,label:t().string.isRequired,value:t().string.isRequired,checked:t().bool,partial:t().bool,disabled:t().bool,dataset:t().object,mode:t().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:t().bool,onCheckboxChange:t().func,readOnly:t().bool,clientId:t().string});const Me=Ie;function Be(e){return(Be="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})(e)}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=Le(n);if(o){var r=Le(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ae(e)}(this,e)});function c(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ve(Ae(e=a.call.apply(a,[this].concat(r))),"onToggle",function(t){t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.props.onNodeToggle(e.props.id)}),Ve(Ae(e),"onKeyDown",function(t){"Enter"!==t.key&&32!==t.keyCode||(e.props.onNodeToggle(e.props.id),t.preventDefault())}),e}return t=c,(r=[{key:"render",value:function(){var e=this.props,t=e.expanded,r=e.isLeaf,n=["toggle",t&&"expanded",!t&&"collapsed"].filter(Boolean).join(" ");return r?i().createElement("i",{role:"button",tabIndex:-1,className:n,style:{visibility:"hidden"},"aria-hidden":!0}):i().createElement("i",{role:"button",tabIndex:-1,className:n,onClick:this.onToggle,onKeyDown:this.onKeyDown,"aria-hidden":!0})}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.PureComponent);Ve(Ke,"propTypes",{expanded:t().bool,isLeaf:t().bool,onNodeToggle:t().func,id:t().string});const Ye=Ke;function Ue(e){return(Ue="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})(e)}function qe(){return(qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function He(e,t){return(He=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Je=function(e){return c(e)},Ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&He(e,t)}(l,e);var t,r,n,o,c=(n=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ze(n);if(o){var r=ze(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}(this,e)});function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];
1return $e(We(e=c.call.apply(c,[this].concat(r))),"getAriaAttributes",function(){var t=e.props,r=t._children,n=t._depth,o=t.checked,i=t.disabled,a=t.expanded,c=t.readOnly,l=t.mode,s=t.partial,u={};return u.role="simpleSelect"===l?"option":"treeitem",u["aria-disabled"]=i||c,u["aria-selected"]=o,"simpleSelect"!==l&&(u["aria-checked"]=s?"mixed":o,u["aria-level"]=(n||0)+1,u["aria-expanded"]=r&&(a?"true":"false")),u}),e}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.mode,r=e.keepTreeOnSearch,n=e._id,o=e._children,c=e.dataset,l=e._depth,s=e.expanded,u=e.title,f=e.label,p=e.partial,d=e.checked,h=e.value,y=e.disabled,b=e.actions,g=e.onAction,v=e.searchModeOn,m=e.onNodeToggle,w=e.onCheckboxChange,O=e.showPartiallySelected,P=e.readOnly,S=e.clientId,k=function(e){var t=e.keepTreeOnSearch,r=e.keepChildrenOnSearch,n=e._children,o=e.matchInChildren,i=e.matchInParent,a=e.disabled,c=e.partial,l=e.hide,s=e.className,u=e.showPartiallySelected,f=e.readOnly,p=e.checked,d=e._focused;return["node",Je(n)&&"leaf",!Je(n)&&"tree",a&&"disabled",l&&"hide",t&&o&&"match-in-children",t&&r&&i&&"match-in-parent",u&&c&&"partial",f&&"readOnly",p&&"checked",d&&"focused",s].filter(Boolean).join(" ")}(this.props),j=r||!v?{paddingLeft:"".concat(20*(l||0),"px")}:{},T="".concat(n,"_li");return i().createElement("li",qe({className:k,style:j,id:T},a(c),this.getAriaAttributes()),i().createElement(Ye,{isLeaf:Je(o),expanded:s,id:n,onNodeToggle:m}),i().createElement(Me,{title:u,label:f,id:n,partial:p,checked:d,value:h,disabled:y,mode:t,onCheckboxChange:w,showPartiallySelected:O,readOnly:P,clientId:S}),i().createElement(fe,{actions:b,onAction:g,id:n,readOnly:P}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.PureComponent);$e(Ze,"propTypes",{_id:t().string.isRequired,_depth:t().number,_children:t().array,actions:t().array,className:t().string,title:t().string,label:t().string.isRequired,value:t().string.isRequired,checked:t().bool,expanded:t().bool,disabled:t().bool,partial:t().bool,dataset:t().object,keepTreeOnSearch:t().bool,keepChildrenOnSearch:t().bool,searchModeOn:t().bool,onNodeToggle:t().func,onAction:t().func,onCheckboxChange:t().func,mode:t().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:t().bool,readOnly:t().bool,clientId:t().string});const Ge=Ze;function Qe(e){return(Qe="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})(e)}function Xe(){return(Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ot=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=rt(n);if(o){var r=rt(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tt(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this),nt(tt(t=a.call(this,e)),"UNSAFE_componentWillReceiveProps",function(e){var r=e.activeDescendant===t.props.activeDescendant;t.computeInstanceProps(e,!r),t.setState({items:t.allVisibleNodes.slice(0,t.currentPage*t.props.pageSize)})}),nt(tt(t),"componentDidMount",function(){t.setState({scrollableTarget:t.node.parentNode})}
1),nt(tt(t),"computeInstanceProps",function(e,r){if(t.allVisibleNodes=t.getNodes(e),t.totalPages=Math.ceil(t.allVisibleNodes.length/t.props.pageSize),r&&e.activeDescendant){var n=e.activeDescendant.replace(/_li$/,""),o=f(t.allVisibleNodes,function(e){return e.key===n})+1;t.currentPage=o>0?Math.ceil(o/t.props.pageSize):1}}),nt(tt(t),"shouldRenderNode",function(e,t){var r=t.data,n=t.searchModeOn,o=e.expanded,i=e._parent;if(n||o)return!0;var a=i&&r.get(i);return!a||a.expanded}),nt(tt(t),"getNodes",function(e){var r=e.data,n=e.keepTreeOnSearch,o=e.keepChildrenOnSearch,a=e.searchModeOn,c=e.mode,l=e.showPartiallySelected,s=e.readOnly,u=e.onAction,f=e.onChange,p=e.onCheckboxChange,d=e.onNodeToggle,h=e.activeDescendant,y=e.clientId,b=[];return r.forEach(function(r){t.shouldRenderNode(r,e)&&b.push(i().createElement(Ge,Xe({keepTreeOnSearch:n,keepChildrenOnSearch:o,key:r._id},r,{searchModeOn:a,onChange:f,onCheckboxChange:p,onNodeToggle:d,onAction:u,mode:c,showPartiallySelected:l,readOnly:s,clientId:y,activeDescendant:h})))}),b}),nt(tt(t),"hasMore",function(){return t.currentPage<t.totalPages}),nt(tt(t),"loadMore",function(){t.currentPage=t.currentPage+1;var e=t.allVisibleNodes.slice(0,t.currentPage*t.props.pageSize);t.setState({items:e})}),nt(tt(t),"setNodeRef",function(e){t.node=e}),nt(tt(t),"getAriaAttributes",function(){var e=t.props.mode;return{role:"simpleSelect"===e?"listbox":"tree","aria-multiselectable":/multiSelect|hierarchical/.test(e)}}),t.currentPage=1,t.computeInstanceProps(e,!0),t.state={items:t.allVisibleNodes.slice(0,t.props.pageSize)},t}return t=c,(r=[{key:"render",value:function(){var e=this.props.searchModeOn;return i().createElement("ul",Xe({className:"root ".concat(e?"searchModeOn":""),ref:this.setNodeRef},this.getAriaAttributes()),this.state.scrollableTarget&&i().createElement($(),{dataLength:this.state.items.length,next:this.loadMore,hasMore:this.hasMore(),loader:i().createElement("span",{className:"searchLoader"},"Loading..."),scrollableTarget:this.state.scrollableTarget},this.state.items))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Component);nt(ot,"propTypes",{data:t().object,keepTreeOnSearch:t().bool,keepChildrenOnSearch:t().bool,searchModeOn:t().bool,onChange:t().func,onNodeToggle:t().func,onAction:t().func,onCheckboxChange:t().func,mode:t().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:t().bool,pageSize:t().number,readOnly:t().bool,clientId:t().string,activeDescendant:t().string}),nt(ot,"defaultProps",{pageSize:100});const it=ot;var at=n(865),ct=n.n(at),lt=function(e){return e};const st=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lt;return ct()(e[t],function(e){return r(e).checked})||e[t].some(function(e){return r(e).partial})};const ut=function(e){var t=e.tree,r=e.simple,n=e.radio,o=e.showPartialState,i=e.hierarchical,a=e.rootPrefixId;return function e(t){var r=t.nodes,n=t.parent,o=t.depth,i=void 0===o?0:o,a=t.simple,l=t.radio,s=t.showPartialState,u=t.hierarchical,f=t.rootPrefixId,p=t._rv,d=void 0===p?{list:new Map,defaultValues:[],singleSelectedNode:null}:p,h=a||l;return r.forEach(function(t,r){t._depth=i,n?(t._id=t.id||"".concat(n._id,"-").concat(r),t._parent=n._id,n._children.push(t._id)):t._id=t.id||"".concat(f?"".concat(f,"-").concat(r):r),h&&t.checked&&(d.singleSelectedNode?t.checked=!1:d.singleSelectedNode=t),h&&t.isDefaultValue&&d.singleSelectedNode&&!d.singleSelectedNode.isDefaultValue&&(d.singleSelectedNode.checked=!1,d.singleSelectedNode=null),!t.isDefaultValue||h&&0!==d.defaultValues.length||(d.defaultValues.push(t._id),t.checked=!0,h&&(d.singleSelectedNode=t)),u&&!l||function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?["disabled"]:["checked","disabled"],n=0;n<r.length;n++){var o=r[n];void 0===e[o]&&void 0!==t[o]&&(e[o]=t[o])}}(t,n,!l),d.list.set(t._id,t),!a&&t.children&&(t._children=[],e({nodes:t.children,parent:t,depth:i+1,radio:l,showPartialState:s,hierarchical:u,_rv:d}),s&&!t.checked&&(t.partial=st(t),h||c(t.children)||!t.children.every(function(e){return e.checked})||(t.checked=!0)),t.children=void 0)}),d}({nodes:Array.isArray(t)?t:[t],simple:r,radio:n,showPartialState:o,hierarchical:i,rootPrefixId:a})};var ft=function e(t,r,n){r[t._id]=!0,c(t._children)||t._children.forEac
1h(function(t){return e(n(t),r,n)})},pt=function(e,t){var r=[],n={};return e.forEach(function(e,o){n[o]||(t(e,o,n)&&r.push(e),n[o]=!0)}),r};const dt={getNodesMatching:pt,getVisibleNodes:function(e,t,r){return pt(e,function(e,n,o){return r&&e._children&&e._children.length&&!0!==e.expanded&&ft(e,o,t),!e.hide})},markSubTreeVisited:ft};function ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yt="ArrowUp",bt="ArrowDown",gt="ArrowLeft",vt="ArrowRight",mt="PageDown",wt={None:"None",FocusPrevious:"FocusPrevious",FocusNext:"FocusNext",FocusParent:"FocusParent",FocusFirst:"FocusFirst",FocusLast:"FocusLast",ToggleExpanded:"ToggleExpanded",ToggleChecked:"ToggleChecked"},Ot=new Set([wt.FocusPrevious,wt.FocusNext,wt.FocusParent,wt.FocusFirst,wt.FocusLast]),Pt=[yt,bt,"Home","PageUp","End",mt],St=Pt.concat([gt,vt,"Enter"]),kt=function(e,t,r,n){return t.indexOf(e)>-1||!r&&e===n},jt={isValidKey:function(e,t){return(t?St:Pt).indexOf(e)>-1},getAction:function(e,t){return t===gt?function(e,t){return e&&t===gt?!0===e.expanded?wt.ToggleExpanded:e._parent?wt.FocusParent:wt.None:wt.None}(e,t):t===vt?function(e,t){return e&&e._children&&t===vt?!0!==e.expanded?wt.ToggleExpanded:wt.FocusNext:wt.None}(e,t):function(e,t){return kt(e,["Home","PageUp"],t,bt)}(t,e)?wt.FocusFirst:function(e,t){return kt(e,["End",mt],t,yt)}(t,e)?wt.FocusLast:function(e,t){if(!e)return wt.None;switch(t){case yt:return wt.FocusPrevious;case bt:return wt.FocusNext;case"Enter":return wt.ToggleChecked;default:return wt.None}}(e,t)},getNextFocus:function(e,t,r,n,o){if(r===wt.FocusParent)return function(e,t){return e&&e._parent?t(e._parent):e}(t,n);if(!Ot.has(r))return t;var i=dt.getVisibleNodes(e,n,o);return kt(r,[wt.FocusPrevious,wt.FocusLast],!0)&&(i=i.reverse()),function(e,t,r){if(!e||0===e.length)return t;var n,o=t;return kt(r,[wt.FocusFirst,wt.FocusLast],!0)?o=(n=e,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,c=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),1!==i.length);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}}(n)||function(e,t){if(e){if("string"==typeof e)return ht(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ht(e,1):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0]:[wt.FocusPrevious,wt.FocusNext].indexOf(r)>-1&&(o=function(e,t){var r=e.indexOf(t)+1;return r%e.length==0?e[0]:e[r]}(e,t)),o}(i,t,r)},getNextFocusAfterTagDelete:function(e,t,r,n){var o=t?f(t,function(t){return t._id===e}):-1;if(o<0||!r.length)return n;var i=r[o=r.length>
1o?o:r.length-1]._id,a=document.getElementById(T(i));return a&&a.firstElementChild||n},handleFocusNavigationkey:function(e,t,r,n,o){var i=jt.getNextFocus(e,r,t,n,o);return jt.adjustFocusedProps(r,i),i?i._id:r&&r._id},handleToggleNavigationkey:function(e,t,r,n,o){return e!==wt.ToggleChecked||r||t.readOnly||t.disabled?e===wt.ToggleExpanded&&o(t._id):n(t._id,!0!==t.checked),t&&t._id},adjustFocusedProps:function(e,t){e&&t&&e._id!==t._id&&(e._focused=!1),t&&(t._focused=!0)}};const Tt=jt;const _t=function(){function e(t){var r=t.data,n=t.mode,o=t.showPartiallySelected,i=t.rootPrefixId,a=t.searchPredicate;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._src=r,this.simpleSelect="simpleSelect"===n,this.radioSelect="radioSelect"===n,this.hierarchical="hierarchical"===n,this.searchPredicate=a;var c=ut({tree:JSON.parse(JSON.stringify(r)),simple:this.simpleSelect,radio:this.radioSelect,showPartialState:o,hierarchical:this.hierarchical,rootPrefixId:i}),l=c.list,s=c.defaultValues,u=c.singleSelectedNode;this.tree=l,this.defaultValues=s,this.showPartialState=!this.hierarchical&&o,this.searchMaps=new Map,(this.simpleSelect||this.radioSelect)&&u&&(this.currentChecked=u._id)}var t,r;return t=e,(r=[{key:"getNodeById",value:function(e){return this.tree.get(e)}},{key:"getMatches",value:function(e){var t=this;if(this.searchMaps.has(e))return this.searchMaps.get(e);var r=-1,n=e;this.searchMaps.forEach(function(t,o){e.startsWith(o)&&o.length>r&&(r=o.length,n=o)});var o=[],i=this._getAddOnMatch(o,e);return n!==e?this.searchMaps.get(n).forEach(function(e){return i(t.getNodeById(e))}):this.tree.forEach(i),this.searchMaps.set(e,o),o}},{key:"addParentsToTree",value:function(e,t){if(void 0!==e){var r=this.getNodeById(e);this.addParentsToTree(r._parent,t),r.hide=!r._isMatch||r.hide,r.matchInChildren=!0,t.set(e,r)}}},{key:"addChildrenToTree",value:function(e,t,r){var n=this;void 0!==e&&e.forEach(function(e){if(!r||!r.includes(e)){var o=n.getNodeById(e);o.matchInParent=!0,t.set(e,o),n.addChildrenToTree(o._children,t)}})}},{key:"filterTree",value:function(e,t,r){var n=this,o=this.getMatches(e.toLowerCase()),i=new Map;o.forEach(function(e){var a=n.getNodeById(e);a.hide=!1,a._isMatch=!0,t&&n.addParentsToTree(a._parent,i),i.set(e,a),t&&r&&n.addChildrenToTree(a._children,i,o)});var a=0===o.length;return this.matchTree=i,{allNodesHidden:a,tree:i}}},{key:"restoreNodes",value:function(){return this.tree.forEach(function(e){e.hide=!1}),this.tree}},{key:"restoreDefaultValues",value:function(){var e=this;return this.defaultValues.forEach(function(t){e.setNodeCheckedState(t,!0)}),this.tree}},{key:"togglePreviousChecked",value:function(e,t){var r=this.currentChecked;if(r&&r!==e){var n=this.getNodeById(r);n.checked=!1,this.radioSelect&&this.showPartialState&&this.partialCheckParents(n)}this.currentChecked=t?e:null}},{key:"setNodeCheckedState",value:function(e,t){this.radioSelect&&this.togglePreviousChecked(e,t);var r=this.getNodeById(e);r.checked=t,this.showPartialState&&(r.partial=!1),this.simpleSelect?this.togglePreviousChecked(e,t):this.radioSelect?(this.showPartialState&&this.partialCheckParents(r),t||this.unCheckParents(r)):(this.hierarchical||this.toggleChildren(e,t),this.showPartialState&&this.partialCheckParents(r),this.hierarchical||t||this.unCheckParents(r))}},{key:"unCheckParents",value:function(e){for(var t=e._parent;t;){var r=this.getNodeById(t);r.checked=!1,r.partial=st(r,"_children",this.getNodeById.bind(this)),t=r._parent}}},{key:"partialCheckParents",value:function(e){for(var t=this,r=e._parent;r;){var n=this.getNodeById(r);n.checked=n._children.every(function(e){return t.getNodeById(e).checked}),n.partial=st(n,"_children",this.getNodeById.bind(this)),r=n._parent}}},{key:"toggleChildren",value:function(e,t){var r=this,n=this.getNodeById(e);n.checked=t,this.showPartialState&&(n.partial=!1),c(n._children)||n._children.forEach(function(e){return r.toggleChildren(e,t)})}},{key:"toggleNodeExpandState",value:function(e){var t=this.getNodeById(e);return t.expanded=!t.expanded,t.expanded||this.collapseChildren(t),this.tree}},{key:"collapseChildren",value:function(e){var t=this;
1e.expanded=!1,c(e._children)||e._children.forEach(function(e){return t.collapseChildren(t.getNodeById(e))})}},{key:"tags",get:function(){var e=this;return this.radioSelect||this.simpleSelect?this.currentChecked?[this.getNodeById(this.currentChecked)]:[]:dt.getNodesMatching(this.tree,function(t,r,n){return t.checked&&!e.hierarchical&&dt.markSubTreeVisited(t,n,function(t){return e.getNodeById(t)}),t.checked})}},{key:"getTreeAndTags",value:function(){return{tree:this.tree,tags:this.tags}}},{key:"handleNavigationKey",value:function(e,t,r,n,o,i,a){var c=this,l=e&&this.getNodeById(e),s=Tt.getAction(l,r);return Ot.has(s)?Tt.handleFocusNavigationkey(t,s,l,function(e){return c.getNodeById(e)},o):l&&t.has(l._id)?Tt.handleToggleNavigationkey(s,l,n,i,a):e}},{key:"_getAddOnMatch",value:function(e,t){var r=function(e,t){return e.label.toLowerCase().indexOf(t)>=0};return"function"==typeof this.searchPredicate&&(r=this.searchPredicate),function(n){r(n,t)&&e.push(n._id)}}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xt(e){return(xt="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})(e)}function Et(){return(Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach(function(t){Mt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Nt(e,t){return(Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function It(e){return(It=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}(c,e);var t,r,n,o,a=(n=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=It(n);if(o){var r=It(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this),Mt(Dt(t=a.call(this,e)),"initNewProps",function(e){var r=e.data,n=e.mode,o=e.showDropdown,i=e.showPartiallySelected,a=e.searchPredicate;t.treeManager=new _t({data:r,mode:n,showPartiallySelected:i,rootPrefixId:t.clientId,searchPredicate:a}),t.setState(function(e){var r=e.currentFocus&&t.treeManager.getNodeById(e.currentFocus);return r&&(r._focused=!0),Rt({showDropdown:/initial|always/.test(o)||!0===e.showDropdown},t.treeManager.getTreeAndTags())})}),Mt(Dt(t),"resetSearchState",function(){return t.searchInput&&(t.searchInput.value=""),{tree:t.treeManager.restoreNodes(),searchModeOn:!1,allNodesHidden:!1}}),Mt(Dt(t),"handleClick",function(e,r){t.setState(function(e){var r="always"===t.props.showDropdown||t.keepDropdownActive||!e.showDropdown;return r!==e.showDropdown&&(r?document.addEventListener("click",t.handleOutsideClick,!1):document.removeEventListener("click",t.handleOutsideClick,!1)),r?t.props.onFocus():t.props.onBlur(),r?{showDropdown:r}:Rt({showDropdown:r},t.resetSearchState())},r)}),Mt(Dt(t),"handleOutsideClick",function(e){"always"!==t.props.showDropdown&&function(e,t){return e instanceof Event&&!function(e){if(e.path)return e.path;for(var t=e.target,r=[t];t.parentElement;)t=t.parentElement,r.unshift(t);return r}(e).some(function(e){return e===t})}(e,t.node)&&t.handleClick()}),Mt(Dt(t),"onInputChange",function(e){var r=e.length>0;if(r){var n=t.treeManager.filterTree(e,t.props.keepTreeOnSearch,t.props.keepChildrenOnSearch),o=n.allNodesHidden,i=n.tree;t.setState({tree:i,searchModeOn:r,allNodesHidden:o})}else t.setState(t.resetSearchState())}),Mt(Dt(t),"onTagRemove",function(e,r){var n=t.state.tags;t.onCheckboxChange(e,!1,function(o){r&&Tt.getNextFocusAfterTagDelete(e,n,o,t.searchInput).focus()})}),Mt(Dt(t),"onNodeToggle",function(e){t.treeManager.toggleNodeExpandState(e);var r=t.state.searchModeOn?t.treeManager.matchTree:t.treeManager.tree;t.setState({tree:r}),"function"==typeof t.props.onNodeToggle&&t.props.onNodeToggle(t.treeManager.getNodeById(e))}),Mt(Dt(t),"onCheckboxChange",function(e,r,n){var o=t.props,i=o.mode,a=o.keepOpenOnSelect,c=o.clearSearchOnChange,l=t.state,s=l.currentFocus,u=l.searchModeOn;t.treeManager.setNodeCheckedState(e,r);var f=t.treeManager.tags,p=["simpleSelect","radioSelect"].indexOf(i)>-1,d=!(p&&!a)&&t.state.showDropdown,h=s&&t.treeManager.getNodeById(s),y=t.treeManager.getNodeById(e);f.length||(t.treeManager.restoreDefaultValues(),f=t.treeManager.tags);var b={tree:u?t.treeManager.matchTree:t.treeManager.tree,tags:f,showDropdown:d,currentFocus:e};(p&&!d||c)&&Object.assign(b,t.resetSearchState()),p&&!d&&document.removeEventListener("click",t.handleOutsideClick,!1),Tt.adjustFocusedProps(h,y),t.setState(b,function(){n&&n(f)}),t.props.onChange(y,f)}
1),Mt(Dt(t),"onAction",function(e,r){t.props.onAction(t.treeManager.getNodeById(e),r)}),Mt(Dt(t),"onInputFocus",function(){t.keepDropdownActive=!0}),Mt(Dt(t),"onInputBlur",function(){t.keepDropdownActive=!1}),Mt(Dt(t),"onTrigger",function(e){t.handleClick(e,function(){t.state.showDropdown&&t.searchInput.focus()})}),Mt(Dt(t),"onKeyboardKeyDown",function(e){var r=t.props,n=r.readOnly,o=r.mode,i=r.disablePoppingOnBackspace,a=t.state,c=a.showDropdown,l=a.tags,s=a.searchModeOn,u=a.currentFocus,f=t.treeManager,p=s?f.matchTree:f.tree;if(c||!Tt.isValidKey(e.key,!1)&&!/^\w$/i.test(e.key))if(c&&Tt.isValidKey(e.key,!0)){var d=f.handleNavigationKey(u,p,e.key,n,!s,t.onCheckboxChange,t.onNodeToggle);d!==u&&t.setState({currentFocus:d},function(){var e=document&&document.getElementById("".concat(d,"_li"));e&&e.scrollIntoView()})}else{if(c&&["Escape","Tab"].indexOf(e.key)>-1)return void("simpleSelect"===o&&p.has(u)?t.onCheckboxChange(u,!0):(t.keepDropdownActive=!1,t.handleClick()));if(i||"Backspace"!==e.key||!l.length||0!==t.searchInput.value.length)return;var h=l.pop();t.onCheckboxChange(h._id,!1)}else if(e.persist(),t.handleClick(null,function(){return t.onKeyboardKeyDown(e)}),/\w/i.test(e.key))return;e.preventDefault()}),Mt(Dt(t),"getAriaAttributes",function(){var e=t.props,r=e.mode,n=e.texts;return"radioSelect"!==r?{}:Rt({role:"radiogroup"},p(n.label))}),t.state={searchModeOn:!1,currentFocus:void 0},t.clientId=e.id||u.get(Dt(t)),t}return t=c,(r=[{key:"UNSAFE_componentWillMount",value:function(){this.initNewProps(this.props)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleOutsideClick,!1)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.initNewProps(e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.disabled,n=t.readOnly,o=t.mode,a=t.texts,c=t.inlineSearchInput,l=t.tabIndex,s=this.state,u=s.showDropdown,f=s.currentFocus,p=s.tags,d={disabled:r,readOnly:n,activeDescendant:f?"".concat(f,"_li"):void 0,texts:a,mode:o,clientId:this.clientId},h=i().createElement(w,Et({inputRef:function(t){e.searchInput=t},onInputChange:this.onInputChange,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onKeyDown:this.onKeyboardKeyDown},d,{inlineSearchInput:c}));return i().createElement("div",{id:this.clientId,className:[this.props.className&&this.props.className,"react-dropdown-tree-select"].filter(Boolean).join(" "),ref:function(t){e.node=t}},i().createElement("div",{className:["dropdown","simpleSelect"===o&&"simple-select","radioSelect"===o&&"radio-select"].filter(Boolean).join(" ")},i().createElement(W,Et({onTrigger:this.onTrigger,showDropdown:u},d,{tags:p,tabIndex:l}),i().createElement(F,Et({tags:p,onTagRemove:this.onTagRemove},d),!c&&h)),u&&i().createElement("div",Et({className:"dropdown-content"},this.getAriaAttributes()),c&&h,this.state.allNodesHidden?i().createElement("span",{className:"no-matches"},a.noMatches||"No matches found"):i().createElement(it,Et({data:this.state.tree,keepTreeOnSearch:this.props.keepTreeOnSearch,keepChildrenOnSearch:this.props.keepChildrenOnSearch,searchModeOn:this.state.searchModeOn,onAction:this.onAction,onCheckboxChange:this.onCheckboxChange,onNodeToggle:this.onNodeToggle,mode:o,showPartiallySelected:this.props.showPartiallySelected},d)))))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Component);Mt(Bt,"propTypes",{data:t().oneOfType([t().object,t().array]).isRequired,clearSearchOnChange:t().bool,keepTreeOnSearch:t().bool,keepChildrenOnSearch:t().bool,keepOpenOnSelect:t().bool,texts:t().shape({placeholder:t().string,inlineSearchPlaceholder:t().string,noMatches:t().string,label:t().string,labelRemove:t().string}),showDropdown:t().oneOf(["default","initial","always"]),className:t().string,onChange:t().func,onAction:t().func,onNodeToggle:t().func,onFocus:t().func,onBlur:t().func,mode:t().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:t(
1).bool,disabled:t().bool,readOnly:t().bool,id:t().string,searchPredicate:t().func,inlineSearchInput:t().bool,tabIndex:t().number,disablePoppingOnBackspace:t().bool}),Mt(Bt,"defaultProps",{onAction:function(){},onFocus:function(){},onBlur:function(){},onChange:function(){},texts:{},showDropdown:"default",inlineSearchInput:!1,tabIndex:0,disablePoppingOnBackspace:!1});const Ft=Bt})(),o})()),e.exports=n(r("q1tI"))},xzhM:function(e,t,r){"use strict";var n=r("LboF"),o=r.n(n),i=r("F0kS"),a={injectType:"singletonStyleTag",insert:"head",singleton:!0};o()(i.a,a),i.a.locals}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.