(self.webpackChunk_digicommerce_cms_admin=self.webpackChunk_digicommerce_cms_admin||[]).push([[4715],{14715:(An,ie,sn)=>{"use strict";An.exports=sn(83885)},83885:function(An,ie,sn){var ae=sn(98399);(function(Pn,Ln){An.exports=Ln(sn(32735),sn(19615),sn(60672),sn(12788),sn(94009))})(this,function(Pn,Ln,ue,ce,se){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,M){n.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:M})},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 M=Object.create(null);if(n.r(M),Object.defineProperty(M,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var s in i)n.d(M,s,function(c){return i[c]}.bind(null,s));return M},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=Pn},function(a,l){a.exports=Ln},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,M){if(o==null)return{};var s,c,u=i(o,M);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);for(c=0;c<h.length;c++)s=h[c],M.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(o,s)&&(u[s]=o[s])}return u},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),M=n.n(o),s=n(2),c=n.n(s),u=n(7),h=n(1),j=n.n(h),p=n(0),r=n.n(p),N=function(e){return j.a.createElement("div",e)},f={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=f,N.propTypes=v;var m={color:!0},x=c.a.div.withConfig({shouldForwardProp:function(e,t){return!m[e]&&t(e)}})(i||(i=M()([`
  // 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(u.a)("padding",d,t)},function(e){var t=e.theme,d=e.paddingTop;return Object(u.a)("padding-top",d,t)},function(e){var t=e.theme,d=e.paddingRight;return Object(u.a)("padding-right",d,t)},function(e){var t=e.theme,d=e.paddingBottom;return Object(u.a)("padding-bottom",d,t)},function(e){var t=e.theme,d=e.paddingLeft;return Object(u.a)("padding-left",d,t)},function(e){var t=e.theme,d=e.marginLeft;return Object(u.a)("margin-left",d,t)},function(e){var t=e.theme,d=e.marginRight;return Object(u.a)("margin-right",d,t)},function(e){var t=e.theme,d=e.marginTop;return Object(u.a)("margin-top",d,t)},function(e){var t=e.theme,d=e.marginBottom;return Object(u.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,A=e.borderWidth;if(d&&!O&&!A)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=f,x.propTypes=v},function(a,l){function n(){return a.exports=n=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var M=arguments[o];for(var s in M)Object.prototype.hasOwnProperty.call(M,s)&&(i[s]=M[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";var i=n(10),o=n.n(i),M=n(13),s=n.n(M);l.a=function(c,u,h){var j=u;if(Array.isArray(u)||s()(u)!=="object"||(j=[u==null?void 0:u.desktop,u==null?void 0:u.tablet,u==null?void 0:u.mobile]),j!==void 0){if(Array.isArray(j)){var p=j,r=o()(p,3),N=r[0],f=r[1],v=r[2],m="".concat(c,": ").concat(h.spaces[N],";");return f!==void 0&&(m+="".concat(h.mediaQueries.tablet,`{
          `).concat(c,": ").concat(h.spaces[f],`;
        }`)),v!==void 0&&(m+="".concat(h.mediaQueries.mobile,`{
          `).concat(c,": ").concat(h.spaces[v],`;
        }`)),m}var x=h.spaces[j]||j;return"".concat(c,": ").concat(x,";")}}},function(a,l,n){"use strict";n.r(l),n.d(l,"Typography",function(){return x});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s),u=["alpha","beta","delta","epsilon","omega","pi","sigma"],h=n(1),j=n.n(h),p=n(0),r=n.n(p),N=function(e){return j.a.createElement("div",e)},f={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(u)};N.defaultProps=f,N.propTypes=v;var m={fontSize:!0,fontWeight:!0},x=c.a.span.withConfig({shouldForwardProp:function(e,t){return!m[e]&&t(e)}})(i||(i=M()([`
  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=f,x.propTypes=v},function(a,l,n){"use strict";n.r(l),n.d(l,"Flex",function(){return e});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s),u=n(5),h=n(7),j=n(1),p=n.n(j),r=n(0),N=n.n(r),f=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};f.defaultProps=v,f.propTypes=m;var x={direction:!0},e=c()(u.Box).withConfig({shouldForwardProp:function(t,d){return!x[t]&&d(t)}})(i||(i=M()([`
  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),M=n(22),s=n(27);a.exports=function(c,u){return i(c)||o(c,u)||M(c,u)||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 M});var i=n(1),o=Object(i.createContext)({error:void 0,hint:void 0,name:"",id:""}),M=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 M});var i=n(1),o=0,M=function(s,c){return Object(i.useRef)(c||"".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 E.b}),n.d(l,"FieldInput",function(){return E.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 _});var i=n(4),o=n.n(i),M=n(1),s=n.n(M),c=n(0),u=n.n(c),h=n(12),j=n(14),p=["children","name","error","hint","id"],r=function(y){var T=y.children,w=y.name,S=y.error,U=y.hint,F=y.id,G=o()(y,p),H=Object(j.a)("field",F);return s.a.createElement("div",G,s.a.createElement(h.a.Provider,{value:{name:w,id:H,error:S,hint:U}},T))};r.defaultProps={error:void 0,hint:void 0,id:void 0,name:void 0},r.propTypes={children:u.a.node.isRequired,error:u.a.string,hint:u.a.oneOfType([u.a.string,u.a.node,u.a.arrayOf(u.a.node)]),id:u.a.oneOfType([u.a.string,u.a.number]),name:u.a.string};var N,f,v=n(6),m=n.n(v),x=n(3),e=n.n(x),t=n(2),d=n.n(t),O=n(9),A=n(8),D=["children","required","action"],L=d()(A.Typography)(N||(N=e()([`
  line-height: 0;
`]))),R=d()(O.Flex)(f||(f=e()([`
  line-height: 0;

  svg path {
    fill: `,`;
  }
`])),function(y){return y.theme.colors.neutral500}),Q=function(y){var T=y.children,w=y.required,S=y.action,U=o()(y,D),F=Object(h.b)().id;return s.a.createElement(A.Typography,m()({variant:"pi",textColor:"neutral800",htmlFor:F,fontWeight:"bold",as:"label",required:w},U),s.a.createElement(O.Flex,{alignItems:"center"},T,w&&s.a.createElement(L,{textColor:"danger600"},"*"),S&&s.a.createElement(R,{marginLeft:1},S)))};Q.defaultProps={required:!1,action:void 0},Q.propTypes={action:u.a.element,children:u.a.node.isRequired,required:u.a.bool};var b,E=n(34),X=function(){var y=Object(h.b)(),T=y.id,w=y.hint,S=y.error;return!w||S?null:s.a.createElement(A.Typography,{variant:"pi",as:"p",id:"".concat(T,"-hint"),textColor:"neutral600"},w)},z=function(){var y=Object(h.b)(),T=y.id,w=y.error;return w?s.a.createElement(A.Typography,{variant:"pi",as:"p",id:"".concat(T,"-error"),textColor:"danger600","data-strapi-field-error":!0},w):null},C=["label","children"],B=d.a.button(b||(b=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;
`]))),_=function(y){var T=y.label,w=y.children,S=o()(y,C);return s.a.createElement(B,m()({"aria-label":T,type:"button"},S),w)};_.propTypes={children:u.a.node.isRequired,label:u.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 M});var i=function(s){return function(c){var u=c.theme,h=c.size;return u.sizes[s][h]}},o=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&";return function(c){var u=c.theme,h=c.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?u.colors.danger600:u.colors.primary600,`;
        box-shadow: `).concat(h?u.colors.danger600:u.colors.primary600,` 0px 0px 0px 2px;
      }
    `)}},M=function(s){var c=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(c.colors.primary600,`;
    }
  }
`)}},,function(a,l,n){"use strict";n.r(l),n.d(l,"VisuallyHidden",function(){return c});var i,o=n(3),M=n.n(o),s=n(2),c=n.n(s).a.div(i||(i=M()([`
  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 M(){}M.resetWarningCache=o,a.exports=function(){function s(h,j,p,r,N,f){if(f!==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 c(){return s}s.isRequired=s;var u={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:c,element:s,elementType:s,instanceOf:c,node:s,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:M,resetWarningCache:o};return u.PropTypes=u,u}},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,M=new Array(i);o<i;o++)M[o]=n[o];return M},a.exports.default=a.exports,a.exports.__esModule=!0},function(a,l,n){var i=n(21);a.exports=function(o,M){if(o){if(typeof o=="string")return i(o,M);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,M):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 A});var i,o,M=n(6),s=n.n(M),c=n(4),u=n.n(c),h=n(3),j=n.n(h),p=n(1),r=n.n(p),N=n(0),f=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,L){return!t[D]&&L(D)}})(i||(i=j()([`
  & > * {
    margin-top: 0;
    margin-bottom: 0;
  }

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

  & > * + * {
    margin-left: `,`;
  }
`])),function(D){var L=D.theme,R=D.spacing;return L.spaces[R]}),A=Object(p.forwardRef)(function(D,L){var R=D.horizontal,Q=D.spacing,b=D.size,E=u()(D,e);return b&&ae.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'),R?r.a.createElement(O,s()({ref:L,spacing:Q||b},E)):r.a.createElement(d,s()({direction:"column",alignItems:"stretch",ref:L,spacing:Q||b},E))});A.displayName="Stack",A.defaultProps={horizontal:!1,size:void 0,spacing:void 0},A.propTypes={horizontal:f.a.bool,size:f.a.number,spacing:f.a.number}},function(a,l){a.exports=function(n,i){if(n==null)return{};var o,M,s={},c=Object.keys(n);for(M=0;M<c.length;M++)o=c[M],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 M,s,c=[],u=!0,h=!1;try{for(o=o.call(n);!(u=(M=o.next()).done)&&(c.push(M.value),!i||c.length!==i);u=!0);}catch(j){h=!0,s=j}finally{try{u||o.return==null||o.return()}finally{if(h)throw s}}return c}},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 c});var i=n(10),o=n.n(i),M=n(1),s=n(35),c=function(u){var h=u.children,j=Object(M.useRef)(null),p=Object(M.useState)(!1),r=o()(p,2),N=r[0],f=r[1];return Object(M.useLayoutEffect)(function(){return j.current=document.createElement("div"),j.current.setAttribute("data-react-portal","true"),document.body.appendChild(j.current),f(!0),function(){var v;(v=j.current)===null||v===void 0||v.remove()}},[]),N&&j.current?Object(s.createPortal)(h,j.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=ue},,function(a,l,n){"use strict";n.d(l,"b",function(){return R}),n.d(l,"a",function(){return Q});var i,o,M=n(6),s=n.n(M),c=n(4),u=n.n(c),h=n(3),j=n.n(h),p=n(1),r=n.n(p),N=n(2),f=n.n(N),v=n(0),m=n.n(v),x=n(28),e=n(16),t=n(12),d=n(9),O=n(5),A=["endAction","startAction","disabled","onChange","size"],D={S:6.5,M:10.5},L=f.a.input(i||(i=j()([`
  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(b){return b.theme.borderRadius},function(b){var E=b.size;return"".concat(D[E]/16,"rem")},function(b){var E=b.theme;return b.hasLeftAction?0:E.spaces[4]},function(b){var E=b.theme;return b.hasRightAction?0:E.spaces[4]},function(b){var E=b.size;return"".concat(D[E]/16,"rem")},function(b){return b["aria-disabled"]?"not-allowed":void 0},function(b){return b.theme.colors.neutral800},.875,function(b){return b.theme.colors.neutral500}),R=f()(d.Flex)(o||(o=j()([`
  border: 1px solid `,`;
  border-radius: `,`;
  background: `,`;
  `,`

  `,`
`])),function(b){var E=b.theme;return b.hasError?E.colors.danger600:E.colors.neutral200},function(b){return b.theme.borderRadius},function(b){return b.theme.colors.neutral0},Object(e.c)(),function(b){var E=b.theme;return b.disabled?`
    color: `.concat(E.colors.neutral600,`;
    background: `).concat(E.colors.neutral150,`;
  
  `):void 0}),Q=Object(p.forwardRef)(function(b,E){var X,z=b.endAction,C=b.startAction,B=b.disabled,_=b.onChange,y=b.size,T=u()(b,A),w=Object(t.b)(),S=w.id,U=w.error,F=w.hint,G=w.name;U?X="".concat(S,"-error"):F&&(X="".concat(S,"-hint"));var H=Boolean(U);return r.a.createElement(R,{size:y,justifyContent:"space-between",hasError:H,disabled:B},C&&r.a.createElement(O.Box,{paddingLeft:3,paddingRight:2},C),r.a.createElement(L,s()({id:S,name:G,ref:E,"aria-describedby":X,"aria-invalid":H,"aria-disabled":B,hasLeftAction:Boolean(C),hasRightAction:Boolean(z),onChange:function(V){B||_(V)},size:y},T)),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=ce},function(a,l){a.exports=se},,,,function(a,l,n){"use strict";n.r(l),n.d(l,"position",function(){return D}),n.d(l,"Popover",function(){return b});var i,o,M=n(6),s=n.n(M),c=n(10),u=n.n(c),h=n(4),j=n.n(h),p=n(3),r=n.n(p),N=n(1),f=n.n(N),v=n(0),m=n.n(v),x=n(2),e=n.n(x),t=n(5),d=n(30),O=n(48),A=["source","children","spacing","fullWidth","onReachEnd","intersectionId","centered"],D=function(z,C,B,_){var y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,T=z.getBoundingClientRect(),w=T.top+T.height+window.pageYOffset+y,S=T.left+window.pageXOffset;if(!C)return{left:S,top:w,width:B?T.width:void 0};var U=C.getBoundingClientRect();if(_){var F=10,G=U.width+F,H=(T.width-G)/2;S=T.left+H+window.pageXOffset}U.left<0?S=T.left+window.pageXOffset:U.left+U.width>window.innerWidth&&(S=window.innerWidth-U.width-20);var V=window.innerHeight+window.pageYOffset;if(w+U.height+y>V){var nn=10;w=window.pageYOffset+T.top-U.height-nn-y}return{left:S,top:w,width:B?T.width:void 0}},L=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}),R=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,B,_,y,T,w,S=z.source,U=z.children,F=z.spacing,G=z.fullWidth,H=z.onReachEnd,V=z.intersectionId,nn=z.centered,ln=j()(z,A),q=Object(N.useRef)(null),dn=Object(N.useState)(D(S.current,q.current,G,nn,F)),Z=u()(dn,2),K=Z[0],fn=K.left,Mn=K.top,Nn=K.width,mn=Z[1];Object(O.a)([S,q],function(){return mn(D(S.current,q.current,G,nn,F))}),C=q,B=H,_={selectorToWatch:"#".concat(V),skipWhen:!V||!H},y=_.selectorToWatch,T=_.skipWhen,w=T!==void 0&&T,Object(N.useEffect)(function(){if(!w){var Cn={root:C.current,rootMargin:"0px"},gn=new IntersectionObserver(function(yn){yn.forEach(function(Tn){Tn.isIntersecting&&C.current.scrollHeight>C.current.clientHeight&&B(Tn)})},Cn),On=C.current.querySelector(y);return gn.observe(On),function(){gn.disconnect()}}},[w,B,y]);var Dn={left:"".concat(fn,"px"),top:"".concat(Mn,"px"),width:Nn?"".concat(Nn,"px"):void 0};return f.a.createElement(L,{style:Dn,hasRadius:!0,background:"neutral0",padding:1},f.a.createElement(R,s()({ref:q},ln),U,V&&H&&f.a.createElement(t.Box,{id:V,width:"100%",height:"1px"})))},b=function(z){return f.a.createElement(d.Portal,null,f.a.createElement(Q,z))},E={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=E,b.propTypes=X,b.defaultProps=E},,,,,,,,function(a,l,n){"use strict";n.d(l,"a",function(){return o});var i=n(1),o=function(M,s){Object(i.useEffect)(function(){var c=new ResizeObserver(s);return Array.isArray(M)?M.map(function(u){u.current&&c.observe(u.current)}):M.current&&c.observe(M.current),function(){c.disconnect()}},[])}},,,,,,,function(a,l,n){"use strict";n.d(l,"c",function(){return N}),n.d(l,"b",function(){return f}),n.d(l,"a",function(){return v});var i,o,M,s=n(3),c=n.n(s),u=n(2),h=n.n(u),j=n(5),p=n(9),r=n(16),N=h()(p.Flex)(i||(i=c()([`
  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)()),f=h()(j.Box)(o||(o=c()([`
  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()(f)(M||(M=c()([`
  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(c){return typeof c=="object"&&c!=null&&c.nodeType===1}function o(c,u){return(!u||c!=="hidden")&&c!=="visible"&&c!=="clip"}function M(c,u){if(c.clientHeight<c.scrollHeight||c.clientWidth<c.scrollWidth){var h=getComputedStyle(c,null);return o(h.overflowY,u)||o(h.overflowX,u)||function(j){var p=function(r){if(!r.ownerDocument||!r.ownerDocument.defaultView)return null;try{return r.ownerDocument.defaultView.frameElement}catch(N){return null}}(j);return!!p&&(p.clientHeight<j.scrollHeight||p.clientWidth<j.scrollWidth)}(c)}return!1}function s(c,u,h,j,p,r,N,f){return r<c&&N>u||r>c&&N<u?0:r<=c&&f<=h||N>=u&&f>=h?r-c-j:N>u&&f<h||r<c&&f>h?N-u+p:0}l.a=function(c,u){var h=window,j=u.scrollMode,p=u.block,r=u.inline,N=u.boundary,f=u.skipOverflowHiddenElements,v=typeof N=="function"?N:function(Dn){return Dn!==N};if(!i(c))throw new TypeError("Invalid target");for(var m=document.scrollingElement||document.documentElement,x=[],e=c;i(e)&&v(e);){if((e=e.parentElement)===m){x.push(e);break}e!=null&&e===document.body&&M(e)&&!M(document.documentElement)||e!=null&&M(e,f)&&x.push(e)}for(var t=h.visualViewport?h.visualViewport.width:innerWidth,d=h.visualViewport?h.visualViewport.height:innerHeight,O=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,D=c.getBoundingClientRect(),L=D.height,R=D.width,Q=D.top,b=D.right,E=D.bottom,X=D.left,z=p==="start"||p==="nearest"?Q:p==="end"?E:Q+L/2,C=r==="center"?X+R/2:r==="end"?b:X,B=[],_=0;_<x.length;_++){var y=x[_],T=y.getBoundingClientRect(),w=T.height,S=T.width,U=T.top,F=T.right,G=T.bottom,H=T.left;if(j==="if-needed"&&Q>=0&&X>=0&&E<=d&&b<=t&&Q>=U&&E<=G&&X>=H&&b<=F)return B;var V=getComputedStyle(y),nn=parseInt(V.borderLeftWidth,10),ln=parseInt(V.borderTopWidth,10),q=parseInt(V.borderRightWidth,10),dn=parseInt(V.borderBottomWidth,10),Z=0,K=0,fn="offsetWidth"in y?y.offsetWidth-y.clientWidth-nn-q:0,Mn="offsetHeight"in y?y.offsetHeight-y.clientHeight-ln-dn:0;if(m===y)Z=p==="start"?z:p==="end"?z-d:p==="nearest"?s(A,A+d,d,ln,dn,A+z,A+z+L,L):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+R,R),Z=Math.max(0,Z+A),K=Math.max(0,K+O);else{Z=p==="start"?z-U-ln:p==="end"?z-G+dn+Mn:p==="nearest"?s(U,G,w,ln,dn+Mn,z,z+L,L):z-(U+w/2)+Mn/2,K=r==="start"?C-H-nn:r==="center"?C-(H+S/2)+fn/2:r==="end"?C-F+q+fn:s(H,F,S,nn,q+fn,C,C+R,R);var Nn=y.scrollLeft,mn=y.scrollTop;z+=mn-(Z=Math.max(0,Math.min(mn+Z,y.scrollHeight-w+Mn))),C+=Nn-(K=Math.max(0,Math.min(Nn+K,y.scrollWidth-S+fn)))}B.push({el:y,top:Z,left:K})}return B}},,,,,function(a,l,n){"use strict";n.d(l,"a",function(){return O});var i,o,M=n(6),s=n.n(M),c=n(4),u=n.n(c),h=n(3),j=n.n(h),p=n(1),r=n.n(p),N=n(0),f=n.n(N),v=n(2),m=n.n(v),x=n(18),e=["children","small"],t=Object(v.keyframes)(i||(i=j()([`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
`]))),d=m.a.img(o||(o=j()([`
  animation: `,` 1s infinite linear;
  will-change: transform;
  `,`
`])),t,function(A){var D=A.small,L=A.theme;return D&&"width: ".concat(L.spaces[6],"; height: ").concat(L.spaces[6],";")}),O=Object(p.forwardRef)(function(A,D){var L=A.children,R=A.small,Q=u()(A,e);return r.a.createElement("div",s()({role:"alert","aria-live":"assertive",ref:D},Q),r.a.createElement(x.VisuallyHidden,null,L),r.a.createElement(d,{src:"data:image/svg+xml;base64, ","aria-hidden":!0,small:R}))});O.displayName="Loader",O.defaultProps={small:!1},O.propTypes={children:f.a.node.isRequired,small:f.a.bool}},,,,,,,,,,,,,,,,,,,,,,,,function(a,l,n){"use strict";n.r(l),n.d(l,"Combobox",function(){return vn}),n.d(l,"CreatableCombobox",function(){return Sn}),n.d(l,"ComboboxOption",function(){return gn});var i=n(31),o=n.n(i),M=n(6),s=n.n(M),c=n(10),u=n.n(c),h=n(4),j=n.n(h),p=n(1),r=n.n(p),N=n(0),f=n.n(N),v=n(14),m=n(32),x=n.n(m),e=n(36),t=n.n(e),d=n(74),O=n(11),A="Close",D="CloseSelect",L="First",R="Last",Q="Next",b="Open",E="Previous",X="Type";function z(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1?arguments[1]:void 0,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],W=String(I!=null?I:"").toLowerCase();return W?g.filter(function(rn){return rn.props.children.toString().toLowerCase().includes(W)&&k.indexOf(rn)<0}):g}function C(g,I,k){switch(k){case L:return 0;case R:return I;case E:return Math.max(0,g-1);case Q:return Math.min(I,g+1);default:return g}}function B(g){Object(d.a)(g,{scrollMode:"if-needed",block:"nearest",inline:"nearest"}).forEach(function(I){var k=I.el,W=I.top,rn=I.left;k.scrollTop=W,k.scrollLeft=rn})}var _,y,T,w,S,U=n(9),F=n(55),G=n(40),H=n(5),V=n(8),nn=n(79),ln=n(3),q=n.n(ln),dn=n(2),Z=n.n(dn),K=n(16),fn=Z()(U.Flex)(_||(_=q()([`
  position: relative;
  border: 1px solid `,`;
  padding-right: `,`;
  padding-left: `,`;
  border-radius: `,`;
  background: `,`;

  `,`

  `,`
`])),function(g){var I=g.theme;return g.hasError?I.colors.danger600:I.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 I=g.theme;return g.$disabled?`
    color: `.concat(I.colors.neutral600,`;
    background: `).concat(I.colors.neutral150,`;
  `):void 0},Object(K.c)()),Mn=Z.a.div(y||(y=q()([`
  padding: 1px 2px;
  grid-area: 1 / 1 / 2 / 3;
`]))),Nn=Z()(U.Flex)(T||(T=q()([`
  display: grid;
  flex: 1 1 0%;
  position: relative;
`]))),mn=Z.a.input(w||(w=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}),Dn=Z()(H.Box)(S||(S=q()([`
  width: 100%;
  border: none;
  text-align: left;
  outline-offset: -3px;
  `,`

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