@doist/reactist 14.0.0 → 15.0.0

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.
Files changed (48) hide show
  1. package/dist/reactist.cjs.development.js +504 -234
  2. package/dist/reactist.cjs.development.js.map +1 -1
  3. package/dist/reactist.cjs.production.min.js +1 -1
  4. package/dist/reactist.cjs.production.min.js.map +1 -1
  5. package/es/components/color-picker/color-picker.js +1 -0
  6. package/es/components/color-picker/color-picker.js.map +1 -1
  7. package/es/components/deprecated-dropdown/dropdown.js +4 -2
  8. package/es/components/deprecated-dropdown/dropdown.js.map +1 -1
  9. package/es/components/menu/menu.js +5 -2
  10. package/es/components/menu/menu.js.map +1 -1
  11. package/es/index.js +3 -2
  12. package/es/index.js.map +1 -1
  13. package/es/new-components/deprecated-modal/modal.js +219 -0
  14. package/es/new-components/deprecated-modal/modal.js.map +1 -0
  15. package/es/new-components/deprecated-modal/modal.module.css.js +4 -0
  16. package/es/new-components/deprecated-modal/modal.module.css.js.map +1 -0
  17. package/es/new-components/modal/modal.js +64 -11
  18. package/es/new-components/modal/modal.js.map +1 -1
  19. package/es/new-components/modal/modal.module.css.js +1 -1
  20. package/es/new-components/tabs/tabs.module.css.js +1 -1
  21. package/lib/components/color-picker/color-picker.js +1 -1
  22. package/lib/components/color-picker/color-picker.js.map +1 -1
  23. package/lib/components/deprecated-dropdown/dropdown.d.ts +6 -2
  24. package/lib/components/deprecated-dropdown/dropdown.js +1 -1
  25. package/lib/components/deprecated-dropdown/dropdown.js.map +1 -1
  26. package/lib/components/menu/menu.js +1 -1
  27. package/lib/components/menu/menu.js.map +1 -1
  28. package/lib/index.d.ts +3 -2
  29. package/lib/index.js +1 -1
  30. package/lib/new-components/deprecated-modal/index.d.ts +1 -0
  31. package/lib/new-components/deprecated-modal/modal-stories-components.d.ts +35 -0
  32. package/lib/new-components/deprecated-modal/modal.d.ts +157 -0
  33. package/lib/new-components/deprecated-modal/modal.js +2 -0
  34. package/lib/new-components/deprecated-modal/modal.js.map +1 -0
  35. package/lib/new-components/deprecated-modal/modal.module.css.js +2 -0
  36. package/lib/new-components/deprecated-modal/modal.module.css.js.map +1 -0
  37. package/lib/new-components/deprecated-modal/modal.test.d.ts +1 -0
  38. package/lib/new-components/modal/modal-stories-components.d.ts +2 -1
  39. package/lib/new-components/modal/modal.d.ts +1 -1
  40. package/lib/new-components/modal/modal.js +1 -1
  41. package/lib/new-components/modal/modal.js.map +1 -1
  42. package/lib/new-components/modal/modal.module.css.js +1 -1
  43. package/lib/new-components/tabs/tabs.module.css.js +1 -1
  44. package/package.json +6 -7
  45. package/styles/menu.css +1 -1
  46. package/styles/reactist.css +5 -4
  47. package/styles/tabs.css +1 -1
  48. package/styles/tabs.module.css.css +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),a=e(t),l=e(require("classnames")),n=e(require("react-keyed-flatten-children")),i=require("ariakit/tooltip"),r=require("ariakit-utils"),o=require("ariakit/tab"),s=require("@reach/dialog"),c=e(require("react-focus-lock")),d=e(require("react-dom")),m=e(require("dayjs")),p=e(require("dayjs/plugin/localizedFormat")),u=require("ariakit/menu"),f=require("ariakit/portal");function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function b(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){h(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function h(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function x(e,t){if(null==e)return{};var a,l,n=function(e,t){if(null==e)return{};var a,l,n={},i=Object.keys(e);for(l=0;l<i.length;l++)t.indexOf(a=i[l])>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t.indexOf(a=i[l])>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function _(e){return t.forwardRef(e)}function y(e,t,a){if(!a)return null;const l=[];return"string"==typeof a?l.push(e[t+"-"+a]):(a.mobile&&l.push(e[t+"-"+a.mobile]),a.tablet&&l.push(e["tablet-"+t+"-"+a.tablet]),a.desktop&&l.push(e["desktop-"+t+"-"+a.desktop])),l}function v(e,t){if(e)return"object"!=typeof e?t(e):{mobile:e.mobile?t(e.mobile):void 0,tablet:e.tablet?t(e.tablet):void 0,desktop:e.desktop?t(e.desktop):void 0}}var k={box:"f9408a0e","position-absolute":"_7807dcdd","position-fixed":"dc5f328c","position-relative":"_0e4ff085","position-sticky":"_4019d94a","tablet-position-absolute":"b1865c0f","tablet-position-fixed":"af8c5967","tablet-position-relative":"ef2b609f","tablet-position-sticky":"_04935ffd","desktop-position-absolute":"bda94091","desktop-position-fixed":"_691dfd31","desktop-position-relative":"efda904e","desktop-position-sticky":"bcf04687","display-block":"b5b9f34a","display-flex":"_6e9db9aa","display-inline":"ece6d246","display-inlineBlock":"e5e2223f","display-inlineFlex":"f344a0e2","display-none":"_9002f8c2","tablet-display-block":"d896f0ff","tablet-display-flex":"_56412665","tablet-display-inline":"_6b430cc5","tablet-display-inlineBlock":"_4158c5ad","tablet-display-inlineFlex":"c598eaab","tablet-display-none":"_5a2a6d3f","desktop-display-block":"_132ef8fb","desktop-display-flex":"_5bd11385","desktop-display-inline":"a51c2ec9","desktop-display-inlineBlock":"_93506988","desktop-display-inlineFlex":"_385d45a5","desktop-display-none":"_921732eb","flexDirection-column":"_41ef5755","flexDirection-row":"_6cad1a19","tablet-flexDirection-column":"f1c16205","tablet-flexDirection-row":"_65305ae1","desktop-flexDirection-column":"_4916f0f9","desktop-flexDirection-row":"_430dfc8e","flexWrap-wrap":"_3d2d56fe","flexWrap-nowrap":"_826e4adf","flexShrink-0":"f8344e0f","flexGrow-0":"f117e2ab","flexGrow-1":"_1355325c","alignItems-flexStart":"c5b05c6a","alignItems-center":"_21b8bafa","alignItems-flexEnd":"_56d73c9b","alignItems-baseline":"_052e0707","tablet-alignItems-flexStart":"_90048c98","tablet-alignItems-center":"_7e189a0b","tablet-alignItems-flexEnd":"b8aefb5c","tablet-alignItems-baseline":"_4c1a5ef9","desktop-alignItems-flexStart":"f4d052ef","desktop-alignItems-center":"e5478926","desktop-alignItems-flexEnd":"b4f5051a","desktop-alignItems-baseline":"b21adace","justifyContent-flexStart":"be6deb6a","justifyContent-center":"d8eaf780","justifyContent-flexEnd":"_9212ca89","justifyContent-spaceAround":"_5d2cd095","justifyContent-spaceBetween":"_00d5fe7e","justifyContent-spaceEvenly":"ce4f4c2d","tablet-justifyContent-flexStart":"_6580dbbc","tablet-justifyContent-center":"_3f689891","tablet-justifyContent-flexEnd":"_628df8db","tablet-justifyContent-spaceAround":"_3ea88b4f","tablet-justifyContent-spaceBetween":"_4554d93d","tablet-justifyContent-spaceEvenly":"eb13fb50","desktop-justifyContent-flexStart":"_36dc744d","desktop-justifyContent-center":"ee7077ab","desktop-justifyContent-flexEnd":"_4edc8c86","desktop-justifyContent-spaceBetween":"_7e147696","alignSelf-stretch":"c0655cd6","alignSelf-flexStart":"_11863030","alignSelf-center":"c6d86139","alignSelf-flexEnd":"c0bd1f82","alignSelf-baseline":"_95686aec","tablet-alignSelf-stretch":"_9b712cc7","tablet-alignSelf-flexStart":"f7b935f7","tablet-alignSelf-center":"bf9ad125","tablet-alignSelf-flexEnd":"_3b4f8c3c","tablet-alignSelf-baseline":"_49d27079","desktop-alignSelf-stretch":"_63d27ffa","desktop-alignSelf-flexStart":"d45796cc","desktop-alignSelf-center":"c91c7bf7","desktop-alignSelf-flexEnd":"f2453212","desktop-alignSelf-baseline":"_3882757c","overflow-hidden":"_473810b4","overflow-auto":"_051c2340","overflow-visible":"_14e451d1","overflow-scroll":"_4d8555f8","height-full":"_867d251e","bg-default":"_2d928bf8","bg-aside":"db3f5af6","bg-highlight":"c990fcc3","bg-selected":"_976a662f","borderRadius-standard":"_46b52f05","borderRadius-full":"_1c8b326b","border-primary":"_0ef8c314","border-secondary":"_14871605","border-tertiary":"_36c045c3","textAlign-start":"d745aa1e","textAlign-center":"_31cf99c5","textAlign-end":"_10a7a030","textAlign-justify":"_2cfc8b46","tablet-textAlign-start":"e6b7bb40","tablet-textAlign-center":"_47dcb91c","tablet-textAlign-end":"_1d4011ce","tablet-textAlign-justify":"_18407499","desktop-textAlign-start":"_565de5cf","desktop-textAlign-center":"_64254ba3","desktop-textAlign-end":"_3cc6a504","desktop-textAlign-justify":"_0efec659"},E={"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"},w={"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da6","marginTop-medium":"_4ea254c1","marginTop-large":"c0844f64","marginTop-xlarge":"_213145b4","marginTop-xxlarge":"df61c84c","marginTop--xsmall":"efe72b13","marginTop--small":"_870c2768","marginTop--medium":"_0b927c57","marginTop--large":"_461db014","marginTop--xlarge":"_2a3a8cb8","marginTop--xxlarge":"_9bcda921","tablet-marginTop-xsmall":"_6add01e4","tablet-marginTop-small":"_735ef86b","tablet-marginTop-medium":"_0477d068","tablet-marginTop-large":"_2c90af97","tablet-marginTop-xlarge":"_63a82db6","tablet-marginTop-xxlarge":"_03cd7726","tablet-marginTop--xsmall":"c986a62a","tablet-marginTop--small":"be2bdcdd","tablet-marginTop--medium":"_47d2686b","tablet-marginTop--large":"_25e5af9d","tablet-marginTop--xlarge":"ee82f441","tablet-marginTop--xxlarge":"a6f9d404","desktop-marginTop-xsmall":"_4d8d9a36","desktop-marginTop-small":"e813cee7","desktop-marginTop-medium":"_56975b7d","desktop-marginTop-large":"_53b367f6","desktop-marginTop-xlarge":"d69e7311","desktop-marginTop-xxlarge":"_92f57c7e","desktop-marginTop--xsmall":"_96880d3e","desktop-marginTop--small":"dc3f3555","desktop-marginTop--medium":"_86dd06bb","desktop-marginTop--large":"c93ef12e","desktop-marginTop--xlarge":"bc8fd4a2","desktop-marginTop--xxlarge":"b12a9124","marginRight-xsmall":"_6016f4fb","marginRight-small":"b85e3dfa","marginRight-medium":"_297575f4","marginRight-large":"b401ac6c","marginRight-xlarge":"dc3ec387","marginRight-xxlarge":"_24694604","marginRight--xsmall":"_8e9bf2ee","marginRight--small":"ae9d1115","marginRight--medium":"_14e46fc3","marginRight--large":"_3370631b","marginRight--xlarge":"_3f0e9b50","marginRight--xxlarge":"bc13e010","tablet-marginRight-xsmall":"_6fa1aae3","tablet-marginRight-small":"_2976c5cb","tablet-marginRight-medium":"_38d94802","tablet-marginRight-large":"db9569b5","tablet-marginRight-xlarge":"_4a52f06d","tablet-marginRight-xxlarge":"_8a0f0410","tablet-marginRight--xsmall":"e7d40e9d","tablet-marginRight--small":"_680fde91","tablet-marginRight--medium":"_021010ca","tablet-marginRight--large":"_9e52c87c","tablet-marginRight--xlarge":"_4d602613","tablet-marginRight--xxlarge":"_21b1b65a","desktop-marginRight-xsmall":"_7321bc07","desktop-marginRight-small":"fa1721f4","desktop-marginRight-medium":"_3fd7b4b8","desktop-marginRight-large":"_4fdc2f74","desktop-marginRight-xlarge":"c0254761","desktop-marginRight-xxlarge":"_710a5f09","desktop-marginRight--xsmall":"e08bee7f","desktop-marginRight--small":"e5ab73d2","desktop-marginRight--medium":"_5e731477","desktop-marginRight--large":"_0f57a22e","desktop-marginRight--xlarge":"_25f26ed3","desktop-marginRight--xxlarge":"_11a3b4e0","marginBottom-xsmall":"_6a4f69f7","marginBottom-small":"db26b033","marginBottom-medium":"c7313022","marginBottom-large":"a5885889","marginBottom-xlarge":"_33dfbd8e","marginBottom-xxlarge":"_795ad2de","marginBottom--xsmall":"a329dbd3","marginBottom--small":"_85e739fb","marginBottom--medium":"_681f65ff","marginBottom--large":"caf50d8f","marginBottom--xlarge":"_1e084cbf","marginBottom--xxlarge":"_3dfb1c7e","tablet-marginBottom-xsmall":"ef4735be","tablet-marginBottom-small":"de55afba","tablet-marginBottom-medium":"_0e33ce88","tablet-marginBottom-large":"_8ca391fc","tablet-marginBottom-xlarge":"_3a609d23","tablet-marginBottom-xxlarge":"_3e1177e4","tablet-marginBottom--xsmall":"d384884d","tablet-marginBottom--small":"_75254cec","tablet-marginBottom--medium":"_5d9f127d","tablet-marginBottom--large":"_835f1089","tablet-marginBottom--xlarge":"dad52a72","tablet-marginBottom--xxlarge":"_8703a4bf","desktop-marginBottom-xsmall":"_90fd20e9","desktop-marginBottom-small":"f3769191","desktop-marginBottom-medium":"_156410f8","desktop-marginBottom-large":"_7fed74d0","desktop-marginBottom-xlarge":"_477dc10e","desktop-marginBottom-xxlarge":"_85c82d89","desktop-marginBottom--xsmall":"_4f09c1e0","desktop-marginBottom--small":"_9523e048","desktop-marginBottom--medium":"efe10240","desktop-marginBottom--large":"c43971e6","desktop-marginBottom--xlarge":"f9b4da15","desktop-marginBottom--xxlarge":"a10fdf70","marginLeft-xsmall":"f9be90b4","marginLeft-small":"f53218d5","marginLeft-medium":"c4a9b3ab","marginLeft-large":"_5755e2c3","marginLeft-xlarge":"_33fc9354","marginLeft-xxlarge":"_4749a3bf","marginLeft--xsmall":"c76cb3c7","marginLeft--small":"_96003c07","marginLeft--medium":"_09988d07","marginLeft--large":"b4a486f6","marginLeft--xlarge":"f396e75e","marginLeft--xxlarge":"_81d1f26d","tablet-marginLeft-xsmall":"_0a46e8f1","tablet-marginLeft-small":"_57c970af","tablet-marginLeft-medium":"_4b6099d3","tablet-marginLeft-large":"_378fcff5","tablet-marginLeft-xlarge":"f8785663","tablet-marginLeft-xxlarge":"_72f957ee","tablet-marginLeft--xsmall":"_2288c7e1","tablet-marginLeft--small":"b27c1c05","tablet-marginLeft--medium":"_702cbb13","tablet-marginLeft--large":"_1a2748b4","tablet-marginLeft--xlarge":"b8c043a5","tablet-marginLeft--xxlarge":"_8dc8ff63","desktop-marginLeft-xsmall":"c2af646d","desktop-marginLeft-small":"c03d07be","desktop-marginLeft-medium":"_915fb1d3","desktop-marginLeft-large":"_64214ee1","desktop-marginLeft-xlarge":"_7be4a22c","desktop-marginLeft-xxlarge":"_5ec0a401","desktop-marginLeft--xsmall":"ea29f1ee","desktop-marginLeft--small":"c26652c7","desktop-marginLeft--medium":"c24f6af9","desktop-marginLeft--large":"c2671f27","desktop-marginLeft--xlarge":"cc51a04e","desktop-marginLeft--xxlarge":"fd581f54"},C={"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"};const N=["as","position","display","flexDirection","flexWrap","flexGrow","flexShrink","alignItems","justifyContent","alignSelf","overflow","width","height","background","border","borderRadius","minWidth","maxWidth","textAlign","padding","paddingY","paddingX","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginY","marginX","marginTop","marginRight","marginBottom","marginLeft","className","children"],S=_((function(e,a){var n,i,r,o,s,c,d,m;let{as:p="div",position:u="static",display:f,flexDirection:g="row",flexWrap:h,flexGrow:_,flexShrink:v,alignItems:S,justifyContent:R,alignSelf:L,overflow:B,width:T,height:A,background:z,border:I,borderRadius:O,minWidth:M,maxWidth:D,textAlign:W,padding:F,paddingY:P,paddingX:j,paddingTop:H,paddingRight:U,paddingBottom:Y,paddingLeft:K,margin:q,marginY:G,marginX:V,marginTop:X,marginRight:Z,marginBottom:$,marginLeft:J,className:Q,children:ee}=e,te=x(e,N);const ae=null!=(n=null!=H?H:P)?n:F,le=null!=(i=null!=U?U:j)?i:F,ne=null!=(r=null!=Y?Y:P)?r:F,ie=null!=(o=null!=K?K:j)?o:F,re=null!=(s=null!=X?X:G)?s:q,oe=null!=(c=null!=Z?Z:V)?c:q,se=null!=(d=null!=$?$:G)?d:q,ce=null!=(m=null!=J?J:V)?m:q,de=!f||"string"==typeof f&&"flex"!==f&&"inlineFlex"!==f;return t.createElement(p,b(b({},te),{},{className:l(Q,k.box,f?y(k,"display",f):null,"static"!==u?y(k,"position",u):null,null!=M?y(C,"minWidth",String(M)):null,y(C,"maxWidth",D),y(k,"textAlign",W),y(E,"paddingTop",ae),y(E,"paddingRight",le),y(E,"paddingBottom",ne),y(E,"paddingLeft",ie),y(w,"marginTop",re),y(w,"marginRight",oe),y(w,"marginBottom",se),y(w,"marginLeft",ce),de?null:y(k,"flexDirection",g),de?null:y(k,"flexWrap",h),de?null:y(k,"alignItems",S),de?null:y(k,"justifyContent",R),null!=L?y(k,"alignSelf",L):null,null!=v?y(k,"flexShrink",String(v)):null,null!=_?y(k,"flexGrow",String(_)):null,y(k,"overflow",B),null!=T?y(C,"width",String(T)):null,y(k,"height",A),y(k,"bg",z),"none"!==O?y(k,"borderRadius",O):null,"none"!==I?y(k,"border",I):null)||void 0,ref:a}),ee)}));var R={"space-xsmall":"_6f59c771",column:"_91e05f0f","space-small":"_5a55af26","space-medium":"fa261310","space-large":"_6ebd4e46","space-xlarge":"_55ce4aea","space-xxlarge":"_04c9c3ac","tablet-space-xsmall":"ab76d8cd","tablet-space-small":"_14629bfb","tablet-space-medium":"_5b4e39ea","tablet-space-large":"ba270182","tablet-space-xlarge":"b96e7ec7","tablet-space-xxlarge":"d276612c","desktop-space-xsmall":"d7a73106","desktop-space-small":"_8f5e0e9e","desktop-space-medium":"_3a168411","desktop-space-large":"_0abcc12e","desktop-space-xlarge":"e0bafc60","desktop-space-xxlarge":"d2df9afd","columnWidth-auto":"b18d0b47","columnWidth-1-2":"_102a6b27","columnWidth-1-3":"_829872fe","columnWidth-2-3":"cf5aef9a","columnWidth-1-4":"_931bf714","columnWidth-3-4":"b0303130","columnWidth-1-5":"f6589a6f","columnWidth-2-5":"_2823aed9","columnWidth-3-5":"d00ba3bb","columnWidth-4-5":"_338f2d7c","tablet-tablet-space-xsmall":"_06582234"};const L=["width","children","exceptionallySetClassName"],B=["space","align","alignY","collapseBelow","children","exceptionallySetClassName"],T=_((function(e,a){let{width:l="auto",children:n,exceptionallySetClassName:i}=e,r=x(e,L);return t.createElement(S,b(b({},r),{},{className:[i,R.column,"content"!==l?y(R,"columnWidth",l.replace("/","-")):null],minWidth:0,width:"content"!==l?"full":void 0,height:"full",flexShrink:"content"===l?0:void 0,ref:a}),n)})),A=_((function(e,a){let{space:l,align:n="left",alignY:i="top",collapseBelow:r,children:o,exceptionallySetClassName:s}=e,c=x(e,B);return t.createElement(S,b(b({},c),{},{className:[s,y(R,"space",l)],display:"flex",flexDirection:"desktop"===r?{mobile:"column",tablet:"column",desktop:"row"}:"tablet"===r?{mobile:"column",tablet:"row"}:"row",alignItems:v(i,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":e),justifyContent:v(n,e=>"left"===e?"flexStart":"right"===e?"flexEnd":e),ref:a}),o)}));var z={"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};const I=["weight"];function O(e){let{weight:a="tertiary"}=e,l=x(e,I);return t.createElement(S,b({as:"hr",className:y(z,"weight",a)},l))}var M={"space-xsmall":"_6b1279e0","space-small":"_0d82c42d","space-medium":"_556714e1","space-large":"e90b43fb","space-xlarge":"a9c34345","space-xxlarge":"aa102efe","tablet-space-xsmall":"_34d16157","tablet-space-small":"c7e0e54f","tablet-space-medium":"_7f2a4e4b","tablet-space-large":"ae256487","tablet-space-xlarge":"e88be0f7","tablet-space-xxlarge":"dc7bcb18","desktop-space-xsmall":"_853f3012","desktop-space-small":"_3bfaf758","desktop-space-medium":"_36462a93","desktop-space-large":"e73081b7","desktop-space-xlarge":"e22ec9dd","desktop-space-xxlarge":"_4a20bd12"};const D=["as","space","align","alignY","children","exceptionallySetClassName"],W=_((function(e,a){let{as:l,space:n,align:i="left",alignY:r="center",children:o,exceptionallySetClassName:s}=e,c=x(e,D);return t.createElement(S,b(b({},c),{},{as:l,display:"flex",flexWrap:"wrap",className:[s,y(M,"space",n)],ref:a,alignItems:v(r,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":"center"),justifyContent:v(i,e=>"left"===e?"flexStart":"right"===e?"flexEnd":"center")}),o)}));var F={"space-xsmall":"_7b475ead","space-small":"_5641699f","space-medium":"_1a1c63e4","space-large":"_560f80a0","space-xlarge":"_84ffebbc","space-xxlarge":"b60a65cb","tablet-space-xsmall":"d808f5c3","tablet-space-small":"a51c76b3","tablet-space-medium":"_7185a7aa","tablet-space-large":"af82e610","tablet-space-xlarge":"_88b4ff46","tablet-space-xxlarge":"_9de15321","desktop-space-xsmall":"_6fb32d20","desktop-space-small":"_07ee315a","desktop-space-medium":"a270d7ec","desktop-space-large":"ea6ebb29","desktop-space-xlarge":"_35b36178","desktop-space-xxlarge":"_56c7dc23"};const P=["as","space","align","dividers","children","exceptionallySetClassName"],j=_((function(e,a){let{as:l,space:i,align:r="start",dividers:o="none",children:s,exceptionallySetClassName:c}=e,d=x(e,P);const m="start"===r?void 0:{width:"full",flexDirection:"column",display:"flex",alignItems:v(r,e=>"start"===e?"flexStart":"end"===e?"flexEnd":"center")};return t.createElement(S,b(b(b({},d),m),{},{as:l,className:[c,y(F,"space",i)],ref:a}),"none"!==o?t.Children.map(n(s),(e,a)=>a>0?t.createElement(t.Fragment,null,t.createElement(O,{weight:o}),e):e):s)})),H=["display","children","exceptionallySetClassName"],U=_((function(e,a){let{display:l="block",children:n,exceptionallySetClassName:i}=e,r=x(e,H);const o="print"in r&&r.print,s="above"in r,c="below"in r,d="below"in r&&"desktop"===r.below||"above"in r&&"mobile"===r.above;return s&&c&&console.warn('<Hidden /> should receive either above="…" or below="…" but not both'),s||c||o||console.warn("<Hidden /> did not receive any criteria to hide itself"),"above"in r&&delete r.above,"below"in r&&delete r.below,"print"in r&&delete r.print,t.createElement(S,b(b({},r),{},{ref:a,className:[i,o?"_0e595dea":null],display:s&&c?"none":{mobile:c?"none":l,tablet:d?"none":l,desktop:s?"none":l}}),n)})),Y=_((function(e,a){return t.createElement(S,b(b({},e),{},{ref:a,position:"absolute",overflow:"hidden",className:"_618235b7"}))})),K=["children","content","position","gapSize","className"];function q(e){let{children:t,content:n,position:r="top",gapSize:o=3,className:s}=e,c=x(e,K);const d=function(e){const t=i.useTooltipState(e),l=function(){const e=a.useRef(),t=a.useCallback((function(){null!=e.current&&clearTimeout(e.current)}),[]);return a.useEffect(()=>t,[t]),a.useCallback((function(a,l){return()=>{t(),e.current=setTimeout(a,l)}}),[t])}();return a.useMemo(()=>b(b({},t),{},{show:l(()=>t.show(),500),hide:l(()=>t.hide(),100)}),[l,t])}({placement:r,gutter:o}),m=a.Children.only(t);if(!n||!m)return m;if("string"==typeof m.ref)throw new Error("Tooltip: String refs cannot be used as they cannot be forwarded");return a.createElement(a.Fragment,null,a.createElement(i.TooltipAnchor,{state:d,ref:m.ref,onFocus:function(e){var t;e.currentTarget.addEventListener("keyup",(function(e){const t=e.key;"Escape"!==t&&"Enter"!==t&&"Space"!==t&&d.show()}),{once:!0}),e.preventDefault(),null==m||null==(t=m.props)||null==t.onFocus||t.onFocus(e)}},e=>a.cloneElement(m,b(b({},e),m.props))),d.visible?a.createElement(i.Tooltip,b(b({},c),{},{state:d,className:l("reactist_tooltip",s)}),"function"==typeof n?n():n):null)}function G({size:e=24}){return t.createElement("svg",{"aria-hidden":!0,width:e,height:e,viewBox:"0 0 24 24",className:"_51539197"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{className:"a0c466ed",d:"M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"}),t.createElement("path",{className:"_745b73d3",d:"M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"})))}var V={baseButton:"a8af2163",label:"bbdb467b","shape-rounded":"ca02fc07","size-small":"_45ffe137","size-normal":"_352995bd","size-large":"_3991076f",disabled:"f82232b7",iconButton:"ef4c88db",startIcon:"a08c25c7",endIcon:"_2f6adc11","variant-primary":"_3d1243b2","variant-secondary":"_16b6b062","variant-tertiary":"cffaea5e","variant-quaternary":"_98cd5c3f","tone-destructive":"_99cb1c4d"};const X=["as","variant","tone","size","shape","disabled","loading","tooltip","onClick","exceptionallySetClassName","children","startIcon","endIcon","icon","width","align"];function Z(e){e.preventDefault()}const $=_((function(e,a){let{as:l="div",variant:n,tone:i="normal",size:r="normal",shape:o="normal",disabled:s=!1,loading:c=!1,tooltip:d,onClick:m,exceptionallySetClassName:p,children:u,startIcon:f,endIcon:g,icon:h,width:_="auto",align:y="center"}=e,v=x(e,X);const k=c||s,E=t.createElement(S,b(b({},v),{},{as:l,ref:a,"aria-disabled":k,onClick:k?Z:m,width:h?void 0:_,className:[p,V.baseButton,V["variant-"+n],V["tone-"+i],V["size-"+r],"rounded"===o?V["shape-rounded"]:null,h?V.iconButton:null,s?V.disabled:null]}),h?c&&t.createElement(G,null)||h:t.createElement(t.Fragment,null,f?t.createElement(S,{display:"flex",className:V.startIcon,"aria-hidden":!0},c&&!g?t.createElement(G,null):f):null,u?t.createElement(S,{as:"span",className:V.label,overflow:"hidden",width:"full"===_?"full":void 0,textAlign:"auto"===_?"center":y},u):null,g||c&&!f?t.createElement(S,{display:"flex",className:V.endIcon,"aria-hidden":!0},c?t.createElement(G,null):g):null)),w=h&&void 0===d?v["aria-label"]:d;return w?t.createElement(q,{content:w},E):E})),J=["variant","tone","size","type","disabled","exceptionallySetClassName"],Q=t.forwardRef((function(e,a){let{variant:l,tone:n="normal",size:i="normal",type:r="button",disabled:o=!1,exceptionallySetClassName:s}=e,c=x(e,J);return t.createElement($,b(b({},c),{},{as:"button",ref:a,variant:l,tone:n,size:i,type:r,disabled:o,exceptionallySetClassName:s}))})),ee=["tone"],te={info:function(e){return t.createElement("svg",b({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm1.18-11.84a.84.84 0 1 1-1.68 0 .84.84 0 0 1 1.68 0zM12.5 10a.5.5 0 0 1 .5.5V15h1a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h1v-4h-1a.5.5 0 0 1 0-1h1.5z",fill:"currentColor"}))},positive:function(e){return t.createElement("svg",b({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm-4.354-8.104a.5.5 0 0 1 .708 0l2.146 2.147 5.146-5.147a.5.5 0 0 1 .708.708l-5.5 5.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 0-.708z",fill:"currentColor"}))},caution:function(e){return t.createElement("svg",b({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m3.254 16.992 7.018-12.03a2 2 0 0 1 3.455 0l7.018 12.03A2 2 0 0 1 19.018 20H4.982a2 2 0 0 1-1.728-3.008zm8.242-11.887a1 1 0 0 0-.36.36l-7.018 12.03A1 1 0 0 0 4.982 19h14.036a1 1 0 0 0 .864-1.504l-7.018-12.03a1 1 0 0 0-1.368-.36zM13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014a.987.987 0 1 0-1.971.055l.236 4.25c.053.945 1.445.945 1.498 0l.236-4.25.001-.027v-.028z",fill:"currentColor"}))},critical:function(e){return t.createElement("svg",b({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM2.5 12a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0zM13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014A.987.987 0 0 0 12 7.5h-.027l-.028.002a.987.987 0 0 0-.93 1.04l.236 4.25c.053.944 1.445.944 1.498 0l.236-4.25.001-.028v-.027z",fill:"currentColor"}))}};function ae(e){let{tone:a}=e,l=x(e,ee);const n=te[a];return n?t.createElement(n,b({},l)):null}function le(e){return t.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("path",{fill:"currentColor",d:"M5.146 5.146a.5.5 0 0 1 .708 0L12 11.293l6.146-6.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 0 .708L12.707 12l6.147 6.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.708 0L12 12.707l-6.146 6.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1 0-.708L11.293 12 5.146 5.854a.5.5 0 0 1-.057-.638z"}))}var ne={container:"eb665121","tone-info":"d0373ff9","tone-positive":"bb18dcab","tone-caution":"_0af02331","tone-critical":"f76146f9"};const ie=["size","exceptionallySetClassName"],re={xsmall:16,small:24,medium:36,large:48};var oe={container:"_464500ae","tone-info":"_1abfe147","tone-positive":"_36ce9859","tone-caution":"f92214b7","tone-critical":"be6cf28e"},se={heading:"_71a1610c","weight-light":"_63750f40","tone-secondary":"_9ce984cf","tone-danger":"_1acad35e","size-largest":"_3da27a00","size-larger":"df220733","size-smaller":"eb373739",lineClampMultipleLines:"f53cfd2b","lineClamp-1":"e4819fc9","lineClamp-2":"a0ed6177","lineClamp-3":"_180d433e","lineClamp-4":"_40826ad9","lineClamp-5":"_5999b247"};const ce=["level","weight","size","tone","children","lineClamp","align","exceptionallySetClassName"],de=t.forwardRef((function(e,a){let{level:l,weight:n="regular",size:i,tone:r="normal",children:o,lineClamp:s,align:c,exceptionallySetClassName:d}=e,m=x(e,ce);const p="h"+l,u="string"==typeof s?parseInt(s,10)>1:(s||0)>1;return t.createElement(S,b(b({},m),{},{className:[d,se.heading,"regular"!==n?y(se,"weight",n):null,"normal"!==r?y(se,"tone",r):null,y(se,"size",i),u?se.lineClampMultipleLines:null,s?y(se,"lineClamp",s.toString()):null],textAlign:c,paddingRight:s?"xsmall":void 0,as:p,ref:a}),o)}));var me={text:"a83bd4e0","size-caption":"_266d6623","size-copy":"a8d37c6e","size-subtitle":"_39f4eb1f","weight-semibold":"_7be5c531","weight-bold":"e214ff2e","tone-secondary":"_6a3e5ade","tone-danger":"_8f5b5f2b","tone-positive":"_9ae47ae4",lineClampMultipleLines:"_969f18f7","lineClamp-1":"_2f303ac3","lineClamp-2":"d3e04245","lineClamp-3":"_33411704","lineClamp-4":"bfc32640","lineClamp-5":"f813c82f"};const pe=["as","size","weight","tone","align","children","lineClamp","exceptionallySetClassName"],ue=_((function(e,a){let{as:l,size:n="body",weight:i="regular",tone:r="normal",align:o,children:s,lineClamp:c,exceptionallySetClassName:d}=e,m=x(e,pe);const p="string"==typeof c?Number(c)>1:(null!=c?c:1)>1;return t.createElement(S,b(b({},m),{},{as:l,className:[d,me.text,"body"!==n?y(me,"size",n):null,"regular"!==i?y(me,"weight",i):null,"normal"!==r?y(me,"tone",r):null,p?me.lineClampMultipleLines:null,c?y(me,"lineClamp",c.toString()):null],textAlign:o,paddingRight:c?"xsmall":void 0,ref:a}),s)})),fe=["as","variant","tone","size","exceptionallySetClassName","openInNewTab"],ge=_((function(e,a){let{as:l="a",variant:n,tone:i="normal",size:r="normal",exceptionallySetClassName:o,openInNewTab:s=!1}=e,c=x(e,fe);return t.createElement($,b(b({},c),{},{as:l,ref:a,variant:n,tone:i,size:r,exceptionallySetClassName:o,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0}))})),be=["as","openInNewTab","exceptionallySetClassName"],he=_((function(e,a){let{as:l="a",openInNewTab:n=!1,exceptionallySetClassName:i}=e,r=x(e,be);return t.createElement(S,b(b({},r),{},{as:l,display:"inline",className:[i,"_232127ef"],ref:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0}))})),xe=["checked","indeterminate","disabled"],_e={checked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z",unchecked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z",mixed:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2 7H8a1 1 0 0 0 0 2h8a1 1 0 0 0 0-2z",filled:"M6 4H18C19.1046 4 20 4.89543 20 6V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6C4 4.89543 4.89543 4 6 4Z"};function ye(e){let{checked:a,indeterminate:l,disabled:n}=e,i=x(e,xe);const r=function({checked:e,indeterminate:t,disabled:a}){return t?"mixed":e?"checked":a?"filled":"unchecked"}({checked:a,indeterminate:l,disabled:n});return t.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},i),t.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:_e[r]}))}const ve=["label","disabled","indeterminate","defaultChecked","onChange"],ke=t.forwardRef((function(e,a){var l,n,i;let{label:o,disabled:s,indeterminate:c,defaultChecked:d,onChange:m}=e,p=x(e,ve);"boolean"!=typeof c||"boolean"==typeof p.checked||(console.warn("Cannot use indeterminate on an uncontrolled checkbox"),c=void 0),o||p["aria-label"]||p["aria-labelledby"]||console.warn("A Checkbox needs a label");const[u,f]=t.useState(!1),[g,h]=t.useState(null!=(l=null!=(n=p.checked)?n:d)&&l),_=null!=(i=p.checked)?i:g,y=t.useRef(null),v=r.useForkRef(y,a);return t.useEffect((function(){y.current&&"boolean"==typeof c&&(y.current.indeterminate=c)}),[c]),t.createElement(S,{as:"label",display:"flex",alignItems:"center",className:["_96c4d12f",s?"_5048e2a5":null,_?"_42187b48":null,u?"_3510166f":null]},t.createElement("input",b(b({},p),{},{ref:v,type:"checkbox","aria-checked":c?"mixed":_,checked:_,disabled:s,onChange:e=>{null==m||m(e),e.defaultPrevented||h(e.currentTarget.checked)},onBlur:e=>{f(!1),null==p||null==p.onBlur||p.onBlur(e)},onKeyUp:e=>{f(!0),null==p||null==p.onKeyUp||p.onKeyUp(e)}})),t.createElement(ye,{checked:_,disabled:s,indeterminate:c,"aria-hidden":!0}),o?t.createElement(ue,null,o):null)}));let Ee=0;function we(e){const a=t.useRef(null!=e?e:null);return a.current||(a.current="element-"+Ee++),a.current}function Ce(e){return t.createElement(ue,b({as:"p",tone:"secondary",size:"copy"},e))}function Ne(e){return t.createElement("svg",b({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.5C4.96243 2.5 2.5 4.96243 2.5 8C2.5 11.0376 4.96243 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8C13.5 4.96243 11.0376 2.5 8 2.5ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8ZM8.66667 10.3333C8.66667 10.7015 8.36819 11 8 11C7.63181 11 7.33333 10.7015 7.33333 10.3333C7.33333 9.96514 7.63181 9.66667 8 9.66667C8.36819 9.66667 8.66667 9.96514 8.66667 10.3333ZM8.65766 5.65766C8.65766 5.29445 8.36322 5 8 5C7.99087 5.00008 7.98631 5.00013 7.98175 5.00025C7.97719 5.00038 7.97263 5.00059 7.96352 5.00101C7.60086 5.02116 7.3232 5.33149 7.34335 5.69415L7.50077 8.52774C7.53575 9.15742 8.46425 9.15742 8.49923 8.52774L8.65665 5.69415C8.65707 5.68503 8.65728 5.68047 8.65741 5.67591C8.65754 5.67135 8.65758 5.66679 8.65766 5.65766Z",fill:"currentColor"}))}function Se({id:e,children:a,tone:l}){return t.createElement(ue,{as:"p",tone:"error"===l?"danger":"success"===l?"positive":"normal",size:"copy",id:e},t.createElement(S,{as:"span",marginRight:"xsmall",display:"inlineFlex",className:"_77b2107e"},"loading"===l?t.createElement(G,{size:16}):t.createElement(Ne,{"aria-hidden":!0})),a)}function Re({variant:e="default",label:a,secondaryLabel:l,auxiliaryLabel:n,hint:i,message:r,tone:o="neutral",className:s,children:c,maxWidth:d,hidden:m,"aria-describedby":p,id:u}){const f=we(u),g=we(),b=we(),h={id:f,"aria-describedby":null!=p?p:[r?b:null,g].filter(Boolean).join(" "),"aria-invalid":"error"===o||void 0};return t.createElement(j,{space:"small",hidden:m},t.createElement(S,{className:[s,"_2e189908","error"===o?"d1a17d92":null,"bordered"===e?"fd20ef50":null],maxWidth:d},t.createElement(S,{as:"span",display:"flex",justifyContent:"spaceBetween",alignItems:"flexEnd"},t.createElement(ue,{size:"bordered"===e?"caption":"body",as:"label",htmlFor:f},a?t.createElement("span",{className:"_75e0afa0"},a):null,l?t.createElement("span",{className:"d04a867d"}," (",l,")"):null),n?t.createElement(S,{className:"_83051e0a",paddingLeft:"small"},n):null),c(h)),r?t.createElement(Se,{id:b,tone:o},r):null,i?t.createElement(Ce,{id:g},i):null)}function Le(e){return t.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"gray"},t.createElement("path",{d:"M21.358 12C17.825 7.65 14.692 5.5 12 5.5c-2.624 0-5.67 2.043-9.097 6.181a.5.5 0 0 0 0 .638C6.331 16.457 9.376 18.5 12 18.5c2.692 0 5.825-2.15 9.358-6.5z"}),t.createElement("circle",{cx:"12",cy:"12",r:"3.5"})))}function Be(e){return t.createElement("svg",b({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"gray",fillRule:"evenodd",transform:"translate(2 4)"},t.createElement("path",{fillRule:"nonzero",d:"M13.047 2.888C11.962 2.294 10.944 2 10 2 7.56 2 4.63 3.966 1.288 8c1.133 1.368 2.218 2.497 3.253 3.394l-.708.708c-1.068-.93-2.173-2.085-3.315-3.464a1 1 0 0 1 0-1.276C4.031 3.121 7.192 1 10 1c1.196 0 2.456.385 3.78 1.154l-.733.734zm-6.02 10.263C8.084 13.72 9.076 14 10 14c2.443 0 5.373-1.969 8.712-6-1.11-1.34-2.176-2.453-3.193-3.341l.708-.709C17.437 5.013 18.695 6.363 20 8c-3.721 4.667-7.054 7-10 7-1.175 0-2.411-.371-3.709-1.113l.735-.736z"}),t.createElement("path",{fillRule:"nonzero",d:"M8.478 11.7l.79-.79a3 3 0 0 0 3.642-3.642l.79-.79A4 4 0 0 1 8.477 11.7zM6.334 9.602a4 4 0 0 1 5.268-5.268l-.78.78A3.002 3.002 0 0 0 7.113 8.82l-.78.78z"}),t.createElement("rect",{width:"21",height:"1",x:"-.722",y:"7.778",rx:".5",transform:"rotate(-45 9.778 8.278)"})))}const Te=["variant","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","togglePasswordLabel","hidden","aria-describedby"],Ae=t.forwardRef((function(e,a){let{variant:l="default",label:n,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:c,tone:d,maxWidth:m,togglePasswordLabel:p="Toggle password visibility",hidden:u,"aria-describedby":f}=e,g=x(e,Te);const h=we(g.id),_=t.useRef(null),y=r.useForkRef(_,a),[v,k]=t.useState(!1);function E(){var e;k(e=>!e),null==(e=_.current)||e.focus()}return t.createElement(Re,{variant:l,id:h,label:n,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:c,tone:d,maxWidth:m,hidden:u,"aria-describedby":f},e=>t.createElement(S,{display:"flex",alignItems:"center",className:["_66b448b3","_9d172ece","error"===d?"_7e63ee20":null,"bordered"===l?"c59d0239":null]},t.createElement("input",b(b(b({},g),e),{},{ref:y,type:v?"text":"password"})),t.createElement(q,{content:p},t.createElement("button",{type:"button",onClick:E,"aria-label":p,tabIndex:-1},t.createElement(v?Le:Be,{"aria-hidden":!0})))))})),ze=["id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","children","hidden","aria-describedby"],Ie=t.forwardRef((function(e,a){let{id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,maxWidth:d,children:m,hidden:p,"aria-describedby":u}=e,f=x(e,ze);return t.createElement(Re,{id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,maxWidth:d,hidden:p,"aria-describedby":u},e=>t.createElement(S,{className:["_07e75293","error"===c?"f147bcea":null]},t.createElement("select",b(b(b({},f),e),{},{ref:a}),m),t.createElement(Oe,{"aria-hidden":!0})))}));function Oe(e){return t.createElement("svg",b({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.646 5.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 1 1 .708-.708L8 9.293l3.646-3.647z",fill:"currentColor"}))}const Me=["label","hint","disabled","hidden","defaultChecked","id","aria-describedby","aria-label","aria-labelledby","onChange"],De=t.forwardRef((function(e,a){var l,n,i;let{label:r,hint:o,disabled:s=!1,hidden:c,defaultChecked:d,id:m,"aria-describedby":p,"aria-label":u,"aria-labelledby":f,onChange:g}=e,h=x(e,Me);const _=we(m),y=we(),v=null!=p?p:o?y:void 0,k=null!=u?u:void 0,E=null!=f?f:void 0,[w,C]=t.useState(!1),[N,R]=t.useState(null!=(l=null!=(n=h.checked)?n:d)&&l),L=null!=(i=h.checked)?i:N;return t.createElement(j,{space:"small",hidden:c},t.createElement(S,{className:["ec63c3f1",s?"_7de9c06d":null,L?"a37981fc":null,w?"a6490371":null],as:"label",display:"flex",alignItems:"center"},t.createElement(S,{position:"relative",display:"inlineBlock",overflow:"visible",marginRight:"small",flexShrink:0,className:"_2a17ac45"},t.createElement(Y,null,t.createElement("input",b(b({},h),{},{id:_,type:"checkbox",disabled:s,"aria-describedby":v,"aria-label":k,"aria-labelledby":E,ref:a,checked:L,onChange:e=>{null==g||g(e),e.defaultPrevented||R(e.currentTarget.checked)},onBlur:e=>{C(!1),null==h||null==h.onBlur||h.onBlur(e)},onKeyUp:e=>{C(!0),null==h||null==h.onKeyUp||h.onKeyUp(e)}}))),t.createElement("span",{className:"_91409c7f"})),t.createElement(ue,{exceptionallySetClassName:"_68cc9707"},r)),o?t.createElement(Ce,{id:y},o):null)})),We=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth"],Fe=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","type","maxWidth","hidden","aria-describedby"],Pe=t.forwardRef((function(e,a){let{variant:l="default",id:n,label:i,secondaryLabel:r,auxiliaryLabel:o,hint:s,message:c,tone:d,type:m="text",maxWidth:p,hidden:u,"aria-describedby":f}=e,g=x(e,Fe);return t.createElement(Re,{variant:l,id:n,label:i,secondaryLabel:r,auxiliaryLabel:o,hint:s,message:c,tone:d,maxWidth:p,hidden:u,"aria-describedby":f},e=>t.createElement(S,{className:["_9d172ece","error"===d?"_7e63ee20":null,"bordered"===l?"c59d0239":null]},t.createElement("input",b(b(b({},g),e),{},{type:m,ref:a}))))}));function je(e){const a=t.useRef(null);return t.useEffect(()=>{a.current=e},[e]),a.current}var He={tab:"_76bbcdaa",track:"_531eb92b","tab-neutral":"_13321d47","tab-themed":"_58c4d63d","track-neutral":"_11ef0184","track-themed":"ce590259","track-xsmall":"d8366aff","track-small":"e28fbcf0","track-medium":"_1e1d7d0e","track-large":"_611e18a3","track-xlarge":"_7e083426","track-xxlarge":"_37c54913"};const Ue=["as","children","id","exceptionallySetClassName"],Ye=["children","space"],Ke=["children","id","as","render"],qe=t.createContext(null),Ge=_((function(e,a){let{as:n,children:i,id:r,exceptionallySetClassName:s}=e,c=x(e,Ue);const d=t.useContext(qe);if(!d)return null;const{variant:m,tabState:p}=d;return t.createElement(o.Tab,b(b({},c),{},{as:n,className:l(s,He.tab,He["tab-"+m]),id:r,state:p,ref:a}),i)})),Ve=_((function(e,a){let{children:l,id:n,as:i,render:r="always"}=e,s=x(e,Ke);const c=t.useContext(qe),[d,m]=t.useState(!1),p=(null==c?void 0:c.tabState.selectedId)===n;if(t.useEffect((function(){!d&&p&&m(!0)}),[d,p]),!c)return null;const{tabState:u}=c;return"always"===r||"active"===r&&p||"lazy"===r&&(p||d)?t.createElement(o.TabPanel,b(b({tabId:n},s),{},{state:u,as:i,ref:a}),l):null}));var Xe={"reach-portal":"_37bef8d8",fadein:"_77f9687f",fitContent:"bcc4e0a5",container:"d4832c2d",full:"b0c3b021",large:"_573d6aa5",medium:"_8550d996",small:"_43bb18f5",xlarge:"_57b4159d",overlay:"cb63f300",expand:"e741893e",buttonContainer:"bb1ce281",headerContent:"c5ef989c"};const Ze=["isOpen","onDismiss","height","width","exceptionallySetClassName","autoFocus","children"],$e=["children","button","withDivider","exceptionallySetClassName"],Je=["exceptionallySetClassName","children"],Qe=["exceptionallySetClassName","withDivider"],et=["children"],tt=t.createContext({onDismiss:void 0,height:"fitContent"});function at(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function lt(e){const{onDismiss:a}=t.useContext(tt),[l,n]=t.useState(!1),[i,r]=t.useState(!1);return t.useEffect((function(){i?n(!0):r(!0)}),[i]),t.createElement(Q,b(b({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(le,null),tabIndex:l?0:-1}))}function nt(e){let{exceptionallySetClassName:a,withDivider:l=!1}=e,n=x(e,Qe);return t.createElement(t.Fragment,null,l?t.createElement(O,null):null,t.createElement(S,b(b({as:"footer"},n),{},{className:a,padding:"large"})))}function it(e){var t;if(!e)return"";const a=e.trim().split(" "),l=a[0],n=a[a.length-1];let i=null==l?void 0:l[0];return null!=l&&null!=n&&null!=i&&l[0]!==n[0]&&(i+=n[0]),null==(t=i)?void 0:t.toUpperCase()}function rt(e,t){const a=e.split("@")[0];return(a&&a.charCodeAt(0)+a.charCodeAt(a.length-1)||0)%t}var ot={avatar:"_38a1be89","size-xxs":"d32e92ae","size-xs":"_0667d719","size-s":"cf529fcf","size-m":"_6e268eab","size-l":"d64c62cf","size-xl":"_44fb77de","size-xxl":"_01f85e0e","size-xxxl":"_41a5fe19","tablet-size-xxs":"_6ab1577d","tablet-size-xs":"b52a4963","tablet-size-s":"_714a8419","tablet-size-m":"_81cd4d51","tablet-size-l":"bf0a4edb","tablet-size-xl":"e4f0dabd","tablet-size-xxl":"_67ea065d","tablet-size-xxxl":"_2af7f76f","desktop-size-xxs":"_759081dc","desktop-size-xs":"_8290d1c1","desktop-size-s":"_48ea172d","desktop-size-m":"_758f6641","desktop-size-l":"f9ada088","desktop-size-xl":"d3bb7470","desktop-size-xxl":"_9a312ee3","desktop-size-xxxl":"a1d30c23"};const st=["user","avatarUrl","size","className","colorList","exceptionallySetClassName"],ct=["#fcc652","#e9952c","#e16b2d","#d84b40","#e8435a","#e5198a","#ad3889","#86389c","#a8a8a8","#98be2f","#5d9d50","#5f9f85","#5bbcb6","#32a3bf","#2bafeb","#2d88c3","#3863cc","#5e5e5e"];function dt(e){let{user:t,avatarUrl:l,size:n="l",className:i,colorList:r=ct,exceptionallySetClassName:o}=e,s=x(e,st);const c=it(t.name)||it(t.email),d=n||"l",m=l?{backgroundImage:"url("+l+")",textIndent:"-9999px"}:{backgroundColor:r[rt(t.email,r.length)]},p=y(ot,"size",d);return a.createElement(S,b({className:[i,ot.avatar,p,o],style:m},s),c)}dt.displayName="Avatar";const mt=["type","variant","size","loading","disabled","tooltip","onClick","children"],pt=a.forwardRef((function(e,t){let{type:n="button",variant:i,size:r="default",loading:o=!1,disabled:s=!1,tooltip:c,onClick:d,children:m}=e,p=x(e,mt);const u=l("reactist_button",i?"reactist_button--"+i:null,"default"!==r?"reactist_button--"+r:null,{"reactist_button--loading":o},p.className),f=a.createElement("button",b(b({},p),{},{ref:t,type:n,className:u,"aria-disabled":s||o,onClick:s||o?void 0:d}),m);return c?a.createElement(q,{content:c},f):f}));pt.displayName="Button",pt.defaultProps={size:"default",loading:!1,disabled:!1};const ut=["children","onClick","tooltip","className"];class ft extends a.Component{constructor(e,t){super(e,t),this._timeout=void 0,this._handleClickOutside=e=>{const t=d.findDOMNode(this);t&&!t.contains(e.target)?this._toggleShowBody():this.props.allowBodyInteractions||(this._timeout=setTimeout(()=>{this.state.showBody&&this._toggleShowBody()},100))},this._toggleShowBody=()=>{this.state.showBody?(this.props.onHideBody&&this.props.onHideBody(),document.removeEventListener("click",this._handleClickOutside,!0)):(this.props.onShowBody&&this.props.onShowBody(),document.addEventListener("click",this._handleClickOutside,!0)),this.setState({showBody:!this.state.showBody})},this._setPosition=e=>{if(e){const t=document.getElementById(this.props.scrolling_parent?this.props.scrolling_parent:"");if(t){const a=d.findDOMNode(this);if(!a)return;const l=d.findDOMNode(this).offsetTop,n=a.querySelector(".trigger");if(!n)return;const i=t.clientHeight+t.scrollTop-l-n.clientHeight<e.clientHeight;i!==this.state.top&&this.setState({top:i})}}},this.state={showBody:!1,top:e.top||!1},this._timeout=void 0}componentWillUnmount(){document.removeEventListener("click",this._handleClickOutside,!0),this._timeout&&clearTimeout(this._timeout)}_getTriggerComponent(){var e;const t=null==(e=this.props.children)?void 0:e[0];return t?a.cloneElement(t,{onClick:this._toggleShowBody}):void 0}_getBodyComponent(){if(!this.state.showBody)return null;const{top:e}=this.state,{right:t=!1,children:n}=this.props,i={top:e,right:t,setPosition:this._setPosition},r=l({body_wrapper:!0,with_arrow:!0,top:e,bottom:!e}),o=null==n?void 0:n[1],s="function"==typeof o?o(i):o?a.cloneElement(o,i):void 0;return a.createElement("div",{className:r,style:{position:"relative"}},s)}render(){const e=l("reactist_dropdown",this.props.className),{top:t}=this.state;return a.createElement("div",{style:{display:"inline-block"},className:e},t&&this._getBodyComponent(),this._getTriggerComponent(),!t&&this._getBodyComponent())}}ft.displayName=void 0,ft.displayName="Dropdown.Box";const gt=a.forwardRef((function(e,t){let{children:n,onClick:i,tooltip:r,className:o}=e,s=x(e,ut);return a.createElement(pt,b(b({},s),{},{className:l("trigger",o),onClick:function(e){e.preventDefault(),e.stopPropagation(),i&&i(e)},tooltip:r,ref:t}),n)}));function bt({top:e,right:t,children:l,setPosition:n}){const i={position:"absolute",right:0,top:0};return e&&(i.top="auto",i.bottom=0),t&&(i.right="auto",i.left=0),a.createElement("div",{ref:n,style:i,className:"body",id:"reactist-dropdown-body"},l)}gt.displayName="Dropdown.Trigger",bt.displayName="Dropdown.Body";const ht={Box:ft,Trigger:gt,Body:bt},xt=["#606060","#4A90E2","#03B3B2","#008299","#82BA00","#D24726","#AC193D","#DC4FAD","#3BD5FB","#74E8D3","#FFCC00","#FB886E","#CCCCCC"],_t=e=>"string"!=typeof e;function yt({color:e=0,small:t,onChange:n,colorList:i=xt}){return a.createElement(ht.Box,{right:!0,className:"reactist_color_picker"},a.createElement(ht.Trigger,null,(()=>{const n=((e,t)=>e[t>=e.length?0:t])(i,e);return a.createElement("span",{className:l("color_trigger",{small:t}),style:{backgroundColor:_t(n)?n.color:n}},a.createElement("span",{className:"color_trigger--inner_ring"}))})()),a.createElement(ht.Body,null,a.createElement("div",{className:"color_options"},i.reduce((t,l,r)=>(t.push(a.createElement(vt,{isActive:e>=i.length?0===r:r===e,key:r,color:_t(l)?l.color:l,colorIndex:r,onClick:n,tooltip:_t(l)?l.name:null})),t),[]))))}function vt({color:e,colorIndex:t,isActive:l,onClick:n,tooltip:i}){const r=a.createElement("span",{className:"reactist color_item"+(l?" active":""),style:{backgroundColor:e},onClick:()=>null==n?void 0:n(t)},a.createElement("span",{className:"color_item--inner_ring"}));return i?a.createElement(q,{content:i},r):r}yt.displayName="ColorPicker",vt.displayName="ColorItem";const kt=["children","className","translateKey","isMac"];let Et=e=>e;function wt(e){switch(e.toLowerCase()){case"cmd":case"mod":return"⌘";case"control":case"ctrl":return"⌃";case"alt":return"⌥";case"shift":return"⇧";case"space":return"␣";default:return e}}function Ct(e){var a,n;let{children:i,className:r,translateKey:o=Et,isMac:s=null!=(a=null==(n=navigator.platform)?void 0:n.toUpperCase().includes("MAC"))&&a}=e,c=x(e,kt);const d="string"==typeof i?[i]:i;return t.createElement("span",b({className:l("reactist_keyboard_shortcut",r,{"reactist_keyboard_shortcut--macos":s})},c),d.map((e,a)=>t.createElement(t.Fragment,{key:a},0===a?null:", ",t.createElement("kbd",null,function(e,t,a){const l=t?wt:a,n=/\b(mod|cmd|ctrl|control|alt|shift)\b/i.test(e);return t||(e=e.replace(/\b(mod|cmd)\b/i,"ctrl")),e.split(/\s*\+\s*/).map((function(e){return function(e){return/^(mod|cmd|ctrl|control|alt|shift|space|super)$/i.test(e)}(e)?function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}(l(e)):n&&1===e.length?e.toUpperCase():e}))}(e,s,o).map((e,a)=>t.createElement("kbd",{key:a},e))))))}Ct.setTranslateKey=e=>{Et=e};const Nt={resolveByKey(e){switch(e){case"Left":case"ArrowLeft":return"ArrowLeft";case"Up":case"ArrowUp":return"ArrowUp";case"Right":case"ArrowRight":return"ArrowRight";case"Down":case"ArrowDown":return"ArrowDown";case"Enter":return"Enter";case"Backspace":return"Backspace";case"Esc":case"Escape":return"Escape";default:return null}},resolveByKeyCode(e){switch(e){case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 13:return"Enter";case 8:return"Backspace";case 27:return"Escape";default:return null}}},St={ArrowUp:"onArrowUp",ArrowDown:"onArrowDown",ArrowLeft:"onArrowLeft",ArrowRight:"onArrowRight",Enter:"onEnter",Backspace:"onBackspace",Escape:"onEscape"},Rt={ArrowUp:"propagateArrowUp",ArrowDown:"propagateArrowDown",ArrowLeft:"propagateArrowLeft",ArrowRight:"propagateArrowRight",Enter:"propagateEnter",Backspace:"propagateBackspace",Escape:"propagateEscape"};function Lt({fillPercentage:e=0,className:t,"aria-valuetext":n}){const i=l("reactist_progress_bar",t),r=e<0?0:e>100?100:e;return a.createElement("div",{className:i},a.createElement("div",{className:"inner",style:{width:r+"%"}}),a.createElement(Y,null,a.createElement("progress",{value:r,max:100,"aria-valuetext":null!=n?n:void 0})))}Lt.displayName="ProgressBar",m.extend(p);const Bt={SHORT_FORMAT_CURRENT_YEAR:"L",SHORT_FORMAT_PAST_YEAR:"LL",LONG_FORMAT:"LL, LT",timeAgo(e,t={}){const{locale:a="en",shortFormatCurrentYear:l=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:n=this.SHORT_FORMAT_PAST_YEAR,daysSuffix:i="d",hoursSuffix:r="h",minutesSuffix:o="m",momentsAgo:s="moments ago"}=t,c=m(),d=m(1e3*e);d.locale(a);const p=c.diff(d,"minute"),u=c.diff(d,"hour"),f=c.diff(d,"day");return f>1?d.isSame(c,"year")?d.format(l):d.format(n):1===f?""+f+i:u>0&&u<=23?""+u+r:p>0&&p<=59?""+p+o:s},formatTime(e,t={}){const{locale:a="en",shortFormatCurrentYear:l=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:n=this.SHORT_FORMAT_PAST_YEAR}=t,i=m(1e3*e);return i.locale(a),i.isSame(m(),"year")?i.format(l):i.format(n)},formatTimeLong(e,t={}){const{locale:a="en",longFormat:l=this.LONG_FORMAT}=t,n=m(1e3*e);return n.locale(a),n.format(l)}};class Tt extends a.Component{constructor(e){super(e),this.refreshInterval=void 0,this.refreshInterval=void 0,this.state={hovered:!1,mouseX:void 0,mouseY:void 0}}componentDidMount(){this.props.refresh&&this._refresh()}componentDidUpdate(e){!e.refresh&&this.props.refresh&&this._refresh(),e.refresh&&!this.props.refresh&&this.refreshInterval&&clearTimeout(this.refreshInterval)}componentWillUnmount(){this.refreshInterval&&clearTimeout(this.refreshInterval)}_setHovered(e,t){const{mouseX:a,mouseY:l}=this.state,{clientX:n,clientY:i}=t;n===a&&i===l||this.setState(()=>({hovered:e,mouseX:n,mouseY:i}))}_renderTime(e){if(this.props.time){if(this.state.hovered){if(this.props.expandFullyOnHover&&!this.props.tooltipOnHover)return Bt.formatTimeLong(this.props.time,e);if(this.props.expandOnHover&&!this.props.tooltipOnHover)return Bt.formatTime(this.props.time,e)}return Bt.timeAgo(this.props.time,e)}}_refresh(){this.refreshInterval=setInterval(()=>{this.forceUpdate()},6e4)}render(){let e="reactist_time";this.props.className&&(e=this.props.className);const t=this._renderTime(this.props.config);return a.createElement("time",{className:e,onMouseEnter:e=>this._setHovered(!0,e),onMouseLeave:e=>this._setHovered(!1,e)},this.props.tooltipOnHover?a.createElement(q,{content:this.props.tooltip||this.props.time&&Bt.formatTimeLong(this.props.time,this.props.config)},a.createElement("span",null,t)):t)}}Tt.displayName=void 0,Tt.defaultProps=void 0,Tt.displayName="Time",Tt.defaultProps={expandOnHover:!1,expandFullyOnHover:!1,tooltipOnHover:!1,refresh:!0,config:{locale:"en",daysSuffix:"d",hoursSuffix:"h",minutesSuffix:"m",momentsAgo:"moments ago"}};const At=()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24"},a.createElement("path",{fill:"gray",fillRule:"evenodd",d:"M11.293 12L5.146 5.854a.5.5 0 1 1 .708-.708L12 11.293l6.146-6.147a.5.5 0 0 1 .708.708L12.707 12l6.147 6.146a.5.5 0 0 1-.708.708L12 12.707l-6.146 6.147a.5.5 0 0 1-.708-.708L11.293 12z"})),zt=["id","icon","title","subtitle","children","customCloseButton","onClick","onClose","closeAltText","className","aria-live"],It=["children","onItemSelect"],Ot=["exceptionallySetClassName"],Mt=["exceptionallySetClassName"],Dt=["value","children","onSelect","hideOnSelect","onClick","exceptionallySetClassName","as"],Wt=["label","children","exceptionallySetClassName"],Ft=t.createContext({});function Pt(e){let{children:a,onItemSelect:l}=e,n=x(e,It);const i=u.useMenuState(b({focusLoop:!0,gutter:8,shift:4},n)),r=t.useCallback((function(e){l&&l(e)}),[l]),o=t.useMemo(()=>({state:i,handleItemSelect:r}),[i,r]);return t.createElement(Ft.Provider,{value:o},a)}const jt=_((function(e,a){let{exceptionallySetClassName:n}=e,i=x(e,Ot);const{state:r}=t.useContext(Ft);return t.createElement(u.MenuButton,b(b({},i),{},{state:r,ref:a,className:l("reactist_menubutton",n)}))})),Ht=_((function(e,a){let{exceptionallySetClassName:n}=e,i=x(e,Mt);const{state:r}=t.useContext(Ft);return r.visible?t.createElement(f.Portal,{preserveTabOrder:!0},t.createElement(u.Menu,b(b({},i),{},{state:r,ref:a,className:l("reactist_menulist",n)}))):null})),Ut=_((function(e,a){let{value:l,children:n,onSelect:i,hideOnSelect:r=!0,onClick:o,exceptionallySetClassName:s,as:c="button"}=e,d=x(e,Dt);const{handleItemSelect:m,state:p}=t.useContext(Ft),{hide:f}=p,g=t.useCallback((function(e){null==o||o(e);const t=!1!==(i&&!e.defaultPrevented?i():void 0)&&r;m(l),t&&f()}),[i,o,m,r,f,l]);return t.createElement(u.MenuItem,b(b({},d),{},{as:c,state:p,ref:a,onClick:g,className:s,hideOnClick:!1}),n)})),Yt=t.forwardRef((function({children:e,onItemSelect:a},n){const{handleItemSelect:i,state:r}=t.useContext(Ft),{hide:o}=r,s=t.useCallback((function(e){a&&a(e),i(e),o()}),[o,i,a]),[c,d]=t.Children.toArray(e),m=u.useMenuItem({state:r});return t.createElement(Pt,{onItemSelect:s},t.cloneElement(c,b(b({},m),{},{className:l(m.className,"reactist_submenu_button"),ref:n})),d)})),Kt=_((function(e,a){let{label:l,children:n,exceptionallySetClassName:i}=e,r=x(e,Wt);const{state:o}=t.useContext(Ft);return t.createElement(u.MenuGroup,b(b({},r),{},{ref:a,state:o,className:i}),l?t.createElement("div",{role:"presentation",className:"reactist_menugroup__label"},l):null,n)})),qt=a.forwardRef((e,t)=>{const n=l("reactist_input",e.className);return a.createElement("input",b(b({},e),{},{className:n,ref:t}))});qt.displayName="Input";const Gt=["value","options","onChange","disabled","className","defaultValue"];function Vt(e){let{value:t,options:n=[],onChange:i,disabled:r=!0,className:o="",defaultValue:s}=e,c=x(e,Gt);const d=l("reactist_select",{disabled:r},o);return a.createElement("select",b({className:d,value:t,onChange:e=>i?i(e.target.value):void 0,disabled:r,defaultValue:s},c),null==n?void 0:n.map(e=>a.createElement("option",{key:e.key||e.value,value:e.value,disabled:e.disabled},e.text)))}Vt.displayName="Select",Vt.defaultProps={options:[],disabled:!1},exports.Alert=function({id:e,children:a,tone:l,closeLabel:n,onClose:i}){return t.createElement(S,{id:e,role:"alert","aria-live":"polite",borderRadius:"standard",className:[ne.container,y(ne,"tone",l)]},t.createElement(A,{space:"small",alignY:"top"},t.createElement(T,{width:"content"},t.createElement(ae,{tone:l})),t.createElement(T,null,t.createElement(S,{paddingY:"xsmall",paddingRight:null!=i&&null!=n?void 0:"small"},a)),null!=i&&null!=n?t.createElement(T,{width:"content"},t.createElement(Q,{variant:"quaternary",size:"small",onClick:i,"aria-label":n,icon:t.createElement(le,null),style:{"--reactist-btn-hover-fill":"transparent"}})):null))},exports.Avatar=dt,exports.Box=S,exports.Button=Q,exports.ButtonLink=ge,exports.COLORS=xt,exports.CheckboxField=ke,exports.ColorPicker=yt,exports.Column=T,exports.Columns=A,exports.DeprecatedButton=pt,exports.DeprecatedDropdown=ht,exports.DeprecatedInput=qt,exports.DeprecatedSelect=Vt,exports.Divider=O,exports.Heading=de,exports.Hidden=U,exports.HiddenVisually=Y,exports.Inline=W,exports.KeyCapturer=function(e){const{children:l,eventName:n="onKeyDown"}=e,i=t.useRef(!1);return a.cloneElement(l,b({[n]:function(t){const a=void 0!==t.key?Nt.resolveByKey(t.key):Nt.resolveByKeyCode(t.keyCode);if(!a)return;const l=e[Rt[a]]||!1,n=e[St[a]];"Enter"===a&&n&&(i.current||229===(t.keyCode||t.which))||n&&(n(t),l||(t.preventDefault(),t.stopPropagation()))}},e.onEnter?{onCompositionStart:()=>{i.current=!0},onCompositionEnd:()=>{i.current=!1}}:void 0))},exports.KeyboardShortcut=Ct,exports.Loading=function(e){var t;let{size:l="small",exceptionallySetClassName:n}=e,i=x(e,ie);const r=null!=(t=re[l])?t:re.small,o=i["aria-label"]?i["aria-label"]:i["aria-labelledby"]?void 0:"Loading…";return a.createElement(S,b(b({},i),{},{"aria-label":o,className:n,display:"flex",alignItems:"center",justifyContent:"center",role:"progressbar"}),a.createElement(G,{size:r,"aria-hidden":!0}))},exports.Menu=Pt,exports.MenuButton=jt,exports.MenuGroup=Kt,exports.MenuItem=Ut,exports.MenuList=Ht,exports.Modal=function(e){let{isOpen:a,onDismiss:n,height:i="fitContent",width:r="medium",exceptionallySetClassName:o,autoFocus:d=!0,children:m}=e,p=x(e,Ze);const u=t.useMemo(()=>({onDismiss:n,height:i}),[n,i]);return t.createElement(s.DialogOverlay,{isOpen:a,onDismiss:n,dangerouslyBypassFocusLock:!0,className:l(Xe.overlay,Xe[i],Xe[r]),"data-testid":"modal-overlay"},t.createElement(c,{autoFocus:d,whiteList:at,returnFocus:!0},t.createElement(s.DialogContent,b(b({},p),{},{as:S,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===i?"full":void 0,flexGrow:"expand"===i?1:0,className:[o,Xe.container]}),t.createElement(tt.Provider,{value:u},m))))},exports.ModalActions=function(e){let{children:a}=e,l=x(e,et);return t.createElement(nt,b({},l),t.createElement(W,{align:"right",space:"large"},a))},exports.ModalBody=function(e){let{exceptionallySetClassName:a,children:l}=e,n=x(e,Je);const{height:i}=t.useContext(tt);return t.createElement(S,b(b({},n),{},{className:a,flexGrow:"expand"===i?1:0,height:"expand"===i?"full":void 0,overflow:"auto"}),t.createElement(S,{padding:"large",paddingBottom:"xxlarge"},l))},exports.ModalCloseButton=lt,exports.ModalFooter=nt,exports.ModalHeader=function(e){let{children:a,button:l=!0,withDivider:n=!1,exceptionallySetClassName:i}=e,r=x(e,$e);return t.createElement(t.Fragment,null,t.createElement(S,b(b({},r),{},{as:"header",paddingLeft:"large",paddingRight:!1===l||null===l?"large":"small",paddingY:"small",className:i}),t.createElement(A,{space:"large",alignY:"center"},t.createElement(T,{width:"auto"},a),!1===l||null===l?t.createElement("div",{className:Xe.headerContent}):t.createElement(T,{width:"content",exceptionallySetClassName:Xe.buttonContainer,"data-testid":"button-container"},"boolean"==typeof l?t.createElement(lt,{"aria-label":"Close modal",autoFocus:!1}):l))),n?t.createElement(O,null):null)},exports.Notice=function({id:e,children:a,tone:l}){return t.createElement(S,{id:e,role:"alert","aria-live":"polite",className:[oe.container,y(oe,"tone",l)]},t.createElement(A,{space:"small",alignY:"top"},t.createElement(T,{width:"content"},t.createElement(ae,{tone:l})),t.createElement(T,null,t.createElement(S,{paddingY:"xsmall"},a))))},exports.Notification=function(e){let{id:t,icon:n,title:i,subtitle:r,children:o,customCloseButton:s,onClick:c,onClose:d,closeAltText:m="Close",className:p,"aria-live":u="polite"}=e,f=x(e,zt);const g=i?t+"-title":null,h=g?{id:g}:null,_=r?t+"-subtitle":null,y=_?{id:_}:null,v=o?t+"-content":null,k=v?{"aria-labelledby":v}:g?{"aria-labelledby":g}:null,E=_&&!o?{"aria-describedby":_}:null,w=a.createElement("div",b({className:"reactist-notification__content"},o?{id:t+"-content"}:null),null!=o?o:a.createElement(a.Fragment,null,i?a.createElement("h3",b({className:"reactist-notification__title"},h),i):null,r?a.createElement("p",b({className:"reactist-notification__subtitle"},y),r):null)),C=a.createElement("div",{className:"reactist-notification__icon-content-group"},null!=n?n:null,w);return a.createElement("div",b(b(b({id:t,role:"alert",className:l("reactist-notification",p,{"reactist-notification--with-button":Boolean(c),"reactist-notification--with-close-button":Boolean(d)}),"aria-live":u},k),E),f),c?a.createElement("button",{className:"reactist-notification__button",onClick:c},C):C,d?a.createElement("button",{className:"reactist-notification__close-button",onClick:d,"aria-label":m},null!=s?s:a.createElement(At,null)):null)},exports.PasswordField=Ae,exports.ProgressBar=Lt,exports.SUPPORTED_KEYS={ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ENTER:"Enter",BACKSPACE:"Backspace",ESCAPE:"Escape"},exports.SelectField=Ie,exports.Stack=j,exports.SubMenu=Yt,exports.SwitchField=De,exports.Tab=Ge,exports.TabAwareSlot=function({children:e}){const a=t.useContext(qe);return a?e({selectedId:null==a?void 0:a.tabState.selectedId}):null},exports.TabList=function(e){let{children:a,space:n="xsmall"}=e,i=x(e,Ye);const r=t.useContext(qe);if(!r)return null;const{tabState:s,variant:c}=r;return t.createElement(S,null,t.createElement(o.TabList,b({state:s,as:S,position:"relative",width:"maxContent"},i),t.createElement(S,{className:l(He.track,He["track-"+n],He["track-"+c])}),t.createElement(W,{space:n},a)))},exports.TabPanel=Ve,exports.Tabs=function({children:e,selectedId:a,defaultSelectedId:l,variant:n="neutral",onSelectedIdChange:i}){const r=o.useTabState({selectedId:a,setSelectedId:i}),s=je(l),{selectedId:c,select:d}=r;t.useEffect((function(){a||l===s||l===c||void 0===l||d(l)}),[a,l,c,d,s]);const m=t.useMemo((function(){return{tabState:r,variant:n}}),[n,r]);return t.createElement(qe.Provider,{value:m},e)},exports.Text=ue,exports.TextArea=function(e){let{variant:a="default",id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,maxWidth:d}=e,m=x(e,We);return t.createElement(Re,{variant:a,id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,className:["d6ec37c5","error"===c?"bef49c61":null,"bordered"===a?"a60d6043":null],maxWidth:d},e=>t.createElement(S,{width:"full",display:"flex"},t.createElement("textarea",b(b({},m),e))))},exports.TextField=Pe,exports.TextLink=he,exports.Time=Tt,exports.Tooltip=q,exports.usePrevious=je;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),a=e(t),l=e(require("classnames")),n=e(require("react-keyed-flatten-children")),i=require("ariakit/tooltip"),r=require("ariakit-utils"),o=e(require("react-focus-lock")),s=require("aria-hidden"),c=require("ariakit/dialog"),d=require("ariakit/portal"),m=require("ariakit/tab"),u=e(require("react-dom")),p=e(require("dayjs")),f=e(require("dayjs/plugin/localizedFormat")),g=require("ariakit/menu"),b=require("@reach/dialog");function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function x(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(Object(a),!0).forEach((function(t){_(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function _(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function y(e,t){if(null==e)return{};var a,l,n=function(e,t){if(null==e)return{};var a,l,n={},i=Object.keys(e);for(l=0;l<i.length;l++)t.indexOf(a=i[l])>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t.indexOf(a=i[l])>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function v(e){return t.forwardRef(e)}function E(e,t,a){if(!a)return null;const l=[];return"string"==typeof a?l.push(e[t+"-"+a]):(a.mobile&&l.push(e[t+"-"+a.mobile]),a.tablet&&l.push(e["tablet-"+t+"-"+a.tablet]),a.desktop&&l.push(e["desktop-"+t+"-"+a.desktop])),l}function C(e,t){if(e)return"object"!=typeof e?t(e):{mobile:e.mobile?t(e.mobile):void 0,tablet:e.tablet?t(e.tablet):void 0,desktop:e.desktop?t(e.desktop):void 0}}var k={box:"f9408a0e","position-absolute":"_7807dcdd","position-fixed":"dc5f328c","position-relative":"_0e4ff085","position-sticky":"_4019d94a","tablet-position-absolute":"b1865c0f","tablet-position-fixed":"af8c5967","tablet-position-relative":"ef2b609f","tablet-position-sticky":"_04935ffd","desktop-position-absolute":"bda94091","desktop-position-fixed":"_691dfd31","desktop-position-relative":"efda904e","desktop-position-sticky":"bcf04687","display-block":"b5b9f34a","display-flex":"_6e9db9aa","display-inline":"ece6d246","display-inlineBlock":"e5e2223f","display-inlineFlex":"f344a0e2","display-none":"_9002f8c2","tablet-display-block":"d896f0ff","tablet-display-flex":"_56412665","tablet-display-inline":"_6b430cc5","tablet-display-inlineBlock":"_4158c5ad","tablet-display-inlineFlex":"c598eaab","tablet-display-none":"_5a2a6d3f","desktop-display-block":"_132ef8fb","desktop-display-flex":"_5bd11385","desktop-display-inline":"a51c2ec9","desktop-display-inlineBlock":"_93506988","desktop-display-inlineFlex":"_385d45a5","desktop-display-none":"_921732eb","flexDirection-column":"_41ef5755","flexDirection-row":"_6cad1a19","tablet-flexDirection-column":"f1c16205","tablet-flexDirection-row":"_65305ae1","desktop-flexDirection-column":"_4916f0f9","desktop-flexDirection-row":"_430dfc8e","flexWrap-wrap":"_3d2d56fe","flexWrap-nowrap":"_826e4adf","flexShrink-0":"f8344e0f","flexGrow-0":"f117e2ab","flexGrow-1":"_1355325c","alignItems-flexStart":"c5b05c6a","alignItems-center":"_21b8bafa","alignItems-flexEnd":"_56d73c9b","alignItems-baseline":"_052e0707","tablet-alignItems-flexStart":"_90048c98","tablet-alignItems-center":"_7e189a0b","tablet-alignItems-flexEnd":"b8aefb5c","tablet-alignItems-baseline":"_4c1a5ef9","desktop-alignItems-flexStart":"f4d052ef","desktop-alignItems-center":"e5478926","desktop-alignItems-flexEnd":"b4f5051a","desktop-alignItems-baseline":"b21adace","justifyContent-flexStart":"be6deb6a","justifyContent-center":"d8eaf780","justifyContent-flexEnd":"_9212ca89","justifyContent-spaceAround":"_5d2cd095","justifyContent-spaceBetween":"_00d5fe7e","justifyContent-spaceEvenly":"ce4f4c2d","tablet-justifyContent-flexStart":"_6580dbbc","tablet-justifyContent-center":"_3f689891","tablet-justifyContent-flexEnd":"_628df8db","tablet-justifyContent-spaceAround":"_3ea88b4f","tablet-justifyContent-spaceBetween":"_4554d93d","tablet-justifyContent-spaceEvenly":"eb13fb50","desktop-justifyContent-flexStart":"_36dc744d","desktop-justifyContent-center":"ee7077ab","desktop-justifyContent-flexEnd":"_4edc8c86","desktop-justifyContent-spaceBetween":"_7e147696","alignSelf-stretch":"c0655cd6","alignSelf-flexStart":"_11863030","alignSelf-center":"c6d86139","alignSelf-flexEnd":"c0bd1f82","alignSelf-baseline":"_95686aec","tablet-alignSelf-stretch":"_9b712cc7","tablet-alignSelf-flexStart":"f7b935f7","tablet-alignSelf-center":"bf9ad125","tablet-alignSelf-flexEnd":"_3b4f8c3c","tablet-alignSelf-baseline":"_49d27079","desktop-alignSelf-stretch":"_63d27ffa","desktop-alignSelf-flexStart":"d45796cc","desktop-alignSelf-center":"c91c7bf7","desktop-alignSelf-flexEnd":"f2453212","desktop-alignSelf-baseline":"_3882757c","overflow-hidden":"_473810b4","overflow-auto":"_051c2340","overflow-visible":"_14e451d1","overflow-scroll":"_4d8555f8","height-full":"_867d251e","bg-default":"_2d928bf8","bg-aside":"db3f5af6","bg-highlight":"c990fcc3","bg-selected":"_976a662f","borderRadius-standard":"_46b52f05","borderRadius-full":"_1c8b326b","border-primary":"_0ef8c314","border-secondary":"_14871605","border-tertiary":"_36c045c3","textAlign-start":"d745aa1e","textAlign-center":"_31cf99c5","textAlign-end":"_10a7a030","textAlign-justify":"_2cfc8b46","tablet-textAlign-start":"e6b7bb40","tablet-textAlign-center":"_47dcb91c","tablet-textAlign-end":"_1d4011ce","tablet-textAlign-justify":"_18407499","desktop-textAlign-start":"_565de5cf","desktop-textAlign-center":"_64254ba3","desktop-textAlign-end":"_3cc6a504","desktop-textAlign-justify":"_0efec659"},w={"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"},N={"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da6","marginTop-medium":"_4ea254c1","marginTop-large":"c0844f64","marginTop-xlarge":"_213145b4","marginTop-xxlarge":"df61c84c","marginTop--xsmall":"efe72b13","marginTop--small":"_870c2768","marginTop--medium":"_0b927c57","marginTop--large":"_461db014","marginTop--xlarge":"_2a3a8cb8","marginTop--xxlarge":"_9bcda921","tablet-marginTop-xsmall":"_6add01e4","tablet-marginTop-small":"_735ef86b","tablet-marginTop-medium":"_0477d068","tablet-marginTop-large":"_2c90af97","tablet-marginTop-xlarge":"_63a82db6","tablet-marginTop-xxlarge":"_03cd7726","tablet-marginTop--xsmall":"c986a62a","tablet-marginTop--small":"be2bdcdd","tablet-marginTop--medium":"_47d2686b","tablet-marginTop--large":"_25e5af9d","tablet-marginTop--xlarge":"ee82f441","tablet-marginTop--xxlarge":"a6f9d404","desktop-marginTop-xsmall":"_4d8d9a36","desktop-marginTop-small":"e813cee7","desktop-marginTop-medium":"_56975b7d","desktop-marginTop-large":"_53b367f6","desktop-marginTop-xlarge":"d69e7311","desktop-marginTop-xxlarge":"_92f57c7e","desktop-marginTop--xsmall":"_96880d3e","desktop-marginTop--small":"dc3f3555","desktop-marginTop--medium":"_86dd06bb","desktop-marginTop--large":"c93ef12e","desktop-marginTop--xlarge":"bc8fd4a2","desktop-marginTop--xxlarge":"b12a9124","marginRight-xsmall":"_6016f4fb","marginRight-small":"b85e3dfa","marginRight-medium":"_297575f4","marginRight-large":"b401ac6c","marginRight-xlarge":"dc3ec387","marginRight-xxlarge":"_24694604","marginRight--xsmall":"_8e9bf2ee","marginRight--small":"ae9d1115","marginRight--medium":"_14e46fc3","marginRight--large":"_3370631b","marginRight--xlarge":"_3f0e9b50","marginRight--xxlarge":"bc13e010","tablet-marginRight-xsmall":"_6fa1aae3","tablet-marginRight-small":"_2976c5cb","tablet-marginRight-medium":"_38d94802","tablet-marginRight-large":"db9569b5","tablet-marginRight-xlarge":"_4a52f06d","tablet-marginRight-xxlarge":"_8a0f0410","tablet-marginRight--xsmall":"e7d40e9d","tablet-marginRight--small":"_680fde91","tablet-marginRight--medium":"_021010ca","tablet-marginRight--large":"_9e52c87c","tablet-marginRight--xlarge":"_4d602613","tablet-marginRight--xxlarge":"_21b1b65a","desktop-marginRight-xsmall":"_7321bc07","desktop-marginRight-small":"fa1721f4","desktop-marginRight-medium":"_3fd7b4b8","desktop-marginRight-large":"_4fdc2f74","desktop-marginRight-xlarge":"c0254761","desktop-marginRight-xxlarge":"_710a5f09","desktop-marginRight--xsmall":"e08bee7f","desktop-marginRight--small":"e5ab73d2","desktop-marginRight--medium":"_5e731477","desktop-marginRight--large":"_0f57a22e","desktop-marginRight--xlarge":"_25f26ed3","desktop-marginRight--xxlarge":"_11a3b4e0","marginBottom-xsmall":"_6a4f69f7","marginBottom-small":"db26b033","marginBottom-medium":"c7313022","marginBottom-large":"a5885889","marginBottom-xlarge":"_33dfbd8e","marginBottom-xxlarge":"_795ad2de","marginBottom--xsmall":"a329dbd3","marginBottom--small":"_85e739fb","marginBottom--medium":"_681f65ff","marginBottom--large":"caf50d8f","marginBottom--xlarge":"_1e084cbf","marginBottom--xxlarge":"_3dfb1c7e","tablet-marginBottom-xsmall":"ef4735be","tablet-marginBottom-small":"de55afba","tablet-marginBottom-medium":"_0e33ce88","tablet-marginBottom-large":"_8ca391fc","tablet-marginBottom-xlarge":"_3a609d23","tablet-marginBottom-xxlarge":"_3e1177e4","tablet-marginBottom--xsmall":"d384884d","tablet-marginBottom--small":"_75254cec","tablet-marginBottom--medium":"_5d9f127d","tablet-marginBottom--large":"_835f1089","tablet-marginBottom--xlarge":"dad52a72","tablet-marginBottom--xxlarge":"_8703a4bf","desktop-marginBottom-xsmall":"_90fd20e9","desktop-marginBottom-small":"f3769191","desktop-marginBottom-medium":"_156410f8","desktop-marginBottom-large":"_7fed74d0","desktop-marginBottom-xlarge":"_477dc10e","desktop-marginBottom-xxlarge":"_85c82d89","desktop-marginBottom--xsmall":"_4f09c1e0","desktop-marginBottom--small":"_9523e048","desktop-marginBottom--medium":"efe10240","desktop-marginBottom--large":"c43971e6","desktop-marginBottom--xlarge":"f9b4da15","desktop-marginBottom--xxlarge":"a10fdf70","marginLeft-xsmall":"f9be90b4","marginLeft-small":"f53218d5","marginLeft-medium":"c4a9b3ab","marginLeft-large":"_5755e2c3","marginLeft-xlarge":"_33fc9354","marginLeft-xxlarge":"_4749a3bf","marginLeft--xsmall":"c76cb3c7","marginLeft--small":"_96003c07","marginLeft--medium":"_09988d07","marginLeft--large":"b4a486f6","marginLeft--xlarge":"f396e75e","marginLeft--xxlarge":"_81d1f26d","tablet-marginLeft-xsmall":"_0a46e8f1","tablet-marginLeft-small":"_57c970af","tablet-marginLeft-medium":"_4b6099d3","tablet-marginLeft-large":"_378fcff5","tablet-marginLeft-xlarge":"f8785663","tablet-marginLeft-xxlarge":"_72f957ee","tablet-marginLeft--xsmall":"_2288c7e1","tablet-marginLeft--small":"b27c1c05","tablet-marginLeft--medium":"_702cbb13","tablet-marginLeft--large":"_1a2748b4","tablet-marginLeft--xlarge":"b8c043a5","tablet-marginLeft--xxlarge":"_8dc8ff63","desktop-marginLeft-xsmall":"c2af646d","desktop-marginLeft-small":"c03d07be","desktop-marginLeft-medium":"_915fb1d3","desktop-marginLeft-large":"_64214ee1","desktop-marginLeft-xlarge":"_7be4a22c","desktop-marginLeft-xxlarge":"_5ec0a401","desktop-marginLeft--xsmall":"ea29f1ee","desktop-marginLeft--small":"c26652c7","desktop-marginLeft--medium":"c24f6af9","desktop-marginLeft--large":"c2671f27","desktop-marginLeft--xlarge":"cc51a04e","desktop-marginLeft--xxlarge":"fd581f54"},S={"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"};const R=["as","position","display","flexDirection","flexWrap","flexGrow","flexShrink","alignItems","justifyContent","alignSelf","overflow","width","height","background","border","borderRadius","minWidth","maxWidth","textAlign","padding","paddingY","paddingX","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginY","marginX","marginTop","marginRight","marginBottom","marginLeft","className","children"],L=v((function(e,a){var n,i,r,o,s,c,d,m;let{as:u="div",position:p="static",display:f,flexDirection:g="row",flexWrap:b,flexGrow:h,flexShrink:_,alignItems:v,justifyContent:C,alignSelf:L,overflow:B,width:T,height:A,background:z,border:D,borderRadius:O,minWidth:I,maxWidth:M,textAlign:F,padding:W,paddingY:P,paddingX:j,paddingTop:H,paddingRight:Y,paddingBottom:U,paddingLeft:q,margin:K,marginY:G,marginX:V,marginTop:X,marginRight:Z,marginBottom:$,marginLeft:J,className:Q,children:ee}=e,te=y(e,R);const ae=null!=(n=null!=H?H:P)?n:W,le=null!=(i=null!=Y?Y:j)?i:W,ne=null!=(r=null!=U?U:P)?r:W,ie=null!=(o=null!=q?q:j)?o:W,re=null!=(s=null!=X?X:G)?s:K,oe=null!=(c=null!=Z?Z:V)?c:K,se=null!=(d=null!=$?$:G)?d:K,ce=null!=(m=null!=J?J:V)?m:K,de=!f||"string"==typeof f&&"flex"!==f&&"inlineFlex"!==f;return t.createElement(u,x(x({},te),{},{className:l(Q,k.box,f?E(k,"display",f):null,"static"!==p?E(k,"position",p):null,null!=I?E(S,"minWidth",String(I)):null,E(S,"maxWidth",M),E(k,"textAlign",F),E(w,"paddingTop",ae),E(w,"paddingRight",le),E(w,"paddingBottom",ne),E(w,"paddingLeft",ie),E(N,"marginTop",re),E(N,"marginRight",oe),E(N,"marginBottom",se),E(N,"marginLeft",ce),de?null:E(k,"flexDirection",g),de?null:E(k,"flexWrap",b),de?null:E(k,"alignItems",v),de?null:E(k,"justifyContent",C),null!=L?E(k,"alignSelf",L):null,null!=_?E(k,"flexShrink",String(_)):null,null!=h?E(k,"flexGrow",String(h)):null,E(k,"overflow",B),null!=T?E(S,"width",String(T)):null,E(k,"height",A),E(k,"bg",z),"none"!==O?E(k,"borderRadius",O):null,"none"!==D?E(k,"border",D):null)||void 0,ref:a}),ee)}));var B={"space-xsmall":"_6f59c771",column:"_91e05f0f","space-small":"_5a55af26","space-medium":"fa261310","space-large":"_6ebd4e46","space-xlarge":"_55ce4aea","space-xxlarge":"_04c9c3ac","tablet-space-xsmall":"ab76d8cd","tablet-space-small":"_14629bfb","tablet-space-medium":"_5b4e39ea","tablet-space-large":"ba270182","tablet-space-xlarge":"b96e7ec7","tablet-space-xxlarge":"d276612c","desktop-space-xsmall":"d7a73106","desktop-space-small":"_8f5e0e9e","desktop-space-medium":"_3a168411","desktop-space-large":"_0abcc12e","desktop-space-xlarge":"e0bafc60","desktop-space-xxlarge":"d2df9afd","columnWidth-auto":"b18d0b47","columnWidth-1-2":"_102a6b27","columnWidth-1-3":"_829872fe","columnWidth-2-3":"cf5aef9a","columnWidth-1-4":"_931bf714","columnWidth-3-4":"b0303130","columnWidth-1-5":"f6589a6f","columnWidth-2-5":"_2823aed9","columnWidth-3-5":"d00ba3bb","columnWidth-4-5":"_338f2d7c","tablet-tablet-space-xsmall":"_06582234"};const T=["width","children","exceptionallySetClassName"],A=["space","align","alignY","collapseBelow","children","exceptionallySetClassName"],z=v((function(e,a){let{width:l="auto",children:n,exceptionallySetClassName:i}=e,r=y(e,T);return t.createElement(L,x(x({},r),{},{className:[i,B.column,"content"!==l?E(B,"columnWidth",l.replace("/","-")):null],minWidth:0,width:"content"!==l?"full":void 0,height:"full",flexShrink:"content"===l?0:void 0,ref:a}),n)})),D=v((function(e,a){let{space:l,align:n="left",alignY:i="top",collapseBelow:r,children:o,exceptionallySetClassName:s}=e,c=y(e,A);return t.createElement(L,x(x({},c),{},{className:[s,E(B,"space",l)],display:"flex",flexDirection:"desktop"===r?{mobile:"column",tablet:"column",desktop:"row"}:"tablet"===r?{mobile:"column",tablet:"row"}:"row",alignItems:C(i,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":e),justifyContent:C(n,e=>"left"===e?"flexStart":"right"===e?"flexEnd":e),ref:a}),o)}));var O={"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};const I=["weight"];function M(e){let{weight:a="tertiary"}=e,l=y(e,I);return t.createElement(L,x({as:"hr",className:E(O,"weight",a)},l))}var F={"space-xsmall":"_6b1279e0","space-small":"_0d82c42d","space-medium":"_556714e1","space-large":"e90b43fb","space-xlarge":"a9c34345","space-xxlarge":"aa102efe","tablet-space-xsmall":"_34d16157","tablet-space-small":"c7e0e54f","tablet-space-medium":"_7f2a4e4b","tablet-space-large":"ae256487","tablet-space-xlarge":"e88be0f7","tablet-space-xxlarge":"dc7bcb18","desktop-space-xsmall":"_853f3012","desktop-space-small":"_3bfaf758","desktop-space-medium":"_36462a93","desktop-space-large":"e73081b7","desktop-space-xlarge":"e22ec9dd","desktop-space-xxlarge":"_4a20bd12"};const W=["as","space","align","alignY","children","exceptionallySetClassName"],P=v((function(e,a){let{as:l,space:n,align:i="left",alignY:r="center",children:o,exceptionallySetClassName:s}=e,c=y(e,W);return t.createElement(L,x(x({},c),{},{as:l,display:"flex",flexWrap:"wrap",className:[s,E(F,"space",n)],ref:a,alignItems:C(r,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":"center"),justifyContent:C(i,e=>"left"===e?"flexStart":"right"===e?"flexEnd":"center")}),o)}));var j={"space-xsmall":"_7b475ead","space-small":"_5641699f","space-medium":"_1a1c63e4","space-large":"_560f80a0","space-xlarge":"_84ffebbc","space-xxlarge":"b60a65cb","tablet-space-xsmall":"d808f5c3","tablet-space-small":"a51c76b3","tablet-space-medium":"_7185a7aa","tablet-space-large":"af82e610","tablet-space-xlarge":"_88b4ff46","tablet-space-xxlarge":"_9de15321","desktop-space-xsmall":"_6fb32d20","desktop-space-small":"_07ee315a","desktop-space-medium":"a270d7ec","desktop-space-large":"ea6ebb29","desktop-space-xlarge":"_35b36178","desktop-space-xxlarge":"_56c7dc23"};const H=["as","space","align","dividers","children","exceptionallySetClassName"],Y=v((function(e,a){let{as:l,space:i,align:r="start",dividers:o="none",children:s,exceptionallySetClassName:c}=e,d=y(e,H);const m="start"===r?void 0:{width:"full",flexDirection:"column",display:"flex",alignItems:C(r,e=>"start"===e?"flexStart":"end"===e?"flexEnd":"center")};return t.createElement(L,x(x(x({},d),m),{},{as:l,className:[c,E(j,"space",i)],ref:a}),"none"!==o?t.Children.map(n(s),(e,a)=>a>0?t.createElement(t.Fragment,null,t.createElement(M,{weight:o}),e):e):s)})),U=["display","children","exceptionallySetClassName"],q=v((function(e,a){let{display:l="block",children:n,exceptionallySetClassName:i}=e,r=y(e,U);const o="print"in r&&r.print,s="above"in r,c="below"in r,d="below"in r&&"desktop"===r.below||"above"in r&&"mobile"===r.above;return s&&c&&console.warn('<Hidden /> should receive either above="…" or below="…" but not both'),s||c||o||console.warn("<Hidden /> did not receive any criteria to hide itself"),"above"in r&&delete r.above,"below"in r&&delete r.below,"print"in r&&delete r.print,t.createElement(L,x(x({},r),{},{ref:a,className:[i,o?"_0e595dea":null],display:s&&c?"none":{mobile:c?"none":l,tablet:d?"none":l,desktop:s?"none":l}}),n)})),K=v((function(e,a){return t.createElement(L,x(x({},e),{},{ref:a,position:"absolute",overflow:"hidden",className:"_618235b7"}))})),G=["children","content","position","gapSize","className"];function V(e){let{children:t,content:n,position:r="top",gapSize:o=3,className:s}=e,c=y(e,G);const d=function(e){const t=i.useTooltipState(e),l=function(){const e=a.useRef(),t=a.useCallback((function(){null!=e.current&&clearTimeout(e.current)}),[]);return a.useEffect(()=>t,[t]),a.useCallback((function(a,l){return()=>{t(),e.current=setTimeout(a,l)}}),[t])}();return a.useMemo(()=>x(x({},t),{},{show:l(()=>t.show(),500),hide:l(()=>t.hide(),100)}),[l,t])}({placement:r,gutter:o}),m=a.Children.only(t);if(!n||!m)return m;if("string"==typeof m.ref)throw new Error("Tooltip: String refs cannot be used as they cannot be forwarded");return a.createElement(a.Fragment,null,a.createElement(i.TooltipAnchor,{state:d,ref:m.ref,onFocus:function(e){var t;e.currentTarget.addEventListener("keyup",(function(e){const t=e.key;"Escape"!==t&&"Enter"!==t&&"Space"!==t&&d.show()}),{once:!0}),e.preventDefault(),null==m||null==(t=m.props)||null==t.onFocus||t.onFocus(e)}},e=>a.cloneElement(m,x(x({},e),m.props))),d.visible?a.createElement(i.Tooltip,x(x({},c),{},{state:d,className:l("reactist_tooltip",s)}),"function"==typeof n?n():n):null)}function X({size:e=24}){return t.createElement("svg",{"aria-hidden":!0,width:e,height:e,viewBox:"0 0 24 24",className:"_51539197"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{className:"a0c466ed",d:"M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"}),t.createElement("path",{className:"_745b73d3",d:"M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"})))}var Z={baseButton:"a8af2163",label:"bbdb467b","shape-rounded":"ca02fc07","size-small":"_45ffe137","size-normal":"_352995bd","size-large":"_3991076f",disabled:"f82232b7",iconButton:"ef4c88db",startIcon:"a08c25c7",endIcon:"_2f6adc11","variant-primary":"_3d1243b2","variant-secondary":"_16b6b062","variant-tertiary":"cffaea5e","variant-quaternary":"_98cd5c3f","tone-destructive":"_99cb1c4d"};const $=["as","variant","tone","size","shape","disabled","loading","tooltip","onClick","exceptionallySetClassName","children","startIcon","endIcon","icon","width","align"];function J(e){e.preventDefault()}const Q=v((function(e,a){let{as:l="div",variant:n,tone:i="normal",size:r="normal",shape:o="normal",disabled:s=!1,loading:c=!1,tooltip:d,onClick:m,exceptionallySetClassName:u,children:p,startIcon:f,endIcon:g,icon:b,width:h="auto",align:_="center"}=e,v=y(e,$);const E=c||s,C=t.createElement(L,x(x({},v),{},{as:l,ref:a,"aria-disabled":E,onClick:E?J:m,width:b?void 0:h,className:[u,Z.baseButton,Z["variant-"+n],Z["tone-"+i],Z["size-"+r],"rounded"===o?Z["shape-rounded"]:null,b?Z.iconButton:null,s?Z.disabled:null]}),b?c&&t.createElement(X,null)||b:t.createElement(t.Fragment,null,f?t.createElement(L,{display:"flex",className:Z.startIcon,"aria-hidden":!0},c&&!g?t.createElement(X,null):f):null,p?t.createElement(L,{as:"span",className:Z.label,overflow:"hidden",width:"full"===h?"full":void 0,textAlign:"auto"===h?"center":_},p):null,g||c&&!f?t.createElement(L,{display:"flex",className:Z.endIcon,"aria-hidden":!0},c?t.createElement(X,null):g):null)),k=b&&void 0===d?v["aria-label"]:d;return k?t.createElement(V,{content:k},C):C})),ee=["variant","tone","size","type","disabled","exceptionallySetClassName"],te=t.forwardRef((function(e,a){let{variant:l,tone:n="normal",size:i="normal",type:r="button",disabled:o=!1,exceptionallySetClassName:s}=e,c=y(e,ee);return t.createElement(Q,x(x({},c),{},{as:"button",ref:a,variant:l,tone:n,size:i,type:r,disabled:o,exceptionallySetClassName:s}))})),ae=["tone"],le={info:function(e){return t.createElement("svg",x({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm1.18-11.84a.84.84 0 1 1-1.68 0 .84.84 0 0 1 1.68 0zM12.5 10a.5.5 0 0 1 .5.5V15h1a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h1v-4h-1a.5.5 0 0 1 0-1h1.5z",fill:"currentColor"}))},positive:function(e){return t.createElement("svg",x({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm-4.354-8.104a.5.5 0 0 1 .708 0l2.146 2.147 5.146-5.147a.5.5 0 0 1 .708.708l-5.5 5.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 0-.708z",fill:"currentColor"}))},caution:function(e){return t.createElement("svg",x({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m3.254 16.992 7.018-12.03a2 2 0 0 1 3.455 0l7.018 12.03A2 2 0 0 1 19.018 20H4.982a2 2 0 0 1-1.728-3.008zm8.242-11.887a1 1 0 0 0-.36.36l-7.018 12.03A1 1 0 0 0 4.982 19h14.036a1 1 0 0 0 .864-1.504l-7.018-12.03a1 1 0 0 0-1.368-.36zM13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014a.987.987 0 1 0-1.971.055l.236 4.25c.053.945 1.445.945 1.498 0l.236-4.25.001-.027v-.028z",fill:"currentColor"}))},critical:function(e){return t.createElement("svg",x({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM2.5 12a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0zM13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014A.987.987 0 0 0 12 7.5h-.027l-.028.002a.987.987 0 0 0-.93 1.04l.236 4.25c.053.944 1.445.944 1.498 0l.236-4.25.001-.028v-.027z",fill:"currentColor"}))}};function ne(e){let{tone:a}=e,l=y(e,ae);const n=le[a];return n?t.createElement(n,x({},l)):null}function ie(e){return t.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("path",{fill:"currentColor",d:"M5.146 5.146a.5.5 0 0 1 .708 0L12 11.293l6.146-6.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 0 .708L12.707 12l6.147 6.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.708 0L12 12.707l-6.146 6.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1 0-.708L11.293 12 5.146 5.854a.5.5 0 0 1-.057-.638z"}))}var re={container:"eb665121","tone-info":"d0373ff9","tone-positive":"bb18dcab","tone-caution":"_0af02331","tone-critical":"f76146f9"};const oe=["size","exceptionallySetClassName"],se={xsmall:16,small:24,medium:36,large:48};var ce={container:"_464500ae","tone-info":"_1abfe147","tone-positive":"_36ce9859","tone-caution":"f92214b7","tone-critical":"be6cf28e"},de={heading:"_71a1610c","weight-light":"_63750f40","tone-secondary":"_9ce984cf","tone-danger":"_1acad35e","size-largest":"_3da27a00","size-larger":"df220733","size-smaller":"eb373739",lineClampMultipleLines:"f53cfd2b","lineClamp-1":"e4819fc9","lineClamp-2":"a0ed6177","lineClamp-3":"_180d433e","lineClamp-4":"_40826ad9","lineClamp-5":"_5999b247"};const me=["level","weight","size","tone","children","lineClamp","align","exceptionallySetClassName"],ue=t.forwardRef((function(e,a){let{level:l,weight:n="regular",size:i,tone:r="normal",children:o,lineClamp:s,align:c,exceptionallySetClassName:d}=e,m=y(e,me);const u="h"+l,p="string"==typeof s?parseInt(s,10)>1:(s||0)>1;return t.createElement(L,x(x({},m),{},{className:[d,de.heading,"regular"!==n?E(de,"weight",n):null,"normal"!==r?E(de,"tone",r):null,E(de,"size",i),p?de.lineClampMultipleLines:null,s?E(de,"lineClamp",s.toString()):null],textAlign:c,paddingRight:s?"xsmall":void 0,as:u,ref:a}),o)}));var pe={text:"a83bd4e0","size-caption":"_266d6623","size-copy":"a8d37c6e","size-subtitle":"_39f4eb1f","weight-semibold":"_7be5c531","weight-bold":"e214ff2e","tone-secondary":"_6a3e5ade","tone-danger":"_8f5b5f2b","tone-positive":"_9ae47ae4",lineClampMultipleLines:"_969f18f7","lineClamp-1":"_2f303ac3","lineClamp-2":"d3e04245","lineClamp-3":"_33411704","lineClamp-4":"bfc32640","lineClamp-5":"f813c82f"};const fe=["as","size","weight","tone","align","children","lineClamp","exceptionallySetClassName"],ge=v((function(e,a){let{as:l,size:n="body",weight:i="regular",tone:r="normal",align:o,children:s,lineClamp:c,exceptionallySetClassName:d}=e,m=y(e,fe);const u="string"==typeof c?Number(c)>1:(null!=c?c:1)>1;return t.createElement(L,x(x({},m),{},{as:l,className:[d,pe.text,"body"!==n?E(pe,"size",n):null,"regular"!==i?E(pe,"weight",i):null,"normal"!==r?E(pe,"tone",r):null,u?pe.lineClampMultipleLines:null,c?E(pe,"lineClamp",c.toString()):null],textAlign:o,paddingRight:c?"xsmall":void 0,ref:a}),s)})),be=["as","variant","tone","size","exceptionallySetClassName","openInNewTab"],he=v((function(e,a){let{as:l="a",variant:n,tone:i="normal",size:r="normal",exceptionallySetClassName:o,openInNewTab:s=!1}=e,c=y(e,be);return t.createElement(Q,x(x({},c),{},{as:l,ref:a,variant:n,tone:i,size:r,exceptionallySetClassName:o,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0}))})),xe=["as","openInNewTab","exceptionallySetClassName"],_e=v((function(e,a){let{as:l="a",openInNewTab:n=!1,exceptionallySetClassName:i}=e,r=y(e,xe);return t.createElement(L,x(x({},r),{},{as:l,display:"inline",className:[i,"_232127ef"],ref:a,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0}))})),ye=["checked","indeterminate","disabled"],ve={checked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z",unchecked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z",mixed:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2 7H8a1 1 0 0 0 0 2h8a1 1 0 0 0 0-2z",filled:"M6 4H18C19.1046 4 20 4.89543 20 6V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6C4 4.89543 4.89543 4 6 4Z"};function Ee(e){let{checked:a,indeterminate:l,disabled:n}=e,i=y(e,ye);const r=function({checked:e,indeterminate:t,disabled:a}){return t?"mixed":e?"checked":a?"filled":"unchecked"}({checked:a,indeterminate:l,disabled:n});return t.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},i),t.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:ve[r]}))}const Ce=["label","disabled","indeterminate","defaultChecked","onChange"],ke=t.forwardRef((function(e,a){var l,n,i;let{label:o,disabled:s,indeterminate:c,defaultChecked:d,onChange:m}=e,u=y(e,Ce);"boolean"!=typeof c||"boolean"==typeof u.checked||(console.warn("Cannot use indeterminate on an uncontrolled checkbox"),c=void 0),o||u["aria-label"]||u["aria-labelledby"]||console.warn("A Checkbox needs a label");const[p,f]=t.useState(!1),[g,b]=t.useState(null!=(l=null!=(n=u.checked)?n:d)&&l),h=null!=(i=u.checked)?i:g,_=t.useRef(null),v=r.useForkRef(_,a);return t.useEffect((function(){_.current&&"boolean"==typeof c&&(_.current.indeterminate=c)}),[c]),t.createElement(L,{as:"label",display:"flex",alignItems:"center",className:["_96c4d12f",s?"_5048e2a5":null,h?"_42187b48":null,p?"_3510166f":null]},t.createElement("input",x(x({},u),{},{ref:v,type:"checkbox","aria-checked":c?"mixed":h,checked:h,disabled:s,onChange:e=>{null==m||m(e),e.defaultPrevented||b(e.currentTarget.checked)},onBlur:e=>{f(!1),null==u||null==u.onBlur||u.onBlur(e)},onKeyUp:e=>{f(!0),null==u||null==u.onKeyUp||u.onKeyUp(e)}})),t.createElement(Ee,{checked:h,disabled:s,indeterminate:c,"aria-hidden":!0}),o?t.createElement(ge,null,o):null)}));let we=0;function Ne(e){const a=t.useRef(null!=e?e:null);return a.current||(a.current="element-"+we++),a.current}function Se(e){return t.createElement(ge,x({as:"p",tone:"secondary",size:"copy"},e))}function Re(e){return t.createElement("svg",x({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.5C4.96243 2.5 2.5 4.96243 2.5 8C2.5 11.0376 4.96243 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8C13.5 4.96243 11.0376 2.5 8 2.5ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8ZM8.66667 10.3333C8.66667 10.7015 8.36819 11 8 11C7.63181 11 7.33333 10.7015 7.33333 10.3333C7.33333 9.96514 7.63181 9.66667 8 9.66667C8.36819 9.66667 8.66667 9.96514 8.66667 10.3333ZM8.65766 5.65766C8.65766 5.29445 8.36322 5 8 5C7.99087 5.00008 7.98631 5.00013 7.98175 5.00025C7.97719 5.00038 7.97263 5.00059 7.96352 5.00101C7.60086 5.02116 7.3232 5.33149 7.34335 5.69415L7.50077 8.52774C7.53575 9.15742 8.46425 9.15742 8.49923 8.52774L8.65665 5.69415C8.65707 5.68503 8.65728 5.68047 8.65741 5.67591C8.65754 5.67135 8.65758 5.66679 8.65766 5.65766Z",fill:"currentColor"}))}function Le({id:e,children:a,tone:l}){return t.createElement(ge,{as:"p",tone:"error"===l?"danger":"success"===l?"positive":"normal",size:"copy",id:e},t.createElement(L,{as:"span",marginRight:"xsmall",display:"inlineFlex",className:"_77b2107e"},"loading"===l?t.createElement(X,{size:16}):t.createElement(Re,{"aria-hidden":!0})),a)}function Be({variant:e="default",label:a,secondaryLabel:l,auxiliaryLabel:n,hint:i,message:r,tone:o="neutral",className:s,children:c,maxWidth:d,hidden:m,"aria-describedby":u,id:p}){const f=Ne(p),g=Ne(),b=Ne(),h={id:f,"aria-describedby":null!=u?u:[r?b:null,g].filter(Boolean).join(" "),"aria-invalid":"error"===o||void 0};return t.createElement(Y,{space:"small",hidden:m},t.createElement(L,{className:[s,"_2e189908","error"===o?"d1a17d92":null,"bordered"===e?"fd20ef50":null],maxWidth:d},t.createElement(L,{as:"span",display:"flex",justifyContent:"spaceBetween",alignItems:"flexEnd"},t.createElement(ge,{size:"bordered"===e?"caption":"body",as:"label",htmlFor:f},a?t.createElement("span",{className:"_75e0afa0"},a):null,l?t.createElement("span",{className:"d04a867d"}," (",l,")"):null),n?t.createElement(L,{className:"_83051e0a",paddingLeft:"small"},n):null),c(h)),r?t.createElement(Le,{id:b,tone:o},r):null,i?t.createElement(Se,{id:g},i):null)}function Te(e){return t.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"gray"},t.createElement("path",{d:"M21.358 12C17.825 7.65 14.692 5.5 12 5.5c-2.624 0-5.67 2.043-9.097 6.181a.5.5 0 0 0 0 .638C6.331 16.457 9.376 18.5 12 18.5c2.692 0 5.825-2.15 9.358-6.5z"}),t.createElement("circle",{cx:"12",cy:"12",r:"3.5"})))}function Ae(e){return t.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"gray",fillRule:"evenodd",transform:"translate(2 4)"},t.createElement("path",{fillRule:"nonzero",d:"M13.047 2.888C11.962 2.294 10.944 2 10 2 7.56 2 4.63 3.966 1.288 8c1.133 1.368 2.218 2.497 3.253 3.394l-.708.708c-1.068-.93-2.173-2.085-3.315-3.464a1 1 0 0 1 0-1.276C4.031 3.121 7.192 1 10 1c1.196 0 2.456.385 3.78 1.154l-.733.734zm-6.02 10.263C8.084 13.72 9.076 14 10 14c2.443 0 5.373-1.969 8.712-6-1.11-1.34-2.176-2.453-3.193-3.341l.708-.709C17.437 5.013 18.695 6.363 20 8c-3.721 4.667-7.054 7-10 7-1.175 0-2.411-.371-3.709-1.113l.735-.736z"}),t.createElement("path",{fillRule:"nonzero",d:"M8.478 11.7l.79-.79a3 3 0 0 0 3.642-3.642l.79-.79A4 4 0 0 1 8.477 11.7zM6.334 9.602a4 4 0 0 1 5.268-5.268l-.78.78A3.002 3.002 0 0 0 7.113 8.82l-.78.78z"}),t.createElement("rect",{width:"21",height:"1",x:"-.722",y:"7.778",rx:".5",transform:"rotate(-45 9.778 8.278)"})))}const ze=["variant","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","togglePasswordLabel","hidden","aria-describedby"],De=t.forwardRef((function(e,a){let{variant:l="default",label:n,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:c,tone:d,maxWidth:m,togglePasswordLabel:u="Toggle password visibility",hidden:p,"aria-describedby":f}=e,g=y(e,ze);const b=Ne(g.id),h=t.useRef(null),_=r.useForkRef(h,a),[v,E]=t.useState(!1);function C(){var e;E(e=>!e),null==(e=h.current)||e.focus()}return t.createElement(Be,{variant:l,id:b,label:n,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:c,tone:d,maxWidth:m,hidden:p,"aria-describedby":f},e=>t.createElement(L,{display:"flex",alignItems:"center",className:["_66b448b3","_9d172ece","error"===d?"_7e63ee20":null,"bordered"===l?"c59d0239":null]},t.createElement("input",x(x(x({},g),e),{},{ref:_,type:v?"text":"password"})),t.createElement(V,{content:u},t.createElement("button",{type:"button",onClick:C,"aria-label":u,tabIndex:-1},t.createElement(v?Te:Ae,{"aria-hidden":!0})))))})),Oe=["id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","children","hidden","aria-describedby"],Ie=t.forwardRef((function(e,a){let{id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,maxWidth:d,children:m,hidden:u,"aria-describedby":p}=e,f=y(e,Oe);return t.createElement(Be,{id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,maxWidth:d,hidden:u,"aria-describedby":p},e=>t.createElement(L,{className:["_07e75293","error"===c?"f147bcea":null]},t.createElement("select",x(x(x({},f),e),{},{ref:a}),m),t.createElement(Me,{"aria-hidden":!0})))}));function Me(e){return t.createElement("svg",x({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.646 5.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 1 1 .708-.708L8 9.293l3.646-3.647z",fill:"currentColor"}))}const Fe=["label","hint","disabled","hidden","defaultChecked","id","aria-describedby","aria-label","aria-labelledby","onChange"],We=t.forwardRef((function(e,a){var l,n,i;let{label:r,hint:o,disabled:s=!1,hidden:c,defaultChecked:d,id:m,"aria-describedby":u,"aria-label":p,"aria-labelledby":f,onChange:g}=e,b=y(e,Fe);const h=Ne(m),_=Ne(),v=null!=u?u:o?_:void 0,E=null!=p?p:void 0,C=null!=f?f:void 0,[k,w]=t.useState(!1),[N,S]=t.useState(null!=(l=null!=(n=b.checked)?n:d)&&l),R=null!=(i=b.checked)?i:N;return t.createElement(Y,{space:"small",hidden:c},t.createElement(L,{className:["ec63c3f1",s?"_7de9c06d":null,R?"a37981fc":null,k?"a6490371":null],as:"label",display:"flex",alignItems:"center"},t.createElement(L,{position:"relative",display:"inlineBlock",overflow:"visible",marginRight:"small",flexShrink:0,className:"_2a17ac45"},t.createElement(K,null,t.createElement("input",x(x({},b),{},{id:h,type:"checkbox",disabled:s,"aria-describedby":v,"aria-label":E,"aria-labelledby":C,ref:a,checked:R,onChange:e=>{null==g||g(e),e.defaultPrevented||S(e.currentTarget.checked)},onBlur:e=>{w(!1),null==b||null==b.onBlur||b.onBlur(e)},onKeyUp:e=>{w(!0),null==b||null==b.onKeyUp||b.onKeyUp(e)}}))),t.createElement("span",{className:"_91409c7f"})),t.createElement(ge,{exceptionallySetClassName:"_68cc9707"},r)),o?t.createElement(Se,{id:_},o):null)})),Pe=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth"],je=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","type","maxWidth","hidden","aria-describedby"],He=t.forwardRef((function(e,a){let{variant:l="default",id:n,label:i,secondaryLabel:r,auxiliaryLabel:o,hint:s,message:c,tone:d,type:m="text",maxWidth:u,hidden:p,"aria-describedby":f}=e,g=y(e,je);return t.createElement(Be,{variant:l,id:n,label:i,secondaryLabel:r,auxiliaryLabel:o,hint:s,message:c,tone:d,maxWidth:u,hidden:p,"aria-describedby":f},e=>t.createElement(L,{className:["_9d172ece","error"===d?"_7e63ee20":null,"bordered"===l?"c59d0239":null]},t.createElement("input",x(x(x({},g),e),{},{type:m,ref:a}))))}));function Ye(e){var t;if(!e)return"";const a=e.trim().split(" "),l=a[0],n=a[a.length-1];let i=null==l?void 0:l[0];return null!=l&&null!=n&&null!=i&&l[0]!==n[0]&&(i+=n[0]),null==(t=i)?void 0:t.toUpperCase()}function Ue(e,t){const a=e.split("@")[0];return(a&&a.charCodeAt(0)+a.charCodeAt(a.length-1)||0)%t}var qe={avatar:"_38a1be89","size-xxs":"d32e92ae","size-xs":"_0667d719","size-s":"cf529fcf","size-m":"_6e268eab","size-l":"d64c62cf","size-xl":"_44fb77de","size-xxl":"_01f85e0e","size-xxxl":"_41a5fe19","tablet-size-xxs":"_6ab1577d","tablet-size-xs":"b52a4963","tablet-size-s":"_714a8419","tablet-size-m":"_81cd4d51","tablet-size-l":"bf0a4edb","tablet-size-xl":"e4f0dabd","tablet-size-xxl":"_67ea065d","tablet-size-xxxl":"_2af7f76f","desktop-size-xxs":"_759081dc","desktop-size-xs":"_8290d1c1","desktop-size-s":"_48ea172d","desktop-size-m":"_758f6641","desktop-size-l":"f9ada088","desktop-size-xl":"d3bb7470","desktop-size-xxl":"_9a312ee3","desktop-size-xxxl":"a1d30c23"};const Ke=["user","avatarUrl","size","className","colorList","exceptionallySetClassName"],Ge=["#fcc652","#e9952c","#e16b2d","#d84b40","#e8435a","#e5198a","#ad3889","#86389c","#a8a8a8","#98be2f","#5d9d50","#5f9f85","#5bbcb6","#32a3bf","#2bafeb","#2d88c3","#3863cc","#5e5e5e"];function Ve(e){let{user:t,avatarUrl:l,size:n="l",className:i,colorList:r=Ge,exceptionallySetClassName:o}=e,s=y(e,Ke);const c=Ye(t.name)||Ye(t.email),d=n||"l",m=l?{backgroundImage:"url("+l+")",textIndent:"-9999px"}:{backgroundColor:r[Ue(t.email,r.length)]},u=E(qe,"size",d);return a.createElement(L,x({className:[i,qe.avatar,u,o],style:m},s),c)}Ve.displayName="Avatar";var Xe={overlay:"_868392ae",fadein:"_63d7ee15",fitContent:"b8548bf2",container:"_31956461",full:"_1007df83",large:"_10c275aa",medium:"_0ac526b4",small:"_30f38fdb",xlarge:"_54868e8b",expand:"c0bc68bc",buttonContainer:"_6527332a",headerContent:"_4750dc1b"};const Ze=["isOpen","onDismiss","height","width","exceptionallySetClassName","autoFocus","children"],$e=["children","button","withDivider","exceptionallySetClassName"],Je=["exceptionallySetClassName","children"],Qe=["exceptionallySetClassName","withDivider"],et=["children"],tt=t.createContext({onDismiss:void 0,height:"fitContent"});function at(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function lt(e){const{onDismiss:a}=t.useContext(tt),[l,n]=t.useState(!1),[i,r]=t.useState(!1);return t.useEffect((function(){i?n(!0):r(!0)}),[i]),t.createElement(te,x(x({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(ie,null),tabIndex:l?0:-1}))}function nt(e){let{exceptionallySetClassName:a,withDivider:l=!1}=e,n=y(e,Qe);return t.createElement(t.Fragment,null,l?t.createElement(M,null):null,t.createElement(L,x(x({as:"footer"},n),{},{className:a,padding:"large"})))}function it(e){const a=t.useRef(null);return t.useEffect(()=>{a.current=e},[e]),a.current}var rt={tab:"a1064a3b",track:"_06f1b8a1","tab-neutral":"dabbec7d","tab-themed":"e6f5ae4e","track-neutral":"_43913ce5","track-themed":"_39bdfdde","track-xsmall":"_1c148f4e","track-small":"_2a370df5","track-medium":"_77430437","track-large":"_33db5352","track-xlarge":"_60bf9564","track-xxlarge":"_29a35080"};const ot=["as","children","id","exceptionallySetClassName"],st=["children","space"],ct=["children","id","as","render"],dt=t.createContext(null),mt=v((function(e,a){let{as:n,children:i,id:r,exceptionallySetClassName:o}=e,s=y(e,ot);const c=t.useContext(dt);if(!c)return null;const{variant:d,tabState:u}=c;return t.createElement(m.Tab,x(x({},s),{},{as:n,className:l(o,rt.tab,rt["tab-"+d]),id:r,state:u,ref:a}),i)})),ut=v((function(e,a){let{children:l,id:n,as:i,render:r="always"}=e,o=y(e,ct);const s=t.useContext(dt),[c,d]=t.useState(!1),u=(null==s?void 0:s.tabState.selectedId)===n;if(t.useEffect((function(){!c&&u&&d(!0)}),[c,u]),!s)return null;const{tabState:p}=s;return"always"===r||"active"===r&&u||"lazy"===r&&(u||c)?t.createElement(m.TabPanel,x(x({tabId:n},o),{},{state:p,as:i,ref:a}),l):null})),pt=["type","variant","size","loading","disabled","tooltip","onClick","children"],ft=a.forwardRef((function(e,t){let{type:n="button",variant:i,size:r="default",loading:o=!1,disabled:s=!1,tooltip:c,onClick:d,children:m}=e,u=y(e,pt);const p=l("reactist_button",i?"reactist_button--"+i:null,"default"!==r?"reactist_button--"+r:null,{"reactist_button--loading":o},u.className),f=a.createElement("button",x(x({},u),{},{ref:t,type:n,className:p,"aria-disabled":s||o,onClick:s||o?void 0:d}),m);return c?a.createElement(V,{content:c},f):f}));ft.displayName="Button",ft.defaultProps={size:"default",loading:!1,disabled:!1};const gt=["children","onClick","tooltip","className"];class bt extends a.Component{constructor(e,t){super(e,t),this._timeout=void 0,this._handleClickOutside=e=>{const t=u.findDOMNode(this);t&&!t.contains(e.target)?this._toggleShowBody():this.props.allowBodyInteractions||(this._timeout=setTimeout(()=>{this.state.showBody&&this._toggleShowBody()},100))},this._toggleShowBody=()=>{this.state.showBody?(this.props.onHideBody&&this.props.onHideBody(),document.removeEventListener("click",this._handleClickOutside,!0)):(this.props.onShowBody&&this.props.onShowBody(),document.addEventListener("click",this._handleClickOutside,!0)),this.setState({showBody:!this.state.showBody})},this._setPosition=e=>{if(e){const t=document.getElementById(this.props.scrolling_parent?this.props.scrolling_parent:"");if(t){const a=u.findDOMNode(this);if(!a)return;const l=u.findDOMNode(this).offsetTop,n=a.querySelector(".trigger");if(!n)return;const i=t.clientHeight+t.scrollTop-l-n.clientHeight<e.clientHeight;i!==this.state.top&&this.setState({top:i})}}},this.state={showBody:!1,top:e.top||!1},this._timeout=void 0}componentWillUnmount(){document.removeEventListener("click",this._handleClickOutside,!0),this._timeout&&clearTimeout(this._timeout)}_getTriggerComponent(){var e;const t=null==(e=this.props.children)?void 0:e[0];return t?a.cloneElement(t,{onClick:this._toggleShowBody}):void 0}_getBodyComponent(){if(!this.state.showBody)return null;const{top:e}=this.state,{right:t=!1,children:n}=this.props,i={top:e,right:t,setPosition:this._setPosition},r=l({body_wrapper:!0,with_arrow:!0,top:e,bottom:!e}),o=null==n?void 0:n[1],s="function"==typeof o?o(i):o?a.cloneElement(o,i):void 0;return a.createElement("div",{className:r,style:{position:"relative"}},s)}render(){const e=l("reactist_dropdown",this.props.className),{top:t}=this.state;return a.createElement("div",{style:{display:"inline-block"},className:e,"data-testid":"reactist-dropdown-box"},t&&this._getBodyComponent(),this._getTriggerComponent(),!t&&this._getBodyComponent())}}bt.displayName=void 0,bt.displayName="Dropdown.Box";const ht=a.forwardRef((function(e,t){let{children:n,onClick:i,tooltip:r,className:o}=e,s=y(e,gt);return a.createElement(ft,x(x({},s),{},{className:l("trigger",o),onClick:function(e){e.preventDefault(),e.stopPropagation(),i&&i(e)},tooltip:r,ref:t}),n)}));function xt({top:e,right:t,children:l,setPosition:n}){const i={position:"absolute",right:0,top:0};return e&&(i.top="auto",i.bottom=0),t&&(i.right="auto",i.left=0),a.createElement("div",{ref:n,style:i,className:"body",id:"reactist-dropdown-body","data-testid":"reactist-dropdown-body"},l)}ht.displayName="Dropdown.Trigger",xt.displayName="Dropdown.Body";const _t={Box:bt,Trigger:ht,Body:xt},yt=["#606060","#4A90E2","#03B3B2","#008299","#82BA00","#D24726","#AC193D","#DC4FAD","#3BD5FB","#74E8D3","#FFCC00","#FB886E","#CCCCCC"],vt=e=>"string"!=typeof e;function Et({color:e=0,small:t,onChange:n,colorList:i=yt}){return a.createElement(_t.Box,{right:!0,className:"reactist_color_picker"},a.createElement(_t.Trigger,null,(()=>{const n=((e,t)=>e[t>=e.length?0:t])(i,e);return a.createElement("span",{className:l("color_trigger",{small:t}),style:{backgroundColor:vt(n)?n.color:n}},a.createElement("span",{className:"color_trigger--inner_ring"}))})()),a.createElement(_t.Body,null,a.createElement("div",{className:"color_options"},i.reduce((t,l,r)=>(t.push(a.createElement(Ct,{isActive:e>=i.length?0===r:r===e,key:r,color:vt(l)?l.color:l,colorIndex:r,onClick:n,tooltip:vt(l)?l.name:null})),t),[]))))}function Ct({color:e,colorIndex:t,isActive:l,onClick:n,tooltip:i}){const r=a.createElement("span",{"data-testid":"reactist-color-item",className:"reactist color_item"+(l?" active":""),style:{backgroundColor:e},onClick:()=>null==n?void 0:n(t)},a.createElement("span",{className:"color_item--inner_ring"}));return i?a.createElement(V,{content:i},r):r}Et.displayName="ColorPicker",Ct.displayName="ColorItem";const kt=["children","className","translateKey","isMac"];let wt=e=>e;function Nt(e){switch(e.toLowerCase()){case"cmd":case"mod":return"⌘";case"control":case"ctrl":return"⌃";case"alt":return"⌥";case"shift":return"⇧";case"space":return"␣";default:return e}}function St(e){var a,n;let{children:i,className:r,translateKey:o=wt,isMac:s=null!=(a=null==(n=navigator.platform)?void 0:n.toUpperCase().includes("MAC"))&&a}=e,c=y(e,kt);const d="string"==typeof i?[i]:i;return t.createElement("span",x({className:l("reactist_keyboard_shortcut",r,{"reactist_keyboard_shortcut--macos":s})},c),d.map((e,a)=>t.createElement(t.Fragment,{key:a},0===a?null:", ",t.createElement("kbd",null,function(e,t,a){const l=t?Nt:a,n=/\b(mod|cmd|ctrl|control|alt|shift)\b/i.test(e);return t||(e=e.replace(/\b(mod|cmd)\b/i,"ctrl")),e.split(/\s*\+\s*/).map((function(e){return function(e){return/^(mod|cmd|ctrl|control|alt|shift|space|super)$/i.test(e)}(e)?function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}(l(e)):n&&1===e.length?e.toUpperCase():e}))}(e,s,o).map((e,a)=>t.createElement("kbd",{key:a},e))))))}St.setTranslateKey=e=>{wt=e};const Rt={resolveByKey(e){switch(e){case"Left":case"ArrowLeft":return"ArrowLeft";case"Up":case"ArrowUp":return"ArrowUp";case"Right":case"ArrowRight":return"ArrowRight";case"Down":case"ArrowDown":return"ArrowDown";case"Enter":return"Enter";case"Backspace":return"Backspace";case"Esc":case"Escape":return"Escape";default:return null}},resolveByKeyCode(e){switch(e){case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 13:return"Enter";case 8:return"Backspace";case 27:return"Escape";default:return null}}},Lt={ArrowUp:"onArrowUp",ArrowDown:"onArrowDown",ArrowLeft:"onArrowLeft",ArrowRight:"onArrowRight",Enter:"onEnter",Backspace:"onBackspace",Escape:"onEscape"},Bt={ArrowUp:"propagateArrowUp",ArrowDown:"propagateArrowDown",ArrowLeft:"propagateArrowLeft",ArrowRight:"propagateArrowRight",Enter:"propagateEnter",Backspace:"propagateBackspace",Escape:"propagateEscape"};function Tt({fillPercentage:e=0,className:t,"aria-valuetext":n}){const i=l("reactist_progress_bar",t),r=e<0?0:e>100?100:e;return a.createElement("div",{className:i},a.createElement("div",{className:"inner",style:{width:r+"%"}}),a.createElement(K,null,a.createElement("progress",{value:r,max:100,"aria-valuetext":null!=n?n:void 0})))}Tt.displayName="ProgressBar",p.extend(f);const At={SHORT_FORMAT_CURRENT_YEAR:"L",SHORT_FORMAT_PAST_YEAR:"LL",LONG_FORMAT:"LL, LT",timeAgo(e,t={}){const{locale:a="en",shortFormatCurrentYear:l=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:n=this.SHORT_FORMAT_PAST_YEAR,daysSuffix:i="d",hoursSuffix:r="h",minutesSuffix:o="m",momentsAgo:s="moments ago"}=t,c=p(),d=p(1e3*e);d.locale(a);const m=c.diff(d,"minute"),u=c.diff(d,"hour"),f=c.diff(d,"day");return f>1?d.isSame(c,"year")?d.format(l):d.format(n):1===f?""+f+i:u>0&&u<=23?""+u+r:m>0&&m<=59?""+m+o:s},formatTime(e,t={}){const{locale:a="en",shortFormatCurrentYear:l=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:n=this.SHORT_FORMAT_PAST_YEAR}=t,i=p(1e3*e);return i.locale(a),i.isSame(p(),"year")?i.format(l):i.format(n)},formatTimeLong(e,t={}){const{locale:a="en",longFormat:l=this.LONG_FORMAT}=t,n=p(1e3*e);return n.locale(a),n.format(l)}};class zt extends a.Component{constructor(e){super(e),this.refreshInterval=void 0,this.refreshInterval=void 0,this.state={hovered:!1,mouseX:void 0,mouseY:void 0}}componentDidMount(){this.props.refresh&&this._refresh()}componentDidUpdate(e){!e.refresh&&this.props.refresh&&this._refresh(),e.refresh&&!this.props.refresh&&this.refreshInterval&&clearTimeout(this.refreshInterval)}componentWillUnmount(){this.refreshInterval&&clearTimeout(this.refreshInterval)}_setHovered(e,t){const{mouseX:a,mouseY:l}=this.state,{clientX:n,clientY:i}=t;n===a&&i===l||this.setState(()=>({hovered:e,mouseX:n,mouseY:i}))}_renderTime(e){if(this.props.time){if(this.state.hovered){if(this.props.expandFullyOnHover&&!this.props.tooltipOnHover)return At.formatTimeLong(this.props.time,e);if(this.props.expandOnHover&&!this.props.tooltipOnHover)return At.formatTime(this.props.time,e)}return At.timeAgo(this.props.time,e)}}_refresh(){this.refreshInterval=setInterval(()=>{this.forceUpdate()},6e4)}render(){let e="reactist_time";this.props.className&&(e=this.props.className);const t=this._renderTime(this.props.config);return a.createElement("time",{className:e,onMouseEnter:e=>this._setHovered(!0,e),onMouseLeave:e=>this._setHovered(!1,e)},this.props.tooltipOnHover?a.createElement(V,{content:this.props.tooltip||this.props.time&&At.formatTimeLong(this.props.time,this.props.config)},a.createElement("span",null,t)):t)}}zt.displayName=void 0,zt.defaultProps=void 0,zt.displayName="Time",zt.defaultProps={expandOnHover:!1,expandFullyOnHover:!1,tooltipOnHover:!1,refresh:!0,config:{locale:"en",daysSuffix:"d",hoursSuffix:"h",minutesSuffix:"m",momentsAgo:"moments ago"}};const Dt=()=>a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24"},a.createElement("path",{fill:"gray",fillRule:"evenodd",d:"M11.293 12L5.146 5.854a.5.5 0 1 1 .708-.708L12 11.293l6.146-6.147a.5.5 0 0 1 .708.708L12.707 12l6.147 6.146a.5.5 0 0 1-.708.708L12 12.707l-6.146 6.147a.5.5 0 0 1-.708-.708L11.293 12z"})),Ot=["id","icon","title","subtitle","children","customCloseButton","onClick","onClose","closeAltText","className","aria-live"],It=["children","onItemSelect"],Mt=["exceptionallySetClassName"],Ft=["exceptionallySetClassName"],Wt=["value","children","onSelect","hideOnSelect","onClick","exceptionallySetClassName","as"],Pt=["label","children","exceptionallySetClassName"],jt=t.createContext({});function Ht(e){let{children:a,onItemSelect:l}=e,n=y(e,It);const i=g.useMenuState(x({focusLoop:!0,gutter:8,shift:4},n)),r=t.useCallback((function(e){l&&l(e)}),[l]),o=t.useMemo(()=>({state:i,handleItemSelect:r}),[i,r]);return t.createElement(jt.Provider,{value:o},a)}const Yt=v((function(e,a){let{exceptionallySetClassName:n}=e,i=y(e,Mt);const{state:r}=t.useContext(jt);return t.createElement(g.MenuButton,x(x({},i),{},{state:r,ref:a,className:l("reactist_menubutton",n)}))})),Ut=v((function(e,a){let{exceptionallySetClassName:n}=e,i=y(e,Ft);const{state:r}=t.useContext(jt);return r.visible?t.createElement(d.Portal,{preserveTabOrder:!0},t.createElement(o,{returnFocus:!0},t.createElement(g.Menu,x(x({},i),{},{state:r,ref:a,className:l("reactist_menulist",n)})))):null})),qt=v((function(e,a){let{value:l,children:n,onSelect:i,hideOnSelect:r=!0,onClick:o,exceptionallySetClassName:s,as:c="button"}=e,d=y(e,Wt);const{handleItemSelect:m,state:u}=t.useContext(jt),{hide:p}=u,f=t.useCallback((function(e){null==o||o(e);const t=!1!==(i&&!e.defaultPrevented?i():void 0)&&r;m(l),t&&p()}),[i,o,m,r,p,l]);return t.createElement(g.MenuItem,x(x({},d),{},{as:c,state:u,ref:a,onClick:f,className:s,hideOnClick:!1}),n)})),Kt=t.forwardRef((function({children:e,onItemSelect:a},n){const{handleItemSelect:i,state:r}=t.useContext(jt),{hide:o}=r,s=t.useCallback((function(e){a&&a(e),i(e),o()}),[o,i,a]),[c,d]=t.Children.toArray(e),m=g.useMenuItem({state:r});return t.createElement(Ht,{onItemSelect:s},t.cloneElement(c,x(x({},m),{},{className:l(m.className,"reactist_submenu_button"),ref:n})),d)})),Gt=v((function(e,a){let{label:l,children:n,exceptionallySetClassName:i}=e,r=y(e,Pt);const{state:o}=t.useContext(jt);return t.createElement(g.MenuGroup,x(x({},r),{},{ref:a,state:o,className:i}),l?t.createElement("div",{role:"presentation",className:"reactist_menugroup__label"},l):null,n)})),Vt=a.forwardRef((e,t)=>{const n=l("reactist_input",e.className);return a.createElement("input",x(x({},e),{},{className:n,ref:t}))});Vt.displayName="Input";const Xt=["value","options","onChange","disabled","className","defaultValue"];function Zt(e){let{value:t,options:n=[],onChange:i,disabled:r=!0,className:o="",defaultValue:s}=e,c=y(e,Xt);const d=l("reactist_select",{disabled:r},o);return a.createElement("select",x({className:d,value:t,onChange:e=>i?i(e.target.value):void 0,disabled:r,defaultValue:s},c),null==n?void 0:n.map(e=>a.createElement("option",{key:e.key||e.value,value:e.value,disabled:e.disabled},e.text)))}Zt.displayName="Select",Zt.defaultProps={options:[],disabled:!1};var $t={"reach-portal":"_37bef8d8",fadein:"_77f9687f",fitContent:"bcc4e0a5",container:"d4832c2d",full:"b0c3b021",large:"_573d6aa5",medium:"_8550d996",small:"_43bb18f5",xlarge:"_57b4159d",overlay:"cb63f300",expand:"e741893e",buttonContainer:"bb1ce281",headerContent:"c5ef989c"};const Jt=["isOpen","onDismiss","height","width","exceptionallySetClassName","autoFocus","children"],Qt=["children","button","withDivider","exceptionallySetClassName"],ea=["exceptionallySetClassName","children"],ta=["exceptionallySetClassName","withDivider"],aa=["children"],la=t.createContext({onDismiss:void 0,height:"fitContent"});function na(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function ia(e){const{onDismiss:a}=t.useContext(la),[l,n]=t.useState(!1),[i,r]=t.useState(!1);return t.useEffect((function(){i?n(!0):r(!0)}),[i]),t.createElement(te,x(x({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(ie,null),tabIndex:l?0:-1}))}function ra(e){let{exceptionallySetClassName:a,withDivider:l=!1}=e,n=y(e,ta);return t.createElement(t.Fragment,null,l?t.createElement(M,null):null,t.createElement(L,x(x({as:"footer"},n),{},{className:a,padding:"large"})))}exports.Alert=function({id:e,children:a,tone:l,closeLabel:n,onClose:i}){return t.createElement(L,{id:e,role:"alert","aria-live":"polite",borderRadius:"standard",className:[re.container,E(re,"tone",l)]},t.createElement(D,{space:"small",alignY:"top"},t.createElement(z,{width:"content"},t.createElement(ne,{tone:l})),t.createElement(z,null,t.createElement(L,{paddingY:"xsmall",paddingRight:null!=i&&null!=n?void 0:"small"},a)),null!=i&&null!=n?t.createElement(z,{width:"content"},t.createElement(te,{variant:"quaternary",size:"small",onClick:i,"aria-label":n,icon:t.createElement(ie,null),style:{"--reactist-btn-hover-fill":"transparent"}})):null))},exports.Avatar=Ve,exports.Box=L,exports.Button=te,exports.ButtonLink=he,exports.COLORS=yt,exports.CheckboxField=ke,exports.ColorPicker=Et,exports.Column=z,exports.Columns=D,exports.DeprecatedButton=ft,exports.DeprecatedDropdown=_t,exports.DeprecatedInput=Vt,exports.DeprecatedModal=function(e){let{isOpen:a,onDismiss:n,height:i="fitContent",width:r="medium",exceptionallySetClassName:s,autoFocus:c=!0,children:d}=e,m=y(e,Jt);const u=t.useMemo(()=>({onDismiss:n,height:i}),[n,i]);return t.createElement(b.DialogOverlay,{isOpen:a,onDismiss:n,dangerouslyBypassFocusLock:!0,className:l($t.overlay,$t[i],$t[r]),"data-testid":"modal-overlay"},t.createElement(o,{autoFocus:c,whiteList:na,returnFocus:!0},t.createElement(b.DialogContent,x(x({},m),{},{as:L,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===i?"full":void 0,flexGrow:"expand"===i?1:0,className:[s,$t.container]}),t.createElement(la.Provider,{value:u},d))))},exports.DeprecatedModalActions=function(e){let{children:a}=e,l=y(e,aa);return t.createElement(ra,x({},l),t.createElement(P,{align:"right",space:"large"},a))},exports.DeprecatedModalBody=function(e){let{exceptionallySetClassName:a,children:l}=e,n=y(e,ea);const{height:i}=t.useContext(la);return t.createElement(L,x(x({},n),{},{className:a,flexGrow:"expand"===i?1:0,height:"expand"===i?"full":void 0,overflow:"auto"}),t.createElement(L,{padding:"large",paddingBottom:"xxlarge"},l))},exports.DeprecatedModalCloseButton=ia,exports.DeprecatedModalFooter=ra,exports.DeprecatedModalHeader=function(e){let{children:a,button:l=!0,withDivider:n=!1,exceptionallySetClassName:i}=e,r=y(e,Qt);return t.createElement(t.Fragment,null,t.createElement(L,x(x({},r),{},{as:"header",paddingLeft:"large",paddingRight:!1===l||null===l?"large":"small",paddingY:"small",className:i}),t.createElement(D,{space:"large",alignY:"center"},t.createElement(z,{width:"auto"},a),!1===l||null===l?t.createElement("div",{className:$t.headerContent}):t.createElement(z,{width:"content",exceptionallySetClassName:$t.buttonContainer,"data-testid":"button-container"},"boolean"==typeof l?t.createElement(ia,{"aria-label":"Close modal",autoFocus:!1}):l))),n?t.createElement(M,null):null)},exports.DeprecatedSelect=Zt,exports.Divider=M,exports.Heading=ue,exports.Hidden=q,exports.HiddenVisually=K,exports.Inline=P,exports.KeyCapturer=function(e){const{children:l,eventName:n="onKeyDown"}=e,i=t.useRef(!1);return a.cloneElement(l,x({[n]:function(t){const a=void 0!==t.key?Rt.resolveByKey(t.key):Rt.resolveByKeyCode(t.keyCode);if(!a)return;const l=e[Bt[a]]||!1,n=e[Lt[a]];"Enter"===a&&n&&(i.current||229===(t.keyCode||t.which))||n&&(n(t),l||(t.preventDefault(),t.stopPropagation()))}},e.onEnter?{onCompositionStart:()=>{i.current=!0},onCompositionEnd:()=>{i.current=!1}}:void 0))},exports.KeyboardShortcut=St,exports.Loading=function(e){var t;let{size:l="small",exceptionallySetClassName:n}=e,i=y(e,oe);const r=null!=(t=se[l])?t:se.small,o=i["aria-label"]?i["aria-label"]:i["aria-labelledby"]?void 0:"Loading…";return a.createElement(L,x(x({},i),{},{"aria-label":o,className:n,display:"flex",alignItems:"center",justifyContent:"center",role:"progressbar"}),a.createElement(X,{size:r,"aria-hidden":!0}))},exports.Menu=Ht,exports.MenuButton=Yt,exports.MenuGroup=Gt,exports.MenuItem=qt,exports.MenuList=Ut,exports.Modal=function(e){let{isOpen:a,onDismiss:n,height:i="fitContent",width:r="medium",exceptionallySetClassName:m,autoFocus:u=!0,children:p}=e,f=y(e,Ze);const g=t.useCallback(e=>{e||null==n||n()},[n]),b=c.useDialogState({visible:a,setVisible:g}),h=t.useMemo(()=>({onDismiss:n,height:i}),[n,i]),_=t.useRef(null),v=t.useRef(null),E=t.useRef(null),C=t.useCallback(e=>{var t,a;null!=(t=v.current)&&t.contains(e.target)||null==(a=E.current)||!a.contains(e.target)||(e.stopPropagation(),null==n||n())},[n]);return t.useLayoutEffect((function(){if(a&&_.current)return s.hideOthers(_.current)}),[a]),a?t.createElement(d.Portal,{portalRef:_},t.createElement(L,{"data-testid":"modal-overlay","data-overlay":!0,className:l(Xe.overlay,Xe[i],Xe[r]),onClick:C,ref:E},t.createElement(o,{autoFocus:u,whiteList:at,returnFocus:!0},t.createElement(c.Dialog,x(x({},f),{},{ref:v,as:L,state:b,hideOnEscape:!0,preventBodyScroll:!0,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===i?"full":void 0,flexGrow:"expand"===i?1:0,className:[m,Xe.container],modal:!1,autoFocus:!1,autoFocusOnShow:!1,autoFocusOnHide:!1,portal:!1,backdrop:!1,hideOnInteractOutside:!1}),t.createElement(tt.Provider,{value:h},p))))):null},exports.ModalActions=function(e){let{children:a}=e,l=y(e,et);return t.createElement(nt,x({},l),t.createElement(P,{align:"right",space:"large"},a))},exports.ModalBody=function(e){let{exceptionallySetClassName:a,children:l}=e,n=y(e,Je);const{height:i}=t.useContext(tt);return t.createElement(L,x(x({},n),{},{className:a,flexGrow:"expand"===i?1:0,height:"expand"===i?"full":void 0,overflow:"auto"}),t.createElement(L,{padding:"large",paddingBottom:"xxlarge"},l))},exports.ModalCloseButton=lt,exports.ModalFooter=nt,exports.ModalHeader=function(e){let{children:a,button:l=!0,withDivider:n=!1,exceptionallySetClassName:i}=e,r=y(e,$e);return t.createElement(t.Fragment,null,t.createElement(L,x(x({},r),{},{as:"header",paddingLeft:"large",paddingRight:!1===l||null===l?"large":"small",paddingY:"small",className:i}),t.createElement(D,{space:"large",alignY:"center"},t.createElement(z,{width:"auto"},a),!1===l||null===l?t.createElement("div",{className:Xe.headerContent}):t.createElement(z,{width:"content",exceptionallySetClassName:Xe.buttonContainer,"data-testid":"button-container"},"boolean"==typeof l?t.createElement(lt,{"aria-label":"Close modal",autoFocus:!1}):l))),n?t.createElement(M,null):null)},exports.Notice=function({id:e,children:a,tone:l}){return t.createElement(L,{id:e,role:"alert","aria-live":"polite",className:[ce.container,E(ce,"tone",l)]},t.createElement(D,{space:"small",alignY:"top"},t.createElement(z,{width:"content"},t.createElement(ne,{tone:l})),t.createElement(z,null,t.createElement(L,{paddingY:"xsmall"},a))))},exports.Notification=function(e){let{id:t,icon:n,title:i,subtitle:r,children:o,customCloseButton:s,onClick:c,onClose:d,closeAltText:m="Close",className:u,"aria-live":p="polite"}=e,f=y(e,Ot);const g=i?t+"-title":null,b=g?{id:g}:null,h=r?t+"-subtitle":null,_=h?{id:h}:null,v=o?t+"-content":null,E=v?{"aria-labelledby":v}:g?{"aria-labelledby":g}:null,C=h&&!o?{"aria-describedby":h}:null,k=a.createElement("div",x({className:"reactist-notification__content"},o?{id:t+"-content"}:null),null!=o?o:a.createElement(a.Fragment,null,i?a.createElement("h3",x({className:"reactist-notification__title"},b),i):null,r?a.createElement("p",x({className:"reactist-notification__subtitle"},_),r):null)),w=a.createElement("div",{className:"reactist-notification__icon-content-group"},null!=n?n:null,k);return a.createElement("div",x(x(x({id:t,role:"alert",className:l("reactist-notification",u,{"reactist-notification--with-button":Boolean(c),"reactist-notification--with-close-button":Boolean(d)}),"aria-live":p},E),C),f),c?a.createElement("button",{className:"reactist-notification__button",onClick:c},w):w,d?a.createElement("button",{className:"reactist-notification__close-button",onClick:d,"aria-label":m},null!=s?s:a.createElement(Dt,null)):null)},exports.PasswordField=De,exports.ProgressBar=Tt,exports.SUPPORTED_KEYS={ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ENTER:"Enter",BACKSPACE:"Backspace",ESCAPE:"Escape"},exports.SelectField=Ie,exports.Stack=Y,exports.SubMenu=Kt,exports.SwitchField=We,exports.Tab=mt,exports.TabAwareSlot=function({children:e}){const a=t.useContext(dt);return a?e({selectedId:null==a?void 0:a.tabState.selectedId}):null},exports.TabList=function(e){let{children:a,space:n="xsmall"}=e,i=y(e,st);const r=t.useContext(dt);if(!r)return null;const{tabState:o,variant:s}=r;return t.createElement(L,null,t.createElement(m.TabList,x({state:o,as:L,position:"relative",width:"maxContent"},i),t.createElement(L,{className:l(rt.track,rt["track-"+n],rt["track-"+s])}),t.createElement(P,{space:n},a)))},exports.TabPanel=ut,exports.Tabs=function({children:e,selectedId:a,defaultSelectedId:l,variant:n="neutral",onSelectedIdChange:i}){const r=m.useTabState({selectedId:a,setSelectedId:i}),o=it(l),{selectedId:s,select:c}=r;t.useEffect((function(){a||l===o||l===s||void 0===l||c(l)}),[a,l,s,c,o]);const d=t.useMemo((function(){return{tabState:r,variant:n}}),[n,r]);return t.createElement(dt.Provider,{value:d},e)},exports.Text=ge,exports.TextArea=function(e){let{variant:a="default",id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,maxWidth:d}=e,m=y(e,Pe);return t.createElement(Be,{variant:a,id:l,label:n,secondaryLabel:i,auxiliaryLabel:r,hint:o,message:s,tone:c,className:["d6ec37c5","error"===c?"bef49c61":null,"bordered"===a?"a60d6043":null],maxWidth:d},e=>t.createElement(L,{width:"full",display:"flex"},t.createElement("textarea",x(x({},m),e))))},exports.TextField=He,exports.TextLink=_e,exports.Time=zt,exports.Tooltip=V,exports.usePrevious=it;
2
2
  //# sourceMappingURL=reactist.cjs.production.min.js.map