@mmb-digital/design-system-web 0.1.50 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1671,10 +1671,6 @@ function jc(e,t,n){return t=ou(t),function(e,t){if(t&&("object"==typeof t||"func
1671
1671
  div[role='option'] {
1672
1672
  display: flex;
1673
1673
  align-items: center;
1674
-
1675
- svg {
1676
- margin-right: ${({theme:e})=>e.spacing.xxs};
1677
- }
1678
1674
  }
1679
1675
  }
1680
1676
  `,gv=b.div`
@@ -1692,20 +1688,19 @@ function jc(e,t,n){return t=ou(t),function(e,t){if(t&&("object"==typeof t||"func
1692
1688
  overflow: hidden;
1693
1689
  text-overflow: ellipsis;
1694
1690
  white-space: nowrap;
1695
-
1696
- svg {
1697
- margin-right: ${({theme:e})=>e.spacing.xxs};
1698
- }
1699
- `;var vv;!function(e){e.ASYNC_CREATABLE_SELECT="AsyncCreatableSelect",e.ASYNC_SELECT="AsyncSelect",e.CREATABLE_SELECT="CreatableSelect",e.REACT_SELECT="ReactSelect"}(vv||(vv={}));const yv={Control:e=>{const{children:n,innerProps:r,innerRef:o,isDisabled:a,isFocused:i,selectProps:s}=e,l="isError"in s&&"boolean"==typeof s.isError&&s.isError;return t.createElement(mv,Object.assign({"aria-disabled":a||void 0,isDisabled:a,isError:l,isFocused:i,ref:o},r),n)},DropdownIndicator:e=>{const{isFocused:n}=e;return t.createElement(gv,{isFocused:n},t.createElement(fv,null))},IndicatorSeparator:null,Option:e=>{var n;const{children:r,data:o}=e,a=da(e,["children","data"]);return t.createElement(tb.Option,Object.assign({data:o},a),null!==(n=o.icon)&&void 0!==n?n:null," ",r)},SingleValue:e=>{var n;const{children:r,data:o}=e;return t.createElement(bv,null,null!==(n=o.icon)&&void 0!==n?n:null,r)}},wv=f(((e,n)=>{const r=y(),{customComponents:o,isError:a=!1,options:i,type:s}=e,l=da(e,["customComponents","isError","options","type"]);let c;switch(s){case vv.ASYNC_CREATABLE_SELECT:c=pv;break;case vv.CREATABLE_SELECT:c=cv;break;case vv.ASYNC_SELECT:c=hv;break;default:c=ov}return t.createElement(c,Object.assign({components:Object.assign(Object.assign({},yv),o),isClearable:!1,isSearchable:!1,options:i,ref:n,theme:e=>Object.assign(Object.assign({},e),{colors:Object.assign(Object.assign({},e.colors),{primary:!0===a?r.colors.fg.error.light:r.colors.border.brand.default.light,neutral60:!0===a?r.colors.fg.error.light:r.colors.border.neutral.default.light})})},l,{isError:a}))}));wv.displayName="SelectBase";var xv=e=>null==e;var kv=e=>!xv(e)&&!Array.isArray(e)&&(e=>"object"==typeof e)(e)&&!(e=>e instanceof Date)(e),Cv=e=>kv(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,Ev=e=>{const t=e.constructor&&e.constructor.prototype;return kv(t)&&t.hasOwnProperty("isPrototypeOf")},Iv="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Dv(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Iv&&(e instanceof Blob||e instanceof FileList)||!n&&!kv(e))return e;if(t=n?[]:{},n||Ev(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Dv(e[n]));else t=e}return t}var Sv=e=>Array.isArray(e)?e.filter(Boolean):[],Mv=e=>void 0===e,Lv=(e,t,n)=>{if(!t||!kv(e))return n;const r=Sv(t.split(/[,[\].]+?/)).reduce(((e,t)=>xv(e)?e:e[t]),e);return Mv(r)||r===e?Mv(e[t])?n:e[t]:r},Tv=e=>"boolean"==typeof e;const Av="blur",Nv="change",Ov="all",Pv=t.createContext(null),Rv=()=>t.useContext(Pv);var Wv=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Ov&&(t._proxyFormState[o]=!r||Ov),n&&(n[o]=!0),e[o]}});return o},Bv=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return kv(i=a)&&!Object.keys(i).length||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!r||Ov)));var i},Gv=(e,t,n)=>{return!e||!t||e===t||(r=e,Array.isArray(r)?r:[r]).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));var r};function Fv(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}var Hv=(e,t,n,r,o)=>"string"==typeof e?(r&&t.watch.add(e),Lv(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),Lv(n,e)))):(r&&(t.watchAll=!0),n);var _v=(e,t,n)=>{let r=-1;const o=(e=>/^\w*$/.test(e))(t)?[t]:Sv(t.replace(/["|']|\]/g,"").split(/\.|\[/));const a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=kv(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e};function Vv(e){const n=Rv(),{name:r,disabled:o,control:a=n.control,shouldUnregister:i}=e,s=((e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)))(a._names.array,r),l=function(e){const n=Rv(),{control:r=n.control,name:o,defaultValue:a,disabled:i,exact:s}=e||{},l=t.useRef(o);l.current=o,Fv({disabled:i,subject:r._subjects.values,next:e=>{Gv(l.current,e.name,s)&&u(Dv(Hv(l.current,r._names,e.values||r._formValues,!1,a)))}});const[c,u]=t.useState(r._getWatch(o,a));return t.useEffect((()=>r._removeUnmounted())),c}({control:a,name:r,defaultValue:Lv(a._formValues,r,Lv(a._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){const n=Rv(),{control:r=n.control,disabled:o,name:a,exact:i}=e||{},[s,l]=t.useState(r._formState),c=t.useRef(!0),u=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(a);return d.current=a,Fv({disabled:o,next:e=>c.current&&Gv(d.current,e.name,i)&&Bv(e,u.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),t.useEffect((()=>(c.current=!0,u.current.isValid&&r._updateValid(!0),()=>{c.current=!1})),[r]),Wv(s,r,u.current,!1)}({control:a,name:r}),u=t.useRef(a.register(r,{...e.rules,value:l,...Tv(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect((()=>{const e=a._options.shouldUnregister||i,t=(e,t)=>{const n=Lv(a._fields,e);n&&(n._f.mount=t)};if(t(r,!0),e){const e=Dv(Lv(a._options.defaultValues,r));_v(a._defaultValues,r,e),Mv(Lv(a._formValues,r))&&_v(a._formValues,r,e)}return()=>{(s?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}}),[r,a,s,i]),t.useEffect((()=>{Lv(a._fields,r)&&a._updateDisabledField({disabled:o,fields:a._fields,name:r,value:Lv(a._fields,r)._f.value})}),[o,r,a]),{field:{name:r,value:l,...Tv(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:t.useCallback((e=>u.current.onChange({target:{value:Cv(e),name:r},type:Nv})),[r]),onBlur:t.useCallback((()=>u.current.onBlur({target:{value:Lv(a._formValues,r),name:r},type:Av})),[r,a]),ref:e=>{const t=Lv(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Lv(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Lv(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Lv(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Lv(c.validatingFields,r)},error:{enumerable:!0,get:()=>Lv(c.errors,r)}})}}const Xv=e=>e.render(Vv(e)),Yv=b(wv)`
1691
+ `,vv=b.div`
1692
+ display: flex;
1693
+ margin-right: ${e=>e.theme.spacing.xxs};
1694
+ `;var yv;!function(e){e.ASYNC_CREATABLE_SELECT="AsyncCreatableSelect",e.ASYNC_SELECT="AsyncSelect",e.CREATABLE_SELECT="CreatableSelect",e.REACT_SELECT="ReactSelect"}(yv||(yv={}));const wv={Control:e=>{const{children:n,innerProps:r,innerRef:o,isDisabled:a,isFocused:i,selectProps:s}=e,l="isError"in s&&"boolean"==typeof s.isError&&s.isError;return t.createElement(mv,Object.assign({"aria-disabled":a||void 0,isDisabled:a,isError:l,isFocused:i,ref:o},r),n)},DropdownIndicator:e=>{const{isFocused:n}=e;return t.createElement(gv,{isFocused:n},t.createElement(fv,null))},IndicatorSeparator:null,Option:e=>{const{children:n,data:r}=e,o=da(e,["children","data"]);return t.createElement(tb.Option,Object.assign({data:r},o),r.icon?t.createElement(vv,null,r.icon):null,n)},SingleValue:e=>{const{children:n,data:r}=e;return t.createElement(bv,null,r.icon?t.createElement(vv,null,r.icon):null,n)}},xv=f(((e,n)=>{const r=y(),{customComponents:o,isError:a=!1,options:i,type:s}=e,l=da(e,["customComponents","isError","options","type"]);let c;switch(s){case yv.ASYNC_CREATABLE_SELECT:c=pv;break;case yv.CREATABLE_SELECT:c=cv;break;case yv.ASYNC_SELECT:c=hv;break;default:c=ov}return t.createElement(c,Object.assign({components:Object.assign(Object.assign({},wv),o),isClearable:!1,isSearchable:!1,options:i,ref:n,theme:e=>Object.assign(Object.assign({},e),{colors:Object.assign(Object.assign({},e.colors),{primary:!0===a?r.colors.fg.error.light:r.colors.border.brand.default.light,neutral60:!0===a?r.colors.fg.error.light:r.colors.border.neutral.default.light})})},l,{isError:a}))}));xv.displayName="SelectBase";var kv=e=>null==e;var Cv=e=>!kv(e)&&!Array.isArray(e)&&(e=>"object"==typeof e)(e)&&!(e=>e instanceof Date)(e),Ev=e=>Cv(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,Iv=e=>{const t=e.constructor&&e.constructor.prototype;return Cv(t)&&t.hasOwnProperty("isPrototypeOf")},Dv="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Sv(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Dv&&(e instanceof Blob||e instanceof FileList)||!n&&!Cv(e))return e;if(t=n?[]:{},n||Iv(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Sv(e[n]));else t=e}return t}var Mv=e=>Array.isArray(e)?e.filter(Boolean):[],Lv=e=>void 0===e,Tv=(e,t,n)=>{if(!t||!Cv(e))return n;const r=Mv(t.split(/[,[\].]+?/)).reduce(((e,t)=>kv(e)?e:e[t]),e);return Lv(r)||r===e?Lv(e[t])?n:e[t]:r},Av=e=>"boolean"==typeof e;const Nv="blur",Ov="change",Pv="all",Rv=t.createContext(null),Wv=()=>t.useContext(Rv);var Bv=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Pv&&(t._proxyFormState[o]=!r||Pv),n&&(n[o]=!0),e[o]}});return o},Gv=(e,t,n,r)=>{n(e);const{name:o,...a}=e;return Cv(i=a)&&!Object.keys(i).length||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!r||Pv)));var i},Fv=(e,t,n)=>{return!e||!t||e===t||(r=e,Array.isArray(r)?r:[r]).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));var r};function Hv(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}var _v=(e,t,n,r,o)=>"string"==typeof e?(r&&t.watch.add(e),Tv(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),Tv(n,e)))):(r&&(t.watchAll=!0),n);var Vv=(e,t,n)=>{let r=-1;const o=(e=>/^\w*$/.test(e))(t)?[t]:Mv(t.replace(/["|']|\]/g,"").split(/\.|\[/));const a=o.length,i=a-1;for(;++r<a;){const t=o[r];let a=n;if(r!==i){const n=e[t];a=Cv(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=a,e=e[t]}return e};function Xv(e){const n=Wv(),{name:r,disabled:o,control:a=n.control,shouldUnregister:i}=e,s=((e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)))(a._names.array,r),l=function(e){const n=Wv(),{control:r=n.control,name:o,defaultValue:a,disabled:i,exact:s}=e||{},l=t.useRef(o);l.current=o,Hv({disabled:i,subject:r._subjects.values,next:e=>{Fv(l.current,e.name,s)&&u(Sv(_v(l.current,r._names,e.values||r._formValues,!1,a)))}});const[c,u]=t.useState(r._getWatch(o,a));return t.useEffect((()=>r._removeUnmounted())),c}({control:a,name:r,defaultValue:Tv(a._formValues,r,Tv(a._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){const n=Wv(),{control:r=n.control,disabled:o,name:a,exact:i}=e||{},[s,l]=t.useState(r._formState),c=t.useRef(!0),u=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(a);return d.current=a,Hv({disabled:o,next:e=>c.current&&Fv(d.current,e.name,i)&&Gv(e,u.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),t.useEffect((()=>(c.current=!0,u.current.isValid&&r._updateValid(!0),()=>{c.current=!1})),[r]),Bv(s,r,u.current,!1)}({control:a,name:r}),u=t.useRef(a.register(r,{...e.rules,value:l,...Av(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect((()=>{const e=a._options.shouldUnregister||i,t=(e,t)=>{const n=Tv(a._fields,e);n&&(n._f.mount=t)};if(t(r,!0),e){const e=Sv(Tv(a._options.defaultValues,r));Vv(a._defaultValues,r,e),Lv(Tv(a._formValues,r))&&Vv(a._formValues,r,e)}return()=>{(s?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}}),[r,a,s,i]),t.useEffect((()=>{Tv(a._fields,r)&&a._updateDisabledField({disabled:o,fields:a._fields,name:r,value:Tv(a._fields,r)._f.value})}),[o,r,a]),{field:{name:r,value:l,...Av(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:t.useCallback((e=>u.current.onChange({target:{value:Ev(e),name:r},type:Ov})),[r]),onBlur:t.useCallback((()=>u.current.onBlur({target:{value:Tv(a._formValues,r),name:r},type:Nv})),[r,a]),ref:e=>{const t=Tv(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Tv(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!Tv(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Tv(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Tv(c.validatingFields,r)},error:{enumerable:!0,get:()=>Tv(c.errors,r)}})}}const Yv=e=>e.render(Xv(e)),$v=b(xv)`
1700
1695
  width: 100%;
1701
- `,$v=e=>{const{control:n,errorMessage:r,hasError:o,hintText:a,id:i,label:s,labelSuffix:l,name:c,tooltip:u}=e,d=da(e,["control","errorMessage","hasError","hintText","id","label","labelSuffix","name","tooltip"]);return t.createElement(vp,{errorMessage:r,hasError:o,hintText:a,id:i,label:s,labelSuffix:l,tooltip:u},t.createElement(Xv,{control:n,name:c,render:({field:e})=>t.createElement(Yv,Object.assign({},d,{inputId:i,isError:o},e))}))},jv=e=>{const{control:n,name:r}=e,o=da(e,["control","name"]);return t.createElement(Xv,{control:n,name:r,render:({field:e})=>t.createElement(wv,Object.assign({},o,e))})},Zv=x.div`
1696
+ `,jv=e=>{const{control:n,errorMessage:r,hasError:o,hintText:a,id:i,label:s,labelSuffix:l,name:c,tooltip:u}=e,d=da(e,["control","errorMessage","hasError","hintText","id","label","labelSuffix","name","tooltip"]);return t.createElement(vp,{errorMessage:r,hasError:o,hintText:a,id:i,label:s,labelSuffix:l,tooltip:u},t.createElement(Yv,{control:n,name:c,render:({field:e})=>t.createElement($v,Object.assign({},d,{inputId:i,isError:o},e))}))},Zv=e=>{const{control:n,name:r}=e,o=da(e,["control","name"]);return t.createElement(Yv,{control:n,name:r,render:({field:e})=>t.createElement(xv,Object.assign({},o,e))})},zv=x.div`
1702
1697
  display: flex;
1703
- `,zv=x.div`
1704
- margin: auto 0;
1705
1698
  `,Jv=x.div`
1699
+ margin: auto 0;
1700
+ `,Uv=x.div`
1706
1701
  display: flex;
1707
1702
  margin-left: 5px;
1708
- `,Uv=e=>t.createElement(tb.Input,Object.assign({},e,{isHidden:!1})),Qv=e=>{var{children:n}=e,r=da(e,["children"]);return t.createElement(tb.Control,Object.assign({},r),t.createElement(Jv,null,t.createElement(Ee,{size:O.big,type:N.search})),n)},Kv=e=>{const{control:n,defaultPlaceholder:o,name:a,optionIcon:i}=e,s=da(e,["control","defaultPlaceholder","name","optionIcon"]),[l,c]=r(),[u,d]=r(o),p=()=>d("");return t.createElement(Xv,{control:n,name:a,render:({field:e})=>{var n;return t.createElement(wv,Object.assign({},s,e,{customComponents:{Input:Uv,DropdownIndicator:null,Control:Qv,Option:e=>((e,n)=>{var{children:r,data:o}=e,a=da(e,["children","data"]);return t.createElement(tb.Option,Object.assign({data:o},a),t.createElement(Zv,null,n&&t.createElement(Ee,{size:n.size,type:n.type}),t.createElement(zv,null,r)))})(e,i)},inputValue:null===(n=e.value)||void 0===n?void 0:n.label,isSearchable:!0,loadingMessage:()=>null,noOptionsMessage:()=>null,placeholder:u,type:vv.ASYNC_SELECT,value:l,onBlur:()=>(e=>{""===e.label&&d(o)})(e.value),onFocus:p,onChange:t=>((e,t)=>{t.onChange(e)})(t,e),onInputChange:(t,n)=>((e,{action:t},n)=>{"input-change"===t&&(c(null),n.onChange({value:null,label:e}))})(t,n,e)}))}})};var qv,ey={exports:{}},ty={};var ny,ry={};"production"===process.env.NODE_ENV?ey.exports=function(){if(qv)return ty;qv=1,Object.defineProperty(ty,"__esModule",{value:!0});var e=t;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=e.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},e.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),o=e.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},e.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function a(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function i(e,t,n,r,o){return function(e,t,n,r,o){var a=(e-n)/(t-n);if(0===a)return r;if(1===a)return o;for(var i="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),c=parseInt(o.substr(s,2),16),u=Math.round((1-a)*l+a*c).toString(16);1===u.length&&(u="0"+u),i+=u}return i}(e,t,n,a(r),a(o))}var s=function(t){function r(e){t.call(this,e);var n=e.height,r=e.width,o=e.checked;this.t=e.handleDiameter||n-2,this.i=Math.max(r-n,r-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.O=this.O.bind(this),this.D=this.D.bind(this),this.S=this.S.bind(this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.componentDidMount=function(){this.W=!0},r.prototype.componentDidUpdate=function(e){e.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},r.prototype.componentWillUnmount=function(){this.W=!1},r.prototype.I=function(e){this.H.focus(),this.setState({j:e,R:!0,B:Date.now()})},r.prototype.L=function(e){var t=this.state,n=t.j,r=t.h,o=(this.props.checked?this.i:this.o)+e-n;t.N||e===n||this.setState({N:!0});var a=Math.min(this.i,Math.max(this.o,o));a!==r&&this.setState({h:a})},r.prototype.U=function(e){var t=this.state,n=t.h,r=t.N,o=t.B,a=this.props.checked,i=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-o;(!r||s<250||a&&n<=i||!a&&n>=i)&&this.A(e),this.W&&this.setState({N:!1,R:!1}),this.l=Date.now()},r.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},r.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},r.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},r.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},r.prototype.M=function(e){this.L(e.touches[0].clientX)},r.prototype.m=function(e){e.preventDefault(),this.U(e)},r.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({R:!1}))},r.prototype.C=function(){this.u=Date.now()},r.prototype.O=function(){this.setState({R:!0})},r.prototype.D=function(){this.setState({R:!1})},r.prototype.S=function(e){this.H=e},r.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({R:!1})},r.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},r.prototype.render=function(){var t=this.props,r=t.checked,o=t.disabled,a=t.className,s=t.offColor,l=t.onColor,c=t.offHandleColor,u=t.onHandleColor,d=t.checkedIcon,p=t.uncheckedIcon,h=t.checkedHandleIcon,f=t.uncheckedHandleIcon,m=t.boxShadow,g=t.activeBoxShadow,b=t.height,v=t.width,y=t.borderRadius,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),x=this.state,k=x.h,C=x.N,E=x.R,I={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:b/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},D={height:b,width:v,margin:Math.max(0,(this.t-b)/2),position:"relative",background:i(k,this.i,this.o,s,l),borderRadius:"number"==typeof y?y:b/2,cursor:o?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},S={height:b,width:Math.min(1.5*b,v-(this.t+b)/2+1),position:"relative",opacity:(k-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:b,width:Math.min(1.5*b,v-(this.t+b)/2+1),position:"absolute",opacity:1-(k-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.t,width:this.t,background:i(k,this.i,this.o,c,u),display:"inline-block",cursor:o?"default":"pointer",borderRadius:"number"==typeof y?y-1:"50%",position:"absolute",transform:"translateX("+k+"px)",top:Math.max(0,(b-this.t)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.t,width:this.t,opacity:Math.max(2*(1-(k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},A={height:this.t,width:this.t,opacity:Math.max(2*((k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return e.createElement("div",{className:a,style:I},e.createElement("div",{className:"react-switch-bg",style:D,onClick:o?null:this.T,onMouseDown:function(e){return e.preventDefault()}},d&&e.createElement("div",{style:S},d),p&&e.createElement("div",{style:M},p)),e.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.M,onTouchEnd:o?null:this.m,onTouchCancel:o?null:this.D},f&&e.createElement("div",{style:T},f),h&&e.createElement("div",{style:A},h)),e.createElement("input",n({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},w,{ref:this.S,onFocus:this.O,onBlur:this.D,onKeyUp:this.C,onChange:this.$})))},r}(e.Component);return s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:r,checkedIcon:o,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},ty.default=s,ty}():ey.exports=(ny||(ny=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=t,r=Xi();function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a=n.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},n.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),i=n.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},n.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function s(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function l(e,t,n,r,o){return function(e,t,n,r,o){var a=(e-n)/(t-n);if(0===a)return r;if(1===a)return o;for(var i="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),c=parseInt(o.substr(s,2),16),u=Math.round((1-a)*l+a*c).toString(16);1===u.length&&(u="0"+u),i+=u}return i}(e,t,n,s(r),s(o))}var c=function(e,t,n){var r=e[t];return"string"!=typeof r||"#"!==r[0]||4!==r.length&&7!==r.length?new Error("Invalid prop '"+t+"' supplied to '"+n+"'. '"+t+"' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'"):null},u=function(e){function t(t){e.call(this,t);var n=t.height,r=t.width,o=t.handleDiameter,a=t.checked;this.$handleDiameter=o||n-2,this.$checkedPos=Math.max(r-n,r-(n+this.$handleDiameter)/2),this.$uncheckedPos=Math.max(0,(n-this.$handleDiameter)/2),this.state={$pos:a?this.$checkedPos:this.$uncheckedPos},this.$lastDragAt=0,this.$lastKeyUpAt=0,this.$onMouseDown=this.$onMouseDown.bind(this),this.$onMouseMove=this.$onMouseMove.bind(this),this.$onMouseUp=this.$onMouseUp.bind(this),this.$onTouchStart=this.$onTouchStart.bind(this),this.$onTouchMove=this.$onTouchMove.bind(this),this.$onTouchEnd=this.$onTouchEnd.bind(this),this.$onClick=this.$onClick.bind(this),this.$onInputChange=this.$onInputChange.bind(this),this.$onKeyUp=this.$onKeyUp.bind(this),this.$setHasOutline=this.$setHasOutline.bind(this),this.$unsetHasOutline=this.$unsetHasOutline.bind(this),this.$getInputRef=this.$getInputRef.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.$isMounted=!0},t.prototype.componentDidUpdate=function(e){if(e.checked!==this.props.checked){var t=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:t})}},t.prototype.componentWillUnmount=function(){this.$isMounted=!1},t.prototype.$onDragStart=function(e){this.$inputRef.focus(),this.setState({$startX:e,$hasOutline:!0,$dragStartingTime:Date.now()})},t.prototype.$onDrag=function(e){var t=this.state,n=t.$startX,r=t.$isDragging,o=t.$pos,a=(this.props.checked?this.$checkedPos:this.$uncheckedPos)+e-n;r||e===n||this.setState({$isDragging:!0});var i=Math.min(this.$checkedPos,Math.max(this.$uncheckedPos,a));i!==o&&this.setState({$pos:i})},t.prototype.$onDragStop=function(e){var t=this.state,n=t.$pos,r=t.$isDragging,o=t.$dragStartingTime,a=this.props.checked,i=(this.$checkedPos+this.$uncheckedPos)/2,s=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:s});var l=Date.now()-o;(!r||l<250||a&&n<=i||!a&&n>=i)&&this.$onChange(e),this.$isMounted&&this.setState({$isDragging:!1,$hasOutline:!1}),this.$lastDragAt=Date.now()},t.prototype.$onMouseDown=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.$onDragStart(e.clientX),window.addEventListener("mousemove",this.$onMouseMove),window.addEventListener("mouseup",this.$onMouseUp))},t.prototype.$onMouseMove=function(e){e.preventDefault(),this.$onDrag(e.clientX)},t.prototype.$onMouseUp=function(e){this.$onDragStop(e),window.removeEventListener("mousemove",this.$onMouseMove),window.removeEventListener("mouseup",this.$onMouseUp)},t.prototype.$onTouchStart=function(e){this.$checkedStateFromDragging=null,this.$onDragStart(e.touches[0].clientX)},t.prototype.$onTouchMove=function(e){this.$onDrag(e.touches[0].clientX)},t.prototype.$onTouchEnd=function(e){e.preventDefault(),this.$onDragStop(e)},t.prototype.$onInputChange=function(e){Date.now()-this.$lastDragAt>50&&(this.$onChange(e),Date.now()-this.$lastKeyUpAt>50&&this.$isMounted&&this.setState({$hasOutline:!1}))},t.prototype.$onKeyUp=function(){this.$lastKeyUpAt=Date.now()},t.prototype.$setHasOutline=function(){this.setState({$hasOutline:!0})},t.prototype.$unsetHasOutline=function(){this.setState({$hasOutline:!1})},t.prototype.$getInputRef=function(e){this.$inputRef=e},t.prototype.$onClick=function(e){e.preventDefault(),this.$inputRef.focus(),this.$onChange(e),this.$isMounted&&this.setState({$hasOutline:!1})},t.prototype.$onChange=function(e){var t=this.props,n=t.checked;(0,t.onChange)(!n,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,a=e.className,i=e.offColor,s=e.onColor,c=e.offHandleColor,u=e.onHandleColor,d=e.checkedIcon,p=e.uncheckedIcon,h=e.checkedHandleIcon,f=e.uncheckedHandleIcon,m=e.boxShadow,g=e.activeBoxShadow,b=e.height,v=e.width,y=e.borderRadius;e.handleDiameter;var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),x=this.state,k=x.$pos,C=x.$isDragging,E=x.$hasOutline,I={position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:b/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},D={height:b,width:v,margin:Math.max(0,(this.$handleDiameter-b)/2),position:"relative",background:l(k,this.$checkedPos,this.$uncheckedPos,i,s),borderRadius:"number"==typeof y?y:b/2,cursor:r?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},S={height:b,width:Math.min(1.5*b,v-(this.$handleDiameter+b)/2+1),position:"relative",opacity:(k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:b,width:Math.min(1.5*b,v-(this.$handleDiameter+b)/2+1),position:"absolute",opacity:1-(k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.$handleDiameter,width:this.$handleDiameter,background:l(k,this.$checkedPos,this.$uncheckedPos,c,u),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof y?y-1:"50%",position:"absolute",transform:"translateX("+k+"px)",top:Math.max(0,(b-this.$handleDiameter)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*(1-(k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},A={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*((k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return n.createElement("div",{className:a,style:I},n.createElement("div",{className:"react-switch-bg",style:D,onClick:r?null:this.$onClick,onMouseDown:function(e){return e.preventDefault()}},d&&n.createElement("div",{style:S},d),p&&n.createElement("div",{style:M},p)),n.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.$onMouseDown,onTouchStart:r?null:this.$onTouchStart,onTouchMove:r?null:this.$onTouchMove,onTouchEnd:r?null:this.$onTouchEnd,onTouchCancel:r?null:this.$unsetHasOutline},f&&n.createElement("div",{style:T},f),h&&n.createElement("div",{style:A},h)),n.createElement("input",o({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},w,{ref:this.$getInputRef,onFocus:this.$setHasOutline,onBlur:this.$unsetHasOutline,onKeyUp:this.$onKeyUp,onChange:this.$onInputChange})))},t}(n.Component);u.propTypes={checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,offColor:c,onColor:c,offHandleColor:c,onHandleColor:c,handleDiameter:r.number,uncheckedIcon:r.oneOfType([r.bool,r.element]),checkedIcon:r.oneOfType([r.bool,r.element]),boxShadow:r.string,borderRadius:r.number,activeBoxShadow:r.string,uncheckedHandleIcon:r.element,checkedHandleIcon:r.element,height:r.number,width:r.number,id:r.string,className:r.string},u.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:a,checkedIcon:i,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},e.default=u}(ry)),ry);var oy=et(ey.exports);const ay=b.div`
1703
+ `,Qv=e=>t.createElement(tb.Input,Object.assign({},e,{isHidden:!1})),Kv=e=>{var{children:n}=e,r=da(e,["children"]);return t.createElement(tb.Control,Object.assign({},r),t.createElement(Uv,null,t.createElement(Ee,{size:O.big,type:N.search})),n)},qv=e=>{const{control:n,defaultPlaceholder:o,name:a,optionIcon:i}=e,s=da(e,["control","defaultPlaceholder","name","optionIcon"]),[l,c]=r(),[u,d]=r(o),p=()=>d("");return t.createElement(Yv,{control:n,name:a,render:({field:e})=>{var n;return t.createElement(xv,Object.assign({},s,e,{customComponents:{Input:Qv,DropdownIndicator:null,Control:Kv,Option:e=>((e,n)=>{var{children:r,data:o}=e,a=da(e,["children","data"]);return t.createElement(tb.Option,Object.assign({data:o},a),t.createElement(zv,null,n&&t.createElement(Ee,{size:n.size,type:n.type}),t.createElement(Jv,null,r)))})(e,i)},inputValue:null===(n=e.value)||void 0===n?void 0:n.label,isSearchable:!0,loadingMessage:()=>null,noOptionsMessage:()=>null,placeholder:u,type:yv.ASYNC_SELECT,value:l,onBlur:()=>(e=>{""===e.label&&d(o)})(e.value),onFocus:p,onChange:t=>((e,t)=>{t.onChange(e)})(t,e),onInputChange:(t,n)=>((e,{action:t},n)=>{"input-change"===t&&(c(null),n.onChange({value:null,label:e}))})(t,n,e)}))}})};var ey,ty={exports:{}},ny={};var ry,oy={};"production"===process.env.NODE_ENV?ty.exports=function(){if(ey)return ny;ey=1,Object.defineProperty(ny,"__esModule",{value:!0});var e=t;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=e.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},e.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),o=e.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},e.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function a(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function i(e,t,n,r,o){return function(e,t,n,r,o){var a=(e-n)/(t-n);if(0===a)return r;if(1===a)return o;for(var i="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),c=parseInt(o.substr(s,2),16),u=Math.round((1-a)*l+a*c).toString(16);1===u.length&&(u="0"+u),i+=u}return i}(e,t,n,a(r),a(o))}var s=function(t){function r(e){t.call(this,e);var n=e.height,r=e.width,o=e.checked;this.t=e.handleDiameter||n-2,this.i=Math.max(r-n,r-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.O=this.O.bind(this),this.D=this.D.bind(this),this.S=this.S.bind(this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.componentDidMount=function(){this.W=!0},r.prototype.componentDidUpdate=function(e){e.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},r.prototype.componentWillUnmount=function(){this.W=!1},r.prototype.I=function(e){this.H.focus(),this.setState({j:e,R:!0,B:Date.now()})},r.prototype.L=function(e){var t=this.state,n=t.j,r=t.h,o=(this.props.checked?this.i:this.o)+e-n;t.N||e===n||this.setState({N:!0});var a=Math.min(this.i,Math.max(this.o,o));a!==r&&this.setState({h:a})},r.prototype.U=function(e){var t=this.state,n=t.h,r=t.N,o=t.B,a=this.props.checked,i=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-o;(!r||s<250||a&&n<=i||!a&&n>=i)&&this.A(e),this.W&&this.setState({N:!1,R:!1}),this.l=Date.now()},r.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},r.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},r.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},r.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},r.prototype.M=function(e){this.L(e.touches[0].clientX)},r.prototype.m=function(e){e.preventDefault(),this.U(e)},r.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({R:!1}))},r.prototype.C=function(){this.u=Date.now()},r.prototype.O=function(){this.setState({R:!0})},r.prototype.D=function(){this.setState({R:!1})},r.prototype.S=function(e){this.H=e},r.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({R:!1})},r.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},r.prototype.render=function(){var t=this.props,r=t.checked,o=t.disabled,a=t.className,s=t.offColor,l=t.onColor,c=t.offHandleColor,u=t.onHandleColor,d=t.checkedIcon,p=t.uncheckedIcon,h=t.checkedHandleIcon,f=t.uncheckedHandleIcon,m=t.boxShadow,g=t.activeBoxShadow,b=t.height,v=t.width,y=t.borderRadius,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(t,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),x=this.state,k=x.h,C=x.N,E=x.R,I={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:b/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},D={height:b,width:v,margin:Math.max(0,(this.t-b)/2),position:"relative",background:i(k,this.i,this.o,s,l),borderRadius:"number"==typeof y?y:b/2,cursor:o?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},S={height:b,width:Math.min(1.5*b,v-(this.t+b)/2+1),position:"relative",opacity:(k-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:b,width:Math.min(1.5*b,v-(this.t+b)/2+1),position:"absolute",opacity:1-(k-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.t,width:this.t,background:i(k,this.i,this.o,c,u),display:"inline-block",cursor:o?"default":"pointer",borderRadius:"number"==typeof y?y-1:"50%",position:"absolute",transform:"translateX("+k+"px)",top:Math.max(0,(b-this.t)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.t,width:this.t,opacity:Math.max(2*(1-(k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},A={height:this.t,width:this.t,opacity:Math.max(2*((k-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return e.createElement("div",{className:a,style:I},e.createElement("div",{className:"react-switch-bg",style:D,onClick:o?null:this.T,onMouseDown:function(e){return e.preventDefault()}},d&&e.createElement("div",{style:S},d),p&&e.createElement("div",{style:M},p)),e.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.M,onTouchEnd:o?null:this.m,onTouchCancel:o?null:this.D},f&&e.createElement("div",{style:T},f),h&&e.createElement("div",{style:A},h)),e.createElement("input",n({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},w,{ref:this.S,onFocus:this.O,onBlur:this.D,onKeyUp:this.C,onChange:this.$})))},r}(e.Component);return s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:r,checkedIcon:o,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},ny.default=s,ny}():ty.exports=(ry||(ry=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=t,r=Xi();function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var a=n.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},n.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),i=n.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},n.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function s(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function l(e,t,n,r,o){return function(e,t,n,r,o){var a=(e-n)/(t-n);if(0===a)return r;if(1===a)return o;for(var i="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),c=parseInt(o.substr(s,2),16),u=Math.round((1-a)*l+a*c).toString(16);1===u.length&&(u="0"+u),i+=u}return i}(e,t,n,s(r),s(o))}var c=function(e,t,n){var r=e[t];return"string"!=typeof r||"#"!==r[0]||4!==r.length&&7!==r.length?new Error("Invalid prop '"+t+"' supplied to '"+n+"'. '"+t+"' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'"):null},u=function(e){function t(t){e.call(this,t);var n=t.height,r=t.width,o=t.handleDiameter,a=t.checked;this.$handleDiameter=o||n-2,this.$checkedPos=Math.max(r-n,r-(n+this.$handleDiameter)/2),this.$uncheckedPos=Math.max(0,(n-this.$handleDiameter)/2),this.state={$pos:a?this.$checkedPos:this.$uncheckedPos},this.$lastDragAt=0,this.$lastKeyUpAt=0,this.$onMouseDown=this.$onMouseDown.bind(this),this.$onMouseMove=this.$onMouseMove.bind(this),this.$onMouseUp=this.$onMouseUp.bind(this),this.$onTouchStart=this.$onTouchStart.bind(this),this.$onTouchMove=this.$onTouchMove.bind(this),this.$onTouchEnd=this.$onTouchEnd.bind(this),this.$onClick=this.$onClick.bind(this),this.$onInputChange=this.$onInputChange.bind(this),this.$onKeyUp=this.$onKeyUp.bind(this),this.$setHasOutline=this.$setHasOutline.bind(this),this.$unsetHasOutline=this.$unsetHasOutline.bind(this),this.$getInputRef=this.$getInputRef.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.$isMounted=!0},t.prototype.componentDidUpdate=function(e){if(e.checked!==this.props.checked){var t=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:t})}},t.prototype.componentWillUnmount=function(){this.$isMounted=!1},t.prototype.$onDragStart=function(e){this.$inputRef.focus(),this.setState({$startX:e,$hasOutline:!0,$dragStartingTime:Date.now()})},t.prototype.$onDrag=function(e){var t=this.state,n=t.$startX,r=t.$isDragging,o=t.$pos,a=(this.props.checked?this.$checkedPos:this.$uncheckedPos)+e-n;r||e===n||this.setState({$isDragging:!0});var i=Math.min(this.$checkedPos,Math.max(this.$uncheckedPos,a));i!==o&&this.setState({$pos:i})},t.prototype.$onDragStop=function(e){var t=this.state,n=t.$pos,r=t.$isDragging,o=t.$dragStartingTime,a=this.props.checked,i=(this.$checkedPos+this.$uncheckedPos)/2,s=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:s});var l=Date.now()-o;(!r||l<250||a&&n<=i||!a&&n>=i)&&this.$onChange(e),this.$isMounted&&this.setState({$isDragging:!1,$hasOutline:!1}),this.$lastDragAt=Date.now()},t.prototype.$onMouseDown=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.$onDragStart(e.clientX),window.addEventListener("mousemove",this.$onMouseMove),window.addEventListener("mouseup",this.$onMouseUp))},t.prototype.$onMouseMove=function(e){e.preventDefault(),this.$onDrag(e.clientX)},t.prototype.$onMouseUp=function(e){this.$onDragStop(e),window.removeEventListener("mousemove",this.$onMouseMove),window.removeEventListener("mouseup",this.$onMouseUp)},t.prototype.$onTouchStart=function(e){this.$checkedStateFromDragging=null,this.$onDragStart(e.touches[0].clientX)},t.prototype.$onTouchMove=function(e){this.$onDrag(e.touches[0].clientX)},t.prototype.$onTouchEnd=function(e){e.preventDefault(),this.$onDragStop(e)},t.prototype.$onInputChange=function(e){Date.now()-this.$lastDragAt>50&&(this.$onChange(e),Date.now()-this.$lastKeyUpAt>50&&this.$isMounted&&this.setState({$hasOutline:!1}))},t.prototype.$onKeyUp=function(){this.$lastKeyUpAt=Date.now()},t.prototype.$setHasOutline=function(){this.setState({$hasOutline:!0})},t.prototype.$unsetHasOutline=function(){this.setState({$hasOutline:!1})},t.prototype.$getInputRef=function(e){this.$inputRef=e},t.prototype.$onClick=function(e){e.preventDefault(),this.$inputRef.focus(),this.$onChange(e),this.$isMounted&&this.setState({$hasOutline:!1})},t.prototype.$onChange=function(e){var t=this.props,n=t.checked;(0,t.onChange)(!n,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,a=e.className,i=e.offColor,s=e.onColor,c=e.offHandleColor,u=e.onHandleColor,d=e.checkedIcon,p=e.uncheckedIcon,h=e.checkedHandleIcon,f=e.uncheckedHandleIcon,m=e.boxShadow,g=e.activeBoxShadow,b=e.height,v=e.width,y=e.borderRadius;e.handleDiameter;var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),x=this.state,k=x.$pos,C=x.$isDragging,E=x.$hasOutline,I={position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:b/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},D={height:b,width:v,margin:Math.max(0,(this.$handleDiameter-b)/2),position:"relative",background:l(k,this.$checkedPos,this.$uncheckedPos,i,s),borderRadius:"number"==typeof y?y:b/2,cursor:r?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},S={height:b,width:Math.min(1.5*b,v-(this.$handleDiameter+b)/2+1),position:"relative",opacity:(k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:b,width:Math.min(1.5*b,v-(this.$handleDiameter+b)/2+1),position:"absolute",opacity:1-(k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.$handleDiameter,width:this.$handleDiameter,background:l(k,this.$checkedPos,this.$uncheckedPos,c,u),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof y?y-1:"50%",position:"absolute",transform:"translateX("+k+"px)",top:Math.max(0,(b-this.$handleDiameter)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*(1-(k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},A={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*((k-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return n.createElement("div",{className:a,style:I},n.createElement("div",{className:"react-switch-bg",style:D,onClick:r?null:this.$onClick,onMouseDown:function(e){return e.preventDefault()}},d&&n.createElement("div",{style:S},d),p&&n.createElement("div",{style:M},p)),n.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.$onMouseDown,onTouchStart:r?null:this.$onTouchStart,onTouchMove:r?null:this.$onTouchMove,onTouchEnd:r?null:this.$onTouchEnd,onTouchCancel:r?null:this.$unsetHasOutline},f&&n.createElement("div",{style:T},f),h&&n.createElement("div",{style:A},h)),n.createElement("input",o({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},w,{ref:this.$getInputRef,onFocus:this.$setHasOutline,onBlur:this.$unsetHasOutline,onKeyUp:this.$onKeyUp,onChange:this.$onInputChange})))},t}(n.Component);u.propTypes={checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,offColor:c,onColor:c,offHandleColor:c,onHandleColor:c,handleDiameter:r.number,uncheckedIcon:r.oneOfType([r.bool,r.element]),checkedIcon:r.oneOfType([r.bool,r.element]),boxShadow:r.string,borderRadius:r.number,activeBoxShadow:r.string,uncheckedHandleIcon:r.element,checkedHandleIcon:r.element,height:r.number,width:r.number,id:r.string,className:r.string},u.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:a,checkedIcon:i,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},e.default=u}(oy)),oy);var ay=et(ty.exports);const iy=b.div`
1709
1704
  display: flex;
1710
1705
  flex-direction: row;
1711
1706
  gap: ${({theme:e})=>e.spacing.xs};
@@ -1788,9 +1783,9 @@ function jc(e,t,n){return t=ou(t),function(e,t){if(t&&("object"==typeof t||"func
1788
1783
  border: 1px solid ${({theme:e})=>e.colors.border.neutral.subtlest.light}!important;
1789
1784
  }
1790
1785
  `};
1791
- `,iy=b.label`
1786
+ `,sy=b.label`
1792
1787
  cursor: pointer;
1793
- `,sy=e=>{const{defaultValue:o,disabled:a,id:i,label:s,name:l,onChange:c}=e,u=y(),[d,p]=r(o),h=n((e=>{p(e),void 0!==c&&c(e)}),[c]);return t.createElement(ay,{disabled:a,checked:d},t.createElement(oy,{activeBoxShadow:"",borderRadius:9999,className:"react-switch",disabled:a,handleDiameter:16,height:21,checked:d,checkedIcon:!1,id:i,name:l,offColor:u.colors.bg.neutral.white.light,offHandleColor:u.colors.bg.neutral.white.light,uncheckedIcon:!1,width:36,onColor:!0===a?u.colors.bg.neutral.white.light:u.colors.bg.brand.bold.light,onHandleColor:u.colors.bg.neutral.white.light,onChange:h}),void 0!==s&&t.createElement(iy,{htmlFor:i},t.createElement(A,{variant:S.TEXT_SM,weight:L.MEDIUM_500},s)))},ly=b.textarea`
1788
+ `,ly=e=>{const{defaultValue:o,disabled:a,id:i,label:s,name:l,onChange:c}=e,u=y(),[d,p]=r(o),h=n((e=>{p(e),void 0!==c&&c(e)}),[c]);return t.createElement(iy,{disabled:a,checked:d},t.createElement(ay,{activeBoxShadow:"",borderRadius:9999,className:"react-switch",disabled:a,handleDiameter:16,height:21,checked:d,checkedIcon:!1,id:i,name:l,offColor:u.colors.bg.neutral.white.light,offHandleColor:u.colors.bg.neutral.white.light,uncheckedIcon:!1,width:36,onColor:!0===a?u.colors.bg.neutral.white.light:u.colors.bg.brand.bold.light,onHandleColor:u.colors.bg.neutral.white.light,onChange:h}),void 0!==s&&t.createElement(sy,{htmlFor:i},t.createElement(A,{variant:S.TEXT_SM,weight:L.MEDIUM_500},s)))},cy=b.textarea`
1794
1789
  box-sizing: border-box;
1795
1790
  width: 100%;
1796
1791
  min-height: 124px;
@@ -1817,30 +1812,30 @@ function jc(e,t,n){return t=ou(t),function(e,t){if(t&&("object"==typeof t||"func
1817
1812
  background: ${({theme:e})=>e.colors.bg.disabled.light};
1818
1813
  border: 1px solid ${({theme:e})=>e.colors.border.disabled.light};
1819
1814
  }
1820
- `,cy=f((function(e,n){const{disabled:r,errorMessage:o,hasError:a,hintText:i,id:s,label:l,labelSuffix:c,tooltip:u}=e,d=da(e,["disabled","errorMessage","hasError","hintText","id","label","labelSuffix","tooltip"]);return t.createElement(vp,{errorMessage:o,hasError:a,hintText:i,id:s,label:l,labelSuffix:c,tooltip:u},t.createElement(ly,Object.assign({disabled:r,hasError:a,id:s,ref:n},d)))}));var uy,dy;!function(e){e.XXS="xxs",e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl",e.XXXXL="xxxxl",e.XXXXXL="xxxxxl"}(uy||(uy={})),function(e){e.column="column",e.row="row"}(dy||(dy={}));const py=b.div`
1815
+ `,uy=f((function(e,n){const{disabled:r,errorMessage:o,hasError:a,hintText:i,id:s,label:l,labelSuffix:c,tooltip:u}=e,d=da(e,["disabled","errorMessage","hasError","hintText","id","label","labelSuffix","tooltip"]);return t.createElement(vp,{errorMessage:o,hasError:a,hintText:i,id:s,label:l,labelSuffix:c,tooltip:u},t.createElement(cy,Object.assign({disabled:r,hasError:a,id:s,ref:n},d)))}));var dy,py;!function(e){e.XXS="xxs",e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.XXL="xxl",e.XXXL="xxxl",e.XXXXL="xxxxl",e.XXXXXL="xxxxxl"}(dy||(dy={})),function(e){e.column="column",e.row="row"}(py||(py={}));const hy=b.div`
1821
1816
  display: flex;
1822
1817
  flex-direction: ${({direction:e})=>e.toString()};
1823
1818
 
1824
- ${({gap:e})=>{switch(e){case uy.XXS:return v`
1819
+ ${({gap:e})=>{switch(e){case dy.XXS:return v`
1825
1820
  gap: ${({theme:e})=>e.spacing.xxs};
1826
- `;case uy.XS:return v`
1821
+ `;case dy.XS:return v`
1827
1822
  gap: ${({theme:e})=>e.spacing.xs};
1828
- `;case uy.SM:return v`
1823
+ `;case dy.SM:return v`
1829
1824
  gap: ${({theme:e})=>e.spacing.sm};
1830
- `;case uy.MD:return v`
1825
+ `;case dy.MD:return v`
1831
1826
  gap: ${({theme:e})=>e.spacing.md};
1832
- `;case uy.LG:return v`
1827
+ `;case dy.LG:return v`
1833
1828
  gap: ${({theme:e})=>e.spacing.lg};
1834
- `;case uy.XL:return v`
1829
+ `;case dy.XL:return v`
1835
1830
  gap: ${({theme:e})=>e.spacing.xl};
1836
- `;case uy.XXL:return v`
1831
+ `;case dy.XXL:return v`
1837
1832
  gap: ${({theme:e})=>e.spacing.xxl};
1838
- `;case uy.XXXL:return v`
1833
+ `;case dy.XXXL:return v`
1839
1834
  gap: ${({theme:e})=>e.spacing.xxxl};
1840
- `;case uy.XXXXL:return v`
1835
+ `;case dy.XXXXL:return v`
1841
1836
  gap: ${({theme:e})=>e.spacing.xxxxl};
1842
- `;case uy.XXXXXL:return v`
1837
+ `;case dy.XXXXXL:return v`
1843
1838
  gap: ${({theme:e})=>e.spacing.xxxxxl};
1844
1839
  `;default:throw new Error("unexpected GapSize enum values in stack.styles.ts")}}}
1845
- `,hy=e=>{const{children:n,direction:r=dy.column,gap:o=uy.MD}=e,a=da(e,["children","direction","gap"]);return t.createElement(py,Object.assign({direction:r,gap:o},a),n)};export{Ne as Accordion,Pe as AccordionContent,Ae as AccordionItem,Be as AccordionKeyValue,Kv as AsyncSelect,Xe as Button,Fe as ButtonSize,Ge as ButtonStyle,He as ButtonType,ei as CalculatorResult,ci as CalculatorResultBox,Up as Checkbox,_p as CheckboxPosition,ae as ColorScheme,Hp as DatePicker,xp as EmailInput,Kt as ErrorBox,vp as FieldWrapper,tp as FieldWrapperLayout,Bi as FormattedAmount,Wa as FormattedHtmlMessage,Ra as FormattedMessage,ki as FormattedPercentage,uy as GapSize,Bn as IconProduct,Mn as IconProductSize,Sn as IconProductType,Ee as IconSystem,O as IconSystemSize,N as IconSystemType,Fa as InfoConditional,nn as Infobox,en as InfoboxSize,qt as InfoboxVariant,pp as InputBase,fp as InputLabel,qd as InputSize,bi as Loader,wi as LoaderOverlayBox,di as LoaderSize,ti as MediaType,zn as Modal,kp as PhoneInput,ih as Radio,dh as RadioButton,ph as RadioButtonLayout,bh as RadioButtonsHorizontal,Qp as RadioPosition,Gn as ReasonForClosing,Cp as SearchInput,jv as Select,wv as SelectBase,$v as SelectField,jt as Slider,Ap as SliderInput,Ot as SliderStepType,hy as Stack,dy as StackDirection,an as Table,ln as TableBody,un as TableData,pn as TableHead,fn as TableHeadData,gn as TableRow,rn as TableVariant,Dn as Tabs,En as TabsItem,bn as TabsVariant,cy as TextArea,Np as TextInput,sy as Toggle,aa as TooltipGeneral,ca as TooltipInfo,sa as TooltipInfoDisplayMethod,Ga as TooltipInfoDisplayableCheck,ia as TooltipPlacement,Pp as TrailingTextInput,A as Typography,M as TypographyTextAlign,S as TypographyVariant,L as TypographyWeight,ie as getColor,Jd as theme,se as useColorScheme,Ha as useCreateTooltipFloatingElement,Ci as useFormatAmount,xi as useFormattedPercentage,Ba as useIsMessageDisplayable};
1840
+ `,fy=e=>{const{children:n,direction:r=py.column,gap:o=dy.MD}=e,a=da(e,["children","direction","gap"]);return t.createElement(hy,Object.assign({direction:r,gap:o},a),n)};export{Ne as Accordion,Pe as AccordionContent,Ae as AccordionItem,Be as AccordionKeyValue,qv as AsyncSelect,Xe as Button,Fe as ButtonSize,Ge as ButtonStyle,He as ButtonType,ei as CalculatorResult,ci as CalculatorResultBox,Up as Checkbox,_p as CheckboxPosition,ae as ColorScheme,Hp as DatePicker,xp as EmailInput,Kt as ErrorBox,vp as FieldWrapper,tp as FieldWrapperLayout,Bi as FormattedAmount,Wa as FormattedHtmlMessage,Ra as FormattedMessage,ki as FormattedPercentage,dy as GapSize,Bn as IconProduct,Mn as IconProductSize,Sn as IconProductType,Ee as IconSystem,O as IconSystemSize,N as IconSystemType,Fa as InfoConditional,nn as Infobox,en as InfoboxSize,qt as InfoboxVariant,pp as InputBase,fp as InputLabel,qd as InputSize,bi as Loader,wi as LoaderOverlayBox,di as LoaderSize,ti as MediaType,zn as Modal,kp as PhoneInput,ih as Radio,dh as RadioButton,ph as RadioButtonLayout,bh as RadioButtonsHorizontal,Qp as RadioPosition,Gn as ReasonForClosing,Cp as SearchInput,Zv as Select,xv as SelectBase,jv as SelectField,jt as Slider,Ap as SliderInput,Ot as SliderStepType,fy as Stack,py as StackDirection,an as Table,ln as TableBody,un as TableData,pn as TableHead,fn as TableHeadData,gn as TableRow,rn as TableVariant,Dn as Tabs,En as TabsItem,bn as TabsVariant,uy as TextArea,Np as TextInput,ly as Toggle,aa as TooltipGeneral,ca as TooltipInfo,sa as TooltipInfoDisplayMethod,Ga as TooltipInfoDisplayableCheck,ia as TooltipPlacement,Pp as TrailingTextInput,A as Typography,M as TypographyTextAlign,S as TypographyVariant,L as TypographyWeight,ie as getColor,Jd as theme,se as useColorScheme,Ha as useCreateTooltipFloatingElement,Ci as useFormatAmount,xi as useFormattedPercentage,Ba as useIsMessageDisplayable};
1846
1841
  //# sourceMappingURL=index.esm.js.map