@purple/phoenix-components 5.28.2 → 5.29.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.
@@ -974,7 +974,7 @@
974
974
 
975
975
  ${R}
976
976
  ${U}
977
- `,tn=E.default.a`
977
+ `,tn=l.css`
978
978
  display: flex;
979
979
  align-items: center;
980
980
  text-decoration: none;
@@ -990,24 +990,33 @@
990
990
  background: ${e.tokens.color.background.neutral.secondary};
991
991
  }
992
992
  `}
993
- `,ln=l.css`
993
+ `,ln=E.default.button`
994
+ ${tn};
995
+ border: none;
996
+ background: inherit;
997
+ width: 100%;
998
+ font-size: 14px;
999
+ font-family: ${({theme:e})=>e.tokens.ref.fontFamily.base};
1000
+ `,nn=E.default.a`
1001
+ ${tn}
1002
+ `,rn=l.css`
994
1003
  width: 20px;
995
1004
  height: 20px;
996
1005
  margin-inline-end: 8px;
997
1006
 
998
1007
  ${({theme:e,icon:t,disabled:l,colorTheme:n})=>Fe(t)?"":`\n\t\t\t\t\tpath {\n\t\t\t\t\t\tfill: ${l?e.tokens.color.text.quaternary:n?e.tokens.color.text[n].primary:e.tokens.color.text.secondary};\n\t\t\t\t\t}\n\t\t\t `}
999
- `,nn=E.default(L.default)`
1000
- ${ln}
1001
- `,rn=E.default(we)`
1002
- ${ln}
1003
- `,on=e=>e.icon?ve(e.icon)?w.default.createElement(rn,{icon:e.icon,disabled:e.disabled,colorTheme:e.colorTheme}):"string"==typeof e.icon?w.default.createElement(nn,{src:e.icon,disabled:e.disabled,colorTheme:e.colorTheme}):e.icon:null,an=E.default.div`
1008
+ `,on=E.default(L.default)`
1009
+ ${rn}
1010
+ `,an=E.default(we)`
1011
+ ${rn}
1012
+ `,Cn=e=>e.icon?ve(e.icon)?w.default.createElement(an,{icon:e.icon,disabled:e.disabled,colorTheme:e.colorTheme}):"string"==typeof e.icon?w.default.createElement(on,{src:e.icon,disabled:e.disabled,colorTheme:e.colorTheme}):e.icon:null,dn=E.default.div`
1004
1013
  display: flex;
1005
1014
  align-items: center;
1006
- `,Cn=(e,t)=>{if("value"===t.context)return e.label;const l=t.selectValue?.some((t=>t.value===e.value));return w.default.createElement(an,null,w.default.createElement(tt,{checked:l,readOnly:!0}),e.label)};ll("/* Functional styling;\n * These styles are required for noUiSlider to function.\n * You don't need to change these rules to apply your design.\n */\n.noUi-target,\n.noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.noUi-target {\n position: relative;\n}\n.noUi-base,\n.noUi-connects {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n}\n/* Wrapper for all connect elements.\n */\n.noUi-connects {\n overflow: hidden;\n z-index: 0;\n}\n.noUi-connect,\n.noUi-origin {\n will-change: transform;\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n height: 100%;\n width: 100%;\n -ms-transform-origin: 0 0;\n -webkit-transform-origin: 0 0;\n -webkit-transform-style: preserve-3d;\n transform-origin: 0 0;\n transform-style: flat;\n}\n/* Offset direction\n */\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {\n left: 0;\n right: auto;\n}\n/* Give origins 0 height/width so they don't interfere with clicking the\n * connect elements.\n */\n.noUi-vertical .noUi-origin {\n top: -100%;\n width: 0;\n}\n.noUi-horizontal .noUi-origin {\n height: 0;\n}\n.noUi-handle {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n position: absolute;\n}\n.noUi-touch-area {\n height: 100%;\n width: 100%;\n}\n.noUi-state-tap .noUi-connect,\n.noUi-state-tap .noUi-origin {\n -webkit-transition: transform 0.3s;\n transition: transform 0.3s;\n}\n.noUi-state-drag * {\n cursor: inherit !important;\n}\n/* Slider size and handle placement;\n */\n.noUi-horizontal {\n height: 18px;\n}\n.noUi-horizontal .noUi-handle {\n width: 34px;\n height: 28px;\n right: -17px;\n top: -6px;\n}\n.noUi-vertical {\n width: 18px;\n}\n.noUi-vertical .noUi-handle {\n width: 28px;\n height: 34px;\n right: -6px;\n bottom: -17px;\n}\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {\n left: -17px;\n right: auto;\n}\n/* Styling;\n * Giving the connect element a border radius causes issues with using transform: scale\n */\n.noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.noUi-connects {\n border-radius: 3px;\n}\n.noUi-connect {\n background: #3FB8AF;\n}\n/* Handles and cursors;\n */\n.noUi-draggable {\n cursor: ew-resize;\n}\n.noUi-vertical .noUi-draggable {\n cursor: ns-resize;\n}\n.noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n/* Handle stripes;\n */\n.noUi-handle:before,\n.noUi-handle:after {\n content: \"\";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.noUi-handle:after {\n left: 17px;\n}\n.noUi-vertical .noUi-handle:before,\n.noUi-vertical .noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.noUi-vertical .noUi-handle:after {\n top: 17px;\n}\n/* Disabled state;\n */\n[disabled] .noUi-connect {\n background: #B8B8B8;\n}\n[disabled].noUi-target,\n[disabled].noUi-handle,\n[disabled] .noUi-handle {\n cursor: not-allowed;\n}\n/* Base;\n *\n */\n.noUi-pips,\n.noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.noUi-pips {\n position: absolute;\n color: #999;\n}\n/* Values;\n *\n */\n.noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n/* Markings;\n *\n */\n.noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.noUi-marker-sub {\n background: #AAA;\n}\n.noUi-marker-large {\n background: #AAA;\n}\n/* Horizontal layout;\n *\n */\n.noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.noUi-value-horizontal {\n -webkit-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n.noUi-rtl .noUi-value-horizontal {\n -webkit-transform: translate(50%, 50%);\n transform: translate(50%, 50%);\n}\n.noUi-marker-horizontal.noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.noUi-marker-horizontal.noUi-marker-sub {\n height: 10px;\n}\n.noUi-marker-horizontal.noUi-marker-large {\n height: 15px;\n}\n/* Vertical layout;\n *\n */\n.noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.noUi-value-vertical {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n padding-left: 25px;\n}\n.noUi-rtl .noUi-value-vertical {\n -webkit-transform: translate(0, 50%);\n transform: translate(0, 50%);\n}\n.noUi-marker-vertical.noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.noUi-marker-vertical.noUi-marker-sub {\n width: 10px;\n}\n.noUi-marker-vertical.noUi-marker-large {\n width: 15px;\n}\n.noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.noUi-horizontal .noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.noUi-vertical .noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.noUi-horizontal .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(50%, 0);\n transform: translate(50%, 0);\n left: auto;\n bottom: 10px;\n}\n.noUi-vertical .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(0, -18px);\n transform: translate(0, -18px);\n top: auto;\n right: 28px;\n}\n",{});const dn=E.default.div`
1015
+ `,sn=(e,t)=>{if("value"===t.context)return e.label;const l=t.selectValue?.some((t=>t.value===e.value));return w.default.createElement(dn,null,w.default.createElement(tt,{checked:l,readOnly:!0}),e.label)};ll("/* Functional styling;\n * These styles are required for noUiSlider to function.\n * You don't need to change these rules to apply your design.\n */\n.noUi-target,\n.noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.noUi-target {\n position: relative;\n}\n.noUi-base,\n.noUi-connects {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n}\n/* Wrapper for all connect elements.\n */\n.noUi-connects {\n overflow: hidden;\n z-index: 0;\n}\n.noUi-connect,\n.noUi-origin {\n will-change: transform;\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n height: 100%;\n width: 100%;\n -ms-transform-origin: 0 0;\n -webkit-transform-origin: 0 0;\n -webkit-transform-style: preserve-3d;\n transform-origin: 0 0;\n transform-style: flat;\n}\n/* Offset direction\n */\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {\n left: 0;\n right: auto;\n}\n/* Give origins 0 height/width so they don't interfere with clicking the\n * connect elements.\n */\n.noUi-vertical .noUi-origin {\n top: -100%;\n width: 0;\n}\n.noUi-horizontal .noUi-origin {\n height: 0;\n}\n.noUi-handle {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n position: absolute;\n}\n.noUi-touch-area {\n height: 100%;\n width: 100%;\n}\n.noUi-state-tap .noUi-connect,\n.noUi-state-tap .noUi-origin {\n -webkit-transition: transform 0.3s;\n transition: transform 0.3s;\n}\n.noUi-state-drag * {\n cursor: inherit !important;\n}\n/* Slider size and handle placement;\n */\n.noUi-horizontal {\n height: 18px;\n}\n.noUi-horizontal .noUi-handle {\n width: 34px;\n height: 28px;\n right: -17px;\n top: -6px;\n}\n.noUi-vertical {\n width: 18px;\n}\n.noUi-vertical .noUi-handle {\n width: 28px;\n height: 34px;\n right: -6px;\n bottom: -17px;\n}\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {\n left: -17px;\n right: auto;\n}\n/* Styling;\n * Giving the connect element a border radius causes issues with using transform: scale\n */\n.noUi-target {\n background: #FAFAFA;\n border-radius: 4px;\n border: 1px solid #D3D3D3;\n box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;\n}\n.noUi-connects {\n border-radius: 3px;\n}\n.noUi-connect {\n background: #3FB8AF;\n}\n/* Handles and cursors;\n */\n.noUi-draggable {\n cursor: ew-resize;\n}\n.noUi-vertical .noUi-draggable {\n cursor: ns-resize;\n}\n.noUi-handle {\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #FFF;\n cursor: default;\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;\n}\n.noUi-active {\n box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;\n}\n/* Handle stripes;\n */\n.noUi-handle:before,\n.noUi-handle:after {\n content: \"\";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background: #E8E7E6;\n left: 14px;\n top: 6px;\n}\n.noUi-handle:after {\n left: 17px;\n}\n.noUi-vertical .noUi-handle:before,\n.noUi-vertical .noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n.noUi-vertical .noUi-handle:after {\n top: 17px;\n}\n/* Disabled state;\n */\n[disabled] .noUi-connect {\n background: #B8B8B8;\n}\n[disabled].noUi-target,\n[disabled].noUi-handle,\n[disabled] .noUi-handle {\n cursor: not-allowed;\n}\n/* Base;\n *\n */\n.noUi-pips,\n.noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.noUi-pips {\n position: absolute;\n color: #999;\n}\n/* Values;\n *\n */\n.noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n.noUi-value-sub {\n color: #ccc;\n font-size: 10px;\n}\n/* Markings;\n *\n */\n.noUi-marker {\n position: absolute;\n background: #CCC;\n}\n.noUi-marker-sub {\n background: #AAA;\n}\n.noUi-marker-large {\n background: #AAA;\n}\n/* Horizontal layout;\n *\n */\n.noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n.noUi-value-horizontal {\n -webkit-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n.noUi-rtl .noUi-value-horizontal {\n -webkit-transform: translate(50%, 50%);\n transform: translate(50%, 50%);\n}\n.noUi-marker-horizontal.noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n.noUi-marker-horizontal.noUi-marker-sub {\n height: 10px;\n}\n.noUi-marker-horizontal.noUi-marker-large {\n height: 15px;\n}\n/* Vertical layout;\n *\n */\n.noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n.noUi-value-vertical {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n padding-left: 25px;\n}\n.noUi-rtl .noUi-value-vertical {\n -webkit-transform: translate(0, 50%);\n transform: translate(0, 50%);\n}\n.noUi-marker-vertical.noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n.noUi-marker-vertical.noUi-marker-sub {\n width: 10px;\n}\n.noUi-marker-vertical.noUi-marker-large {\n width: 15px;\n}\n.noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background: #fff;\n color: #000;\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n.noUi-horizontal .noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n.noUi-vertical .noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n.noUi-horizontal .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(50%, 0);\n transform: translate(50%, 0);\n left: auto;\n bottom: 10px;\n}\n.noUi-vertical .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(0, -18px);\n transform: translate(0, -18px);\n top: auto;\n right: 28px;\n}\n",{});const cn=E.default.div`
1007
1016
  padding: 0 ${({px:e})=>e??"10px"};
1008
1017
  display: flex;
1009
1018
  align-items: center;
1010
- `,sn=E.default.div`
1019
+ `,pn=E.default.div`
1011
1020
  &,
1012
1021
  &.noUi-target {
1013
1022
  border: none;
@@ -1055,19 +1064,19 @@
1055
1064
  .noUi-connect {
1056
1065
  background: ${({theme:e})=>e.tokens.color.text.secondary};
1057
1066
  }
1058
- `,cn=({testId:e,px:l,className:n,sliderRef:i,sliderApi:r,disabled:o})=>(t.useEffect((()=>{r&&(o?r.disable():r.enable())}),[r,o]),w.default.createElement(dn,{"data-testid":e,className:n,px:l},w.default.createElement(sn,{ref:i})));function pn(e,l,n){const i=t.useRef(null),r=t.useRef(null);return t.useEffect((()=>{if(!i||!r||!i.current||r.current)return;const t=l.connect??(["number","string"].includes(typeof e)?"lower":Array.isArray(e)&&2===e.length?[!1,!0,!1]:void 0);r.current=B.default.create(i.current,{start:e,range:l.range,step:l.step,connect:t,animate:!1,snap:l.snap,pips:l.pips})}),[i]),t.useEffect((()=>{Z.default(e,n)||r.current?.set(e)}),[e]),[r,i]}const un=E.default.section`
1067
+ `,un=({testId:e,px:l,className:n,sliderRef:i,sliderApi:r,disabled:o})=>(t.useEffect((()=>{r&&(o?r.disable():r.enable())}),[r,o]),w.default.createElement(cn,{"data-testid":e,className:n,px:l},w.default.createElement(pn,{ref:i})));function hn(e,l,n){const i=t.useRef(null),r=t.useRef(null);return t.useEffect((()=>{if(!i||!r||!i.current||r.current)return;const t=l.connect??(["number","string"].includes(typeof e)?"lower":Array.isArray(e)&&2===e.length?[!1,!0,!1]:void 0);r.current=B.default.create(i.current,{start:e,range:l.range,step:l.step,connect:t,animate:!1,snap:l.snap,pips:l.pips})}),[i]),t.useEffect((()=>{Z.default(e,n)||r.current?.set(e)}),[e]),[r,i]}const gn=E.default.section`
1059
1068
  display: flex;
1060
1069
  flex-wrap: wrap;
1061
1070
  justify-content: center;
1062
1071
 
1063
1072
  ${U}
1064
- `,hn=E.default(Ie)`
1073
+ `,mn=E.default(Ie)`
1065
1074
  [dir='rtl'] & svg {
1066
1075
  transform: scaleX(-1);
1067
1076
  }
1068
1077
 
1069
1078
  ${({selected:e})=>!1===e?"font-weight: normal;":""}
1070
- `,gn=E.default.div`
1079
+ `,Dn=E.default.div`
1071
1080
  ${e=>ye(e.theme)}
1072
1081
  ${e=>Ee(e.size,e.theme)}
1073
1082
  ${e=>Le(e.theme,"brand",!0)}
@@ -1083,7 +1092,7 @@
1083
1092
  }
1084
1093
 
1085
1094
  ${U}
1086
- `,mn=(e,t)=>{const l=t-e+1;return Array.from({length:l},((t,l)=>e+l))},Dn=E.default(ct)`
1095
+ `,fn=(e,t)=>{const l=t-e+1;return Array.from({length:l},((t,l)=>e+l))},Fn=E.default(ct)`
1087
1096
  cursor: pointer;
1088
1097
 
1089
1098
  &:hover path {
@@ -1091,22 +1100,22 @@
1091
1100
  ${({theme:e})=>e.tokens.duration.transition.base};
1092
1101
  fill: ${({theme:e})=>e.tokens.color.text.primary};
1093
1102
  }
1094
- `,fn=E.default.div`
1103
+ `,vn=E.default.div`
1095
1104
  background-color: ${({theme:e})=>e.tokens.color.background.tertiary};
1096
1105
  border-radius: ${({theme:e})=>e.tokens.ref.borderRadius.pill};
1097
1106
  height: 9px;
1098
1107
 
1099
1108
  ${U};
1100
- `,Fn=E.default.div`
1109
+ `,xn=E.default.div`
1101
1110
  background: ${({theme:e,$color:t})=>t?W(t)?e.tokens.color.background[t].primary:t:e.tokens.color.background.brand.primary};
1102
1111
  border-radius: ${({theme:e})=>e.tokens.ref.borderRadius.pill};
1103
1112
  width: ${({$value:e})=>e?`${e}%`:"0%"};
1104
1113
  height: 100%;
1105
1114
  transition: width
1106
1115
  ${({theme:e})=>e.tokens.duration.transition.base};
1107
- `,vn=({testId:e="ProgressBar",value:t,color:l,...n})=>w.default.createElement(fn,{"data-testid":e,...n},w.default.createElement(Fn,{$value:t,$color:l})),xn=E.default.div`
1116
+ `,bn=({testId:e="ProgressBar",value:t,color:l,...n})=>w.default.createElement(vn,{"data-testid":e,...n},w.default.createElement(xn,{$value:t,$color:l})),wn=E.default.div`
1108
1117
  width: 80px;
1109
- `;var bn;!function(e){e.NONE="none",e.WEAK="weak",e.FAIR="fair",e.GOOD="good",e.EXCELLENT="excellent"}(bn||(bn={}));const wn=e=>{const n=l.useTheme(),i=t.useMemo((()=>({strength:bn.NONE,textColor:n.tokens.color.text.primary,progressBarColor:n.tokens.color.background.error.primary,progressBarValue:0})),[n]),[r,o]=t.useState(i);return t.useEffect((()=>{if(!e)return o(i);(async()=>{const{colorTheme:t,...l}=await(async e=>{let t,l,n;switch((await import("zxcvbn").then((t=>t.default(e)))).score){case 4:t=bn.EXCELLENT,l="success",n=100;break;case 3:t=bn.GOOD,l="success",n=75;break;case 2:t=bn.FAIR,l="warning",n=50;break;default:t=bn.WEAK,l="error",n=25}return{strength:t,colorTheme:l,progressBarValue:n}})(e);o({textColor:n.tokens.color.text[t].primary,progressBarColor:n.tokens.color.background[t].primary,...l})})()}),[n,e,i]),r},En=E.default(qe)`
1118
+ `;var En;!function(e){e.NONE="none",e.WEAK="weak",e.FAIR="fair",e.GOOD="good",e.EXCELLENT="excellent"}(En||(En={}));const Ln=e=>{const n=l.useTheme(),i=t.useMemo((()=>({strength:En.NONE,textColor:n.tokens.color.text.primary,progressBarColor:n.tokens.color.background.error.primary,progressBarValue:0})),[n]),[r,o]=t.useState(i);return t.useEffect((()=>{if(!e)return o(i);(async()=>{const{colorTheme:t,...l}=await(async e=>{let t,l,n;switch((await import("zxcvbn").then((t=>t.default(e)))).score){case 4:t=En.EXCELLENT,l="success",n=100;break;case 3:t=En.GOOD,l="success",n=75;break;case 2:t=En.FAIR,l="warning",n=50;break;default:t=En.WEAK,l="error",n=25}return{strength:t,colorTheme:l,progressBarValue:n}})(e);o({textColor:n.tokens.color.text[t].primary,progressBarColor:n.tokens.color.background[t].primary,...l})})()}),[n,e,i]),r},yn=E.default(qe)`
1110
1119
  label::before {
1111
1120
  border-radius: 100%;
1112
1121
  }
@@ -1116,7 +1125,7 @@
1116
1125
  solid
1117
1126
  ${({theme:e,colorTheme:t})=>e.tokens.color.background[t].primary};
1118
1127
  }
1119
- `,Ln=(e,t)=>(G(t.tokens.inputButton.sizing.height[e])-2-G(t.tokens.checkboxRadio.sizing.md))/2,yn=(e,t,l,n)=>n?e.tokens.color.text.quaternary:l?e.tokens.color.text[t].primary:e.tokens.color.text.secondary,kn=E.default.div`
1128
+ `,kn=(e,t)=>(G(t.tokens.inputButton.sizing.height[e])-2-G(t.tokens.checkboxRadio.sizing.md))/2,Hn=(e,t,l,n)=>n?e.tokens.color.text.quaternary:l?e.tokens.color.text[t].primary:e.tokens.color.text.secondary,Mn=E.default.div`
1120
1129
  display: grid;
1121
1130
  grid-template-columns: ${({optionsLength:e})=>`repeat(${e}, minmax(100px, 300px))`};
1122
1131
  grid-column-gap: ${({size:e})=>"md"===e?16:24}px;
@@ -1125,24 +1134,24 @@
1125
1134
  grid-row-gap: 20px;
1126
1135
  max-width: 100%;
1127
1136
  }
1128
- `,Hn=E.default.div`
1137
+ `,Vn=E.default.div`
1129
1138
  font-size: 12px;
1130
- color: ${e=>yn(e.theme,e.colorTheme,e.checked,e.isDisabled)};
1139
+ color: ${e=>Hn(e.theme,e.colorTheme,e.checked,e.isDisabled)};
1131
1140
  margin-top: 4px;
1132
1141
  font-weight: normal;
1133
1142
  opacity: 0.75;
1134
- `,Mn=E.default.div`
1143
+ `,$n=E.default.div`
1135
1144
  display: flex;
1136
1145
  flex-direction: column;
1137
1146
  align-items: center;
1138
- `,Vn=E.default.div`
1147
+ `,Zn=E.default.div`
1139
1148
  display: flex;
1140
1149
  position: relative;
1141
1150
  min-height: ${({size:e,theme:t})=>t.tokens.inputButton.sizing.height[e]};
1142
1151
  flex-direction: column;
1143
1152
  align-items: center;
1144
1153
  justify-content: center;
1145
- ${({withImage:e,checked:t,size:n,theme:i})=>{const r=Ln(n,i),o=G(i.tokens.checkboxRadio.sizing.md),a=(G(i.tokens.inputButton.sizing.height[n])-2-16)/2;return e?l.css`
1154
+ ${({withImage:e,checked:t,size:n,theme:i})=>{const r=kn(n,i),o=G(i.tokens.checkboxRadio.sizing.md),a=(G(i.tokens.inputButton.sizing.height[n])-2-16)/2;return e?l.css`
1146
1155
  padding: ${a+4}px ${r}px;
1147
1156
  `:t?l.css`
1148
1157
  padding-top: ${a}px;
@@ -1155,7 +1164,7 @@
1155
1164
  text-align: center;
1156
1165
  border: 1px solid;
1157
1166
  background: ${({theme:e})=>e.tokens.color.background.primary};
1158
- color: ${e=>yn(e.theme,e.colorTheme,e.checked,e.isDisabled)};
1167
+ color: ${e=>Hn(e.theme,e.colorTheme,e.checked,e.isDisabled)};
1159
1168
  border-color: ${({isDisabled:e,checked:t,colorTheme:l,theme:n})=>e?n.tokens.color.border.secondary:t?n.tokens.color.border[l].primary:n.tokens.color.border.primary};
1160
1169
  font-weight: ${({hasDescription:e,theme:t})=>e?t.tokens.ref.fontWeight.bold:t.tokens.ref.fontWeight.regular};
1161
1170
  border-radius: 4px;
@@ -1166,7 +1175,7 @@
1166
1175
  ${({checked:e,theme:t})=>e?"":`\n\t\t&:hover {\n\t\t\tborder-color: ${t.tokens.color.border.primaryInteraction};\n\t\t} \n\t`}
1167
1176
 
1168
1177
  ${({isDisabled:e})=>e?"\n\t\tpointer-events: none;\n\t":""}
1169
- `,$n=E.default.img`
1178
+ `,Bn=E.default.img`
1170
1179
  max-width: ${({imageSize:e,size:t})=>e??("md"===t?"48px":"64px")};
1171
1180
  max-height: ${({imageSize:e,size:t})=>e??("md"===t?"48px":"64px")};
1172
1181
  margin-bottom: 12px;
@@ -1174,10 +1183,10 @@
1174
1183
  width: 100%;
1175
1184
  height: 100%;
1176
1185
  object-fit: contain;
1177
- `,Zn=E.default(et)`
1186
+ `,zn=E.default(et)`
1178
1187
  position: absolute;
1179
- top: ${({size:e,theme:t})=>Ln(e,t)}px;
1180
- ${({size:e,theme:t})=>Ne(`${Ln(e,t)}px`)};
1188
+ top: ${({size:e,theme:t})=>kn(e,t)}px;
1189
+ ${({size:e,theme:t})=>Ne(`${kn(e,t)}px`)};
1181
1190
  visibility: ${({checked:e})=>e?"visible":"hidden"};
1182
1191
  pointer-events: none;
1183
1192
  `;E.default.div`
@@ -1185,11 +1194,11 @@
1185
1194
  padding: 5px 0;
1186
1195
  font-size: 13px;
1187
1196
  margin-top: 5px;
1188
- `;const Bn=E.default.div`
1197
+ `;const An=E.default.div`
1189
1198
  ${Ne("-5%")}
1190
1199
  transform: translateX(6%);
1191
1200
  position: relative;
1192
- `,zn=E.default(f.Tabs)`
1201
+ `,Sn=E.default(f.Tabs)`
1193
1202
  .react-tabs__tab-panel {
1194
1203
  display: none;
1195
1204
  }
@@ -1203,13 +1212,13 @@
1203
1212
  padding: 0;
1204
1213
  margin: 0 -12px;
1205
1214
  position: relative;
1206
- `;const An=E.default(f.TabList)`
1215
+ `;const _n=E.default(f.TabList)`
1207
1216
  display: flex;
1208
1217
  list-style: none;
1209
1218
  padding: 0;
1210
1219
  margin: 0 -12px;
1211
1220
  position: relative;
1212
- `,Sn=E.default.a`
1221
+ `,In=E.default.a`
1213
1222
  display: block;
1214
1223
  height: ${({theme:e,size:t})=>2*G(e.tokens.ref.fontSize[t??"md"])+12}px;
1215
1224
  line-height: ${({theme:e,size:t})=>2*G(e.tokens.ref.fontSize[t??"md"])+12}px;
@@ -1239,7 +1248,7 @@
1239
1248
  background: ${e.tokens.color.text.brand.primary};
1240
1249
  }
1241
1250
  `}}
1242
- `,_n=({disabledClassName:e,selectedClassName:t,tabIndex:l,id:n,testId:i="Tab",ref:r,...o})=>w.default.createElement(f.Tab,{disabled:o.disabled,disabledClassName:e,selectedClassName:t,tabIndex:l,selected:o.selected,id:n},w.default.createElement(Sn,{ref:r,"data-testid":i,...o}));_n.tabsRole="Tab";const In=E.default.div`
1251
+ `,Tn=({disabledClassName:e,selectedClassName:t,tabIndex:l,id:n,testId:i="Tab",ref:r,...o})=>w.default.createElement(f.Tab,{disabled:o.disabled,disabledClassName:e,selectedClassName:t,tabIndex:l,selected:o.selected,id:n},w.default.createElement(In,{ref:r,"data-testid":i,...o}));Tn.tabsRole="Tab";const Pn=E.default.div`
1243
1252
  height: ${({theme:e})=>e.tokens.tabs.borderWidth.tab.bottom};
1244
1253
  background: ${({theme:e})=>e.tokens.color.text.brand.primary};
1245
1254
  position: absolute;
@@ -1250,7 +1259,7 @@
1250
1259
  transition: transform ${e.tokens.duration.transition.base},
1251
1260
  width ${e.tokens.duration.transition.base};
1252
1261
  `:void 0}
1253
- `,Tn=({tabs:e,tabRefs:l,selectedIndex:n,size:i})=>{const[r,o]=t.useState(0),[a,C]=t.useState(0);return t.useEffect((()=>{let t=0;w.default.Children.forEach(e,(e=>{if(w.default.isValidElement(e)&&"Tab"===e.type.tabsRole){const i=l.current[t];if(i&&(e.props.selected||n===t)){const e=getComputedStyle(i),t=i.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight);C(t),o(i?.offsetLeft??0)}t++}}))}),[n]),w.default.createElement(In,{style:{transform:`translateX(${r}px)`,width:`${a}px`},animate:void 0!==n,size:i})},Pn=({animate:e=!0,testId:l="TabList",size:n="sm",children:i,...r})=>{const o=t.useRef([]),[a,C]=t.useState();let d=0;return w.default.createElement(An,{"data-testid":l,...r},e&&w.default.createElement(Tn,{tabs:i,tabRefs:o,selectedIndex:a,size:n}),w.default.Children.map(i,(t=>{const l=t;if(w.default.isValidElement(t)&&"Tab"===t.type?.tabsRole){const t=d++;return l.props.selected&&a!==t&&C(t),w.default.cloneElement(l,{...l.props,ref:e=>{o.current[t]=e},size:n,animate:e})}return t})))};Pn.tabsRole="TabList";const Rn=E.default.div`
1262
+ `,Rn=({tabs:e,tabRefs:l,selectedIndex:n,size:i})=>{const[r,o]=t.useState(0),[a,C]=t.useState(0);return t.useEffect((()=>{let t=0;w.default.Children.forEach(e,(e=>{if(w.default.isValidElement(e)&&"Tab"===e.type.tabsRole){const i=l.current[t];if(i&&(e.props.selected||n===t)){const e=getComputedStyle(i),t=i.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight);C(t),o(i?.offsetLeft??0)}t++}}))}),[n]),w.default.createElement(Pn,{style:{transform:`translateX(${r}px)`,width:`${a}px`},animate:void 0!==n,size:i})},Un=({animate:e=!0,testId:l="TabList",size:n="sm",children:i,...r})=>{const o=t.useRef([]),[a,C]=t.useState();let d=0;return w.default.createElement(_n,{"data-testid":l,...r},e&&w.default.createElement(Rn,{tabs:i,tabRefs:o,selectedIndex:a,size:n}),w.default.Children.map(i,(t=>{const l=t;if(w.default.isValidElement(t)&&"Tab"===t.type?.tabsRole){const t=d++;return l.props.selected&&a!==t&&C(t),w.default.cloneElement(l,{...l.props,ref:e=>{o.current[t]=e},size:n,animate:e})}return t})))};Un.tabsRole="TabList";const On=E.default.div`
1254
1263
  border-radius: ${({theme:e})=>e.tokens.tag.borderRadius};
1255
1264
 
1256
1265
  ${({secondary:e,outline:t,colorTheme:n,theme:{tokens:i}})=>t?l.css`
@@ -1276,7 +1285,7 @@
1276
1285
  cursor: default;
1277
1286
 
1278
1287
  ${U}
1279
- `,Un=()=>{const e=F.getAllTimezones(),t=Object.values(e);const l=(e=>e.map((e=>{const t=e.name.split("/"),l=t[t.length-1].replace(/_/g," ");return{value:e.name,label:`(GMT${e.utcOffsetStr}) ${l}`}})))(t.sort(((e,t)=>e.utcOffset===t.utcOffset?e.name<t.name?-1:e.name>t.name?1:0:e.utcOffset-t.utcOffset)));return l},On=e=>(G(e.tokens.toggle.sizing.container.md.height)-G(e.tokens.toggle.sizing.slider.md))/2,Wn=E.default.div`
1288
+ `,Wn=()=>{const e=F.getAllTimezones(),t=Object.values(e);const l=(e=>e.map((e=>{const t=e.name.split("/"),l=t[t.length-1].replace(/_/g," ");return{value:e.name,label:`(GMT${e.utcOffsetStr}) ${l}`}})))(t.sort(((e,t)=>e.utcOffset===t.utcOffset?e.name<t.name?-1:e.name>t.name?1:0:e.utcOffset-t.utcOffset)));return l},Nn=e=>(G(e.tokens.toggle.sizing.container.md.height)-G(e.tokens.toggle.sizing.slider.md))/2,jn=E.default.div`
1280
1289
  font-size: 0;
1281
1290
 
1282
1291
  input {
@@ -1335,8 +1344,8 @@
1335
1344
  label::after {
1336
1345
  width: ${({theme:e})=>e.tokens.toggle.sizing.slider.md};
1337
1346
  height: ${({theme:e})=>e.tokens.toggle.sizing.slider.md};
1338
- top: ${({theme:e})=>On(e)}px;
1339
- left: ${({theme:e})=>On(e)}px;
1347
+ top: ${({theme:e})=>Nn(e)}px;
1348
+ left: ${({theme:e})=>Nn(e)}px;
1340
1349
  border-radius: ${({theme:e})=>e.tokens.ref.borderRadius.circle};
1341
1350
  background-color: ${({theme:e})=>e.tokens.toggle.color.background.slider.off};
1342
1351
  transition: ${({theme:e})=>`left ${e.tokens.duration.transition.base}, background-color ${e.tokens.duration.transition.base}`};
@@ -1357,7 +1366,7 @@
1357
1366
  // Slider
1358
1367
  + label::after {
1359
1368
  background-color: ${({theme:e})=>e.tokens.ref.color.gray[0]};
1360
- left: ${({theme:e})=>G(e.tokens.toggle.sizing.container.md.width)-G(e.tokens.toggle.sizing.slider.md)-On(e)}px;
1369
+ left: ${({theme:e})=>G(e.tokens.toggle.sizing.container.md.width)-G(e.tokens.toggle.sizing.slider.md)-Nn(e)}px;
1361
1370
  }
1362
1371
  }
1363
1372
 
@@ -1382,7 +1391,7 @@
1382
1391
  background-color: ${({theme:e,colorTheme:t})=>e.tokens.color.background[t].primaryDisabled};
1383
1392
  }
1384
1393
  }
1385
- `;ll('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',{});const Nn=E.default(z.default)`
1394
+ `;ll('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',{});const qn=E.default(z.default)`
1386
1395
  font-size: 12px;
1387
1396
  background: ${({theme:e})=>e.tokens.tooltip.color.background};
1388
1397
  box-shadow: ${({theme:e})=>X(e.tokens.tooltip.boxShadow)};
@@ -1394,7 +1403,7 @@
1394
1403
  .tippy-arrow {
1395
1404
  color: ${({theme:e})=>e.tokens.tooltip.color.background};
1396
1405
  }
1397
- `;const jn="1px 2px 6px rgba(0,0,0,.13)",qn={_0:"#FFFFFF",_15:"#FAFAFA",_20:"#F5F5F5",_25:"#EDEDED",_30:"#E4E4E3",_35:"#D9D9D8",_40:"#CCCCCC",_45:"#BABABA",_50:"#737373",_60:"#595959",_80:"#4D4D4D",_85:"#333333",_90:"#141313",_100:"#000000"},Gn={$pc:{colors:{primary:{dark:"#522974",darkHoverBackground:"#3F2059",darkDisabledBackground:"#BBA5CD",light:"#F1EDF6",lightHoverBackground:"#DFD5EB",lightDisabledBackground:"#F7F4FA",lightDisabledColor:"#D0C0DD"},neutral:{dark:qn._80,darkHoverBackground:qn._85,darkDisabledBackground:qn._35,light:qn._20,lightHoverBackground:qn._25,lightDisabledBackground:qn._15,lightDisabledColor:qn._45},success:{dark:"#0C8B51",darkHoverBackground:"#097041",darkDisabledBackground:"#A5CDBA",light:"#E8F0EC",lightHoverBackground:"#CFE8DA",lightDisabledBackground:"#F4FAF7",lightDisabledColor:"#C0DDCE"},error:{dark:"#A50000",darkHoverBackground:"#9C0909",darkDisabledBackground:"#CDA5A5",light:"#FCF2F2",lightHoverBackground:"#EDD3D3",lightDisabledBackground:"#FAF4F4",lightDisabledColor:"#DDC0C0"},warning:{dark:"#CB7307",darkHoverBackground:"#CB7307",darkDisabledBackground:"#E8CBA7",light:"#FBF6E9",lightHoverBackground:"#F4E9CB",lightDisabledBackground:"#FDF9EF",lightDisabledColor:"#EDC089"},info:{dark:"#3F75AC",darkHoverBackground:"#3F75AC",darkDisabledBackground:"#9EBFE1",light:"#F2F7FC",lightHoverBackground:"#E3ECF5",lightDisabledBackground:"#F2F7FC",lightDisabledColor:"#A5C4E3"},gray:qn,focus:"#8CB7FA",borderInputHover:qn._50,borderInput:qn._40,borderHr:qn._35,borderDisabled:qn._30,text:{darkest:qn._90,dark:qn._80,light:qn._50,lightest:qn._45,white:qn._0}},fontFamily:"'Mulish', sans-serif",fontWeight:{regular:400,bold:500},fontSize:14,borderRadius:{tiny:"4px",small:"4px",medium:"5px",large:"6px"},spacing:{xxxs:4,xxs:8,xs:12,s:16,m:20,l:24,xl:32,xxl:40,xxxl:52},transitionDuration:".2s",formControl:{height:{tiny:32,small:36,medium:44,large:52},paddingX:11},button:{minimalHoverBackground:"rgba(0,0,0,.05)",boxShadow:"4px 4px 6px rgba(0, 0, 0, 0.11)",height:{tiny:32,small:36,medium:44,large:52},fontSize:{tiny:14,small:14,medium:14,large:15},iconSize:{tiny:14,small:16,medium:20,large:22},padding:{tiny:"6px 12px",small:"8px 16px",medium:"12px 22px",large:"16px 26px"},borderRadius:{tiny:4,small:4,medium:5,large:6}},card:{default:{borderColor:"rgba(0,0,0,.1)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:"none"},elevated:{borderColor:"rgba(0,0,0,0)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:jn}},checkboxRadio:{size:{medium:20,large:24}},fileUpload:{preview:{minSize:140,maxSize:160}},heading:{size:{h1:32,h2:28,h3:24,h4:20}},modal:{zIndex:9e3,overlayBackground:"rgba(0, 0, 0, 0.6)",windowShadow:"0 10px 30px rgba(0, 0, 0, 0.1)",size:{tiny:420,small:640,medium:940,large:1200}},multiSelect:{multiValueLabel:{paddingX:{tiny:5,small:6,medium:8,large:12},paddingY:{tiny:3,small:3,medium:5,large:8},fontSize:{tiny:12,small:12,medium:13,large:14}}},notice:{disabledButtonColor:qn._45,disabledButtonBackground:"#FAFAFA"},selectPicker:{boxShadow:jn,iconMaxSize:{medium:48,large:64}},spinner:{size:{tiny:14,small:16,medium:18,large:20}},tabs:{size:{small:12,medium:14,large:18}},tag:{padding:{small:"4px 12px",medium:"6px 14px"}},text:{size:{small:12,medium:14,large:18}},tooltip:{background:qn._90,boxShadow:jn}},tokens:{ref:{color:{gray:{0:"#FFFFFF",5:"#F8F8F8",10:"#F1F1F1",20:"#E4E4E4",30:"#D2D2D2",40:"#BABABA",50:"#9D9D9D",55:"#8A8A8A",60:"#6E6E6E",65:"#616161",70:"#4D4D4D",80:"#333333",85:"#212121",90:"#161616",100:"#000000"},purple:{5:"#F5EFF9",10:"#E7D8F1",15:"#D2B6E5",20:"#C1A4DF",30:"#A87CD5",50:"#8449BF",55:"#6F3CA4",60:"#633096",70:"#542D7C",90:"#351852"},teal:{5:"#E8F7F5",10:"#D7F4F0",20:"#97CFC7",50:"#00A78F",60:"#098775",70:"#2A6A61",80:"#1A584F",90:"#09352F"},blue:{5:"#EEF4FB",10:"#DCEAFB",20:"#ABC9ED",40:"#5692D7",50:"#4184D2",60:"#2E70BD",70:"#3069AC",80:"#245998",90:"#0F2651"},yellow:{5:"#FCF6EA",10:"#F5EAD3",20:"#DABD81",50:"#D99814",60:"#BD7F00",70:"#886A2E",80:"#725723",90:"#3D3017"},red:{5:"#FBF1EF",10:"#F9E4E0",20:"#D6A499",40:"#EE6C4F",50:"#C84E33",60:"#9C3923",70:"#893725",80:"#742919",90:"#4E1C11"}},borderRadius:{pill:"999px",circle:"50%",xs:"4px",sm:"6px",md:"8px",lg:"16px"},boxShadow:{xs:{x:"0",y:"2px",blur:"2px",spread:"0",color:"rgba(0,0,0,.06)",type:"dropShadow"},sm:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],md:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],lg:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"}},fontFamily:{base:"Mulish"},fontWeight:{regular:"400",semibold:"600",bold:"600"},spacing:{"3xs":"4px","2xs":"8px",xs:"12px",sm:"16px",md:"20px",lg:"24px",xl:"32px","2xl":"40px","3xl":"52px"},lineHeight:{xs:"100%",sm:"120%",md:"140%",lg:"160%"},fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"28px","4xl":"32px"}},text:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"12px"}},lineHeight:"100%"},paragraphSm:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"12px"}}},paragraphMd:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"12px"}}},paragraphLg:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"12px"}}},heading:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"20px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"20px"}},lineHeight:"120%",fontSize:{xs:"20px",sm:"24px",md:"28px",lg:"32px"}},button:{fontWeight:"600",boxShadow:{primary:{x:"0",y:"0",blur:"0",spread:"0",color:"rgba(0,0,0,0)",type:"dropShadow"}},spacing:{x:{xs:"12px",sm:"16px",md:"22px",lg:"26px"}},sizing:{icon:{xs:"14px",sm:"16px",md:"20px",lg:"22px"}},fontSize:{xs:"14px",sm:"14px",md:"14px",lg:"15px"},borderWidth:"1px"},inputButton:{borderRadius:{xs:"4px",sm:"6px",md:"6px",lg:"6px"},sizing:{height:{xs:"32px",sm:"36px",md:"44px",lg:"52px"}}},checkboxRadio:{sizing:{sm:"16px",md:"20px",lg:"24px"}},notice:{borderRadius:"6px"},tag:{borderRadius:"999px",sizing:{height:{sm:"22px",md:"26px"}},spacing:{x:{sm:"12px",md:"14px"}},fontSize:{sm:"12px",md:"12px"},fontWeight:"400",borderWidth:"1px"},toggle:{sizing:{container:{md:{width:"36px",height:"20px"}},slider:{md:"14px"}},color:{background:{container:{off:"#FFFFFF",offDisabled:"#F8F8F8",offInteraction:"#FFFFFF"},slider:{off:"#D2D2D2",offDisabled:"#E4E4E4"}},border:{container:{off:"#D2D2D2",offDisabled:"#E4E4E4",offInteraction:"#BABABA"}}}},modal:{color:{background:{overlay:"rgba(0,0,0,.6)"}},sizing:{maxWidth:{xs:"420px",sm:"640px",md:"940px",lg:"1200px"}},boxShadow:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"},borderRadius:"16px"},color:{background:{primary:"#FFFFFF",secondary:"#F8F8F8",tertiary:"#F1F1F1",brand:{primary:"#8449BF",primaryInteraction:"#633096",primaryDisabled:"#D2B6E5",secondary:"#F5EFF9",secondaryInteraction:"#E7D8F1",secondaryDisabled:"#F5EFF9"},success:{primary:"#00A78F",primaryInteraction:"#098775",primaryDisabled:"#97CFC7",secondary:"#E8F7F5",secondaryInteraction:"#D7F4F0",secondaryDisabled:"#E8F7F5"},error:{primary:"#C84E33",primaryInteraction:"#9C3923",primaryDisabled:"#D6A499",secondary:"#FBF1EF",secondaryInteraction:"#F9E4E0",secondaryDisabled:"#FBF1EF"},warning:{primary:"#D99814",primaryInteraction:"#BD7F00",primaryDisabled:"#DABD81",secondary:"#FCF6EA",secondaryInteraction:"#F5EAD3",secondaryDisabled:"#FCF6EA"},info:{primary:"#4184D2",primaryInteraction:"#2E70BD",primaryDisabled:"#ABC9ED",secondary:"#EEF4FB",secondaryInteraction:"#DCEAFB",secondaryDisabled:"#EEF4FB"},neutral:{primary:"#616161",primaryInteraction:"#4D4D4D",primaryDisabled:"#BABABA",secondary:"#F1F1F1",secondaryInteraction:"#E4E4E4",secondaryDisabled:"#F1F1F1"}},text:{primary:"#161616",secondary:"#4D4D4D",tertiary:"#6E6E6E",quaternary:"#9D9D9D",inverse:"#FFFFFF",brand:{primary:"#8449BF",disabled:"#D2B6E5",onPrimary:"#FFFFFF",onSecondary:"#8449BF"},success:{primary:"#00A78F",disabled:"#97CFC7",onPrimary:"#FFFFFF",onSecondary:"#00A78F"},error:{primary:"#C84E33",disabled:"#D6A499",onPrimary:"#FFFFFF",onSecondary:"#C84E33"},warning:{primary:"#BD7F00",disabled:"#DABD81",onPrimary:"#FFFFFF",onSecondary:"#BD7F00"},info:{primary:"#4184D2",disabled:"#ABC9ED",onPrimary:"#FFFFFF",onSecondary:"#4184D2"},neutral:{primary:"#161616",disabled:"#BABABA",onPrimary:"#FFFFFF",onSecondary:"#161616"}},border:{primary:"#D2D2D2",primaryInteraction:"#9D9D9D",secondary:"#E4E4E4",secondaryInteraction:"#BABABA",focus:"#ABC9ED",brand:{primary:"#8449BF",secondary:"#C1A4DF"},error:{primary:"#C84E33"},success:{primary:"#00A78F"},warning:{primary:"#D99814"},info:{primary:"#4184D2"},neutral:{primary:"#9D9D9D"}}},card:{color:{background:{primary:"#FFFFFF",primaryDisabled:"#FFFFFF",secondary:"#F8F8F8",secondaryDisabled:"#F8F8F8"},border:{base:"#E4E4E4",elevated:"#F1F1F1",interaction:"#BABABA",disabled:"#F1F1F1"}},boxShadow:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],borderRadius:"8px"},leverageSlider:{color:{background:{leverage:{1:"#00A78F",10:"#0FA888",25:"#21A67E",50:"#33A574",100:"#45A469",200:"#5EA25B",300:"#79A04C",400:"#809F47",500:"#909E3F",600:"#AC9C2E",777:"#C99A1E",800:"#C99A1E",1e3:"#D99814",2e3:"#D17324",unlimited:"#C84E33"}}}},duration:{transition:{base:"200ms"}},textParagraph:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px"}},tooltip:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],color:{background:"#161616"}},dropdown:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],borderRadius:"8px"},spinner:{sizing:{xs:"14px",sm:"16px",md:"18px",lg:"20px"}},fontSize:{base:"14px"},input:{spacing:{x:"11px"},borderWidth:"1px"},borderWidth:{focus:"2px"},multiSelect:{spacing:{multiValueLabel:{x:{xs:"5px",sm:"6px",md:"8px",lg:"12px"},y:{xs:"3px",sm:"3px",md:"5px",lg:"8px"}}},fontSize:{multiValueLabel:{xs:"12px",sm:"12px",md:"13px",lg:"14px"}}},tabs:{borderWidth:{tab:{bottom:"2px"}}},menu:{borderRadius:{item:"6px"}}}},Yn=l.createGlobalStyle`
1406
+ `;const Gn="1px 2px 6px rgba(0,0,0,.13)",Yn={_0:"#FFFFFF",_15:"#FAFAFA",_20:"#F5F5F5",_25:"#EDEDED",_30:"#E4E4E3",_35:"#D9D9D8",_40:"#CCCCCC",_45:"#BABABA",_50:"#737373",_60:"#595959",_80:"#4D4D4D",_85:"#333333",_90:"#141313",_100:"#000000"},Xn={$pc:{colors:{primary:{dark:"#522974",darkHoverBackground:"#3F2059",darkDisabledBackground:"#BBA5CD",light:"#F1EDF6",lightHoverBackground:"#DFD5EB",lightDisabledBackground:"#F7F4FA",lightDisabledColor:"#D0C0DD"},neutral:{dark:Yn._80,darkHoverBackground:Yn._85,darkDisabledBackground:Yn._35,light:Yn._20,lightHoverBackground:Yn._25,lightDisabledBackground:Yn._15,lightDisabledColor:Yn._45},success:{dark:"#0C8B51",darkHoverBackground:"#097041",darkDisabledBackground:"#A5CDBA",light:"#E8F0EC",lightHoverBackground:"#CFE8DA",lightDisabledBackground:"#F4FAF7",lightDisabledColor:"#C0DDCE"},error:{dark:"#A50000",darkHoverBackground:"#9C0909",darkDisabledBackground:"#CDA5A5",light:"#FCF2F2",lightHoverBackground:"#EDD3D3",lightDisabledBackground:"#FAF4F4",lightDisabledColor:"#DDC0C0"},warning:{dark:"#CB7307",darkHoverBackground:"#CB7307",darkDisabledBackground:"#E8CBA7",light:"#FBF6E9",lightHoverBackground:"#F4E9CB",lightDisabledBackground:"#FDF9EF",lightDisabledColor:"#EDC089"},info:{dark:"#3F75AC",darkHoverBackground:"#3F75AC",darkDisabledBackground:"#9EBFE1",light:"#F2F7FC",lightHoverBackground:"#E3ECF5",lightDisabledBackground:"#F2F7FC",lightDisabledColor:"#A5C4E3"},gray:Yn,focus:"#8CB7FA",borderInputHover:Yn._50,borderInput:Yn._40,borderHr:Yn._35,borderDisabled:Yn._30,text:{darkest:Yn._90,dark:Yn._80,light:Yn._50,lightest:Yn._45,white:Yn._0}},fontFamily:"'Mulish', sans-serif",fontWeight:{regular:400,bold:500},fontSize:14,borderRadius:{tiny:"4px",small:"4px",medium:"5px",large:"6px"},spacing:{xxxs:4,xxs:8,xs:12,s:16,m:20,l:24,xl:32,xxl:40,xxxl:52},transitionDuration:".2s",formControl:{height:{tiny:32,small:36,medium:44,large:52},paddingX:11},button:{minimalHoverBackground:"rgba(0,0,0,.05)",boxShadow:"4px 4px 6px rgba(0, 0, 0, 0.11)",height:{tiny:32,small:36,medium:44,large:52},fontSize:{tiny:14,small:14,medium:14,large:15},iconSize:{tiny:14,small:16,medium:20,large:22},padding:{tiny:"6px 12px",small:"8px 16px",medium:"12px 22px",large:"16px 26px"},borderRadius:{tiny:4,small:4,medium:5,large:6}},card:{default:{borderColor:"rgba(0,0,0,.1)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:"none"},elevated:{borderColor:"rgba(0,0,0,0)",borderColorHover:"rgba(0,0,0,.2)",boxShadow:Gn}},checkboxRadio:{size:{medium:20,large:24}},fileUpload:{preview:{minSize:140,maxSize:160}},heading:{size:{h1:32,h2:28,h3:24,h4:20}},modal:{zIndex:9e3,overlayBackground:"rgba(0, 0, 0, 0.6)",windowShadow:"0 10px 30px rgba(0, 0, 0, 0.1)",size:{tiny:420,small:640,medium:940,large:1200}},multiSelect:{multiValueLabel:{paddingX:{tiny:5,small:6,medium:8,large:12},paddingY:{tiny:3,small:3,medium:5,large:8},fontSize:{tiny:12,small:12,medium:13,large:14}}},notice:{disabledButtonColor:Yn._45,disabledButtonBackground:"#FAFAFA"},selectPicker:{boxShadow:Gn,iconMaxSize:{medium:48,large:64}},spinner:{size:{tiny:14,small:16,medium:18,large:20}},tabs:{size:{small:12,medium:14,large:18}},tag:{padding:{small:"4px 12px",medium:"6px 14px"}},text:{size:{small:12,medium:14,large:18}},tooltip:{background:Yn._90,boxShadow:Gn}},tokens:{ref:{color:{gray:{0:"#FFFFFF",5:"#F8F8F8",10:"#F1F1F1",20:"#E4E4E4",30:"#D2D2D2",40:"#BABABA",50:"#9D9D9D",55:"#8A8A8A",60:"#6E6E6E",65:"#616161",70:"#4D4D4D",80:"#333333",85:"#212121",90:"#161616",100:"#000000"},purple:{5:"#F5EFF9",10:"#E7D8F1",15:"#D2B6E5",20:"#C1A4DF",30:"#A87CD5",50:"#8449BF",55:"#6F3CA4",60:"#633096",70:"#542D7C",90:"#351852"},teal:{5:"#E8F7F5",10:"#D7F4F0",20:"#97CFC7",50:"#00A78F",60:"#098775",70:"#2A6A61",80:"#1A584F",90:"#09352F"},blue:{5:"#EEF4FB",10:"#DCEAFB",20:"#ABC9ED",40:"#5692D7",50:"#4184D2",60:"#2E70BD",70:"#3069AC",80:"#245998",90:"#0F2651"},yellow:{5:"#FCF6EA",10:"#F5EAD3",20:"#DABD81",50:"#D99814",60:"#BD7F00",70:"#886A2E",80:"#725723",90:"#3D3017"},red:{5:"#FBF1EF",10:"#F9E4E0",20:"#D6A499",40:"#EE6C4F",50:"#C84E33",60:"#9C3923",70:"#893725",80:"#742919",90:"#4E1C11"}},borderRadius:{pill:"999px",circle:"50%",xs:"4px",sm:"6px",md:"8px",lg:"16px"},boxShadow:{xs:{x:"0",y:"2px",blur:"2px",spread:"0",color:"rgba(0,0,0,.06)",type:"dropShadow"},sm:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],md:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],lg:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"}},fontFamily:{base:"Mulish"},fontWeight:{regular:"400",semibold:"600",bold:"600"},spacing:{"3xs":"4px","2xs":"8px",xs:"12px",sm:"16px",md:"20px",lg:"24px",xl:"32px","2xl":"40px","3xl":"52px"},lineHeight:{xs:"100%",sm:"120%",md:"140%",lg:"160%"},fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"28px","4xl":"32px"}},text:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"100%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"100%",fontSize:"12px"}},lineHeight:"100%"},paragraphSm:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"12px"}}},paragraphMd:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"140%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"140%",fontSize:"12px"}}},paragraphLg:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"160%",fontSize:"12px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"18px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"16px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"14px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"160%",fontSize:"12px"}}},heading:{regular:{lg:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"400",lineHeight:"120%",fontSize:"20px"}},bold:{lg:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"32px"},md:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"28px"},sm:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"24px"},xs:{fontFamily:"Mulish",fontWeight:"600",lineHeight:"120%",fontSize:"20px"}},lineHeight:"120%",fontSize:{xs:"20px",sm:"24px",md:"28px",lg:"32px"}},button:{fontWeight:"600",boxShadow:{primary:{x:"0",y:"0",blur:"0",spread:"0",color:"rgba(0,0,0,0)",type:"dropShadow"}},spacing:{x:{xs:"12px",sm:"16px",md:"22px",lg:"26px"}},sizing:{icon:{xs:"14px",sm:"16px",md:"20px",lg:"22px"}},fontSize:{xs:"14px",sm:"14px",md:"14px",lg:"15px"},borderWidth:"1px"},inputButton:{borderRadius:{xs:"4px",sm:"6px",md:"6px",lg:"6px"},sizing:{height:{xs:"32px",sm:"36px",md:"44px",lg:"52px"}}},checkboxRadio:{sizing:{sm:"16px",md:"20px",lg:"24px"}},notice:{borderRadius:"6px"},tag:{borderRadius:"999px",sizing:{height:{sm:"22px",md:"26px"}},spacing:{x:{sm:"12px",md:"14px"}},fontSize:{sm:"12px",md:"12px"},fontWeight:"400",borderWidth:"1px"},toggle:{sizing:{container:{md:{width:"36px",height:"20px"}},slider:{md:"14px"}},color:{background:{container:{off:"#FFFFFF",offDisabled:"#F8F8F8",offInteraction:"#FFFFFF"},slider:{off:"#D2D2D2",offDisabled:"#E4E4E4"}},border:{container:{off:"#D2D2D2",offDisabled:"#E4E4E4",offInteraction:"#BABABA"}}}},modal:{color:{background:{overlay:"rgba(0,0,0,.6)"}},sizing:{maxWidth:{xs:"420px",sm:"640px",md:"940px",lg:"1200px"}},boxShadow:{x:"0",y:"20px",blur:"50px",spread:"0",color:"rgba(0,0,0,.20)",type:"dropShadow"},borderRadius:"16px"},color:{background:{primary:"#FFFFFF",secondary:"#F8F8F8",tertiary:"#F1F1F1",brand:{primary:"#8449BF",primaryInteraction:"#633096",primaryDisabled:"#D2B6E5",secondary:"#F5EFF9",secondaryInteraction:"#E7D8F1",secondaryDisabled:"#F5EFF9"},success:{primary:"#00A78F",primaryInteraction:"#098775",primaryDisabled:"#97CFC7",secondary:"#E8F7F5",secondaryInteraction:"#D7F4F0",secondaryDisabled:"#E8F7F5"},error:{primary:"#C84E33",primaryInteraction:"#9C3923",primaryDisabled:"#D6A499",secondary:"#FBF1EF",secondaryInteraction:"#F9E4E0",secondaryDisabled:"#FBF1EF"},warning:{primary:"#D99814",primaryInteraction:"#BD7F00",primaryDisabled:"#DABD81",secondary:"#FCF6EA",secondaryInteraction:"#F5EAD3",secondaryDisabled:"#FCF6EA"},info:{primary:"#4184D2",primaryInteraction:"#2E70BD",primaryDisabled:"#ABC9ED",secondary:"#EEF4FB",secondaryInteraction:"#DCEAFB",secondaryDisabled:"#EEF4FB"},neutral:{primary:"#616161",primaryInteraction:"#4D4D4D",primaryDisabled:"#BABABA",secondary:"#F1F1F1",secondaryInteraction:"#E4E4E4",secondaryDisabled:"#F1F1F1"}},text:{primary:"#161616",secondary:"#4D4D4D",tertiary:"#6E6E6E",quaternary:"#9D9D9D",inverse:"#FFFFFF",brand:{primary:"#8449BF",disabled:"#D2B6E5",onPrimary:"#FFFFFF",onSecondary:"#8449BF"},success:{primary:"#00A78F",disabled:"#97CFC7",onPrimary:"#FFFFFF",onSecondary:"#00A78F"},error:{primary:"#C84E33",disabled:"#D6A499",onPrimary:"#FFFFFF",onSecondary:"#C84E33"},warning:{primary:"#BD7F00",disabled:"#DABD81",onPrimary:"#FFFFFF",onSecondary:"#BD7F00"},info:{primary:"#4184D2",disabled:"#ABC9ED",onPrimary:"#FFFFFF",onSecondary:"#4184D2"},neutral:{primary:"#161616",disabled:"#BABABA",onPrimary:"#FFFFFF",onSecondary:"#161616"}},border:{primary:"#D2D2D2",primaryInteraction:"#9D9D9D",secondary:"#E4E4E4",secondaryInteraction:"#BABABA",focus:"#ABC9ED",brand:{primary:"#8449BF",secondary:"#C1A4DF"},error:{primary:"#C84E33"},success:{primary:"#00A78F"},warning:{primary:"#D99814"},info:{primary:"#4184D2"},neutral:{primary:"#9D9D9D"}}},card:{color:{background:{primary:"#FFFFFF",primaryDisabled:"#FFFFFF",secondary:"#F8F8F8",secondaryDisabled:"#F8F8F8"},border:{base:"#E4E4E4",elevated:"#F1F1F1",interaction:"#BABABA",disabled:"#F1F1F1"}},boxShadow:[{x:"0",y:"4px",blur:"10px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"},{x:"0",y:"2px",blur:"4px",spread:"0",color:"rgba(0,0,0,.04)",type:"dropShadow"}],borderRadius:"8px"},leverageSlider:{color:{background:{leverage:{1:"#00A78F",10:"#0FA888",25:"#21A67E",50:"#33A574",100:"#45A469",200:"#5EA25B",300:"#79A04C",400:"#809F47",500:"#909E3F",600:"#AC9C2E",777:"#C99A1E",800:"#C99A1E",1e3:"#D99814",2e3:"#D17324",unlimited:"#C84E33"}}}},duration:{transition:{base:"200ms"}},textParagraph:{fontSize:{xs:"12px",sm:"14px",md:"16px",lg:"18px"}},tooltip:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],color:{background:"#161616"}},dropdown:{boxShadow:[{x:"0",y:"8px",blur:"30px",spread:"0",color:"rgba(0,0,0,.15)",type:"dropShadow"},{x:"0",y:"4px",blur:"12px",spread:"0",color:"rgba(0,0,0,.08)",type:"dropShadow"}],borderRadius:"8px"},spinner:{sizing:{xs:"14px",sm:"16px",md:"18px",lg:"20px"}},fontSize:{base:"14px"},input:{spacing:{x:"11px"},borderWidth:"1px"},borderWidth:{focus:"2px"},multiSelect:{spacing:{multiValueLabel:{x:{xs:"5px",sm:"6px",md:"8px",lg:"12px"},y:{xs:"3px",sm:"3px",md:"5px",lg:"8px"}}},fontSize:{multiValueLabel:{xs:"12px",sm:"12px",md:"13px",lg:"14px"}}},tabs:{borderWidth:{tab:{bottom:"2px"}}},menu:{borderRadius:{item:"6px"}}}},Qn=l.createGlobalStyle`
1398
1407
  *,
1399
1408
  *:before,
1400
1409
  *:after {
@@ -1412,5 +1421,5 @@
1412
1421
  -webkit-font-smoothing: antialiased;
1413
1422
  -moz-osx-font-smoothing: grayscale;
1414
1423
  }
1415
- `;Object.defineProperty(e,"TabPanel",{enumerable:!0,get:function(){return f.TabPanel}}),e.Box=ie,e.Button=Ie,e.ButtonGroup=({testId:e="ButtonGroup",children:t,dividers:l,...n})=>{const i=l&&Array.isArray(t)?((e,t)=>w.default.Children.map(e,(e=>e.props.minimal?[e,t]:[e])).flat().slice(0,-1))(t,w.default.createElement(Pe,null,w.default.createElement(Re,null))):t;return w.default.createElement(Te,{...n,"data-testid":e},i)},e.Card=Oe,e.Checkbox=tt,e.ClosableButton=({testId:e="ClosableButton",className:t,onClose:l,ref:n,...i})=>w.default.createElement(nt,{className:t,"data-testid":e},w.default.createElement(it,{...i,ref:n,type:"button"}),w.default.createElement(rt,{type:"button",onClick:l},w.default.createElement("img",{src:lt,alt:""}))),e.ClosableItem=({testId:e="ClosableItem",className:t,onClose:l,...n})=>w.default.createElement(ot,{className:t,"data-testid":e},w.default.createElement(at,{...n}),w.default.createElement(rt,{type:"button",onClick:l},w.default.createElement("img",{src:lt,alt:""}))),e.Collapsible=st,e.CollapsibleCard=({testId:e="CollapsibleCard",initialOpen:t=!0,arrowReverse:l=!1,showCard:n=!0,headingMarginBottom:i="xs",iconRotationDeg:r=90,arrow:o,heading:a,rightContent:C,children:d,...s})=>{const[c,p]=w.default.useState(!t);return w.default.createElement(gt,{as:n?Oe:ie,p:s.p??(n?"xs":0),pb:s.pb??s.py??s.p??0,"data-testid":e,...s},w.default.createElement(ct,{alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},w.default.createElement(mt,{mb:i,onClick:()=>p(!c),arrowReverse:l},w.default.createElement(Dt,{collapsed:c,iconRotationDeg:r},o??w.default.createElement(ft,{secondary:!0,size:"xs",colorTheme:"neutral",icon:"chevron-right"})),"string"==typeof a?w.default.createElement(ht,{element:"h4",bold:!1,mx:l?0:"xs"},a):a),!!C&&w.default.createElement(ie,{mb:"xs"},C)),w.default.createElement(st,{collapsed:c},w.default.createElement(ie,{pb:n?"xs":0},d)))},e.ColorTheme=O,e.DateInput=({size:e="md",months:l=Jt,locale:n="eu",testId:i="DateInput",onChange:r,warning:o,error:a,inputLabels:C,dateFormatError:d="Please enter a valid date.",value:s,className:c,dayProps:p,monthProps:u,yearProps:h,...g})=>{const m=l??[],[D,f]=t.useState(s?.day??null),[F,v]=t.useState(s?.month?{value:s.month,label:Kt(m,s.month)}:null),[x,b]=t.useState(s?.year??null),[E,L]=t.useState(void 0);t.useEffect((()=>{D&&F&&x?((e,t,l)=>{if(!e||!t||!l)return!1;const n=("string"==typeof t?parseInt(t,10):t)-1;return n>=0&&n<12&&e>0&&e<=((e,t)=>{switch(e){case 1:return t%4==0&&t%100||t%400==0?29:28;case 8:case 3:case 5:case 10:return 30;default:return 31}})(n,l)})(D,F.value,x)?(r({day:D,month:"string"==typeof F.value?parseInt(F.value,10):F.value,year:x}),L(void 0)):(r(null),L(d)):(r(null),L(void 0))}),[D,F,x,d]);const y=C??{day:"Day",month:"Month",year:"Year"},k=()=>{D&&F&&x&&g.setTouched&&g.setTouched(!0)},H=w.default.createElement(_t,{name:"day",min:1,max:31,pattern:"[0-9]*",autoComplete:"bday-day",label:y.day,value:D,onChange:e=>f(e),onBlur:k,error:!!a,size:e,success:g.success,disabled:g.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...p}),M=w.default.createElement(Yt,{name:"month",label:y.month,value:F,onChange:e=>v(e),onBlur:k,options:m,error:!!a,size:e,success:g.success,disabled:g.disabled,...u}),V=w.default.createElement(_t,{name:"year",min:1,autoComplete:"bday-year",pattern:"[0-9]*",label:y.year,value:x,onChange:e=>b(e),onBlur:k,error:!!a,size:e,success:g.success,disabled:g.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...h});return w.default.createElement(Xt,{className:c,"data-testid":i},"ja"===n?w.default.createElement(Qt,null,V,M,H):"us"===n?w.default.createElement(Qt,null,M,H,V):w.default.createElement(Qt,null,H,M,V),E&&!a&&w.default.createElement(Je,{error:E}),w.default.createElement(Je,{warning:o,error:a}))},e.DatePicker=({testId:e="DatePicker",value:t,onChange:l,dayPickerProps:n,...i})=>w.default.createElement(nl,{selected:t??void 0,initialDate:t,onDayClick:(e,{selected:t,disabled:n})=>{n||l(t?null:e)},testId:e,...i,...n}),e.DateRangePicker=({testId:e="DateRangePicker",value:t,onChange:l,dayPickerProps:n,...i})=>{const r={from:t.from??void 0,to:t.to??void 0};return w.default.createElement(il,{className:"DateRangePicker",selected:r,initialDate:t.from,onDayClick:(e,{disabled:t})=>{if(t)return;const n=C.addToRange(e,r);l({from:n?.from??null,to:n?.to??null})},testId:e,...i,...n})},e.Dropdown=({testId:e="Dropdown",content:l,onCreate:n,onMount:i,onHide:r,...o})=>{const[a,C]=t.useState(!1);return w.default.createElement(w.default.Fragment,null,w.default.createElement(H.default,{render:(e,t,n)=>w.default.createElement(rl,{visible:a,...e},l(n?.hide)),trigger:"click",interactive:!0,animation:!0,placement:"bottom-start",onCreate:t=>{t.popper.dataset.testid=e,n&&n(t)},onMount:e=>{C(!0),i&&i(e)},onHide:e=>{const t=()=>{e.unmount(),e.popper.firstChild?.removeEventListener("transitionend",t)};e.popper.firstChild?.addEventListener("transitionend",t),C(!1),r&&r(e)},...o}))},e.FileUpload=({multiple:e=!0,additive:l=!1,testId:n="FileUpload",files:i,setFiles:r,label:o,labelTouchDevice:a,dragInstructions:C,onFileDrop:d,acceptedFilePattern:c,uploadButtonText:p,uploadButtonTextTouchDevice:u,onFileRemove:h,error:g,className:m,fileValidation:D,withIcon:f,onPassword:F,passwordPromptText:v="Enter the password to open this PDF file.",passwordIncorrectText:x="Invalid password. Please try again.",passwordConfirmButtonText:b="Confirm",passwordCancelButtonText:E="Cancel",passwordPlaceholderText:L="Password",unsupportedFileFormatErrorMessage:y="Unsupported file format. Supported formats: "})=>{const[k,H]=t.useState([]),M=(()=>{const[e,l]=t.useState([]);return{add:e=>{l((t=>[...t,e]))},editCurrentItem:e=>{l((t=>[{...t[0],...e},...t.slice(1)]))},currentItem:e.length>0?e[0]:null,setAttr:t=>{l([{...e[0],...t},...e.slice(1)])},remove:()=>l(e.slice(1)),removeAll:()=>l([])}})(),V=c??{"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]},$=t.useCallback((async e=>{const t=D?[]:e;if(D){const l=[];await Promise.all(e.map((async e=>{const n=await D(e);n?l.push(`${e.name}: ${n}`):t.push(e)}))),H(l)}r(t)}),[r,D]);t.useEffect((()=>()=>{i.forEach((e=>URL.revokeObjectURL(e.preview)))}),[]);const Z=t.useCallback((e=>{k.includes(y)&&H((e=>e.filter((e=>e!==y))));const t=e.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)})));void 0!==d&&d(t),$(l?[...i,...t].reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[]):t)}),[i,l,d,$,k,y]),B=t.useCallback((e=>{const t=Object.values(V).flat().join(", "),l=`${y} ${t}.`;e.map((e=>{e.errors.map((e=>{"file-invalid-type"===e.code&&H((e=>e.includes(l)?e:[...e,l]))}))}))}),[y]),{getRootProps:z,getInputProps:A,isDragActive:S,open:_}=s.useDropzone({accept:V,onDrop:Z,onDropRejected:B,noClick:!0,multiple:e});return w.default.createElement($l,{className:m,"data-testid":n},w.default.createElement(kl,{open:!!M.currentItem,onClose:()=>{$([]),M.removeAll()},passwordPromptText:v,passwordIncorrectText:x,passwordConfirmButtonText:b,passwordCancelButtonText:E,passwordPlaceholderText:L,passwordQueue:M}),w.default.createElement(Zl,{...z(),isDragActive:S,error:g||k.length>0},w.default.createElement("input",{...A()}),w.default.createElement(Ml,null,i.map((e=>w.default.createElement(Vl,{key:e.name},w.default.createElement(sl,{file:e,setFiles:$,onPassword:F,passwordQueue:M}),w.default.createElement(Hl,{onClick:()=>(e=>{URL.revokeObjectURL(e.preview),$(i.filter((t=>t.preview!==e.preview))),void 0!==h&&h(e)})(e)},w.default.createElement(we,{icon:"trash-error",size:"s"})))))),f&&w.default.createElement(Sl,{src:"data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2236%22%20viewBox%3D%220%200%2048%2036%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M24%2025.5V1.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M33.002%2010.5L24%201.5L15%2010.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M46.502%2025.5V28.5C46.502%2031.8%2043.802%2034.5%2040.502%2034.5H7.49998L7.47998%2034.498C4.15998%2034.478%201.47998%2031.798%201.47998%2028.498V28.496V25.496%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"}),S?w.default.createElement(Bl,null,C??"Drop the files here ..."):w.default.createElement(w.default.Fragment,null,w.default.createElement(zl,null,w.default.createElement(Bl,null,o??"Drag 'n' drop some files here, or ")),a&&w.default.createElement(Bl,null,w.default.createElement(Al,null,a))),w.default.createElement(Ie,{name:"uploadButton",type:"button",onClick:_,size:"sm",icon:"paper",colorTheme:"brand",secondary:!0},w.default.createElement(zl,null,p??"Select files"),w.default.createElement(Al,null,u??"Select files"))),"string"==typeof g&&g&&w.default.createElement(Je,{error:g}),k.length>0&&k.map(((e,t)=>w.default.createElement(Je,{error:e,key:t}))))},e.Flex=ct,e.GlobalStyles=Yn,e.Grid=e=>w.default.createElement(ie,{display:"grid",...e}),e.Heading=ht,e.HorizontalDivider=({height:e=1,my:t="s",testId:l="HorizontalDivider",...n})=>w.default.createElement(_l,{$height:e,my:t,"data-testid":l,...n}),e.Icon=we,e.IconAlignment=["left","right"],e.Image=({testId:e="Image",width:t,height:l,...n})=>w.default.createElement(Il,{"data-testid":e,$width:t,$height:l,...n}),e.Label=({testId:e="Label",...t})=>w.default.createElement(Tl,{"data-testid":e,...t}),e.Link=({testId:e="Link",children:t,icon:l,iconAlignment:n="left",color:i,ref:r,...o})=>w.default.createElement(Pl,{ref:r,"data-testid":e,$color:i,...o},"left"===n&&w.default.createElement(Nl,{icon:l,color:i}),w.default.createElement(Wl,{icon:!!l,iconAlignment:n},t),"right"===n&&w.default.createElement(Nl,{icon:l,color:i})),e.LinkButton=({colorTheme:e="brand",size:t="md",iconAlignment:l="left",testId:n="LinkButton",secondary:i,light:r,icon:o,loading:a,children:C,ref:d,...s})=>{const c=i??r,p={...s,size:t,colorTheme:e,secondary:c,icon:o};return w.default.createElement(Ve,{ref:d,"data-testid":n,...p},w.default.createElement(_e,{loading:a,size:t,colorTheme:e,secondary:c,icon:o,iconAlignment:l},C))},e.List=({children:e,...t})=>{const l=V.default(t,jl);return w.default.createElement(ql,{...t},w.default.Children.map(e,(e=>w.default.isValidElement(e)?w.default.cloneElement(e,Object.assign({},l,e.props)):e)))},e.ListItem=({size:e="sm",color:t="primary",bulletColor:l="tertiary",mb:n="2xs",icon:i="bullet-point",children:r,...o})=>w.default.createElement(Gl,{$size:e,$color:t,mb:n,...o},w.default.createElement(Jl,{icon:i,bulletColor:l}),r),e.Menu=({testId:e="Menu",...t})=>w.default.createElement(Kl,{p:"xxxs","data-testid":e,...t}),e.MenuItem=({testId:e="MenuItem",onClick:t,children:l,icon:n,className:i,...r})=>w.default.createElement(en,{"data-testid":e,className:i,...r},w.default.createElement(tn,{onClick:r.disabled?void 0:t,...r},w.default.createElement(on,{icon:n,disabled:r.disabled,colorTheme:r.colorTheme}),l)),e.Modal=gl,e.MultiSelect=({value:e=[],testId:t="MultiSelect",...l})=>w.default.createElement(Nt,{formatOptionLabel:Cn,multiple:!0,value:e,testId:t,...l}),e.MultiSlider=({testId:e="MultiSlider",px:l,disabled:n,...i})=>{const r=$.default(i.value),[o,a]=pn(i.value,i,r);return t.useEffect((()=>{o&&o.current&&(o.current.on("update",(()=>{const e=o.current?.get();Array.isArray(e)&&i.onChange(e)})),o.current.on("change",(()=>{const e=o.current?.get();i.onRelease&&Array.isArray(e)&&i.onRelease(e)})))}),[o]),w.default.createElement(cn,{className:i.className,testId:e,sliderRef:a,sliderApi:o.current,disabled:n,px:l})},e.Notice=bl,e.NumberInput=_t,e.Pagination=({testId:e="Pagination",size:t="md",colorTheme:l="brand",previousLabel:n="Previous page",nextLabel:i="Next page",page:r,totalPages:o,onChange:a,...C})=>{const d=(({page:e,totalPages:t})=>{const l=mn(1,Math.min(1,t)),n=mn(Math.max(t-1+1,2),t),i=Math.max(Math.min(e-1,t-1-2-1),3),r=Math.min(Math.max(e+1,5),n.length>0?n[0]-2:t-1);return[...l,...i>3?["ellipsis-start"]:2<t-1?[2]:[],...mn(i,r),...r<t-1-1?["ellipsis-end"]:t-1>1?[t-1]:[],...n]})({page:r,totalPages:o}),s={colorTheme:l,size:t,mx:"3xs",mb:"2xs"};return w.default.createElement(un,{mx:"-4px",...C,"data-testid":e},w.default.createElement(hn,{...s,disabled:r<=1,onClick:()=>a(r-1),icon:"arrow-left",secondary:!0},n),d.map((e=>"string"==typeof e?w.default.createElement(gn,{size:t,key:e,mb:s.mb},"..."):w.default.createElement(hn,{...s,key:e,onClick:()=>a(e),selected:r===e,secondary:r!==e},e))),w.default.createElement(hn,{...s,disabled:r>=o,onClick:()=>a(r+1),icon:"arrow-right",iconAlignment:"right",secondary:!0},i))},e.Paragraph=El,e.PasswordInput=({testId:e="PasswordInput",size:l="md",ref:n,...i})=>{const[r,o]=t.useState(!1);return w.default.createElement(Ll,{...i,testId:e,size:l,type:r?"text":"password",contentRight:w.default.createElement(ct,{height:"100%",alignItems:"center"},w.default.createElement(Dn,{onClick:()=>o(!r)},w.default.createElement(we,{icon:r?"eye":"eye-hidden",size:"lg"===l?"lg":"md",color:"tertiary"}))),ref:n})},e.PasswordStrength=({testId:e="PasswordStrength",password:l,labelText:n="Password strength",strengthText:i,...r})=>{const o=t.useMemo((()=>Object.assign({[bn.NONE]:"None",[bn.WEAK]:"Weak",[bn.FAIR]:"Fair",[bn.GOOD]:"Good",[bn.EXCELLENT]:"Excellent"},i)),[i]),{strength:a,textColor:C,progressBarColor:d,progressBarValue:s}=wn(l);return w.default.createElement(ct,{justifyContent:"space-between",alignItems:"center","data-testid":e,width:"100%",...r},w.default.createElement(ct,{flexWrap:"wrap"},w.default.createElement(al,{element:"span",pr:"2xs"},n),w.default.createElement(al,{element:"span",color:C,bold:!0,pr:"2xs"},o[a])),w.default.createElement(xn,null,w.default.createElement(vn,{value:s,color:d})))},e.PhoenixIcons=De,e.PhoenixIconsColored=me,e.PhoenixIconsColoredSrc=ue,e.PhoenixIconsOutlined=ge,e.PhoenixIconsOutlinedSrc=pe,e.PhoenixIconsSrc=he,e.ProgressBar=vn,e.Radio=({size:e="md",colorTheme:t="brand",className:l,warning:n,error:i,testId:r="Radio",...o})=>w.default.createElement(w.default.Fragment,null,w.default.createElement(En,{className:l,colorTheme:t,size:e,"data-testid":r,warning:!!n,error:!!i},w.default.createElement(Ye,{type:"radio",...o})),w.default.createElement(Je,{warning:n,error:i})),e.Select=Yt,e.SelectNative=Gt,e.SelectPicker=({colorTheme:e="brand",size:l="md",multiSelect:n=!1,testId:i="SelectPicker",imageSize:r,options:o,name:a,onChange:C,value:d,error:s,warning:c,onMouseOver:p,onMouseLeave:u,className:h})=>{const g=n&&Array.isArray(d)?d:[],[m,D]=t.useState(g),[f,F]=t.useState(!1);t.useEffect((()=>{if(n&&f)return C(m);f||F(!0)}),[m]);const v=e=>n?m.includes(e.value):d===e.value;return w.default.createElement("div",{className:h,"data-testid":i},w.default.createElement(kn,{optionsLength:o.length,onMouseOver:e=>{e.persist(),p?.(e)},onMouseLeave:e=>{e.persist(),u?.(e)},size:l},(t=>t?t.map((t=>w.default.createElement(Vn,{multiSelect:n,key:t.value,checked:v(t),onClick:()=>(e=>{if(n)if(m.includes(e.value)){const t=m.filter((t=>t!==e.value));D(t)}else D([...m,e.value]);else C(e.value)})(t),withImage:t.image,colorTheme:e,size:l,hasDescription:!!t.description,isDisabled:t.isDisabled},w.default.createElement(Zn,{colorTheme:e,size:l,checked:v(t)},w.default.createElement("input",{type:n?"checkbox":"radio",style:{display:"none"},value:t.value,name:a,checked:v(t),readOnly:!0,disabled:t.isDisabled}),w.default.createElement("label",null)),w.default.createElement(Mn,null,t.image&&w.default.createElement($n,{src:t.image,size:l,isDisabled:t.isDisabled,imageSize:r}),w.default.createElement(Bn,null,t.label??t.value)),t.description&&w.default.createElement(Hn,{checked:v(t),colorTheme:e,isDisabled:t.isDisabled},t.description)))):null)(o)),w.default.createElement(Je,{warning:c,error:s}))},e.Sizing=Q,e.SizingMdLg=["md","lg"],e.SizingSmMd=["sm","md"],e.SizingSmMdLg=["sm","md","lg"],e.Slider=({testId:e="Slider",px:l,limit:n,disabled:i,...r})=>{const o=$.default(r.value),[a,C]=pn(r.value,r,o);return t.useEffect((()=>{a&&a.current&&(a.current.off("update"),a.current.on("update",(()=>{const e=a.current?.get();if("string"==typeof e||"number"==typeof e){if(n&&Number(e)>n)return void a.current?.set(n);r.onChange(e)}})),a.current.off("change"),a.current.on("change",(()=>{const e=a.current?.get();!r.onRelease||"string"!=typeof e&&"number"!=typeof e||r.onRelease(e)})))}),[a,n]),w.default.createElement(cn,{className:r.className,sliderRef:C,sliderApi:a.current,disabled:i,testId:e,px:l})},e.Spacing=A,e.Spinner=ce,e.Tab=_n,e.TabList=Pn,e.Tabs=({testId:e="Tabs",...t})=>w.default.createElement(zn,{"data-testid":e,...t}),e.Tag=({colorTheme:e="brand",size:t="md",testId:l="Tag",...n})=>w.default.createElement(Rn,{colorTheme:e,size:t,"data-testid":l,...n}),e.Text=al,e.TextArea=({size:e="md",rows:t=3,testId:l="TextArea",label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,...s})=>{const{focused:c,thisOnFocus:p,thisOnBlur:u}=At(s.onFocus,s.onBlur);return w.default.createElement(zt,{label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,size:e,disabled:s.disabled,filled:!!s.value,focused:c,minimal:s.minimal,testId:l},w.default.createElement(kt,{...s,rows:t,onFocus:p,onBlur:u,focused:c,disabled:s.disabled??!1,$size:e}))},e.TextColor=N,e.TextInput=Ll,e.Theme=Gn,e.TimezonePicker=({testId:e="TimezonePicker",...t})=>{const l=Un();return w.default.createElement(Yt,{options:l,testId:e,...t})},e.Toggle=({colorTheme:e="brand",className:t,warning:l,error:n,testId:i="Toggle",...r})=>w.default.createElement(w.default.Fragment,null,w.default.createElement(Wn,{className:t,colorTheme:e,"data-testid":i,warning:!!l,error:!!n},w.default.createElement(Ye,{type:"checkbox",...r})),w.default.createElement(Je,{warning:l,error:n})),e.Tooltip=({testId:e="Tooltip",onCreate:t,...l})=>w.default.createElement(Nn,{onCreate:l=>{l.popper.dataset.testid=e,t&&t(l)},maxWidth:300,...l}),e.getBoxShadow=X,e.getLineHeightUnitless=Y,e.getSpacingCssValue=T,e.getTextColor=q,e.getTimezoneOptions=Un,e.getUnitlessNumber=G,e.isColorTheme=W,e.isSizing=J,e.isSpacing=S,e.isTextColor=j}));
1424
+ `;Object.defineProperty(e,"TabPanel",{enumerable:!0,get:function(){return f.TabPanel}}),e.Box=ie,e.Button=Ie,e.ButtonGroup=({testId:e="ButtonGroup",children:t,dividers:l,...n})=>{const i=l&&Array.isArray(t)?((e,t)=>w.default.Children.map(e,(e=>e.props.minimal?[e,t]:[e])).flat().slice(0,-1))(t,w.default.createElement(Pe,null,w.default.createElement(Re,null))):t;return w.default.createElement(Te,{...n,"data-testid":e},i)},e.Card=Oe,e.Checkbox=tt,e.ClosableButton=({testId:e="ClosableButton",className:t,onClose:l,ref:n,...i})=>w.default.createElement(nt,{className:t,"data-testid":e},w.default.createElement(it,{...i,ref:n,type:"button"}),w.default.createElement(rt,{type:"button",onClick:l},w.default.createElement("img",{src:lt,alt:""}))),e.ClosableItem=({testId:e="ClosableItem",className:t,onClose:l,...n})=>w.default.createElement(ot,{className:t,"data-testid":e},w.default.createElement(at,{...n}),w.default.createElement(rt,{type:"button",onClick:l},w.default.createElement("img",{src:lt,alt:""}))),e.Collapsible=st,e.CollapsibleCard=({testId:e="CollapsibleCard",initialOpen:t=!0,arrowReverse:l=!1,showCard:n=!0,headingMarginBottom:i="xs",iconRotationDeg:r=90,arrow:o,heading:a,rightContent:C,children:d,...s})=>{const[c,p]=w.default.useState(!t);return w.default.createElement(gt,{as:n?Oe:ie,p:s.p??(n?"xs":0),pb:s.pb??s.py??s.p??0,"data-testid":e,...s},w.default.createElement(ct,{alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},w.default.createElement(mt,{mb:i,onClick:()=>p(!c),arrowReverse:l},w.default.createElement(Dt,{collapsed:c,iconRotationDeg:r},o??w.default.createElement(ft,{secondary:!0,size:"xs",colorTheme:"neutral",icon:"chevron-right"})),"string"==typeof a?w.default.createElement(ht,{element:"h4",bold:!1,mx:l?0:"xs"},a):a),!!C&&w.default.createElement(ie,{mb:"xs"},C)),w.default.createElement(st,{collapsed:c},w.default.createElement(ie,{pb:n?"xs":0},d)))},e.ColorTheme=O,e.DateInput=({size:e="md",months:l=Jt,locale:n="eu",testId:i="DateInput",onChange:r,warning:o,error:a,inputLabels:C,dateFormatError:d="Please enter a valid date.",value:s,className:c,dayProps:p,monthProps:u,yearProps:h,...g})=>{const m=l??[],[D,f]=t.useState(s?.day??null),[F,v]=t.useState(s?.month?{value:s.month,label:Kt(m,s.month)}:null),[x,b]=t.useState(s?.year??null),[E,L]=t.useState(void 0);t.useEffect((()=>{D&&F&&x?((e,t,l)=>{if(!e||!t||!l)return!1;const n=("string"==typeof t?parseInt(t,10):t)-1;return n>=0&&n<12&&e>0&&e<=((e,t)=>{switch(e){case 1:return t%4==0&&t%100||t%400==0?29:28;case 8:case 3:case 5:case 10:return 30;default:return 31}})(n,l)})(D,F.value,x)?(r({day:D,month:"string"==typeof F.value?parseInt(F.value,10):F.value,year:x}),L(void 0)):(r(null),L(d)):(r(null),L(void 0))}),[D,F,x,d]);const y=C??{day:"Day",month:"Month",year:"Year"},k=()=>{D&&F&&x&&g.setTouched&&g.setTouched(!0)},H=w.default.createElement(_t,{name:"day",min:1,max:31,pattern:"[0-9]*",autoComplete:"bday-day",label:y.day,value:D,onChange:e=>f(e),onBlur:k,error:!!a,size:e,success:g.success,disabled:g.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...p}),M=w.default.createElement(Yt,{name:"month",label:y.month,value:F,onChange:e=>v(e),onBlur:k,options:m,error:!!a,size:e,success:g.success,disabled:g.disabled,...u}),V=w.default.createElement(_t,{name:"year",min:1,autoComplete:"bday-year",pattern:"[0-9]*",label:y.year,value:x,onChange:e=>b(e),onBlur:k,error:!!a,size:e,success:g.success,disabled:g.disabled,maxDecimalCount:0,numberFormatErrorMessage:d,...h});return w.default.createElement(Xt,{className:c,"data-testid":i},"ja"===n?w.default.createElement(Qt,null,V,M,H):"us"===n?w.default.createElement(Qt,null,M,H,V):w.default.createElement(Qt,null,H,M,V),E&&!a&&w.default.createElement(Je,{error:E}),w.default.createElement(Je,{warning:o,error:a}))},e.DatePicker=({testId:e="DatePicker",value:t,onChange:l,dayPickerProps:n,...i})=>w.default.createElement(nl,{selected:t??void 0,initialDate:t,onDayClick:(e,{selected:t,disabled:n})=>{n||l(t?null:e)},testId:e,...i,...n}),e.DateRangePicker=({testId:e="DateRangePicker",value:t,onChange:l,dayPickerProps:n,...i})=>{const r={from:t.from??void 0,to:t.to??void 0};return w.default.createElement(il,{className:"DateRangePicker",selected:r,initialDate:t.from,onDayClick:(e,{disabled:t})=>{if(t)return;const n=C.addToRange(e,r);l({from:n?.from??null,to:n?.to??null})},testId:e,...i,...n})},e.Dropdown=({testId:e="Dropdown",content:l,onCreate:n,onMount:i,onHide:r,...o})=>{const[a,C]=t.useState(!1);return w.default.createElement(w.default.Fragment,null,w.default.createElement(H.default,{render:(e,t,n)=>w.default.createElement(rl,{visible:a,...e},l(n?.hide)),trigger:"click",interactive:!0,animation:!0,placement:"bottom-start",onCreate:t=>{t.popper.dataset.testid=e,n&&n(t)},onMount:e=>{C(!0),i&&i(e)},onHide:e=>{const t=()=>{e.unmount(),e.popper.firstChild?.removeEventListener("transitionend",t)};e.popper.firstChild?.addEventListener("transitionend",t),C(!1),r&&r(e)},...o}))},e.FileUpload=({multiple:e=!0,additive:l=!1,testId:n="FileUpload",files:i,setFiles:r,label:o,labelTouchDevice:a,dragInstructions:C,onFileDrop:d,acceptedFilePattern:c,uploadButtonText:p,uploadButtonTextTouchDevice:u,onFileRemove:h,error:g,className:m,fileValidation:D,withIcon:f,onPassword:F,passwordPromptText:v="Enter the password to open this PDF file.",passwordIncorrectText:x="Invalid password. Please try again.",passwordConfirmButtonText:b="Confirm",passwordCancelButtonText:E="Cancel",passwordPlaceholderText:L="Password",unsupportedFileFormatErrorMessage:y="Unsupported file format. Supported formats: "})=>{const[k,H]=t.useState([]),M=(()=>{const[e,l]=t.useState([]);return{add:e=>{l((t=>[...t,e]))},editCurrentItem:e=>{l((t=>[{...t[0],...e},...t.slice(1)]))},currentItem:e.length>0?e[0]:null,setAttr:t=>{l([{...e[0],...t},...e.slice(1)])},remove:()=>l(e.slice(1)),removeAll:()=>l([])}})(),V=c??{"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]},$=t.useCallback((async e=>{const t=D?[]:e;if(D){const l=[];await Promise.all(e.map((async e=>{const n=await D(e);n?l.push(`${e.name}: ${n}`):t.push(e)}))),H(l)}r(t)}),[r,D]);t.useEffect((()=>()=>{i.forEach((e=>URL.revokeObjectURL(e.preview)))}),[]);const Z=t.useCallback((e=>{k.includes(y)&&H((e=>e.filter((e=>e!==y))));const t=e.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)})));void 0!==d&&d(t),$(l?[...i,...t].reduce(((e,t)=>(e.some((e=>e.name===t.name))||e.push(t),e)),[]):t)}),[i,l,d,$,k,y]),B=t.useCallback((e=>{const t=Object.values(V).flat().join(", "),l=`${y} ${t}.`;e.map((e=>{e.errors.map((e=>{"file-invalid-type"===e.code&&H((e=>e.includes(l)?e:[...e,l]))}))}))}),[y]),{getRootProps:z,getInputProps:A,isDragActive:S,open:_}=s.useDropzone({accept:V,onDrop:Z,onDropRejected:B,noClick:!0,multiple:e});return w.default.createElement($l,{className:m,"data-testid":n},w.default.createElement(kl,{open:!!M.currentItem,onClose:()=>{$([]),M.removeAll()},passwordPromptText:v,passwordIncorrectText:x,passwordConfirmButtonText:b,passwordCancelButtonText:E,passwordPlaceholderText:L,passwordQueue:M}),w.default.createElement(Zl,{...z(),isDragActive:S,error:g||k.length>0},w.default.createElement("input",{...A()}),w.default.createElement(Ml,null,i.map((e=>w.default.createElement(Vl,{key:e.name},w.default.createElement(sl,{file:e,setFiles:$,onPassword:F,passwordQueue:M}),w.default.createElement(Hl,{onClick:()=>(e=>{URL.revokeObjectURL(e.preview),$(i.filter((t=>t.preview!==e.preview))),void 0!==h&&h(e)})(e)},w.default.createElement(we,{icon:"trash-error",size:"s"})))))),f&&w.default.createElement(Sl,{src:"data:image/svg+xml,%3Csvg%20width%3D%2248%22%20height%3D%2236%22%20viewBox%3D%220%200%2048%2036%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M24%2025.5V1.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M33.002%2010.5L24%201.5L15%2010.5%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M46.502%2025.5V28.5C46.502%2031.8%2043.802%2034.5%2040.502%2034.5H7.49998L7.47998%2034.498C4.15998%2034.478%201.47998%2031.798%201.47998%2028.498V28.496V25.496%22%20stroke%3D%22%23522974%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"}),S?w.default.createElement(Bl,null,C??"Drop the files here ..."):w.default.createElement(w.default.Fragment,null,w.default.createElement(zl,null,w.default.createElement(Bl,null,o??"Drag 'n' drop some files here, or ")),a&&w.default.createElement(Bl,null,w.default.createElement(Al,null,a))),w.default.createElement(Ie,{name:"uploadButton",type:"button",onClick:_,size:"sm",icon:"paper",colorTheme:"brand",secondary:!0},w.default.createElement(zl,null,p??"Select files"),w.default.createElement(Al,null,u??"Select files"))),"string"==typeof g&&g&&w.default.createElement(Je,{error:g}),k.length>0&&k.map(((e,t)=>w.default.createElement(Je,{error:e,key:t}))))},e.Flex=ct,e.GlobalStyles=Qn,e.Grid=e=>w.default.createElement(ie,{display:"grid",...e}),e.Heading=ht,e.HorizontalDivider=({height:e=1,my:t="s",testId:l="HorizontalDivider",...n})=>w.default.createElement(_l,{$height:e,my:t,"data-testid":l,...n}),e.Icon=we,e.IconAlignment=["left","right"],e.Image=({testId:e="Image",width:t,height:l,...n})=>w.default.createElement(Il,{"data-testid":e,$width:t,$height:l,...n}),e.Label=({testId:e="Label",...t})=>w.default.createElement(Tl,{"data-testid":e,...t}),e.Link=({testId:e="Link",children:t,icon:l,iconAlignment:n="left",color:i,ref:r,...o})=>w.default.createElement(Pl,{ref:r,"data-testid":e,$color:i,...o},"left"===n&&w.default.createElement(Nl,{icon:l,color:i}),w.default.createElement(Wl,{icon:!!l,iconAlignment:n},t),"right"===n&&w.default.createElement(Nl,{icon:l,color:i})),e.LinkButton=({colorTheme:e="brand",size:t="md",iconAlignment:l="left",testId:n="LinkButton",secondary:i,light:r,icon:o,loading:a,children:C,ref:d,...s})=>{const c=i??r,p={...s,size:t,colorTheme:e,secondary:c,icon:o};return w.default.createElement(Ve,{ref:d,"data-testid":n,...p},w.default.createElement(_e,{loading:a,size:t,colorTheme:e,secondary:c,icon:o,iconAlignment:l},C))},e.List=({children:e,...t})=>{const l=V.default(t,jl);return w.default.createElement(ql,{...t},w.default.Children.map(e,(e=>w.default.isValidElement(e)?w.default.cloneElement(e,Object.assign({},l,e.props)):e)))},e.ListItem=({size:e="sm",color:t="primary",bulletColor:l="tertiary",mb:n="2xs",icon:i="bullet-point",children:r,...o})=>w.default.createElement(Gl,{$size:e,$color:t,mb:n,...o},w.default.createElement(Jl,{icon:i,bulletColor:l}),r),e.Menu=({testId:e="Menu",...t})=>w.default.createElement(Kl,{p:"xxxs","data-testid":e,...t}),e.MenuItem=({testId:e="MenuItem",onClick:t,children:l,icon:n,href:i,disabled:r,className:o,colorTheme:a,...C})=>{const d={onClick:r?void 0:t,disabled:r,...C},s=w.default.createElement(w.default.Fragment,null,w.default.createElement(Cn,{icon:n,disabled:r,colorTheme:a}),l);return w.default.createElement(en,{"data-testid":e,className:o,...C},i?w.default.createElement(nn,{href:i,...d},s):w.default.createElement(ln,{...d},s))},e.Modal=gl,e.MultiSelect=({value:e=[],testId:t="MultiSelect",...l})=>w.default.createElement(Nt,{formatOptionLabel:sn,multiple:!0,value:e,testId:t,...l}),e.MultiSlider=({testId:e="MultiSlider",px:l,disabled:n,...i})=>{const r=$.default(i.value),[o,a]=hn(i.value,i,r);return t.useEffect((()=>{o&&o.current&&(o.current.on("update",(()=>{const e=o.current?.get();Array.isArray(e)&&i.onChange(e)})),o.current.on("change",(()=>{const e=o.current?.get();i.onRelease&&Array.isArray(e)&&i.onRelease(e)})))}),[o]),w.default.createElement(un,{className:i.className,testId:e,sliderRef:a,sliderApi:o.current,disabled:n,px:l})},e.Notice=bl,e.NumberInput=_t,e.Pagination=({testId:e="Pagination",size:t="md",colorTheme:l="brand",previousLabel:n="Previous page",nextLabel:i="Next page",page:r,totalPages:o,onChange:a,...C})=>{const d=(({page:e,totalPages:t})=>{const l=fn(1,Math.min(1,t)),n=fn(Math.max(t-1+1,2),t),i=Math.max(Math.min(e-1,t-1-2-1),3),r=Math.min(Math.max(e+1,5),n.length>0?n[0]-2:t-1);return[...l,...i>3?["ellipsis-start"]:2<t-1?[2]:[],...fn(i,r),...r<t-1-1?["ellipsis-end"]:t-1>1?[t-1]:[],...n]})({page:r,totalPages:o}),s={colorTheme:l,size:t,mx:"3xs",mb:"2xs"};return w.default.createElement(gn,{mx:"-4px",...C,"data-testid":e},w.default.createElement(mn,{...s,disabled:r<=1,onClick:()=>a(r-1),icon:"arrow-left",secondary:!0},n),d.map((e=>"string"==typeof e?w.default.createElement(Dn,{size:t,key:e,mb:s.mb},"..."):w.default.createElement(mn,{...s,key:e,onClick:()=>a(e),selected:r===e,secondary:r!==e},e))),w.default.createElement(mn,{...s,disabled:r>=o,onClick:()=>a(r+1),icon:"arrow-right",iconAlignment:"right",secondary:!0},i))},e.Paragraph=El,e.PasswordInput=({testId:e="PasswordInput",size:l="md",ref:n,...i})=>{const[r,o]=t.useState(!1);return w.default.createElement(Ll,{...i,testId:e,size:l,type:r?"text":"password",contentRight:w.default.createElement(ct,{height:"100%",alignItems:"center"},w.default.createElement(Fn,{onClick:()=>o(!r)},w.default.createElement(we,{icon:r?"eye":"eye-hidden",size:"lg"===l?"lg":"md",color:"tertiary"}))),ref:n})},e.PasswordStrength=({testId:e="PasswordStrength",password:l,labelText:n="Password strength",strengthText:i,...r})=>{const o=t.useMemo((()=>Object.assign({[En.NONE]:"None",[En.WEAK]:"Weak",[En.FAIR]:"Fair",[En.GOOD]:"Good",[En.EXCELLENT]:"Excellent"},i)),[i]),{strength:a,textColor:C,progressBarColor:d,progressBarValue:s}=Ln(l);return w.default.createElement(ct,{justifyContent:"space-between",alignItems:"center","data-testid":e,width:"100%",...r},w.default.createElement(ct,{flexWrap:"wrap"},w.default.createElement(al,{element:"span",pr:"2xs"},n),w.default.createElement(al,{element:"span",color:C,bold:!0,pr:"2xs"},o[a])),w.default.createElement(wn,null,w.default.createElement(bn,{value:s,color:d})))},e.PhoenixIcons=De,e.PhoenixIconsColored=me,e.PhoenixIconsColoredSrc=ue,e.PhoenixIconsOutlined=ge,e.PhoenixIconsOutlinedSrc=pe,e.PhoenixIconsSrc=he,e.ProgressBar=bn,e.Radio=({size:e="md",colorTheme:t="brand",className:l,warning:n,error:i,testId:r="Radio",...o})=>w.default.createElement(w.default.Fragment,null,w.default.createElement(yn,{className:l,colorTheme:t,size:e,"data-testid":r,warning:!!n,error:!!i},w.default.createElement(Ye,{type:"radio",...o})),w.default.createElement(Je,{warning:n,error:i})),e.Select=Yt,e.SelectNative=Gt,e.SelectPicker=({colorTheme:e="brand",size:l="md",multiSelect:n=!1,testId:i="SelectPicker",imageSize:r,options:o,name:a,onChange:C,value:d,error:s,warning:c,onMouseOver:p,onMouseLeave:u,className:h})=>{const g=n&&Array.isArray(d)?d:[],[m,D]=t.useState(g),[f,F]=t.useState(!1);t.useEffect((()=>{if(n&&f)return C(m);f||F(!0)}),[m]);const v=e=>n?m.includes(e.value):d===e.value;return w.default.createElement("div",{className:h,"data-testid":i},w.default.createElement(Mn,{optionsLength:o.length,onMouseOver:e=>{e.persist(),p?.(e)},onMouseLeave:e=>{e.persist(),u?.(e)},size:l},(t=>t?t.map((t=>w.default.createElement(Zn,{multiSelect:n,key:t.value,checked:v(t),onClick:()=>(e=>{if(n)if(m.includes(e.value)){const t=m.filter((t=>t!==e.value));D(t)}else D([...m,e.value]);else C(e.value)})(t),withImage:t.image,colorTheme:e,size:l,hasDescription:!!t.description,isDisabled:t.isDisabled},w.default.createElement(zn,{colorTheme:e,size:l,checked:v(t)},w.default.createElement("input",{type:n?"checkbox":"radio",style:{display:"none"},value:t.value,name:a,checked:v(t),readOnly:!0,disabled:t.isDisabled}),w.default.createElement("label",null)),w.default.createElement($n,null,t.image&&w.default.createElement(Bn,{src:t.image,size:l,isDisabled:t.isDisabled,imageSize:r}),w.default.createElement(An,null,t.label??t.value)),t.description&&w.default.createElement(Vn,{checked:v(t),colorTheme:e,isDisabled:t.isDisabled},t.description)))):null)(o)),w.default.createElement(Je,{warning:c,error:s}))},e.Sizing=Q,e.SizingMdLg=["md","lg"],e.SizingSmMd=["sm","md"],e.SizingSmMdLg=["sm","md","lg"],e.Slider=({testId:e="Slider",px:l,limit:n,disabled:i,...r})=>{const o=$.default(r.value),[a,C]=hn(r.value,r,o);return t.useEffect((()=>{a&&a.current&&(a.current.off("update"),a.current.on("update",(()=>{const e=a.current?.get();if("string"==typeof e||"number"==typeof e){if(n&&Number(e)>n)return void a.current?.set(n);r.onChange(e)}})),a.current.off("change"),a.current.on("change",(()=>{const e=a.current?.get();!r.onRelease||"string"!=typeof e&&"number"!=typeof e||r.onRelease(e)})))}),[a,n]),w.default.createElement(un,{className:r.className,sliderRef:C,sliderApi:a.current,disabled:i,testId:e,px:l})},e.Spacing=A,e.Spinner=ce,e.Tab=Tn,e.TabList=Un,e.Tabs=({testId:e="Tabs",...t})=>w.default.createElement(Sn,{"data-testid":e,...t}),e.Tag=({colorTheme:e="brand",size:t="md",testId:l="Tag",...n})=>w.default.createElement(On,{colorTheme:e,size:t,"data-testid":l,...n}),e.Text=al,e.TextArea=({size:e="md",rows:t=3,testId:l="TextArea",label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,...s})=>{const{focused:c,thisOnFocus:p,thisOnBlur:u}=At(s.onFocus,s.onBlur);return w.default.createElement(zt,{label:n,success:i,warning:r,error:o,contentRight:a,helperText:C,className:d,size:e,disabled:s.disabled,filled:!!s.value,focused:c,minimal:s.minimal,testId:l},w.default.createElement(kt,{...s,rows:t,onFocus:p,onBlur:u,focused:c,disabled:s.disabled??!1,$size:e}))},e.TextColor=N,e.TextInput=Ll,e.Theme=Xn,e.TimezonePicker=({testId:e="TimezonePicker",...t})=>{const l=Wn();return w.default.createElement(Yt,{options:l,testId:e,...t})},e.Toggle=({colorTheme:e="brand",className:t,warning:l,error:n,testId:i="Toggle",...r})=>w.default.createElement(w.default.Fragment,null,w.default.createElement(jn,{className:t,colorTheme:e,"data-testid":i,warning:!!l,error:!!n},w.default.createElement(Ye,{type:"checkbox",...r})),w.default.createElement(Je,{warning:l,error:n})),e.Tooltip=({testId:e="Tooltip",onCreate:t,...l})=>w.default.createElement(qn,{onCreate:l=>{l.popper.dataset.testid=e,t&&t(l)},maxWidth:300,...l}),e.getBoxShadow=X,e.getLineHeightUnitless=Y,e.getSpacingCssValue=T,e.getTextColor=q,e.getTimezoneOptions=Wn,e.getUnitlessNumber=G,e.isColorTheme=W,e.isSizing=J,e.isSpacing=S,e.isTextColor=j}));
1416
1425
  //# sourceMappingURL=bundle.umd.js.map