Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-dropdown-select

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dropdown-select - npm Package Compare versions

Comparing version 3.6.2 to 3.6.3

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### v3.6.3
* FIX (dropdown handle): handle not opening drop down closes #39 caused by #38 [View](https://github.com/sanusart/react-dropdown-select/commit/98ad37d88675b8f8345c5cbee19b77d2cde7d332)
### v3.6.2

@@ -2,0 +5,0 @@ * DOCS (updates): add anchors to examples [View](https://github.com/sanusart/react-dropdown-select/commit/8a50e14410175d7bf71c208c14bdbb18ef797a41)

2

dist/react-dropdown-select.js

@@ -1,1 +0,1 @@

module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports=require("react-dom")},function(e,t,r){"use strict";r.r(t);var n=r(2),o=r.n(n),a=r(0),s=r.n(a);var i=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}},c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=i(function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),d=r(3),u=r.n(d);var p=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();var f=function(e){function t(e,t,n){var o=t.trim().split(h);t=o;var a=o.length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";a>i;++i)t[i]=r(e,t[i],n).trim();break;default:var c=i=0;for(t=[];a>i;++i)for(var l=0;s>l;++l)t[c++]=r(e[l]+" ",o[i],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(1*r>0&&t.indexOf("\f")>0)return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,a){var s=e+";",i=2*t+3*r+4*a;if(944===i){e=s.indexOf(":",9)+1;var c=s.substring(e,s.length-1).trim();return c=s.substring(0,e).trim()+c+";",1===_||2===_&&o(c,1)?"-webkit-"+c+c:c}if(0===_||2===_&&!o(s,1))return s;switch(i){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(s.indexOf("image-set(",11)>0)return s.replace(A,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return p.test(s)?s.replace(u,":-webkit-")+s.replace(u,":-moz-")+s:s;case 1e3:switch(t=(c=s.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=s.replace(w,"tb");break;case 232:c=s.replace(w,"tb-rl");break;case 220:c=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,i=(c=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(i>102?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(x,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(x,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+a&&105===s.charCodeAt(13)&&s.indexOf("transform",10)>0)return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),N(2!==t?n:n.replace(C,"$1"),r,t)}function a(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,a,s,i,l,d){for(var u,p=0,f=t;I>p;++p)switch(u=P[p].call(c,e,f,r,n,o,a,s,i,l,d)){case void 0:case!1:case!0:case null:break;default:f=u}if(f!==t)return f}function i(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?_=1:(_=2,N=e):_=0),i}function c(e,r){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],I>0){var c=s(-1,r,i,i,E,O,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var u=function e(r,i,c,u,p){for(var f,h,m,w,k,x=0,C=0,S=0,A=0,P=0,N=0,B=m=f=0,j=0,z=0,L=0,T=0,M=c.length,H=M-1,q="",U="",$="",K="";M>j;){if(h=c.charCodeAt(j),j===H&&0!==C+A+S+x&&(0!==C&&(h=47===C?10:47),A=S=x=0,M++,H++),0===C+A+S+x){if(j===H&&(z>0&&(q=q.replace(d,"")),q.trim().length>0)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=c.charAt(j)}h=59}switch(h){case 123:for(f=(q=q.trim()).charCodeAt(0),m=1,T=++j;M>j;){switch(h=c.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(j+1)){case 42:case 47:e:{for(B=j+1;H>B;++B)switch(c.charCodeAt(B)){case 47:if(42===h&&42===c.charCodeAt(B-1)&&j+2!==B){j=B+1;break e}break;case 10:if(47===h){j=B+1;break e}}j=B}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<H&&c.charCodeAt(j)!==h;);}if(0===m)break;j++}switch(m=c.substring(T,j),0===f&&(f=(q=q.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(z>0&&(q=q.replace(d,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:z=i;break;default:z=D}if(T=(m=e(i,z,m,h,p+1)).length,I>0&&(k=s(3,m,z=t(D,q,L),i,E,O,T,h,p,u),q=z.join(""),void 0!==k&&0===(T=(m=k.trim()).length)&&(h=0,m="")),T>0)switch(h){case 115:q=q.replace(y,a);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(v,"$1 $2"))+"{"+m+"}",m=1===_||2===_&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===u&&(U+=m,m="")}else m="";break;default:m=e(i,t(i,q,L),m,u,p+1)}$+=m,m=L=z=B=f=0,q="",h=c.charCodeAt(++j);break;case 125:case 59:if((T=(q=(z>0?q.replace(d,""):q).trim()).length)>1)switch(0===B&&(f=q.charCodeAt(0),45===f||f>96&&123>f)&&(T=(q=q.replace(" ",":")).length),I>0&&void 0!==(k=s(1,q,i,r,E,O,U.length,u,p,u))&&0===(T=(q=k.trim()).length)&&(q="\0\0"),f=q.charCodeAt(0),h=q.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){K+=q+c.charAt(j);break}default:58!==q.charCodeAt(T-1)&&(U+=n(q,f,h,q.charCodeAt(2)))}L=z=B=f=0,q="",h=c.charCodeAt(++j)}}switch(h){case 13:case 10:47===C?C=0:0===1+f&&107!==u&&q.length>0&&(z=1,q+="\0"),I*F>0&&s(0,q,i,r,E,O,U.length,u,p,u),O=1,E++;break;case 59:case 125:if(0===C+A+S+x){O++;break}default:switch(O++,w=c.charAt(j),h){case 9:case 32:if(0===A+x+C)switch(P){case 44:case 58:case 9:case 32:w="";break;default:32!==h&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===A+C+x&&(z=L=1,w="\f"+w);break;case 108:if(0===A+C+x+R&&B>0)switch(j-B){case 2:112===P&&58===c.charCodeAt(j-3)&&(R=P);case 8:111===N&&(R=N)}break;case 58:0===A+C+x&&(B=j);break;case 44:0===C+S+A+x&&(z=1,w+="\r");break;case 34:case 39:0===C&&(A=A===h?0:0===A?h:A);break;case 91:0===A+C+S&&x++;break;case 93:0===A+C+S&&x--;break;case 41:0===A+C+x&&S--;break;case 40:if(0===A+C+x){if(0===f)switch(2*P+3*N){case 533:break;default:f=1}S++}break;case 64:0===C+S+A+x+B+m&&(m=1);break;case 42:case 47:if(0>=A+x+S)switch(C){case 0:switch(2*h+3*c.charCodeAt(j+1)){case 235:C=47;break;case 220:T=j,C=42}break;case 42:47===h&&42===P&&T+2!==j&&(33===c.charCodeAt(T+2)&&(U+=c.substring(T,j+1)),w="",C=0)}}0===C&&(q+=w)}N=P,P=h,j++}if((T=U.length)>0){if(z=i,I>0&&void 0!==(k=s(2,U,z,r,E,O,T,u,p,u))&&0===(U=k).length)return K+U+$;if(U=z.join(",")+"{"+U+"}",0!=_*R){switch(2!==_||o(U,2)||(R=0),R){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(g,"::-webkit-input-$1")+U.replace(g,"::-moz-$1")+U.replace(g,":-ms-input-$1")+U}R=0}}return K+U+$}(D,i,r,0,0);return I>0&&void 0!==(c=s(-2,u,i,i,E,O,u.length,0,0,0))&&(u=c),R=0,O=E=1,u}var l=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,x=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,E=1,R=0,_=1,D=[],P=[],I=0,N=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:I=P.length=0;break;default:if("function"==typeof t)P[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;n>r;++r)e(t[r]);else F=0|!!t}return e},c.set=i,void 0!==e&&i(e),c};function h(e){e&&m.current.insert(e+"}")}var m={current:null},v=function(e,t,r,n,o,a,s,i,c,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return m.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===i)return t+"/*|*/";break;case 3:switch(i){case 102:case 112:return m.current.insert(r[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(h)}},g=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var n=new f(t);var o,a={};o=e.container||document.head;var s,i=document.querySelectorAll("style[data-emotion-"+r+"]");[].forEach.call(i,function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach(function(e){a[e]=!0}),e.parentNode!==o&&o.appendChild(e)}),n.use(e.stylisPlugins)(v),s=function(e,t,r,o){var a=t.name;m.current=r,n(e,t.styles),o&&(c.inserted[a]=!0)};var c={key:r,sheet:new p({key:r,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:s};return c};function b(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "}),n}var w=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+n,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var y=function(e){for(var t,r=e.length,n=r^r,o=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)},k={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},x=/[A-Z]|^ms/g,C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,S=function(e){return 45===e.charCodeAt(1)},A=i(function(e){return S(e)?e:e.replace(x,"-$&").toLowerCase()}),O=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(C,function(e,t,r){return R={name:t,styles:r,next:R},t}))}return 1===k[e]||S(e)||"number"!=typeof t||0===t?t:t+"px"};function E(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return R={name:r.name,styles:r.styles,next:R},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)R={name:o.name,styles:o.styles,next:R},o=o.next;return r.styles}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=E(e,t,r[o],!1);else for(var a in r){var s=r[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":n+=A(a)+":"+O(a,s)+";";else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]])n+=a+"{"+E(e,t,s,!1)+"}";else for(var i=0;i<s.length;i++)n+=A(a)+":"+O(a,s[i])+";"}return n}(e,t,r);case"function":if(void 0!==e){var a=R,s=r(e);return R=a,E(e,t,s,n)}default:if(null==t)return r;var i=t[r];return void 0===i||n?r:i}}var R,_=/label:\s*([^\s;\n{]+)\s*;/g;var D=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";R=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=E(r,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=E(r,t,e[s],46===o.charCodeAt(o.length-1)),n&&(o+=a[s]);_.lastIndex=0;for(var i,c="";null!==(i=_.exec(o));)c+="-"+i[1];return{name:y(o)+c,styles:o,next:R}};var P=Object(a.createContext)(g()),I=Object(a.createContext)({}),N=(P.Provider,function(e){return Object(a.forwardRef)(function(t,r){return Object(a.createElement)(P.Consumer,null,function(n){return e(t,n,r)})})}),F="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",B={}.hasOwnProperty,j=function(e,t,r,n){var o=t[F],s=[],i="",c=null===r?t.css:t.css(r);"string"==typeof c&&void 0!==e.registered[c]&&(c=e.registered[c]),s.push(c),void 0!==t.className&&(i=b(e.registered,s,t.className));var l=D(s);w(e,l,"string"==typeof o);i+=e.key+"-"+l.name;var d={};for(var u in t)B.call(t,u)&&"css"!==u&&u!==F&&(d[u]=t[u]);return d.ref=n,d.className=i,Object(a.createElement)(o,d)};N(function(e,t,r){return"function"==typeof e.css?Object(a.createElement)(I.Consumer,null,function(n){return j(t,e,n,r)}):j(t,e,null,r)});a.Component;var z=function e(t){for(var r=t.length,n=0,o="";r>n;n++){var a=t[n];if(null!=a){var s=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))s=e(a);else for(var i in s="",a)a[i]&&i&&(s&&(s+=" "),s+=i);break;default:s=a}s&&(o&&(o+=" "),o+=s)}}return o};function L(e,t,r){var n=[],o=b(e,n,r);return 2>n.length?r:o+t(n)}N(function(e,t){return Object(a.createElement)(I.Consumer,null,function(r){var n=function(){for(var e=arguments.length,r=new Array(e),n=0;e>n;n++)r[n]=arguments[n];var o=D(r,t.registered);return w(t,o,!1),t.key+"-"+o.name},o={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;e>o;o++)r[o]=arguments[o];return L(t.registered,n,z(r))},theme:r},a=e.children(o);return!0,a})});var T=l,M=function(e){return"theme"!==e&&"innerRef"!==e},H=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?T:M},q=function e(t,r){var n,s,i;void 0!==r&&(n=r.label,i=r.target,s=t.__emotion_forwardProp&&r.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&r.shouldForwardProp(e)}:r.shouldForwardProp);var c=t.__emotion_real===t,l=c&&t.__emotion_base||t;"function"!=typeof s&&c&&(s=t.__emotion_forwardProp);var d=s||H(l),u=!d("as");return function(){var p=arguments,f=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{f.push(p[0][0]);for(var h=p.length,m=1;h>m;m++)f.push(p[m],p[0][m])}var v=N(function(e,t,r){return Object(a.createElement)(I.Consumer,null,function(n){var o=u&&e.as||l,c="",p=[],h=e;if(null==e.theme){for(var m in h={},e)h[m]=e[m];h.theme=n}"string"==typeof e.className&&(c+=b(t.registered,p,e.className));var v=D(f.concat(p),t.registered,h);w(t,v,"string"==typeof o),c+=t.key+"-"+v.name,void 0!==i&&(c+=" "+i);var g=u&&void 0===s?H(o):d,y={};for(var k in e)u&&"as"===k||g(k)&&(y[k]=e[k]);return y.className=c,y.ref=r||e.innerRef,Object(a.createElement)(o,y)})});return v.displayName=void 0!==n?n:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=l,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,n){return e(t,void 0!==n?o()({},r||{},n):r).apply(void 0,f)},v}},U=r(4),$=r.n(U);r(1);function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;r>o;o++)n[o]=arguments[o];return G(K(t=e.call.apply(e,[this].concat(n))||this),"container",s.a.createRef()),G(K(t),"handleClick",function(e){var r=t.container.current,n=e.target,o=t.props.onClickOutside;(r&&r===n||r&&!r.contains(n))&&o(e)}),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){document.addEventListener("click",this.handleClick,!0)},r.componentWillUnmount=function(){document.removeEventListener("click",this.handleClick,!0)},r.render=function(){var e=this.props,t=e.className,r=e.children;return s.a.createElement("div",{className:t,ref:this.container},r)},t}(s.a.Component),V=function(e,t,r){return!!t.find(function(t){return Z(t,r.valueField)===e})},X=function(e,t){return"rgba("+parseInt(e.slice(1,3),16)+", "+parseInt(e.slice(3,5),16)+", "+parseInt(e.slice(5,7),16)+(t&&", "+t)+")"},Y=function(e,t){var r;return void 0===t&&(t=0),function(){for(var n=arguments.length,o=Array(n),a=0;n>a;a++)o[a]=arguments[a];r&&clearTimeout(r),r=setTimeout(function(){e.apply(void 0,o),r=null},t)}},J=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},Z=function(e,t){return t?t.split(".").reduce(function(e,t){return e[t]},e):void 0},Q=function(e,t,r){if(!t)return e;var n=Array.isArray(t)?t:t.split(".").filter(function(e){return e.length});return n.length?Q(e[n.shift()],n,r):void 0===e?r:e},ee="react-dropdown-select",te=q("span",{target:"e1l4eby50",label:"OptionComponent"})("padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:",function(e){return e.color},";color:#fff;display:flex;flex-direction:",function(e){return"rtl"===e.direction?"row-reverse":"row"},";.",ee,"-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover > span{opacity:0.9;}"),re=function(e){var t=e.item,r=e.props,n=e.state,o=e.methods;return t&&r.optionRenderer?r.optionRenderer({item:t,props:r,state:n,methods:o}):s.a.createElement(te,{role:"listitem",disabled:r.disabled,direction:r.direction,className:ee+"-option",color:r.color},s.a.createElement("span",{className:ee+"-option-label"},Z(t,r.labelField)),s.a.createElement("span",{className:ee+"-option-remove",onClick:function(e){return o.removeItem(e,t,r.closeOnSelect)}},"×"))};function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ae=function(e,t){var r=e.addPlaceholder,n=e.searchable,o=e.placeholder,a=t.values&&0===t.values.length,s=t.values&&t.values.length>0;return s&&r&&n?r:a?o:""},se=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;r>o;o++)n[o]=arguments[o];return oe(ne(t=e.call.apply(e,[this].concat(n))||this),"input",s.a.createRef()),oe(ne(t),"onBlur",function(){return t.props.state.dropdown?t.input.current.focus():t.input.current.blur()}),oe(ne(t),"handleKeyPress",function(e){var r=t.props,n=r.props,o=r.state,a=r.methods;return n.create&&"Enter"===e.key&&!V(o.search,o.values,t.props)&&o.search&&null===o.cursor&&a.createNew(o.search)}),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){(this.props.state.dropdown||e.state.dropdown!==this.props.state.dropdown&&this.props.state.dropdown||this.props.props.autoFocus)&&this.input.current.focus(),e.state.dropdown===this.props.state.dropdown||this.props.state.dropdown||this.input.current.blur()},r.render=function(){var e=this.props,t=e.props,r=e.state,n=e.methods;return t.inputRenderer?t.inputRenderer({props:t,state:r,methods:n,inputRef:this.input}):s.a.createElement(ie,{ref:this.input,tabIndex:"-1",className:ee+"-input",size:n.getInputSize(),value:r.search,readOnly:!t.searchable,onClick:function(){return n.dropDown("open")},onKeyPress:this.handleKeyPress,onChange:n.setSearch,onBlur:this.onBlur,placeholder:ae(t,r)})},t}(a.Component),ie=q("input",{target:"e11wid6y0",label:"InputComponent"})("line-height:inherit;width:calc(",function(e){return e.size+"ch"}," + 5px);border:none;margin-left:5px;background:transparent;font-size:smaller;",function(e){return e.readOnly&&"cursor: pointer;"},":focus{outline:none;}"),ce=se,le=q("div",{target:"e1gn6jc30",label:"ContentComponent"})({name:"1vw3e5y",styles:"display:flex;flex:1;flex-wrap:wrap;"}),de=function(e){var t=e.props,r=e.state,n=e.methods;return s.a.createElement(le,{className:ee+"-content "+(t.multi?ee+"-type-multi":ee+"-type-single"),onClick:function(){return n.dropDown("open")}},t.contentRenderer?t.contentRenderer({props:t,state:r,methods:n}):s.a.createElement(s.a.Fragment,null,t.multi?r.values&&r.values.map(function(e){return s.a.createElement(re,{key:""+Z(e,t.valueField)+Z(e,t.labelField),item:e,state:r,props:t,methods:n})}):r.values&&r.values.length>0&&s.a.createElement("span",null,Z(r.values[0],t.labelField)),s.a.createElement(ce,{props:t,methods:n,state:r})))},ue=q("div",{target:"e1l5ho1t0",label:"NoDataComponent"})("padding:10px;text-align:center;color:",function(e){return e.color},";"),pe=function(e){var t=e.props,r=e.state,n=e.methods;return t.noDataRenderer?t.noDataRenderer({props:t,state:r,methods:n}):s.a.createElement(ue,{className:ee+"-no-data",color:t.color},t.noDataLabel)};var fe=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;r>o;o++)n[o]=arguments[o];return function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(n))||this),"item",s.a.createRef()),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidUpdate=function(){this.props.state.cursor===this.props.itemIndex&&this.item.current&&this.item.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},r.render=function(){var e=this.props,t=e.props,r=e.state,n=e.methods,o=e.item,a=e.itemIndex;return t.itemRenderer?t.itemRenderer({item:o,itemIndex:a,props:t,state:r,methods:n}):!t.keepSelectedInList&&n.isSelected(o)?null:s.a.createElement(he,{role:"option",ref:this.item,"aria-selected":n.isSelected(o),"aria-disabled":o.disabled,disabled:o.disabled,"aria-label":Z(o,t.labelField),key:""+Z(o,t.valueField)+Z(o,t.labelField),tabIndex:"-1",className:ee+"-item "+(n.isSelected(o)?ee+"-item-selected":"")+" "+(r.cursor===a?ee+"-item-active":"")+" "+(o.disabled?ee+"-item-disabled":""),onClick:o.disabled?void 0:function(){return n.addItem(o)},onKeyPress:o.disabled?void 0:function(){return n.addItem(o)},color:t.color},Z(o,t.labelField)," ",o.disabled&&s.a.createElement("ins",null,t.disabledLabel))},t}(a.Component),he=q("span",{target:"evc32pp0",label:"ItemComponent"})("padding:5px 10px;cursor:pointer;border-bottom:1px solid #fff;&.",ee,"-item-active{border-bottom:1px solid #fff;",function(e){var t=e.disabled,r=e.color;return!t&&r&&"background: "+X(r,.1)+";"},"}:hover,:focus{background:",function(e){var t=e.color;return t&&X(t,.1)},";outline:none;}&.",ee,"-item-selected{",function(e){var t=e.disabled,r=e.color;return t?"\n background: #f2f2f2;\n color: #ccc;\n ":"\n background: "+r+";\n color: #fff;\n border-bottom: 1px solid #fff;\n "},"}",function(e){return e.disabled?"\n background: #f2f2f2;\n color: #ccc;\n \n ins {\n text-decoration: none;\n border:1px solid #ccc;\n border-radius: 2px;\n padding: 0px 3px;\n font-size: x-small;\n text-transform: uppercase;\n }\n ":""},""),me=fe,ve=function(e,t){var r=t.getSelectRef().getBoundingClientRect(),n=r.bottom+parseInt(e.dropdownHeight,10)+parseInt(e.dropdownGap,10);return"auto"===e.dropdownPosition?n>window.innerHeight&&n>r.top?"top":"bottom":e.dropdownPosition},ge=q("div",{target:"e1qjn9k90",label:"DropDown"})("position:absolute;",function(e){var t=e.selectBounds,r=e.dropdownGap;return"top"===e.dropdownPosition?"bottom: "+(t.height+2+r)+"px":"top: "+(t.height+2+r)+"px"},";",function(e){var t=e.selectBounds,r=e.dropdownGap;return e.portal?"\n position: fixed;\n top: "+(t.bottom+r)+"px;\n left: "+(t.left-1)+"px;":"left: -1px;"},";border:1px solid #ccc;width:",function(e){return e.selectBounds.width},"px;padding:0;display:flex;flex-direction:column;background:#fff;border-radius:2px;box-shadow:0 0 10px 0 ",function(){return X("#000000",.2)},";max-height:",function(e){return e.dropdownHeight},";overflow:auto;z-index:9;:focus{outline:none;}}"),be=q("div",{target:"e1qjn9k91",label:"AddNew"})("color:",function(e){return e.color},";padding:5px 10px;:hover{background:",function(e){var t=e.color;return t&&X(t,.1)},";outline:none;cursor:pointer;}"),we=function(e){var t=e.props,r=e.state,n=e.methods;return s.a.createElement(ge,{tabIndex:"-1","aria-expanded":"true",role:"list",dropdownPosition:ve(t,n),selectBounds:r.selectBounds,portal:t.portal,dropdownGap:t.dropdownGap,dropdownHeight:t.dropdownHeight,className:ee+"-dropdown "+ee+"-dropdown-position-"+ve(t,n)},t.dropdownRenderer?t.dropdownRenderer({props:t,state:r,methods:n}):s.a.createElement(s.a.Fragment,null,t.create&&r.search&&!V(r.search,r.values,t)&&s.a.createElement(be,{className:ee+"-dropdown-add-new",color:t.color,onClick:function(){return n.createNew(r.search)}},t.createNewLabel.replace("{search}",'"'+r.search+'"')),0===n.searchResults().length?s.a.createElement(pe,{className:ee+"-no-data",state:r,props:t,methods:n}):n.searchResults().map(function(e,o){return s.a.createElement(me,{key:e[t.valueField],item:e,itemIndex:o,state:r,props:t,methods:n})})))},ye=q("div",{target:"e1l5cpc30",label:"LoadingComponent"})("@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:",function(e){return e.color}," transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}"),ke=function(e){var t=e.props;return t.loadingRenderer?t.loadingRenderer({props:t}):s.a.createElement(ye,{className:ee+"-loading",color:t.color})},xe=q("div",{target:"e11qlq5e0",label:"ClearComponent"})({name:"992gsg",styles:"line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}"}),Ce=function(e){var t=e.props,r=e.state,n=e.methods;return t.clearRenderer?t.clearRenderer({props:t,state:r,methods:n}):s.a.createElement(xe,{className:ee+"-clear",tabIndex:"-1",onClick:function(){return n.clearAll()},onKeyPress:function(){return n.clearAll()}},"×")},Se=q("div",{target:"e19h5j1v0",label:"SeparatorComponent"})({name:"gjy0ue",styles:"border-left:1px solid #ccc;width:1px;height:25px;display:block;"}),Ae=function(e){var t=e.props,r=e.state,n=e.methods;return t.separatorRenderer?t.separatorRenderer({props:t,state:r,methods:n}):s.a.createElement(Se,{className:ee+"-separator"})},Oe=q("div",{target:"e1vudypg0",label:"DropdownHandleComponent"})("text-align:center;",function(e){return e.dropdownOpen?"\n transform: rotate(0deg);\n margin: 0px 0 -3px 5px;\n ":"\n margin: 0 0 0 5px;\n transform: rotate(180deg);\n "},";cursor:pointer;svg{width:16px;height:16px;}:hover{path{stroke:",function(e){return e.color},";}}:focus{outline:none;path{stroke:",function(e){return e.color},";}}"),Ee=function(e){var t=e.props,r=e.state,n=e.methods;return t.dropdownHandleRenderer?t.dropdownHandleRenderer({props:t,state:r,methods:n}):s.a.createElement(Oe,{tabIndex:"-1",onClick:function(e){return n.dropDown(r.dropdown?"close":"open",e)},dropdownOpen:r.dropdown,onKeyPress:function(e){return n.dropDown("toggle",e)},onKeyDown:function(e){return n.dropDown("toggle",e)},className:ee+"-dropdown-handle",color:t.color},s.a.createElement("svg",{fill:"currentColor",viewBox:"0 0 40 40"},s.a.createElement("path",{d:"M31 26.4q0 .3-.2.5l-1.1 1.2q-.3.2-.6.2t-.5-.2l-8.7-8.8-8.8 8.8q-.2.2-.5.2t-.5-.2l-1.2-1.2q-.2-.2-.2-.5t.2-.5l10.4-10.4q.3-.2.6-.2t.5.2l10.4 10.4q.2.2.2.5z"})))};function Re(){return(Re=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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}r.d(t,"Select",function(){return Pe});var Pe=function(e){function t(t){var r;return De(_e(r=e.call(this,t)||this),"onDropdownClose",function(){r.setState({cursor:null}),r.props.onDropdownClose()}),De(_e(r),"onScroll",function(){r.props.closeOnScroll&&r.dropDown("close"),r.updateSelectBounds()}),De(_e(r),"updateSelectBounds",function(){return r.select.current&&r.setState({selectBounds:r.select.current.getBoundingClientRect()})}),De(_e(r),"getSelectBounds",function(){return r.state.selectBounds}),De(_e(r),"dropDown",function(e,t){void 0===e&&(e="toggle");var n=t&&t.target||t&&t.srcElement;return r.props.portal&&!r.props.closeOnScroll&&!r.props.closeOnSelect&&t&&n&&n.offsetParent&&n.offsetParent.classList.contains("react-dropdown-select-dropdown")?void 0:r.props.keepOpen?r.setState({dropdown:!0}):"close"===e&&r.state.dropdown?(r.select.current.blur(),r.setState({dropdown:!1,search:r.props.clearOnBlur?"":r.state.search})):"open"!==e||r.state.dropdown?"toggle"===e&&(r.select.current.focus(),r.setState({dropdown:!r.state.dropdown})):r.setState({dropdown:!0})}),De(_e(r),"getSelectRef",function(){return r.select.current}),De(_e(r),"addItem",function(e){if(r.props.multi){if(V(Z(e,r.props.valueField),r.state.values,r.props))return r.removeItem(null,e,!1);r.setState({values:[].concat(r.state.values,[e])})}else r.setState({values:[e],dropdown:!1});return r.props.clearOnSelect&&r.setState({search:""}),!0}),De(_e(r),"removeItem",function(e,t,n){void 0===n&&(n=!1),e&&n&&(e.preventDefault(),e.stopPropagation(),r.dropDown("close")),r.setState({values:r.state.values.filter(function(e){return Z(e,r.props.valueField)!==Z(t,r.props.valueField)})})}),De(_e(r),"setSearch",function(e){r.setState({cursor:null}),r.setState({search:e.target.value})}),De(_e(r),"getInputSize",function(){return r.state.search?r.state.search.length:r.state.values.length>0?r.props.addPlaceholder.length:r.props.placeholder.length}),De(_e(r),"toggleSelectAll",function(){return r.setState({values:0===r.state.values.length?r.selectAll():r.clearAll()})}),De(_e(r),"clearAll",function(){r.props.onClearAll(),r.setState({values:[]})}),De(_e(r),"selectAll",function(){return r.props.onSelectAll(),r.setState({values:r.props.options.filter(function(e){return!e.disabled})})}),De(_e(r),"isSelected",function(e){return!!r.state.values.find(function(t){return Z(t,r.props.valueField)===Z(e,r.props.valueField)})}),De(_e(r),"areAllSelected",function(){return r.state.values.length===r.props.options.filter(function(e){return!e.disabled}).length}),De(_e(r),"safeString",function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}),De(_e(r),"sortBy",function(){var e=r.props,t=e.sortBy,n=e.options;return t?(n.sort(function(e,r){return Q(e,t)<Q(r,t)?-1:Q(e,t)>Q(r,t)?1:0}),n):n}),De(_e(r),"searchFn",function(e){var t=e.state,n=e.methods,o=new RegExp(n.safeString(t.search),"i");return n.sortBy().filter(function(e){return o.test(Z(e,r.props.searchBy)||Z(e,r.props.valueField))})}),De(_e(r),"searchResults",function(){var e={state:r.state,props:r.props,methods:r.methods};return r.props.searchFn(e)||r.searchFn(e)}),De(_e(r),"activeCursorItem",function(e){return r.setState({activeCursorItem:e})}),De(_e(r),"handleKeyDown",function(e){var t={event:e,state:r.state,props:r.props,methods:r.methods,setState:r.setState.bind(_e(r))};return r.props.handleKeyDownFn(t)||r.handleKeyDownFn(t)}),De(_e(r),"handleKeyDownFn",function(e){var t=e.event,n=e.state,o=e.props,a=e.methods,s=e.setState,i=n.cursor;if("ArrowDown"===t.key&&null===i)return s({cursor:0});if(("ArrowUp"===t.key||"ArrowDown"===t.key)&&t.preventDefault(),"Escape"===t.key&&r.dropDown("close"),"Enter"===t.key){var c=a.searchResults()[i];if(c&&!c.disabled){if(o.create&&V(n.search,n.values,o))return null;a.addItem(c)}}return"ArrowUp"===t.key&&i>0&&s(function(e){return{cursor:e.cursor-1}}),"ArrowUp"===t.key&&0===i&&s({cursor:a.searchResults().length}),"ArrowDown"===t.key&&s(function(e){return{cursor:e.cursor+1}}),"ArrowDown"===t.key&&a.searchResults().length===i?s({cursor:0}):void 0}),De(_e(r),"renderDropdown",function(){return r.props.portal?$.a.createPortal(s.a.createElement(we,{props:r.props,state:r.state,methods:r.methods}),r.dropdownRoot):s.a.createElement(we,{props:r.props,state:r.state,methods:r.methods})}),De(_e(r),"createNew",function(e){var t,n=((t={})[r.props.labelField]=e,t[r.props.valueField]=e,t);r.addItem(n),r.props.onCreateNew(n),r.setState({search:""})}),r.state={dropdown:!1,values:t.values,search:"",selectBounds:{},cursor:null},r.methods={removeItem:r.removeItem,dropDown:r.dropDown,addItem:r.addItem,setSearch:r.setSearch,getInputSize:r.getInputSize,toggleSelectAll:r.toggleSelectAll,clearAll:r.clearAll,selectAll:r.selectAll,searchResults:r.searchResults,getSelectRef:r.getSelectRef,isSelected:r.isSelected,getSelectBounds:r.getSelectBounds,areAllSelected:r.areAllSelected,handleKeyDown:r.handleKeyDown,activeCursorItem:r.activeCursorItem,createNew:r.createNew,sortBy:r.sortBy,safeString:r.safeString},r.select=s.a.createRef(),r.dropdownRoot="undefined"!=typeof document&&document.createElement("div"),r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.portal&&this.props.portal.appendChild(this.dropdownRoot),window.addEventListener("resize",Y(this.updateSelectBounds)),window.addEventListener("scroll",Y(this.onScroll)),this.dropDown("close"),this.select&&this.updateSelectBounds()},r.componentDidUpdate=function(e,t){!J(e.values,this.props.values)&&J(e.values,t.values)&&(this.props.onChange(this.state.values),this.setState({values:this.props.values}),this.updateSelectBounds()),t.values!==this.state.values&&(this.props.onChange(this.state.values),this.updateSelectBounds()),t.search!==this.state.search&&this.updateSelectBounds(),t.values!==this.state.values&&this.props.closeOnSelect&&this.dropDown("close"),e.multi!==this.props.multi&&this.updateSelectBounds(),t.dropdown&&t.dropdown!==this.state.dropdown&&this.onDropdownClose(),t.dropdown||t.dropdown===this.state.dropdown||this.props.onDropdownOpen()},r.componentWillUnmount=function(){this.props.portal&&this.props.portal.removeChild(this.dropdownRoot),window.removeEventListener("resize",Y(this.updateSelectBounds,this.props.debounceDelay)),window.removeEventListener("scroll",Y(this.onScroll,this.props.debounceDelay))},r.render=function(){var e=this;return s.a.createElement(W,{onClickOutside:function(t){return e.dropDown("close",t)}},s.a.createElement(Ie,Re({onKeyDown:this.handleKeyDown,onClick:function(t){return e.dropDown("open",t)},onFocus:function(t){return e.dropDown("open",t)},tabIndex:"0",direction:this.props.direction,style:this.props.style,ref:this.select,disabled:this.props.disabled,className:ee+" "+this.props.className,color:this.props.color},this.props.additionalProps),s.a.createElement(de,{props:this.props,state:this.state,methods:this.methods}),this.props.name&&s.a.createElement("input",{name:this.props.name,type:"hidden",value:this.props.values}),this.props.loading&&s.a.createElement(ke,{props:this.props}),this.props.clearable&&s.a.createElement(Ce,{props:this.props,state:this.state,methods:this.methods}),this.props.separator&&s.a.createElement(Ae,{props:this.props,state:this.state,methods:this.methods}),this.props.dropdownHandle&&s.a.createElement(Ee,{onClick:function(){return e.select.current.focus()},props:this.props,state:this.state,methods:this.methods}),this.state.dropdown&&this.renderDropdown()))},t}(a.Component);Pe.defaultProps={addPlaceholder:"",placeholder:"Select...",values:[],options:[],multi:!1,disabled:!1,searchBy:"label",sortBy:null,clearable:!1,searchable:!0,dropdownHandle:!0,separator:!1,keepOpen:void 0,noDataLabel:"No data",createNewLabel:"add {search}",disabledLabel:"disabled",dropdownGap:5,closeOnScroll:!1,debounceDelay:0,labelField:"label",valueField:"value",color:"#0074D9",keepSelectedInList:!0,closeOnSelect:!1,clearOnBlur:!0,clearOnSelect:!0,dropdownPosition:"bottom",dropdownHeight:"300px",autoFocus:!1,portal:null,create:!1,direction:"ltr",name:null,onChange:function(){},onDropdownOpen:function(){},onDropdownClose:function(){},onClearAll:function(){},onSelectAll:function(){},onCreateNew:function(){},searchFn:function(){},handleKeyDownFn:function(){},additionalProps:null};var Ie=q("div",{target:"e1gzf2xs0",label:"ReactDropdownSelect"})("position:relative;display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;direction:",function(e){return e.direction},";align-items:center;min-height:36px;",function(e){return e.disabled?"cursor: not-allowed;pointer-events: none;opacity: 0.3;":"pointer-events: all;"},":hover,:focus-within{border-color:",function(e){return e.color},";}:focus,:focus-within{outline:0;box-shadow:0 0 0 3px ",function(e){var t=e.color;return X(t,.2)},";}");t.default=Pe}]);
module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=5)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("prop-types")},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t){e.exports=require("react-dom")},function(e,t,r){"use strict";r.r(t);var n=r(2),o=r.n(n),a=r(0),s=r.n(a);var i=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}},c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=i(function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),d=r(3),u=r.n(d);var p=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,a?0:o.cssRules.length)}catch(e){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();var f=function(e){function t(e,t,n){var o=t.trim().split(h);t=o;var a=o.length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";a>i;++i)t[i]=r(e,t[i],n).trim();break;default:var c=i=0;for(t=[];a>i;++i)for(var l=0;s>l;++l)t[c++]=r(e[l]+" ",o[i],n).trim()}return t}function r(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(1*r>0&&t.indexOf("\f")>0)return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,a){var s=e+";",i=2*t+3*r+4*a;if(944===i){e=s.indexOf(":",9)+1;var c=s.substring(e,s.length-1).trim();return c=s.substring(0,e).trim()+c+";",1===_||2===_&&o(c,1)?"-webkit-"+c+c:c}if(0===_||2===_&&!o(s,1))return s;switch(i){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(s.indexOf("image-set(",11)>0)return s.replace(A,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(c=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+c+s;case 1005:return p.test(s)?s.replace(u,":-webkit-")+s.replace(u,":-moz-")+s:s;case 1e3:switch(t=(c=s.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=s.replace(w,"tb");break;case 232:c=s.replace(w,"tb-rl");break;case 220:c=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+c+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,i=(c=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(i>102?"inline-":"")+"box")+";"+s.replace(c,"-webkit-"+c)+";"+s.replace(c,"-ms-"+c+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return c=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+c+"-ms-flex-"+c+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(x,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(x,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):s.replace(c,"-webkit-"+c)+s.replace(c,"-moz-"+c.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+a&&105===s.charCodeAt(13)&&s.indexOf("transform",10)>0)return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),N(2!==t?n:n.replace(C,"$1"),r,t)}function a(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,a,s,i,l,d){for(var u,p=0,f=t;I>p;++p)switch(u=P[p].call(c,e,f,r,n,o,a,s,i,l,d)){case void 0:case!1:case!0:case null:break;default:f=u}if(f!==t)return f}function i(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!=typeof e?_=1:(_=2,N=e):_=0),i}function c(e,r){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],I>0){var c=s(-1,r,i,i,E,O,0,0,0,0);void 0!==c&&"string"==typeof c&&(r=c)}var u=function e(r,i,c,u,p){for(var f,h,m,w,k,x=0,C=0,S=0,A=0,P=0,N=0,B=m=f=0,j=0,z=0,L=0,T=0,M=c.length,H=M-1,q="",U="",$="",K="";M>j;){if(h=c.charCodeAt(j),j===H&&0!==C+A+S+x&&(0!==C&&(h=47===C?10:47),A=S=x=0,M++,H++),0===C+A+S+x){if(j===H&&(z>0&&(q=q.replace(d,"")),q.trim().length>0)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:q+=c.charAt(j)}h=59}switch(h){case 123:for(f=(q=q.trim()).charCodeAt(0),m=1,T=++j;M>j;){switch(h=c.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(j+1)){case 42:case 47:e:{for(B=j+1;H>B;++B)switch(c.charCodeAt(B)){case 47:if(42===h&&42===c.charCodeAt(B-1)&&j+2!==B){j=B+1;break e}break;case 10:if(47===h){j=B+1;break e}}j=B}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<H&&c.charCodeAt(j)!==h;);}if(0===m)break;j++}switch(m=c.substring(T,j),0===f&&(f=(q=q.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(z>0&&(q=q.replace(d,"")),h=q.charCodeAt(1)){case 100:case 109:case 115:case 45:z=i;break;default:z=D}if(T=(m=e(i,z,m,h,p+1)).length,I>0&&(k=s(3,m,z=t(D,q,L),i,E,O,T,h,p,u),q=z.join(""),void 0!==k&&0===(T=(m=k.trim()).length)&&(h=0,m="")),T>0)switch(h){case 115:q=q.replace(y,a);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(v,"$1 $2"))+"{"+m+"}",m=1===_||2===_&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===u&&(U+=m,m="")}else m="";break;default:m=e(i,t(i,q,L),m,u,p+1)}$+=m,m=L=z=B=f=0,q="",h=c.charCodeAt(++j);break;case 125:case 59:if((T=(q=(z>0?q.replace(d,""):q).trim()).length)>1)switch(0===B&&(f=q.charCodeAt(0),45===f||f>96&&123>f)&&(T=(q=q.replace(" ",":")).length),I>0&&void 0!==(k=s(1,q,i,r,E,O,U.length,u,p,u))&&0===(T=(q=k.trim()).length)&&(q="\0\0"),f=q.charCodeAt(0),h=q.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){K+=q+c.charAt(j);break}default:58!==q.charCodeAt(T-1)&&(U+=n(q,f,h,q.charCodeAt(2)))}L=z=B=f=0,q="",h=c.charCodeAt(++j)}}switch(h){case 13:case 10:47===C?C=0:0===1+f&&107!==u&&q.length>0&&(z=1,q+="\0"),I*F>0&&s(0,q,i,r,E,O,U.length,u,p,u),O=1,E++;break;case 59:case 125:if(0===C+A+S+x){O++;break}default:switch(O++,w=c.charAt(j),h){case 9:case 32:if(0===A+x+C)switch(P){case 44:case 58:case 9:case 32:w="";break;default:32!==h&&(w=" ")}break;case 0:w="\\0";break;case 12:w="\\f";break;case 11:w="\\v";break;case 38:0===A+C+x&&(z=L=1,w="\f"+w);break;case 108:if(0===A+C+x+R&&B>0)switch(j-B){case 2:112===P&&58===c.charCodeAt(j-3)&&(R=P);case 8:111===N&&(R=N)}break;case 58:0===A+C+x&&(B=j);break;case 44:0===C+S+A+x&&(z=1,w+="\r");break;case 34:case 39:0===C&&(A=A===h?0:0===A?h:A);break;case 91:0===A+C+S&&x++;break;case 93:0===A+C+S&&x--;break;case 41:0===A+C+x&&S--;break;case 40:if(0===A+C+x){if(0===f)switch(2*P+3*N){case 533:break;default:f=1}S++}break;case 64:0===C+S+A+x+B+m&&(m=1);break;case 42:case 47:if(0>=A+x+S)switch(C){case 0:switch(2*h+3*c.charCodeAt(j+1)){case 235:C=47;break;case 220:T=j,C=42}break;case 42:47===h&&42===P&&T+2!==j&&(33===c.charCodeAt(T+2)&&(U+=c.substring(T,j+1)),w="",C=0)}}0===C&&(q+=w)}N=P,P=h,j++}if((T=U.length)>0){if(z=i,I>0&&void 0!==(k=s(2,U,z,r,E,O,T,u,p,u))&&0===(U=k).length)return K+U+$;if(U=z.join(",")+"{"+U+"}",0!=_*R){switch(2!==_||o(U,2)||(R=0),R){case 111:U=U.replace(b,":-moz-$1")+U;break;case 112:U=U.replace(g,"::-webkit-input-$1")+U.replace(g,"::-moz-$1")+U.replace(g,":-ms-input-$1")+U}R=0}}return K+U+$}(D,i,r,0,0);return I>0&&void 0!==(c=s(-2,u,i,i,E,O,u.length,0,0,0))&&(u=c),R=0,O=E=1,u}var l=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,y=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,x=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,O=1,E=1,R=0,_=1,D=[],P=[],I=0,N=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:I=P.length=0;break;default:if("function"==typeof t)P[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;n>r;++r)e(t[r]);else F=0|!!t}return e},c.set=i,void 0!==e&&i(e),c};function h(e){e&&m.current.insert(e+"}")}var m={current:null},v=function(e,t,r,n,o,a,s,i,c,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return m.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===i)return t+"/*|*/";break;case 3:switch(i){case 102:case 112:return m.current.insert(r[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(h)}},g=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var n=new f(t);var o,a={};o=e.container||document.head;var s,i=document.querySelectorAll("style[data-emotion-"+r+"]");[].forEach.call(i,function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach(function(e){a[e]=!0}),e.parentNode!==o&&o.appendChild(e)}),n.use(e.stylisPlugins)(v),s=function(e,t,r,o){var a=t.name;m.current=r,n(e,t.styles),o&&(c.inserted[a]=!0)};var c={key:r,sheet:new p({key:r,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:s};return c};function b(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "}),n}var w=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+n,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var y=function(e){for(var t,r=e.length,n=r^r,o=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),((n^=n>>>15)>>>0).toString(36)},k={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},x=/[A-Z]|^ms/g,C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,S=function(e){return 45===e.charCodeAt(1)},A=i(function(e){return S(e)?e:e.replace(x,"-$&").toLowerCase()}),O=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(C,function(e,t,r){return R={name:t,styles:r,next:R},t}))}return 1===k[e]||S(e)||"number"!=typeof t||0===t?t:t+"px"};function E(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return R={name:r.name,styles:r.styles,next:R},r.name;if(void 0!==r.styles){var o=r.next;if(void 0!==o)for(;void 0!==o;)R={name:o.name,styles:o.styles,next:R},o=o.next;return r.styles}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=E(e,t,r[o],!1);else for(var a in r){var s=r[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":n+=A(a)+":"+O(a,s)+";";else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]])n+=a+"{"+E(e,t,s,!1)+"}";else for(var i=0;i<s.length;i++)n+=A(a)+":"+O(a,s[i])+";"}return n}(e,t,r);case"function":if(void 0!==e){var a=R,s=r(e);return R=a,E(e,t,s,n)}default:if(null==t)return r;var i=t[r];return void 0===i||n?r:i}}var R,_=/label:\s*([^\s;\n{]+)\s*;/g;var D=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";R=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=E(r,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=E(r,t,e[s],46===o.charCodeAt(o.length-1)),n&&(o+=a[s]);_.lastIndex=0;for(var i,c="";null!==(i=_.exec(o));)c+="-"+i[1];return{name:y(o)+c,styles:o,next:R}};var P=Object(a.createContext)(g()),I=Object(a.createContext)({}),N=(P.Provider,function(e){return Object(a.forwardRef)(function(t,r){return Object(a.createElement)(P.Consumer,null,function(n){return e(t,n,r)})})}),F="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",B={}.hasOwnProperty,j=function(e,t,r,n){var o=t[F],s=[],i="",c=null===r?t.css:t.css(r);"string"==typeof c&&void 0!==e.registered[c]&&(c=e.registered[c]),s.push(c),void 0!==t.className&&(i=b(e.registered,s,t.className));var l=D(s);w(e,l,"string"==typeof o);i+=e.key+"-"+l.name;var d={};for(var u in t)B.call(t,u)&&"css"!==u&&u!==F&&(d[u]=t[u]);return d.ref=n,d.className=i,Object(a.createElement)(o,d)};N(function(e,t,r){return"function"==typeof e.css?Object(a.createElement)(I.Consumer,null,function(n){return j(t,e,n,r)}):j(t,e,null,r)});a.Component;var z=function e(t){for(var r=t.length,n=0,o="";r>n;n++){var a=t[n];if(null!=a){var s=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))s=e(a);else for(var i in s="",a)a[i]&&i&&(s&&(s+=" "),s+=i);break;default:s=a}s&&(o&&(o+=" "),o+=s)}}return o};function L(e,t,r){var n=[],o=b(e,n,r);return 2>n.length?r:o+t(n)}N(function(e,t){return Object(a.createElement)(I.Consumer,null,function(r){var n=function(){for(var e=arguments.length,r=new Array(e),n=0;e>n;n++)r[n]=arguments[n];var o=D(r,t.registered);return w(t,o,!1),t.key+"-"+o.name},o={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;e>o;o++)r[o]=arguments[o];return L(t.registered,n,z(r))},theme:r},a=e.children(o);return!0,a})});var T=l,M=function(e){return"theme"!==e&&"innerRef"!==e},H=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?T:M},q=function e(t,r){var n,s,i;void 0!==r&&(n=r.label,i=r.target,s=t.__emotion_forwardProp&&r.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&r.shouldForwardProp(e)}:r.shouldForwardProp);var c=t.__emotion_real===t,l=c&&t.__emotion_base||t;"function"!=typeof s&&c&&(s=t.__emotion_forwardProp);var d=s||H(l),u=!d("as");return function(){var p=arguments,f=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==p[0]||void 0===p[0].raw)f.push.apply(f,p);else{f.push(p[0][0]);for(var h=p.length,m=1;h>m;m++)f.push(p[m],p[0][m])}var v=N(function(e,t,r){return Object(a.createElement)(I.Consumer,null,function(n){var o=u&&e.as||l,c="",p=[],h=e;if(null==e.theme){for(var m in h={},e)h[m]=e[m];h.theme=n}"string"==typeof e.className&&(c+=b(t.registered,p,e.className));var v=D(f.concat(p),t.registered,h);w(t,v,"string"==typeof o),c+=t.key+"-"+v.name,void 0!==i&&(c+=" "+i);var g=u&&void 0===s?H(o):d,y={};for(var k in e)u&&"as"===k||g(k)&&(y[k]=e[k]);return y.className=c,y.ref=r||e.innerRef,Object(a.createElement)(o,y)})});return v.displayName=void 0!==n?n:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=l,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,n){return e(t,void 0!==n?o()({},r||{},n):r).apply(void 0,f)},v}},U=r(4),$=r.n(U);r(1);function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var W=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;r>o;o++)n[o]=arguments[o];return G(K(t=e.call.apply(e,[this].concat(n))||this),"container",s.a.createRef()),G(K(t),"handleClick",function(e){var r=t.container.current,n=e.target,o=t.props.onClickOutside;(r&&r===n||r&&!r.contains(n))&&o(e)}),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){document.addEventListener("click",this.handleClick,!0)},r.componentWillUnmount=function(){document.removeEventListener("click",this.handleClick,!0)},r.render=function(){var e=this.props,t=e.className,r=e.children;return s.a.createElement("div",{className:t,ref:this.container},r)},t}(s.a.Component),V=function(e,t,r){return!!t.find(function(t){return Z(t,r.valueField)===e})},X=function(e,t){return"rgba("+parseInt(e.slice(1,3),16)+", "+parseInt(e.slice(3,5),16)+", "+parseInt(e.slice(5,7),16)+(t&&", "+t)+")"},Y=function(e,t){var r;return void 0===t&&(t=0),function(){for(var n=arguments.length,o=Array(n),a=0;n>a;a++)o[a]=arguments[a];r&&clearTimeout(r),r=setTimeout(function(){e.apply(void 0,o),r=null},t)}},J=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},Z=function(e,t){return t?t.split(".").reduce(function(e,t){return e[t]},e):void 0},Q=function(e,t,r){if(!t)return e;var n=Array.isArray(t)?t:t.split(".").filter(function(e){return e.length});return n.length?Q(e[n.shift()],n,r):void 0===e?r:e},ee="react-dropdown-select",te=q("span",{target:"e1l4eby50",label:"OptionComponent"})("padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:",function(e){return e.color},";color:#fff;display:flex;flex-direction:",function(e){return"rtl"===e.direction?"row-reverse":"row"},";.",ee,"-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover > span{opacity:0.9;}"),re=function(e){var t=e.item,r=e.props,n=e.state,o=e.methods;return t&&r.optionRenderer?r.optionRenderer({item:t,props:r,state:n,methods:o}):s.a.createElement(te,{role:"listitem",disabled:r.disabled,direction:r.direction,className:ee+"-option",color:r.color},s.a.createElement("span",{className:ee+"-option-label"},Z(t,r.labelField)),s.a.createElement("span",{className:ee+"-option-remove",onClick:function(e){return o.removeItem(e,t,r.closeOnSelect)}},"×"))};function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ae=function(e,t){var r=e.addPlaceholder,n=e.searchable,o=e.placeholder,a=t.values&&0===t.values.length,s=t.values&&t.values.length>0;return s&&r&&n?r:a?o:""},se=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;r>o;o++)n[o]=arguments[o];return oe(ne(t=e.call.apply(e,[this].concat(n))||this),"input",s.a.createRef()),oe(ne(t),"onBlur",function(){return t.props.state.dropdown?t.input.current.focus():t.input.current.blur()}),oe(ne(t),"handleKeyPress",function(e){var r=t.props,n=r.props,o=r.state,a=r.methods;return n.create&&"Enter"===e.key&&!V(o.search,o.values,t.props)&&o.search&&null===o.cursor&&a.createNew(o.search)}),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidUpdate=function(e){(this.props.state.dropdown||e.state.dropdown!==this.props.state.dropdown&&this.props.state.dropdown||this.props.props.autoFocus)&&this.input.current.focus(),e.state.dropdown===this.props.state.dropdown||this.props.state.dropdown||this.input.current.blur()},r.render=function(){var e=this.props,t=e.props,r=e.state,n=e.methods;return t.inputRenderer?t.inputRenderer({props:t,state:r,methods:n,inputRef:this.input}):s.a.createElement(ie,{ref:this.input,tabIndex:"-1",className:ee+"-input",size:n.getInputSize(),value:r.search,readOnly:!t.searchable,onClick:function(){return n.dropDown("open")},onKeyPress:this.handleKeyPress,onChange:n.setSearch,onBlur:this.onBlur,placeholder:ae(t,r)})},t}(a.Component),ie=q("input",{target:"e11wid6y0",label:"InputComponent"})("line-height:inherit;width:calc(",function(e){return e.size+"ch"}," + 5px);border:none;margin-left:5px;background:transparent;font-size:smaller;",function(e){return e.readOnly&&"cursor: pointer;"},":focus{outline:none;}"),ce=se,le=q("div",{target:"e1gn6jc30",label:"ContentComponent"})({name:"1vw3e5y",styles:"display:flex;flex:1;flex-wrap:wrap;"}),de=function(e){var t=e.props,r=e.state,n=e.methods;return s.a.createElement(le,{className:ee+"-content "+(t.multi?ee+"-type-multi":ee+"-type-single"),onClick:function(){return n.dropDown("open")}},t.contentRenderer?t.contentRenderer({props:t,state:r,methods:n}):s.a.createElement(s.a.Fragment,null,t.multi?r.values&&r.values.map(function(e){return s.a.createElement(re,{key:""+Z(e,t.valueField)+Z(e,t.labelField),item:e,state:r,props:t,methods:n})}):r.values&&r.values.length>0&&s.a.createElement("span",null,Z(r.values[0],t.labelField)),s.a.createElement(ce,{props:t,methods:n,state:r})))},ue=q("div",{target:"e1l5ho1t0",label:"NoDataComponent"})("padding:10px;text-align:center;color:",function(e){return e.color},";"),pe=function(e){var t=e.props,r=e.state,n=e.methods;return t.noDataRenderer?t.noDataRenderer({props:t,state:r,methods:n}):s.a.createElement(ue,{className:ee+"-no-data",color:t.color},t.noDataLabel)};var fe=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;r>o;o++)n[o]=arguments[o];return function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(n))||this),"item",s.a.createRef()),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidUpdate=function(){this.props.state.cursor===this.props.itemIndex&&this.item.current&&this.item.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},r.render=function(){var e=this.props,t=e.props,r=e.state,n=e.methods,o=e.item,a=e.itemIndex;return t.itemRenderer?t.itemRenderer({item:o,itemIndex:a,props:t,state:r,methods:n}):!t.keepSelectedInList&&n.isSelected(o)?null:s.a.createElement(he,{role:"option",ref:this.item,"aria-selected":n.isSelected(o),"aria-disabled":o.disabled,disabled:o.disabled,"aria-label":Z(o,t.labelField),key:""+Z(o,t.valueField)+Z(o,t.labelField),tabIndex:"-1",className:ee+"-item "+(n.isSelected(o)?ee+"-item-selected":"")+" "+(r.cursor===a?ee+"-item-active":"")+" "+(o.disabled?ee+"-item-disabled":""),onClick:o.disabled?void 0:function(){return n.addItem(o)},onKeyPress:o.disabled?void 0:function(){return n.addItem(o)},color:t.color},Z(o,t.labelField)," ",o.disabled&&s.a.createElement("ins",null,t.disabledLabel))},t}(a.Component),he=q("span",{target:"evc32pp0",label:"ItemComponent"})("padding:5px 10px;cursor:pointer;border-bottom:1px solid #fff;&.",ee,"-item-active{border-bottom:1px solid #fff;",function(e){var t=e.disabled,r=e.color;return!t&&r&&"background: "+X(r,.1)+";"},"}:hover,:focus{background:",function(e){var t=e.color;return t&&X(t,.1)},";outline:none;}&.",ee,"-item-selected{",function(e){var t=e.disabled,r=e.color;return t?"\n background: #f2f2f2;\n color: #ccc;\n ":"\n background: "+r+";\n color: #fff;\n border-bottom: 1px solid #fff;\n "},"}",function(e){return e.disabled?"\n background: #f2f2f2;\n color: #ccc;\n \n ins {\n text-decoration: none;\n border:1px solid #ccc;\n border-radius: 2px;\n padding: 0px 3px;\n font-size: x-small;\n text-transform: uppercase;\n }\n ":""},""),me=fe,ve=function(e,t){var r=t.getSelectRef().getBoundingClientRect(),n=r.bottom+parseInt(e.dropdownHeight,10)+parseInt(e.dropdownGap,10);return"auto"===e.dropdownPosition?n>window.innerHeight&&n>r.top?"top":"bottom":e.dropdownPosition},ge=q("div",{target:"e1qjn9k90",label:"DropDown"})("position:absolute;",function(e){var t=e.selectBounds,r=e.dropdownGap;return"top"===e.dropdownPosition?"bottom: "+(t.height+2+r)+"px":"top: "+(t.height+2+r)+"px"},";",function(e){var t=e.selectBounds,r=e.dropdownGap;return e.portal?"\n position: fixed;\n top: "+(t.bottom+r)+"px;\n left: "+(t.left-1)+"px;":"left: -1px;"},";border:1px solid #ccc;width:",function(e){return e.selectBounds.width},"px;padding:0;display:flex;flex-direction:column;background:#fff;border-radius:2px;box-shadow:0 0 10px 0 ",function(){return X("#000000",.2)},";max-height:",function(e){return e.dropdownHeight},";overflow:auto;z-index:9;:focus{outline:none;}}"),be=q("div",{target:"e1qjn9k91",label:"AddNew"})("color:",function(e){return e.color},";padding:5px 10px;:hover{background:",function(e){var t=e.color;return t&&X(t,.1)},";outline:none;cursor:pointer;}"),we=function(e){var t=e.props,r=e.state,n=e.methods;return s.a.createElement(ge,{tabIndex:"-1","aria-expanded":"true",role:"list",dropdownPosition:ve(t,n),selectBounds:r.selectBounds,portal:t.portal,dropdownGap:t.dropdownGap,dropdownHeight:t.dropdownHeight,className:ee+"-dropdown "+ee+"-dropdown-position-"+ve(t,n)},t.dropdownRenderer?t.dropdownRenderer({props:t,state:r,methods:n}):s.a.createElement(s.a.Fragment,null,t.create&&r.search&&!V(r.search,r.values,t)&&s.a.createElement(be,{className:ee+"-dropdown-add-new",color:t.color,onClick:function(){return n.createNew(r.search)}},t.createNewLabel.replace("{search}",'"'+r.search+'"')),0===n.searchResults().length?s.a.createElement(pe,{className:ee+"-no-data",state:r,props:t,methods:n}):n.searchResults().map(function(e,o){return s.a.createElement(me,{key:e[t.valueField],item:e,itemIndex:o,state:r,props:t,methods:n})})))},ye=q("div",{target:"e1l5cpc30",label:"LoadingComponent"})("@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:",function(e){return e.color}," transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}"),ke=function(e){var t=e.props;return t.loadingRenderer?t.loadingRenderer({props:t}):s.a.createElement(ye,{className:ee+"-loading",color:t.color})},xe=q("div",{target:"e11qlq5e0",label:"ClearComponent"})({name:"992gsg",styles:"line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}"}),Ce=function(e){var t=e.props,r=e.state,n=e.methods;return t.clearRenderer?t.clearRenderer({props:t,state:r,methods:n}):s.a.createElement(xe,{className:ee+"-clear",tabIndex:"-1",onClick:function(){return n.clearAll()},onKeyPress:function(){return n.clearAll()}},"×")},Se=q("div",{target:"e19h5j1v0",label:"SeparatorComponent"})({name:"gjy0ue",styles:"border-left:1px solid #ccc;width:1px;height:25px;display:block;"}),Ae=function(e){var t=e.props,r=e.state,n=e.methods;return t.separatorRenderer?t.separatorRenderer({props:t,state:r,methods:n}):s.a.createElement(Se,{className:ee+"-separator"})},Oe=q("div",{target:"e1vudypg0",label:"DropdownHandleComponent"})("text-align:center;",function(e){return e.dropdownOpen?"\n pointer-events: all;\n transform: rotate(0deg);\n margin: 0px 0 -3px 5px;\n ":"\n pointer-events: none;\n margin: 0 0 0 5px;\n transform: rotate(180deg);\n "},";cursor:pointer;svg{width:16px;height:16px;}:hover{path{stroke:",function(e){return e.color},";}}:focus{outline:none;path{stroke:",function(e){return e.color},";}}"),Ee=function(e){var t=e.props,r=e.state,n=e.methods;return t.dropdownHandleRenderer?t.dropdownHandleRenderer({props:t,state:r,methods:n}):s.a.createElement(Oe,{tabIndex:"-1",onClick:function(e){return n.dropDown(r.dropdown?"close":"open",e)},dropdownOpen:r.dropdown,onKeyPress:function(e){return n.dropDown("toggle",e)},onKeyDown:function(e){return n.dropDown("toggle",e)},className:ee+"-dropdown-handle",color:t.color},s.a.createElement("svg",{fill:"currentColor",viewBox:"0 0 40 40"},s.a.createElement("path",{d:"M31 26.4q0 .3-.2.5l-1.1 1.2q-.3.2-.6.2t-.5-.2l-8.7-8.8-8.8 8.8q-.2.2-.5.2t-.5-.2l-1.2-1.2q-.2-.2-.2-.5t.2-.5l10.4-10.4q.3-.2.6-.2t.5.2l10.4 10.4q.2.2.2.5z"})))};function Re(){return(Re=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var n in t=arguments[r])({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return 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}r.d(t,"Select",function(){return Pe});var Pe=function(e){function t(t){var r;return De(_e(r=e.call(this,t)||this),"onDropdownClose",function(){r.setState({cursor:null}),r.props.onDropdownClose()}),De(_e(r),"onScroll",function(){r.props.closeOnScroll&&r.dropDown("close"),r.updateSelectBounds()}),De(_e(r),"updateSelectBounds",function(){return r.select.current&&r.setState({selectBounds:r.select.current.getBoundingClientRect()})}),De(_e(r),"getSelectBounds",function(){return r.state.selectBounds}),De(_e(r),"dropDown",function(e,t){void 0===e&&(e="toggle");var n=t&&t.target||t&&t.srcElement;return r.props.portal&&!r.props.closeOnScroll&&!r.props.closeOnSelect&&t&&n&&n.offsetParent&&n.offsetParent.classList.contains("react-dropdown-select-dropdown")?void 0:r.props.keepOpen?r.setState({dropdown:!0}):"close"===e&&r.state.dropdown?(r.select.current.blur(),r.setState({dropdown:!1,search:r.props.clearOnBlur?"":r.state.search})):"open"!==e||r.state.dropdown?"toggle"===e&&(r.select.current.focus(),r.setState({dropdown:!r.state.dropdown})):r.setState({dropdown:!0})}),De(_e(r),"getSelectRef",function(){return r.select.current}),De(_e(r),"addItem",function(e){if(r.props.multi){if(V(Z(e,r.props.valueField),r.state.values,r.props))return r.removeItem(null,e,!1);r.setState({values:[].concat(r.state.values,[e])})}else r.setState({values:[e],dropdown:!1});return r.props.clearOnSelect&&r.setState({search:""}),!0}),De(_e(r),"removeItem",function(e,t,n){void 0===n&&(n=!1),e&&n&&(e.preventDefault(),e.stopPropagation(),r.dropDown("close")),r.setState({values:r.state.values.filter(function(e){return Z(e,r.props.valueField)!==Z(t,r.props.valueField)})})}),De(_e(r),"setSearch",function(e){r.setState({cursor:null}),r.setState({search:e.target.value})}),De(_e(r),"getInputSize",function(){return r.state.search?r.state.search.length:r.state.values.length>0?r.props.addPlaceholder.length:r.props.placeholder.length}),De(_e(r),"toggleSelectAll",function(){return r.setState({values:0===r.state.values.length?r.selectAll():r.clearAll()})}),De(_e(r),"clearAll",function(){r.props.onClearAll(),r.setState({values:[]})}),De(_e(r),"selectAll",function(){return r.props.onSelectAll(),r.setState({values:r.props.options.filter(function(e){return!e.disabled})})}),De(_e(r),"isSelected",function(e){return!!r.state.values.find(function(t){return Z(t,r.props.valueField)===Z(e,r.props.valueField)})}),De(_e(r),"areAllSelected",function(){return r.state.values.length===r.props.options.filter(function(e){return!e.disabled}).length}),De(_e(r),"safeString",function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}),De(_e(r),"sortBy",function(){var e=r.props,t=e.sortBy,n=e.options;return t?(n.sort(function(e,r){return Q(e,t)<Q(r,t)?-1:Q(e,t)>Q(r,t)?1:0}),n):n}),De(_e(r),"searchFn",function(e){var t=e.state,n=e.methods,o=new RegExp(n.safeString(t.search),"i");return n.sortBy().filter(function(e){return o.test(Z(e,r.props.searchBy)||Z(e,r.props.valueField))})}),De(_e(r),"searchResults",function(){var e={state:r.state,props:r.props,methods:r.methods};return r.props.searchFn(e)||r.searchFn(e)}),De(_e(r),"activeCursorItem",function(e){return r.setState({activeCursorItem:e})}),De(_e(r),"handleKeyDown",function(e){var t={event:e,state:r.state,props:r.props,methods:r.methods,setState:r.setState.bind(_e(r))};return r.props.handleKeyDownFn(t)||r.handleKeyDownFn(t)}),De(_e(r),"handleKeyDownFn",function(e){var t=e.event,n=e.state,o=e.props,a=e.methods,s=e.setState,i=n.cursor;if("ArrowDown"===t.key&&null===i)return s({cursor:0});if(("ArrowUp"===t.key||"ArrowDown"===t.key)&&t.preventDefault(),"Escape"===t.key&&r.dropDown("close"),"Enter"===t.key){var c=a.searchResults()[i];if(c&&!c.disabled){if(o.create&&V(n.search,n.values,o))return null;a.addItem(c)}}return"ArrowUp"===t.key&&i>0&&s(function(e){return{cursor:e.cursor-1}}),"ArrowUp"===t.key&&0===i&&s({cursor:a.searchResults().length}),"ArrowDown"===t.key&&s(function(e){return{cursor:e.cursor+1}}),"ArrowDown"===t.key&&a.searchResults().length===i?s({cursor:0}):void 0}),De(_e(r),"renderDropdown",function(){return r.props.portal?$.a.createPortal(s.a.createElement(we,{props:r.props,state:r.state,methods:r.methods}),r.dropdownRoot):s.a.createElement(we,{props:r.props,state:r.state,methods:r.methods})}),De(_e(r),"createNew",function(e){var t,n=((t={})[r.props.labelField]=e,t[r.props.valueField]=e,t);r.addItem(n),r.props.onCreateNew(n),r.setState({search:""})}),r.state={dropdown:!1,values:t.values,search:"",selectBounds:{},cursor:null},r.methods={removeItem:r.removeItem,dropDown:r.dropDown,addItem:r.addItem,setSearch:r.setSearch,getInputSize:r.getInputSize,toggleSelectAll:r.toggleSelectAll,clearAll:r.clearAll,selectAll:r.selectAll,searchResults:r.searchResults,getSelectRef:r.getSelectRef,isSelected:r.isSelected,getSelectBounds:r.getSelectBounds,areAllSelected:r.areAllSelected,handleKeyDown:r.handleKeyDown,activeCursorItem:r.activeCursorItem,createNew:r.createNew,sortBy:r.sortBy,safeString:r.safeString},r.select=s.a.createRef(),r.dropdownRoot="undefined"!=typeof document&&document.createElement("div"),r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.portal&&this.props.portal.appendChild(this.dropdownRoot),window.addEventListener("resize",Y(this.updateSelectBounds)),window.addEventListener("scroll",Y(this.onScroll)),this.dropDown("close"),this.select&&this.updateSelectBounds()},r.componentDidUpdate=function(e,t){!J(e.values,this.props.values)&&J(e.values,t.values)&&(this.props.onChange(this.state.values),this.setState({values:this.props.values}),this.updateSelectBounds()),t.values!==this.state.values&&(this.props.onChange(this.state.values),this.updateSelectBounds()),t.search!==this.state.search&&this.updateSelectBounds(),t.values!==this.state.values&&this.props.closeOnSelect&&this.dropDown("close"),e.multi!==this.props.multi&&this.updateSelectBounds(),t.dropdown&&t.dropdown!==this.state.dropdown&&this.onDropdownClose(),t.dropdown||t.dropdown===this.state.dropdown||this.props.onDropdownOpen()},r.componentWillUnmount=function(){this.props.portal&&this.props.portal.removeChild(this.dropdownRoot),window.removeEventListener("resize",Y(this.updateSelectBounds,this.props.debounceDelay)),window.removeEventListener("scroll",Y(this.onScroll,this.props.debounceDelay))},r.render=function(){var e=this;return s.a.createElement(W,{onClickOutside:function(t){return e.dropDown("close",t)}},s.a.createElement(Ie,Re({onKeyDown:this.handleKeyDown,onClick:function(t){return e.dropDown("open",t)},onFocus:function(t){return e.dropDown("open",t)},tabIndex:"0",direction:this.props.direction,style:this.props.style,ref:this.select,disabled:this.props.disabled,className:ee+" "+this.props.className,color:this.props.color},this.props.additionalProps),s.a.createElement(de,{props:this.props,state:this.state,methods:this.methods}),this.props.name&&s.a.createElement("input",{name:this.props.name,type:"hidden",value:this.props.values}),this.props.loading&&s.a.createElement(ke,{props:this.props}),this.props.clearable&&s.a.createElement(Ce,{props:this.props,state:this.state,methods:this.methods}),this.props.separator&&s.a.createElement(Ae,{props:this.props,state:this.state,methods:this.methods}),this.props.dropdownHandle&&s.a.createElement(Ee,{onClick:function(){return e.select.current.focus()},props:this.props,state:this.state,methods:this.methods}),this.state.dropdown&&this.renderDropdown()))},t}(a.Component);Pe.defaultProps={addPlaceholder:"",placeholder:"Select...",values:[],options:[],multi:!1,disabled:!1,searchBy:"label",sortBy:null,clearable:!1,searchable:!0,dropdownHandle:!0,separator:!1,keepOpen:void 0,noDataLabel:"No data",createNewLabel:"add {search}",disabledLabel:"disabled",dropdownGap:5,closeOnScroll:!1,debounceDelay:0,labelField:"label",valueField:"value",color:"#0074D9",keepSelectedInList:!0,closeOnSelect:!1,clearOnBlur:!0,clearOnSelect:!0,dropdownPosition:"bottom",dropdownHeight:"300px",autoFocus:!1,portal:null,create:!1,direction:"ltr",name:null,onChange:function(){},onDropdownOpen:function(){},onDropdownClose:function(){},onClearAll:function(){},onSelectAll:function(){},onCreateNew:function(){},searchFn:function(){},handleKeyDownFn:function(){},additionalProps:null};var Ie=q("div",{target:"e1gzf2xs0",label:"ReactDropdownSelect"})("position:relative;display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;direction:",function(e){return e.direction},";align-items:center;cursor:pointer;min-height:36px;",function(e){return e.disabled?"cursor: not-allowed;pointer-events: none;opacity: 0.3;":"pointer-events: all;"},":hover,:focus-within{border-color:",function(e){return e.color},";}:focus,:focus-within{outline:0;box-shadow:0 0 0 3px ",function(e){var t=e.color;return X(t,.2)},";}");t.default=Pe}]);

@@ -1,1 +0,1 @@

"use strict";exports.__esModule=!0,exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react")),_constants=require("../constants");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var DropdownHandle=function(a){var b=a.props,c=a.state,d=a.methods;return b.dropdownHandleRenderer?b.dropdownHandleRenderer({props:b,state:c,methods:d}):_react.default.createElement(DropdownHandleComponent,{tabIndex:"-1",onClick:function onClick(a){return d.dropDown(c.dropdown?"close":"open",a)},dropdownOpen:c.dropdown,onKeyPress:function onKeyPress(a){return d.dropDown("toggle",a)},onKeyDown:function onKeyDown(a){return d.dropDown("toggle",a)},className:_constants.LIB_NAME+"-dropdown-handle",color:b.color},_react.default.createElement("svg",{fill:"currentColor",viewBox:"0 0 40 40"},_react.default.createElement("path",{d:"M31 26.4q0 .3-.2.5l-1.1 1.2q-.3.2-.6.2t-.5-.2l-8.7-8.8-8.8 8.8q-.2.2-.5.2t-.5-.2l-1.2-1.2q-.2-.2-.2-.5t.2-.5l10.4-10.4q.3-.2.6-.2t.5.2l10.4 10.4q.2.2.2.5z"})))},DropdownHandleComponent=(0,_styledBase.default)("div",{target:"e1vudypg0",label:"DropdownHandleComponent"})("text-align:center;",function(a){var b=a.dropdownOpen;return b?"\n transform: rotate(0deg);\n margin: 0px 0 -3px 5px;\n ":"\n margin: 0 0 0 5px;\n transform: rotate(180deg);\n "},";cursor:pointer;svg{width:16px;height:16px;}:hover{path{stroke:",function(a){var b=a.color;return b},";}}:focus{outline:none;path{stroke:",function(a){var b=a.color;return b},";}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0Ryb3Bkb3duSGFuZGxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9CMEMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvRHJvcGRvd25IYW5kbGUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgTElCX05BTUUgfSBmcm9tICcuLi9jb25zdGFudHMnO1xuXG5jb25zdCBEcm9wZG93bkhhbmRsZSA9ICh7IHByb3BzLCBzdGF0ZSwgbWV0aG9kcyB9KSA9PlxuICBwcm9wcy5kcm9wZG93bkhhbmRsZVJlbmRlcmVyID8gKFxuICAgIHByb3BzLmRyb3Bkb3duSGFuZGxlUmVuZGVyZXIoeyBwcm9wcywgc3RhdGUsIG1ldGhvZHMgfSlcbiAgKSA6IChcbiAgICA8RHJvcGRvd25IYW5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gICAgIGBcbiAgICAgIDogYFxuICAgICAgbWFyZ2luOiAwIDAgMCA1cHg7XG4gICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpO1xuICAgICAgYH07XG4gIGN1cnNvcjogcG9pbnRlcjtcblxuICBzdmcge1xuICAgIHdpZHRoOiAxNnB4O1xuICAgIGhlaWdodDogMTZweDtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgcGF0aCB7XG4gICAgICBzdHJva2U6ICR7KHsgY29sb3IgfSkgPT4gY29sb3J9O1xuICAgIH1cbiAgfVxuXG4gIDpmb2N1cyB7XG4gICAgb3V0bGluZTogbm9uZTtcblxuICAgIHBhdGgge1xuICAgICAgc3Ryb2tlOiAkeyh7IGNvbG9yIH0pID0+IGNvbG9yfTtcbiAgICB9XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IERyb3Bkb3duSGFuZGxlO1xuIl19 */")),_default=DropdownHandle;exports.default=_default;
"use strict";exports.__esModule=!0,exports.default=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireDefault(require("react")),_constants=require("../constants");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var DropdownHandle=function(a){var b=a.props,c=a.state,d=a.methods;return b.dropdownHandleRenderer?b.dropdownHandleRenderer({props:b,state:c,methods:d}):_react.default.createElement(DropdownHandleComponent,{tabIndex:"-1",onClick:function onClick(a){return d.dropDown(c.dropdown?"close":"open",a)},dropdownOpen:c.dropdown,onKeyPress:function onKeyPress(a){return d.dropDown("toggle",a)},onKeyDown:function onKeyDown(a){return d.dropDown("toggle",a)},className:_constants.LIB_NAME+"-dropdown-handle",color:b.color},_react.default.createElement("svg",{fill:"currentColor",viewBox:"0 0 40 40"},_react.default.createElement("path",{d:"M31 26.4q0 .3-.2.5l-1.1 1.2q-.3.2-.6.2t-.5-.2l-8.7-8.8-8.8 8.8q-.2.2-.5.2t-.5-.2l-1.2-1.2q-.2-.2-.2-.5t.2-.5l10.4-10.4q.3-.2.6-.2t.5.2l10.4 10.4q.2.2.2.5z"})))},DropdownHandleComponent=(0,_styledBase.default)("div",{target:"e1vudypg0",label:"DropdownHandleComponent"})("text-align:center;",function(a){var b=a.dropdownOpen;return b?"\n pointer-events: all;\n transform: rotate(0deg);\n margin: 0px 0 -3px 5px;\n ":"\n pointer-events: none;\n margin: 0 0 0 5px;\n transform: rotate(180deg);\n "},";cursor:pointer;svg{width:16px;height:16px;}:hover{path{stroke:",function(a){var b=a.color;return b},";}}:focus{outline:none;path{stroke:",function(a){var b=a.color;return b},";}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21wb25lbnRzL0Ryb3Bkb3duSGFuZGxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9CMEMiLCJmaWxlIjoiLi4vLi4vc3JjL2NvbXBvbmVudHMvRHJvcGRvd25IYW5kbGUuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgTElCX05BTUUgfSBmcm9tICcuLi9jb25zdGFudHMnO1xuXG5jb25zdCBEcm9wZG93bkhhbmRsZSA9ICh7IHByb3BzLCBzdGF0ZSwgbWV0aG9kcyB9KSA9PlxuICBwcm9wcy5kcm9wZG93bkhhbmRsZVJlbmRlcmVyID8gKFxuICAgIHByb3BzLmRyb3Bkb3duSGFuZGxlUmVuZGVyZXIoeyBwcm9wcywgc3RhdGUsIG1ldGhvZHMgfSlcbiAgKSA6IChcbiAgICA8RHJvcGRvd25IYW5kbGVDb21wb25lbnRcbiAgICAgIHRhYkluZGV4PVwiLTFcIlxuICAgICAgb25DbGljaz17KGV2ZW50KSA9PiBtZXRob2RzLmRyb3BEb3duKHN0YXR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WFyZ2luOiAwIDAgMCA1cHg7XG4gICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpO1xuICAgICAgYH07XG4gIGN1cnNvcjogcG9pbnRlcjtcblxuICBzdmcge1xuICAgIHdpZHRoOiAxNnB4O1xuICAgIGhlaWdodDogMTZweDtcbiAgfVxuXG4gIDpob3ZlciB7XG4gICAgcGF0aCB7XG4gICAgICBzdHJva2U6ICR7KHsgY29sb3IgfSkgPT4gY29sb3J9O1xuICAgIH1cbiAgfVxuXG4gIDpmb2N1cyB7XG4gICAgb3V0bGluZTogbm9uZTtcblxuICAgIHBhdGgge1xuICAgICAgc3Ryb2tlOiAkeyh7IGNvbG9yIH0pID0+IGNvbG9yfTtcbiAgICB9XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IERyb3Bkb3duSGFuZGxlO1xuIl19 */")),_default=DropdownHandle;exports.default=_default;

@@ -1,1 +0,1 @@

"use strict";exports.__esModule=!0,exports.default=exports.Select=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireWildcard(require("react")),_reactDom=_interopRequireDefault(require("react-dom")),_propTypes=_interopRequireDefault(require("prop-types")),_ClickOutside=_interopRequireDefault(require("./components/ClickOutside")),_Content=_interopRequireDefault(require("./components/Content")),_Dropdown=_interopRequireDefault(require("./components/Dropdown")),_Loading=_interopRequireDefault(require("./components/Loading")),_Clear=_interopRequireDefault(require("./components/Clear")),_Separator=_interopRequireDefault(require("./components/Separator")),_DropdownHandle=_interopRequireDefault(require("./components/DropdownHandle")),_util=require("./util"),_constants=require("./constants");function _interopRequireWildcard(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b}function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Select=/*#__PURE__*/function(a){function b(b){var c;return c=a.call(this,b)||this,_defineProperty(_assertThisInitialized(c),"onDropdownClose",function(){c.setState({cursor:null}),c.props.onDropdownClose()}),_defineProperty(_assertThisInitialized(c),"onScroll",function(){c.props.closeOnScroll&&c.dropDown("close"),c.updateSelectBounds()}),_defineProperty(_assertThisInitialized(c),"updateSelectBounds",function(){return c.select.current&&c.setState({selectBounds:c.select.current.getBoundingClientRect()})}),_defineProperty(_assertThisInitialized(c),"getSelectBounds",function(){return c.state.selectBounds}),_defineProperty(_assertThisInitialized(c),"dropDown",function(a,b){void 0===a&&(a="toggle");var d=b&&b.target||b&&b.srcElement;return c.props.portal&&!c.props.closeOnScroll&&!c.props.closeOnSelect&&b&&d&&d.offsetParent&&d.offsetParent.classList.contains("react-dropdown-select-dropdown")?void 0:c.props.keepOpen?c.setState({dropdown:!0}):"close"===a&&c.state.dropdown?(c.select.current.blur(),c.setState({dropdown:!1,search:c.props.clearOnBlur?"":c.state.search})):"open"!==a||c.state.dropdown?"toggle"===a&&(c.select.current.focus(),c.setState({dropdown:!c.state.dropdown})):c.setState({dropdown:!0})}),_defineProperty(_assertThisInitialized(c),"getSelectRef",function(){return c.select.current}),_defineProperty(_assertThisInitialized(c),"addItem",function(a){if(c.props.multi){if((0,_util.valueExistInSelected)((0,_util.getByPath)(a,c.props.valueField),c.state.values,c.props))return c.removeItem(null,a,!1);c.setState({values:[].concat(c.state.values,[a])})}else c.setState({values:[a],dropdown:!1});return c.props.clearOnSelect&&c.setState({search:""}),!0}),_defineProperty(_assertThisInitialized(c),"removeItem",function(a,b,d){void 0===d&&(d=!1),a&&d&&(a.preventDefault(),a.stopPropagation(),c.dropDown("close")),c.setState({values:c.state.values.filter(function(a){return(0,_util.getByPath)(a,c.props.valueField)!==(0,_util.getByPath)(b,c.props.valueField)})})}),_defineProperty(_assertThisInitialized(c),"setSearch",function(a){c.setState({cursor:null}),c.setState({search:a.target.value})}),_defineProperty(_assertThisInitialized(c),"getInputSize",function(){return c.state.search?c.state.search.length:0<c.state.values.length?c.props.addPlaceholder.length:c.props.placeholder.length}),_defineProperty(_assertThisInitialized(c),"toggleSelectAll",function(){return c.setState({values:0===c.state.values.length?c.selectAll():c.clearAll()})}),_defineProperty(_assertThisInitialized(c),"clearAll",function(){c.props.onClearAll(),c.setState({values:[]})}),_defineProperty(_assertThisInitialized(c),"selectAll",function(){return c.props.onSelectAll(),c.setState({values:c.props.options.filter(function(a){return!a.disabled})})}),_defineProperty(_assertThisInitialized(c),"isSelected",function(a){return!!c.state.values.find(function(b){return(0,_util.getByPath)(b,c.props.valueField)===(0,_util.getByPath)(a,c.props.valueField)})}),_defineProperty(_assertThisInitialized(c),"areAllSelected",function(){return c.state.values.length===c.props.options.filter(function(a){return!a.disabled}).length}),_defineProperty(_assertThisInitialized(c),"safeString",function(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}),_defineProperty(_assertThisInitialized(c),"sortBy",function(){var a=c.props,d=a.sortBy,e=a.options;return d?(e.sort(function(c,a){return(0,_util.getProp)(c,d)<(0,_util.getProp)(a,d)?-1:(0,_util.getProp)(c,d)>(0,_util.getProp)(a,d)?1:0}),e):e}),_defineProperty(_assertThisInitialized(c),"searchFn",function(a){var b=a.state,d=a.methods,e=new RegExp(d.safeString(b.search),"i");return d.sortBy().filter(function(a){return e.test((0,_util.getByPath)(a,c.props.searchBy)||(0,_util.getByPath)(a,c.props.valueField))})}),_defineProperty(_assertThisInitialized(c),"searchResults",function(){var a={state:c.state,props:c.props,methods:c.methods};return c.props.searchFn(a)||c.searchFn(a)}),_defineProperty(_assertThisInitialized(c),"activeCursorItem",function(a){return c.setState({activeCursorItem:a})}),_defineProperty(_assertThisInitialized(c),"handleKeyDown",function(a){var b={event:a,state:c.state,props:c.props,methods:c.methods,setState:c.setState.bind(_assertThisInitialized(c))};return c.props.handleKeyDownFn(b)||c.handleKeyDownFn(b)}),_defineProperty(_assertThisInitialized(c),"handleKeyDownFn",function(a){var b=a.event,d=a.state,e=a.props,f=a.methods,g=a.setState,h=d.cursor;if("ArrowDown"===b.key&&null===h)return g({cursor:0});if(("ArrowUp"===b.key||"ArrowDown"===b.key)&&b.preventDefault(),"Escape"===b.key&&c.dropDown("close"),"Enter"===b.key){var i=f.searchResults()[h];if(i&&!i.disabled){if(e.create&&(0,_util.valueExistInSelected)(d.search,d.values,e))return null;f.addItem(i)}}return("ArrowUp"===b.key&&0<h&&g(function(a){return{cursor:a.cursor-1}}),"ArrowUp"===b.key&&0===h&&g({cursor:f.searchResults().length}),"ArrowDown"===b.key&&g(function(a){return{cursor:a.cursor+1}}),"ArrowDown"===b.key&&f.searchResults().length===h)?g({cursor:0}):void 0}),_defineProperty(_assertThisInitialized(c),"renderDropdown",function(){return c.props.portal?_reactDom.default.createPortal(_react.default.createElement(_Dropdown.default,{props:c.props,state:c.state,methods:c.methods}),c.dropdownRoot):_react.default.createElement(_Dropdown.default,{props:c.props,state:c.state,methods:c.methods})}),_defineProperty(_assertThisInitialized(c),"createNew",function(a){var b,d=(b={},b[c.props.labelField]=a,b[c.props.valueField]=a,b);c.addItem(d),c.props.onCreateNew(d),c.setState({search:""})}),c.state={dropdown:!1,values:b.values,search:"",selectBounds:{},cursor:null},c.methods={removeItem:c.removeItem,dropDown:c.dropDown,addItem:c.addItem,setSearch:c.setSearch,getInputSize:c.getInputSize,toggleSelectAll:c.toggleSelectAll,clearAll:c.clearAll,selectAll:c.selectAll,searchResults:c.searchResults,getSelectRef:c.getSelectRef,isSelected:c.isSelected,getSelectBounds:c.getSelectBounds,areAllSelected:c.areAllSelected,handleKeyDown:c.handleKeyDown,activeCursorItem:c.activeCursorItem,createNew:c.createNew,sortBy:c.sortBy,safeString:c.safeString},c.select=_react.default.createRef(),c.dropdownRoot="undefined"!=typeof document&&document.createElement("div"),c}_inheritsLoose(b,a);var c=b.prototype;return c.componentDidMount=function componentDidMount(){this.props.portal&&this.props.portal.appendChild(this.dropdownRoot),window.addEventListener("resize",(0,_util.debounce)(this.updateSelectBounds)),window.addEventListener("scroll",(0,_util.debounce)(this.onScroll)),this.dropDown("close"),this.select&&this.updateSelectBounds()},c.componentDidUpdate=function componentDidUpdate(a,b){!(0,_util.isEqual)(a.values,this.props.values)&&(0,_util.isEqual)(a.values,b.values)&&(this.props.onChange(this.state.values),this.setState({values:this.props.values}),this.updateSelectBounds()),b.values!==this.state.values&&(this.props.onChange(this.state.values),this.updateSelectBounds()),b.search!==this.state.search&&this.updateSelectBounds(),b.values!==this.state.values&&this.props.closeOnSelect&&this.dropDown("close"),a.multi!==this.props.multi&&this.updateSelectBounds(),b.dropdown&&b.dropdown!==this.state.dropdown&&this.onDropdownClose(),b.dropdown||b.dropdown===this.state.dropdown||this.props.onDropdownOpen()},c.componentWillUnmount=function componentWillUnmount(){this.props.portal&&this.props.portal.removeChild(this.dropdownRoot),window.removeEventListener("resize",(0,_util.debounce)(this.updateSelectBounds,this.props.debounceDelay)),window.removeEventListener("scroll",(0,_util.debounce)(this.onScroll,this.props.debounceDelay))},c.render=function render(){var a=this;return _react.default.createElement(_ClickOutside.default,{onClickOutside:function onClickOutside(b){return a.dropDown("close",b)}},_react.default.createElement(ReactDropdownSelect,_extends({onKeyDown:this.handleKeyDown,onClick:function onClick(b){return a.dropDown("open",b)},onFocus:function onFocus(b){return a.dropDown("open",b)},tabIndex:"0",direction:this.props.direction,style:this.props.style,ref:this.select,disabled:this.props.disabled,className:_constants.LIB_NAME+" "+this.props.className,color:this.props.color},this.props.additionalProps),_react.default.createElement(_Content.default,{props:this.props,state:this.state,methods:this.methods}),this.props.name&&_react.default.createElement("input",{name:this.props.name,type:"hidden",value:this.props.values}),this.props.loading&&_react.default.createElement(_Loading.default,{props:this.props}),this.props.clearable&&_react.default.createElement(_Clear.default,{props:this.props,state:this.state,methods:this.methods}),this.props.separator&&_react.default.createElement(_Separator.default,{props:this.props,state:this.state,methods:this.methods}),this.props.dropdownHandle&&_react.default.createElement(_DropdownHandle.default,{onClick:function onClick(){return a.select.current.focus()},props:this.props,state:this.state,methods:this.methods}),this.state.dropdown&&this.renderDropdown()))},b}(_react.Component);exports.Select=Select,Select.defaultProps={addPlaceholder:"",placeholder:"Select...",values:[],options:[],multi:!1,disabled:!1,searchBy:"label",sortBy:null,clearable:!1,searchable:!0,dropdownHandle:!0,separator:!1,keepOpen:void 0,noDataLabel:"No data",createNewLabel:"add {search}",disabledLabel:"disabled",dropdownGap:5,closeOnScroll:!1,debounceDelay:0,labelField:"label",valueField:"value",color:"#0074D9",keepSelectedInList:!0,closeOnSelect:!1,clearOnBlur:!0,clearOnSelect:!0,dropdownPosition:"bottom",dropdownHeight:"300px",autoFocus:!1,portal:null,create:!1,direction:"ltr",name:null,onChange:function onChange(){},onDropdownOpen:function onDropdownOpen(){},onDropdownClose:function onDropdownClose(){},onClearAll:function onClearAll(){},onSelectAll:function onSelectAll(){},onCreateNew:function onCreateNew(){},searchFn:function searchFn(){},handleKeyDownFn:function handleKeyDownFn(){},additionalProps:null};var ReactDropdownSelect=(0,_styledBase.default)("div",{target:"e1gzf2xs0",label:"ReactDropdownSelect"})("position:relative;display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;direction:",function(a){var b=a.direction;return b},";align-items:center;min-height:36px;",function(a){var b=a.disabled;return b?"cursor: not-allowed;pointer-events: none;opacity: 0.3;":"pointer-events: all;"},":hover,:focus-within{border-color:",function(a){var b=a.color;return b},";}:focus,:focus-within{outline:0;box-shadow:0 0 0 3px ",function(a){var b=a.color;return(0,_util.hexToRGBA)(b,.2)},";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyZ0JzQyIsImZpbGUiOiIuLi9zcmMvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgQ29tcG9uZW50IH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IFJlYWN0RE9NIGZyb20gJ3JlYWN0LWRvbSc7XG5pbXBvcnQgUHJvcFR5cGVzIGZyb20gJ3Byb3AtdHlwZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IENsaWNrT3V0c2lkZSBmcm9tICcuL2NvbXBvbmVudHMvQ2xpY2tPdXRzaWRlJztcblxuaW1wb3J0IENvbnRlbnQgZnJvbSAnLi9jb21wb25lbnRzL0NvbnRlbnQnO1xuaW1wb3J0IERyb3Bkb3duIGZyb20gJy4vY29tcG9uZW50cy9Ecm9wZG93bic7XG5pbXBvcnQgTG9hZGluZyBmcm9tICcuL2NvbXBvbmVudHMvTG9hZGluZyc7XG5pbXBvcnQgQ2xlYXIgZnJvbSAnLi9jb21wb25lbnRzL0NsZWFyJztcbmltcG9ydCBTZXBhcmF0b3IgZnJvbSAnLi9jb21wb25lbnRzL1NlcGFyYXRvcic7XG5pbXBvcnQgRHJvcGRvd25IYW5kbGUgZnJvbSAnLi9jb21wb25lbnRzL0Ryb3Bkb3duSGFuZGxlJztcblxuaW1wb3J0IHsgZGVib3VuY2UsIGhleFRvUkdCQSwgaXNFcXVhbCwgZ2V0QnlQYXRoLCBnZXRQcm9wLCB2YWx1ZUV4aXN0SW5TZWxlY3RlZCB9IGZyb20gJy4vdXRpbCc7XG5pbXBvcnQgey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RoaXMuc3RhdGV9IG1ldGhvZHM9e3RoaXMubWV0aG9kc30gLz5cblxuICAgICAgICAgIHt0aGlzLnByb3BzLm5hbWUgJiYgKFxuICAgICAgICAgICAgPGlucHV0IG5hbWU9e3RoaXMucHJvcHMubmFtZX0gdHlwZT1cImhpZGRlblwiIHZhbHVlPXt0aGlzLnByb3BzLnZhbHVlc30gLz5cbiAgICAgICAgICApfVxuXG4gICAgICAgICAge3RoaXMucHJvcHMubG9hZGluZyAmJiA8TG9hZGluZyBwcm9wcz17dGhpcy5wcm9wc30gLz59XG5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5jbGVhcmFibGUgJiYgKFxuICAgICAgICAgICAgPENsZWFyIHByb3BzPXt0aGlzLnByb3BzfSBzdGF0ZT17dGhpcy5zdGF0ZX0gbWV0aG9kcz17dGhpcy5tZXRob2RzfSAvPlxuICAgICAgICAgICl9XG5cbiAgICAgICAgICB7dGhpcy5wcm9wcy5zZXBhcmF0b3IgJiYgKFxuICAgICAgICAgICAgPFNlcGFyYXRvciBwcm9wcz17dGhpcy5wcm9wc30gc3RhdGU9e3RoaXMuc3RhdGV9IG1ldGhvZHM9e3RoaXMubWV0aG9kc30gLz5cbiAgICAgICAgICApfVxuXG4gICAgICAgICAge3RoaXMucHJvcHMuZHJvcGRvd25IYW5kbGUgJiYgKFxuICAgICAgICAgICAgPERyb3Bkb3duSGFuZGxlXG4gICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IHRoaXMuc2VsZWN0LmN1cnJlbnQuZm9jdXMoKX1cbiAgICAgICAgICAgICAgcHJvcHM9e3RoaXMucHJvcHN9XG4gICAgICAgICAgICAgIHN0YXRlPXt0aGlzLnN0YXRlfVxuICAgICAgICAgICAgICBtZXRob2RzPXt0aGlzLm1ldGhvZHN9XG4gICAgICAgICAgICAvPlxuICAgICAgICAgICl9XG5cbiAgICAgICAgICB7dGhpcy5zdGF0ZS5kcm9wZG93biAmJiB0aGlzLnJlbmRlckRyb3Bkb3duKCl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VyLWNvbG9yOiAkeyh7IGNvbG9yIH0pID0+IGNvbG9yfTtcbiAgfVxuXG4gIDpmb2N1cyxcbiAgOmZvY3VzLXdpdGhpbiB7XG4gICAgb3V0bGluZTogMDtcbiAgICBib3gtc2hhZG93OiAwIDAgMCAzcHggJHsoeyBjb2xvciB9KSA9PiBoZXhUb1JHQkEoY29sb3IsIDAuMil9O1xuICB9XG5gO1xuXG5leHBvcnQgZGVmYXVsdCBTZWxlY3Q7XG4iXX0= */")),_default=Select;exports.default=_default;
"use strict";exports.__esModule=!0,exports.default=exports.Select=void 0;var _styledBase=_interopRequireDefault(require("@emotion/styled-base")),_react=_interopRequireWildcard(require("react")),_reactDom=_interopRequireDefault(require("react-dom")),_propTypes=_interopRequireDefault(require("prop-types")),_ClickOutside=_interopRequireDefault(require("./components/ClickOutside")),_Content=_interopRequireDefault(require("./components/Content")),_Dropdown=_interopRequireDefault(require("./components/Dropdown")),_Loading=_interopRequireDefault(require("./components/Loading")),_Clear=_interopRequireDefault(require("./components/Clear")),_Separator=_interopRequireDefault(require("./components/Separator")),_DropdownHandle=_interopRequireDefault(require("./components/DropdownHandle")),_util=require("./util"),_constants=require("./constants");function _interopRequireWildcard(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b}function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var Select=/*#__PURE__*/function(a){function b(b){var c;return c=a.call(this,b)||this,_defineProperty(_assertThisInitialized(c),"onDropdownClose",function(){c.setState({cursor:null}),c.props.onDropdownClose()}),_defineProperty(_assertThisInitialized(c),"onScroll",function(){c.props.closeOnScroll&&c.dropDown("close"),c.updateSelectBounds()}),_defineProperty(_assertThisInitialized(c),"updateSelectBounds",function(){return c.select.current&&c.setState({selectBounds:c.select.current.getBoundingClientRect()})}),_defineProperty(_assertThisInitialized(c),"getSelectBounds",function(){return c.state.selectBounds}),_defineProperty(_assertThisInitialized(c),"dropDown",function(a,b){void 0===a&&(a="toggle");var d=b&&b.target||b&&b.srcElement;return c.props.portal&&!c.props.closeOnScroll&&!c.props.closeOnSelect&&b&&d&&d.offsetParent&&d.offsetParent.classList.contains("react-dropdown-select-dropdown")?void 0:c.props.keepOpen?c.setState({dropdown:!0}):"close"===a&&c.state.dropdown?(c.select.current.blur(),c.setState({dropdown:!1,search:c.props.clearOnBlur?"":c.state.search})):"open"!==a||c.state.dropdown?"toggle"===a&&(c.select.current.focus(),c.setState({dropdown:!c.state.dropdown})):c.setState({dropdown:!0})}),_defineProperty(_assertThisInitialized(c),"getSelectRef",function(){return c.select.current}),_defineProperty(_assertThisInitialized(c),"addItem",function(a){if(c.props.multi){if((0,_util.valueExistInSelected)((0,_util.getByPath)(a,c.props.valueField),c.state.values,c.props))return c.removeItem(null,a,!1);c.setState({values:[].concat(c.state.values,[a])})}else c.setState({values:[a],dropdown:!1});return c.props.clearOnSelect&&c.setState({search:""}),!0}),_defineProperty(_assertThisInitialized(c),"removeItem",function(a,b,d){void 0===d&&(d=!1),a&&d&&(a.preventDefault(),a.stopPropagation(),c.dropDown("close")),c.setState({values:c.state.values.filter(function(a){return(0,_util.getByPath)(a,c.props.valueField)!==(0,_util.getByPath)(b,c.props.valueField)})})}),_defineProperty(_assertThisInitialized(c),"setSearch",function(a){c.setState({cursor:null}),c.setState({search:a.target.value})}),_defineProperty(_assertThisInitialized(c),"getInputSize",function(){return c.state.search?c.state.search.length:0<c.state.values.length?c.props.addPlaceholder.length:c.props.placeholder.length}),_defineProperty(_assertThisInitialized(c),"toggleSelectAll",function(){return c.setState({values:0===c.state.values.length?c.selectAll():c.clearAll()})}),_defineProperty(_assertThisInitialized(c),"clearAll",function(){c.props.onClearAll(),c.setState({values:[]})}),_defineProperty(_assertThisInitialized(c),"selectAll",function(){return c.props.onSelectAll(),c.setState({values:c.props.options.filter(function(a){return!a.disabled})})}),_defineProperty(_assertThisInitialized(c),"isSelected",function(a){return!!c.state.values.find(function(b){return(0,_util.getByPath)(b,c.props.valueField)===(0,_util.getByPath)(a,c.props.valueField)})}),_defineProperty(_assertThisInitialized(c),"areAllSelected",function(){return c.state.values.length===c.props.options.filter(function(a){return!a.disabled}).length}),_defineProperty(_assertThisInitialized(c),"safeString",function(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}),_defineProperty(_assertThisInitialized(c),"sortBy",function(){var a=c.props,d=a.sortBy,e=a.options;return d?(e.sort(function(c,a){return(0,_util.getProp)(c,d)<(0,_util.getProp)(a,d)?-1:(0,_util.getProp)(c,d)>(0,_util.getProp)(a,d)?1:0}),e):e}),_defineProperty(_assertThisInitialized(c),"searchFn",function(a){var b=a.state,d=a.methods,e=new RegExp(d.safeString(b.search),"i");return d.sortBy().filter(function(a){return e.test((0,_util.getByPath)(a,c.props.searchBy)||(0,_util.getByPath)(a,c.props.valueField))})}),_defineProperty(_assertThisInitialized(c),"searchResults",function(){var a={state:c.state,props:c.props,methods:c.methods};return c.props.searchFn(a)||c.searchFn(a)}),_defineProperty(_assertThisInitialized(c),"activeCursorItem",function(a){return c.setState({activeCursorItem:a})}),_defineProperty(_assertThisInitialized(c),"handleKeyDown",function(a){var b={event:a,state:c.state,props:c.props,methods:c.methods,setState:c.setState.bind(_assertThisInitialized(c))};return c.props.handleKeyDownFn(b)||c.handleKeyDownFn(b)}),_defineProperty(_assertThisInitialized(c),"handleKeyDownFn",function(a){var b=a.event,d=a.state,e=a.props,f=a.methods,g=a.setState,h=d.cursor;if("ArrowDown"===b.key&&null===h)return g({cursor:0});if(("ArrowUp"===b.key||"ArrowDown"===b.key)&&b.preventDefault(),"Escape"===b.key&&c.dropDown("close"),"Enter"===b.key){var i=f.searchResults()[h];if(i&&!i.disabled){if(e.create&&(0,_util.valueExistInSelected)(d.search,d.values,e))return null;f.addItem(i)}}return("ArrowUp"===b.key&&0<h&&g(function(a){return{cursor:a.cursor-1}}),"ArrowUp"===b.key&&0===h&&g({cursor:f.searchResults().length}),"ArrowDown"===b.key&&g(function(a){return{cursor:a.cursor+1}}),"ArrowDown"===b.key&&f.searchResults().length===h)?g({cursor:0}):void 0}),_defineProperty(_assertThisInitialized(c),"renderDropdown",function(){return c.props.portal?_reactDom.default.createPortal(_react.default.createElement(_Dropdown.default,{props:c.props,state:c.state,methods:c.methods}),c.dropdownRoot):_react.default.createElement(_Dropdown.default,{props:c.props,state:c.state,methods:c.methods})}),_defineProperty(_assertThisInitialized(c),"createNew",function(a){var b,d=(b={},b[c.props.labelField]=a,b[c.props.valueField]=a,b);c.addItem(d),c.props.onCreateNew(d),c.setState({search:""})}),c.state={dropdown:!1,values:b.values,search:"",selectBounds:{},cursor:null},c.methods={removeItem:c.removeItem,dropDown:c.dropDown,addItem:c.addItem,setSearch:c.setSearch,getInputSize:c.getInputSize,toggleSelectAll:c.toggleSelectAll,clearAll:c.clearAll,selectAll:c.selectAll,searchResults:c.searchResults,getSelectRef:c.getSelectRef,isSelected:c.isSelected,getSelectBounds:c.getSelectBounds,areAllSelected:c.areAllSelected,handleKeyDown:c.handleKeyDown,activeCursorItem:c.activeCursorItem,createNew:c.createNew,sortBy:c.sortBy,safeString:c.safeString},c.select=_react.default.createRef(),c.dropdownRoot="undefined"!=typeof document&&document.createElement("div"),c}_inheritsLoose(b,a);var c=b.prototype;return c.componentDidMount=function componentDidMount(){this.props.portal&&this.props.portal.appendChild(this.dropdownRoot),window.addEventListener("resize",(0,_util.debounce)(this.updateSelectBounds)),window.addEventListener("scroll",(0,_util.debounce)(this.onScroll)),this.dropDown("close"),this.select&&this.updateSelectBounds()},c.componentDidUpdate=function componentDidUpdate(a,b){!(0,_util.isEqual)(a.values,this.props.values)&&(0,_util.isEqual)(a.values,b.values)&&(this.props.onChange(this.state.values),this.setState({values:this.props.values}),this.updateSelectBounds()),b.values!==this.state.values&&(this.props.onChange(this.state.values),this.updateSelectBounds()),b.search!==this.state.search&&this.updateSelectBounds(),b.values!==this.state.values&&this.props.closeOnSelect&&this.dropDown("close"),a.multi!==this.props.multi&&this.updateSelectBounds(),b.dropdown&&b.dropdown!==this.state.dropdown&&this.onDropdownClose(),b.dropdown||b.dropdown===this.state.dropdown||this.props.onDropdownOpen()},c.componentWillUnmount=function componentWillUnmount(){this.props.portal&&this.props.portal.removeChild(this.dropdownRoot),window.removeEventListener("resize",(0,_util.debounce)(this.updateSelectBounds,this.props.debounceDelay)),window.removeEventListener("scroll",(0,_util.debounce)(this.onScroll,this.props.debounceDelay))},c.render=function render(){var a=this;return _react.default.createElement(_ClickOutside.default,{onClickOutside:function onClickOutside(b){return a.dropDown("close",b)}},_react.default.createElement(ReactDropdownSelect,_extends({onKeyDown:this.handleKeyDown,onClick:function onClick(b){return a.dropDown("open",b)},onFocus:function onFocus(b){return a.dropDown("open",b)},tabIndex:"0",direction:this.props.direction,style:this.props.style,ref:this.select,disabled:this.props.disabled,className:_constants.LIB_NAME+" "+this.props.className,color:this.props.color},this.props.additionalProps),_react.default.createElement(_Content.default,{props:this.props,state:this.state,methods:this.methods}),this.props.name&&_react.default.createElement("input",{name:this.props.name,type:"hidden",value:this.props.values}),this.props.loading&&_react.default.createElement(_Loading.default,{props:this.props}),this.props.clearable&&_react.default.createElement(_Clear.default,{props:this.props,state:this.state,methods:this.methods}),this.props.separator&&_react.default.createElement(_Separator.default,{props:this.props,state:this.state,methods:this.methods}),this.props.dropdownHandle&&_react.default.createElement(_DropdownHandle.default,{onClick:function onClick(){return a.select.current.focus()},props:this.props,state:this.state,methods:this.methods}),this.state.dropdown&&this.renderDropdown()))},b}(_react.Component);exports.Select=Select,Select.defaultProps={addPlaceholder:"",placeholder:"Select...",values:[],options:[],multi:!1,disabled:!1,searchBy:"label",sortBy:null,clearable:!1,searchable:!0,dropdownHandle:!0,separator:!1,keepOpen:void 0,noDataLabel:"No data",createNewLabel:"add {search}",disabledLabel:"disabled",dropdownGap:5,closeOnScroll:!1,debounceDelay:0,labelField:"label",valueField:"value",color:"#0074D9",keepSelectedInList:!0,closeOnSelect:!1,clearOnBlur:!0,clearOnSelect:!0,dropdownPosition:"bottom",dropdownHeight:"300px",autoFocus:!1,portal:null,create:!1,direction:"ltr",name:null,onChange:function onChange(){},onDropdownOpen:function onDropdownOpen(){},onDropdownClose:function onDropdownClose(){},onClearAll:function onClearAll(){},onSelectAll:function onSelectAll(){},onCreateNew:function onCreateNew(){},searchFn:function searchFn(){},handleKeyDownFn:function handleKeyDownFn(){},additionalProps:null};var ReactDropdownSelect=(0,_styledBase.default)("div",{target:"e1gzf2xs0",label:"ReactDropdownSelect"})("position:relative;display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;direction:",function(a){var b=a.direction;return b},";align-items:center;cursor:pointer;min-height:36px;",function(a){var b=a.disabled;return b?"cursor: not-allowed;pointer-events: none;opacity: 0.3;":"pointer-events: all;"},":hover,:focus-within{border-color:",function(a){var b=a.color;return b},";}:focus,:focus-within{outline:0;box-shadow:0 0 0 3px ",function(a){var b=a.color;return(0,_util.hexToRGBA)(b,.2)},";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyZ0JzQyIsImZpbGUiOiIuLi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pO1xuICB9O1xuXG4gIHJlbmRlcigpIHtcbiAgICByZXR1cm4gKFxuICAgICAgPENsaWNrT3V0c2lkZSBvbkNsaWNrT3V0c2lkZT17KGV2ZW50KSA9PiB0aGlzLmRyb3BEb3duKCdjbG9zZScsIGV2ZW50KX0+XG4gICAgICAgIDxSZWFjdERyb3Bkb3duU2VsZWN0XG4gICAgICAgICAgb25LZXlEb3duPXt0aGlzLmhhbmRsZUtleURvd259XG4gICAgICAgICAgb25DbGljaz17KGV2ZW50KSA9PiB0aGlzLmRyb3BEb3duKCdvcGVuJywgZXZlbnQpfVxuICAgICAgICAgIG9uRm9jdXM9eyhldmVudCkgPT4gdGhpcy5kcm9wRG93bignb3BlbicsIGV2ZW50KX1cbiAgICAgICAgICB0YWJJbmRleD1cIjBcIlxuICAgICAgICAgIGRpcmVjdGlvbj17dGhpcy5wcm9wcy5kaXJlY3Rpb259XG4gICAgICAgICAgc3R5bGU9e3RoaXMucHJvcHMuc3R5bGV9XG4gICAgICAgICAgcmVmPXt0aGlzLnNlbGVjdH1cbiAgICAgICAgICBkaXNhYmxlZD17dGhpcy5wcm9wcy5kaXNhYmxlZH1cbiAgICAgICAgICBjbGFzc05hbWU9e2Ake0xJQl9OQU1FfSAke3RoaXMucHJvcHMuY2xhc3NOYW1lfWB9XG4gICAgICAgICAgY29sb3I9e3RoaXMucHJvcHMuY29sb3J9XG4gICAgICAgICAgey4uLnRoaXMucHJvcHMuYWRkaXRpb25hbFByb3BzfT5cbiAgICAgICAgICA8Q29udGVudCBwcm9wcz17dGhpcy5wcm9wc30gc3RhdGU9e3RoaXMuc3RhdGV9IG1ldGhvZHM9e3RoaXMubWV0aG9kc30gLz5cblxuICAgICAgICAgIHt0aGlzLnByb3BzLm5hbWUgJiYgKFxuICAgICAgICAgICAgPGlucHV0IG5hbWU9e3RoaXMucHJvcHMubmFtZX0gdHlwZT1cImhpZGRlblwiIHZhbHVlPXt0aGlzLnByb3BzLnZhbHVlc30gLz5cbiAgICAgICAg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2xvciwgMC4yKX07XG4gIH1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IFNlbGVjdDtcbiJdfQ== */")),_default=Select;exports.default=_default;
{
"name": "react-dropdown-select",
"version": "3.6.2",
"version": "3.6.3",
"description": "Customizable dropdown select for react",

@@ -5,0 +5,0 @@ "main": "dist/react-dropdown-select.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc