(self.webpackChunk_digicommerce_cms_admin=self.webpackChunk_digicommerce_cms_admin||[]).push([[4715],{14715:(Ln,ae,un)=>{"use strict";Ln.exports=un(83885)},83885:function(Ln,ae,un){var ue=un(98399);(function(Wn,Cn){Ln.exports=Cn(un(32735),un(19615),un(60672),un(12788),un(94009))})(this,function(Wn,Cn,ce,se,le){return function(a){var l={};function n(i){if(l[i])return l[i].exports;var o=l[i]={i,l:!1,exports:{}};return a[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=a,n.c=l,n.d=function(i,o,f){n.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:f})},n.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},n.t=function(i,o){if(1&o&&(i=n(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var f=Object.create(null);if(n.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)n.d(f,s,function(u){return i[u]}.bind(null,s));return f},n.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(o,"a",o),o},n.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},n.p="",n(n.s=103)}([function(a,l,n){a.exports=n(19)()},function(a,l){a.exports=Wn},function(a,l){a.exports=Cn},function(a,l){a.exports=function(n,i){return i||(i=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){var i=n(24);a.exports=function(o,f){if(o==null)return{};var s,u,c=i(o,f);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);for(u=0;u<h.length;u++)s=h[u],f.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(o,s)&&(c[s]=o[s])}return c},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){function n(){return a.exports=n=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var f=arguments[o];for(var s in f)Object.prototype.hasOwnProperty.call(f,s)&&(i[s]=f[s])}return i},a.exports.default=a.exports,a.exports.__esModule=!0,n.apply(this,arguments)}a.exports=n,a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.r(l),n.d(l,"Box",function(){return x});var i,o=n(3),f=n.n(o),s=n(2),u=n.n(s),c=n(7),h=n(1),b=n.n(h),p=n(0),r=n.n(p),N=function(e){return b.a.createElement("div",e)},M={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(){}},v={_hover:r.a.func,background:r.a.string,basis:r.a.oneOfType([r.a.string,r.a.string]),borderColor:r.a.string,children:r.a.oneOfType([r.a.node,r.a.string]),color:r.a.string,flex:r.a.oneOfType([r.a.string,r.a.string]),grow:r.a.oneOfType([r.a.string,r.a.string]),hasRadius:r.a.bool,hiddenS:r.a.bool,hiddenXS:r.a.bool,padding:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingBottom:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingLeft:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingRight:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingTop:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),shadow:r.a.string,shrink:r.a.oneOfType([r.a.string,r.a.string])};N.defaultProps=M,N.propTypes=v;var m={color:!0},x=u.a.div.withConfig({shouldForwardProp:function(e,t){return!m[e]&&t(e)}})(i||(i=f()([`
  // Font
  font-size: `,`;

  // Colors
  background: `,`;
  color: `,`;

  // Spaces
  `,`
  `,`
  `,`
  `,`
  `,`
  `,`
  `,`
  `,`
  `,`

  // Responsive hiding
  `,`
  `,`
  

  // Borders
  border-radius: `,`;
  border-style: `,`;
  border-width: `,`;
  border-color: `,`;
  border: `,`;

  // Shadows
  box-shadow: `,`;

  // Handlers
  pointer-events: `,`;
  &:hover {
    `,`
  }

  // Display
  display: `,`;

  // Position
  position: `,`;
  left: `,`;
  right: `,`;
  top: `,`;
  bottom: `,`;
  z-index: `,`;
  overflow: `,`;
  cursor: `,`;

  // Size
  width: `,`;
  max-width: `,`;
  min-width: `,`;
  height: `,`;
  max-height: `,`;
  min-height: `,`;

  // Animation
  transition: `,`;
  transform: `,`;
  animation: `,`;

  //Flexbox children props
  flex-shrink: `,`;
  flex-grow: `,`;
  flex-basis: `,`;
  flex: `,`;

  // Text
  text-align: `,`;
  text-transform: `,`;
  line-height: `,`;

  // Cursor
  cursor: `,`;
`])),function(e){var t=e.fontSize;return e.theme.fontSizes[t]||t},function(e){var t=e.theme,d=e.background;return t.colors[d]},function(e){var t=e.theme,d=e.color;return t.colors[d]},function(e){var t=e.theme,d=e.padding;return Object(c.a)("padding",d,t)},function(e){var t=e.theme,d=e.paddingTop;return Object(c.a)("padding-top",d,t)},function(e){var t=e.theme,d=e.paddingRight;return Object(c.a)("padding-right",d,t)},function(e){var t=e.theme,d=e.paddingBottom;return Object(c.a)("padding-bottom",d,t)},function(e){var t=e.theme,d=e.paddingLeft;return Object(c.a)("padding-left",d,t)},function(e){var t=e.theme,d=e.marginLeft;return Object(c.a)("margin-left",d,t)},function(e){var t=e.theme,d=e.marginRight;return Object(c.a)("margin-right",d,t)},function(e){var t=e.theme,d=e.marginTop;return Object(c.a)("margin-top",d,t)},function(e){var t=e.theme,d=e.marginBottom;return Object(c.a)("margin-bottom",d,t)},function(e){var t=e.theme;return e.hiddenS?"".concat(t.mediaQueries.tablet," { display: none; }"):void 0},function(e){var t=e.theme;return e.hiddenXS?"".concat(t.mediaQueries.mobile," { display: none; }"):void 0},function(e){var t=e.theme,d=e.hasRadius,O=e.borderRadius;return d?t.borderRadius:O},function(e){return e.borderStyle},function(e){return e.borderWidth},function(e){var t=e.borderColor;return e.theme.colors[t]},function(e){var t=e.theme,d=e.borderColor,O=e.borderStyle,E=e.borderWidth;if(d&&!O&&!E)return"1px solid ".concat(t.colors[d])},function(e){var t=e.theme,d=e.shadow;return t.shadows[d]},function(e){return e.pointerEvents},function(e){var t=e._hover,d=e.theme;return t?t(d):void 0},function(e){return e.display},function(e){return e.position},function(e){var t=e.left;return e.theme.spaces[t]||t},function(e){var t=e.right;return e.theme.spaces[t]||t},function(e){var t=e.top;return e.theme.spaces[t]||t},function(e){var t=e.bottom;return e.theme.spaces[t]||t},function(e){return e.zIndex},function(e){return e.overflow},function(e){return e.cursor},function(e){var t=e.width;return e.theme.spaces[t]||t},function(e){var t=e.maxWidth;return e.theme.spaces[t]||t},function(e){var t=e.minWidth;return e.theme.spaces[t]||t},function(e){var t=e.height;return e.theme.spaces[t]||t},function(e){var t=e.maxHeight;return e.theme.spaces[t]||t},function(e){var t=e.minHeight;return e.theme.spaces[t]||t},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});x.defaultProps=M,x.propTypes=v},function(a,l,n){"use strict";var i=n(10),o=n.n(i),f=n(13),s=n.n(f);l.a=function(u,c,h){var b=c;if(Array.isArray(c)||s()(c)!=="object"||(b=[c==null?void 0:c.desktop,c==null?void 0:c.tablet,c==null?void 0:c.mobile]),b!==void 0){if(Array.isArray(b)){var p=b,r=o()(p,3),N=r[0],M=r[1],v=r[2],m="".concat(u,": ").concat(h.spaces[N],";");return M!==void 0&&(m+="".concat(h.mediaQueries.tablet,`{
          `).concat(u,": ").concat(h.spaces[M],`;
        }`)),v!==void 0&&(m+="".concat(h.mediaQueries.mobile,`{
          `).concat(u,": ").concat(h.spaces[v],`;
        }`)),m}var x=h.spaces[b]||b;return"".concat(u,": ").concat(x,";")}}},function(a,l,n){"use strict";n.r(l),n.d(l,"Typography",function(){return x});var i,o=n(3),f=n.n(o),s=n(2),u=n.n(s),c=["alpha","beta","delta","epsilon","omega","pi","sigma"],h=n(1),b=n.n(h),p=n(0),r=n.n(p),N=function(e){return b.a.createElement("div",e)},M={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},v={ellipsis:r.a.bool,fontSize:r.a.oneOfType([r.a.number,r.a.string]),fontWeight:r.a.string,lineHeight:r.a.oneOfType([r.a.number,r.a.string]),textColor:r.a.string,textTransform:r.a.string,variant:r.a.oneOf(c)};N.defaultProps=M,N.propTypes=v;var m={fontSize:!0,fontWeight:!0},x=u.a.span.withConfig({shouldForwardProp:function(e,t){return!m[e]&&t(e)}})(i||(i=f()([`
  font-weight: `,`;
  font-size: `,`;
  line-height: `,`;
  color: `,`;
  text-transform: `,`;
  `,`
  `,`
`])),function(e){var t=e.theme,d=e.fontWeight;return t.fontWeights[d]},function(e){var t=e.theme,d=e.fontSize;return t.fontSizes[d]},function(e){var t=e.theme,d=e.lineHeight;return t.lineHeights[d]},function(e){var t=e.theme,d=e.textColor;return t.colors[d||"neutral800"]},function(e){return e.textTransform},function(e){return e.ellipsis&&`
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  `},function(e){var t=e.variant,d=e.theme;switch(t){case"alpha":return`
        font-weight: `.concat(d.fontWeights.bold,`;
        font-size: `).concat(d.fontSizes[5],`;
        line-height: `).concat(d.lineHeights[2],`;
      `);case"beta":return`
        font-weight: `.concat(d.fontWeights.bold,`;
        font-size: `).concat(d.fontSizes[4],`;
        line-height: `).concat(d.lineHeights[1],`;
      `);case"delta":return`
        font-weight: `.concat(d.fontWeights.semiBold,`;
        font-size: `).concat(d.fontSizes[3],`;
        line-height: `).concat(d.lineHeights[2],`;
      `);case"epsilon":return`
        font-size: `.concat(d.fontSizes[3],`;
        line-height: `).concat(d.lineHeights[6],`;
      `);case"omega":return`
        font-size: `.concat(d.fontSizes[2],`;
        line-height: `).concat(d.lineHeights[4],`;
      `);case"pi":return`
        font-size: `.concat(d.fontSizes[1],`;
        line-height: `).concat(d.lineHeights[3],`;
      `);case"sigma":return`
        font-weight: `.concat(d.fontWeights.bold,`;
        font-size: `).concat(d.fontSizes[0],`;
        line-height: `).concat(d.lineHeights[5],`;
        text-transform: uppercase;
      `);default:return`
        font-size: `.concat(d.fontSizes[2],`;
      `)}});x.defaultProps=M,x.propTypes=v},function(a,l,n){"use strict";n.r(l),n.d(l,"Flex",function(){return e});var i,o=n(3),f=n.n(o),s=n(2),u=n.n(s),c=n(6),h=n(7),b=n(1),p=n.n(b),r=n(0),N=n.n(r),M=function(t){return p.a.createElement("div",t)},v={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},m={alignItems:N.a.string,basis:N.a.oneOfType([N.a.string,N.a.number]),direction:N.a.string,gap:N.a.oneOfType([N.a.shape({desktop:N.a.number,mobile:N.a.number,tablet:N.a.number}),N.a.number,N.a.arrayOf(N.a.number),N.a.string]),inline:N.a.bool,justifyContent:N.a.string,reverse:N.a.bool,shrink:N.a.number,wrap:N.a.string};M.defaultProps=v,M.propTypes=m;var x={direction:!0},e=u()(c.Box).withConfig({shouldForwardProp:function(t,d){return!x[t]&&d(t)}})(i||(i=f()([`
  align-items: `,`;
  display: `,`;
  flex-direction: `,`;
  flex-shrink: `,`;
  flex-wrap: `,`;
  `,`};
  justify-content: `,`;
`])),function(t){return t.alignItems},function(t){return t.inline?"inline-flex":"flex"},function(t){return t.direction},function(t){return t.shrink},function(t){return t.wrap},function(t){var d=t.gap,O=t.theme;return Object(h.a)("gap",d,O)},function(t){return t.justifyContent});e.defaultProps=v,e.propTypes=m},function(a,l,n){var i=n(25),o=n(26),f=n(22),s=n(27);a.exports=function(u,c){return i(u)||o(u,c)||f(u,c)||s()},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.d(l,"a",function(){return i});var i={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(a,l,n){"use strict";n.d(l,"a",function(){return o}),n.d(l,"b",function(){return f});var i=n(1),o=Object(i.createContext)({error:void 0,hint:void 0,name:"",id:""}),f=function(){return Object(i.useContext)(o)}},function(a,l){function n(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(a.exports=n=function(o){return typeof o},a.exports.default=a.exports,a.exports.__esModule=!0):(a.exports=n=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.default=a.exports,a.exports.__esModule=!0),n(i)}a.exports=n,a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.d(l,"a",function(){return f});var i=n(1),o=0,f=function(s,u){return Object(i.useRef)(u||"".concat(s,"-").concat(++o)).current}},function(a,l,n){"use strict";n.r(l),n.d(l,"Field",function(){return r}),n.d(l,"FieldLabel",function(){return Q}),n.d(l,"InputWrapper",function(){return w.b}),n.d(l,"FieldInput",function(){return w.a}),n.d(l,"FieldHint",function(){return X}),n.d(l,"FieldError",function(){return z}),n.d(l,"FieldContext",function(){return h.a}),n.d(l,"useField",function(){return h.b}),n.d(l,"FieldAction",function(){return B});var i=n(4),o=n.n(i),f=n(1),s=n.n(f),u=n(0),c=n.n(u),h=n(12),b=n(14),p=["children","name","error","hint","id"],r=function(y){var I=y.children,T=y.name,S=y.error,U=y.hint,F=y.id,G=o()(y,p),_=Object(b.a)("field",F);return s.a.createElement("div",G,s.a.createElement(h.a.Provider,{value:{name:T,id:_,error:S,hint:U}},I))};r.defaultProps={error:void 0,hint:void 0,id:void 0,name:void 0},r.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 N,M,v=n(5),m=n.n(v),x=n(3),e=n.n(x),t=n(2),d=n.n(t),O=n(9),E=n(8),D=["children","required","action"],A=d()(E.Typography)(N||(N=e()([`
  line-height: 0;
`]))),P=d()(O.Flex)(M||(M=e()([`
  line-height: 0;

  svg path {
    fill: `,`;
  }
`])),function(y){return y.theme.colors.neutral500}),Q=function(y){var I=y.children,T=y.required,S=y.action,U=o()(y,D),F=Object(h.b)().id;return s.a.createElement(E.Typography,m()({variant:"pi",textColor:"neutral800",htmlFor:F,fontWeight:"bold",as:"label",required:T},U),s.a.createElement(O.Flex,{alignItems:"center"},I,T&&s.a.createElement(A,{textColor:"danger600"},"*"),S&&s.a.createElement(P,{marginLeft:1},S)))};Q.defaultProps={required:!1,action:void 0},Q.propTypes={action:c.a.element,children:c.a.node.isRequired,required:c.a.bool};var j,w=n(34),X=function(){var y=Object(h.b)(),I=y.id,T=y.hint,S=y.error;return!T||S?null:s.a.createElement(E.Typography,{variant:"pi",as:"p",id:"".concat(I,"-hint"),textColor:"neutral600"},T)},z=function(){var y=Object(h.b)(),I=y.id,T=y.error;return T?s.a.createElement(E.Typography,{variant:"pi",as:"p",id:"".concat(I,"-error"),textColor:"danger600","data-strapi-field-error":!0},T):null},C=["label","children"],H=d.a.button(j||(j=e()([`
  border: none;
  background: transparent;
  // TODO: Make sure to use the theme when it's ready
  font-size: 1.6rem;
  width: auto;
  padding: 0;
  display: flex;
  align-items: center;
`]))),B=function(y){var I=y.label,T=y.children,S=o()(y,C);return s.a.createElement(H,m()({"aria-label":I,type:"button"},S),T)};B.propTypes={children:c.a.node.isRequired,label:c.a.string.isRequired}},function(a,l,n){"use strict";n.d(l,"b",function(){return i}),n.d(l,"c",function(){return o}),n.d(l,"a",function(){return f});var i=function(s){return function(u){var c=u.theme,h=u.size;return c.sizes[s][h]}},o=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&";return function(u){var c=u.theme,h=u.hasError;return`
      outline: none;
      box-shadow: 0;
      transition-property: border-color, box-shadow, fill;
      transition-duration: 0.2s;

      `.concat(s,`:focus-within {
        border: 1px solid `).concat(h?c.colors.danger600:c.colors.primary600,`;
        box-shadow: `).concat(h?c.colors.danger600:c.colors.primary600,` 0px 0px 0px 2px;
      }
    `)}},f=function(s){var u=s.theme;return`
  position: relative;
  outline: none;
  
  &:after {
    transition-property: all;
    transition-duration: 0.2s;
    border-radius: 8px;
    content: '';
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
    border: 2px solid transparent;
  }

  &:focus-visible {
    outline: none;
    &:after {
      border-radius: 8px;
      content: '';
      position: absolute;
      top: -5px;
      bottom: -5px;
      left: -5px;
      right: -5px;
      border: 2px solid `.concat(u.colors.primary600,`;
    }
  }
`)}},,function(a,l,n){"use strict";n.r(l),n.d(l,"VisuallyHidden",function(){return u});var i,o=n(3),f=n.n(o),s=n(2),u=n.n(s).a.div(i||(i=f()([`
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
`])))},function(a,l,n){"use strict";var i=n(20);function o(){}function f(){}f.resetWarningCache=o,a.exports=function(){function s(h,b,p,r,N,M){if(M!==i){var v=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 v.name="Invariant Violation",v}}function u(){return s}s.isRequired=s;var c={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:u,element:s,elementType:s,instanceOf:u,node:s,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:f,resetWarningCache:o};return c.PropTypes=c,c}},function(a,l,n){"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(a,l){a.exports=function(n,i){(i==null||i>n.length)&&(i=n.length);for(var o=0,f=new Array(i);o<i;o++)f[o]=n[o];return f},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){var i=n(21);a.exports=function(o,f){if(o){if(typeof o=="string")return i(o,f);var s=Object.prototype.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(o,f):void 0}},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.r(l),n.d(l,"Stack",function(){return E});var i,o,f=n(5),s=n.n(f),u=n(4),c=n.n(u),h=n(3),b=n.n(h),p=n(1),r=n.n(p),N=n(0),M=n.n(N),v=n(2),m=n.n(v),x=n(9),e=["horizontal","spacing","size"],t={size:!0},d=m()(x.Flex).withConfig({shouldForwardProp:function(D,A){return!t[D]&&A(D)}})(i||(i=b()([`
  & > * {
    margin-top: 0;
    margin-bottom: 0;
  }

  & > * + * {
    margin-top: `,`;
  }
`])),function(D){var A=D.theme,P=D.spacing;return A.spaces[P]}),O=m()(x.Flex).withConfig({shouldForwardProp:function(D,A){return!t[D]&&A(D)}})(o||(o=b()([`
  & > * {
    margin-left: 0;
    margin-right: 0;
  }

  & > * + * {
    margin-left: `,`;
  }
`])),function(D){var A=D.theme,P=D.spacing;return A.spaces[P]}),E=Object(p.forwardRef)(function(D,A){var P=D.horizontal,Q=D.spacing,j=D.size,w=c()(D,e);return j&&ue.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),P?r.a.createElement(O,s()({ref:A,spacing:Q||j},w)):r.a.createElement(d,s()({direction:"column",alignItems:"stretch",ref:A,spacing:Q||j},w))});E.displayName="Stack",E.defaultProps={horizontal:!1,size:void 0,spacing:void 0},E.propTypes={horizontal:M.a.bool,size:M.a.number,spacing:M.a.number}},function(a,l){a.exports=function(n,i){if(n==null)return{};var o,f,s={},u=Object.keys(n);for(f=0;f<u.length;f++)o=u[f],i.indexOf(o)>=0||(s[o]=n[o]);return s},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=function(n){if(Array.isArray(n))return n},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=function(n,i){var o=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var f,s,u=[],c=!0,h=!1;try{for(o=o.call(n);!(c=(f=o.next()).done)&&(u.push(f.value),!i||u.length!==i);c=!0);}catch(b){h=!0,s=b}finally{try{c||o.return==null||o.return()}finally{if(h)throw s}}return u}},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){"use strict";n.d(l,"a",function(){return i});var i={input:{S:"".concat(2,"rem"),M:"".concat(2.5,"rem")},accordions:{S:"".concat(3,"rem"),M:"".concat(5.5,"rem")}}},,function(a,l,n){"use strict";n.r(l),n.d(l,"Portal",function(){return u});var i=n(10),o=n.n(i),f=n(1),s=n(35),u=function(c){var h=c.children,b=Object(f.useRef)(null),p=Object(f.useState)(!1),r=o()(p,2),N=r[0],M=r[1];return Object(f.useLayoutEffect)(function(){return b.current=document.createElement("div"),b.current.setAttribute("data-react-portal","true"),document.body.appendChild(b.current),M(!0),function(){var v;(v=b.current)===null||v===void 0||v.remove()}},[]),N&&b.current?Object(s.createPortal)(h,b.current):null}},function(a,l){a.exports=function(n,i,o){return i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l){a.exports=ce},,function(a,l,n){"use strict";n.d(l,"b",function(){return P}),n.d(l,"a",function(){return Q});var i,o,f=n(5),s=n.n(f),u=n(4),c=n.n(u),h=n(3),b=n.n(h),p=n(1),r=n.n(p),N=n(2),M=n.n(N),v=n(0),m=n.n(v),x=n(28),e=n(16),t=n(12),d=n(9),O=n(6),E=["endAction","startAction","disabled","onChange","size"],D={S:6.5,M:10.5},A=M.a.input(i||(i=b()([`
  border: none;
  border-radius: `,`;
  padding-bottom: `,`;
  padding-left: `,`;
  padding-right: `,`;
  padding-top: `,`;
  cursor: `,`;

  color: `,`;
  font-weight: 400;
  // TODO: Make sure to use the theme when it's ready
  font-size: `,`rem;
  display: block;
  width: 100%;
  background: inherit;

  ::placeholder {
    color: `,`;
    opacity: 1;
  }

  &[aria-disabled='true'] {
    color: inherit;
  }

  //focus managed by InputWrapper
  &:focus {
    outline: none;
    box-shadow: none;
  }
`])),function(j){return j.theme.borderRadius},function(j){var w=j.size;return"".concat(D[w]/16,"rem")},function(j){var w=j.theme;return j.hasLeftAction?0:w.spaces[4]},function(j){var w=j.theme;return j.hasRightAction?0:w.spaces[4]},function(j){var w=j.size;return"".concat(D[w]/16,"rem")},function(j){return j["aria-disabled"]?"not-allowed":void 0},function(j){return j.theme.colors.neutral800},.875,function(j){return j.theme.colors.neutral500}),P=M()(d.Flex)(o||(o=b()([`
  border: 1px solid `,`;
  border-radius: `,`;
  background: `,`;
  `,`

  `,`
`])),function(j){var w=j.theme;return j.hasError?w.colors.danger600:w.colors.neutral200},function(j){return j.theme.borderRadius},function(j){return j.theme.colors.neutral0},Object(e.c)(),function(j){var w=j.theme;return j.disabled?`
    color: `.concat(w.colors.neutral600,`;
    background: `).concat(w.colors.neutral150,`;
  
  `):void 0}),Q=Object(p.forwardRef)(function(j,w){var X,z=j.endAction,C=j.startAction,H=j.disabled,B=j.onChange,y=j.size,I=c()(j,E),T=Object(t.b)(),S=T.id,U=T.error,F=T.hint,G=T.name;U?X="".concat(S,"-error"):F&&(X="".concat(S,"-hint"));var _=Boolean(U);return r.a.createElement(P,{size:y,justifyContent:"space-between",hasError:_,disabled:H},C&&r.a.createElement(O.Box,{paddingLeft:3,paddingRight:2},C),r.a.createElement(A,s()({id:S,name:G,ref:w,"aria-describedby":X,"aria-invalid":_,"aria-disabled":H,hasLeftAction:Boolean(C),hasRightAction:Boolean(z),onChange:function(V){H||B(V)},size:y},I)),z&&r.a.createElement(O.Box,{paddingLeft:2,paddingRight:3},z))});Q.displayName="FieldInput",Q.defaultProps={disabled:!1,endAction:void 0,size:"M",startAction:void 0,onChange:function(){}},Q.propTypes={disabled:m.a.bool,endAction:m.a.element,onChange:m.a.func,size:m.a.oneOf(Object.keys(x.a.input)),startAction:m.a.element}},function(a,l){a.exports=se},function(a,l){a.exports=le},,,,function(a,l,n){"use strict";n.r(l),n.d(l,"position",function(){return D}),n.d(l,"Popover",function(){return j});var i,o,f=n(5),s=n.n(f),u=n(10),c=n.n(u),h=n(4),b=n.n(h),p=n(3),r=n.n(p),N=n(1),M=n.n(N),v=n(0),m=n.n(v),x=n(2),e=n.n(x),t=n(6),d=n(30),O=n(48),E=["source","children","spacing","fullWidth","onReachEnd","intersectionId","centered"],D=function(z,C,H,B){var y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,I=z.getBoundingClientRect(),T=I.top+I.height+window.pageYOffset+y,S=I.left+window.pageXOffset;if(!C)return{left:S,top:T,width:H?I.width:void 0};var U=C.getBoundingClientRect();if(B){var F=10,G=U.width+F,_=(I.width-G)/2;S=I.left+_+window.pageXOffset}U.left<0?S=I.left+window.pageXOffset:U.left+U.width>window.innerWidth&&(S=window.innerWidth-U.width-20);var V=window.innerHeight+window.pageYOffset;if(T+U.height+y>V){var nn=10;T=window.pageYOffset+I.top-U.height-nn-y}return{left:S,top:T,width:H?I.width:void 0}},A=e()(t.Box)(i||(i=r()([`
  box-shadow: `,`;
  position: absolute;
  z-index: 4;
  border: 1px solid `,`;
  background: `,`;
`])),function(z){return z.theme.shadows.filterShadow},function(z){return z.theme.colors.neutral150},function(z){return z.theme.colors.neutral0}),P=e()(t.Box)(o||(o=r()([`
  // 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
  max-height: `,`rem;
  overflow-y: auto;
  overflow-x: hidden;

  &::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 4px;
  }

  &::-webkit-scrollbar-track {
    background: `,`;
  }

  &::-webkit-scrollbar-thumb {
    background: `,`;
    border-radius: `,`;
    margin-right: 10px;
  }
`])),15,function(z){return z.theme.colors.neutral0},function(z){return z.theme.colors.neutral150},function(z){return z.theme.borderRadius}),Q=function(z){var C,H,B,y,I,T,S=z.source,U=z.children,F=z.spacing,G=z.fullWidth,_=z.onReachEnd,V=z.intersectionId,nn=z.centered,cn=b()(z,E),q=Object(N.useRef)(null),sn=Object(N.useState)(D(S.current,q.current,G,nn,F)),Z=c()(sn,2),K=Z[0],ln=K.left,dn=K.top,hn=K.width,Nn=Z[1];Object(O.a)([S,q],function(){return Nn(D(S.current,q.current,G,nn,F))}),C=q,H=_,B={selectorToWatch:"#".concat(V),skipWhen:!V||!_},y=B.selectorToWatch,I=B.skipWhen,T=I!==void 0&&I,Object(N.useEffect)(function(){if(!T){var Sn={root:C.current,rootMargin:"0px",threshold:1},fn=new IntersectionObserver(function(mn,Hn){mn.forEach(function(Tn){Tn.isIntersecting&&C.current.scrollHeight>C.current.clientHeight&&H(Tn)})},Sn),Dn=C.current.querySelector(y);return fn.observe(Dn),function(){fn.disconnect()}}},[T,H,y]);var zn={left:"".concat(ln,"px"),top:"".concat(dn,"px"),width:hn?"".concat(hn,"px"):void 0};return M.a.createElement(A,{style:zn,hasRadius:!0,background:"neutral0",padding:1},M.a.createElement(P,s()({ref:q},cn),U,V&&_&&M.a.createElement("div",{id:V})))},j=function(z){return M.a.createElement(d.Portal,null,M.a.createElement(Q,z))},w={fullWidth:!1,intersectionId:void 0,onReachEnd:void 0,centered:!1},X={centered:m.a.bool,children:m.a.node.isRequired,fullWidth:m.a.bool,intersectionId:m.a.string,onReachEnd:m.a.func,source:m.a.shape({current:(typeof Element=="undefined"?m.a.any:m.a.instanceOf(Element)).isRequired}).isRequired,spacing:m.a.number};Q.propTypes=X,Q.defaultProps=w,j.propTypes=X,j.defaultProps=w},,,,,,,,function(a,l,n){"use strict";n.d(l,"a",function(){return o});var i=n(1),o=function(f,s){Object(i.useEffect)(function(){var u=new ResizeObserver(s);return Array.isArray(f)?f.map(function(c){c.current&&u.observe(c.current)}):f.current&&u.observe(f.current),function(){u.disconnect()}},[])}},,,,,,function(a,l,n){"use strict";n.d(l,"c",function(){return N}),n.d(l,"b",function(){return M}),n.d(l,"a",function(){return v});var i,o,f,s=n(3),u=n.n(s),c=n(2),h=n.n(c),b=n(6),p=n(9),r=n(16),N=h()(p.Flex)(i||(i=u()([`
  position: relative;
  border: 1px solid `,`;
  padding-right: `,`;
  border-radius: `,`;
  background: `,`;
  overflow: hidden;
  min-height: `,`;

  `,`

  `,`
`])),function(m){var x=m.theme;return m.hasError?x.colors.danger600:x.colors.neutral200},function(m){return m.theme.spaces[3]},function(m){return m.theme.borderRadius},function(m){return m.theme.colors.neutral0},Object(r.b)("input"),function(m){var x=m.theme;return m.disabled?`
    color: `.concat(x.colors.neutral600,`;
    background: `).concat(x.colors.neutral150,`;
  `):void 0},Object(r.c)()),M=h()(b.Box)(o||(o=u()([`
  background: transparent;
  border: none;
  position: relative;
  z-index: 1;

  svg {
    height: `,`rem;
    width: `,`rem;
  }

  svg path {
    fill: `,`;
  }
`])),11/16,11/16,function(m){return m.theme.colors.neutral600}),v=h()(M)(f||(f=u()([`
  display: flex;
  background: none;
  border: none;
  cursor: `,`;

  svg {
    width: `,`rem;
  }
`])),function(m){return m.disabled?"not-allowed":void 0},6/16)},,,,,,,,,,,,,,,,,,,function(a,l,n){"use strict";function i(u){return typeof u=="object"&&u!=null&&u.nodeType===1}function o(u,c){return(!c||u!=="hidden")&&u!=="visible"&&u!=="clip"}function f(u,c){if(u.clientHeight<u.scrollHeight||u.clientWidth<u.scrollWidth){var h=getComputedStyle(u,null);return o(h.overflowY,c)||o(h.overflowX,c)||function(b){var p=function(r){if(!r.ownerDocument||!r.ownerDocument.defaultView)return null;try{return r.ownerDocument.defaultView.frameElement}catch(N){return null}}(b);return!!p&&(p.clientHeight<b.scrollHeight||p.clientWidth<b.scrollWidth)}(u)}return!1}function s(u,c,h,b,p,r,N,M){return r<u&&N>c||r>u&&N<c?0:r<=u&&M<=h||N>=c&&M>=h?r-u-b:N>c&&M<h||r<u&&M>h?N-c+p:0}l.a=function(u,c){var h=window,b=c.scrollMode,p=c.block,r=c.inline,N=c.boundary,M=c.skipOverflowHiddenElements,v=typeof N=="function"?N:function(zn){return zn!==N};if(!i(u))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,x=[],e=u;i(e)&&v(e);){if((e=e.parentElement)===m){x.push(e);break}e!=null&&e===document.body&&f(e)&&!f(document.documentElement)||e!=null&&f(e,M)&&x.push(e)}for(var t=h.visualViewport?h.visualViewport.width:innerWidth,d=h.visualViewport?h.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,D=u.getBoundingClientRect(),A=D.height,P=D.width,Q=D.top,j=D.right,w=D.bottom,X=D.left,z=p==="start"||p==="nearest"?Q:p==="end"?w:Q+A/2,C=r==="center"?X+P/2:r==="end"?j:X,H=[],B=0;B<x.length;B++){var y=x[B],I=y.getBoundingClientRect(),T=I.height,S=I.width,U=I.top,F=I.right,G=I.bottom,_=I.left;if(b==="if-needed"&&Q>=0&&X>=0&&w<=d&&j<=t&&Q>=U&&w<=G&&X>=_&&j<=F)return H;var V=getComputedStyle(y),nn=parseInt(V.borderLeftWidth,10),cn=parseInt(V.borderTopWidth,10),q=parseInt(V.borderRightWidth,10),sn=parseInt(V.borderBottomWidth,10),Z=0,K=0,ln="offsetWidth"in y?y.offsetWidth-y.clientWidth-nn-q:0,dn="offsetHeight"in y?y.offsetHeight-y.clientHeight-cn-sn:0;if(m===y)Z=p==="start"?z:p==="end"?z-d:p==="nearest"?s(E,E+d,d,cn,sn,E+z,E+z+A,A):z-d/2,K=r==="start"?C:r==="center"?C-t/2:r==="end"?C-t:s(O,O+t,t,nn,q,O+C,O+C+P,P),Z=Math.max(0,Z+E),K=Math.max(0,K+O);else{Z=p==="start"?z-U-cn:p==="end"?z-G+sn+dn:p==="nearest"?s(U,G,T,cn,sn+dn,z,z+A,A):z-(U+T/2)+dn/2,K=r==="start"?C-_-nn:r==="center"?C-(_+S/2)+ln/2:r==="end"?C-F+q+ln:s(_,F,S,nn,q+ln,C,C+P,P);var hn=y.scrollLeft,Nn=y.scrollTop;z+=Nn-(Z=Math.max(0,Math.min(Nn+Z,y.scrollHeight-T+dn))),C+=hn-(K=Math.max(0,Math.min(hn+K,y.scrollWidth-S+ln)))}H.push({el:y,top:Z,left:K})}return H}},,,,,,function(a,l,n){"use strict";n.d(l,"a",function(){return O});var i,o,f=n(5),s=n.n(f),u=n(4),c=n.n(u),h=n(3),b=n.n(h),p=n(1),r=n.n(p),N=n(0),M=n.n(N),v=n(2),m=n.n(v),x=n(18),e=["children","small"],t=Object(v.keyframes)(i||(i=b()([`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`]))),d=m.a.img(o||(o=b()([`
  animation: `,` 1s infinite linear;
  `,`
`])),t,function(E){var D=E.small,A=E.theme;return D&&"width: ".concat(A.spaces[6],"; height: ").concat(A.spaces[6],";")}),O=Object(p.forwardRef)(function(E,D){var A=E.children,P=E.small,Q=c()(E,e);return r.a.createElement("div",s()({role:"alert","aria-live":"assertive",ref:D},Q),r.a.createElement(x.VisuallyHidden,null,A),r.a.createElement(d,{src:"data:image/svg+xml;base64, ","aria-hidden":!0,small:P}))});O.displayName="Loader",O.defaultProps={small:!1},O.propTypes={children:M.a.string.isRequired,small:M.a.bool}},,,,,,,,,,,,,,,,,,,,,,,,function(a,l,n){"use strict";n.r(l),n.d(l,"Combobox",function(){return On}),n.d(l,"CreatableCombobox",function(){return kn}),n.d(l,"ComboboxOption",function(){return fn});var i=n(31),o=n.n(i),f=n(5),s=n.n(f),u=n(10),c=n.n(u),h=n(4),b=n.n(h),p=n(1),r=n.n(p),N=n(0),M=n.n(N),v=n(14),m=n(32),x=n.n(m),e=n(36),t=n.n(e),d=n(73),O=n(11),E="Close",D="CloseSelect",A="First",P="Last",Q="Next",j="Open",w="Previous",X="Type";function z(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1?arguments[1]:void 0,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return L?g.filter(function(Y){return Y.props.children.toString().toLowerCase().indexOf(L.toString().toLowerCase())===0&&k.indexOf(Y)<0}):g}function C(g,L,k){switch(k){case A:return 0;case P:return L;case w:return Math.max(0,g-1);case Q:return Math.min(L,g+1);default:return g}}function H(g){Object(d.a)(g,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}).forEach(function(L){var k=L.el,Y=L.top,Mn=L.left;k.scrollTop=Y,k.scrollLeft=Mn})}var B,y,I,T,S,U=n(9),F=n(54),G=n(40),_=n(6),V=n(8),nn=n(79),cn=n(3),q=n.n(cn),sn=n(2),Z=n.n(sn),K=n(16),ln=Z()(U.Flex)(B||(B=q()([`
  position: relative;
  border: 1px solid `,`;
  padding-right: `,`;
  padding-left: `,`;
  border-radius: `,`;
  background: `,`;

  `,`

  `,`
`])),function(g){var L=g.theme;return g.hasError?L.colors.danger600:L.colors.neutral200},function(g){return g.theme.spaces[3]},function(g){return g.theme.spaces[3]},function(g){return g.theme.borderRadius},function(g){return g.theme.colors.neutral0},function(g){var L=g.theme;return g.$disabled?`
    color: `.concat(L.colors.neutral600,`;
    background: `).concat(L.colors.neutral150,`;
  `):void 0},Object(K.c)()),dn=Z.a.div(y||(y=q()([`
  padding: 1px 2px;
  grid-area: 1 / 1 / 2 / 3;
`]))),hn=Z()(U.Flex)(I||(I=q()([`
  display: grid;
  flex: 1 1 0%;
  position: relative;
`]))),Nn=Z.a.input(T||(T=q()([`
  display: inline-grid;
  grid-area: 1 / 1 / 2 / 3;
  grid-template-columns: 0px min-content;
  background: transparent;
  min-height: `,`rem;
  border: none;
  flex: 1;
  font-size: `,`rem;
  color: `,`;
  outline: none;
  &:focus-visible {
    outline: none;
    box-shadow: none;
    outline-offset: 0;
  }
  &[aria-disabled='true'] {
    background: inherit;
    color: inherit;
    cursor: not-allowed;
  }
`])),2.5,.875,function(g){return g.theme.colors.neutral800}),zn=Z()(_.Box)(S||(S=q()([`
  width: 100%;
  border: none;
  text-align: left;
  outline-offset: -3px;
  `,`

  &:hover {
    background: `,`;
  }
`])),function(g){var L=g.isSelected,k=g.theme;return L&&"background: ".concat(k.colors.primary100,";")},function(g){return g.theme.colors.primary100}),Sn=["isSelected","children"],fn=Object(p.forwardRef)(function(g,L){var k=g.isSelected,Y=g.children,Mn=b()(g,Sn);return r.a.createElement(zn,s()({hasRadius:!0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,role:"option",background:"neutral0",isSelected:k,ref:L},Mn),r.a.createElement(V.Typography,{textColor:k?"primary600":"neutral800",fontWeight:k?"bold":null},Y))});fn.defaultProps={isSelected:!1},fn.propTypes={children:M.a.oneOfType([M.a.string,M.a.number]).isRequired,isSelected:M.a.bool},fn.displayName="ComboboxOption";var Dn=function(g){var L=g.options,k=g.activeOptionRef;return Object(p.useEffect)(function(){k.current&&H(k.current)},[]),L};Dn.defaultProps={activeOptionRef:void 0},Dn.propTypes={options:M.a.array.isRequired};var mn=n(15),Hn=n(23),Tn=n(18),de=["clearLabel","createMessage","disabled","hint","error","label","value","onChange","placeholder","creatable","loading","loadingMessage","onCreateOption","onInputChange","onLoadMore","noOptionsMessage","hasMoreItems","children","onClear"];function _n(g,L){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(g);L&&(Y=Y.filter(function(Mn){return Object.getOwnPropertyDescriptor(g,Mn).enumerable})),k.push.apply(k,Y)}return k}function Bn(g){for(var L=1;L<arguments.length;L++){var k=arguments[L]!=null?arguments[L]:{};L%2?_n(Object(k),!0).forEach(function(Y){o()(g,Y,k[Y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):_n(Object(k)).forEach(function(Y){Object.defineProperty(g,Y,Object.getOwnPropertyDescriptor(k,Y))})}return g}var On=function(g){var L=g.clearLabel,k=g.createMessage,Y=g.disabled,Mn=g.hint,Qn=g.error,yn=g.label,gn=g.value,Fn=g.onChange,fe=g.placeholder,vn=g.creatable,Un=g.loading,Me=g.loadingMessage,ge=g.onCreateOption,Vn=g.onInputChange,pe=g.onLoadMore,he=g.noOptionsMessage,Ne=g.hasMoreItems,xn=g.children,qn=g.onClear,me=b()(g,de),ye=Object(p.useState)(0),Zn=c()(ye,2),J=Zn[0],Xn=Zn[1],je=Object(p.useState)(null),Gn=c()(je,2),be=Gn[0],ze=Gn[1],De=Object(p.useState)(xn),Kn=c()(De,2),rn=Kn[0],$n=Kn[1],Oe=Object(p.useState)(!1),Jn=c()(Oe,2),jn=Jn[0],ve=Jn[1],xe=Object(p.useState)(""),ne=c()(xe,2),$=ne[0],wn=ne[1],bn=Object(p.useRef)(),En=Object(p.useRef)(!1),In=Object(p.useRef)(),ee=Object(p.useRef)(),Ie=Object(p.useRef)(),re=Object(p.useRef)(!0),en=Object(v.a)("combobox"),Yn="".concat(en,"-label");if(!yn&&!me["aria-label"])throw new Error('The Combobox component needs a "label" or an "aria-label" props');Object(p.useEffect)(function(){$n(z(xn,$))},[$,xn]),Object(p.useEffect)(function(){jn&&bn.current&&H(bn.current)},[J]),Object(p.useLayoutEffect)(function(){re.current&&(re.current=!1)},[gn]);var te,Rn,Te=jn?"".concat(en,"-").concat(J):"",oe=function(){Fn(null),wn("")},An=function(W){Xn(W)},ie=function(){En.current=!0},Pn=function(W){var R=rn[W];if(wn(""),R)return Fn(R.props.value),pn(!1);vn&&(ge($),pn(!1))},pn=function(W){var R=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];ve(W),R&&In.current.focus()},we=p.Children.toArray(rn).map(function(W,R){var on=J===R;return Object(p.cloneElement)(W,{id:"".concat(en,"-").concat(R),"aria-selected":be===R,"aria-posinset":R+1,"aria-setsize":p.Children.toArray(rn).length,ref:function(an){on&&(bn.current=an)},onClick:function(){return An(an=R),void Pn(an);var an},onMouseDown:ie,isSelected:on})});return r.a.createElement(mn.Field,{hint:Mn,error:Qn,id:en},r.a.createElement(Tn.VisuallyHidden,{"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text"},gn),r.a.createElement(Hn.Stack,{spacing:yn||Mn||Qn?1:0},yn&&r.a.createElement(mn.FieldLabel,{id:Yn},yn),r.a.createElement(ln,{ref:ee,$disabled:Y,hasError:Qn},r.a.createElement(hn,{wrap:"wrap"},!$&&gn&&r.a.createElement(dn,{id:"".concat(en,"-selected-value")},r.a.createElement(V.Typography,null,(Rn=xn.find(function(W){var R;return((R=W.props)===null||R===void 0?void 0:R.value.toLowerCase())===gn.toLowerCase()}).props)===null||Rn===void 0?void 0:Rn.children)),r.a.createElement(Nn,{"aria-activedescendant":Te,"aria-autocomplete":"list","aria-controls":"".concat(en,"-listbox"),"aria-disabled":Y,"aria-expanded":jn,"aria-haspopup":"listbox","aria-labelledby":yn?Yn:void 0,id:en,onBlur:Y?void 0:function(W){W.preventDefault(),gn&&!En.current&&wn(""),En.current?En.current=!1:pn(!1,!1)},onClick:Y?void 0:function(W){W.preventDefault(),pn(W,!0)},onInput:Y?void 0:function(W){Vn&&Vn(W);var R=In.current.value;$n(z(xn,R)),Xn(0),ze(null),$!==R&&wn(R),jn||pn(!0,!1)},onKeyDown:Y?void 0:function(W){var R=W.key,on=vn&&$?rn.length:rn.length-1,an=function(tn,Ee){return Ee||tn!==O.a.DOWN?tn===O.a.DOWN?Q:tn===O.a.UP?w:tn===O.a.HOME?A:tn===O.a.END?P:tn===O.a.ESCAPE?E:tn===O.a.ENTER?D:tn===O.a.BACKSPACE||tn===O.a.CLEAR||tn.length===1?X:void 0:j}(R,jn);switch(gn&&!$&&R===O.a.BACKSPACE&&oe(),an){case Q:return An(J===on?0:C(J,on,an));case w:return An(J===0?on:C(J,on,an));case P:case A:return An(J===on?0:C(J,on,an));case D:return W.preventDefault(),void Pn(J);case E:return W.preventDefault(),pn(!1);case j:return pn(!0);default:return}},placeholder:gn?"":fe,readOnly:Y,ref:In,role:"combobox",autoComplete:"off",autoCorrect:"off",spellCheck:"off",type:"text",value:$})),r.a.createElement(U.Flex,null,(gn||$)&&r.a.createElement(F.b,{id:"".concat(en,"-clear"),"aria-label":L,disabled:Y,paddingLeft:3,as:"button",onClick:function(){In.current.focus(),qn&&qn(),oe()},type:"button"},r.a.createElement(t.a,null)),r.a.createElement(F.a,{disabled:Y,paddingLeft:3,"aria-hidden":!0,as:"button",onClick:function(){In.current.focus(),pn(!0)},tabIndex:-1,type:"button"},r.a.createElement(x.a,null)))),r.a.createElement(mn.FieldHint,null),r.a.createElement(mn.FieldError,null)),jn&&r.a.createElement(G.Popover,{id:"".concat(en,"-popover"),source:ee,spacing:4,fullWidth:!0,intersectionId:"".concat(en,"-listbox-popover-intersection"),onReachEnd:Ne&&!Un?pe:void 0},r.a.createElement("div",{role:"listbox",ref:Ie,id:"".concat(en,"-listbox"),"aria-labelledby":yn?Yn:void 0},(Boolean(rn.length)||vn)&&r.a.createElement(r.a.Fragment,null,r.a.createElement(Dn,{activeOptionRef:bn,options:we}),(te=rn.findIndex(function(W){var R;return((R=W.props)===null||R===void 0?void 0:R.children)===$}),$&&te===-1&&vn&&r.a.createElement(fn,{isSelected:J===rn.length,ref:function(W){J===rn.length&&(bn.current=W)},onMouseDown:ie,onClick:function(){return Pn()},taindex:0},k($)))),!Boolean(rn.length)&&!vn&&!Un&&r.a.createElement(_.Box,{paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2,ref:bn},r.a.createElement(V.Typography,{textColor:"neutral800"},he($))),Un&&r.a.createElement(U.Flex,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2},r.a.createElement(nn.a,{small:!0},Me)))))},kn=function(g){return r.a.createElement(On,s()({},g,{creatable:!0}))};On.defaultProps=kn.defaultProps={"aria-label":void 0,clearLabel:"clear",creatable:!1,createMessage:function(g){return'Create "'.concat(g,'"')},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,onInputChange:void 0,onLoadMore:void 0,placeholder:"Select or enter a value",value:void 0},On.propTypes={"aria-label":M.a.string,children:M.a.oneOfType([M.a.arrayOf(M.a.node),M.a.node]),clearLabel:M.a.string,creatable:M.a.bool,createMessage:M.a.func,disabled:M.a.bool,error:M.a.string,hasMoreItems:M.a.bool,hint:M.a.string,label:M.a.string,loading:M.a.bool,loadingMessage:M.a.string,noOptionsMessage:M.a.func,onChange:M.a.func.isRequired,onClear:M.a.func,onCreateOption:M.a.func,onInputChange:M.a.func,onLoadMore:M.a.func,placeholder:M.a.string,value:M.a.string},kn.propTypes=Bn(Bn({},On.propTypes),{},{onCreateOption:M.a.func.isRequired})}])})}}]);
