/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/react-free-dropdown@1.1.1/dist/react-free-dropdown.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("styled-components")):"function"==typeof define&&define.amd?define(["exports","react","styled-components"],n):n((t=t||self).ReactFreeCustomDropDown={},t.React,t.styled)}(this,(function(t,n,e){"use strict";"default"in n&&n.default;var o="default"in e?e.default:e,r=function(){return r=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},r.apply(this,arguments)};function i(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var l,a,s=e.createGlobalStyle(l||(l=i(['\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tbody{\n\t\tbackground-color: #ffffff;\n\t\tfont-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n\t}\n\ta {\n\t\tcolor: inherit;\n\t\ttext-decoration: none;\n    }\n\tol, ul, li {\n\t\tlist-style: none;\n\t}\n'],['\n\t* {\n\t\tbox-sizing: border-box;\n\t}\n\tbody{\n\t\tbackground-color: #ffffff;\n\t\tfont-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;\n\t}\n\ta {\n\t\tcolor: inherit;\n\t\ttext-decoration: none;\n    }\n\tol, ul, li {\n\t\tlist-style: none;\n\t}\n']))),c={isFocus:!1};function d(t,n){switch(n.type){case a.IS_FOCUS:return r(r({},t),{isFocus:n.isFocus});case a.ON_BLUR:return r(r({},t),{isFocus:!1});default:return t}}!function(t){t.IS_FOCUS="IS_FOCUS",t.ON_BLUR="ON_BLUR"}(a||(a={}));var p=n.createContext(void 0),b=n.createContext(void 0);function u(){var t=n.useContext(p);if(!t)throw new Error("StatusChangeStateContext not found");return t}function g(){var t=n.useContext(b);if(!t)throw new Error("StatusChangeDispatchContext not found");return t}var f,x,h,m,y,v,w,k,S,C,z,O,N,E=function(t){var e=t.children,o=n.useReducer(d,c),r=o[0],i=o[1];return n.createElement(b.Provider,{value:i},n.createElement(p.Provider,{value:r},e))},F=function(t){var e=t.children;return n.createElement(n.Fragment,null,n.createElement(s,null),n.createElement(E,null,e))},R="#1076de",I="rgba(245,245,245,0.8)",U="rgb(220,220,220)",_="rgba(51,51,51,0.8)",B="rgb(0,0,0,0.8)",j="rgb(255,255,255,0.8)",P="#fff",L="#000",V=function(t){return"light"===t},W=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.filter((function(t){return t})).join(" ")},G={Wrapper:o.div(h||(h=i(["\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\t\tpadding: 4px 4px 4px 8px;\n\t\tbox-sizing: border-box;\n\t\t","\n\t\ttransition: color 0.3s;\n\t\t&:hover {\n\t\t\tcolor: ",";\n\t\t}\n\t\tfont-size: 12px;\n\t\twidth: 100%;\n\t\tmin-height: 30px;\n\t\theight: 100%;\n\t\tposition: relative;\n\t\tspan {\n\t\t\twidth: 80%;\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\toverflow-x: hidden;\n\t\t\toverflow-y: initial;\n\t\t\talign-items: center;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t"],["\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\t\tpadding: 4px 4px 4px 8px;\n\t\tbox-sizing: border-box;\n\t\t","\n\t\ttransition: color 0.3s;\n\t\t&:hover {\n\t\t\tcolor: ",";\n\t\t}\n\t\tfont-size: 12px;\n\t\twidth: 100%;\n\t\tmin-height: 30px;\n\t\theight: 100%;\n\t\tposition: relative;\n\t\tspan {\n\t\t\twidth: 80%;\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\toverflow-x: hidden;\n\t\t\toverflow-y: initial;\n\t\t\talign-items: center;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t"])),(function(t){var n=t.mode;return V(n)?e.css(f||(f=i(["\n\t\t\t\t\t\tborder: 1px solid ",";\n\t\t\t\t\t\tbackground: ",";\n\t\t\t\t\t\tcolor: ",";\n\t\t\t\t  "],["\n\t\t\t\t\t\tborder: 1px solid ",";\n\t\t\t\t\t\tbackground: ",";\n\t\t\t\t\t\tcolor: ",";\n\t\t\t\t  "])),U,P,_):e.css(x||(x=i(["\n\t\t\t\t\t\tborder: 1px solid ",";\n\t\t\t\t\t\tbackground: ",";\n\t\t\t\t\t\tcolor: ",";\n\t\t\t\t  "],["\n\t\t\t\t\t\tborder: 1px solid ",";\n\t\t\t\t\t\tbackground: ",";\n\t\t\t\t\t\tcolor: ",";\n\t\t\t\t  "])),B,B,I)}),(function(t){var n=t.mode;return V(n)?L:P})),Icon:o.div(m||(m=i(["\n\t\tposition: absolute;\n\t\tright: 10px;\n\t\ttop: 50%;\n\t\tmargin-top: -6px;\n\t\ttransform: ",";\n\t\timg {\n\t\t\tdisplay: block;\n\t\t\twidth: 12px;\n\t\t\theight: 12px;\n\t\t}\n\t"],["\n\t\tposition: absolute;\n\t\tright: 10px;\n\t\ttop: 50%;\n\t\tmargin-top: -6px;\n\t\ttransform: ",";\n\t\timg {\n\t\t\tdisplay: block;\n\t\t\twidth: 12px;\n\t\t\theight: 12px;\n\t\t}\n\t"])),(function(t){return t.isFocus?"rotate(180deg)":"rotate(0deg)"}))},A=function(t){var e=t.focusStyle,o=t.selectClassName,i=t.selectStyle,l=t.isValue,s=t.mode,c=t.value,d=t.icon,p=t.hiddenIcon,b=u().isFocus,f=g();return n.createElement(G.Wrapper,{className:o||"rfdd-select",style:b&&e?r(r({},i),e):i,onClick:function(){return f({type:a.IS_FOCUS,isFocus:!b})},isValue:l,mode:s,id:"select","data-testid":"select"},n.createElement("span",{"data-testid":"select-text"},c),!p&&n.createElement(G.Icon,{isFocus:b},n.createElement("img",{src:d||"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 24.0.2%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 21.3 21.3' style='enable-background:new 0 0 21.3 21.3%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bdisplay:none%3b%7d .st1%7bfill:%23656565%3b%7d%3c/style%3e%3cg id='%eb%a0%88%ec%9d%b4%ec%96%b4_1' class='st0'%3e %3cimage style='display:inline%3boverflow:visible%3b' width='19' height='21' xlink:href='%e1%84%89%e1%85%b3%e1%84%8f%e1%85%b3%e1%84%85%e1%85%b5%e1%86%ab%e1%84%89%e1%85%a3%e1%86%ba 2020-02-11 %e1%84%8b%e1%85%a9%e1%84%92%e1%85%ae 1.29.38.png' transform='matrix(1 0 0 1 1.6723 -0.3277)'%3e %3c/image%3e%3c/g%3e%3cg id='%eb%a0%88%ec%9d%b4%ec%96%b4_2'%3e %3cpolygon class='st1' points='10.7%2c15.9 1.4%2c6.8 2.7%2c5.5 10.7%2c13.3 18.6%2c5.5 19.9%2c6.8 '/%3e%3c/g%3e%3c/svg%3e",alt:"default arrow icon"})))},D={Wrapper:o.div(y||(y=i(["\n\t\tdisplay: inline-block;\n\t\tposition: relative;\n\t\tbox-sizing: border-box;\n\t\tfont-weight: lighter;\n\t\toutline: none;\n\t\tmin-width: 120px;\n\t\tmin-height: 30px;\n\t\tbackground: white;\n\t"],["\n\t\tdisplay: inline-block;\n\t\tposition: relative;\n\t\tbox-sizing: border-box;\n\t\tfont-weight: lighter;\n\t\toutline: none;\n\t\tmin-width: 120px;\n\t\tmin-height: 30px;\n\t\tbackground: white;\n\t"]))),Ul:o.ul(C||(C=i(["\n\t\tdisplay: block;\n\t\tlist-style: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 100%;\n\t\tz-index: 200;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\t",";\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\toverflow: hidden;\n\t\tbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n\t\ttransition: max-height 0.2s;\n\t\t",";\n\t"],["\n\t\tdisplay: block;\n\t\tlist-style: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 100%;\n\t\tz-index: 200;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\t",";\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\toverflow: hidden;\n\t\tbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n\t\ttransition: max-height 0.2s;\n\t\t",";\n\t"])),(function(t){var n=t.mode;return V(n)?e.css(v||(v=i(["\n\t\t\t\t\tbackground-color: ",";\n\t\t\t\t\tcolor: rgb(100, 100, 100);\n\t\t\t\t\t&::-webkit-scrollbar {\n\t\t\t\t\t\twidth: 10px;\n\t\t\t\t\t\tpadding: 0 2px;\n\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t}\n\t\t\t\t\t&::-webkit-scrollbar-track {\n\t\t\t\t\t\tpadding: 0 2px;\n\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\tbackground-color: rgb(220, 220, 220);\n\t\t\t\t\t}\n\t\t\t\t\t&::-webkit-scrollbar-thumb {\n\t\t\t\t\t\tbackground-color: rgb(190, 190, 190);\n\t\t\t\t\t\twidth: 8px;\n\t\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\tbackground-color: rgb(180, 180, 180);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"],["\n\t\t\t\t\tbackground-color: ",";\n\t\t\t\t\tcolor: rgb(100, 100, 100);\n\t\t\t\t\t&::-webkit-scrollbar {\n\t\t\t\t\t\twidth: 10px;\n\t\t\t\t\t\tpadding: 0 2px;\n\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t}\n\t\t\t\t\t&::-webkit-scrollbar-track {\n\t\t\t\t\t\tpadding: 0 2px;\n\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\tbackground-color: rgb(220, 220, 220);\n\t\t\t\t\t}\n\t\t\t\t\t&::-webkit-scrollbar-thumb {\n\t\t\t\t\t\tbackground-color: rgb(190, 190, 190);\n\t\t\t\t\t\twidth: 8px;\n\t\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\tbackground-color: rgb(180, 180, 180);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"])),j):e.css(w||(w=i(["\n\t\t\t\tbackground-color: ",";\n\t\t\t\tcolor: ",";\n\t\t\t\t&::-webkit-scrollbar {\n\t\t\t\t\twidth: 10px;\n\t\t\t\t\tpadding: 0 2px;\n\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t}\n\t\t\t\t&::-webkit-scrollbar-track {\n\t\t\t\t\tbackground-color: rgb(60, 60, 60);\n\t\t\t\t}\n\t\t\t\t&::-webkit-scrollbar-thumb {\n\t\t\t\t\tbackground-color: rgb(150, 150, 150);\n\t\t\t\t\twidth: 8px;\n\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbackground-color: rgb(180, 180, 180);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"],["\n\t\t\t\tbackground-color: ",";\n\t\t\t\tcolor: ",";\n\t\t\t\t&::-webkit-scrollbar {\n\t\t\t\t\twidth: 10px;\n\t\t\t\t\tpadding: 0 2px;\n\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t}\n\t\t\t\t&::-webkit-scrollbar-track {\n\t\t\t\t\tbackground-color: rgb(60, 60, 60);\n\t\t\t\t}\n\t\t\t\t&::-webkit-scrollbar-thumb {\n\t\t\t\t\tbackground-color: rgb(150, 150, 150);\n\t\t\t\t\twidth: 8px;\n\t\t\t\t\tborder-radius: 10px;\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\tbackground-color: rgb(180, 180, 180);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])),B,P)}),(function(t){var n=t.isFocus,o=t.listStyle;return n?e.css(k||(k=i(["\n\t\t\t\t\t\tmax-height: 100px;\n\t\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\t\t","\n\t\t\t\t  "],["\n\t\t\t\t\t\tmax-height: 100px;\n\t\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\t\t","\n\t\t\t\t  "])),o):e.css(S||(S=i(["\n\t\t\t\t\t\tmax-height: 0;\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t  "],["\n\t\t\t\t\t\tmax-height: 0;\n\t\t\t\t\t\toverflow: hidden;\n\t\t\t\t  "])))}))},M=function(t){var e=t.children,o=t.selectClassName,i=t.optionOnClick,l=t.optionClassName,s=t.className,c=t.style,d=t.focusStyle,p=t.selectStyle,b=t.hoverStyle,f=t.optionStyle,x=t.onChange,h=t.value,m=t.mode,y=void 0===m?"light":m,v=t.icon,w=t.hiddenIcon,k=t.placeholder,S=void 0===k?"":k,C=t.listStyle,z=void 0===C?"":C,O=n.useState(""),N=O[0],E=O[1],F=u().isFocus,R=g(),I=function(t){x&&x(t),R({type:a.ON_BLUR})},U=function(t){E(t),R({type:a.ON_BLUR})};n.useEffect((function(){"string"==typeof h&&E(h)}),[h]);var _=""!==h||""!==N;return n.createElement(D.Wrapper,{tabIndex:0,onBlur:function(){return R({type:a.ON_BLUR})},"data-testid":"rfdd",className:s?W("rfdd",s):"rfdd",style:r({},c)},n.createElement(A,{selectClassName:o,focusStyle:d,selectStyle:p,isValue:_,mode:y,value:N||S,icon:v,hiddenIcon:w}),e&&n.createElement(D.Ul,{isFocus:F,mode:y,id:"list","data-testid":"list",listStyle:z},n.Children.map(e,(function(t,e){return"RfddOption"===t.type.displayName?n.cloneElement(t,{onChange:I,onSelectChange:U,optionClassName:l,optionOnClick:i,index:e,hoverStyle:b,optionStyle:f}):null}))))},q={Wrapper:o.div(N||(N=i(["\n\t\tcursor: pointer;\n\t\tlist-style: none;\n\t\tpadding: 8px;\n\t\tbox-sizing: border-box;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\tfont-size: 12px;\n\t\tline-height: 12px;\n\t\twidth: 100%;\n\t\theight: 30px;\n\t\ttext-align: left;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\t&:hover {\n\t\t\tbackground-color: ",";\n\t\t\tcolor: #ffffff;\n\t\t\t","\n\t\t}\n\t\t","\n\t"],["\n\t\tcursor: pointer;\n\t\tlist-style: none;\n\t\tpadding: 8px;\n\t\tbox-sizing: border-box;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\tfont-size: 12px;\n\t\tline-height: 12px;\n\t\twidth: 100%;\n\t\theight: 30px;\n\t\ttext-align: left;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\t&:hover {\n\t\t\tbackground-color: ",";\n\t\t\tcolor: #ffffff;\n\t\t\t","\n\t\t}\n\t\t","\n\t"])),R,(function(t){var n=t.hoverStyle;return e.css(z||(z=i(["\n\t\t\t\t","\n\t\t\t"],["\n\t\t\t\t","\n\t\t\t"])),n)}),(function(t){var n=t.optionStyle;return e.css(O||(O=i(["\n\t\t\t","\n\t\t"],["\n\t\t\t","\n\t\t"])),n)}))},H=function(t){var e=t.optionClassName,o=t.className,r=t.value,i=t.children,l=t.onChange,a=t.index,s=t.style,c=t.hoverStyle,d=t.optionStyle,p=t.onClick,b=t.optionOnClick,u=t.onSelectChange;return n.createElement(q.Wrapper,{className:o&&e?W(o,e):o||e||"rfdd-option",key:"option"+a,"data-testid":"option"+a,onClick:function(){if(p?p():b&&b(),u){var t="";i?t=String(i):"string"==typeof i&&(t=i),u(t)}var n="";return r?n=r.toString():"string"==typeof i&&(n=i),l&&l(n)},style:s,hoverStyle:c,optionStyle:d},i)};H.displayName="RfddOption",t.Rfdd=function(t){return n.createElement(F,null,n.createElement(M,r({},t),t.children))},t.RfddOption=H,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/6fe6409e96ff357628d60c8312014d2308c1d37165beb9dba51de4cd49887804.map