text: (self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[4715],{14715:(e,n,t)=>{"use strict";e.exports=t(83885)},83885:function(e,n,t){var r,o,i,a,u;e.exports=(r=t(32735),o=t(19615),i=t(12788),a=t(94009),u=t(60672),function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=100)}([function(e,n,t){e.exports=t(17)()},function(e,n){e.exports=r},function(e,n){e.exports=o},function(e,n){e.exports=function(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){"use strict";t.r(n),t.d(n,"Box",(function(){return M}));var r,o=t(3),i=t.n(o),a=t(0),u=t.n(a),c=t(2),l=t.n(c),s=t(7),d={color:!0},M=l.a.div.withConfig({shouldForwardProp:function(e,n){return!d[e]&&n(e)}})(r||(r=i()(["\n  // Font\n  font-size: ",";\n\n  // Colors\n  background: ",";\n  color: ",";\n\n  // Spaces\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n  ","\n\n  // Responsive hiding\n  ","\n  ","\n  \n\n  // Borders\n  border-radius: ",";\n  border-style: ",";\n  border-width: ",";\n  border-color: ",";\n  border: ",";\n\n  // Shadows\n  box-shadow: ",";\n\n  // Handlers\n  pointer-events: ",";\n  &:hover {\n    ","\n  }\n\n  // Display\n  display: ",";\n\n  // Position\n  position: ",";\n  left: ",";\n  right: ",";\n  top: ",";\n  bottom: ",";\n  z-index: ",";\n  overflow: ",";\n  cursor: ",";\n\n  // Size\n  width: ",";\n  max-width: ",";\n  min-width: ",";\n  height: ",";\n  max-height: ",";\n  min-height: ",";\n\n  // Animation\n  transition: ",";\n  transform: ",";\n  animation: ",";\n\n  //Flexbox children props\n  flex-shrink: ",";\n  flex-grow: ",";\n  flex-basis: ",";\n  flex: ",";\n\n  // Text\n  text-align: ",";\n  text-transform: ",";\n  line-height: ",";\n\n  // Cursor\n  cursor: ",";\n"])),(function(e){var n=e.fontSize;return e.theme.fontSizes[n]||n}),(function(e){var n=e.theme,t=e.background;return n.colors[t]}),(function(e){var n=e.theme,t=e.color;return n.colors[t]}),(function(e){var n=e.theme,t=e.padding;return Object(s.a)("padding",t,n)}),(function(e){var n=e.theme,t=e.paddingTop;return Object(s.a)("padding-top",t,n)}),(function(e){var n=e.theme,t=e.paddingRight;return Object(s.a)("padding-right",t,n)}),(function(e){var n=e.theme,t=e.paddingBottom;return Object(s.a)("padding-bottom",t,n)}),(function(e){var n=e.theme,t=e.paddingLeft;return Object(s.a)("padding-left",t,n)}),(function(e){var n=e.theme,t=e.marginLeft;return Object(s.a)("margin-left",t,n)}),(function(e){var n=e.theme,t=e.marginRight;return Object(s.a)("margin-right",t,n)}),(function(e){var n=e.theme,t=e.marginTop;return Object(s.a)("margin-top",t,n)}),(function(e){var n=e.theme,t=e.marginBottom;return Object(s.a)("margin-bottom",t,n)}),(function(e){var n=e.theme;return e.hiddenS?"".concat(n.mediaQueries.tablet," { display: none; }"):void 0}),(function(e){var n=e.theme;return e.hiddenXS?"".concat(n.mediaQueries.mobile," { display: none; }"):void 0}),(function(e){var n=e.theme,t=e.hasRadius,r=e.borderRadius;return t?n.borderRadius:r}),(function(e){return e.borderStyle}),(function(e){return e.borderWidth}),(function(e){var n=e.borderColor;return e.theme.colors[n]}),(function(e){var n=e.theme,t=e.borderColor,r=e.borderStyle,o=e.borderWidth;if(t&&!r&&!o)return"1px solid ".concat(n.colors[t])}),(function(e){var n=e.theme,t=e.shadow;return n.shadows[t]}),(function(e){return e.pointerEvents}),(function(e){var n=e._hover,t=e.theme;return n?n(t):void 0}),(function(e){return e.display}),(function(e){return e.position}),(function(e){var n=e.left;return e.theme.spaces[n]||n}),(function(e){var n=e.right;return e.theme.spaces[n]||n}),(function(e){var n=e.top;return e.theme.spaces[n]||n}),(function(e){var n=e.bottom;return e.theme.spaces[n]||n}),(function(e){return e.zIndex}),(function(e){return e.overflow}),(function(e){return e.cursor}),(function(e){var n=e.width;return e.theme.spaces[n]||n}),(function(e){var n=e.maxWidth;return e.theme.spaces[n]||n}),(function(e){var n=e.minWidth;return e.theme.spaces[n]||n}),(function(e){var n=e.height;return e.theme.spaces[n]||n}),(function(e){var n=e.maxHeight;return e.theme.spaces[n]||n}),(function(e){var n=e.minHeight;return e.theme.spaces[n]||n}),(function(e){return e.transition}),(function(e){return e.transform}),(function(e){return e.animation}),(function(e){return e.shrink}),(function(e){return e.grow}),(function(e){return e.basis}),(function(e){return e.flex}),(function(e){return e.textAlign}),(function(e){return e.textTransform}),(function(e){return e.lineHeight}),(function(e){return e.cursor}));M.displayName="Box",M.defaultProps={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},M.propTypes={_hover:u.a.func,background:u.a.string,basis:u.a.oneOfType([u.a.string,u.a.string]),borderColor:u.a.string,children:u.a.oneOfType([u.a.node,u.a.string]),color:u.a.string,flex:u.a.oneOfType([u.a.string,u.a.string]),grow:u.a.oneOfType([u.a.string,u.a.string]),hasRadius:u.a.bool,hiddenS:u.a.bool,hiddenXS:u.a.bool,padding:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingBottom:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingLeft:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingRight:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingTop:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),shadow:u.a.string,shrink:u.a.oneOfType([u.a.string,u.a.string])}},function(e,n){function t(){return e.exports=t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){var r=t(22);e.exports=function(e,n){if(null==e)return{};var t,o,i=r(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){"use strict";var r=t(10),o=t.n(r),i=t(13),a=t.n(i);n.a=function(e,n,t){var r=n;if(Array.isArray(n)||"object"!==a()(n)||(r=[null==n?void 0:n.desktop,null==n?void 0:n.tablet,null==n?void 0:n.mobile]),void 0!==r){if(Array.isArray(r)){var i=r,u=o()(i,3),c=u[0],l=u[1],s=u[2],d="".concat(e,": ").concat(t.spaces[c],";");return void 0!==l&&(d+="".concat(t.mediaQueries.tablet,"{\n          ").concat(e,": ").concat(t.spaces[l],";\n        }")),void 0!==s&&(d+="".concat(t.mediaQueries.mobile,"{\n          ").concat(e,": ").concat(t.spaces[s],";\n        }")),d}var M=t.spaces[r]||r;return"".concat(e,": ").concat(M,";")}}},function(e,n,t){"use strict";t.r(n),t.d(n,"Typography",(function(){return d}));var r,o=t(3),i=t.n(o),a=t(0),u=t.n(a),c=t(2),l=["alpha","beta","delta","epsilon","omega","pi","sigma"],s={fontSize:!0,fontWeight:!0},d=t.n(c).a.span.withConfig({shouldForwardProp:function(e,n){return!s[e]&&n(e)}})(r||(r=i()(["\n  font-weight: ",";\n  font-size: ",";\n  line-height: ",";\n  color: ",";\n  text-transform: ",";\n  ","\n  ","\n"])),(function(e){var n=e.theme,t=e.fontWeight;return n.fontWeights[t]}),(function(e){var n=e.theme,t=e.fontSize;return n.fontSizes[t]}),(function(e){var n=e.theme,t=e.lineHeight;return n.lineHeights[t]}),(function(e){var n=e.theme,t=e.textColor;return n.colors[t||"neutral800"]}),(function(e){return e.textTransform}),(function(e){return e.ellipsis&&"\n    display: block;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  "}),(function(e){var n=e.variant,t=e.theme;switch(n){case"alpha":return"\n        font-weight: ".concat(t.fontWeights.bold,";\n        font-size: ").concat(t.fontSizes[5],";\n        line-height: ").concat(t.lineHeights[2],";\n      ");case"beta":return"\n        font-weight: ".concat(t.fontWeights.bold,";\n        font-size: ").concat(t.fontSizes[4],";\n        line-height: ").concat(t.lineHeights[1],";\n      ");case"delta":return"\n        font-weight: ".concat(t.fontWeights.semiBold,";\n        font-size: ").concat(t.fontSizes[3],";\n        line-height: ").concat(t.lineHeights[2],";\n      ");case"epsilon":return"\n        font-size: ".concat(t.fontSizes[3],";\n        line-height: ").concat(t.lineHeights[6],";\n      ");case"omega":return"\n        font-size: ".concat(t.fontSizes[2],";\n        line-height: ").concat(t.lineHeights[4],";\n      ");case"pi":return"\n        font-size: ".concat(t.fontSizes[1],";\n        line-height: ").concat(t.lineHeights[3],";\n      ");case"sigma":return"\n        font-weight: ".concat(t.fontWeights.bold,";\n        font-size: ").concat(t.fontSizes[0],";\n        line-height: ").concat(t.lineHeights[5],";\n        text-transform: uppercase;\n      ");default:return"\n        font-size: ".concat(t.fontSizes[2],";\n      ")}}));d.defaultProps={fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},d.propTypes={fontSize:u.a.oneOfType([u.a.number,u.a.string]),fontWeight:u.a.string,lineHeight:u.a.oneOfType([u.a.number,u.a.string]),textColor:u.a.string,textTransform:u.a.string,variant:u.a.oneOf(l)}},function(e,n,t){"use strict";t.r(n),t.d(n,"Flex",(function(){return M}));var r,o=t(3),i=t.n(o),a=t(0),u=t.n(a),c=t(2),l=t.n(c),s=t(4),d={direction:!0},M=l()(s.Box).withConfig({shouldForwardProp:function(e,n){return!d[e]&&n(e)}})(r||(r=i()(["\n  display: ",";\n  flex-direction: ",";\n  justify-content: ",";\n  align-items: ",";\n  flex-wrap: ",";\n"])),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return e.direction}),(function(e){return e.justifyContent}),(function(e){return e.alignItems}),(function(e){return e.wrap}));M.defaultProps={alignItems:"center",basis:void 0,direction:"row",inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},M.propTypes={alignItems:u.a.string,basis:u.a.oneOfType([u.a.string,u.a.number]),direction:u.a.string,inline:u.a.bool,justifyContent:u.a.string,reverse:u.a.bool,wrap:u.a.string}},function(e,n,t){var r=t(23),o=t(24),i=t(20),a=t(25);e.exports=function(e,n){return r(e)||o(e,n)||i(e,n)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));var r={DOWN:"ArrowDown",UP:"ArrowUp",RIGHT:"ArrowRight",LEFT:"ArrowLeft",ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",END:"End",HOME:"Home",DELETE:"Delete",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",CLEAR:"Clear"}},function(e,n,t){"use strict";t.d(n,"a",(function(){return o})),t.d(n,"b",(function(){return i}));var r=t(1),o=Object(r.createContext)({error:void 0,hint:void 0,name:"",id:""}),i=function(){return Object(r.useContext)(o)}},function(e,n){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){"use strict";t.d(n,"a",(function(){return i}));var r=t(1),o=0,i=function(e,n){return Object(r.useRef)(n||"".concat(e,"-").concat(++o)).current}},function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var r=function(e){return function(n){var t=n.theme,r=n.size;return t.sizes[e][r]}},o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"&";return function(n){var t=n.theme,r=n.hasError;return"\n      outline: none;\n      box-shadow: 0;\n      transition-property: border-color, box-shadow, fill;\n      transition-duration: 0.2s;\n\n      ".concat(e,":focus-within {\n        border: 1px solid ").concat(r?t.colors.danger600:t.colors.primary600,";\n        box-shadow: ").concat(r?t.colors.danger600:t.colors.primary600," 0px 0px 0px 2px;\n      }\n    ")}},i=function(e){var n=e.theme;return"\n  position: relative;\n  outline: none;\n  \n  &:after {\n    transition-property: all;\n    transition-duration: 0.2s;\n    border-radius: 8px;\n    content: '';\n    position: absolute;\n    top: -4px;\n    bottom: -4px;\n    left: -4px;\n    right: -4px;\n    border: 2px solid transparent;\n  }\n\n  &:focus-visible {\n    outline: none;\n    &:after {\n      border-radius: 8px;\n      content: '';\n      position: absolute;\n      top: -5px;\n      bottom: -5px;\n      left: -5px;\n      right: -5px;\n      border: 2px solid ".concat(n.colors.primary600,";\n    }\n  }\n")}},function(e,n,t){"use strict";t.r(n),t.d(n,"Field",(function(){return M})),t.d(n,"FieldLabel",(function(){return m})),t.d(n,"InputWrapper",(function(){return x.b})),t.d(n,"FieldInput",(function(){return x.a})),t.d(n,"FieldHint",(function(){return T})),t.d(n,"FieldError",(function(){return I})),t.d(n,"FieldContext",(function(){return l.a})),t.d(n,"useField",(function(){return l.b})),t.d(n,"FieldAction",(function(){return A}));var r=t(6),o=t.n(r),i=t(1),a=t.n(i),u=t(0),c=t.n(u),l=t(12),s=t(14),d=["children","name","error","hint","id"],M=function(e){var n=e.children,t=e.name,r=e.error,i=e.hint,u=e.id,c=o()(e,d),M=Object(s.a)("field",u);return a.a.createElement("div",c,a.a.createElement(l.a.Provider,{value:{name:t,id:M,error:r,hint:i}},n))};M.defaultProps={error:void 0,hint:void 0,id:void 0,name:void 0},M.propTypes={children:c.a.node.isRequired,error:c.a.string,hint:c.a.string,id:c.a.oneOfType([c.a.string,c.a.number]),name:c.a.string};var f,g=t(5),p=t.n(g),h=t(3),N=t.n(h),j=t(2),y=t.n(j),b=t(8),z=["children","required"],D=y()(b.Typography)(f||(f=N()(["\n  line-height: 0;\n"]))),m=function(e){var n=e.children,t=e.required,r=o()(e,z),i=Object(l.b)().id;return a.a.createElement(b.Typography,p()({variant:"pi",textColor:"neutral800",htmlFor:i,fontWeight:"bold",as:"label",required:t},r),n,t&&a.a.createElement(D,{textColor:"danger600"},"*"))};m.defaultProps={required:!1},m.propTypes={children:c.a.node.isRequired,required:c.a.bool};var O,x=t(31),T=function(){var e=Object(l.b)(),n=e.id,t=e.hint,r=e.error;return!t||r?null:a.a.createElement(b.Typography,{variant:"pi",as:"p",id:"".concat(n,"-hint"),textColor:"neutral600"},t)},I=function(){var e=Object(l.b)(),n=e.id,t=e.error;return t?a.a.createElement(b.Typography,{variant:"pi",as:"p",id:"".concat(n,"-error"),textColor:"danger600","data-strapi-field-error":!0},t):null},v=["label","children"],w=y.a.button(O||(O=N()(["\n  border: none;\n  background: transparent;\n  // TODO: Make sure to use the theme when it's ready\n  font-size: 1.6rem;\n  width: auto;\n  padding: 0;\n  display: flex;\n  align-items: center;\n"]))),A=function(e){var n=e.label,t=e.children,r=o()(e,v);return a.a.createElement(w,p()({"aria-label":n,type:"button"},r),t)};A.propTypes={children:c.a.node.isRequired,label:c.a.string.isRequired}},function(e,n,t){"use strict";var r=t(18);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},function(e,n,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n){e.exports=function(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){var r=t(19);e.exports=function(e,n){if(e){if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,n):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){"use strict";t.r(n),t.d(n,"VisuallyHidden",(function(){return u}));var r,o=t(3),i=t.n(o),a=t(2),u=t.n(a).a.div(r||(r=i()(["\n  border: 0;\n  clip: rect(0 0 0 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n"])))},function(e,n){e.exports=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n){e.exports=function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw o}}return i}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,n,t){"use strict";t.r(n),t.d(n,"Stack",(function(){return m}));var r,o,i=t(5),a=t.n(i),u=t(6),c=t.n(u),l=t(3),s=t.n(l),d=t(1),M=t.n(d),f=t(0),g=t.n(f),p=t(2),h=t.n(p),N=t(4),j=t(9),y=["horizontal","size"],b={size:!0},z=h()(N.Box).withConfig({shouldForwardProp:function(e,n){return!b[e]&&n(e)}})(r||(r=s()(["\n  display: flex;\n  flex-direction: column;\n\n  & > * {\n    margin-top: 0;\n    margin-bottom: 0;\n  }\n\n  & > * + * {\n    margin-top: ",";\n  }\n"])),(function(e){var n=e.theme,t=e.size;return n.spaces[t]})),D=h()(j.Flex).withConfig({shouldForwardProp:function(e,n){return!b[e]&&n(e)}})(o||(o=s()(["\n  & > * {\n    margin-left: 0;\n    margin-right: 0;\n  }\n\n  & > * + * {\n    margin-left: ",";\n  }\n"])),(function(e){var n=e.theme,t=e.size;return n.spaces[t]})),m=Object(d.forwardRef)((function(e,n){var t=e.horizontal,r=e.size,o=c()(e,y);return t?M.a.createElement(D,a()({ref:n,size:r},o)):M.a.createElement(z,a()({ref:n,size:r},o))}));m.displayName="Stack",m.defaultProps={horizontal:!1},m.propTypes={horizontal:g.a.bool,size:g.a.number.isRequired}},function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));var r={input:{S:"".concat(2,"rem"),M:"".concat(2.5,"rem")},accordions:{S:"".concat(3,"rem"),M:"".concat(5.5,"rem")}}},,function(e,n,t){"use strict";t.r(n),t.d(n,"Portal",(function(){return u}));var r=t(10),o=t.n(r),i=t(1),a=t(32),u=function(e){var n=e.children,t=Object(i.useRef)(null),r=Object(i.useState)(!1),u=o()(r,2),c=u[0],l=u[1];return Object(i.useLayoutEffect)((function(){return t.current=document.createElement("div"),t.current.setAttribute("data-react-portal","true"),document.body.appendChild(t.current),l(!0),function(){var e;null===(e=t.current)||void 0===e||e.remove()}}),[]),c&&t.current?Object(a.createPortal)(n,t.current):null}},,function(e,n,t){"use strict";t.d(n,"b",(function(){return O})),t.d(n,"a",(function(){return x}));var r,o,i=t(5),a=t.n(i),u=t(6),c=t.n(u),l=t(3),s=t.n(l),d=t(1),M=t.n(d),f=t(2),g=t.n(f),p=t(0),h=t.n(p),N=t(27),j=t(15),y=t(12),b=t(9),z=t(4),D=["endAction","startAction","disabled","onChange","size"],m=g.a.input(r||(r=s()(["\n  border: none;\n  border-radius: ",";\n  padding-left: ",";\n  padding-right: ",";\n  cursor: ",";\n\n  color: ",";\n  font-weight: 400;\n  // TODO: Make sure to use the theme when it's ready\n  font-size: ","rem;\n  display: block;\n  width: 100%;\n\n  ::placeholder {\n    color: ",";\n    opacity: 1;\n  }\n\n  &[aria-disabled='true'] {\n    background: inherit;\n    color: inherit;\n  }\n\n  //focus managed by InputWrapper\n  &:focus {\n    outline: none;\n    box-shadow: none;\n  }\n"])),(function(e){return e.theme.borderRadius}),(function(e){var n=e.theme;return e.hasLeftAction?0:n.spaces[4]}),(function(e){var n=e.theme;return e.hasRightAction?0:n.spaces[4]}),(function(e){return e["aria-disabled"]?"not-allowed":void 0}),(function(e){return e.theme.colors.neutral800}),.875,(function(e){return e.theme.colors.neutral500})),O=g()(b.Flex)(o||(o=s()(["\n  border: 1px solid ",";\n  border-radius: ",";\n  background: ",";\n  height: ",";\n\n  ","\n\n  ","\n"])),(function(e){var n=e.theme;return e.hasError?n.colors.danger600:n.colors.neutral200}),(function(e){return e.theme.borderRadius}),(function(e){return e.theme.colors.neutral0}),Object(j.b)("input"),Object(j.c)(),(function(e){var n=e.theme;return e.disabled?"\n    color: ".concat(n.colors.neutral600,";\n    background: ").concat(n.colors.neutral150,";\n  \n  "):void 0})),x=Object(d.forwardRef)((function(e,n){var t,r=e.endAction,o=e.startAction,i=e.disabled,u=e.onChange,l=e.size,s=c()(e,D),d=Object(y.b)(),f=d.id,g=d.error,p=d.hint,h=d.name;g?t="".concat(f,"-error"):p&&(t="".concat(f,"-hint"));var N=Boolean(g);return M.a.createElement(O,{size:l,justifyContent:"space-between",hasError:N,disabled:i},o&&M.a.createElement(z.Box,{paddingLeft:3,paddingRight:2},o),M.a.createElement(m,a()({id:f,name:h,ref:n,"aria-describedby":t,"aria-invalid":N,"aria-disabled":i,hasLeftAction:Boolean(o),hasRightAction:Boolean(r),onChange:function(e){i||u(e)}},s)),r&&M.a.createElement(z.Box,{paddingLeft:2,paddingRight:3},r))}));x.displayName="FieldInput",x.defaultProps={disabled:!1,endAction:void 0,size:"M",startAction:void 0,onChange:function(){}},x.propTypes={disabled:h.a.bool,endAction:h.a.element,onChange:h.a.func,size:h.a.oneOf(Object.keys(N.a.input)),startAction:h.a.element}},function(e,n){e.exports=i},function(e,n){e.exports=a},function(e,n){e.exports=u},,,function(e,n){e.exports=function(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e},e.exports.default=e.exports,e.exports.__esModule=!0},,,function(e,n,t){"use strict";t.r(n),t.d(n,"position",(function(){return m})),t.d(n,"Popover",(function(){return I}));var r,o,i=t(5),a=t.n(i),u=t(10),c=t.n(u),l=t(6),s=t.n(l),d=t(3),M=t.n(d),f=t(1),g=t.n(f),p=t(0),h=t.n(p),N=t(2),j=t.n(N),y=t(4),b=t(29),z=t(47),D=["source","children","spacing","fullWidth","onReachEnd","intersectionId","centered"],m=function(e,n,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=e.getBoundingClientRect(),a=i.top+i.height+window.pageYOffset+o,u=i.left+window.pageXOffset;if(!n)return{left:u,top:a,width:t?i.width:void 0};var c=n.getBoundingClientRect();if(r){var l=10,s=c.width+l,d=(i.width-s)/2;u=i.left+d+window.pageXOffset}c.left<0?u=i.left+window.pageXOffset:c.left+c.width>window.innerWidth&&(u=window.innerWidth-c.width-20);var M=window.innerHeight+window.pageYOffset;if(a+c.height+o>M){var f=10;a=window.pageYOffset+i.top-c.height-f-o}return{left:u,top:a,width:t?i.width:void 0}},O=j()(y.Box)(r||(r=M()(["\n  box-shadow: ",";\n  position: absolute;\n  z-index: 4;\n  border: 1px solid ",";\n  background: ",";\n"])),(function(e){return e.theme.shadows.filterShadow}),(function(e){return e.theme.colors.neutral150}),(function(e){return e.theme.colors.neutral0})),x=j()(y.Box)(o||(o=M()(["\n  // 16 is base base size, 3 is the factor to get closer to 40px and 5 is the number of elements visible in the list\n  max-height: ","rem;\n  overflow-y: auto;\n  overflow-x: hidden;\n\n  &::-webkit-scrollbar {\n    -webkit-appearance: none;\n    width: 4px;\n  }\n\n  &::-webkit-scrollbar-track {\n    background: ",";\n  }\n\n  &::-webkit-scrollbar-thumb {\n    background: ",";\n    border-radius: ",";\n    margin-right: 10px;\n  }\n"])),15,(function(e){return e.theme.colors.neutral0}),(function(e){return e.theme.colors.neutral150}),(function(e){return e.theme.borderRadius})),T=function(e){var n,t,r,o,i,u,l=e.source,d=e.children,M=e.spacing,p=e.fullWidth,h=e.onReachEnd,N=e.intersectionId,j=e.centered,y=s()(e,D),b=Object(f.useRef)(null),T=Object(f.useState)(m(l.current,b.current,p,j,M)),I=c()(T,2),v=I[0],w=v.left,A=v.top,E=v.width,L=I[1];Object(z.a)(l,(function(){return L(m(l.current,b.current,p,j,M))})),n=b,t=h,r={selectorToWatch:"#".concat(N),skipWhen:!N||!h},o=r.selectorToWatch,i=r.skipWhen,u=void 0!==i&&i,Object(f.useEffect)((function(){if(!u){var e={root:n.current,rootMargin:"0px",threshold:1},r=new IntersectionObserver((function(e,r){e.forEach((function(e){e.isIntersecting&&n.current.scrollHeight>n.current.clientHeight&&t(e)}))}),e),i=n.current.querySelector(o);return r.observe(i),function(){r.disconnect()}}}),[u,t,o]);var C={left:"".concat(w,"px"),top:"".concat(A,"px"),width:E?"".concat(E,"px"):void 0};return g.a.createElement(O,{style:C,hasRadius:!0,background:"neutral0",padding:1},g.a.createElement(x,a()({ref:b},y),d,N&&h&&g.a.createElement("div",{id:N})))},I=function(e){return g.a.createElement(b.Portal,null,g.a.createElement(T,e))};T.defaultProps={fullWidth:!1,intersectionId:void 0,onReachEnd:void 0,centered:!1},T.propTypes={centered:h.a.bool,children:h.a.node.isRequired,fullWidth:h.a.bool,intersectionId:h.a.string,onReachEnd:h.a.func,source:h.a.shape({current:h.a.instanceOf(Element)}).isRequired,spacing:h.a.number}},,,,,,,function(e,n,t){"use strict";t.d(n,"a",(function(){return o}));var r=t(1),o=function(e,n){Object(r.useEffect)((function(){var t=new ResizeObserver(n);return t.observe(e.current),function(){t.disconnect()}}),[])}},,,function(e,n,t){"use strict";t.d(n,"c",(function(){return f})),t.d(n,"b",(function(){return g})),t.d(n,"a",(function(){return p}));var r,o,i,a=t(3),u=t.n(a),c=t(2),l=t.n(c),s=t(4),d=t(9),M=t(15),f=l()(d.Flex)(r||(r=u()(["\n  position: relative;\n  border: 1px solid ",";\n  padding-right: ",";\n  border-radius: ",";\n  background: ",";\n  overflow: hidden;\n  min-height: ",";\n\n  ","\n\n  ","\n"])),(function(e){var n=e.theme;return e.hasError?n.colors.danger600:n.colors.neutral200}),(function(e){return e.theme.spaces[3]}),(function(e){return e.theme.borderRadius}),(function(e){return e.theme.colors.neutral0}),Object(M.b)("input"),(function(e){var n=e.theme;return e.disabled?"\n    color: ".concat(n.colors.neutral600,";\n    background: ").concat(n.colors.neutral150,";\n  "):void 0}),Object(M.c)()),g=l()(s.Box)(o||(o=u()(["\n  background: transparent;\n  border: none;\n  position: relative;\n  z-index: 1;\n\n  svg {\n    height: ","rem;\n    width: ","rem;\n  }\n\n  svg path {\n    fill: ",";\n  }\n"])),11/16,11/16,(function(e){return e.theme.colors.neutral600})),p=l()(g)(i||(i=u()(["\n  display: flex;\n  background: none;\n  border: none;\n  cursor: ",";\n\n  svg {\n    width: ","rem;\n  }\n"])),(function(e){return e.disabled?"not-allowed":void 0}),6/16)},,,,,,,,,,,,,,,,,function(e,n,t){"use strict";function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function o(e,n){return(!n||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,n){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var t=getComputedStyle(e,null);return o(t.overflowY,n)||o(t.overflowX,n)||function(e){var n=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!n&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}(e)}return!1}function a(e,n,t,r,o,i,a,u){return i<e&&a>n||i>e&&a<n?0:i<=e&&u<=t||a>=n&&u>=t?i-e-r:a>n&&u<t||i<e&&u>t?a-n+o:0}n.a=function(e,n){var t=window,o=n.scrollMode,u=n.block,c=n.inline,l=n.boundary,s=n.skipOverflowHiddenElements,d="function"==typeof l?l:function(e){return e!==l};if(!r(e))throw new TypeError("Invalid target");for(var M=document.scrollingElement||document.documentElement,f=[],g=e;r(g)&&d(g);){if((g=g.parentElement)===M){f.push(g);break}null!=g&&g===document.body&&i(g)&&!i(document.documentElement)||null!=g&&i(g,s)&&f.push(g)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,h=t.visualViewport?t.visualViewport.height:innerHeight,N=window.scrollX||pageXOffset,j=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,z=y.width,D=y.top,m=y.right,O=y.bottom,x=y.left,T="start"===u||"nearest"===u?D:"end"===u?O:D+b/2,I="center"===c?x+z/2:"end"===c?m:x,v=[],w=0;w<f.length;w++){var A=f[w],E=A.getBoundingClientRect(),L=E.height,C=E.width,S=E.top,k=E.right,Q=E.bottom,U=E.left;if("if-needed"===o&&D>=0&&x>=0&&O<=h&&m<=p&&D>=S&&O<=Q&&x>=U&&m<=k)return v;var Y=getComputedStyle(A),R=parseInt(Y.borderLeftWidth,10),P=parseInt(Y.borderTopWidth,10),_=parseInt(Y.borderRightWidth,10),W=parseInt(Y.borderBottomWidth,10),H=0,B=0,F="offsetWidth"in A?A.offsetWidth-A.clientWidth-R-_:0,q="offsetHeight"in A?A.offsetHeight-A.clientHeight-P-W:0;if(M===A)H="start"===u?T:"end"===u?T-h:"nearest"===u?a(j,j+h,h,P,W,j+T,j+T+b,b):T-h/2,B="start"===c?I:"center"===c?I-p/2:"end"===c?I-p:a(N,N+p,p,R,_,N+I,N+I+z,z),H=Math.max(0,H+j),B=Math.max(0,B+N);else{H="start"===u?T-S-P:"end"===u?T-Q+W+q:"nearest"===u?a(S,Q,L,P,W+q,T,T+b,b):T-(S+L/2)+q/2,B="start"===c?I-U-R:"center"===c?I-(U+C/2)+F/2:"end"===c?I-k+_+F:a(U,k,C,R,_+F,I,I+z,z);var V=A.scrollLeft,Z=A.scrollTop;T+=Z-(H=Math.max(0,Math.min(Z+H,A.scrollHeight-L+q))),I+=V-(B=Math.max(0,Math.min(V+B,A.scrollWidth-C+F)))}v.push({el:A,top:H,left:B})}return v}},,,,,,,,,,function(e,n,t){"use strict";t.d(n,"a",(function(){return z}));var r,o,i=t(5),a=t.n(i),u=t(6),c=t.n(u),l=t(3),s=t.n(l),d=t(1),M=t.n(d),f=t(0),g=t.n(f),p=t(2),h=t.n(p),N=t(21),j=["children","small"],y=Object(p.keyframes)(r||(r=s()(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(359deg);\n  }\n"]))),b=h.a.img(o||(o=s()(["\n  animation: "," 1s infinite linear;\n  ","\n"])),y,(function(e){return e.small&&"width: 25px; height: 25px;"})),z=Object(d.forwardRef)((function(e,n){var t=e.children,r=e.small,o=c()(e,j);return M.a.createElement("div",a()({role:"alert","aria-live":"assertive",ref:n},o),M.a.createElement(N.VisuallyHidden,null,t),M.a.createElement(b,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjMiIGhlaWdodD0iNjMiIHZpZXdCb3g9IjAgMCA2MyA2MyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQyLjU1NjMgMTEuOTgxNkMzOS40ODQgMTAuMzA3MSAzNS44NTc1IDkuMjkwOTcgMzIuMzM1NCA5LjEzNTIxQzI4LjY0NDMgOC45Mjg4OCAyNC44Mjk1IDkuNzIzMTggMjEuMzMzNiAxMS40MTI5QzIwLjkxMjMgMTEuNTkwMSAyMC41Mzc2IDExLjgxMDEgMjAuMTcyMiAxMi4wMjQ5TDIwLjAxMDggMTIuMTE3OUMxOS44Nzc0IDEyLjE5NTEgMTkuNzQ0MSAxMi4yNzI0IDE5LjYwOCAxMi4zNTM2QzE5LjMyNTMgMTIuNTE0NiAxOS4wNDkyIDEyLjY3NDQgMTguNzU0NCAxMi44NzkyQzE4LjU0NjMgMTMuMDMyOSAxOC4zMzk1IDEzLjE3NTkgMTguMTMwMSAxMy4zMjNDMTcuNTY1OCAxMy43MjA4IDE2Ljk4NjggMTQuMTMxNyAxNi40OTgzIDE0LjU5NzlDMTQuODQ3NiAxNS45NTI0IDEzLjU1NzEgMTcuNjA3NSAxMi42MDcxIDE4LjkyMTRDMTAuNDM2NSAyMi4xNTY2IDkuMDg2MjIgMjUuOTU2NyA4LjgwNzAyIDI5LjYxNDNMOC43NzY0IDMwLjE1ODhDOC43MzMyOCAzMC45MTk2IDguNjg0NzYgMzEuNzA1NyA4Ljc1Mz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C4wMDYzIDM4LjAxNzYgNTQuMTYwNCAzNy42MjU3IDU0LjIyMjcgMzcuMjA2NEw1NC41MjE3IDM1LjI1NzRDNTQuNTUxNCAzNS4wNzU2IDU0LjU3MiAzNC44MyA1NC41ODQ2IDM0LjU3OTFMNTQuNjAyOCAzNC4yMzM4QzU0LjYwOTggMzQuMDU5OCA1NC42MjIzIDMzLjg3NzkgNTQuNjM0NyAzMy42Nzg4QzU0LjY3MzQgMzMuMTA1MiA1NC43MTYzIDMyLjQ0NzkgNTQuNjYxOSAzMS44MDU4TDU0LjU4NjcgMzAuNDI4OUM1NC41NjIyIDMwLjA5NTIgNTQuNTA5NyAyOS43NiA1NC40NTU5IDI5LjQxODFDNTQuNDMxIDI5LjI1NzIgNTQuNDA0OCAyOS4wODk2IDU0LjM4MjYgMjguOTA3NEw1NC4yNjg3IDI4LjEwNEM1NC4yMzMyIDI3LjkyNDQgNTQuMTgwNCAyNy43MjczIDU0LjEzMjkgMjcuNTM5Nkw1NC4wNjQzIDI3LjI0NTRDNTQuMDE5NSAyNy4wNzEgNTMuOTc3MyAyNi44OTI3IDUzLjkzMzggMjYuNzA3NkM1My44NDU1IDI2LjMzMDkgNTMuNzQ3OSAyNS45NDIyIDUzLjYxMyAyNS41NTcxQzUyLjg0IDIzLjAyOTIgNTEuNTM4MyAyMC41MTk0IDQ5LjgzMzggMTguMjc5OUM0Ny44NTQ0IDE1LjY4MiA0NS4zMzMzIDEzLjUwODcgNDIuNTU2MyAxMS45ODE2WiIgZmlsbD0iIzQ5NDVGRiIvPgo8L3N2Zz4K","aria-hidden":!0,small:r}))}));z.displayName="Loader",z.defaultProps={small:!1},z.propTypes={children:g.a.string.isRequired,small:g.a.bool}},,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";t.r(n),t.d(n,"Combobox",(function(){return le})),t.d(n,"CreatableCombobox",(function(){return se})),t.d(n,"ComboboxOption",(function(){return ne}));var r=t(37),o=t.n(r),i=t(5),a=t.n(i),u=t(10),c=t.n(u),l=t(6),s=t.n(l),d=t(1),M=t.n(d),f=t(0),g=t.n(f),p=t(14),h=t(34),N=t.n(h),j=t(33),y=t.n(j),b=t(67),z=t(11),D="Close",m="CloseSelect",O="First",x="Last",T="Next",I="Open",v="Previous",w="Type";function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return n?e.filter((function(e){return 0===e.props.children.toString().toLowerCase().indexOf(n.toString().toLowerCase())&&t.indexOf(e)<0})):e}function E(e,n,t){switch(t){case O:return 0;case x:return n;case v:return Math.max(0,e-1);case T:return Math.min(n,e+1);default:return e}}function L(e){Object(b.a)(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}).forEach((function(e){var n=e.el,t=e.top,r=e.left;n.scrollTop=t,n.scrollLeft=r}))}var C,S,k,Q,U,Y=t(9),R=t(50),P=t(40),_=t(4),W=t(8),H=t(77),B=t(3),F=t.n(B),q=t(2),V=t.n(q),Z=t(15),X=V()(Y.Flex)(C||(C=F()(["\n  position: relative;\n  border: 1px solid ",";\n  padding-right: ",";\n  padding-left: ",";\n  border-radius: ",";\n  background: ",";\n\n  ","\n\n  ","\n"])),(function(e){var n=e.theme;return e.hasError?n.colors.danger600:n.colors.neutral200}),(function(e){return e.theme.spaces[3]}),(function(e){return e.theme.spaces[3]}),(function(e){return e.theme.borderRadius}),(function(e){return e.theme.colors.neutral0}),(function(e){var n=e.theme;return e.$disabled?"\n    color: ".concat(n.colors.neutral600,";\n    background: ").concat(n.colors.neutral150,";\n  "):void 0}),Object(Z.c)()),G=V.a.div(S||(S=F()(["\n  padding: 1px 2px;\n  grid-area: 1 / 1 / 2 / 3;\n"]))),K=V()(Y.Flex)(k||(k=F()(["\n  display: grid;\n  flex: 1 1 0%;\n  position: relative;\n"]))),$=V.a.input(Q||(Q=F()(["\n  display: inline-grid;\n  grid-area: 1 / 1 / 2 / 3;\n  grid-template-columns: 0px min-content;\n  background: transparent;\n  min-height: ","rem;\n  border: none;\n  flex: 1;\n  font-size: ","rem;\n  color: ",";\n  outline: none;\n  &:focus-visible {\n    outline: none;\n    box-shadow: none;\n    outline-offset: 0;\n  }\n  &[aria-disabled='true'] {\n    background: inherit;\n    color: inherit;\n    cursor: not-allowed;\n  }\n"])),2.5,.875,(function(e){return e.theme.colors.neutral800})),J=V()(_.Box)(U||(U=F()(["\n  width: 100%;\n  border: none;\n  text-align: left;\n  outline-offset: -3px;\n  ","\n\n  &:hover {\n    background: ",";\n  }\n"])),(function(e){var n=e.isSelected,t=e.theme;return n&&"background: ".concat(t.colors.primary100,";")}),(function(e){return e.theme.colors.primary100})),ee=["isSelected","children"],ne=Object(d.forwardRef)((function(e,n){var t=e.isSelected,r=e.children,o=s()(e,ee);return M.a.createElement(J,a()({hasRadius:!0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,role:"option",background:"neutral0",isSelected:t,ref:n},o),M.a.createElement(W.Typography,{textColor:t?"primary600":"neutral800",fontWeight:t?"bold":null},r))}));ne.defaultProps={isSelected:!1},ne.propTypes={children:g.a.oneOfType([g.a.string,g.a.number]).isRequired,isSelected:g.a.bool},ne.displayName="ComboboxOption";var te=function(e){var n=e.options,t=e.activeOptionRef;return Object(d.useEffect)((function(){t.current&&L(t.current)}),[]),n};te.defaultProps={activeOptionRef:void 0},te.propTypes={options:g.a.array.isRequired};var re=t(16),oe=t(26),ie=t(21),ae=["clearLabel","createMessage","disabled","hint","error","label","value","onChange","placeholder","creatable","loading","loadingMessage","onCreateOption","onLoadMore","noOptionsMessage","hasMoreItems","children","onClear"];function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ce(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){o()(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var le=function(e){var n=e.clearLabel,t=e.createMessage,r=e.disabled,o=e.hint,i=e.error,a=e.label,u=e.value,l=e.onChange,f=e.placeholder,g=e.creatable,h=e.loading,j=e.loadingMessage,b=e.onCreateOption,C=e.onLoadMore,S=e.noOptionsMessage,k=e.hasMoreItems,Q=e.children,U=e.onClear,B=s()(e,ae),F=Object(d.useState)(0),q=c()(F,2),V=q[0],Z=q[1],J=Object(d.useState)(null),ee=c()(J,2),ue=ee[0],ce=ee[1],le=Object(d.useState)(Q),se=c()(le,2),de=se[0],Me=se[1],fe=Object(d.useState)(!1),ge=c()(fe,2),pe=ge[0],he=ge[1],Ne=Object(d.useState)(""),je=c()(Ne,2),ye=je[0],be=je[1],ze=Object(d.useRef)(),De=Object(d.useRef)(!1),me=Object(d.useRef)(),Oe=Object(d.useRef)(),xe=Object(d.useRef)(),Te=Object(d.useRef)(!0),Ie=Object(p.a)("combobox"),ve="".concat(Ie,"-label");if(!a&&!B["aria-label"])throw new Error('The Combobox component needs a "label" or an "aria-label" props');Object(d.useEffect)((function(){Me(A(Q,ye))}),[ye,Q]),Object(d.useEffect)((function(){pe&&ze.current&&L(ze.current)}),[V]),Object(d.useLayoutEffect)((function(){Te.current&&(Te.current=!1)}),[u]);var we,Ae,Ee=pe?"".concat(Ie,"-").concat(V):"",Le=function(){l(null),be("")},Ce=function(e){Z(e)},Se=function(){De.current=!0},ke=function(e){var n=de[e];if(be(""),n)return l(n.props.value),Qe(!1);g&&(b(ye),Qe(!1))},Qe=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];he(e),n&&me.current.focus()},Ue=d.Children.toArray(de).map((function(e,n){var t=V===n;return Object(d.cloneElement)(e,{id:"".concat(Ie,"-").concat(n),"aria-selected":ue===n,"aria-posinset":n+1,"aria-setsize":d.Children.toArray(de).length,ref:function(e){t&&(ze.current=e)},onClick:function(){return Ce(e=n),void ke(e);var e},onMouseDown:Se,isSelected:t})}));return M.a.createElement(re.Field,{hint:o,error:i,id:Ie},M.a.createElement(ie.VisuallyHidden,{"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text"},u),M.a.createElement(oe.Stack,{size:a||o||i?1:0},a&&M.a.createElement(re.FieldLabel,{id:ve},a),M.a.createElement(X,{ref:Oe,$disabled:r,hasError:i},M.a.createElement(K,{wrap:"wrap"},!ye&&u&&M.a.createElement(G,{id:"".concat(Ie,"-selected-value")},M.a.createElement(W.Typography,null,null===(Ae=Q.find((function(e){var n;return(null===(n=e.props)||void 0===n?void 0:n.value.toLowerCase())===u.toLowerCase()})).props)||void 0===Ae?void 0:Ae.children)),M.a.createElement($,{"aria-activedescendant":Ee,"aria-autocomplete":"list","aria-controls":"".concat(Ie,"-listbox"),"aria-disabled":r,"aria-expanded":pe,"aria-haspopup":"listbox","aria-labelledby":a?ve:void 0,id:Ie,onBlur:r?void 0:function(){u&&!De.current&&be(""),De.current?De.current=!1:Qe(!1,!1)},onClick:r?void 0:function(){return Qe(!0)},onInput:r?void 0:function(){var e=me.current.value;Me(A(Q,e)),Z(0),ce(null),ye!==e&&be(e),pe||Qe(!0,!1)},onKeyDown:r?void 0:function(e){var n=e.key,t=g&&ye?de.length:de.length-1,r=function(e,n){return n||e!==z.a.DOWN?e===z.a.DOWN?T:e===z.a.UP?v:e===z.a.HOME?O:e===z.a.END?x:e===z.a.ESCAPE?D:e===z.a.ENTER?m:e===z.a.BACKSPACE||e===z.a.CLEAR||1===e.length?w:void 0:I}(n,pe);switch(u&&!ye&&n===z.a.BACKSPACE&&Le(),r){case T:return Ce(V===t?0:E(V,t,r));case v:return Ce(0===V?t:E(V,t,r));case x:case O:return Ce(V===t?0:E(V,t,r));case m:return e.preventDefault(),void ke(V);case D:return e.preventDefault(),Qe(!1);case I:return Qe(!0);default:return}},placeholder:u?"":f,readOnly:r,ref:me,role:"combobox",autoComplete:"off",autoCorrect:"off",spellCheck:"off",type:"text",value:ye})),M.a.createElement(Y.Flex,null,(u||ye)&&M.a.createElement(R.b,{id:"".concat(Ie,"-clear"),"aria-label":n,disabled:r,paddingLeft:3,as:"button",onClick:function(){me.current.focus(),U&&U(),Le()},type:"button"},M.a.createElement(y.a,null)),M.a.createElement(R.a,{disabled:r,paddingLeft:3,"aria-hidden":!0,as:"button",onClick:function(){me.current.focus(),Qe(!0)},tabIndex:-1,type:"button"},M.a.createElement(N.a,null)))),M.a.createElement(re.FieldHint,null),M.a.createElement(re.FieldError,null)),pe&&M.a.createElement(P.Popover,{id:"".concat(Ie,"-popover"),source:Oe,spacing:4,fullWidth:!0,intersectionId:"".concat(Ie,"-listbox-popover-intersection"),onReachEnd:k&&!h?C:void 0},M.a.createElement("div",{role:"listbox",ref:xe,id:"".concat(Ie,"-listbox"),"aria-labelledby":a?ve:void 0},(Boolean(de.length)||g)&&M.a.createElement(M.a.Fragment,null,M.a.createElement(te,{activeOptionRef:ze,options:Ue}),(we=de.findIndex((function(e){var n;return(null===(n=e.props)||void 0===n?void 0:n.children)===ye})),ye&&-1===we&&g&&M.a.createElement(ne,{isSelected:V===de.length,ref:function(e){V===de.length&&(ze.current=e)},onMouseDown:Se,onClick:function(){return ke()},taindex:0},t(ye)))),!Boolean(de.length)&&!g&&!h&&M.a.createElement(_.Box,{paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,ref:ze},M.a.createElement(W.Typography,{textColor:"neutral800"},S(ye))),h&&M.a.createElement(Y.Flex,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2},M.a.createElement(H.a,{small:!0},j)))))},se=function(e){return M.a.createElement(le,a()({},e,{creatable:!0}))};le.defaultProps=se.defaultProps={"aria-label":void 0,clearLabel:"clear",creatable:!1,createMessage:function(e){return'Create "'.concat(e,'"')},disabled:!1,error:void 0,hasMoreItems:!1,hint:void 0,label:void 0,loading:!1,loadingMessage:"Loading content...",noOptionsMessage:function(){return"No results found"},onClear:void 0,onCreateOption:void 0,onLoadMore:void 0,placeholder:"Select or enter a value",value:void 0},le.propTypes={"aria-label":g.a.string,children:g.a.oneOfType([g.a.arrayOf(g.a.node),g.a.node]),clearLabel:g.a.string,creatable:g.a.bool,createMessage:g.a.func,disabled:g.a.bool,error:g.a.string,hasMoreItems:g.a.bool,hint:g.a.string,label:g.a.string,loading:g.a.bool,loadingMessage:g.a.string,noOptionsMessage:g.a.func,onChange:g.a.func.isRequired,onClear:g.a.func,onCreateOption:g.a.func,onLoadMore:g.a.func,placeholder:g.a.string,value:g.a.string},se.propTypes=ce(ce({},le.propTypes),{},{onCreateOption:g.a.func.isRequired})}]))}}]);