@useloops/design-system 1.4.131 → 1.4.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -20,4 +20,4 @@ import*as e from"react";import t,{useRef as o,useEffect as n,useState as r,useCa
20
20
  object-assign
21
21
  (c) Sindre Sorhus
22
22
  @license MIT
23
- */function yr(){if(ar)return ir;ar=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;return ir=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,r){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},ir}function vr(){if(lr)return sr;lr=1;return sr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Cr(){return ur?cr:(ur=1,cr=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var wr=br();er.exports=function(){if(hr)return mr;hr=1;var e=br(),t=yr(),o=vr(),n=Cr(),r=function(){if(pr)return dr;pr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=vr(),o={},n=Cr();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(n(r,c)){var u;try{if("function"!=typeof r[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=r[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(o={})},dr=r}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),mr=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:h(a),arrayOf:function(e){return h((function(t,n,r,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}))},element:h((function(e,t,o,n,r){var i=e[t];return s(i)?null:new m("Invalid "+n+" `"+r+"` of type `"+b(i)+"` supplied to `"+o+"`, expected a single ReactElement.")})),elementType:h((function(t,o,n,r,i){var a=t[o];return e.isValidElementType(a)?null:new m("Invalid "+r+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,o,n,r,i){if(!(t[o]instanceof e)){var a=e.name||u;return new m("Invalid "+r+" `"+i+"` of type `"+((s=t[o]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,o,n,r){return x(e[t])?null:new m("Invalid "+n+" `"+r+"` supplied to `"+o+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,r,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=b(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(n(l,u)){var d=e(l,u,i,a,s+"."+u,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,o,n,r,i){for(var a=t[o],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+r+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(r)+" at index "+t+"."),a}return h((function(t,r,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,r,i,a,s,o);if(null==u)return null;u.data&&n(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,n,r,i,a){var s=t[n],l=b(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(r,i,a,c,y(u));var d=u(s,c,r,i,a+"."+c,o);if(d)return d}return null}))},exact:function(e){return h((function(r,i,a,s,l){var c=r[i],u=b(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},r[i],e);for(var p in d){var h=e[p];if(n(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=h(c,p,a,s,l+"."+p,o);if(f)return f}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function r(r,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==o){if(l){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,n++)}}return null==a[s]?r?null===a[s]?new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function f(e){return h((function(t,o,n,r,i,a){var s=t[o];return b(s)!==e?new m("Invalid "+r+" `"+i+"` of type `"+y(s)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,o,n,r){return new m((e||"React class")+": "+t+" type `"+o+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var o,n=t.call(e);if(t!==e.entries){for(;!(o=n.next()).done;)if(!x(o.value))return!1}else for(;!(o=n.next()).done;){var r=o.value;if(r&&!x(r[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=r,d.resetWarningCache=r.resetWarningCache,d.PropTypes=d,d},mr}()(wr.isElement,!0)}else er.exports=function(){if(gr)return fr;gr=1;var e=vr();function t(){}function o(){}return o.resetWarningCache=t,fr=function(){function n(t,o,n,r,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:o,resetWarningCache:t};return i.PropTypes=i,i}}()();var jr=_t(er.exports);function kr(t=null){const o=e.useContext($e);return o&&(n=o,0!==Object.keys(n).length)?o:t;var n}function Sr(t,o,n,r,i){const[a,s]=e.useState((()=>i&&n?n(t).matches:r?r(t).matches:o));return Gn((()=>{let e=!0;if(!n)return;const o=n(t),r=()=>{e&&s(o.matches)};return r(),o.addListener(r),()=>{e=!1,o.removeListener(r)}}),[t,n]),a}const Mr=e.useSyncExternalStore;function Lr(t,o,n,r,i){const a=e.useCallback((()=>o),[o]),s=e.useMemo((()=>{if(i&&n)return()=>n(t).matches;if(null!==r){const{matches:e}=r(t);return()=>e}return a}),[a,t,r,i,n]),[l,c]=e.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[a,n,t]);return Mr(c,l,s)}const Er=()=>{const t=h();return[...t.breakpoints.keys].reduce(((o,n)=>{const r=function(t,o={}){const n=kr(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:a=(r?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:l=!1}=Jn({name:"MuiUseMediaQuery",props:o,theme:n});"production"!==process.env.NODE_ENV&&"function"==typeof t&&null===n&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let c="function"==typeof t?t(n):t;c=c.replace(/^@media( ?)/m,"");const u=(void 0!==Mr?Lr:Sr)(c,i,a,s,l);return"production"!==process.env.NODE_ENV&&e.useDebugValue({query:c,match:u}),u}(t.breakpoints.up(n));return r?n:o}),null)??"sm"},$r=({breakpoint:e})=>{const t=h(),o=Array.from({length:6},((e,t)=>t));return e||(e=Er()),Ut.jsxs(x,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[Ut.jsx(O,{sx:{background:t.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:Ut.jsx(j,{sx:{background:t.custom.palette.purple[300],display:"flex",flex:1},children:Ut.jsxs(A,{container:!0,spacing:2,children:[o.map((e=>Ut.jsx(A,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:Ut.jsx(j,{sx:{background:t.custom.palette.green[300],height:"100%"}})},`grid-1-${e}`))),o.map((e=>Ut.jsx(A,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:Ut.jsx(j,{sx:{background:t.custom.palette.green[300],height:"100%"}})},`grid-2-${e}`)))]})})}),!!e&&Ut.jsx(j,{sx:{backgroundColor:t.custom.palette.surface.default,borderRadius:t.spacing(t.custom.radius.md),bottom:16,filter:t.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:Ut.jsx(Xo,{variation:"sm",component:"p",weight:"bold",children:e})})]})},Or=({children:e,...t})=>e,Fr=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),Rr=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"& .MuiButtonBase-root":{":hover":{background:e.custom.palette.interaction.hoverOnDark},":active":{background:e.custom.palette.interaction.pressOnDark}}}),Ir=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),Ar=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),Tr=(e,t)=>({borderRadius:"default"===e?t.spacing(t.custom.radius.md):t.custom.radius.round}),Vr={xs:3*oo,sm:3.5*oo,md:4*oo,lg:5*oo,xl:6*oo},Pr=e=>({height:Vr[e],width:Vr[e]}),Br={xs:2*oo,sm:2*oo,md:2*oo,lg:2.5*oo,xl:3*oo},Hr=e=>({height:Br[e],width:Br[e]}),_r=v(P)((({theme:e,variation:t,shape:o="default",sizing:n})=>({boxSizing:"border-box",transition:"all 200ms ease",...o&&{...Tr(o,e)},...n&&{...Pr(n)},"&.MuiIconButton-root":{..."default"===t&&{...Fr(e)},..."toggle"===t&&{...Rr(e)},..."outlined"===t&&{...Ir(e)},..."raised"===t&&{...Ar(e)},...o&&{...Tr(o,e)},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:focus":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...n&&{...Hr(n)},position:"relative",zIndex:1}}))),zr=({children:e,message:t,variation:o="primary",...n})=>{const r=h();if("primary"===o)return Ut.jsx(B,{...n,componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:r.spacing(r.custom.radius.sm),filter:`drop-shadow(${r.custom.elevation.overlay})`}}}},title:t,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:Ut.jsx(j,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})},Dr=({icon:e,loading:t,tooltipMessage:o,sizing:n,slotProps:r,...i})=>{const a=()=>Ut.jsx(_r,{...i,sizing:n,children:t?Ut.jsx(bn,{sizing:n}):e});return o?Ut.jsx(zr,{message:o,...r?.tooltip,children:a()}):a()},Nr=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderTopLeftRadius:0}}),Zr=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopLeftRadius:0,borderBottomLeftRadius:0}}),Wr=v(H)((({theme:e,variation:t,orientation:o="horizontal",iconColor:n,sizing:r="lg",groupRaised:i=!1})=>({"&.MuiButtonGroup-root":{border:`1px solid ${e.custom.palette.stroke.default}`,...i&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{borderRadius:0,..."default"===t&&{...Fr(e)},..."toggle"===t&&{...Rr(e)},..."vertical"===o&&{...Nr(e)},..."horizontal"===o&&{...Zr(e)},...r&&{...Pr(r)}},"& .MuiSvgIcon-root":{...r&&{...Hr(r)},fill:n||"inherit"}}}))),Ur=({ButtonGroupProps:e,children:t,...o})=>Ut.jsx(Wr,{...o,...e,children:t}),qr=({sx:e,...t})=>Ut.jsx(Tn,{...t,sx:Ee({fontSize:{xs:nn.sm.body.md,sm:nn.sm.body.md,md:nn.sm.body.md,lg:nn.lg.body.md,xl:nn.lg.body.md}},!!e&&{...e})}),Gr=v(j)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:Jt,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${Jt}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:Jt,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${Jt}px)`}}}}}))),Yr=({children:e,width:t})=>Ut.jsx(Gr,{sx:{width:t},children:e}),Xr=v(Vn)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),Jr=({disabled:e,children:t})=>Ut.jsx(Xr,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:t}),Kr=v(_n)((()=>({marginRight:0}))),Qr=v(j)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:Yt,width:`calc(50% - ${Qt/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:Yt,width:`calc(50% - ${Qt/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),ei=e=>Ut.jsx(Qr,{sx:{textAlign:"center",position:"relative"},children:Ut.jsx(Kr,{...e})}),ti=({options:e=[],disabled:t=!1,sizing:o="lg",onChange:n,internalChange:r,value:i})=>{const a=h();function s(e){console.warn(e),n(e.value),r&&r()}return Ut.jsx(j,{children:Ut.jsx(Yr,{children:Ut.jsx(A,{container:!0,justifyContent:"space-between",children:e.map((e=>Ut.jsxs(A,{item:!0,sm:!0,onClick:()=>s(e),sx:{...!t&&{cursor:"pointer"},textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{...!t&&{backgroundColor:a.custom.palette.interaction.hover}}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{...!t&&{backgroundColor:a.custom.palette.input.default,borderColor:a.custom.palette.stroke.focus,boxShadow:a.custom.boxShadow.input.focus},"&:before":{...!t&&{backgroundColor:a.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:a.custom.palette.purple[500]}}}},children:[Ut.jsx(ei,{sizing:o,disabled:t,onChange:t=>s(e),checked:i===e.value},e.value),Ut.jsx(j,{sx:{mt:no.xs,width:"100%"},children:Ut.jsx(Jr,{disabled:t,children:e.label})})]},e.value)))})})})},oi=v(_)((({theme:e,disabled:t})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:t?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:t?"none":"auto","&:hover":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),ni=e=>e.target&&"_blank"===e.target?Ut.jsx(oi,{rel:"noopener",...e}):Ut.jsx(oi,{...e}),ri=()=>Ut.jsx(j,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:Ut.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),ii=e=>Ut.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:Ut.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),ai=v(j)((({theme:e})=>({alignItems:"center",cursor:"pointer",display:"flex",flexDirection:"column",gap:e.spacing(.5)}))),si=v(j)((({theme:e})=>({alignItems:"center",color:e.custom.palette.text.secondary,display:"flex",opacity:0,transition:e.custom.easing.input}))),li=v(Xo)((({active:e,theme:t})=>({color:e?t.custom.palette.text.primary:t.custom.palette.text.secondary,textAlign:"center"}))),ci=v(w)((({active:e,fullWidth:t,theme:o})=>({alignItems:"center",backgroundColor:e?o.custom.palette.interaction.press:"transparent",borderRadius:o.spacing(o.custom.radius.md),color:o.custom.palette.text.primary,display:"flex",gap:o.spacing(1),justifyContent:t?"space-between":"center",minWidth:0,padding:o.spacing(1),textTransform:"none",width:t?"100%":"auto","&:hover":{backgroundColor:o.custom.palette.interaction.hover,"& > div":{opacity:1}},"&:focus":{backgroundColor:o.custom.palette.interaction.hover},"&:active":{backgroundColor:o.custom.palette.interaction.press},"&:disabled":{backgroundColor:o.custom.palette.interaction.disabled,color:o.custom.palette.text.disabled}}))),ui=({active:e,label:t,href:o,icon:n,onClick:r,variation:i})=>"sm"===i?Ut.jsxs(ai,{onClick:r,children:[Ut.jsx(ci,{active:e,children:Ut.jsx(j,{display:"flex",alignItems:"center",gap:1,children:n&&Ut.jsx(po,{name:n,size:24})})}),Ut.jsx(li,{component:"p",variation:"sm",active:e,children:t})]}):Ut.jsxs(ci,{onClick:r,fullWidth:!0,active:e,children:[Ut.jsxs(j,{display:"flex",alignItems:"center",gap:1.5,children:[n&&Ut.jsx(po,{name:n,size:24}),Ut.jsx(Xo,{component:"p",variation:"lg",children:t})]}),o&&Ut.jsx(si,{children:Ut.jsx(po,{name:"open-in-new",size:20})})]});function di(t){if("undefined"==typeof window)return t;const o=e.useRef(null);return e.useLayoutEffect((()=>{o.current=t})),e.useCallback(((...e)=>{var t;null===(t=o.current)||void 0===t||t.call(o,...e)}),[])}const pi={};const mi={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1},hi=e,fi="useId"in hi?()=>hi.useId():()=>{};function gi({parentPopupState:e,popupId:t=fi(),variant:a,disableAutoFocus:s}){const l=o(!0);n((()=>(l.current=!0,()=>{l.current=!1})),[]);const[c,u]=r(mi),d=i((e=>{l.current&&u(e)}),[]),p=i((e=>d((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),m=di((e=>(c.isOpen?g(e):h(e),c))),h=di((t=>{const o=t instanceof Element?void 0:t,n=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void d((e=>({...e,_deferNextOpen:!0})));const r=null==o?void 0:o.clientX,i=null==o?void 0:o.clientY,s="number"==typeof r&&"number"==typeof i?{left:r,top:i}:void 0,l=r=>{var i,l;if(t||r.setAnchorElUsed||"dialog"===a||(l="eventOrAnchorEl should be defined if setAnchorEl is not used",pi[i="missingEventOrAnchorEl"]||(pi[i]=!0,console.error("[material-ui-popup-state] WARNING",l))),e){if(!e.isOpen)return r;setTimeout((()=>e._setChildPopupState(C)))}const c={...r,isOpen:!0,anchorPosition:s,hovered:"mouseover"===(null==o?void 0:o.type)||r.hovered,focused:"focus"===(null==o?void 0:o.type)||r.focused,_openEventType:null==o?void 0:o.type};return r.setAnchorElUsed||(null!=o&&o.currentTarget?c.anchorEl=null==o?void 0:o.currentTarget:n&&(c.anchorEl=n)),c};d((e=>e._deferNextOpen?(setTimeout((()=>d(l)),0),{...e,_deferNextOpen:!1}):l(e)))})),f=t=>{const{_childPopupState:o}=t;return setTimeout((()=>{null==o||o.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},g=di((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?d((e=>e._deferNextClose?(setTimeout((()=>d(f)),0),{...e,_deferNextClose:!1}):f(e))):d((e=>({...e,_deferNextClose:!0})))})),x=i(((e,t)=>{e?h(t):g(t)}),[]),b=di((e=>{const{relatedTarget:t}=e;d((e=>!e.hovered||t instanceof Element&&vi(t,C)?e:e.focused?{...e,hovered:!1}:f(e)))})),y=di((e=>{if(!e)return;const{relatedTarget:t}=e;d((e=>!e.focused||t instanceof Element&&vi(t,C)?e:e.hovered?{...e,focused:!1}:f(e)))})),v=i((e=>d((t=>({...t,_childPopupState:e})))),[]),C={...c,setAnchorEl:p,popupId:t??void 0,variant:a,open:h,close:g,toggle:m,setOpen:x,onBlur:y,onMouseLeave:b,disableAutoFocus:s??Boolean(c.hovered||c.focused),_setChildPopupState:v};return C}function xi({isOpen:e,popupId:t,variant:o}){return{..."popover"===o?{"aria-haspopup":!0,"aria-controls":e?t:void 0}:"popper"===o?{"aria-describedby":e?t:void 0}:void 0}}function bi(e){return{...xi(e),onClick:e.open,onTouchStart:e.open}}function yi({isOpen:e,anchorEl:t,anchorPosition:o,close:n,popupId:r,onMouseLeave:i,disableAutoFocus:a,_openEventType:s}){return{id:r,anchorEl:t,anchorPosition:o,anchorReference:"contextmenu"===s?"anchorPosition":"anchorEl",open:e,onClose:n,onMouseLeave:i,...a&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function vi(e,t){const{anchorEl:o,_childPopupState:n}=t;return Ci(o,e)||Ci(function(e,{popupId:t}){if(!t)return null;const o="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof o.getElementById?o.getElementById(t):null}(e,t),e)||null!=n&&vi(e,n)}function Ci(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}const wi=e=>({boxShadow:e.custom.elevation.raised}),ji=e=>({boxShadow:e.custom.elevation.overlay}),ki=(e,t)=>{switch(t){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},Si=(e,t)=>{switch(e){case"sunken":return t.custom.palette.surface.sunken;case"raised":return t.custom.palette.surface.raised;case"overlay":return t.custom.palette.surface.overlay;default:return t.custom.palette.surface.default}},Mi=v(z)((({theme:e,variation:t="default",borderradius:o})=>({boxShadow:"unset",borderRadius:ki(e,o),background:Si(t,e),..."overlay"===t&&{...ji(e)},..."raised"===t&&{...wi(e)}}))),Li=({children:e,variation:t="overlay",sx:o,...n})=>Ut.jsx(Mi,{variation:t,...n,sx:Ee(o||{},{}),children:e}),Ei=({children:e,description:t,title:o})=>Ut.jsx(Li,{variation:"raised",borderradius:"md",sx:{maxWidth:200},children:Ut.jsxs(x,{sx:{gap:2,p:2},children:[Ut.jsxs(x,{sx:{gap:1},children:[Ut.jsx(Xo,{variation:"sm",component:"p",weight:"bold",children:o}),Ut.jsx(Xo,{variation:"sm",component:"p",children:t})]}),e]})}),$i=v(Li)((({notification:e,theme:t})=>({alignItems:"center",cursor:"pointer",display:"flex",height:40,justifyContent:"center",position:"relative",width:40,...e&&{"&:after":{background:t.custom.palette.red[500],borderRadius:t.custom.radius.round,content:'""',height:t.spacing(1),position:"absolute",right:t.spacing(.5),top:t.spacing(.5),width:t.spacing(1)}}}))),Oi=({notification:e,onClick:t})=>Ut.jsx($i,{variation:"overlay",borderradius:"md",notification:e,onClick:t,children:Ut.jsx(po,{name:"notification"})}),Fi=({children:e,description:t,title:o,variation:n})=>{if("sm"===n){const n=gi({variant:"popper"});return Ut.jsx(D,{onClickAway:()=>n.close(),children:Ut.jsxs(j,{sx:{position:"relative"},children:[Ut.jsx(j,{...bi(n),children:Ut.jsx(Oi,{notification:!0})}),Ut.jsx(N,{...yi(n),placement:"right-end",transition:!0,children:({TransitionProps:n})=>Ut.jsx(Z,{...n,timeout:350,children:Ut.jsx(j,{sx:{pl:1},children:Ut.jsx(Ei,{description:t,title:o,children:e})})})})]})})}return Ut.jsx(Ei,{description:t,title:o,children:e})},Ri=a(((e,o)=>{const{decimalSeparator:n,thousandSeparator:r,value:i,...a}=e,s=t.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"group"===e.type))?.value??"";var e}),[void 0]),l=t.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"decimal"===e.type))?.value??".";var e}),[void 0]);return Ut.jsx(Oe,{...a,value:i??"",getInputRef:o,thousandSeparator:r??s,decimalSeparator:n??l})})),Ii=({disabled:e=!1,InputProps:t,inputProps:o,placeholder:n,hideActionButtons:i=!1,max:a=1/0,min:s=-1/0,startAdornment:l,endAdornment:c,internalChange:u,numericFormatProps:d,onChange:p,step:m=1,value:f,...g})=>{const b=h(),[y,v]=r(f),C=y,w=e=>{v(e),p&&p(e),u&&u()},j=()=>{const e=(null==C||Number.isNaN(C)?0:C)+m;e>a||w(e)},k=()=>{const e=(null==C||Number.isNaN(C)?0:C)-m;e<s||w(e)},S={decimalScale:5,isAllowed:({floatValue:e})=>null==e||e>=s&&e<=a,max:a!==1/0?a:void 0,min:s!==-1/0?s:void 0,step:1!==m?m:void 0,onKeyDown:e=>{"ArrowUp"===e.key?j():"ArrowDown"===e.key&&k()},onValueChange:({floatValue:e})=>{e!==C&&w(e)},value:C,...d};return Ut.jsx(Mn,{placeholder:n,sx:{height:eo,"& .MuiOutlinedInput-input":{minWidth:Kt,pl:l?1:2,pr:l?1:2}},...g,value:C??"",disabled:e,InputProps:{...t,inputComponent:Ri,startAdornment:l?Ut.jsx(L,{position:"start",sx:{pl:1},children:l}):null,endAdornment:!i&&Ut.jsxs(x,{gap:b.custom.margin.sm,sx:{height:"100%",alignItems:"center"},direction:"row",children:[c&&Ut.jsx(L,{position:"end",children:c}),Ut.jsxs(x,{sx:{height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${b.custom.palette.stroke.default}`},children:[Ut.jsx(W,{onClick:()=>j(),sx:{flex:1,borderTopRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:Ut.jsx(je,{fontSize:"inherit"})}),Ut.jsx(U,{}),Ut.jsx(W,{onClick:()=>k(),sx:{flex:1,borderBottomRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:Ut.jsx(ke,{fontSize:"inherit"})})]})]})},inputProps:{...o,...S}})};const Ai=(e,t)=>"light"===t?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},Ti=(e,t,o)=>{switch(t){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===o?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===o?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===o?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},Vi=v(q)((({theme:e,variation:t,weight:o})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...Ti(e,t,o),"& .MuiChip-label":{fontSize:`${nn.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...Ai(0,o)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...Ti(e,t,o),...Ai(0,o)}}))),Pi=({body:e,maxWidth:t,...o})=>Ut.jsx(Vi,{label:e,sx:{...t&&{maxWidth:`${t}px`}},...o});var Bi=function(){function e(e){var t=this;this._insertTag=function(e){var o;o=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,o),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Hi="undefined"!=typeof document,_i=function(e,t,o){for(var n=0,r=0;n=r,r=tt(),38===n&&12===r&&(t[o]=1),!Qe(r);)Ke();return nt(e,rt)},zi=function(e,t){return Ue(function(e,t){var o=-1,n=44;do{switch(Qe(n)){case 0:38===n&&12===tt()&&(t[o]=1),e[o]+=_i(rt-1,t,o);break;case 2:e[o]+=ot(n);break;case 4:if(44===n){e[++o]=58===tt()?"&\f":"",t[o]=e[o].length;break}default:e[o]+=et(n)}}while(n=Ke());return e}(qe(e),t))},Di=new WeakMap,Ni=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,o=e.parent,n=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Di.get(o))&&!n){Di.set(e,!0);for(var r=[],i=zi(t,r),a=o.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Zi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Wi(e,t){switch(Ge(e,t)){case 5103:return _e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+ze+e+De+e+e;case 6828:case 4268:return _e+e+De+e+e;case 6165:return _e+e+De+"flex-"+e+e;case 5187:return _e+e+He(e,/(\w+).+(:[^]+)/,_e+"box-$1$2"+De+"flex-$1$2")+e;case 5443:return _e+e+De+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return _e+e+De+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+De+He(e,"shrink","negative")+e;case 5292:return _e+e+De+He(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+He(e,"-grow","")+_e+e+De+He(e,"grow","positive")+e;case 4554:return _e+He(e,/([^-])(transform)/g,"$1"+_e+"$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+De+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,_e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+ze+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Je(e,"stretch")?Wi(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ye(e,t+1))break;case 6444:switch(Ye(e,Xe(e)-3-(~Je(e,"!important")&&10))){case 107:return He(e,":",":"+_e)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(45===Ye(e,14)?"inline-":"")+"box$3$1"+_e+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return _e+e+De+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+De+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+De+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+De+e+e}return e}var Ui,qi,Gi=Hi?void 0:(Ui=function(){return e=function(){return{}},t=Object.create(null),function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]};var e,t},qi=new WeakMap,function(e){if(qi.has(e))return qi.get(e);var t=Ui(e);return qi.set(e,t),t}),Yi=[function(e,t,o,n){if(e.length>-1&&!e.return)switch(e.type){case Ze:e.return=Wi(e.value,e.length);break;case Ne:return Pe([Be(e,{value:He(e.value,"@","@"+_e)})],n);case Ae:if(e.length)return Te(e.props,(function(t){switch(Ve(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pe([Be(e,{props:[He(t,/:(read-\w+)/,":"+ze+"$1")]})],n);case"::placeholder":return Pe([Be(e,{props:[He(t,/:(plac\w+)/,":"+_e+"input-$1")]}),Be(e,{props:[He(t,/:(plac\w+)/,":"+ze+"$1")]}),Be(e,{props:[He(t,/:(plac\w+)/,De+"input-$1")]})],n)}return""}))}}],Xi=function(e){var t=e.key;if(Hi&&"css"===t){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,r,i=e.stylisPlugins||Yi,a={},s=[];Hi&&(n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),o=1;o<t.length;o++)a[t[o]]=!0;s.push(e)})));var l=[Ni,Zi];if(Gi){var c=[Fe],u=Ie(l.concat(i,c)),d=Gi(i)(t),p=function(e,t){var o,n=t.name;return void 0===d[n]&&(d[n]=(o=e?e+"{"+t.styles+"}":t.styles,Pe(We(o),u))),d[n]};r=function(e,t,o,n){var r=t.name,i=p(e,t);return void 0===g.compat?(n&&(g.inserted[r]=!0),i):n?void(g.inserted[r]=i):i}}else{var m,h=[Fe,Re((function(e){m.insert(e)}))],f=Ie(l.concat(i,h));r=function(e,t,o,n){var r;m=o,r=e?e+"{"+t.styles+"}":t.styles,Pe(We(r),f),n&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new Bi({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return g.sheet.hydrate(s),g};const Ji=v("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),Ki=e=>{const[t,o]=r(null),n=t?.contentWindow?.document?.body,i=Xi({key:"css",container:t?.contentWindow?.document?.head,prepend:!0});return Ut.jsx(Ji,{ref:o,children:n&&st(Ut.jsx(at,{value:i,children:e.children}),n)})},Qi=()=>Ut.jsxs(x,{gap:.5,flexDirection:"row",children:[Ut.jsx(f,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),Ut.jsxs(f,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ut.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:Ut.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),Ut.jsx("defs",{children:Ut.jsx("clipPath",{id:"clip0_900_1816",children:Ut.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),ea=({options:e,onChange:t,other:o,value:i,internalChange:a,...s})=>{const l=o?.enabled,c="other-option",u=`${c}-value-`,[d,p]=r(i),[m,h]=r(!1);n((()=>{!m&&d?.includes(u)?h(!0):m&&h(!1)}),[d]);return Ut.jsxs(Ut.Fragment,{children:[Ut.jsxs(I,{...s,value:d,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,o)=>{t&&t(o),p(o),a&&a()},children:[e?e.map(((e,t)=>Ut.jsx(wn,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:Ut.jsx(_n,{})},t))):null,l&&Ut.jsx(wn,{label:o?.label||"Other",value:u,control:Ut.jsx(_n,{checked:d?.includes(u)})},c)]}),m&&Ut.jsx(j,{sx:{mt:1},children:Ut.jsx(Ln,{fullWidth:!0,autoFocus:!0,placeholder:o?.placeholder,defaultValue:d?.replace(u,""),onChange:e=>{var o;t&&t((o=e.target.value,`${u}${o}`)),a&&a()},required:!0})})]})},ta=({handleSelectAll:e,isIndeterminate:t,isAllSelected:o,sizing:i})=>{const[a,s]=r(!1),l=h();return n((()=>{o&&s(o)}),[o]),Ut.jsxs(x,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:t=>{const o=!a;s(o),e(t,o)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[Ut.jsx(G,{sx:{cursor:"pointer",fontSize:()=>i&&an[i]},children:"Select all"}),Ut.jsx(kn,{sizing:"default",indeterminate:t,checked:a})]})},oa=a((({children:e,handleSelectAll:t,showSelectAll:o,value:n=[],selections:r,sizing:i,...a},s)=>{const l=Array.isArray(n)&&n.length===r.length,c=Array.isArray(n)&&n.length>0&&n.length<r.length;return Ut.jsxs("ul",{ref:s,...a,children:[o&&Ut.jsx(ta,{handleSelectAll:t,isIndeterminate:c,isAllSelected:l,sizing:i}),e]})})),na="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",ra=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},ia=(e,t)=>({"& .MuiTypography-root":{height:ra(t),fontSize:an[t],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm)}}),aa=e=>({fontSize:`${nn.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(ro.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),sa=(e,t)=>{switch(t){case"lg":return{height:ra(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.lg,height:uo.lg,top:`calc(50% - ${uo.lg/2}px)`}};case"md":return{height:ra(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.md,height:uo.md,top:`calc(50% - ${uo.md/2}px)`}};case"xs":return{height:ra(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.xs,height:uo.xs,top:`calc(50% - ${uo.xs/2}px)`}};default:return{height:ra("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.lg,height:uo.lg,top:`calc(50% - ${uo.lg/2}px)`}}}},la=e=>({position:"relative",fontSize:`${nn.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:uo.xl,height:uo.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),ca=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:na}}}}),ua=v(Y)((({theme:e,sizing:t,value:o})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:uo[t],height:uo[t]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...t&&{height:"xs"===t?2*oo+"px":3*oo+"px"},paddingTop:0,paddingBottom:0,paddingLeft:o&&Array.isArray(o)&&o.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:an[t],gap:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*oo+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...t&&{height:"xs"===t?2*oo+"px":3*oo+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),da=v(q)((({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),pa=v(M)((({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),ma=v(N)((({theme:e,sizing:t})=>({"& .MuiPaper-root":{...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===t?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===t?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:na,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${X.listbox}`]:{overflowX:"hidden",[`& .${X.option}`]:{fontSize:an[t],...t&&{height:"lg"===t?5*oo+"px":4*oo+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),ha=e=>Ut.jsx(ma,{...e}),fa=({selections:e,disableClearable:t=!1,disabled:o,internalChange:n,multiple:i=!0,onChange:s,placeholder:l="",renderListItem:c,sizing:u="lg",value:d=(i?[]:"")})=>{const[p,m]=r(e.filter((e=>d.includes(e?.value)))),h=(t,o)=>{if(s){const r=o?e.map((({value:e})=>e)):[];m(o?e:[]),s(t,r,"selectOption"),n&&n()}},f=e=>null!==e&&(!Array.isArray(e)||e.length>0);return Ut.jsx(ua,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:Ut.jsx(Se,{}),sizing:u,disabled:o,disableClearable:t,autoComplete:!0,multiple:i,renderInput:e=>Ut.jsx(pa,{...e,placeholder:f(p)?void 0:l,sizing:u}),options:e,renderTags:(e,t)=>e.map(((e,o)=>{const{key:n,...r}=t({index:o});return Ut.jsx(da,{sizing:u,deleteIcon:Ut.jsx(Me,{fontSize:"small"}),label:e.label,...r},n)})),onChange:(e,t,o)=>{const r=Array.isArray(t)?t.map((e=>e.value)):t?.value??null;m(t),s?.(e,r,o),n?.()},PopperComponent:e=>Ut.jsx(ha,{...e,sizing:u}),isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,{selected:o})=>{const{key:n,...r}=e;return Ut.jsxs("li",{...r,children:[Ut.jsx("span",{children:c?c(t.value,t.label):t.label}),Ut.jsx(ye,{sx:{visibility:o?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:a(((t,o)=>Ut.jsx(oa,{ref:o,...t,showSelectAll:i,handleSelectAll:h,value:p,selections:e,sizing:u}))),value:p})},ga=v(V)((({theme:e})=>({...{...la(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),xa=({children:e,selected:t,...o})=>Ut.jsx(ga,{...o,children:Ut.jsxs(j,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[Ut.jsx(j,{children:e}),t&&Ut.jsx(ye,{})]})}),ba=v(J)((({theme:e,sizing:t})=>({...{...aa(e)},...t&&{...sa(e,t)},...t&&{...ia(e,t)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),ya=({selections:e,autoComplete:t=!1,disabled:o=!1,disablePortal:n=!1,inputRef:r,internalChange:i,multi:a=!0,onChange:s,placeholder:l="",selectOptionProps:c,sizing:u="lg",sx:d,value:p=[],renderListItem:m,...f})=>{const g=h(),x=Er();return t?Ut.jsx(fa,{selections:e,placeholder:l,disabled:o,sizing:u,onChange:(e,t)=>{s&&s(t||""),i&&i()},value:Array.isArray(p)?p??[]:p??"",internalChange:i,renderListItem:m,multiple:a}):Ut.jsxs(ba,{sizing:u,inputRef:r,MenuProps:{disablePortal:n,sx:ca,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:Se,renderValue:t=>l&&!t?Ut.jsx(Xo,{component:"p",variation:"sm"===x||"md"===x?"sm":"lg",sx:{color:g.custom.palette.text.placeholder},children:l}):Ut.jsx(Xo,{component:"p",variation:"sm"===x||"md"===x?"sm":"lg",children:e?.find((({value:e})=>e===t))?.label}),onChange:(e,t)=>{s&&s(e,t),i&&i()},sx:d,value:p,...f,children:[""!==l.trim()&&Ut.jsx(xa,{disabled:!0,value:"","aria-label":"placeholder",children:l},"placeholder"),e?.map((({value:e,label:t})=>Ut.jsx(xa,{value:e,...c,children:m?m(e,t):t},e)))]})},va=v(j)((({theme:e,disabled:t,fullWidth:o})=>({width:o?"100%":"auto",minWidth:240,backgroundColor:t?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${t?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...t&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),Ca=v(qr)((({theme:e})=>({fontSize:nn.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),wa=({label:e="Placeholder",disabled:t,onChange:o,options:n,fullWidth:r})=>{const i=h(),a=n.map((e=>e.label)).indexOf(e);return Ut.jsx(va,{disabled:t,fullWidth:r,children:Ut.jsxs(x,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[Ut.jsxs(j,{display:"flex",alignItems:"center",sx:{"& svg":{fill:i.custom.palette.icon.secondary}},children:[Ut.jsx(Le,{sx:{width:uo.lg,height:uo.lg,mr:i.custom.padding.sm}}),Ut.jsx(Ca,{align:"left",disabled:t,children:e})]}),Ut.jsx(ya,{name:"rank",sizing:"xs",selections:n.map(((e,t)=>({label:`${t+1}`,value:`${t}`}))),disabled:t,value:`${a}`,onChange:function(e){const t=a,r=Number(e.target.value),i=n;let s=1;const l=i.splice(t,s)[0];s=0,i.splice(r,s,l),o(i)},MenuProps:{anchorOrigin:{vertical:Qt,horizontal:"center"}}})]})})},ja=s({attributes:{},listeners:void 0,ref(){}}),ka=e=>bt({...e,wasDragging:!0});function Sa({children:e,top:t,bottom:o,id:n}){const{attributes:r,isDragging:i,listeners:a,setNodeRef:s,setActivatorNodeRef:c,transform:u,transition:d}=xt({id:n,animateLayoutChanges:ka}),p=l((()=>({attributes:r,listeners:a,ref:c})),[r,a,c]),m={opacity:i?.4:void 0,transform:kt.Translate.toString(u),transition:d};return Ut.jsx(ja.Provider,{value:p,children:Ut.jsxs(x,{className:"SortableItem",...r,sx:{position:"relative",...m,width:"100%"},ref:s,children:[t&&t,Ut.jsx(j,{...a,sx:{display:"flex",cursor:"grab"},children:e}),o&&o]})})}const Ma={sideEffects:lt({styles:{active:{opacity:"0.4"}}})};function La({children:e}){return st(Ut.jsx(ct,{zIndex:999999,dropAnimation:Ma,children:e}),document.body)}const Ea=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class $a extends ft{static activators=[{eventName:"onMouseDown",handler:Ea}]}class Oa extends gt{static activators=[{eventName:"onTouchStart",handler:Ea}]}function Fa({items:e,onChange:t,renderItem:o,disabled:n,direction:i}){if(!e)return;const[a,s]=r(null),c=l((()=>e.find((e=>e?.id===a?.id))),[a,e]),d=h(),p=K(d.breakpoints.down("md")),m=ut(dt($a,{activationConstraint:{distance:5}}),dt(Oa,{activationConstraint:{delay:p?300:0,tolerance:8}}),dt(pt,{coordinateGetter:yt}));return Ut.jsxs(mt,{measuring:{droppable:{strategy:ht.Always}},sensors:m,onDragStart:({active:e})=>{s(e)},onDragEnd:({active:o,over:n})=>{if(n&&o.id!==n?.id){const r=e.findIndex((({id:e})=>e===o.id)),i=e.findIndex((({id:e})=>e===n.id));t(vt(e,r,i))}s(null)},onDragCancel:()=>{s(null)},children:[Ut.jsx(Ct,{items:e,disabled:n,strategy:"horizontal"===i?wt:jt,children:Ut.jsx(x,{sx:{..."horizontal"===i&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:e.map((e=>Ut.jsx(u,{children:o(e)},e.id)))})}),Ut.jsx(La,{children:c?o(c,!0,!!a):null})]})}Fa.Item=Sa,Fa.DragHandle=function(){const{attributes:e,listeners:t,ref:o}=c(ja);return Ut.jsx(j,{...e,...t,ref:o,children:Ut.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:Ut.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const Ra=({labelTop:e,labelBottom:t,disabled:o,fullWidth:n=!1,options:i,onChange:a,value:s,internalChange:l})=>{const c=h(),[u,d]=r(s||i);function p(e){d(e),a(e.map((({id:e})=>e))),l&&l()}return Ut.jsxs(x,{gap:c.custom.margin.sm,textAlign:"center",sx:{width:n?"100%":"auto"},children:[e&&Ut.jsx(qr,{disabled:o,sx:{color:c.custom.palette.text.secondary},children:e}),Ut.jsx(Fa,{onChange:function(e){d(e),a(e.map((({id:e})=>e))),l&&l()},items:u,direction:"vertical",renderItem:({...e})=>Ut.jsx(Sa,{id:e.id,children:Ut.jsx(wa,{onChange:p,...e,options:u,disabled:o,selections:e.selections,fullWidth:n})})}),t&&Ut.jsx(qr,{disabled:o,sx:{color:c.custom.palette.text.secondary},children:t})]})},Ia=v(Lt)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),Aa=({onChange:e,value:t,internalChange:n,minWidth:r=100,minHeight:i=100,maxHeight:a,placeholder:s,autoFocus:l})=>{const c=o(null),u=h();return Ut.jsx(Ia,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:i,minWidth:r,maxHeight:a}},ref:c,onUpdate:({editor:t})=>{e&&e(t.storage.markdown.getMarkdown()),n&&n()},extensions:[Mt.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),St.configure({placeholder:s}),Ot],content:t,renderControls:()=>Ut.jsxs(x,{gap:u.custom.margin.xs,direction:"row",children:[Ut.jsx(Et,{}),Ut.jsx($t,{})]})})},Ta=e=>({"& .MuiSlider-thumb":{width:Kt,height:Kt,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:Yt,height:Yt,backgroundColor:e.custom.palette.icon.primaryInverted}}}),Va=e=>Array.isArray(e),Pa=(e,t)=>({height:Xt,padding:`${Xt}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${Qt}px)`,left:`-${Jt}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:t&&Va(t)?`-${Xt+1}px`:`-${Jt+1}px`,width:`calc(100% + ${Jt}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:Yt,width:Yt,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),Ba=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:Yt,minWidth:Qt,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${nn.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),Ha=v(Q)((({theme:e,value:t})=>({"&.MuiSlider-root":{width:`calc(100% - ${Qt}px)`,marginLeft:Qt/2,...{...Pa(e,t)},...{...Ta(e)},...{...Ba(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),_a=[1,2,5,10],za=(e,t)=>{if(e>=t)return console.warn("Min value must be less than max value"),1;const o=(t-e)/9;if(o<=1)return 1;const n=Math.floor(Math.log10(o)),r=o/Math.pow(10,n);return i=r,(_a.find((e=>i<=e))??_a[_a.length-1])*Math.pow(10,n);var i},Da=({labelLeft:e,labelMiddle:t,labelRight:o,labelRightProps:n,labelLeftProps:r,disabled:i,onChange:a,internalChange:s,max:l=5,min:c=1,step:u,value:d=c,...p})=>{const{sanitisedMin:m,sanitisedMax:h}=((e,t)=>e>=t?{sanitisedMin:1,sanitisedMax:5}:{sanitisedMin:e,sanitisedMax:t})(c,l),f=((e,t,o)=>{const n=[];for(let r=e;r<=t;r+=o)n.push({value:r,label:r===e||r===t||r+o<=t?r.toString():void 0});return n[n.length-1].value!==t&&n.push({value:t,label:t.toString()}),n})(m,h,u??za(c,l));return Ut.jsxs(j,{sx:{minWidth:300},children:[Ut.jsx(j,{height:24,children:Ut.jsx(Ha,{valueLabelDisplay:i?"on":"auto",disabled:i,marks:f,step:u,max:h,min:m,onChangeCommitted:()=>{s&&s()},onChange:(e,t,o)=>{a&&a(e,t,o)},value:d,...p})}),Ut.jsxs(j,{sx:{display:"flex",justifyContent:"space-between",pt:ro.lg,gap:1},children:[e&&Ut.jsx(j,{sx:{flex:1},children:Ut.jsx(Vn,{disabled:i,showicon:!1,...r,children:e})}),t&&Ut.jsx(j,{sx:{flex:1,textAlign:"center"},children:Ut.jsx(Vn,{showicon:!1,disabled:i,children:t})}),o&&Ut.jsx(j,{sx:{flex:1,textAlign:"right"},children:Ut.jsx(Vn,{...n,showicon:!1,disabled:i,children:o})})]})]})},Na=v(ee)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),Za=({internalChange:e,onChange:t,...o})=>Ut.jsx(Na,{...o,onChange:(o,n)=>{t&&t(o,n),e&&e()},icon:Ut.jsx(f,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:Ut.jsx(f,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),Wa=v((e=>Ut.jsx(te,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),Ua=v(Mn)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:eo,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:uo.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),qa=({startAdornment:e,endAdornment:t,onChange:o,internalChange:n,inputRef:r,...i})=>Ut.jsx(Ua,{multiline:!0,inputRef:r,InputProps:{startAdornment:e?Ut.jsx(L,{position:"start",children:e}):null,endAdornment:t?Ut.jsx(L,{position:"start",children:t}):null},onChange:e=>{o&&o(e),n&&n()},...i}),Ga=({typographyProps:e,text:t,sx:o})=>{const n=h();return Ut.jsx(j,{sx:Ee(o,{width:"100%",position:"relative",display:"flex",gap:4,my:n.spacing(n.custom.margin.md),"&:before":{content:'""',width:"100%",background:n.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:n.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:Ut.jsx(Xo,{align:"center",variation:"sm",component:"p",...e,children:t})})},Ya=({buttons:e,message:t,status:o="neutral",variation:n="sm"})=>{const r=h();return Ut.jsx(x,{sx:{backgroundColor:r.custom.palette.surface.overlay,borderRadius:r.spacing(r.custom.radius.lg),boxShadow:r.custom.elevation.overlay,color:r.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:Ut.jsxs(j,{sx:{display:"flex",flex:1,flexDirection:"sm"===n?"row":"column",gap:2},children:[Ut.jsxs(j,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&Ut.jsx(Xa,{status:o}),Ut.jsx(j,{sx:{display:"flex"},children:Ut.jsx(Xo,{variation:"md",component:"p",sx:{px:1,pt:.5},children:t})})]}),e&&Ut.jsx(j,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},Xa=({status:e})=>{const t=h();switch(e){case"neutral":return null;case"success":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.green[500],name:"check-circle"});case"warning":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.yellow[500],name:"error-outline"});case"danger":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.red[500],name:"warning-amber"});case"discover":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.purple[500],name:"lightbulb"})}},Ja=({backgroundColor:e,name:t})=>{const o=h();return Ut.jsx(j,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:Ut.jsx(j,{sx:{backgroundColor:e,borderRadius:o.custom.radius.round,color:o.custom.palette.white,display:"flex",p:.5},children:Ut.jsx(po,{name:t,size:20})})})},Ka=v(w)((({active:e,theme:t})=>({maxWidth:"100%",padding:t.spacing(.5),textTransform:"none",width:"100%",...dn(t,e)}))),Qa=v(j)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),es=v(x)({alignItems:"flex-start",display:"flex",justifyContent:"center"}),ts=v(x)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),os=v(j)((({active:e,theme:t})=>({alignItems:"center",borderRadius:t.custom.radius.round,cursor:"pointer",display:"flex",justifyContent:"center",padding:t.spacing(.5),...dn(t,e)}))),ns=({active:e,avatar:t,email:o,name:n,variation:r})=>{const i=h();return"sm"===r?Ut.jsx(j,{sx:{display:"flex",justifyContent:"center"},children:Ut.jsx(os,{active:e,children:Ut.jsx(Ko,{src:t,variation:"sm"})})}):Ut.jsx(Ka,{active:e,children:Ut.jsxs(Qa,{sx:{flex:1},children:[Ut.jsxs(Qa,{children:[Ut.jsx(Ko,{src:t,variation:"sm"}),Ut.jsxs(es,{children:[Ut.jsx(Xo,{variation:"sm",component:"p",lineHeight:1.2,children:n}),Ut.jsx(Xo,{variation:"xs",component:"p",sx:{color:i.custom.palette.text.secondary},lineHeight:1.2,children:o})]})]}),Ut.jsx(ts,{children:Ut.jsx(po,{name:"chevron-right",size:24})})]})})},rs=v(w)((({active:e,theme:t})=>({borderRadius:t.spacing(t.custom.radius.sm),maxWidth:"100%",padding:t.spacing(.75,1.5),textTransform:"none",width:"100%",...dn(t,e)}))),is=v(j)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),as=v(x)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),ss=({active:e,danger:t,hasChildren:o,selected:n,title:r})=>{const i=h();return Ut.jsx(rs,{active:e,children:Ut.jsxs(is,{sx:{flex:1},children:[Ut.jsx(is,{children:Ut.jsx(Xo,{variation:"md",component:"p",lineHeight:1.2,color:t?i.custom.palette.text.negative:i.custom.palette.text.primary,children:r})}),Ut.jsxs(as,{children:[o&&Ut.jsx(po,{name:"chevron-right",size:24}),n&&Ut.jsx(po,{name:"check-thin",size:24})]})]})})},ls=({button:e,children:t,state:o})=>Ut.jsx(D,{onClickAway:()=>o.close(),children:Ut.jsxs(j,{children:[Ut.jsx(j,{...bi(o),children:e}),Ut.jsx(N,{...yi(o),placement:"right-end",transition:!0,children:({TransitionProps:e})=>Ut.jsx(Z,{...e,timeout:350,children:Ut.jsx(j,{sx:{pl:1},children:t})})})]})}),cs=({avatar:e,email:t,menuItems:o,name:n,variation:r})=>{const i=gi({variant:"popper"});return Ut.jsx(ls,{state:i,button:Ut.jsx(ns,{active:i.isOpen,avatar:e,email:t,name:n,variation:r}),children:Ut.jsx(Li,{borderradius:"md",variation:"overlay",sx:{width:192},children:Ut.jsx(x,{sx:{p:1},children:o?.map(us)})})})},us=(e,t)=>{if(e.children?.length){const o=gi({variant:"popper"});return Ut.jsx(ls,{state:o,button:Ut.jsx(ss,{title:e.title,active:o.isOpen,hasChildren:!0,selected:e.selected}),children:Ut.jsx(Li,{borderradius:"md",variation:"overlay",sx:{width:192},children:Ut.jsx(x,{sx:{p:1},children:e.children.map(us)})})},t)}return Ut.jsx(ss,{title:e.title,selected:e.selected})};const ds=(e,t)=>{switch(e){case 1:return t.custom.palette.red[500];case 2:return t.custom.palette.yellow[500];case 3:case 4:return t.custom.palette.green[500];default:return t.custom.palette.icon.disabled}},ps=(e,t)=>{switch(e){case 1:return t.custom.palette.text.negative;case 2:return t.custom.palette.yellow[800];case 3:return t.custom.palette.green[800];case 4:return t.custom.palette.text.positive;default:return t.custom.palette.icon.disabled}},ms=v(oe)((({theme:e,score:t})=>({boxShadow:"unset",background:e.custom.palette.neutral[100],borderRadius:e.spacing(e.custom.radius.sm),[`.${ne.bar}`]:{borderRadius:e.spacing(e.custom.radius.sm),backgroundColor:ds(t,e)}}))),hs={translations:Pt.translations,graphs:Vt.adjacencyGraphs,dictionary:{...Vt.dictionary,...Pt.dictionary}};At.setOptions(hs);const fs=({label:e="Strength",width:t=60,value:o,onChange:i})=>{const[a,s]=r(0),l=h();return n((()=>{s(Tt(o).score)}),[o]),n((()=>{i(a)}),[a]),Ut.jsxs(x,{direction:"row",gap:1,sx:{alignItems:"center"},children:[Ut.jsx(Xo,{variation:"sm",component:"p",children:e}),Ut.jsx(ms,{variant:"determinate",value:0===a?6.6:25*a,score:a,sx:{width:t}}),Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:ps(a,l)},children:["","Very weak","Weak","Strong","Excellent"][a]})]})},gs=({helperText:e,inputName:t,errors:o,...n})=>{const r=Boolean(o&&o[t]);return r?Ut.jsx(Bt,{errors:o,name:t,render:({message:e})=>Ut.jsx(Vn,{showicon:!!e,state:"negative",children:e})}):e&&!r?Ut.jsx(Vn,{state:"default",...n,children:e}):null},xs={textfield:Ln,numberfield:Ii,textarea:qa,select:ya,checkbox:Sn,checkboxGroup:En,slider:Da,starRating:Za,differential:Zn,likert:ti,radioGroup:ea,ranking:Ra,richTextfield:Aa,customfield:In},bs=({name:e,fieldType:t,label:o,control:i,errors:a,labelProps:s,helperText:l,helpTextProps:c,validation:u,content:d,styleOverrides:p,defaultValue:m,onChange:f,watch:g,trigger:b,strengthIndicator:y,...v})=>{const{custom:C}=h(),w=void 0!==a&&Object.keys(a).length>0,[j,k]=r(0);return y&&n((()=>{j>0&&b(e)}),[j]),Ut.jsxs(x,{sx:p?.sxInputStack,gap:C.margin.sm,children:[o&&Ut.jsx(qr,{...s,children:o}),"html"===t&&d?Ut.jsx(Or,{children:d}):Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(Ft,{name:e,control:i,render:e=>function({field:{ref:e,...o}}){const n=xs[t];return null!==o.value?Ut.jsx(n,{...v,...o,inputRef:e}):Ut.jsx("div",{})}({...e,field:{...e.field,value:e.field.value||m}}),rules:{...u,validate:e=>{if(u&&"phone"in u)return It(`+${g("extension")}${e}`)||u.phone.message;if(u&&"score"in u)return j<=u.score.value?u.score.message:void 0;if(u&&"white_space"in u)return!e.match(/^\s*$/g)||u.white_space.message;if(u&&"match"in u)switch(u.match?.comparison){case"not_eq":return e!=g(u.match.field)||u.match.message;case"gt":return e>g(u.match.field)||u.match.message;case"lt":return e<g(u.match.field)||u.match.message;default:return e===g(u.match.field)||u.match.message}}}}),y&&"password"===v?.type&&Ut.jsx(fs,{value:g(e),onChange:k})]}),Ut.jsxs(Ut.Fragment,{children:[Boolean(w)?Ut.jsx(gs,{helperText:void 0,inputName:e,errors:a,showicon:!0}):null,Boolean(l)?Ut.jsx(gs,{helperText:l,inputName:e,errors:void 0,...c}):null]})]})},ys=e=>e.reduce(((e,t)=>({...e,[t?.name]:vs(t,t?.defaultValue)})),{}),vs=(e,t)=>{switch(e.fieldType){case"select":return Array.isArray(t),t;case"starRating":case"numberfield":return t||0;case"slider":{const{min:o}=e;return Array.isArray(t)?t:t||o}case"likert":case"radioGroup":case"customfield":default:return t||"";case"checkboxGroup":return t||[];case"checkbox":return t||!1;case"ranking":{const{options:o}=e;return t?t.map((e=>o.find((({id:t})=>t===e)))):o}}},Cs=a((({submitButton:e,secondaryButton:t,onFormSubmit:o,onFormChange:r,formConfig:i},a)=>{const{custom:s}=h(),{fields:c,reValidateMode:u,styleOverrides:m,autoComplete:f,formId:g,mode:b}=i,{reset:y,getValues:v,trigger:C,setValue:w,control:k,formState:{isValid:S,errors:M},setFocus:L,handleSubmit:E,watch:$}=Rt({mode:b||"onChange",reValidateMode:u,defaultValues:l((()=>ys(c)),[]),shouldUnregister:!0});n((()=>{(function(e,t){const o=new Set(e),n=new Set(t);return e.every((e=>n.has(e)))&&t.every((e=>o.has(e)))})(c.map((({name:e})=>e)),Object.keys(v()))||c.forEach((e=>{"html"!==e.fieldType&&e.defaultValue&&w(e.name,vs(e,e.defaultValue))}))}),[c]),n((()=>{y(ys(c))}),[g]),d(a,(()=>({set(e,t){w(e,t)},resetForm(){y()},focus(e){L(e)},submit(){o&&E(o)()},values:()=>v(),valid:()=>S,errors:()=>M,async triggerFormValidation(){await C()}})));const O=()=>{r&&r(v())};return Ut.jsxs(j,{component:"form",autoComplete:f,noValidate:!0,sx:m?.sxForm,...o&&{onSubmit:E(o)},children:[Ut.jsx(x,{gap:s.margin.md,sx:m?.sxStack,children:c.map((({name:e,...t})=>p(bs,{...r&&{internalChange:O},name:e,key:e,errors:M,control:k,watch:$,trigger:C,...t,defaultValue:ys(c)[e]})))}),(t||e)&&Ut.jsxs(x,{direction:"row",sx:m?.sxButtons||{mt:s.margin.lg,gap:s.margin.sm,justifyContent:"flex-end"},children:[t&&t,e&&e]})]})})),ws={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},js=e=>{const t=e.toLowerCase();return["a","e","i","o","u"].some((e=>t.startsWith(e)))?"an":"a"},ks=(e,t,o)=>({maxLength:{value:o||255,message:`Maximum character limit of ${o||255}.`},...t&&{required:e?`Please enter ${js(e)} ${e}`:"This field is required"}}),Ss=ks().maxLength.value,Ms=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}}),Ls=({children:e,headContent:t,sx:o,...n})=>{const r=h();return Ut.jsxs(Li,{...n,sx:Ee(o,{mx:[r.spacing(r.custom.margin.md),0],width:1,maxWidth:[512]}),children:[t&&Ut.jsx(j,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:r.spacing(r.custom.margin.md),px:r.spacing(r.custom.margin.md)},children:t}),Ut.jsx(j,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:t?[r.spacing(r.custom.margin.md)]:[r.spacing(r.custom.padding.lg),r.spacing(r.custom.padding.xl)],px:[r.spacing(r.custom.padding.lg),r.spacing(r.custom.padding.xl)],pb:[r.spacing(r.custom.padding.lg),r.spacing(r.custom.padding.xl)]},children:e})]})},Es=({body:e,currency:t,changeCurrencyEvent:o=()=>{},frequency:n,heading:r,setCurrency:i=()=>{},setFrequency:a=()=>{},togglePayAnnuallyEvent:s=()=>{}})=>{const l=h(),c=Er(),u=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return Ut.jsxs(j,{sx:{alignItems:"center",backgroundColor:l.custom.palette.surface.default,borderRadius:l.custom.radius.round,boxShadow:l.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[Ut.jsxs(j,{sx:{alignItems:"center",display:"flex",gap:1},children:[Ut.jsx(Wa,{defaultChecked:!0,onChange:()=>(s(),void a("monthly"===n?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==n,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),Ut.jsxs(x,{sx:{alignItems:"flex-start",display:"flex"},children:[Ut.jsx(Xo,{variation:"sm"===c||"md"===c?"md":"xxl",component:"p",children:r}),Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:l.custom.palette.text.secondary},children:e})]})]}),Ut.jsx(ya,{name:"currency",onChange:e=>{return t=e.target.value,o(t),void i(t);var t},selections:u,value:u.find((e=>e.value===t))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:Qt,lg:eo}}})]})};var $s={headings:{"01-starter":{heading:"Starter",pricing:"{{currencySymbol}} {{starterPrice}} / month"},"02-team":{heading:"Team",pricing:"{{currencySymbol}} {{teamPrice}} / month"},"03-plus":{heading:"Plus",pricing:"{{currencySymbol}} {{plusPrice}} / month"},"04-scale":{heading:"Scale",pricing:"{{currencySymbol}} {{scalePrice}} / month"}},rows:{"01-seats":{heading:"Seats",description:"The number of users you can have on your account.",starter:"1",team:"10",plus:"50",scale:"100+"},"02-servicing":{heading:"Client servicing included",description:"Get direct communication with a Loops Customer Success Manager.",starter:"{{dash}}",team:"{{dash}}",plus:"Serviced lite",scale:"💪\nFully serviced"},"03-respondents":{heading:"Price per respondent",description:"The amount you pay to recruit and survey each respondent.",starter:"{{currencySymbol}}{{starterRespondentPrice}}",team:"{{currencySymbol}}{{teamRespondentPrice}}",plus:"{{currencySymbol}}{{plusRespondentPrice}}",scale:"{{currencySymbol}}{{scaleRespondentPrice}}"},"04-questions":{heading:"Question limit",description:"The maximum number of questions you can add to a test.",starter:"10",team:"15",plus:"20",scale:"25"},"05-ai":{heading:"AI-powered insights",description:"Use Loops AI to summarise the findings from your tests.",starter:"Basic",team:"✨\nAdvanced",plus:"✨\nAdvanced",scale:"✨\nAdvanced"},"06-demographics":{heading:"Demographic filters",description:"Reach your target audience using built-in demographic filters.",starter:"Basic",team:"🎯\nAdvanced",plus:"🎯\nAdvanced",scale:"🎯\nAdvanced"},"07-training":{heading:"Training",description:"Our team will onboard you and get you set up.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"08-invite":{heading:"Invite your own respondents",description:"Share your test with your own recruited audience.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"09-email":{heading:"Email capture",description:"Ability to collect respondent email addresses.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"10-beta":{heading:"Beta features",description:"Assess to our latest features as they become available.",starter:"{{dash}}",team:"{{dash}}",plus:"{{tick}}",scale:"{{tick}}"},"11-sso":{heading:"Single sign on (SSO)",description:"Enterprise level authentication using SAML (supports Okta and OneLogin).",starter:"{{dash}}",team:"{{dash}}",plus:"{{dash}}",scale:"{{tick}}"},"12-minimum":{heading:"Minimum term",description:"The minimum subscription period.",starter:"30 days",team:"6 months",plus:"6 months",scale:"12 months"}}};const Os=({currencySymbol:e,data:t,starterPrice:o,starterRespondentPrice:n,teamPrice:r,teamRespondentPrice:i,plusPrice:a,plusRespondentPrice:s,scalePrice:l,scaleRespondentPrice:c,variation:u="default"})=>{const d=h();t||(t=$s);const p=Object.values(t.headings).map((({heading:t,pricing:n})=>({heading:t,pricing:n.replace("{{currencySymbol}}",e).replace("{{starterPrice}}",o).replace("{{teamPrice}}",r).replace("{{plusPrice}}",a).replace("{{scalePrice}}",l)}))),m=t=>t.replace("{{currencySymbol}}",e).replace("{{starterRespondentPrice}}",n||"").replace("{{teamRespondentPrice}}",i||"").replace("{{plusRespondentPrice}}",s||"").replace("{{scaleRespondentPrice}}",c||""),f=[...Object.values(t.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},starter:m(e.starter),team:m(e.team),plus:m(e.plus),scale:m(e.scale)})))];return Ut.jsxs(x,{sx:{backgroundColor:d.custom.palette.surface.default,borderRadius:d.spacing(d.custom.radius.xl),boxShadow:d.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[Ut.jsxs(j,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[Ut.jsx(j,{sx:{width:160}}),p.map((({heading:e,pricing:t})=>Ut.jsxs(x,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[Ut.jsx(Xo,{variation:"platform"===u?"lg":"xxl",component:"p",weight:"bold",children:e}),Ut.jsx(Xo,{variation:"platform"===u?"sm":"md",component:"p",sx:{color:d.custom.palette.text.secondary},children:t})]},e)))]}),f.map((e=>Ut.jsxs(j,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:d.custom.palette.surface.sunken}},children:[Ut.jsx(j,{sx:{display:"flex",alignItems:"center",width:160},children:Ut.jsxs(j,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&Ut.jsx(zr,{message:e.name.description,children:Ut.jsx(j,{sx:{alignItems:"center",color:d.custom.palette.icon.secondary,display:"flex"},children:Ut.jsx(po,{name:"info",size:24})})}),Ut.jsx(Xo,{variation:"platform"===u?"md":"lg",component:"p",children:e.name.heading})]})}),Ut.jsx(Fs,{text:e.starter}),Ut.jsx(Fs,{text:e.team}),Ut.jsx(Fs,{text:e.plus}),Ut.jsx(Fs,{text:e.scale})]},e.key)))]})},Fs=({text:e})=>{const t=h(),o="{{tick}}"===e,n="{{dash}}"===e;return Ut.jsx(j,{sx:{display:"flex",alignItems:"center",textAlign:"center",width:122},children:Ut.jsxs(j,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:{sm:.5,md:1},flex:1},children:[o&&Ut.jsx(po,{name:"check",size:24}),n&&Ut.jsx(po,{name:"dash",size:24}),!o&&!n&&Ut.jsx(Xo,{variation:"lg",component:"p",sx:{color:t.custom.palette.text.secondary,hyphens:"none",whiteSpace:"pre"},children:Ut.jsx(Ut.Fragment,{children:e})})]})})},Rs=()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[o,i]=r(t);return n((()=>{if(e)return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o);function o(){m((()=>{i(t())}))}}),[]),o},Is=({amount:e,billingType:t,body:i,ctaEvent:a=()=>{},ctaLink:s="#",ctaTarget:l="_self",ctaText:c,ctaVariation:u="primary",currencySymbol:d,currentPlan:p,features:f=[],freeTrialLength:g,freeTrialText:b,frequency:y,heading:v,label:C,largestHeaderHeight:w=0,perMonth:k,setLargestHeaderHeight:S=()=>{},variation:M="default"})=>{const L=h(),E=Er(),{width:$}=Rs(),O=o(null),[F,R]=r("sm");return n((()=>{m((()=>{R(E),E!==F&&S(0),O.current&&O.current.offsetHeight>w&&S(O.current.offsetHeight)}))}),[E,F,$]),Ut.jsxs(x,{sx:{display:"flex",flex:1,position:"relative"},children:[Ut.jsx(x,{sx:{alignItems:"center",backgroundColor:L.custom.palette.icon.primary,borderTopLeftRadius:L.spacing(L.custom.radius.lg),borderTopRightRadius:L.spacing(L.custom.radius.lg),boxShadow:L.custom.elevation.overlay,color:L.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:C?1:0,display:{sm:C?"flex":"none",md:"flex"}},children:Ut.jsx(Xo,{variation:"md",component:"p",weight:"bold",sx:{color:L.custom.palette.white},children:C||"&nbsp;"})}),Ut.jsxs(x,{sx:{backgroundColor:L.custom.palette.surface.default,borderBottomLeftRadius:L.spacing(L.custom.radius.lg),borderBottomRightRadius:L.spacing(L.custom.radius.lg),borderTopLeftRadius:C?0:L.spacing(L.custom.radius.lg),borderTopRightRadius:C?0:L.spacing(L.custom.radius.lg),boxShadow:L.custom.elevation.overlay,display:"flex",flex:1},children:[Ut.jsxs(x,{sx:{display:"flex",gap:"sm"===E||"md"===E?1:2,textAlign:"center",minHeight:{sm:"none",md:w},px:2,py:{sm:2,lg:4}},ref:O,children:[Ut.jsx(Xo,{variation:"sm"===E?"xxl":"platform"===M?"md":"lg",component:"h2",weight:"bold",children:v}),Ut.jsx(Xo,{variation:"sm"===E?"md":"platform"===M?"md"===E?"sm":"md":"md"===E?"md":"lg",component:"p",sx:{color:L.custom.palette.text.secondary},children:i})]}),Ut.jsxs(x,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===M?184:240,xl:"platform"===M?184:226},px:2,py:{sm:2,md:2,lg:"platform"===M?2:6}},children:[Ut.jsxs(j,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[Ut.jsx(Xo,{variation:"md"===E?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:d}),Ut.jsx(Xo,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:e}),k&&Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:L.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:k})]}),g&&b&&Ut.jsxs(j,{sx:{alignItems:"center",backgroundColor:L.custom.palette.yellow[300],borderRadius:L.custom.radius.round,boxShadow:L.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[Ut.jsx(po,{name:"gift",size:24}),Ut.jsxs(j,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[Ut.jsx(Xo,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:g}),Ut.jsx(Xo,{variation:"md",component:"p",sx:{lineHeight:1},children:b})]})]}),t&&Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:L.custom.palette.text.placeholder},children:t})]}),Ut.jsxs(x,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[Ut.jsx(j,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:Ut.jsx(ni,{href:s,title:c,target:l,onClick:()=>{v&&a(v)},sx:{"&:hover":{cursor:p?"default":"pointer"}},children:Ut.jsx(Cn,{fullWidth:!0,variation:u,sizing:"lg",disabled:p,children:c})})}),f?.length&&Ut.jsx(x,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===M?4:6}},children:f.map(((e,t)=>Ut.jsxs(j,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[Ut.jsx(po,{name:"positive",size:24}),Ut.jsx(Xo,{variation:"md",component:"p",children:e})]},`${v}-feature-${t}`)))})]})]})]})},As=({body:e,ctaEvent:t=()=>{},ctaLink:o="",ctaTarget:n="_blank",ctaText:r,currencySymbol:i,heading:a,postText:s,preText:l,amount:c})=>{const u=h();return Ut.jsxs(j,{sx:{backgroundColor:u.custom.palette.purple[0],borderRadius:u.spacing(u.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:u.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[Ut.jsxs(x,{sx:{flex:1,gap:2,justifyContent:"center"},children:[Ut.jsx(Xo,{variation:"md",component:"h2",sx:{fontWeight:500},children:a}),Ut.jsx(Xo,{variation:"md",component:"p",sx:{color:u.custom.palette.text.secondary},children:e})]}),Ut.jsxs(x,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[Ut.jsxs(j,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[Ut.jsx(Xo,{variation:"md",component:"p",sx:{color:u.custom.palette.text.placeholder,pr:.5},children:l}),Ut.jsxs(j,{sx:{alignItems:"flex-end",display:"flex"},children:[Ut.jsx(Xo,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:i}),Ut.jsx(Xo,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:c})]}),Ut.jsx(Xo,{variation:"md",component:"p",sx:{color:u.custom.palette.text.placeholder,pl:.1},children:s})]}),Ut.jsx(ni,{href:o,title:r,target:n,onClick:()=>{a&&t(a)},children:Ut.jsx(Cn,{fullWidth:!0,variation:"outlined",sizing:"lg",children:r})})]})]})},Ts=({heading:e,ticks:t})=>(h(),Ut.jsxs(x,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[Ut.jsx(Xo,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),Ut.jsx(j,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:t.map(((t,o)=>Ut.jsxs(j,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[Ut.jsx(po,{name:"positive",size:32}),Ut.jsx(Xo,{variation:"xxl",component:"p",children:t})]},`tick-group-${e}-${o}`)))})]})),Vs="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Ps=(e,t,o)=>re({direction:o,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Vo[e],neutralAlpha:"light"===e?Fo:Ro,purple:Bo[e],red:Ho[e],peach:_o[e],yellow:zo[e],blue:Do[e],green:No[e],icon:Zo[e].icon,interaction:Zo[e].interaction,stroke:Zo[e].stroke,surface:Zo[e].surface,text:Zo[e].text,input:Zo[e].input},margin:no,padding:ro,radius:io,elevation:ao,elevationFilter:so,boxShadow:lo,easing:co,typography:nn[t]},palette:{mode:e,primary:{main:Io[500]}},spacing:oo,shape:{borderRadius:oo,hotspot:{default:12,active:24}},breakpoints:{values:qt},typography:{fontFamily:`"${qo.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:rn(t),styleOverrides:{root:{color:Zo[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${Vo[e][0]};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${Uo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Uo.default.weight};\n src: url(${Vs}${Uo.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Uo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Uo.bold.weight};\n src: url(${Vs}${Uo.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${qo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${qo.default.weight};\n src: url(${Vs}${qo.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${qo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${qo.bold.weight};\n src: url(${Vs}${qo.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${qt.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${qt.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:e}})=>({color:e.palette.surface.overlay}),tooltip:({theme:{custom:e}})=>({backgroundColor:e.palette.surface.overlay,borderRadius:e.radius.md,color:e.palette.text.primary,backdropFilter:"blur(0)",filter:e.elevationFilter.overlay,fontFamily:qo.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*oo}px ${e.padding.md*oo}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}});var Bs="$$material";const Hs="exact-prop: ​";function _s(e){return"production"===process.env.NODE_ENV?e:Yn({},e,{[Hs]:t=>{const o=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return o.length>0?new Error(`The following props are not supported: ${o.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}const zs=e.createContext(null);function Ds(){const t=e.useContext(zs);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t}"production"!==process.env.NODE_ENV&&(zs.displayName="ThemeContext");var Ns="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zs(t){const{children:o,theme:n}=t,r=Ds();"production"!==process.env.NODE_ENV&&null===r&&"function"==typeof n&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=e.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t){const o=t(e);return"production"!==process.env.NODE_ENV&&(o||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),o}return Yn({},e,t)}(r,n);return null!=e&&(e[Ns]=null!==r),e}),[n,r]);return Ut.jsx(zs.Provider,{value:i,children:o})}"production"!==process.env.NODE_ENV&&(Zs.propTypes={children:jr.node,theme:jr.oneOfType([jr.object,jr.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Zs.propTypes=_s(Zs.propTypes));const Ws=["value"],Us=e.createContext();function qs(e){let{value:t}=e,o=Kn(e,Ws);return Ut.jsx(Us.Provider,Yn({value:null==t||t},o))}"production"!==process.env.NODE_ENV&&(qs.propTypes={children:jr.node,value:jr.bool});const Gs=e.createContext(void 0);function Ys({value:e,children:t}){return Ut.jsx(Gs.Provider,{value:e,children:t})}"production"!==process.env.NODE_ENV&&(Ys.propTypes={children:jr.node,value:jr.object});const Xs={};function Js(t,o,n,r=!1){return e.useMemo((()=>{const e=t&&o[t]||o;if("function"==typeof n){const i=n(e),a=t?Yn({},o,{[t]:i}):i;return r?()=>a:a}return Yn({},o,t?{[t]:n}:n)}),[t,o,n,r])}function Ks(e){const{children:t,theme:o,themeId:n}=e,r=kr(Xs),i=Ds()||Xs;"production"!==process.env.NODE_ENV&&(null===r&&"function"==typeof o||n&&r&&!r[n]&&"function"==typeof o)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const a=Js(n,r,o),s=Js(n,i,o,!0),l="rtl"===a.direction;return Ut.jsx(Zs,{theme:s,children:Ut.jsx($e.Provider,{value:a,children:Ut.jsx(qs,{value:l,children:Ut.jsx(Ys,{value:null==a?void 0:a.components,children:t})})})})}"production"!==process.env.NODE_ENV&&(Ks.propTypes={children:jr.node,theme:jr.oneOfType([jr.func,jr.object]).isRequired,themeId:jr.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Ks.propTypes=_s(Ks.propTypes));const Qs=["theme"];function el(e){let{theme:t}=e,o=Kn(e,Qs);const n=t[Bs];return Ut.jsx(Ks,Yn({},o,{themeId:n?Bs:void 0,theme:n||t}))}"production"!==process.env.NODE_ENV&&(el.propTypes={children:jr.node,theme:jr.oneOfType([jr.object,jr.func]).isRequired});const tl=s(null),ol=()=>Ut.jsx(ie,{styles:{"strong, b":{fontWeight:500}}}),nl=Xi({key:"muirtl",stylisPlugins:[it,Ht]}),rl=Xi({key:"mui"}),il=({mode:e="light",screenSize:t="lg",direction:o="ltr",children:i})=>{const a=((e="light",t="lg",o="ltr")=>{const{width:i}=Rs(),[a,s]=r(e),[l,c]=r(t),[u,d]=r(!1),[p,h]=r(Ps(a,l,o)),[f,g]=r(Ps("light"===a?"dark":"light",l,o)),[x,b]=r("");n((()=>{m((()=>{c(i&&i<qt.lg?"sm":"lg")}))}),[i]),n((()=>{m((()=>{h(Ps(a,l,o)),g(Ps("light"===a?"dark":"light",l,o))}))}),[a,l]);const y=K(p.breakpoints.only("sm"),{noSsr:!0}),v=K(p.breakpoints.only("md"),{noSsr:!0}),C=K(p.breakpoints.between("lg","xl"),{noSsr:!0}),w=K(p.breakpoints.up("xl"),{noSsr:!0});return n((()=>{m((()=>{y&&b("sm"),v&&b("md"),C&&b("lg"),w&&b("xl")}))}),[y,v,C,w]),{breakpoint:x,darkTheme:f,gridOverlayVisible:u,mode:a,theme:p,toggleGridOverlay:()=>{m((()=>{d((e=>!e))}))},toggleMode:e=>{m((()=>{if(e)return s(e);s((e=>"light"===e?"dark":"light"))}))}}})(e,t,o);return n((()=>{"rtl"===o&&(document.dir="rtl")}),[]),Ut.jsx(tl.Provider,{value:a,children:Ut.jsx(at,{value:"rtl"===o?nl:rl,children:Ut.jsxs(el,{theme:a.theme,children:[Ut.jsx(ae,{}),Ut.jsx(ol,{}),i]})})})};export{Es as AnnualController,Ls as AuthContainerSurface,Jo as AuthFormHeader,Ko as Avatar,Qo as AvatarGroup,Cn as Button,En as CheckBoxGroup,Sn as Checkbox,Rn as ColorBackgroundContainer,In as CustomField,Ss as DEFAULT_MAX_INPUT_LENGTH,Zn as Differential,Un as DropdownMenu,wn as FormControlLabel,Cs as FormGenerator,$r as GridOverlay,Or as Html,po as Icon,Dr as IconButton,Ur as IconButtonGroup,qr as InputLabel,Vn as InputLabelHelp,ti as Likert,ni as Link,ri as Loader,ii as Logo,ui as NavButton,Fi as Nudge,Ii as NumberField,Pi as Pill,Os as PlanFeatureTable,Is as PlanTierCard,As as PlanTierCardScale,Ki as Portal,Qi as PoweredByWatermarkLogo,bn as Progress,_n as Radio,ea as RadioGroup,Ra as Rank,Aa as RichTextField,ya as Select,Da as Slider,Fa as SortableList,Za as StarRating,Li as Surface,Wa as Switch,qa as TextArea,Ga as TextBarDivider,Ln as TextField,il as ThemeProvider,Ts as TickGroup,Ya as Toast,zr as Tooltip,Xo as Typography,cs as UserMenu,Fn as backgroundCreator,js as chooseArticle,ks as defaultInputValidation,ws as emailValidation,Ms as passwordValidation,qn as useDropdownMenu};
23
+ */function yr(){if(ar)return ir;ar=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;return ir=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,r){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},ir}function vr(){if(lr)return sr;lr=1;return sr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Cr(){return ur?cr:(ur=1,cr=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var wr=br();er.exports=function(){if(hr)return mr;hr=1;var e=br(),t=yr(),o=vr(),n=Cr(),r=function(){if(pr)return dr;pr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=vr(),o={},n=Cr();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(n(r,c)){var u;try{if("function"!=typeof r[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=r[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(o={})},dr=r}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),mr=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:h(a),arrayOf:function(e){return h((function(t,n,r,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}))},element:h((function(e,t,o,n,r){var i=e[t];return s(i)?null:new m("Invalid "+n+" `"+r+"` of type `"+b(i)+"` supplied to `"+o+"`, expected a single ReactElement.")})),elementType:h((function(t,o,n,r,i){var a=t[o];return e.isValidElementType(a)?null:new m("Invalid "+r+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,o,n,r,i){if(!(t[o]instanceof e)){var a=e.name||u;return new m("Invalid "+r+" `"+i+"` of type `"+((s=t[o]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,o,n,r){return x(e[t])?null:new m("Invalid "+n+" `"+r+"` supplied to `"+o+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,r,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=b(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(n(l,u)){var d=e(l,u,i,a,s+"."+u,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,o,n,r,i){for(var a=t[o],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+r+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(r)+" at index "+t+"."),a}return h((function(t,r,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,r,i,a,s,o);if(null==u)return null;u.data&&n(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,n,r,i,a){var s=t[n],l=b(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(r,i,a,c,y(u));var d=u(s,c,r,i,a+"."+c,o);if(d)return d}return null}))},exact:function(e){return h((function(r,i,a,s,l){var c=r[i],u=b(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},r[i],e);for(var p in d){var h=e[p];if(n(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=h(c,p,a,s,l+"."+p,o);if(f)return f}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function r(r,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==o){if(l){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,n++)}}return null==a[s]?r?null===a[s]?new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function f(e){return h((function(t,o,n,r,i,a){var s=t[o];return b(s)!==e?new m("Invalid "+r+" `"+i+"` of type `"+y(s)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,o,n,r){return new m((e||"React class")+": "+t+" type `"+o+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var o,n=t.call(e);if(t!==e.entries){for(;!(o=n.next()).done;)if(!x(o.value))return!1}else for(;!(o=n.next()).done;){var r=o.value;if(r&&!x(r[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=r,d.resetWarningCache=r.resetWarningCache,d.PropTypes=d,d},mr}()(wr.isElement,!0)}else er.exports=function(){if(gr)return fr;gr=1;var e=vr();function t(){}function o(){}return o.resetWarningCache=t,fr=function(){function n(t,o,n,r,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:o,resetWarningCache:t};return i.PropTypes=i,i}}()();var jr=_t(er.exports);function kr(t=null){const o=e.useContext($e);return o&&(n=o,0!==Object.keys(n).length)?o:t;var n}function Sr(t,o,n,r,i){const[a,s]=e.useState((()=>i&&n?n(t).matches:r?r(t).matches:o));return Gn((()=>{let e=!0;if(!n)return;const o=n(t),r=()=>{e&&s(o.matches)};return r(),o.addListener(r),()=>{e=!1,o.removeListener(r)}}),[t,n]),a}const Mr=e.useSyncExternalStore;function Lr(t,o,n,r,i){const a=e.useCallback((()=>o),[o]),s=e.useMemo((()=>{if(i&&n)return()=>n(t).matches;if(null!==r){const{matches:e}=r(t);return()=>e}return a}),[a,t,r,i,n]),[l,c]=e.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[a,n,t]);return Mr(c,l,s)}const Er=()=>{const t=h();return[...t.breakpoints.keys].reduce(((o,n)=>{const r=function(t,o={}){const n=kr(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:a=(r?window.matchMedia:null),ssrMatchMedia:s=null,noSsr:l=!1}=Jn({name:"MuiUseMediaQuery",props:o,theme:n});"production"!==process.env.NODE_ENV&&"function"==typeof t&&null===n&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let c="function"==typeof t?t(n):t;c=c.replace(/^@media( ?)/m,"");const u=(void 0!==Mr?Lr:Sr)(c,i,a,s,l);return"production"!==process.env.NODE_ENV&&e.useDebugValue({query:c,match:u}),u}(t.breakpoints.up(n));return r?n:o}),null)??"sm"},$r=({breakpoint:e})=>{const t=h(),o=Array.from({length:6},((e,t)=>t));return e||(e=Er()),Ut.jsxs(x,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[Ut.jsx(O,{sx:{background:t.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:Ut.jsx(j,{sx:{background:t.custom.palette.purple[300],display:"flex",flex:1},children:Ut.jsxs(A,{container:!0,spacing:2,children:[o.map((e=>Ut.jsx(A,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:Ut.jsx(j,{sx:{background:t.custom.palette.green[300],height:"100%"}})},`grid-1-${e}`))),o.map((e=>Ut.jsx(A,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:Ut.jsx(j,{sx:{background:t.custom.palette.green[300],height:"100%"}})},`grid-2-${e}`)))]})})}),!!e&&Ut.jsx(j,{sx:{backgroundColor:t.custom.palette.surface.default,borderRadius:t.spacing(t.custom.radius.md),bottom:16,filter:t.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:Ut.jsx(Xo,{variation:"sm",component:"p",weight:"bold",children:e})})]})},Or=({children:e,...t})=>e,Fr=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),Rr=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"& .MuiButtonBase-root":{":hover":{background:e.custom.palette.interaction.hoverOnDark},":active":{background:e.custom.palette.interaction.pressOnDark}}}),Ir=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),Ar=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),Tr=(e,t)=>({borderRadius:"default"===e?t.spacing(t.custom.radius.md):t.custom.radius.round}),Vr={xs:3*oo,sm:3.5*oo,md:4*oo,lg:5*oo,xl:6*oo},Pr=e=>({height:Vr[e],width:Vr[e]}),Br={xs:2*oo,sm:2*oo,md:2*oo,lg:2.5*oo,xl:3*oo},Hr=e=>({height:Br[e],width:Br[e]}),_r=v(P)((({theme:e,variation:t,shape:o="default",sizing:n})=>({boxSizing:"border-box",transition:"all 200ms ease",...o&&{...Tr(o,e)},...n&&{...Pr(n)},"&.MuiIconButton-root":{..."default"===t&&{...Fr(e)},..."toggle"===t&&{...Rr(e)},..."outlined"===t&&{...Ir(e)},..."raised"===t&&{...Ar(e)},...o&&{...Tr(o,e)},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:focus":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...n&&{...Hr(n)},position:"relative",zIndex:1}}))),zr=({children:e,message:t,variation:o="primary",...n})=>{const r=h();if("primary"===o)return Ut.jsx(B,{...n,componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:r.spacing(r.custom.radius.sm),filter:`drop-shadow(${r.custom.elevation.overlay})`}}}},title:t,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:Ut.jsx(j,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})},Dr=({icon:e,loading:t,tooltipMessage:o,sizing:n,slotProps:r,...i})=>{const a=()=>Ut.jsx(_r,{...i,sizing:n,children:t?Ut.jsx(bn,{sizing:n}):e});return o?Ut.jsx(zr,{message:o,...r?.tooltip,children:a()}):a()},Nr=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderTopLeftRadius:0}}),Zr=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopLeftRadius:0,borderBottomLeftRadius:0}}),Wr=v(H)((({theme:e,variation:t,orientation:o="horizontal",iconColor:n,sizing:r="lg",groupRaised:i=!1})=>({"&.MuiButtonGroup-root":{backgroundColor:e.custom.palette.input.default,border:`1px solid ${e.custom.palette.stroke.default}`,...i&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{borderRadius:0,..."default"===t&&{...Fr(e)},..."toggle"===t&&{...Rr(e)},..."vertical"===o&&{...Nr(e)},..."horizontal"===o&&{...Zr(e)},...r&&{...Pr(r)}},"& .MuiSvgIcon-root":{...r&&{...Hr(r)},fill:n||"inherit"}}}))),Ur=({ButtonGroupProps:e,children:t,...o})=>Ut.jsx(Wr,{...o,...e,children:t}),qr=({sx:e,...t})=>Ut.jsx(Tn,{...t,sx:Ee({fontSize:{xs:nn.sm.body.md,sm:nn.sm.body.md,md:nn.sm.body.md,lg:nn.lg.body.md,xl:nn.lg.body.md}},!!e&&{...e})}),Gr=v(j)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:Jt,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${Jt}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:Jt,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${Jt}px)`}}}}}))),Yr=({children:e,width:t})=>Ut.jsx(Gr,{sx:{width:t},children:e}),Xr=v(Vn)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),Jr=({disabled:e,children:t})=>Ut.jsx(Xr,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:t}),Kr=v(_n)((()=>({marginRight:0}))),Qr=v(j)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:Yt,width:`calc(50% - ${Qt/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:Yt,width:`calc(50% - ${Qt/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),ei=e=>Ut.jsx(Qr,{sx:{textAlign:"center",position:"relative"},children:Ut.jsx(Kr,{...e})}),ti=({options:e=[],disabled:t=!1,sizing:o="lg",onChange:n,internalChange:r,value:i})=>{const a=h();function s(e){console.warn(e),n(e.value),r&&r()}return Ut.jsx(j,{children:Ut.jsx(Yr,{children:Ut.jsx(A,{container:!0,justifyContent:"space-between",children:e.map((e=>Ut.jsxs(A,{item:!0,sm:!0,onClick:()=>s(e),sx:{...!t&&{cursor:"pointer"},textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{...!t&&{backgroundColor:a.custom.palette.interaction.hover}}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{...!t&&{backgroundColor:a.custom.palette.input.default,borderColor:a.custom.palette.stroke.focus,boxShadow:a.custom.boxShadow.input.focus},"&:before":{...!t&&{backgroundColor:a.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:a.custom.palette.purple[500]}}}},children:[Ut.jsx(ei,{sizing:o,disabled:t,onChange:t=>s(e),checked:i===e.value},e.value),Ut.jsx(j,{sx:{mt:no.xs,width:"100%"},children:Ut.jsx(Jr,{disabled:t,children:e.label})})]},e.value)))})})})},oi=v(_)((({theme:e,disabled:t})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:t?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:t?"none":"auto","&:hover":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),ni=e=>e.target&&"_blank"===e.target?Ut.jsx(oi,{rel:"noopener",...e}):Ut.jsx(oi,{...e}),ri=()=>Ut.jsx(j,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:Ut.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),ii=e=>Ut.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:Ut.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),ai=v(j)((({theme:e})=>({alignItems:"center",cursor:"pointer",display:"flex",flexDirection:"column",gap:e.spacing(.5)}))),si=v(j)((({theme:e})=>({alignItems:"center",color:e.custom.palette.text.secondary,display:"flex",opacity:0,transition:e.custom.easing.input}))),li=v(Xo)((({active:e,theme:t})=>({color:e?t.custom.palette.text.primary:t.custom.palette.text.secondary,textAlign:"center"}))),ci=v(w)((({active:e,fullWidth:t,theme:o})=>({alignItems:"center",backgroundColor:e?o.custom.palette.interaction.press:"transparent",borderRadius:o.spacing(o.custom.radius.md),color:o.custom.palette.text.primary,display:"flex",gap:o.spacing(1),justifyContent:t?"space-between":"center",minWidth:0,padding:o.spacing(1),textTransform:"none",width:t?"100%":"auto","&:hover":{backgroundColor:o.custom.palette.interaction.hover,"& > div":{opacity:1}},"&:focus":{backgroundColor:o.custom.palette.interaction.hover},"&:active":{backgroundColor:o.custom.palette.interaction.press},"&:disabled":{backgroundColor:o.custom.palette.interaction.disabled,color:o.custom.palette.text.disabled}}))),ui=({active:e,label:t,href:o,icon:n,onClick:r,variation:i})=>"sm"===i?Ut.jsxs(ai,{onClick:r,children:[Ut.jsx(ci,{active:e,children:Ut.jsx(j,{display:"flex",alignItems:"center",gap:1,children:n&&Ut.jsx(po,{name:n,size:24})})}),Ut.jsx(li,{component:"p",variation:"sm",active:e,children:t})]}):Ut.jsxs(ci,{onClick:r,fullWidth:!0,active:e,children:[Ut.jsxs(j,{display:"flex",alignItems:"center",gap:1.5,children:[n&&Ut.jsx(po,{name:n,size:24}),Ut.jsx(Xo,{component:"p",variation:"lg",children:t})]}),o&&Ut.jsx(si,{children:Ut.jsx(po,{name:"open-in-new",size:20})})]});function di(t){if("undefined"==typeof window)return t;const o=e.useRef(null);return e.useLayoutEffect((()=>{o.current=t})),e.useCallback(((...e)=>{var t;null===(t=o.current)||void 0===t||t.call(o,...e)}),[])}const pi={};const mi={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1},hi=e,fi="useId"in hi?()=>hi.useId():()=>{};function gi({parentPopupState:e,popupId:t=fi(),variant:a,disableAutoFocus:s}){const l=o(!0);n((()=>(l.current=!0,()=>{l.current=!1})),[]);const[c,u]=r(mi),d=i((e=>{l.current&&u(e)}),[]),p=i((e=>d((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),m=di((e=>(c.isOpen?g(e):h(e),c))),h=di((t=>{const o=t instanceof Element?void 0:t,n=t instanceof Element?t:(null==t?void 0:t.currentTarget)instanceof Element?t.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void d((e=>({...e,_deferNextOpen:!0})));const r=null==o?void 0:o.clientX,i=null==o?void 0:o.clientY,s="number"==typeof r&&"number"==typeof i?{left:r,top:i}:void 0,l=r=>{var i,l;if(t||r.setAnchorElUsed||"dialog"===a||(l="eventOrAnchorEl should be defined if setAnchorEl is not used",pi[i="missingEventOrAnchorEl"]||(pi[i]=!0,console.error("[material-ui-popup-state] WARNING",l))),e){if(!e.isOpen)return r;setTimeout((()=>e._setChildPopupState(C)))}const c={...r,isOpen:!0,anchorPosition:s,hovered:"mouseover"===(null==o?void 0:o.type)||r.hovered,focused:"focus"===(null==o?void 0:o.type)||r.focused,_openEventType:null==o?void 0:o.type};return r.setAnchorElUsed||(null!=o&&o.currentTarget?c.anchorEl=null==o?void 0:o.currentTarget:n&&(c.anchorEl=n)),c};d((e=>e._deferNextOpen?(setTimeout((()=>d(l)),0),{...e,_deferNextOpen:!1}):l(e)))})),f=t=>{const{_childPopupState:o}=t;return setTimeout((()=>{null==o||o.close(),null==e||e._setChildPopupState(null)})),{...t,isOpen:!1,hovered:!1,focused:!1}},g=di((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?d((e=>e._deferNextClose?(setTimeout((()=>d(f)),0),{...e,_deferNextClose:!1}):f(e))):d((e=>({...e,_deferNextClose:!0})))})),x=i(((e,t)=>{e?h(t):g(t)}),[]),b=di((e=>{const{relatedTarget:t}=e;d((e=>!e.hovered||t instanceof Element&&vi(t,C)?e:e.focused?{...e,hovered:!1}:f(e)))})),y=di((e=>{if(!e)return;const{relatedTarget:t}=e;d((e=>!e.focused||t instanceof Element&&vi(t,C)?e:e.hovered?{...e,focused:!1}:f(e)))})),v=i((e=>d((t=>({...t,_childPopupState:e})))),[]),C={...c,setAnchorEl:p,popupId:t??void 0,variant:a,open:h,close:g,toggle:m,setOpen:x,onBlur:y,onMouseLeave:b,disableAutoFocus:s??Boolean(c.hovered||c.focused),_setChildPopupState:v};return C}function xi({isOpen:e,popupId:t,variant:o}){return{..."popover"===o?{"aria-haspopup":!0,"aria-controls":e?t:void 0}:"popper"===o?{"aria-describedby":e?t:void 0}:void 0}}function bi(e){return{...xi(e),onClick:e.open,onTouchStart:e.open}}function yi({isOpen:e,anchorEl:t,anchorPosition:o,close:n,popupId:r,onMouseLeave:i,disableAutoFocus:a,_openEventType:s}){return{id:r,anchorEl:t,anchorPosition:o,anchorReference:"contextmenu"===s?"anchorPosition":"anchorEl",open:e,onClose:n,onMouseLeave:i,...a&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function vi(e,t){const{anchorEl:o,_childPopupState:n}=t;return Ci(o,e)||Ci(function(e,{popupId:t}){if(!t)return null;const o="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof o.getElementById?o.getElementById(t):null}(e,t),e)||null!=n&&vi(e,n)}function Ci(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}const wi=e=>({boxShadow:e.custom.elevation.raised}),ji=e=>({boxShadow:e.custom.elevation.overlay}),ki=(e,t)=>{switch(t){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},Si=(e,t)=>{switch(e){case"sunken":return t.custom.palette.surface.sunken;case"raised":return t.custom.palette.surface.raised;case"overlay":return t.custom.palette.surface.overlay;default:return t.custom.palette.surface.default}},Mi=v(z)((({theme:e,variation:t="default",borderradius:o})=>({boxShadow:"unset",borderRadius:ki(e,o),background:Si(t,e),..."overlay"===t&&{...ji(e)},..."raised"===t&&{...wi(e)}}))),Li=({children:e,variation:t="overlay",sx:o,...n})=>Ut.jsx(Mi,{variation:t,...n,sx:Ee(o||{},{}),children:e}),Ei=({children:e,description:t,title:o})=>Ut.jsx(Li,{variation:"raised",borderradius:"md",sx:{maxWidth:200},children:Ut.jsxs(x,{sx:{gap:2,p:2},children:[Ut.jsxs(x,{sx:{gap:1},children:[Ut.jsx(Xo,{variation:"sm",component:"p",weight:"bold",children:o}),Ut.jsx(Xo,{variation:"sm",component:"p",children:t})]}),e]})}),$i=v(Li)((({notification:e,theme:t})=>({alignItems:"center",cursor:"pointer",display:"flex",height:40,justifyContent:"center",position:"relative",width:40,...e&&{"&:after":{background:t.custom.palette.red[500],borderRadius:t.custom.radius.round,content:'""',height:t.spacing(1),position:"absolute",right:t.spacing(.5),top:t.spacing(.5),width:t.spacing(1)}}}))),Oi=({notification:e,onClick:t})=>Ut.jsx($i,{variation:"overlay",borderradius:"md",notification:e,onClick:t,children:Ut.jsx(po,{name:"notification"})}),Fi=({children:e,description:t,title:o,variation:n})=>{if("sm"===n){const n=gi({variant:"popper"});return Ut.jsx(D,{onClickAway:()=>n.close(),children:Ut.jsxs(j,{sx:{position:"relative"},children:[Ut.jsx(j,{...bi(n),children:Ut.jsx(Oi,{notification:!0})}),Ut.jsx(N,{...yi(n),placement:"right-end",transition:!0,children:({TransitionProps:n})=>Ut.jsx(Z,{...n,timeout:350,children:Ut.jsx(j,{sx:{pl:1},children:Ut.jsx(Ei,{description:t,title:o,children:e})})})})]})})}return Ut.jsx(Ei,{description:t,title:o,children:e})},Ri=a(((e,o)=>{const{decimalSeparator:n,thousandSeparator:r,value:i,...a}=e,s=t.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"group"===e.type))?.value??"";var e}),[void 0]),l=t.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"decimal"===e.type))?.value??".";var e}),[void 0]);return Ut.jsx(Oe,{...a,value:i??"",getInputRef:o,thousandSeparator:r??s,decimalSeparator:n??l})})),Ii=({disabled:e=!1,InputProps:t,inputProps:o,placeholder:n,hideActionButtons:i=!1,max:a=1/0,min:s=-1/0,startAdornment:l,endAdornment:c,internalChange:u,numericFormatProps:d,onChange:p,step:m=1,value:f,...g})=>{const b=h(),[y,v]=r(f),C=y,w=e=>{v(e),p&&p(e),u&&u()},j=()=>{const e=(null==C||Number.isNaN(C)?0:C)+m;e>a||w(e)},k=()=>{const e=(null==C||Number.isNaN(C)?0:C)-m;e<s||w(e)},S={decimalScale:5,isAllowed:({floatValue:e})=>null==e||e>=s&&e<=a,max:a!==1/0?a:void 0,min:s!==-1/0?s:void 0,step:1!==m?m:void 0,onKeyDown:e=>{"ArrowUp"===e.key?j():"ArrowDown"===e.key&&k()},onValueChange:({floatValue:e})=>{e!==C&&w(e)},value:C,...d};return Ut.jsx(Mn,{placeholder:n,sx:{height:eo,"& .MuiOutlinedInput-input":{minWidth:Kt,pl:l?1:2,pr:l?1:2}},...g,value:C??"",disabled:e,InputProps:{...t,inputComponent:Ri,startAdornment:l?Ut.jsx(L,{position:"start",sx:{pl:1},children:l}):null,endAdornment:!i&&Ut.jsxs(x,{gap:b.custom.margin.sm,sx:{height:"100%",alignItems:"center"},direction:"row",children:[c&&Ut.jsx(L,{position:"end",children:c}),Ut.jsxs(x,{sx:{height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${b.custom.palette.stroke.default}`},children:[Ut.jsx(W,{onClick:()=>j(),sx:{flex:1,borderTopRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:Ut.jsx(je,{fontSize:"inherit"})}),Ut.jsx(U,{}),Ut.jsx(W,{onClick:()=>k(),sx:{flex:1,borderBottomRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:Ut.jsx(ke,{fontSize:"inherit"})})]})]})},inputProps:{...o,...S}})};const Ai=(e,t)=>"light"===t?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},Ti=(e,t,o)=>{switch(t){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===o?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===o?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===o?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},Vi=v(q)((({theme:e,variation:t,weight:o})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...Ti(e,t,o),"& .MuiChip-label":{fontSize:`${nn.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...Ai(0,o)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...Ti(e,t,o),...Ai(0,o)}}))),Pi=({body:e,maxWidth:t,...o})=>Ut.jsx(Vi,{label:e,sx:{...t&&{maxWidth:`${t}px`}},...o});var Bi=function(){function e(e){var t=this;this._insertTag=function(e){var o;o=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,o),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Hi="undefined"!=typeof document,_i=function(e,t,o){for(var n=0,r=0;n=r,r=tt(),38===n&&12===r&&(t[o]=1),!Qe(r);)Ke();return nt(e,rt)},zi=function(e,t){return Ue(function(e,t){var o=-1,n=44;do{switch(Qe(n)){case 0:38===n&&12===tt()&&(t[o]=1),e[o]+=_i(rt-1,t,o);break;case 2:e[o]+=ot(n);break;case 4:if(44===n){e[++o]=58===tt()?"&\f":"",t[o]=e[o].length;break}default:e[o]+=et(n)}}while(n=Ke());return e}(qe(e),t))},Di=new WeakMap,Ni=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,o=e.parent,n=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Di.get(o))&&!n){Di.set(e,!0);for(var r=[],i=zi(t,r),a=o.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Zi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Wi(e,t){switch(Ge(e,t)){case 5103:return _e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+ze+e+De+e+e;case 6828:case 4268:return _e+e+De+e+e;case 6165:return _e+e+De+"flex-"+e+e;case 5187:return _e+e+He(e,/(\w+).+(:[^]+)/,_e+"box-$1$2"+De+"flex-$1$2")+e;case 5443:return _e+e+De+"flex-item-"+He(e,/flex-|-self/,"")+e;case 4675:return _e+e+De+"flex-line-pack"+He(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+De+He(e,"shrink","negative")+e;case 5292:return _e+e+De+He(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+He(e,"-grow","")+_e+e+De+He(e,"grow","positive")+e;case 4554:return _e+He(e,/([^-])(transform)/g,"$1"+_e+"$2")+e;case 6187:return He(He(He(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return He(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return He(He(e,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+De+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return He(e,/(.+)-inline(.+)/,_e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return He(e,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+ze+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Je(e,"stretch")?Wi(He(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ye(e,t+1))break;case 6444:switch(Ye(e,Xe(e)-3-(~Je(e,"!important")&&10))){case 107:return He(e,":",":"+_e)+e;case 101:return He(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(45===Ye(e,14)?"inline-":"")+"box$3$1"+_e+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return _e+e+De+He(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+De+He(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+De+He(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+De+e+e}return e}var Ui,qi,Gi=Hi?void 0:(Ui=function(){return e=function(){return{}},t=Object.create(null),function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]};var e,t},qi=new WeakMap,function(e){if(qi.has(e))return qi.get(e);var t=Ui(e);return qi.set(e,t),t}),Yi=[function(e,t,o,n){if(e.length>-1&&!e.return)switch(e.type){case Ze:e.return=Wi(e.value,e.length);break;case Ne:return Pe([Be(e,{value:He(e.value,"@","@"+_e)})],n);case Ae:if(e.length)return Te(e.props,(function(t){switch(Ve(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pe([Be(e,{props:[He(t,/:(read-\w+)/,":"+ze+"$1")]})],n);case"::placeholder":return Pe([Be(e,{props:[He(t,/:(plac\w+)/,":"+_e+"input-$1")]}),Be(e,{props:[He(t,/:(plac\w+)/,":"+ze+"$1")]}),Be(e,{props:[He(t,/:(plac\w+)/,De+"input-$1")]})],n)}return""}))}}],Xi=function(e){var t=e.key;if(Hi&&"css"===t){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,r,i=e.stylisPlugins||Yi,a={},s=[];Hi&&(n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),o=1;o<t.length;o++)a[t[o]]=!0;s.push(e)})));var l=[Ni,Zi];if(Gi){var c=[Fe],u=Ie(l.concat(i,c)),d=Gi(i)(t),p=function(e,t){var o,n=t.name;return void 0===d[n]&&(d[n]=(o=e?e+"{"+t.styles+"}":t.styles,Pe(We(o),u))),d[n]};r=function(e,t,o,n){var r=t.name,i=p(e,t);return void 0===g.compat?(n&&(g.inserted[r]=!0),i):n?void(g.inserted[r]=i):i}}else{var m,h=[Fe,Re((function(e){m.insert(e)}))],f=Ie(l.concat(i,h));r=function(e,t,o,n){var r;m=o,r=e?e+"{"+t.styles+"}":t.styles,Pe(We(r),f),n&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new Bi({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return g.sheet.hydrate(s),g};const Ji=v("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),Ki=e=>{const[t,o]=r(null),n=t?.contentWindow?.document?.body,i=Xi({key:"css",container:t?.contentWindow?.document?.head,prepend:!0});return Ut.jsx(Ji,{ref:o,children:n&&st(Ut.jsx(at,{value:i,children:e.children}),n)})},Qi=()=>Ut.jsxs(x,{gap:.5,flexDirection:"row",children:[Ut.jsx(f,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),Ut.jsxs(f,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ut.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:Ut.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),Ut.jsx("defs",{children:Ut.jsx("clipPath",{id:"clip0_900_1816",children:Ut.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),ea=({options:e,onChange:t,other:o,value:i,internalChange:a,...s})=>{const l=o?.enabled,c="other-option",u=`${c}-value-`,[d,p]=r(i),[m,h]=r(!1);n((()=>{!m&&d?.includes(u)?h(!0):m&&h(!1)}),[d]);return Ut.jsxs(Ut.Fragment,{children:[Ut.jsxs(I,{...s,value:d,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,o)=>{t&&t(o),p(o),a&&a()},children:[e?e.map(((e,t)=>Ut.jsx(wn,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:Ut.jsx(_n,{})},t))):null,l&&Ut.jsx(wn,{label:o?.label||"Other",value:u,control:Ut.jsx(_n,{checked:d?.includes(u)})},c)]}),m&&Ut.jsx(j,{sx:{mt:1},children:Ut.jsx(Ln,{fullWidth:!0,autoFocus:!0,placeholder:o?.placeholder,defaultValue:d?.replace(u,""),onChange:e=>{var o;t&&t((o=e.target.value,`${u}${o}`)),a&&a()},required:!0})})]})},ta=({handleSelectAll:e,isIndeterminate:t,isAllSelected:o,sizing:i})=>{const[a,s]=r(!1),l=h();return n((()=>{o&&s(o)}),[o]),Ut.jsxs(x,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:t=>{const o=!a;s(o),e(t,o)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[Ut.jsx(G,{sx:{cursor:"pointer",fontSize:()=>i&&an[i]},children:"Select all"}),Ut.jsx(kn,{sizing:"default",indeterminate:t,checked:a})]})},oa=a((({children:e,handleSelectAll:t,showSelectAll:o,value:n=[],selections:r,sizing:i,...a},s)=>{const l=Array.isArray(n)&&n.length===r.length,c=Array.isArray(n)&&n.length>0&&n.length<r.length;return Ut.jsxs("ul",{ref:s,...a,children:[o&&Ut.jsx(ta,{handleSelectAll:t,isIndeterminate:c,isAllSelected:l,sizing:i}),e]})})),na="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",ra=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},ia=(e,t)=>({"& .MuiTypography-root":{height:ra(t),fontSize:an[t],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm)}}),aa=e=>({fontSize:`${nn.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(ro.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),sa=(e,t)=>{switch(t){case"lg":return{height:ra(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.lg,height:uo.lg,top:`calc(50% - ${uo.lg/2}px)`}};case"md":return{height:ra(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.md,height:uo.md,top:`calc(50% - ${uo.md/2}px)`}};case"xs":return{height:ra(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.xs,height:uo.xs,top:`calc(50% - ${uo.xs/2}px)`}};default:return{height:ra("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:uo.lg,height:uo.lg,top:`calc(50% - ${uo.lg/2}px)`}}}},la=e=>({position:"relative",fontSize:`${nn.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:uo.xl,height:uo.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),ca=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:na}}}}),ua=v(Y)((({theme:e,sizing:t,value:o})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:uo[t],height:uo[t]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...t&&{height:"xs"===t?2*oo+"px":3*oo+"px"},paddingTop:0,paddingBottom:0,paddingLeft:o&&Array.isArray(o)&&o.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:an[t],gap:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*oo+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...t&&{height:"xs"===t?2*oo+"px":3*oo+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),da=v(q)((({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),pa=v(M)((({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),ma=v(N)((({theme:e,sizing:t})=>({"& .MuiPaper-root":{...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===t?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===t?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:na,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${X.listbox}`]:{overflowX:"hidden",[`& .${X.option}`]:{fontSize:an[t],...t&&{height:"lg"===t?5*oo+"px":4*oo+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),ha=e=>Ut.jsx(ma,{...e}),fa=({selections:e,disableClearable:t=!1,disabled:o,internalChange:n,multiple:i=!0,onChange:s,placeholder:l="",renderListItem:c,sizing:u="lg",value:d=(i?[]:"")})=>{const[p,m]=r(e.filter((e=>d.includes(e?.value)))),h=(t,o)=>{if(s){const r=o?e.map((({value:e})=>e)):[];m(o?e:[]),s(t,r,"selectOption"),n&&n()}},f=e=>null!==e&&(!Array.isArray(e)||e.length>0);return Ut.jsx(ua,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:Ut.jsx(Se,{}),sizing:u,disabled:o,disableClearable:t,autoComplete:!0,multiple:i,renderInput:e=>Ut.jsx(pa,{...e,placeholder:f(p)?void 0:l,sizing:u}),options:e,renderTags:(e,t)=>e.map(((e,o)=>{const{key:n,...r}=t({index:o});return Ut.jsx(da,{sizing:u,deleteIcon:Ut.jsx(Me,{fontSize:"small"}),label:e.label,...r},n)})),onChange:(e,t,o)=>{const r=Array.isArray(t)?t.map((e=>e.value)):t?.value??null;m(t),s?.(e,r,o),n?.()},PopperComponent:e=>Ut.jsx(ha,{...e,sizing:u}),isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,{selected:o})=>{const{key:n,...r}=e;return Ut.jsxs("li",{...r,children:[Ut.jsx("span",{children:c?c(t.value,t.label):t.label}),Ut.jsx(ye,{sx:{visibility:o?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:a(((t,o)=>Ut.jsx(oa,{ref:o,...t,showSelectAll:i,handleSelectAll:h,value:p,selections:e,sizing:u}))),value:p})},ga=v(V)((({theme:e})=>({...{...la(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),xa=({children:e,selected:t,...o})=>Ut.jsx(ga,{...o,children:Ut.jsxs(j,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[Ut.jsx(j,{children:e}),t&&Ut.jsx(ye,{})]})}),ba=v(J)((({theme:e,sizing:t})=>({...{...aa(e)},...t&&{...sa(e,t)},...t&&{...ia(e,t)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),ya=({selections:e,autoComplete:t=!1,disabled:o=!1,disablePortal:n=!1,inputRef:r,internalChange:i,multi:a=!0,onChange:s,placeholder:l="",selectOptionProps:c,sizing:u="lg",sx:d,value:p=[],renderListItem:m,...f})=>{const g=h(),x=Er();return t?Ut.jsx(fa,{selections:e,placeholder:l,disabled:o,sizing:u,onChange:(e,t)=>{s&&s(t||""),i&&i()},value:Array.isArray(p)?p??[]:p??"",internalChange:i,renderListItem:m,multiple:a}):Ut.jsxs(ba,{sizing:u,inputRef:r,MenuProps:{disablePortal:n,sx:ca,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:Se,renderValue:t=>l&&!t?Ut.jsx(Xo,{component:"p",variation:"sm"===x||"md"===x?"sm":"lg",sx:{color:g.custom.palette.text.placeholder},children:l}):Ut.jsx(Xo,{component:"p",variation:"sm"===x||"md"===x?"sm":"lg",children:e?.find((({value:e})=>e===t))?.label}),onChange:(e,t)=>{s&&s(e,t),i&&i()},sx:d,value:p,...f,children:[""!==l.trim()&&Ut.jsx(xa,{disabled:!0,value:"","aria-label":"placeholder",children:l},"placeholder"),e?.map((({value:e,label:t})=>Ut.jsx(xa,{value:e,...c,children:m?m(e,t):t},e)))]})},va=v(j)((({theme:e,disabled:t,fullWidth:o})=>({width:o?"100%":"auto",minWidth:240,backgroundColor:t?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${t?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...t&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),Ca=v(qr)((({theme:e})=>({fontSize:nn.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),wa=({label:e="Placeholder",disabled:t,onChange:o,options:n,fullWidth:r})=>{const i=h(),a=n.map((e=>e.label)).indexOf(e);return Ut.jsx(va,{disabled:t,fullWidth:r,children:Ut.jsxs(x,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[Ut.jsxs(j,{display:"flex",alignItems:"center",sx:{"& svg":{fill:i.custom.palette.icon.secondary}},children:[Ut.jsx(Le,{sx:{width:uo.lg,height:uo.lg,mr:i.custom.padding.sm}}),Ut.jsx(Ca,{align:"left",disabled:t,children:e})]}),Ut.jsx(ya,{name:"rank",sizing:"xs",selections:n.map(((e,t)=>({label:`${t+1}`,value:`${t}`}))),disabled:t,value:`${a}`,onChange:function(e){const t=a,r=Number(e.target.value),i=n;let s=1;const l=i.splice(t,s)[0];s=0,i.splice(r,s,l),o(i)},MenuProps:{anchorOrigin:{vertical:Qt,horizontal:"center"}}})]})})},ja=s({attributes:{},listeners:void 0,ref(){}}),ka=e=>bt({...e,wasDragging:!0});function Sa({children:e,top:t,bottom:o,id:n}){const{attributes:r,isDragging:i,listeners:a,setNodeRef:s,setActivatorNodeRef:c,transform:u,transition:d}=xt({id:n,animateLayoutChanges:ka}),p=l((()=>({attributes:r,listeners:a,ref:c})),[r,a,c]),m={opacity:i?.4:void 0,transform:kt.Translate.toString(u),transition:d};return Ut.jsx(ja.Provider,{value:p,children:Ut.jsxs(x,{className:"SortableItem",...r,sx:{position:"relative",...m,width:"100%"},ref:s,children:[t&&t,Ut.jsx(j,{...a,sx:{display:"flex",cursor:"grab"},children:e}),o&&o]})})}const Ma={sideEffects:lt({styles:{active:{opacity:"0.4"}}})};function La({children:e}){return st(Ut.jsx(ct,{zIndex:999999,dropAnimation:Ma,children:e}),document.body)}const Ea=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class $a extends ft{static activators=[{eventName:"onMouseDown",handler:Ea}]}class Oa extends gt{static activators=[{eventName:"onTouchStart",handler:Ea}]}function Fa({items:e,onChange:t,renderItem:o,disabled:n,direction:i}){if(!e)return;const[a,s]=r(null),c=l((()=>e.find((e=>e?.id===a?.id))),[a,e]),d=h(),p=K(d.breakpoints.down("md")),m=ut(dt($a,{activationConstraint:{distance:5}}),dt(Oa,{activationConstraint:{delay:p?300:0,tolerance:8}}),dt(pt,{coordinateGetter:yt}));return Ut.jsxs(mt,{measuring:{droppable:{strategy:ht.Always}},sensors:m,onDragStart:({active:e})=>{s(e)},onDragEnd:({active:o,over:n})=>{if(n&&o.id!==n?.id){const r=e.findIndex((({id:e})=>e===o.id)),i=e.findIndex((({id:e})=>e===n.id));t(vt(e,r,i))}s(null)},onDragCancel:()=>{s(null)},children:[Ut.jsx(Ct,{items:e,disabled:n,strategy:"horizontal"===i?wt:jt,children:Ut.jsx(x,{sx:{..."horizontal"===i&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:e.map((e=>Ut.jsx(u,{children:o(e)},e.id)))})}),Ut.jsx(La,{children:c?o(c,!0,!!a):null})]})}Fa.Item=Sa,Fa.DragHandle=function(){const{attributes:e,listeners:t,ref:o}=c(ja);return Ut.jsx(j,{...e,...t,ref:o,children:Ut.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:Ut.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const Ra=({labelTop:e,labelBottom:t,disabled:o,fullWidth:n=!1,options:i,onChange:a,value:s,internalChange:l})=>{const c=h(),[u,d]=r(s||i);function p(e){d(e),a(e.map((({id:e})=>e))),l&&l()}return Ut.jsxs(x,{gap:c.custom.margin.sm,textAlign:"center",sx:{width:n?"100%":"auto"},children:[e&&Ut.jsx(qr,{disabled:o,sx:{color:c.custom.palette.text.secondary},children:e}),Ut.jsx(Fa,{onChange:function(e){d(e),a(e.map((({id:e})=>e))),l&&l()},items:u,direction:"vertical",renderItem:({...e})=>Ut.jsx(Sa,{id:e.id,children:Ut.jsx(wa,{onChange:p,...e,options:u,disabled:o,selections:e.selections,fullWidth:n})})}),t&&Ut.jsx(qr,{disabled:o,sx:{color:c.custom.palette.text.secondary},children:t})]})},Ia=v(Lt)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),Aa=({onChange:e,value:t,internalChange:n,minWidth:r=100,minHeight:i=100,maxHeight:a,placeholder:s,autoFocus:l})=>{const c=o(null),u=h();return Ut.jsx(Ia,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:i,minWidth:r,maxHeight:a}},ref:c,onUpdate:({editor:t})=>{e&&e(t.storage.markdown.getMarkdown()),n&&n()},extensions:[Mt.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),St.configure({placeholder:s}),Ot],content:t,renderControls:()=>Ut.jsxs(x,{gap:u.custom.margin.xs,direction:"row",children:[Ut.jsx(Et,{}),Ut.jsx($t,{})]})})},Ta=e=>({"& .MuiSlider-thumb":{width:Kt,height:Kt,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:Yt,height:Yt,backgroundColor:e.custom.palette.icon.primaryInverted}}}),Va=e=>Array.isArray(e),Pa=(e,t)=>({height:Xt,padding:`${Xt}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${Qt}px)`,left:`-${Jt}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:t&&Va(t)?`-${Xt+1}px`:`-${Jt+1}px`,width:`calc(100% + ${Jt}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:Yt,width:Yt,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),Ba=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:Yt,minWidth:Qt,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${nn.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),Ha=v(Q)((({theme:e,value:t})=>({"&.MuiSlider-root":{width:`calc(100% - ${Qt}px)`,marginLeft:Qt/2,...{...Pa(e,t)},...{...Ta(e)},...{...Ba(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),_a=[1,2,5,10],za=(e,t)=>{if(e>=t)return console.warn("Min value must be less than max value"),1;const o=(t-e)/9;if(o<=1)return 1;const n=Math.floor(Math.log10(o)),r=o/Math.pow(10,n);return i=r,(_a.find((e=>i<=e))??_a[_a.length-1])*Math.pow(10,n);var i},Da=({labelLeft:e,labelMiddle:t,labelRight:o,labelRightProps:n,labelLeftProps:r,disabled:i,onChange:a,internalChange:s,max:l=5,min:c=1,step:u,value:d=c,...p})=>{const{sanitisedMin:m,sanitisedMax:h}=((e,t)=>e>=t?{sanitisedMin:1,sanitisedMax:5}:{sanitisedMin:e,sanitisedMax:t})(c,l),f=((e,t,o)=>{const n=[];for(let r=e;r<=t;r+=o)n.push({value:r,label:r===e||r===t||r+o<=t?r.toString():void 0});return n[n.length-1].value!==t&&n.push({value:t,label:t.toString()}),n})(m,h,u??za(c,l));return Ut.jsxs(j,{sx:{minWidth:300},children:[Ut.jsx(j,{height:24,children:Ut.jsx(Ha,{valueLabelDisplay:i?"on":"auto",disabled:i,marks:f,step:u,max:h,min:m,onChangeCommitted:()=>{s&&s()},onChange:(e,t,o)=>{a&&a(e,t,o)},value:d,...p})}),Ut.jsxs(j,{sx:{display:"flex",justifyContent:"space-between",pt:ro.lg,gap:1},children:[e&&Ut.jsx(j,{sx:{flex:1},children:Ut.jsx(Vn,{disabled:i,showicon:!1,...r,children:e})}),t&&Ut.jsx(j,{sx:{flex:1,textAlign:"center"},children:Ut.jsx(Vn,{showicon:!1,disabled:i,children:t})}),o&&Ut.jsx(j,{sx:{flex:1,textAlign:"right"},children:Ut.jsx(Vn,{...n,showicon:!1,disabled:i,children:o})})]})]})},Na=v(ee)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),Za=({internalChange:e,onChange:t,...o})=>Ut.jsx(Na,{...o,onChange:(o,n)=>{t&&t(o,n),e&&e()},icon:Ut.jsx(f,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:Ut.jsx(f,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ut.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),Wa=v((e=>Ut.jsx(te,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),Ua=v(Mn)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:eo,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:uo.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),qa=({startAdornment:e,endAdornment:t,onChange:o,internalChange:n,inputRef:r,...i})=>Ut.jsx(Ua,{multiline:!0,inputRef:r,InputProps:{startAdornment:e?Ut.jsx(L,{position:"start",children:e}):null,endAdornment:t?Ut.jsx(L,{position:"start",children:t}):null},onChange:e=>{o&&o(e),n&&n()},...i}),Ga=({typographyProps:e,text:t,sx:o})=>{const n=h();return Ut.jsx(j,{sx:Ee(o,{width:"100%",position:"relative",display:"flex",gap:4,my:n.spacing(n.custom.margin.md),"&:before":{content:'""',width:"100%",background:n.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:n.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:Ut.jsx(Xo,{align:"center",variation:"sm",component:"p",...e,children:t})})},Ya=({buttons:e,message:t,status:o="neutral",variation:n="sm"})=>{const r=h();return Ut.jsx(x,{sx:{backgroundColor:r.custom.palette.surface.overlay,borderRadius:r.spacing(r.custom.radius.lg),boxShadow:r.custom.elevation.overlay,color:r.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:Ut.jsxs(j,{sx:{display:"flex",flex:1,flexDirection:"sm"===n?"row":"column",gap:2},children:[Ut.jsxs(j,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&Ut.jsx(Xa,{status:o}),Ut.jsx(j,{sx:{display:"flex"},children:Ut.jsx(Xo,{variation:"md",component:"p",sx:{px:1,pt:.5},children:t})})]}),e&&Ut.jsx(j,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},Xa=({status:e})=>{const t=h();switch(e){case"neutral":return null;case"success":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.green[500],name:"check-circle"});case"warning":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.yellow[500],name:"error-outline"});case"danger":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.red[500],name:"warning-amber"});case"discover":return Ut.jsx(Ja,{backgroundColor:t.custom.palette.purple[500],name:"lightbulb"})}},Ja=({backgroundColor:e,name:t})=>{const o=h();return Ut.jsx(j,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:Ut.jsx(j,{sx:{backgroundColor:e,borderRadius:o.custom.radius.round,color:o.custom.palette.white,display:"flex",p:.5},children:Ut.jsx(po,{name:t,size:20})})})},Ka=v(w)((({active:e,theme:t})=>({maxWidth:"100%",padding:t.spacing(.5),textTransform:"none",width:"100%",...dn(t,e)}))),Qa=v(j)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),es=v(x)({alignItems:"flex-start",display:"flex",justifyContent:"center"}),ts=v(x)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),os=v(j)((({active:e,theme:t})=>({alignItems:"center",borderRadius:t.custom.radius.round,cursor:"pointer",display:"flex",justifyContent:"center",padding:t.spacing(.5),...dn(t,e)}))),ns=({active:e,avatar:t,email:o,name:n,variation:r})=>{const i=h();return"sm"===r?Ut.jsx(j,{sx:{display:"flex",justifyContent:"center"},children:Ut.jsx(os,{active:e,children:Ut.jsx(Ko,{src:t,variation:"sm"})})}):Ut.jsx(Ka,{active:e,children:Ut.jsxs(Qa,{sx:{flex:1},children:[Ut.jsxs(Qa,{children:[Ut.jsx(Ko,{src:t,variation:"sm"}),Ut.jsxs(es,{children:[Ut.jsx(Xo,{variation:"sm",component:"p",lineHeight:1.2,children:n}),Ut.jsx(Xo,{variation:"xs",component:"p",sx:{color:i.custom.palette.text.secondary},lineHeight:1.2,children:o})]})]}),Ut.jsx(ts,{children:Ut.jsx(po,{name:"chevron-right",size:24})})]})})},rs=v(w)((({active:e,theme:t})=>({borderRadius:t.spacing(t.custom.radius.sm),maxWidth:"100%",padding:t.spacing(.75,1.5),textTransform:"none",width:"100%",...dn(t,e)}))),is=v(j)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),as=v(x)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),ss=({active:e,danger:t,hasChildren:o,selected:n,title:r})=>{const i=h();return Ut.jsx(rs,{active:e,children:Ut.jsxs(is,{sx:{flex:1},children:[Ut.jsx(is,{children:Ut.jsx(Xo,{variation:"md",component:"p",lineHeight:1.2,color:t?i.custom.palette.text.negative:i.custom.palette.text.primary,children:r})}),Ut.jsxs(as,{children:[o&&Ut.jsx(po,{name:"chevron-right",size:24}),n&&Ut.jsx(po,{name:"check-thin",size:24})]})]})})},ls=({button:e,children:t,state:o})=>Ut.jsx(D,{onClickAway:()=>o.close(),children:Ut.jsxs(j,{children:[Ut.jsx(j,{...bi(o),children:e}),Ut.jsx(N,{...yi(o),placement:"right-end",transition:!0,children:({TransitionProps:e})=>Ut.jsx(Z,{...e,timeout:350,children:Ut.jsx(j,{sx:{pl:1},children:t})})})]})}),cs=({avatar:e,email:t,menuItems:o,name:n,variation:r})=>{const i=gi({variant:"popper"});return Ut.jsx(ls,{state:i,button:Ut.jsx(ns,{active:i.isOpen,avatar:e,email:t,name:n,variation:r}),children:Ut.jsx(Li,{borderradius:"md",variation:"overlay",sx:{width:192},children:Ut.jsx(x,{sx:{p:1},children:o?.map(us)})})})},us=(e,t)=>{if(e.children?.length){const o=gi({variant:"popper"});return Ut.jsx(ls,{state:o,button:Ut.jsx(ss,{title:e.title,active:o.isOpen,hasChildren:!0,selected:e.selected}),children:Ut.jsx(Li,{borderradius:"md",variation:"overlay",sx:{width:192},children:Ut.jsx(x,{sx:{p:1},children:e.children.map(us)})})},t)}return Ut.jsx(ss,{title:e.title,selected:e.selected})};const ds=(e,t)=>{switch(e){case 1:return t.custom.palette.red[500];case 2:return t.custom.palette.yellow[500];case 3:case 4:return t.custom.palette.green[500];default:return t.custom.palette.icon.disabled}},ps=(e,t)=>{switch(e){case 1:return t.custom.palette.text.negative;case 2:return t.custom.palette.yellow[800];case 3:return t.custom.palette.green[800];case 4:return t.custom.palette.text.positive;default:return t.custom.palette.icon.disabled}},ms=v(oe)((({theme:e,score:t})=>({boxShadow:"unset",background:e.custom.palette.neutral[100],borderRadius:e.spacing(e.custom.radius.sm),[`.${ne.bar}`]:{borderRadius:e.spacing(e.custom.radius.sm),backgroundColor:ds(t,e)}}))),hs={translations:Pt.translations,graphs:Vt.adjacencyGraphs,dictionary:{...Vt.dictionary,...Pt.dictionary}};At.setOptions(hs);const fs=({label:e="Strength",width:t=60,value:o,onChange:i})=>{const[a,s]=r(0),l=h();return n((()=>{s(Tt(o).score)}),[o]),n((()=>{i(a)}),[a]),Ut.jsxs(x,{direction:"row",gap:1,sx:{alignItems:"center"},children:[Ut.jsx(Xo,{variation:"sm",component:"p",children:e}),Ut.jsx(ms,{variant:"determinate",value:0===a?6.6:25*a,score:a,sx:{width:t}}),Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:ps(a,l)},children:["","Very weak","Weak","Strong","Excellent"][a]})]})},gs=({helperText:e,inputName:t,errors:o,...n})=>{const r=Boolean(o&&o[t]);return r?Ut.jsx(Bt,{errors:o,name:t,render:({message:e})=>Ut.jsx(Vn,{showicon:!!e,state:"negative",children:e})}):e&&!r?Ut.jsx(Vn,{state:"default",...n,children:e}):null},xs={textfield:Ln,numberfield:Ii,textarea:qa,select:ya,checkbox:Sn,checkboxGroup:En,slider:Da,starRating:Za,differential:Zn,likert:ti,radioGroup:ea,ranking:Ra,richTextfield:Aa,customfield:In},bs=({name:e,fieldType:t,label:o,control:i,errors:a,labelProps:s,helperText:l,helpTextProps:c,validation:u,content:d,styleOverrides:p,defaultValue:m,onChange:f,watch:g,trigger:b,strengthIndicator:y,...v})=>{const{custom:C}=h(),w=void 0!==a&&Object.keys(a).length>0,[j,k]=r(0);return y&&n((()=>{j>0&&b(e)}),[j]),Ut.jsxs(x,{sx:p?.sxInputStack,gap:C.margin.sm,children:[o&&Ut.jsx(qr,{...s,children:o}),"html"===t&&d?Ut.jsx(Or,{children:d}):Ut.jsxs(Ut.Fragment,{children:[Ut.jsx(Ft,{name:e,control:i,render:e=>function({field:{ref:e,...o}}){const n=xs[t];return null!==o.value?Ut.jsx(n,{...v,...o,inputRef:e}):Ut.jsx("div",{})}({...e,field:{...e.field,value:e.field.value||m}}),rules:{...u,validate:e=>{if(u&&"phone"in u)return It(`+${g("extension")}${e}`)||u.phone.message;if(u&&"score"in u)return j<=u.score.value?u.score.message:void 0;if(u&&"white_space"in u)return!e.match(/^\s*$/g)||u.white_space.message;if(u&&"match"in u)switch(u.match?.comparison){case"not_eq":return e!=g(u.match.field)||u.match.message;case"gt":return e>g(u.match.field)||u.match.message;case"lt":return e<g(u.match.field)||u.match.message;default:return e===g(u.match.field)||u.match.message}}}}),y&&"password"===v?.type&&Ut.jsx(fs,{value:g(e),onChange:k})]}),Ut.jsxs(Ut.Fragment,{children:[Boolean(w)?Ut.jsx(gs,{helperText:void 0,inputName:e,errors:a,showicon:!0}):null,Boolean(l)?Ut.jsx(gs,{helperText:l,inputName:e,errors:void 0,...c}):null]})]})},ys=e=>e.reduce(((e,t)=>({...e,[t?.name]:vs(t,t?.defaultValue)})),{}),vs=(e,t)=>{switch(e.fieldType){case"select":return Array.isArray(t),t;case"starRating":case"numberfield":return t||0;case"slider":{const{min:o}=e;return Array.isArray(t)?t:t||o}case"likert":case"radioGroup":case"customfield":default:return t||"";case"checkboxGroup":return t||[];case"checkbox":return t||!1;case"ranking":{const{options:o}=e;return t?t.map((e=>o.find((({id:t})=>t===e)))):o}}},Cs=a((({submitButton:e,secondaryButton:t,onFormSubmit:o,onFormChange:r,formConfig:i},a)=>{const{custom:s}=h(),{fields:c,reValidateMode:u,styleOverrides:m,autoComplete:f,formId:g,mode:b}=i,{reset:y,getValues:v,trigger:C,setValue:w,control:k,formState:{isValid:S,errors:M},setFocus:L,handleSubmit:E,watch:$}=Rt({mode:b||"onChange",reValidateMode:u,defaultValues:l((()=>ys(c)),[]),shouldUnregister:!0});n((()=>{(function(e,t){const o=new Set(e),n=new Set(t);return e.every((e=>n.has(e)))&&t.every((e=>o.has(e)))})(c.map((({name:e})=>e)),Object.keys(v()))||c.forEach((e=>{"html"!==e.fieldType&&e.defaultValue&&w(e.name,vs(e,e.defaultValue))}))}),[c]),n((()=>{y(ys(c))}),[g]),d(a,(()=>({set(e,t){w(e,t)},resetForm(){y()},focus(e){L(e)},submit(){o&&E(o)()},values:()=>v(),valid:()=>S,errors:()=>M,async triggerFormValidation(){await C()}})));const O=()=>{r&&r(v())};return Ut.jsxs(j,{component:"form",autoComplete:f,noValidate:!0,sx:m?.sxForm,...o&&{onSubmit:E(o)},children:[Ut.jsx(x,{gap:s.margin.md,sx:m?.sxStack,children:c.map((({name:e,...t})=>p(bs,{...r&&{internalChange:O},name:e,key:e,errors:M,control:k,watch:$,trigger:C,...t,defaultValue:ys(c)[e]})))}),(t||e)&&Ut.jsxs(x,{direction:"row",sx:m?.sxButtons||{mt:s.margin.lg,gap:s.margin.sm,justifyContent:"flex-end"},children:[t&&t,e&&e]})]})})),ws={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},js=e=>{const t=e.toLowerCase();return["a","e","i","o","u"].some((e=>t.startsWith(e)))?"an":"a"},ks=(e,t,o)=>({maxLength:{value:o||255,message:`Maximum character limit of ${o||255}.`},...t&&{required:e?`Please enter ${js(e)} ${e}`:"This field is required"}}),Ss=ks().maxLength.value,Ms=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}}),Ls=({children:e,headContent:t,sx:o,...n})=>{const r=h();return Ut.jsxs(Li,{...n,sx:Ee(o,{mx:[r.spacing(r.custom.margin.md),0],width:1,maxWidth:[512]}),children:[t&&Ut.jsx(j,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:r.spacing(r.custom.margin.md),px:r.spacing(r.custom.margin.md)},children:t}),Ut.jsx(j,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:t?[r.spacing(r.custom.margin.md)]:[r.spacing(r.custom.padding.lg),r.spacing(r.custom.padding.xl)],px:[r.spacing(r.custom.padding.lg),r.spacing(r.custom.padding.xl)],pb:[r.spacing(r.custom.padding.lg),r.spacing(r.custom.padding.xl)]},children:e})]})},Es=({body:e,currency:t,changeCurrencyEvent:o=()=>{},frequency:n,heading:r,setCurrency:i=()=>{},setFrequency:a=()=>{},togglePayAnnuallyEvent:s=()=>{}})=>{const l=h(),c=Er(),u=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return Ut.jsxs(j,{sx:{alignItems:"center",backgroundColor:l.custom.palette.surface.default,borderRadius:l.custom.radius.round,boxShadow:l.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[Ut.jsxs(j,{sx:{alignItems:"center",display:"flex",gap:1},children:[Ut.jsx(Wa,{defaultChecked:!0,onChange:()=>(s(),void a("monthly"===n?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==n,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),Ut.jsxs(x,{sx:{alignItems:"flex-start",display:"flex"},children:[Ut.jsx(Xo,{variation:"sm"===c||"md"===c?"md":"xxl",component:"p",children:r}),Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:l.custom.palette.text.secondary},children:e})]})]}),Ut.jsx(ya,{name:"currency",onChange:e=>{return t=e.target.value,o(t),void i(t);var t},selections:u,value:u.find((e=>e.value===t))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:Qt,lg:eo}}})]})};var $s={headings:{"01-starter":{heading:"Starter",pricing:"{{currencySymbol}} {{starterPrice}} / month"},"02-team":{heading:"Team",pricing:"{{currencySymbol}} {{teamPrice}} / month"},"03-plus":{heading:"Plus",pricing:"{{currencySymbol}} {{plusPrice}} / month"},"04-scale":{heading:"Scale",pricing:"{{currencySymbol}} {{scalePrice}} / month"}},rows:{"01-seats":{heading:"Seats",description:"The number of users you can have on your account.",starter:"1",team:"10",plus:"50",scale:"100+"},"02-servicing":{heading:"Client servicing included",description:"Get direct communication with a Loops Customer Success Manager.",starter:"{{dash}}",team:"{{dash}}",plus:"Serviced lite",scale:"💪\nFully serviced"},"03-respondents":{heading:"Price per respondent",description:"The amount you pay to recruit and survey each respondent.",starter:"{{currencySymbol}}{{starterRespondentPrice}}",team:"{{currencySymbol}}{{teamRespondentPrice}}",plus:"{{currencySymbol}}{{plusRespondentPrice}}",scale:"{{currencySymbol}}{{scaleRespondentPrice}}"},"04-questions":{heading:"Question limit",description:"The maximum number of questions you can add to a test.",starter:"10",team:"15",plus:"20",scale:"25"},"05-ai":{heading:"AI-powered insights",description:"Use Loops AI to summarise the findings from your tests.",starter:"Basic",team:"✨\nAdvanced",plus:"✨\nAdvanced",scale:"✨\nAdvanced"},"06-demographics":{heading:"Demographic filters",description:"Reach your target audience using built-in demographic filters.",starter:"Basic",team:"🎯\nAdvanced",plus:"🎯\nAdvanced",scale:"🎯\nAdvanced"},"07-training":{heading:"Training",description:"Our team will onboard you and get you set up.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"08-invite":{heading:"Invite your own respondents",description:"Share your test with your own recruited audience.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"09-email":{heading:"Email capture",description:"Ability to collect respondent email addresses.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"10-beta":{heading:"Beta features",description:"Assess to our latest features as they become available.",starter:"{{dash}}",team:"{{dash}}",plus:"{{tick}}",scale:"{{tick}}"},"11-sso":{heading:"Single sign on (SSO)",description:"Enterprise level authentication using SAML (supports Okta and OneLogin).",starter:"{{dash}}",team:"{{dash}}",plus:"{{dash}}",scale:"{{tick}}"},"12-minimum":{heading:"Minimum term",description:"The minimum subscription period.",starter:"30 days",team:"6 months",plus:"6 months",scale:"12 months"}}};const Os=({currencySymbol:e,data:t,starterPrice:o,starterRespondentPrice:n,teamPrice:r,teamRespondentPrice:i,plusPrice:a,plusRespondentPrice:s,scalePrice:l,scaleRespondentPrice:c,variation:u="default"})=>{const d=h();t||(t=$s);const p=Object.values(t.headings).map((({heading:t,pricing:n})=>({heading:t,pricing:n.replace("{{currencySymbol}}",e).replace("{{starterPrice}}",o).replace("{{teamPrice}}",r).replace("{{plusPrice}}",a).replace("{{scalePrice}}",l)}))),m=t=>t.replace("{{currencySymbol}}",e).replace("{{starterRespondentPrice}}",n||"").replace("{{teamRespondentPrice}}",i||"").replace("{{plusRespondentPrice}}",s||"").replace("{{scaleRespondentPrice}}",c||""),f=[...Object.values(t.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},starter:m(e.starter),team:m(e.team),plus:m(e.plus),scale:m(e.scale)})))];return Ut.jsxs(x,{sx:{backgroundColor:d.custom.palette.surface.default,borderRadius:d.spacing(d.custom.radius.xl),boxShadow:d.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[Ut.jsxs(j,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[Ut.jsx(j,{sx:{width:160}}),p.map((({heading:e,pricing:t})=>Ut.jsxs(x,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[Ut.jsx(Xo,{variation:"platform"===u?"lg":"xxl",component:"p",weight:"bold",children:e}),Ut.jsx(Xo,{variation:"platform"===u?"sm":"md",component:"p",sx:{color:d.custom.palette.text.secondary},children:t})]},e)))]}),f.map((e=>Ut.jsxs(j,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:d.custom.palette.surface.sunken}},children:[Ut.jsx(j,{sx:{display:"flex",alignItems:"center",width:160},children:Ut.jsxs(j,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&Ut.jsx(zr,{message:e.name.description,children:Ut.jsx(j,{sx:{alignItems:"center",color:d.custom.palette.icon.secondary,display:"flex"},children:Ut.jsx(po,{name:"info",size:24})})}),Ut.jsx(Xo,{variation:"platform"===u?"md":"lg",component:"p",children:e.name.heading})]})}),Ut.jsx(Fs,{text:e.starter}),Ut.jsx(Fs,{text:e.team}),Ut.jsx(Fs,{text:e.plus}),Ut.jsx(Fs,{text:e.scale})]},e.key)))]})},Fs=({text:e})=>{const t=h(),o="{{tick}}"===e,n="{{dash}}"===e;return Ut.jsx(j,{sx:{display:"flex",alignItems:"center",textAlign:"center",width:122},children:Ut.jsxs(j,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:{sm:.5,md:1},flex:1},children:[o&&Ut.jsx(po,{name:"check",size:24}),n&&Ut.jsx(po,{name:"dash",size:24}),!o&&!n&&Ut.jsx(Xo,{variation:"lg",component:"p",sx:{color:t.custom.palette.text.secondary,hyphens:"none",whiteSpace:"pre"},children:Ut.jsx(Ut.Fragment,{children:e})})]})})},Rs=()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[o,i]=r(t);return n((()=>{if(e)return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o);function o(){m((()=>{i(t())}))}}),[]),o},Is=({amount:e,billingType:t,body:i,ctaEvent:a=()=>{},ctaLink:s="#",ctaTarget:l="_self",ctaText:c,ctaVariation:u="primary",currencySymbol:d,currentPlan:p,features:f=[],freeTrialLength:g,freeTrialText:b,frequency:y,heading:v,label:C,largestHeaderHeight:w=0,perMonth:k,setLargestHeaderHeight:S=()=>{},variation:M="default"})=>{const L=h(),E=Er(),{width:$}=Rs(),O=o(null),[F,R]=r("sm");return n((()=>{m((()=>{R(E),E!==F&&S(0),O.current&&O.current.offsetHeight>w&&S(O.current.offsetHeight)}))}),[E,F,$]),Ut.jsxs(x,{sx:{display:"flex",flex:1,position:"relative"},children:[Ut.jsx(x,{sx:{alignItems:"center",backgroundColor:L.custom.palette.icon.primary,borderTopLeftRadius:L.spacing(L.custom.radius.lg),borderTopRightRadius:L.spacing(L.custom.radius.lg),boxShadow:L.custom.elevation.overlay,color:L.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:C?1:0,display:{sm:C?"flex":"none",md:"flex"}},children:Ut.jsx(Xo,{variation:"md",component:"p",weight:"bold",sx:{color:L.custom.palette.white},children:C||"&nbsp;"})}),Ut.jsxs(x,{sx:{backgroundColor:L.custom.palette.surface.default,borderBottomLeftRadius:L.spacing(L.custom.radius.lg),borderBottomRightRadius:L.spacing(L.custom.radius.lg),borderTopLeftRadius:C?0:L.spacing(L.custom.radius.lg),borderTopRightRadius:C?0:L.spacing(L.custom.radius.lg),boxShadow:L.custom.elevation.overlay,display:"flex",flex:1},children:[Ut.jsxs(x,{sx:{display:"flex",gap:"sm"===E||"md"===E?1:2,textAlign:"center",minHeight:{sm:"none",md:w},px:2,py:{sm:2,lg:4}},ref:O,children:[Ut.jsx(Xo,{variation:"sm"===E?"xxl":"platform"===M?"md":"lg",component:"h2",weight:"bold",children:v}),Ut.jsx(Xo,{variation:"sm"===E?"md":"platform"===M?"md"===E?"sm":"md":"md"===E?"md":"lg",component:"p",sx:{color:L.custom.palette.text.secondary},children:i})]}),Ut.jsxs(x,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===M?184:240,xl:"platform"===M?184:226},px:2,py:{sm:2,md:2,lg:"platform"===M?2:6}},children:[Ut.jsxs(j,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[Ut.jsx(Xo,{variation:"md"===E?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:d}),Ut.jsx(Xo,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:e}),k&&Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:L.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:k})]}),g&&b&&Ut.jsxs(j,{sx:{alignItems:"center",backgroundColor:L.custom.palette.yellow[300],borderRadius:L.custom.radius.round,boxShadow:L.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[Ut.jsx(po,{name:"gift",size:24}),Ut.jsxs(j,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[Ut.jsx(Xo,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:g}),Ut.jsx(Xo,{variation:"md",component:"p",sx:{lineHeight:1},children:b})]})]}),t&&Ut.jsx(Xo,{variation:"sm",component:"p",sx:{color:L.custom.palette.text.placeholder},children:t})]}),Ut.jsxs(x,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[Ut.jsx(j,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:Ut.jsx(ni,{href:s,title:c,target:l,onClick:()=>{v&&a(v)},sx:{"&:hover":{cursor:p?"default":"pointer"}},children:Ut.jsx(Cn,{fullWidth:!0,variation:u,sizing:"lg",disabled:p,children:c})})}),f?.length&&Ut.jsx(x,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===M?4:6}},children:f.map(((e,t)=>Ut.jsxs(j,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[Ut.jsx(po,{name:"positive",size:24}),Ut.jsx(Xo,{variation:"md",component:"p",children:e})]},`${v}-feature-${t}`)))})]})]})]})},As=({body:e,ctaEvent:t=()=>{},ctaLink:o="",ctaTarget:n="_blank",ctaText:r,currencySymbol:i,heading:a,postText:s,preText:l,amount:c})=>{const u=h();return Ut.jsxs(j,{sx:{backgroundColor:u.custom.palette.purple[0],borderRadius:u.spacing(u.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:u.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[Ut.jsxs(x,{sx:{flex:1,gap:2,justifyContent:"center"},children:[Ut.jsx(Xo,{variation:"md",component:"h2",sx:{fontWeight:500},children:a}),Ut.jsx(Xo,{variation:"md",component:"p",sx:{color:u.custom.palette.text.secondary},children:e})]}),Ut.jsxs(x,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[Ut.jsxs(j,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[Ut.jsx(Xo,{variation:"md",component:"p",sx:{color:u.custom.palette.text.placeholder,pr:.5},children:l}),Ut.jsxs(j,{sx:{alignItems:"flex-end",display:"flex"},children:[Ut.jsx(Xo,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:i}),Ut.jsx(Xo,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:c})]}),Ut.jsx(Xo,{variation:"md",component:"p",sx:{color:u.custom.palette.text.placeholder,pl:.1},children:s})]}),Ut.jsx(ni,{href:o,title:r,target:n,onClick:()=>{a&&t(a)},children:Ut.jsx(Cn,{fullWidth:!0,variation:"outlined",sizing:"lg",children:r})})]})]})},Ts=({heading:e,ticks:t})=>(h(),Ut.jsxs(x,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[Ut.jsx(Xo,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),Ut.jsx(j,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:t.map(((t,o)=>Ut.jsxs(j,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[Ut.jsx(po,{name:"positive",size:32}),Ut.jsx(Xo,{variation:"xxl",component:"p",children:t})]},`tick-group-${e}-${o}`)))})]})),Vs="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Ps=(e,t,o)=>re({direction:o,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Vo[e],neutralAlpha:"light"===e?Fo:Ro,purple:Bo[e],red:Ho[e],peach:_o[e],yellow:zo[e],blue:Do[e],green:No[e],icon:Zo[e].icon,interaction:Zo[e].interaction,stroke:Zo[e].stroke,surface:Zo[e].surface,text:Zo[e].text,input:Zo[e].input},margin:no,padding:ro,radius:io,elevation:ao,elevationFilter:so,boxShadow:lo,easing:co,typography:nn[t]},palette:{mode:e,primary:{main:Io[500]}},spacing:oo,shape:{borderRadius:oo,hotspot:{default:12,active:24}},breakpoints:{values:qt},typography:{fontFamily:`"${qo.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:rn(t),styleOverrides:{root:{color:Zo[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${Vo[e][0]};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${Uo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Uo.default.weight};\n src: url(${Vs}${Uo.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Uo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Uo.bold.weight};\n src: url(${Vs}${Uo.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${qo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${qo.default.weight};\n src: url(${Vs}${qo.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${qo.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${qo.bold.weight};\n src: url(${Vs}${qo.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${qt.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${qt.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:e}})=>({color:e.palette.surface.overlay}),tooltip:({theme:{custom:e}})=>({backgroundColor:e.palette.surface.overlay,borderRadius:e.radius.md,color:e.palette.text.primary,backdropFilter:"blur(0)",filter:e.elevationFilter.overlay,fontFamily:qo.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*oo}px ${e.padding.md*oo}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}});var Bs="$$material";const Hs="exact-prop: ​";function _s(e){return"production"===process.env.NODE_ENV?e:Yn({},e,{[Hs]:t=>{const o=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return o.length>0?new Error(`The following props are not supported: ${o.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}const zs=e.createContext(null);function Ds(){const t=e.useContext(zs);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t}"production"!==process.env.NODE_ENV&&(zs.displayName="ThemeContext");var Ns="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zs(t){const{children:o,theme:n}=t,r=Ds();"production"!==process.env.NODE_ENV&&null===r&&"function"==typeof n&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const i=e.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t){const o=t(e);return"production"!==process.env.NODE_ENV&&(o||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),o}return Yn({},e,t)}(r,n);return null!=e&&(e[Ns]=null!==r),e}),[n,r]);return Ut.jsx(zs.Provider,{value:i,children:o})}"production"!==process.env.NODE_ENV&&(Zs.propTypes={children:jr.node,theme:jr.oneOfType([jr.object,jr.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Zs.propTypes=_s(Zs.propTypes));const Ws=["value"],Us=e.createContext();function qs(e){let{value:t}=e,o=Kn(e,Ws);return Ut.jsx(Us.Provider,Yn({value:null==t||t},o))}"production"!==process.env.NODE_ENV&&(qs.propTypes={children:jr.node,value:jr.bool});const Gs=e.createContext(void 0);function Ys({value:e,children:t}){return Ut.jsx(Gs.Provider,{value:e,children:t})}"production"!==process.env.NODE_ENV&&(Ys.propTypes={children:jr.node,value:jr.object});const Xs={};function Js(t,o,n,r=!1){return e.useMemo((()=>{const e=t&&o[t]||o;if("function"==typeof n){const i=n(e),a=t?Yn({},o,{[t]:i}):i;return r?()=>a:a}return Yn({},o,t?{[t]:n}:n)}),[t,o,n,r])}function Ks(e){const{children:t,theme:o,themeId:n}=e,r=kr(Xs),i=Ds()||Xs;"production"!==process.env.NODE_ENV&&(null===r&&"function"==typeof o||n&&r&&!r[n]&&"function"==typeof o)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const a=Js(n,r,o),s=Js(n,i,o,!0),l="rtl"===a.direction;return Ut.jsx(Zs,{theme:s,children:Ut.jsx($e.Provider,{value:a,children:Ut.jsx(qs,{value:l,children:Ut.jsx(Ys,{value:null==a?void 0:a.components,children:t})})})})}"production"!==process.env.NODE_ENV&&(Ks.propTypes={children:jr.node,theme:jr.oneOfType([jr.func,jr.object]).isRequired,themeId:jr.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Ks.propTypes=_s(Ks.propTypes));const Qs=["theme"];function el(e){let{theme:t}=e,o=Kn(e,Qs);const n=t[Bs];return Ut.jsx(Ks,Yn({},o,{themeId:n?Bs:void 0,theme:n||t}))}"production"!==process.env.NODE_ENV&&(el.propTypes={children:jr.node,theme:jr.oneOfType([jr.object,jr.func]).isRequired});const tl=s(null),ol=()=>Ut.jsx(ie,{styles:{"strong, b":{fontWeight:500}}}),nl=Xi({key:"muirtl",stylisPlugins:[it,Ht]}),rl=Xi({key:"mui"}),il=({mode:e="light",screenSize:t="lg",direction:o="ltr",children:i})=>{const a=((e="light",t="lg",o="ltr")=>{const{width:i}=Rs(),[a,s]=r(e),[l,c]=r(t),[u,d]=r(!1),[p,h]=r(Ps(a,l,o)),[f,g]=r(Ps("light"===a?"dark":"light",l,o)),[x,b]=r("");n((()=>{m((()=>{c(i&&i<qt.lg?"sm":"lg")}))}),[i]),n((()=>{m((()=>{h(Ps(a,l,o)),g(Ps("light"===a?"dark":"light",l,o))}))}),[a,l]);const y=K(p.breakpoints.only("sm"),{noSsr:!0}),v=K(p.breakpoints.only("md"),{noSsr:!0}),C=K(p.breakpoints.between("lg","xl"),{noSsr:!0}),w=K(p.breakpoints.up("xl"),{noSsr:!0});return n((()=>{m((()=>{y&&b("sm"),v&&b("md"),C&&b("lg"),w&&b("xl")}))}),[y,v,C,w]),{breakpoint:x,darkTheme:f,gridOverlayVisible:u,mode:a,theme:p,toggleGridOverlay:()=>{m((()=>{d((e=>!e))}))},toggleMode:e=>{m((()=>{if(e)return s(e);s((e=>"light"===e?"dark":"light"))}))}}})(e,t,o);return n((()=>{"rtl"===o&&(document.dir="rtl")}),[]),Ut.jsx(tl.Provider,{value:a,children:Ut.jsx(at,{value:"rtl"===o?nl:rl,children:Ut.jsxs(el,{theme:a.theme,children:[Ut.jsx(ae,{}),Ut.jsx(ol,{}),i]})})})};export{Es as AnnualController,Ls as AuthContainerSurface,Jo as AuthFormHeader,Ko as Avatar,Qo as AvatarGroup,Cn as Button,En as CheckBoxGroup,Sn as Checkbox,Rn as ColorBackgroundContainer,In as CustomField,Ss as DEFAULT_MAX_INPUT_LENGTH,Zn as Differential,Un as DropdownMenu,wn as FormControlLabel,Cs as FormGenerator,$r as GridOverlay,Or as Html,po as Icon,Dr as IconButton,Ur as IconButtonGroup,qr as InputLabel,Vn as InputLabelHelp,ti as Likert,ni as Link,ri as Loader,ii as Logo,ui as NavButton,Fi as Nudge,Ii as NumberField,Pi as Pill,Os as PlanFeatureTable,Is as PlanTierCard,As as PlanTierCardScale,Ki as Portal,Qi as PoweredByWatermarkLogo,bn as Progress,_n as Radio,ea as RadioGroup,Ra as Rank,Aa as RichTextField,ya as Select,Da as Slider,Fa as SortableList,Za as StarRating,Li as Surface,Wa as Switch,qa as TextArea,Ga as TextBarDivider,Ln as TextField,il as ThemeProvider,Ts as TickGroup,Ya as Toast,zr as Tooltip,Xo as Typography,cs as UserMenu,Fn as backgroundCreator,js as chooseArticle,ks as defaultInputValidation,ws as emailValidation,Ms as passwordValidation,qn as useDropdownMenu};
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  object-assign
21
21
  (c) Sindre Sorhus
22
22
  @license MIT
23
- */function Jt(){if(_t)return Ht;_t=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;return Ht=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Ht}function eo(){if(zt)return Dt;zt=1;return Dt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function to(){return Wt?Nt:(Wt=1,Nt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var oo=Qt();Ft.exports=function(){if(Kt)return Gt;Kt=1;var e=Qt(),t=Jt(),o=eo(),r=to(),n=function(){if(qt)return Zt;qt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=eo(),o={},r=to();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function n(n,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in n)if(r(n,c)){var u;try{if("function"!=typeof n[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=n[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return n.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(o={})},Zt=n}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Gt=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,n,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,n,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}))},element:h((function(e,t,o,r,n){var i=e[t];return s(i)?null:new m("Invalid "+r+" `"+n+"` of type `"+b(i)+"` supplied to `"+o+"`, expected a single ReactElement.")})),elementType:h((function(t,o,r,n,i){var a=t[o];return e.isValidElementType(a)?null:new m("Invalid "+n+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,o,r,n,i){if(!(t[o]instanceof e)){var a=e.name||u;return new m("Invalid "+n+" `"+i+"` of type `"+((s=t[o]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,o,r,n){return x(e[t])?null:new m("Invalid "+r+" `"+n+"` supplied to `"+o+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[n],c=b(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,o,r,n,i){for(var a=t[o],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+n+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(n)+" at index "+t+"."),a}return h((function(t,n,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,i,a,s,o);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,n,i,a){var s=t[r],l=b(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(n,i,a,c,y(u));var d=u(s,c,n,i,a+"."+c,o);if(d)return d}return null}))},exact:function(e){return h((function(n,i,a,s,l){var c=n[i],u=b(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},n[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(n[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=h(c,p,a,s,l+"."+p,o);if(f)return f}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function n(n,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==o){if(l){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?n?null===a[s]?new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=n.bind(null,!1);return a.isRequired=n.bind(null,!0),a}function f(e){return h((function(t,o,r,n,i,a){var s=t[o];return b(s)!==e?new m("Invalid "+n+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,o,r,n){return new m((e||"React class")+": "+t+" type `"+o+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var o,r=t.call(e);if(t!==e.entries){for(;!(o=r.next()).done;)if(!x(o.value))return!1}else for(;!(o=r.next()).done;){var n=o.value;if(n&&!x(n[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=n,d.resetWarningCache=n.resetWarningCache,d.PropTypes=d,d},Gt}()(oo.isElement,!0)}else Ft.exports=function(){if(Yt)return Ut;Yt=1;var e=eo();function t(){}function o(){}return o.resetWarningCache=t,Ut=function(){function r(t,o,r,n,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:t};return i.PropTypes=i,i}}()();var ro=I(Ft.exports);function no(e=null){const t=k.useContext(n.ThemeContext);return t&&(o=t,0!==Object.keys(o).length)?t:e;var o}function io(e,t,o,r,n){const[i,a]=k.useState((()=>n&&o?o(e).matches:r?r(e).matches:t));return Et((()=>{let t=!0;if(!o)return;const r=o(e),n=()=>{t&&a(r.matches)};return n(),r.addListener(n),()=>{t=!1,r.removeListener(n)}}),[e,o]),i}const ao=k.useSyncExternalStore;function so(e,t,o,r,n){const i=k.useCallback((()=>t),[t]),a=k.useMemo((()=>{if(n&&o)return()=>o(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i}),[i,e,r,n,o]),[s,l]=k.useMemo((()=>{if(null===o)return[i,()=>()=>{}];const t=o(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,o,e]);return ao(l,s,a)}const lo=()=>{const e=t.useTheme();return[...e.breakpoints.keys].reduce(((t,o)=>{const r=function(e,t={}){const o=no(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:n=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Bt({name:"MuiUseMediaQuery",props:t,theme:o});"production"!==process.env.NODE_ENV&&"function"==typeof e&&null===o&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let l="function"==typeof e?e(o):e;l=l.replace(/^@media( ?)/m,"");const c=(void 0!==ao?so:io)(l,n,i,a,s);return"production"!==process.env.NODE_ENV&&k.useDebugValue({query:l,match:c}),c}(e.breakpoints.up(o));return r?o:t}),null)??"sm"},co=({children:e,...t})=>e,uo=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),po=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"& .MuiButtonBase-root":{":hover":{background:e.custom.palette.interaction.hoverOnDark},":active":{background:e.custom.palette.interaction.pressOnDark}}}),mo=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),ho=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),fo=(e,t)=>({borderRadius:"default"===e?t.spacing(t.custom.radius.md):t.custom.radius.round}),go={xs:3*N,sm:3.5*N,md:4*N,lg:5*N,xl:6*N},xo=e=>({height:go[e],width:go[e]}),bo={xs:2*N,sm:2*N,md:2*N,lg:2.5*N,xl:3*N},yo=e=>({height:bo[e],width:bo[e]}),vo=t.styled(t.IconButton)((({theme:e,variation:t,shape:o="default",sizing:r})=>({boxSizing:"border-box",transition:"all 200ms ease",...o&&{...fo(o,e)},...r&&{...xo(r)},"&.MuiIconButton-root":{..."default"===t&&{...uo(e)},..."toggle"===t&&{...po(e)},..."outlined"===t&&{...mo(e)},..."raised"===t&&{...ho(e)},...o&&{...fo(o,e)},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:focus":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...r&&{...yo(r)},position:"relative",zIndex:1}}))),Co=({children:e,message:o,variation:r="primary",...n})=>{const i=t.useTheme();if("primary"===r)return R.jsx(t.Tooltip,{...n,componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:i.spacing(i.custom.radius.sm),filter:`drop-shadow(${i.custom.elevation.overlay})`}}}},title:o,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:R.jsx(t.Box,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})},wo=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderTopLeftRadius:0}}),jo=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopLeftRadius:0,borderBottomLeftRadius:0}}),ko=t.styled(t.ButtonGroup)((({theme:e,variation:t,orientation:o="horizontal",iconColor:r,sizing:n="lg",groupRaised:i=!1})=>({"&.MuiButtonGroup-root":{border:`1px solid ${e.custom.palette.stroke.default}`,...i&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{borderRadius:0,..."default"===t&&{...uo(e)},..."toggle"===t&&{...po(e)},..."vertical"===o&&{...wo(e)},..."horizontal"===o&&{...jo(e)},...n&&{...xo(n)}},"& .MuiSvgIcon-root":{...n&&{...yo(n)},fill:r||"inherit"}}}))),So=({sx:e,...t})=>R.jsx(xt,{...t,sx:r.mergeSx({fontSize:{xs:De.sm.body.md,sm:De.sm.body.md,md:De.sm.body.md,lg:De.lg.body.md,xl:De.lg.body.md}},!!e&&{...e})}),Mo=t.styled(t.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:V,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${V}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:V,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${V}px)`}}}}}))),Io=({children:e,width:t})=>R.jsx(Mo,{sx:{width:t},children:e}),Eo=t.styled(bt)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),To=({disabled:e,children:t})=>R.jsx(Eo,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:t}),Lo=t.styled(wt)((()=>({marginRight:0}))),Bo=t.styled(t.Box)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:A,width:`calc(50% - ${_/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:A,width:`calc(50% - ${_/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),Oo=e=>R.jsx(Bo,{sx:{textAlign:"center",position:"relative"},children:R.jsx(Lo,{...e})}),Ro=({options:e=[],disabled:o=!1,sizing:r="lg",onChange:n,internalChange:i,value:a})=>{const s=t.useTheme();function l(e){console.warn(e),n(e.value),i&&i()}return R.jsx(t.Box,{children:R.jsx(Io,{children:R.jsx(t.Grid,{container:!0,justifyContent:"space-between",children:e.map((e=>R.jsxs(t.Grid,{item:!0,sm:!0,onClick:()=>l(e),sx:{...!o&&{cursor:"pointer"},textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{...!o&&{backgroundColor:s.custom.palette.interaction.hover}}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{...!o&&{backgroundColor:s.custom.palette.input.default,borderColor:s.custom.palette.stroke.focus,boxShadow:s.custom.boxShadow.input.focus},"&:before":{...!o&&{backgroundColor:s.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:s.custom.palette.purple[500]}}}},children:[R.jsx(Oo,{sizing:r,disabled:o,onChange:t=>l(e),checked:a===e.value},e.value),R.jsx(t.Box,{sx:{mt:W.xs,width:"100%"},children:R.jsx(To,{disabled:o,children:e.label})})]},e.value)))})})})},Fo=t.styled(t.Link)((({theme:e,disabled:t})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:t?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:t?"none":"auto","&:hover":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),$o=e=>e.target&&"_blank"===e.target?R.jsx(Fo,{rel:"noopener",...e}):R.jsx(Fo,{...e}),Ao=t.styled(t.Box)((({theme:e})=>({alignItems:"center",cursor:"pointer",display:"flex",flexDirection:"column",gap:e.spacing(.5)}))),Po=t.styled(t.Box)((({theme:e})=>({alignItems:"center",color:e.custom.palette.text.secondary,display:"flex",opacity:0,transition:e.custom.easing.input}))),Vo=t.styled(Ae)((({active:e,theme:t})=>({color:e?t.custom.palette.text.primary:t.custom.palette.text.secondary,textAlign:"center"}))),Ho=t.styled(t.Button)((({active:e,fullWidth:t,theme:o})=>({alignItems:"center",backgroundColor:e?o.custom.palette.interaction.press:"transparent",borderRadius:o.spacing(o.custom.radius.md),color:o.custom.palette.text.primary,display:"flex",gap:o.spacing(1),justifyContent:t?"space-between":"center",minWidth:0,padding:o.spacing(1),textTransform:"none",width:t?"100%":"auto","&:hover":{backgroundColor:o.custom.palette.interaction.hover,"& > div":{opacity:1}},"&:focus":{backgroundColor:o.custom.palette.interaction.hover},"&:active":{backgroundColor:o.custom.palette.interaction.press},"&:disabled":{backgroundColor:o.custom.palette.interaction.disabled,color:o.custom.palette.text.disabled}})));function _o(e){if("undefined"==typeof window)return e;const t=k.useRef(null);return k.useLayoutEffect((()=>{t.current=e})),k.useCallback(((...e)=>{var o;null===(o=t.current)||void 0===o||o.call(t,...e)}),[])}const Do={};const zo={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1},No=k,Wo="useId"in No?()=>No.useId():()=>{};function Zo({parentPopupState:t,popupId:o=Wo(),variant:r,disableAutoFocus:n}){const i=e.useRef(!0);e.useEffect((()=>(i.current=!0,()=>{i.current=!1})),[]);const[a,s]=e.useState(zo),l=e.useCallback((e=>{i.current&&s(e)}),[]),c=e.useCallback((e=>l((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),u=_o((e=>(a.isOpen?m(e):d(e),a))),d=_o((e=>{const o=e instanceof Element?void 0:e,n=e instanceof Element?e:(null==e?void 0:e.currentTarget)instanceof Element?e.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void l((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,a=null==o?void 0:o.clientY,s="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,c=i=>{var a,l;if(e||i.setAnchorElUsed||"dialog"===r||(l="eventOrAnchorEl should be defined if setAnchorEl is not used",Do[a="missingEventOrAnchorEl"]||(Do[a]=!0,console.error("[material-ui-popup-state] WARNING",l))),t){if(!t.isOpen)return i;setTimeout((()=>t._setChildPopupState(b)))}const c={...i,isOpen:!0,anchorPosition:s,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return i.setAnchorElUsed||(null!=o&&o.currentTarget?c.anchorEl=null==o?void 0:o.currentTarget:n&&(c.anchorEl=n)),c};l((e=>e._deferNextOpen?(setTimeout((()=>l(c)),0),{...e,_deferNextOpen:!1}):c(e)))})),p=e=>{const{_childPopupState:o}=e;return setTimeout((()=>{null==o||o.close(),null==t||t._setChildPopupState(null)})),{...e,isOpen:!1,hovered:!1,focused:!1}},m=_o((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?l((e=>e._deferNextClose?(setTimeout((()=>l(p)),0),{...e,_deferNextClose:!1}):p(e))):l((e=>({...e,_deferNextClose:!0})))})),h=e.useCallback(((e,t)=>{e?d(t):m(t)}),[]),f=_o((e=>{const{relatedTarget:t}=e;l((e=>!e.hovered||t instanceof Element&&Uo(t,b)?e:e.focused?{...e,hovered:!1}:p(e)))})),g=_o((e=>{if(!e)return;const{relatedTarget:t}=e;l((e=>!e.focused||t instanceof Element&&Uo(t,b)?e:e.hovered?{...e,focused:!1}:p(e)))})),x=e.useCallback((e=>l((t=>({...t,_childPopupState:e})))),[]),b={...a,setAnchorEl:c,popupId:o??void 0,variant:r,open:d,close:m,toggle:u,setOpen:h,onBlur:g,onMouseLeave:f,disableAutoFocus:n??Boolean(a.hovered||a.focused),_setChildPopupState:x};return b}function qo({isOpen:e,popupId:t,variant:o}){return{..."popover"===o?{"aria-haspopup":!0,"aria-controls":e?t:void 0}:"popper"===o?{"aria-describedby":e?t:void 0}:void 0}}function Go(e){return{...qo(e),onClick:e.open,onTouchStart:e.open}}function Ko({isOpen:e,anchorEl:t,anchorPosition:o,close:r,popupId:n,onMouseLeave:i,disableAutoFocus:a,_openEventType:s}){return{id:n,anchorEl:t,anchorPosition:o,anchorReference:"contextmenu"===s?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:i,...a&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function Uo(e,t){const{anchorEl:o,_childPopupState:r}=t;return Yo(o,e)||Yo(function(e,{popupId:t}){if(!t)return null;const o="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof o.getElementById?o.getElementById(t):null}(e,t),e)||null!=r&&Uo(e,r)}function Yo(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}const Xo=e=>({boxShadow:e.custom.elevation.raised}),Qo=e=>({boxShadow:e.custom.elevation.overlay}),Jo=(e,t)=>{switch(t){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},er=(e,t)=>{switch(e){case"sunken":return t.custom.palette.surface.sunken;case"raised":return t.custom.palette.surface.raised;case"overlay":return t.custom.palette.surface.overlay;default:return t.custom.palette.surface.default}},tr=t.styled(t.Paper)((({theme:e,variation:t="default",borderradius:o})=>({boxShadow:"unset",borderRadius:Jo(e,o),background:er(t,e),..."overlay"===t&&{...Qo(e)},..."raised"===t&&{...Xo(e)}}))),or=({children:e,variation:t="overlay",sx:o,...n})=>R.jsx(tr,{variation:t,...n,sx:r.mergeSx(o||{},{}),children:e}),rr=({children:e,description:o,title:r})=>R.jsx(or,{variation:"raised",borderradius:"md",sx:{maxWidth:200},children:R.jsxs(t.Stack,{sx:{gap:2,p:2},children:[R.jsxs(t.Stack,{sx:{gap:1},children:[R.jsx(Ae,{variation:"sm",component:"p",weight:"bold",children:r}),R.jsx(Ae,{variation:"sm",component:"p",children:o})]}),e]})}),nr=t.styled(or)((({notification:e,theme:t})=>({alignItems:"center",cursor:"pointer",display:"flex",height:40,justifyContent:"center",position:"relative",width:40,...e&&{"&:after":{background:t.custom.palette.red[500],borderRadius:t.custom.radius.round,content:'""',height:t.spacing(1),position:"absolute",right:t.spacing(.5),top:t.spacing(.5),width:t.spacing(1)}}}))),ir=({notification:e,onClick:t})=>R.jsx(nr,{variation:"overlay",borderradius:"md",notification:e,onClick:t,children:R.jsx(Q,{name:"notification"})}),ar=e.forwardRef(((t,o)=>{const{decimalSeparator:r,thousandSeparator:n,value:a,...s}=t,l=e.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"group"===e.type))?.value??"";var e}),[void 0]),c=e.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"decimal"===e.type))?.value??".";var e}),[void 0]);return R.jsx(i.NumericFormat,{...s,value:a??"",getInputRef:o,thousandSeparator:n??l,decimalSeparator:r??c})})),sr=({disabled:r=!1,InputProps:n,inputProps:i,placeholder:a,hideActionButtons:s=!1,max:l=1/0,min:c=-1/0,startAdornment:u,endAdornment:d,internalChange:p,numericFormatProps:m,onChange:h,step:f=1,value:g,...x})=>{const b=t.useTheme(),[y,v]=e.useState(g),C=y,w=e=>{v(e),h&&h(e),p&&p()},j=()=>{const e=(null==C||Number.isNaN(C)?0:C)+f;e>l||w(e)},k=()=>{const e=(null==C||Number.isNaN(C)?0:C)-f;e<c||w(e)},S={decimalScale:5,isAllowed:({floatValue:e})=>null==e||e>=c&&e<=l,max:l!==1/0?l:void 0,min:c!==-1/0?c:void 0,step:1!==f?f:void 0,onKeyDown:e=>{"ArrowUp"===e.key?j():"ArrowDown"===e.key&&k()},onValueChange:({floatValue:e})=>{e!==C&&w(e)},value:C,...m};return R.jsx(ct,{placeholder:a,sx:{height:D,"& .MuiOutlinedInput-input":{minWidth:H,pl:u?1:2,pr:u?1:2}},...x,value:C??"",disabled:r,InputProps:{...n,inputComponent:ar,startAdornment:u?R.jsx(t.InputAdornment,{position:"start",sx:{pl:1},children:u}):null,endAdornment:!s&&R.jsxs(t.Stack,{gap:b.custom.margin.sm,sx:{height:"100%",alignItems:"center"},direction:"row",children:[d&&R.jsx(t.InputAdornment,{position:"end",children:d}),R.jsxs(t.Stack,{sx:{height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${b.custom.palette.stroke.default}`},children:[R.jsx(t.ButtonBase,{onClick:()=>j(),sx:{flex:1,borderTopRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:R.jsx(o.ArrowDropUp,{fontSize:"inherit"})}),R.jsx(t.Divider,{}),R.jsx(t.ButtonBase,{onClick:()=>k(),sx:{flex:1,borderBottomRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:R.jsx(o.ArrowDropDown,{fontSize:"inherit"})})]})]})},inputProps:{...i,...S}})};const lr=(e,t)=>"light"===t?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},cr=(e,t,o)=>{switch(t){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===o?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===o?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===o?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},ur=t.styled(t.Chip)((({theme:e,variation:t,weight:o})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...cr(e,t,o),"& .MuiChip-label":{fontSize:`${De.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...lr(0,o)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...cr(e,t,o),...lr(0,o)}})));var dr=function(){function e(e){var t=this;this._insertTag=function(e){var o;o=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,o),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var pr="undefined"!=typeof document,mr=function(e,t,o){for(var r=0,n=0;r=n,n=a.peek(),38===r&&12===n&&(t[o]=1),!a.token(n);)a.next();return a.slice(e,a.position)},hr=function(e,t){return a.dealloc(function(e,t){var o=-1,r=44;do{switch(a.token(r)){case 0:38===r&&12===a.peek()&&(t[o]=1),e[o]+=mr(a.position-1,t,o);break;case 2:e[o]+=a.delimit(r);break;case 4:if(44===r){e[++o]=58===a.peek()?"&\f":"",t[o]=e[o].length;break}default:e[o]+=a.from(r)}}while(r=a.next());return e}(a.alloc(e),t))},fr=new WeakMap,gr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,o=e.parent,r=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fr.get(o))&&!r){fr.set(e,!0);for(var n=[],i=hr(t,n),a=o.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},xr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function br(e,t){switch(a.hash(e,t)){case 5103:return a.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.WEBKIT+e+a.MOZ+e+a.MS+e+e;case 6828:case 4268:return a.WEBKIT+e+a.MS+e+e;case 6165:return a.WEBKIT+e+a.MS+"flex-"+e+e;case 5187:return a.WEBKIT+e+a.replace(e,/(\w+).+(:[^]+)/,a.WEBKIT+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.WEBKIT+e+a.MS+"flex-item-"+a.replace(e,/flex-|-self/,"")+e;case 4675:return a.WEBKIT+e+a.MS+"flex-line-pack"+a.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return a.WEBKIT+e+a.MS+a.replace(e,"shrink","negative")+e;case 5292:return a.WEBKIT+e+a.MS+a.replace(e,"basis","preferred-size")+e;case 6060:return a.WEBKIT+"box-"+a.replace(e,"-grow","")+a.WEBKIT+e+a.MS+a.replace(e,"grow","positive")+e;case 4554:return a.WEBKIT+a.replace(e,/([^-])(transform)/g,"$1"+a.WEBKIT+"$2")+e;case 6187:return a.replace(a.replace(a.replace(e,/(zoom-|grab)/,a.WEBKIT+"$1"),/(image-set)/,a.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return a.replace(e,/(image-set\([^]*)/,a.WEBKIT+"$1$`$1");case 4968:return a.replace(a.replace(e,/(.+:)(flex-)?(.*)/,a.WEBKIT+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return a.replace(e,/(.+)-inline(.+)/,a.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(a.strlen(e)-1-t>6)switch(a.charat(e,t+1)){case 109:if(45!==a.charat(e,t+4))break;case 102:return a.replace(e,/(.+:)(.+)-([^]+)/,"$1"+a.WEBKIT+"$2-$3$1"+a.MOZ+(108==a.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~a.indexof(e,"stretch")?br(a.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==a.charat(e,t+1))break;case 6444:switch(a.charat(e,a.strlen(e)-3-(~a.indexof(e,"!important")&&10))){case 107:return a.replace(e,":",":"+a.WEBKIT)+e;case 101:return a.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.WEBKIT+(45===a.charat(e,14)?"inline-":"")+"box$3$1"+a.WEBKIT+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch(a.charat(e,t+11)){case 114:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.WEBKIT+e+a.MS+e+e}return e}var yr,vr,Cr=pr?void 0:(yr=function(){return e=function(){return{}},t=Object.create(null),function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]};var e,t},vr=new WeakMap,function(e){if(vr.has(e))return vr.get(e);var t=yr(e);return vr.set(e,t),t}),wr=[function(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case a.DECLARATION:e.return=br(e.value,e.length);break;case a.KEYFRAMES:return a.serialize([a.copy(e,{value:a.replace(e.value,"@","@"+a.WEBKIT)})],r);case a.RULESET:if(e.length)return a.combine(e.props,(function(t){switch(a.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return a.serialize([a.copy(e,{props:[a.replace(t,/:(read-\w+)/,":"+a.MOZ+"$1")]})],r);case"::placeholder":return a.serialize([a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.WEBKIT+"input-$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.MOZ+"$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""}))}}],jr=function(e){var t=e.key;if(pr&&"css"===t){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,n,i=e.stylisPlugins||wr,s={},l=[];pr&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),o=1;o<t.length;o++)s[t[o]]=!0;l.push(e)})));var c=[gr,xr];if(Cr){var u=[a.stringify],d=a.middleware(c.concat(i,u)),p=Cr(i)(t),m=function(e,t){var o,r=t.name;return void 0===p[r]&&(p[r]=(o=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(o),d))),p[r]};n=function(e,t,o,r){var n=t.name,i=m(e,t);return void 0===x.compat?(r&&(x.inserted[n]=!0),i):r?void(x.inserted[n]=i):i}}else{var h,f=[a.stringify,a.rulesheet((function(e){h.insert(e)}))],g=a.middleware(c.concat(i,f));n=function(e,t,o,r){var n;h=o,n=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(n),g),r&&(x.inserted[t.name]=!0)}}var x={key:t,sheet:new dr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:n};return x.sheet.hydrate(l),x};const kr=t.styled("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),Sr=({options:o,onChange:r,other:n,value:i,internalChange:a,...s})=>{const l=n?.enabled,c="other-option",u=`${c}-value-`,[d,p]=e.useState(i),[m,h]=e.useState(!1);e.useEffect((()=>{!m&&d?.includes(u)?h(!0):m&&h(!1)}),[d]);return R.jsxs(R.Fragment,{children:[R.jsxs(t.RadioGroup,{...s,value:d,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,t)=>{r&&r(t),p(t),a&&a()},children:[o?o.map(((e,t)=>R.jsx(it,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:R.jsx(wt,{})},t))):null,l&&R.jsx(it,{label:n?.label||"Other",value:u,control:R.jsx(wt,{checked:d?.includes(u)})},c)]}),m&&R.jsx(t.Box,{sx:{mt:1},children:R.jsx(ut,{fullWidth:!0,autoFocus:!0,placeholder:n?.placeholder,defaultValue:d?.replace(u,""),onChange:e=>{var t;r&&r((t=e.target.value,`${u}${t}`)),a&&a()},required:!0})})]})},Mr=({handleSelectAll:o,isIndeterminate:r,isAllSelected:n,sizing:i})=>{const[a,s]=e.useState(!1),l=t.useTheme();return e.useEffect((()=>{n&&s(n)}),[n]),R.jsxs(t.Stack,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:e=>{const t=!a;s(t),o(e,t)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[R.jsx(t.FormLabel,{sx:{cursor:"pointer",fontSize:()=>i&&Ne[i]},children:"Select all"}),R.jsx(st,{sizing:"default",indeterminate:r,checked:a})]})},Ir=e.forwardRef((({children:e,handleSelectAll:t,showSelectAll:o,value:r=[],selections:n,sizing:i,...a},s)=>{const l=Array.isArray(r)&&r.length===n.length,c=Array.isArray(r)&&r.length>0&&r.length<n.length;return R.jsxs("ul",{ref:s,...a,children:[o&&R.jsx(Mr,{handleSelectAll:t,isIndeterminate:c,isAllSelected:l,sizing:i}),e]})})),Er="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",Tr=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},Lr=(e,t)=>({"& .MuiTypography-root":{height:Tr(t),fontSize:Ne[t],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm)}}),Br=e=>({fontSize:`${De.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(Z.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),Or=(e,t)=>{switch(t){case"lg":return{height:Tr(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.lg,height:X.lg,top:`calc(50% - ${X.lg/2}px)`}};case"md":return{height:Tr(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.md,height:X.md,top:`calc(50% - ${X.md/2}px)`}};case"xs":return{height:Tr(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.xs,height:X.xs,top:`calc(50% - ${X.xs/2}px)`}};default:return{height:Tr("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.lg,height:X.lg,top:`calc(50% - ${X.lg/2}px)`}}}},Rr=e=>({position:"relative",fontSize:`${De.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:X.xl,height:X.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),Fr=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:Er}}}}),$r=t.styled(t.Autocomplete)((({theme:e,sizing:t,value:o})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:X[t],height:X[t]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...t&&{height:"xs"===t?2*N+"px":3*N+"px"},paddingTop:0,paddingBottom:0,paddingLeft:o&&Array.isArray(o)&&o.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:Ne[t],gap:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*N+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...t&&{height:"xs"===t?2*N+"px":3*N+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),Ar=t.styled(t.Chip)((({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),Pr=t.styled(t.TextField)((({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),Vr=t.styled(t.Popper)((({theme:e,sizing:o})=>({"& .MuiPaper-root":{...o&&{margin:"lg"===o?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===o?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===o?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:Er,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${t.autocompleteClasses.listbox}`]:{overflowX:"hidden",[`& .${t.autocompleteClasses.option}`]:{fontSize:Ne[o],...o&&{height:"lg"===o?5*N+"px":4*N+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),Hr=e=>R.jsx(Vr,{...e}),_r=({selections:t,disableClearable:r=!1,disabled:n,internalChange:i,multiple:a=!0,onChange:s,placeholder:l="",renderListItem:c,sizing:u="lg",value:d=(a?[]:"")})=>{const[p,m]=e.useState(t.filter((e=>d.includes(e?.value)))),h=(e,o)=>{if(s){const r=o?t.map((({value:e})=>e)):[];m(o?t:[]),s(e,r,"selectOption"),i&&i()}},f=e=>null!==e&&(!Array.isArray(e)||e.length>0);return R.jsx($r,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:R.jsx(o.KeyboardArrowDown,{}),sizing:u,disabled:n,disableClearable:r,autoComplete:!0,multiple:a,renderInput:e=>R.jsx(Pr,{...e,placeholder:f(p)?void 0:l,sizing:u}),options:t,renderTags:(e,t)=>e.map(((e,r)=>{const{key:n,...i}=t({index:r});return R.jsx(Ar,{sizing:u,deleteIcon:R.jsx(o.CloseRounded,{fontSize:"small"}),label:e.label,...i},n)})),onChange:(e,t,o)=>{const r=Array.isArray(t)?t.map((e=>e.value)):t?.value??null;m(t),s?.(e,r,o),i?.()},PopperComponent:e=>R.jsx(Hr,{...e,sizing:u}),isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,{selected:r})=>{const{key:n,...i}=e;return R.jsxs("li",{...i,children:[R.jsx("span",{children:c?c(t.value,t.label):t.label}),R.jsx(o.Check,{sx:{visibility:r?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:e.forwardRef(((e,o)=>R.jsx(Ir,{ref:o,...e,showSelectAll:a,handleSelectAll:h,value:p,selections:t,sizing:u}))),value:p})},Dr=t.styled(t.MenuItem)((({theme:e})=>({...{...Rr(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),zr=({children:e,selected:r,...n})=>R.jsx(Dr,{...n,children:R.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[R.jsx(t.Box,{children:e}),r&&R.jsx(o.Check,{})]})}),Nr=t.styled(t.Select)((({theme:e,sizing:t})=>({...{...Br(e)},...t&&{...Or(e,t)},...t&&{...Lr(e,t)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),Wr=({selections:e,autoComplete:r=!1,disabled:n=!1,disablePortal:i=!1,inputRef:a,internalChange:s,multi:l=!0,onChange:c,placeholder:u="",selectOptionProps:d,sizing:p="lg",sx:m,value:h=[],renderListItem:f,...g})=>{const x=t.useTheme(),b=lo();return r?R.jsx(_r,{selections:e,placeholder:u,disabled:n,sizing:p,onChange:(e,t)=>{c&&c(t||""),s&&s()},value:Array.isArray(h)?h??[]:h??"",internalChange:s,renderListItem:f,multiple:l}):R.jsxs(Nr,{sizing:p,inputRef:a,MenuProps:{disablePortal:i,sx:Fr,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:o.KeyboardArrowDown,renderValue:t=>u&&!t?R.jsx(Ae,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",sx:{color:x.custom.palette.text.placeholder},children:u}):R.jsx(Ae,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",children:e?.find((({value:e})=>e===t))?.label}),onChange:(e,t)=>{c&&c(e,t),s&&s()},sx:m,value:h,...g,children:[""!==u.trim()&&R.jsx(zr,{disabled:!0,value:"","aria-label":"placeholder",children:u},"placeholder"),e?.map((({value:e,label:t})=>R.jsx(zr,{value:e,...d,children:f?f(e,t):t},e)))]})},Zr=t.styled(t.Box)((({theme:e,disabled:t,fullWidth:o})=>({width:o?"100%":"auto",minWidth:240,backgroundColor:t?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${t?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...t&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),qr=t.styled(So)((({theme:e})=>({fontSize:De.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),Gr=({label:e="Placeholder",disabled:r,onChange:n,options:i,fullWidth:a})=>{const s=t.useTheme(),l=i.map((e=>e.label)).indexOf(e);return R.jsx(Zr,{disabled:r,fullWidth:a,children:R.jsxs(t.Stack,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[R.jsxs(t.Box,{display:"flex",alignItems:"center",sx:{"& svg":{fill:s.custom.palette.icon.secondary}},children:[R.jsx(o.DragHandle,{sx:{width:X.lg,height:X.lg,mr:s.custom.padding.sm}}),R.jsx(qr,{align:"left",disabled:r,children:e})]}),R.jsx(Wr,{name:"rank",sizing:"xs",selections:i.map(((e,t)=>({label:`${t+1}`,value:`${t}`}))),disabled:r,value:`${l}`,onChange:function(e){const t=l,o=Number(e.target.value),r=i;let a=1;const s=r.splice(t,a)[0];a=0,r.splice(o,a,s),n(r)},MenuProps:{anchorOrigin:{vertical:_,horizontal:"center"}}})]})})},Kr=e.createContext({attributes:{},listeners:void 0,ref(){}}),Ur=e=>u.defaultAnimateLayoutChanges({...e,wasDragging:!0});function Yr({children:o,top:r,bottom:n,id:i}){const{attributes:a,isDragging:s,listeners:l,setNodeRef:c,setActivatorNodeRef:p,transform:m,transition:h}=u.useSortable({id:i,animateLayoutChanges:Ur}),f=e.useMemo((()=>({attributes:a,listeners:l,ref:p})),[a,l,p]),g={opacity:s?.4:void 0,transform:d.CSS.Translate.toString(m),transition:h};return R.jsx(Kr.Provider,{value:f,children:R.jsxs(t.Stack,{className:"SortableItem",...a,sx:{position:"relative",...g,width:"100%"},ref:c,children:[r&&r,R.jsx(t.Box,{...l,sx:{display:"flex",cursor:"grab"},children:o}),n&&n]})})}const Xr={sideEffects:c.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function Qr({children:e}){return l.createPortal(R.jsx(c.DragOverlay,{zIndex:999999,dropAnimation:Xr,children:e}),document.body)}const Jr=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class en extends c.MouseSensor{static activators=[{eventName:"onMouseDown",handler:Jr}]}class tn extends c.TouchSensor{static activators=[{eventName:"onTouchStart",handler:Jr}]}function on({items:o,onChange:r,renderItem:n,disabled:i,direction:a}){if(!o)return;const[s,l]=e.useState(null),d=e.useMemo((()=>o.find((e=>e?.id===s?.id))),[s,o]),p=t.useTheme(),m=t.useMediaQuery(p.breakpoints.down("md")),h=c.useSensors(c.useSensor(en,{activationConstraint:{distance:5}}),c.useSensor(tn,{activationConstraint:{delay:m?300:0,tolerance:8}}),c.useSensor(c.KeyboardSensor,{coordinateGetter:u.sortableKeyboardCoordinates}));return R.jsxs(c.DndContext,{measuring:{droppable:{strategy:c.MeasuringStrategy.Always}},sensors:h,onDragStart:({active:e})=>{l(e)},onDragEnd:({active:e,over:t})=>{if(t&&e.id!==t?.id){const n=o.findIndex((({id:t})=>t===e.id)),i=o.findIndex((({id:e})=>e===t.id));r(u.arrayMove(o,n,i))}l(null)},onDragCancel:()=>{l(null)},children:[R.jsx(u.SortableContext,{items:o,disabled:i,strategy:"horizontal"===a?u.horizontalListSortingStrategy:u.verticalListSortingStrategy,children:R.jsx(t.Stack,{sx:{..."horizontal"===a&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:o.map((t=>R.jsx(e.Fragment,{children:n(t)},t.id)))})}),R.jsx(Qr,{children:d?n(d,!0,!!s):null})]})}on.Item=Yr,on.DragHandle=function(){const{attributes:o,listeners:r,ref:n}=e.useContext(Kr);return R.jsx(t.Box,{...o,...r,ref:n,children:R.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:R.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const rn=({labelTop:o,labelBottom:r,disabled:n,fullWidth:i=!1,options:a,onChange:s,value:l,internalChange:c})=>{const u=t.useTheme(),[d,p]=e.useState(l||a);function m(e){p(e),s(e.map((({id:e})=>e))),c&&c()}return R.jsxs(t.Stack,{gap:u.custom.margin.sm,textAlign:"center",sx:{width:i?"100%":"auto"},children:[o&&R.jsx(So,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:o}),R.jsx(on,{onChange:function(e){p(e),s(e.map((({id:e})=>e))),c&&c()},items:d,direction:"vertical",renderItem:({...e})=>R.jsx(Yr,{id:e.id,children:R.jsx(Gr,{onChange:m,...e,options:d,disabled:n,selections:e.selections,fullWidth:i})})}),r&&R.jsx(So,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:r})]})},nn=t.styled(h.RichTextEditor)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),an=({onChange:o,value:r,internalChange:n,minWidth:i=100,minHeight:a=100,maxHeight:s,placeholder:l,autoFocus:c})=>{const u=e.useRef(null),d=t.useTheme();return R.jsx(nn,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:a,minWidth:i,maxHeight:s}},ref:u,onUpdate:({editor:e})=>{o&&o(e.storage.markdown.getMarkdown()),n&&n()},extensions:[m.StarterKit.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),p.Placeholder.configure({placeholder:l}),f.Markdown],content:r,renderControls:()=>R.jsxs(t.Stack,{gap:d.custom.margin.xs,direction:"row",children:[R.jsx(h.MenuButtonBold,{}),R.jsx(h.MenuButtonItalic,{})]})})},sn=e=>({"& .MuiSlider-thumb":{width:H,height:H,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:A,height:A,backgroundColor:e.custom.palette.icon.primaryInverted}}}),ln=e=>Array.isArray(e),cn=(e,t)=>({height:P,padding:`${P}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${_}px)`,left:`-${V}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:t&&ln(t)?`-${P+1}px`:`-${V+1}px`,width:`calc(100% + ${V}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:A,width:A,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),un=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:A,minWidth:_,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${De.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),dn=t.styled(t.Slider)((({theme:e,value:t})=>({"&.MuiSlider-root":{width:`calc(100% - ${_}px)`,marginLeft:_/2,...{...cn(e,t)},...{...sn(e)},...{...un(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),pn=[1,2,5,10],mn=(e,t)=>{if(e>=t)return console.warn("Min value must be less than max value"),1;const o=(t-e)/9;if(o<=1)return 1;const r=Math.floor(Math.log10(o)),n=o/Math.pow(10,r);return i=n,(pn.find((e=>i<=e))??pn[pn.length-1])*Math.pow(10,r);var i},hn=({labelLeft:e,labelMiddle:o,labelRight:r,labelRightProps:n,labelLeftProps:i,disabled:a,onChange:s,internalChange:l,max:c=5,min:u=1,step:d,value:p=u,...m})=>{const{sanitisedMin:h,sanitisedMax:f}=((e,t)=>e>=t?{sanitisedMin:1,sanitisedMax:5}:{sanitisedMin:e,sanitisedMax:t})(u,c),g=((e,t,o)=>{const r=[];for(let n=e;n<=t;n+=o)r.push({value:n,label:n===e||n===t||n+o<=t?n.toString():void 0});return r[r.length-1].value!==t&&r.push({value:t,label:t.toString()}),r})(h,f,d??mn(u,c));return R.jsxs(t.Box,{sx:{minWidth:300},children:[R.jsx(t.Box,{height:24,children:R.jsx(dn,{valueLabelDisplay:a?"on":"auto",disabled:a,marks:g,step:d,max:f,min:h,onChangeCommitted:()=>{l&&l()},onChange:(e,t,o)=>{s&&s(e,t,o)},value:p,...m})}),R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",pt:Z.lg,gap:1},children:[e&&R.jsx(t.Box,{sx:{flex:1},children:R.jsx(bt,{disabled:a,showicon:!1,...i,children:e})}),o&&R.jsx(t.Box,{sx:{flex:1,textAlign:"center"},children:R.jsx(bt,{showicon:!1,disabled:a,children:o})}),r&&R.jsx(t.Box,{sx:{flex:1,textAlign:"right"},children:R.jsx(bt,{...n,showicon:!1,disabled:a,children:r})})]})]})},fn=t.styled(t.Rating)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),gn=({internalChange:e,onChange:o,...r})=>R.jsx(fn,{...r,onChange:(t,r)=>{o&&o(t,r),e&&e()},icon:R.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:R.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),xn=t.styled((e=>R.jsx(t.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),bn=t.styled(ct)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:D,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:X.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),yn=({startAdornment:e,endAdornment:o,onChange:r,internalChange:n,inputRef:i,...a})=>R.jsx(bn,{multiline:!0,inputRef:i,InputProps:{startAdornment:e?R.jsx(t.InputAdornment,{position:"start",children:e}):null,endAdornment:o?R.jsx(t.InputAdornment,{position:"start",children:o}):null},onChange:e=>{r&&r(e),n&&n()},...a}),vn=({status:e})=>{const o=t.useTheme();switch(e){case"neutral":return null;case"success":return R.jsx(Cn,{backgroundColor:o.custom.palette.green[500],name:"check-circle"});case"warning":return R.jsx(Cn,{backgroundColor:o.custom.palette.yellow[500],name:"error-outline"});case"danger":return R.jsx(Cn,{backgroundColor:o.custom.palette.red[500],name:"warning-amber"});case"discover":return R.jsx(Cn,{backgroundColor:o.custom.palette.purple[500],name:"lightbulb"})}},Cn=({backgroundColor:e,name:o})=>{const r=t.useTheme();return R.jsx(t.Box,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:R.jsx(t.Box,{sx:{backgroundColor:e,borderRadius:r.custom.radius.round,color:r.custom.palette.white,display:"flex",p:.5},children:R.jsx(Q,{name:o,size:20})})})},wn=t.styled(t.Button)((({active:e,theme:t})=>({maxWidth:"100%",padding:t.spacing(.5),textTransform:"none",width:"100%",...Ke(t,e)}))),jn=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),kn=t.styled(t.Stack)({alignItems:"flex-start",display:"flex",justifyContent:"center"}),Sn=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),Mn=t.styled(t.Box)((({active:e,theme:t})=>({alignItems:"center",borderRadius:t.custom.radius.round,cursor:"pointer",display:"flex",justifyContent:"center",padding:t.spacing(.5),...Ke(t,e)}))),In=({active:e,avatar:o,email:r,name:n,variation:i})=>{const a=t.useTheme();return"sm"===i?R.jsx(t.Box,{sx:{display:"flex",justifyContent:"center"},children:R.jsx(Mn,{active:e,children:R.jsx(Pe,{src:o,variation:"sm"})})}):R.jsx(wn,{active:e,children:R.jsxs(jn,{sx:{flex:1},children:[R.jsxs(jn,{children:[R.jsx(Pe,{src:o,variation:"sm"}),R.jsxs(kn,{children:[R.jsx(Ae,{variation:"sm",component:"p",lineHeight:1.2,children:n}),R.jsx(Ae,{variation:"xs",component:"p",sx:{color:a.custom.palette.text.secondary},lineHeight:1.2,children:r})]})]}),R.jsx(Sn,{children:R.jsx(Q,{name:"chevron-right",size:24})})]})})},En=t.styled(t.Button)((({active:e,theme:t})=>({borderRadius:t.spacing(t.custom.radius.sm),maxWidth:"100%",padding:t.spacing(.75,1.5),textTransform:"none",width:"100%",...Ke(t,e)}))),Tn=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),Ln=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),Bn=({active:e,danger:o,hasChildren:r,selected:n,title:i})=>{const a=t.useTheme();return R.jsx(En,{active:e,children:R.jsxs(Tn,{sx:{flex:1},children:[R.jsx(Tn,{children:R.jsx(Ae,{variation:"md",component:"p",lineHeight:1.2,color:o?a.custom.palette.text.negative:a.custom.palette.text.primary,children:i})}),R.jsxs(Ln,{children:[r&&R.jsx(Q,{name:"chevron-right",size:24}),n&&R.jsx(Q,{name:"check-thin",size:24})]})]})})},On=({button:e,children:o,state:r})=>R.jsx(t.ClickAwayListener,{onClickAway:()=>r.close(),children:R.jsxs(t.Box,{children:[R.jsx(t.Box,{...Go(r),children:e}),R.jsx(t.Popper,{...Ko(r),placement:"right-end",transition:!0,children:({TransitionProps:e})=>R.jsx(t.Fade,{...e,timeout:350,children:R.jsx(t.Box,{sx:{pl:1},children:o})})})]})}),Rn=(e,o)=>{if(e.children?.length){const r=Zo({variant:"popper"});return R.jsx(On,{state:r,button:R.jsx(Bn,{title:e.title,active:r.isOpen,hasChildren:!0,selected:e.selected}),children:R.jsx(or,{borderradius:"md",variation:"overlay",sx:{width:192},children:R.jsx(t.Stack,{sx:{p:1},children:e.children.map(Rn)})})},o)}return R.jsx(Bn,{title:e.title,selected:e.selected})};const Fn=(e,t)=>{switch(e){case 1:return t.custom.palette.red[500];case 2:return t.custom.palette.yellow[500];case 3:case 4:return t.custom.palette.green[500];default:return t.custom.palette.icon.disabled}},$n=(e,t)=>{switch(e){case 1:return t.custom.palette.text.negative;case 2:return t.custom.palette.yellow[800];case 3:return t.custom.palette.green[800];case 4:return t.custom.palette.text.positive;default:return t.custom.palette.icon.disabled}},An=t.styled(t.LinearProgress)((({theme:e,score:o})=>({boxShadow:"unset",background:e.custom.palette.neutral[100],borderRadius:e.spacing(e.custom.radius.sm),[`.${t.linearProgressClasses.bar}`]:{borderRadius:e.spacing(e.custom.radius.sm),backgroundColor:Fn(o,e)}}))),Pn={translations:M.translations,graphs:S.adjacencyGraphs,dictionary:{...S.dictionary,...M.dictionary}};b.zxcvbnOptions.setOptions(Pn);const Vn=({label:o="Strength",width:r=60,value:n,onChange:i})=>{const[a,s]=e.useState(0),l=t.useTheme();return e.useEffect((()=>{s(b.zxcvbn(n).score)}),[n]),e.useEffect((()=>{i(a)}),[a]),R.jsxs(t.Stack,{direction:"row",gap:1,sx:{alignItems:"center"},children:[R.jsx(Ae,{variation:"sm",component:"p",children:o}),R.jsx(An,{variant:"determinate",value:0===a?6.6:25*a,score:a,sx:{width:r}}),R.jsx(Ae,{variation:"sm",component:"p",sx:{color:$n(a,l)},children:["","Very weak","Weak","Strong","Excellent"][a]})]})},Hn=({helperText:e,inputName:t,errors:o,...r})=>{const n=Boolean(o&&o[t]);return n?R.jsx(C.ErrorMessage,{errors:o,name:t,render:({message:e})=>R.jsx(bt,{showicon:!!e,state:"negative",children:e})}):e&&!n?R.jsx(bt,{state:"default",...r,children:e}):null},_n={textfield:ut,numberfield:sr,textarea:yn,select:Wr,checkbox:lt,checkboxGroup:dt,slider:hn,starRating:gn,differential:Mt,likert:Ro,radioGroup:Sr,ranking:rn,richTextfield:an,customfield:ft},Dn=({name:o,fieldType:r,label:n,control:i,errors:a,labelProps:s,helperText:l,helpTextProps:c,validation:u,content:d,styleOverrides:p,defaultValue:m,onChange:h,watch:f,trigger:b,strengthIndicator:y,...v})=>{const{custom:C}=t.useTheme(),w=void 0!==a&&Object.keys(a).length>0,[j,k]=e.useState(0);return y&&e.useEffect((()=>{j>0&&b(o)}),[j]),R.jsxs(t.Stack,{sx:p?.sxInputStack,gap:C.margin.sm,children:[n&&R.jsx(So,{...s,children:n}),"html"===r&&d?R.jsx(co,{children:d}):R.jsxs(R.Fragment,{children:[R.jsx(g.Controller,{name:o,control:i,render:e=>function({field:{ref:e,...t}}){const o=_n[r];return null!==t.value?R.jsx(o,{...v,...t,inputRef:e}):R.jsx("div",{})}({...e,field:{...e.field,value:e.field.value||m}}),rules:{...u,validate:e=>{if(u&&"phone"in u)return x.isValidPhoneNumber(`+${f("extension")}${e}`)||u.phone.message;if(u&&"score"in u)return j<=u.score.value?u.score.message:void 0;if(u&&"white_space"in u)return!e.match(/^\s*$/g)||u.white_space.message;if(u&&"match"in u)switch(u.match?.comparison){case"not_eq":return e!=f(u.match.field)||u.match.message;case"gt":return e>f(u.match.field)||u.match.message;case"lt":return e<f(u.match.field)||u.match.message;default:return e===f(u.match.field)||u.match.message}}}}),y&&"password"===v?.type&&R.jsx(Vn,{value:f(o),onChange:k})]}),R.jsxs(R.Fragment,{children:[Boolean(w)?R.jsx(Hn,{helperText:void 0,inputName:o,errors:a,showicon:!0}):null,Boolean(l)?R.jsx(Hn,{helperText:l,inputName:o,errors:void 0,...c}):null]})]})},zn=e=>e.reduce(((e,t)=>({...e,[t?.name]:Nn(t,t?.defaultValue)})),{}),Nn=(e,t)=>{switch(e.fieldType){case"select":return Array.isArray(t),t;case"starRating":case"numberfield":return t||0;case"slider":{const{min:o}=e;return Array.isArray(t)?t:t||o}case"likert":case"radioGroup":case"customfield":default:return t||"";case"checkboxGroup":return t||[];case"checkbox":return t||!1;case"ranking":{const{options:o}=e;return t?t.map((e=>o.find((({id:t})=>t===e)))):o}}},Wn=e.forwardRef((({submitButton:o,secondaryButton:r,onFormSubmit:n,onFormChange:i,formConfig:a},s)=>{const{custom:l}=t.useTheme(),{fields:c,reValidateMode:u,styleOverrides:d,autoComplete:p,formId:m,mode:h}=a,{reset:f,getValues:x,trigger:b,setValue:y,control:v,formState:{isValid:C,errors:w},setFocus:j,handleSubmit:k,watch:S}=g.useForm({mode:h||"onChange",reValidateMode:u,defaultValues:e.useMemo((()=>zn(c)),[]),shouldUnregister:!0});e.useEffect((()=>{(function(e,t){const o=new Set(e),r=new Set(t);return e.every((e=>r.has(e)))&&t.every((e=>o.has(e)))})(c.map((({name:e})=>e)),Object.keys(x()))||c.forEach((e=>{"html"!==e.fieldType&&e.defaultValue&&y(e.name,Nn(e,e.defaultValue))}))}),[c]),e.useEffect((()=>{f(zn(c))}),[m]),e.useImperativeHandle(s,(()=>({set(e,t){y(e,t)},resetForm(){f()},focus(e){j(e)},submit(){n&&k(n)()},values:()=>x(),valid:()=>C,errors:()=>w,async triggerFormValidation(){await b()}})));const M=()=>{i&&i(x())};return R.jsxs(t.Box,{component:"form",autoComplete:p,noValidate:!0,sx:d?.sxForm,...n&&{onSubmit:k(n)},children:[R.jsx(t.Stack,{gap:l.margin.md,sx:d?.sxStack,children:c.map((({name:t,...o})=>e.createElement(Dn,{...i&&{internalChange:M},name:t,key:t,errors:w,control:v,watch:S,trigger:b,...o,defaultValue:zn(c)[t]})))}),(r||o)&&R.jsxs(t.Stack,{direction:"row",sx:d?.sxButtons||{mt:l.margin.lg,gap:l.margin.sm,justifyContent:"flex-end"},children:[r&&r,o&&o]})]})})),Zn=e=>{const t=e.toLowerCase();return["a","e","i","o","u"].some((e=>t.startsWith(e)))?"an":"a"},qn=(e,t,o)=>({maxLength:{value:o||255,message:`Maximum character limit of ${o||255}.`},...t&&{required:e?`Please enter ${Zn(e)} ${e}`:"This field is required"}}),Gn=qn().maxLength.value;var Kn={headings:{"01-starter":{heading:"Starter",pricing:"{{currencySymbol}} {{starterPrice}} / month"},"02-team":{heading:"Team",pricing:"{{currencySymbol}} {{teamPrice}} / month"},"03-plus":{heading:"Plus",pricing:"{{currencySymbol}} {{plusPrice}} / month"},"04-scale":{heading:"Scale",pricing:"{{currencySymbol}} {{scalePrice}} / month"}},rows:{"01-seats":{heading:"Seats",description:"The number of users you can have on your account.",starter:"1",team:"10",plus:"50",scale:"100+"},"02-servicing":{heading:"Client servicing included",description:"Get direct communication with a Loops Customer Success Manager.",starter:"{{dash}}",team:"{{dash}}",plus:"Serviced lite",scale:"💪\nFully serviced"},"03-respondents":{heading:"Price per respondent",description:"The amount you pay to recruit and survey each respondent.",starter:"{{currencySymbol}}{{starterRespondentPrice}}",team:"{{currencySymbol}}{{teamRespondentPrice}}",plus:"{{currencySymbol}}{{plusRespondentPrice}}",scale:"{{currencySymbol}}{{scaleRespondentPrice}}"},"04-questions":{heading:"Question limit",description:"The maximum number of questions you can add to a test.",starter:"10",team:"15",plus:"20",scale:"25"},"05-ai":{heading:"AI-powered insights",description:"Use Loops AI to summarise the findings from your tests.",starter:"Basic",team:"✨\nAdvanced",plus:"✨\nAdvanced",scale:"✨\nAdvanced"},"06-demographics":{heading:"Demographic filters",description:"Reach your target audience using built-in demographic filters.",starter:"Basic",team:"🎯\nAdvanced",plus:"🎯\nAdvanced",scale:"🎯\nAdvanced"},"07-training":{heading:"Training",description:"Our team will onboard you and get you set up.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"08-invite":{heading:"Invite your own respondents",description:"Share your test with your own recruited audience.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"09-email":{heading:"Email capture",description:"Ability to collect respondent email addresses.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"10-beta":{heading:"Beta features",description:"Assess to our latest features as they become available.",starter:"{{dash}}",team:"{{dash}}",plus:"{{tick}}",scale:"{{tick}}"},"11-sso":{heading:"Single sign on (SSO)",description:"Enterprise level authentication using SAML (supports Okta and OneLogin).",starter:"{{dash}}",team:"{{dash}}",plus:"{{dash}}",scale:"{{tick}}"},"12-minimum":{heading:"Minimum term",description:"The minimum subscription period.",starter:"30 days",team:"6 months",plus:"6 months",scale:"12 months"}}};const Un=({text:e})=>{const o=t.useTheme(),r="{{tick}}"===e,n="{{dash}}"===e;return R.jsx(t.Box,{sx:{display:"flex",alignItems:"center",textAlign:"center",width:122},children:R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:{sm:.5,md:1},flex:1},children:[r&&R.jsx(Q,{name:"check",size:24}),n&&R.jsx(Q,{name:"dash",size:24}),!r&&!n&&R.jsx(Ae,{variation:"lg",component:"p",sx:{color:o.custom.palette.text.secondary,hyphens:"none",whiteSpace:"pre"},children:R.jsx(R.Fragment,{children:e})})]})})},Yn=()=>{const t="object"==typeof window;function o(){return{width:t?window.innerWidth:void 0,height:t?window.innerHeight:void 0}}const[r,n]=e.useState(o);return e.useEffect((()=>{if(t)return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r);function r(){e.startTransition((()=>{n(o())}))}}),[]),r},Xn="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Qn=(e,o,r)=>t.createTheme({direction:r,custom:{palette:{black:"#000000",white:"#ffffff",neutral:we[e],neutralAlpha:"light"===e?xe:be,purple:ke[e],red:Se[e],peach:Me[e],yellow:Ie[e],blue:Ee[e],green:Te[e],icon:Le[e].icon,interaction:Le[e].interaction,stroke:Le[e].stroke,surface:Le[e].surface,text:Le[e].text,input:Le[e].input},margin:W,padding:Z,radius:q,elevation:G,elevationFilter:K,boxShadow:U,easing:Y,typography:De[o]},palette:{mode:e,primary:{main:ye[500]}},spacing:N,shape:{borderRadius:N,hotspot:{default:12,active:24}},breakpoints:{values:F},typography:{fontFamily:`"${Re.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:ze(o),styleOverrides:{root:{color:Le[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${we[e][0]};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${Oe.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Oe.default.weight};\n src: url(${Xn}${Oe.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Oe.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Oe.bold.weight};\n src: url(${Xn}${Oe.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Re.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Re.default.weight};\n src: url(${Xn}${Re.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Re.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Re.bold.weight};\n src: url(${Xn}${Re.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${F.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${F.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:e}})=>({color:e.palette.surface.overlay}),tooltip:({theme:{custom:e}})=>({backgroundColor:e.palette.surface.overlay,borderRadius:e.radius.md,color:e.palette.text.primary,backdropFilter:"blur(0)",filter:e.elevationFilter.overlay,fontFamily:Re.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*N}px ${e.padding.md*N}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}});var Jn="$$material";const ei="exact-prop: ​";function ti(e){return"production"===process.env.NODE_ENV?e:Tt({},e,{[ei]:t=>{const o=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return o.length>0?new Error(`The following props are not supported: ${o.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}const oi=k.createContext(null);function ri(){const e=k.useContext(oi);return"production"!==process.env.NODE_ENV&&k.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(oi.displayName="ThemeContext");var ni="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ii(e){const{children:t,theme:o}=e,r=ri();"production"!==process.env.NODE_ENV&&null===r&&"function"==typeof o&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const n=k.useMemo((()=>{const e=null===r?o:function(e,t){if("function"==typeof t){const o=t(e);return"production"!==process.env.NODE_ENV&&(o||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),o}return Tt({},e,t)}(r,o);return null!=e&&(e[ni]=null!==r),e}),[o,r]);return R.jsx(oi.Provider,{value:n,children:t})}"production"!==process.env.NODE_ENV&&(ii.propTypes={children:ro.node,theme:ro.oneOfType([ro.object,ro.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(ii.propTypes=ti(ii.propTypes));const ai=["value"],si=k.createContext();function li(e){let{value:t}=e,o=Ot(e,ai);return R.jsx(si.Provider,Tt({value:null==t||t},o))}"production"!==process.env.NODE_ENV&&(li.propTypes={children:ro.node,value:ro.bool});const ci=k.createContext(void 0);function ui({value:e,children:t}){return R.jsx(ci.Provider,{value:e,children:t})}"production"!==process.env.NODE_ENV&&(ui.propTypes={children:ro.node,value:ro.object});const di={};function pi(e,t,o,r=!1){return k.useMemo((()=>{const n=e&&t[e]||t;if("function"==typeof o){const i=o(n),a=e?Tt({},t,{[e]:i}):i;return r?()=>a:a}return Tt({},t,e?{[e]:o}:o)}),[e,t,o,r])}function mi(e){const{children:t,theme:o,themeId:r}=e,i=no(di),a=ri()||di;"production"!==process.env.NODE_ENV&&(null===i&&"function"==typeof o||r&&i&&!i[r]&&"function"==typeof o)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const s=pi(r,i,o),l=pi(r,a,o,!0),c="rtl"===s.direction;return R.jsx(ii,{theme:l,children:R.jsx(n.ThemeContext.Provider,{value:s,children:R.jsx(li,{value:c,children:R.jsx(ui,{value:null==s?void 0:s.components,children:t})})})})}"production"!==process.env.NODE_ENV&&(mi.propTypes={children:ro.node,theme:ro.oneOfType([ro.func,ro.object]).isRequired,themeId:ro.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(mi.propTypes=ti(mi.propTypes));const hi=["theme"];function fi(e){let{theme:t}=e,o=Ot(e,hi);const r=t[Jn];return R.jsx(mi,Tt({},o,{themeId:r?Jn:void 0,theme:r||t}))}"production"!==process.env.NODE_ENV&&(fi.propTypes={children:ro.node,theme:ro.oneOfType([ro.object,ro.func]).isRequired});const gi=e.createContext(null),xi=()=>R.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),bi=jr({key:"muirtl",stylisPlugins:[a.prefixer,w]}),yi=jr({key:"mui"});exports.AnnualController=({body:e,currency:o,changeCurrencyEvent:r=()=>{},frequency:n,heading:i,setCurrency:a=()=>{},setFrequency:s=()=>{},togglePayAnnuallyEvent:l=()=>{}})=>{const c=t.useTheme(),u=lo(),d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return R.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:c.custom.palette.surface.default,borderRadius:c.custom.radius.round,boxShadow:c.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[R.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1},children:[R.jsx(xn,{defaultChecked:!0,onChange:()=>(l(),void s("monthly"===n?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==n,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),R.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[R.jsx(Ae,{variation:"sm"===u||"md"===u?"md":"xxl",component:"p",children:i}),R.jsx(Ae,{variation:"sm",component:"p",sx:{color:c.custom.palette.text.secondary},children:e})]})]}),R.jsx(Wr,{name:"currency",onChange:e=>{return t=e.target.value,r(t),void a(t);var t},selections:d,value:d.find((e=>e.value===o))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:_,lg:D}}})]})},exports.AuthContainerSurface=({children:e,headContent:o,sx:n,...i})=>{const a=t.useTheme();return R.jsxs(or,{...i,sx:r.mergeSx(n,{mx:[a.spacing(a.custom.margin.md),0],width:1,maxWidth:[512]}),children:[o&&R.jsx(t.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:a.spacing(a.custom.margin.md),px:a.spacing(a.custom.margin.md)},children:o}),R.jsx(t.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:o?[a.spacing(a.custom.margin.md)]:[a.spacing(a.custom.padding.lg),a.spacing(a.custom.padding.xl)],px:[a.spacing(a.custom.padding.lg),a.spacing(a.custom.padding.xl)],pb:[a.spacing(a.custom.padding.lg),a.spacing(a.custom.padding.xl)]},children:e})]})},exports.AuthFormHeader=({logo:e,headerText:o,subText:r})=>{const n=t.useTheme();return R.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),alignItems:"center",mb:n.spacing(n.custom.margin.lg),children:[!1===e?null:e||R.jsx(Q,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),R.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),children:[o&&R.jsx(Ae,{variation:"sm",component:"h1",align:"center",weight:"bold",children:o}),function(){if(r)return"string"==typeof r?R.jsx(Ae,{variation:"md",component:"p",align:"center",children:r}):r}()]})]})},exports.Avatar=Pe,exports.AvatarGroup=({variation:e="primary",...o})=>{if("primary"===e)return R.jsx(t.AvatarGroup,{...o})},exports.Button=nt,exports.CheckBoxGroup=dt,exports.Checkbox=lt,exports.ColorBackgroundContainer=({sx:e,children:o,texture:n="noise1",gradient:i="tone1",...a})=>{const s=t.useTheme();return R.jsx(t.Container,{maxWidth:!1,disableGutters:!0,sx:r.mergeSx({background:ht(s,{texture:n,gradient:i}),height:"100%",p:[0,0,0]},!!e&&{...e}),...a,children:o})},exports.CustomField=ft,exports.DEFAULT_MAX_INPUT_LENGTH=Gn,exports.Differential=Mt,exports.DropdownMenu=({open:e,anchorEl:o,handleClick:r,handleClose:n,items:i,...a})=>R.jsx(R.Fragment,{children:R.jsx(It,{anchorEl:o,open:e,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...a,children:i?.map(((e,o)=>R.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&R.jsx(t.Box,{mr:1,children:e.icon}),e.label]},o)))})}),exports.FormControlLabel=it,exports.FormGenerator=Wn,exports.GridOverlay=({breakpoint:e})=>{const o=t.useTheme(),r=Array.from({length:6},((e,t)=>t));return e||(e=lo()),R.jsxs(t.Stack,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[R.jsx(t.Container,{sx:{background:o.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:R.jsx(t.Box,{sx:{background:o.custom.palette.purple[300],display:"flex",flex:1},children:R.jsxs(t.Grid,{container:!0,spacing:2,children:[r.map((e=>R.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:R.jsx(t.Box,{sx:{background:o.custom.palette.green[300],height:"100%"}})},`grid-1-${e}`))),r.map((e=>R.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:R.jsx(t.Box,{sx:{background:o.custom.palette.green[300],height:"100%"}})},`grid-2-${e}`)))]})})}),!!e&&R.jsx(t.Box,{sx:{backgroundColor:o.custom.palette.surface.default,borderRadius:o.spacing(o.custom.radius.md),bottom:16,filter:o.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:R.jsx(Ae,{variation:"sm",component:"p",weight:"bold",children:e})})]})},exports.Html=co,exports.Icon=Q,exports.IconButton=({icon:e,loading:t,tooltipMessage:o,sizing:r,slotProps:n,...i})=>{const a=()=>R.jsx(vo,{...i,sizing:r,children:t?R.jsx(tt,{sizing:r}):e});return o?R.jsx(Co,{message:o,...n?.tooltip,children:a()}):a()},exports.IconButtonGroup=({ButtonGroupProps:e,children:t,...o})=>R.jsx(ko,{...o,...e,children:t}),exports.InputLabel=So,exports.InputLabelHelp=bt,exports.Likert=Ro,exports.Link=$o,exports.Loader=()=>R.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:R.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),exports.Logo=e=>R.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:R.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),exports.NavButton=({active:e,label:o,href:r,icon:n,onClick:i,variation:a})=>"sm"===a?R.jsxs(Ao,{onClick:i,children:[R.jsx(Ho,{active:e,children:R.jsx(t.Box,{display:"flex",alignItems:"center",gap:1,children:n&&R.jsx(Q,{name:n,size:24})})}),R.jsx(Vo,{component:"p",variation:"sm",active:e,children:o})]}):R.jsxs(Ho,{onClick:i,fullWidth:!0,active:e,children:[R.jsxs(t.Box,{display:"flex",alignItems:"center",gap:1.5,children:[n&&R.jsx(Q,{name:n,size:24}),R.jsx(Ae,{component:"p",variation:"lg",children:o})]}),r&&R.jsx(Po,{children:R.jsx(Q,{name:"open-in-new",size:20})})]}),exports.Nudge=({children:e,description:o,title:r,variation:n})=>{if("sm"===n){const n=Zo({variant:"popper"});return R.jsx(t.ClickAwayListener,{onClickAway:()=>n.close(),children:R.jsxs(t.Box,{sx:{position:"relative"},children:[R.jsx(t.Box,{...Go(n),children:R.jsx(ir,{notification:!0})}),R.jsx(t.Popper,{...Ko(n),placement:"right-end",transition:!0,children:({TransitionProps:n})=>R.jsx(t.Fade,{...n,timeout:350,children:R.jsx(t.Box,{sx:{pl:1},children:R.jsx(rr,{description:o,title:r,children:e})})})})]})})}return R.jsx(rr,{description:o,title:r,children:e})},exports.NumberField=sr,exports.Pill=({body:e,maxWidth:t,...o})=>R.jsx(ur,{label:e,sx:{...t&&{maxWidth:`${t}px`}},...o}),exports.PlanFeatureTable=({currencySymbol:e,data:o,starterPrice:r,starterRespondentPrice:n,teamPrice:i,teamRespondentPrice:a,plusPrice:s,plusRespondentPrice:l,scalePrice:c,scaleRespondentPrice:u,variation:d="default"})=>{const p=t.useTheme();o||(o=Kn);const m=Object.values(o.headings).map((({heading:t,pricing:o})=>({heading:t,pricing:o.replace("{{currencySymbol}}",e).replace("{{starterPrice}}",r).replace("{{teamPrice}}",i).replace("{{plusPrice}}",s).replace("{{scalePrice}}",c)}))),h=t=>t.replace("{{currencySymbol}}",e).replace("{{starterRespondentPrice}}",n||"").replace("{{teamRespondentPrice}}",a||"").replace("{{plusRespondentPrice}}",l||"").replace("{{scaleRespondentPrice}}",u||""),f=[...Object.values(o.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},starter:h(e.starter),team:h(e.team),plus:h(e.plus),scale:h(e.scale)})))];return R.jsxs(t.Stack,{sx:{backgroundColor:p.custom.palette.surface.default,borderRadius:p.spacing(p.custom.radius.xl),boxShadow:p.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[R.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[R.jsx(t.Box,{sx:{width:160}}),m.map((({heading:e,pricing:o})=>R.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[R.jsx(Ae,{variation:"platform"===d?"lg":"xxl",component:"p",weight:"bold",children:e}),R.jsx(Ae,{variation:"platform"===d?"sm":"md",component:"p",sx:{color:p.custom.palette.text.secondary},children:o})]},e)))]}),f.map((e=>R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:p.custom.palette.surface.sunken}},children:[R.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&R.jsx(Co,{message:e.name.description,children:R.jsx(t.Box,{sx:{alignItems:"center",color:p.custom.palette.icon.secondary,display:"flex"},children:R.jsx(Q,{name:"info",size:24})})}),R.jsx(Ae,{variation:"platform"===d?"md":"lg",component:"p",children:e.name.heading})]})}),R.jsx(Un,{text:e.starter}),R.jsx(Un,{text:e.team}),R.jsx(Un,{text:e.plus}),R.jsx(Un,{text:e.scale})]},e.key)))]})},exports.PlanTierCard=({amount:o,billingType:r,body:n,ctaEvent:i=()=>{},ctaLink:a="#",ctaTarget:s="_self",ctaText:l,ctaVariation:c="primary",currencySymbol:u,currentPlan:d,features:p=[],freeTrialLength:m,freeTrialText:h,frequency:f,heading:g,label:x,largestHeaderHeight:b=0,perMonth:y,setLargestHeaderHeight:v=()=>{},variation:C="default"})=>{const w=t.useTheme(),j=lo(),{width:k}=Yn(),S=e.useRef(null),[M,I]=e.useState("sm");return e.useEffect((()=>{e.startTransition((()=>{I(j),j!==M&&v(0),S.current&&S.current.offsetHeight>b&&v(S.current.offsetHeight)}))}),[j,M,k]),R.jsxs(t.Stack,{sx:{display:"flex",flex:1,position:"relative"},children:[R.jsx(t.Stack,{sx:{alignItems:"center",backgroundColor:w.custom.palette.icon.primary,borderTopLeftRadius:w.spacing(w.custom.radius.lg),borderTopRightRadius:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,color:w.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:x?1:0,display:{sm:x?"flex":"none",md:"flex"}},children:R.jsx(Ae,{variation:"md",component:"p",weight:"bold",sx:{color:w.custom.palette.white},children:x||"&nbsp;"})}),R.jsxs(t.Stack,{sx:{backgroundColor:w.custom.palette.surface.default,borderBottomLeftRadius:w.spacing(w.custom.radius.lg),borderBottomRightRadius:w.spacing(w.custom.radius.lg),borderTopLeftRadius:x?0:w.spacing(w.custom.radius.lg),borderTopRightRadius:x?0:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,display:"flex",flex:1},children:[R.jsxs(t.Stack,{sx:{display:"flex",gap:"sm"===j||"md"===j?1:2,textAlign:"center",minHeight:{sm:"none",md:b},px:2,py:{sm:2,lg:4}},ref:S,children:[R.jsx(Ae,{variation:"sm"===j?"xxl":"platform"===C?"md":"lg",component:"h2",weight:"bold",children:g}),R.jsx(Ae,{variation:"sm"===j?"md":"platform"===C?"md"===j?"sm":"md":"md"===j?"md":"lg",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]}),R.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===C?184:240,xl:"platform"===C?184:226},px:2,py:{sm:2,md:2,lg:"platform"===C?2:6}},children:[R.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[R.jsx(Ae,{variation:"md"===j?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:u}),R.jsx(Ae,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:o}),y&&R.jsx(Ae,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:y})]}),m&&h&&R.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:w.custom.palette.yellow[300],borderRadius:w.custom.radius.round,boxShadow:w.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[R.jsx(Q,{name:"gift",size:24}),R.jsxs(t.Box,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[R.jsx(Ae,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:m}),R.jsx(Ae,{variation:"md",component:"p",sx:{lineHeight:1},children:h})]})]}),r&&R.jsx(Ae,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.placeholder},children:r})]}),R.jsxs(t.Stack,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[R.jsx(t.Box,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:R.jsx($o,{href:a,title:l,target:s,onClick:()=>{g&&i(g)},sx:{"&:hover":{cursor:d?"default":"pointer"}},children:R.jsx(nt,{fullWidth:!0,variation:c,sizing:"lg",disabled:d,children:l})})}),p?.length&&R.jsx(t.Stack,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===C?4:6}},children:p.map(((e,o)=>R.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[R.jsx(Q,{name:"positive",size:24}),R.jsx(Ae,{variation:"md",component:"p",children:e})]},`${g}-feature-${o}`)))})]})]})]})},exports.PlanTierCardScale=({body:e,ctaEvent:o=()=>{},ctaLink:r="",ctaTarget:n="_blank",ctaText:i,currencySymbol:a,heading:s,postText:l,preText:c,amount:u})=>{const d=t.useTheme();return R.jsxs(t.Box,{sx:{backgroundColor:d.custom.palette.purple[0],borderRadius:d.spacing(d.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:d.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[R.jsxs(t.Stack,{sx:{flex:1,gap:2,justifyContent:"center"},children:[R.jsx(Ae,{variation:"md",component:"h2",sx:{fontWeight:500},children:s}),R.jsx(Ae,{variation:"md",component:"p",sx:{color:d.custom.palette.text.secondary},children:e})]}),R.jsxs(t.Stack,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[R.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[R.jsx(Ae,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pr:.5},children:c}),R.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex"},children:[R.jsx(Ae,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:a}),R.jsx(Ae,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:u})]}),R.jsx(Ae,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pl:.1},children:l})]}),R.jsx($o,{href:r,title:i,target:n,onClick:()=>{s&&o(s)},children:R.jsx(nt,{fullWidth:!0,variation:"outlined",sizing:"lg",children:i})})]})]})},exports.Portal=t=>{const[o,r]=e.useState(null),n=o?.contentWindow?.document?.body,i=jr({key:"css",container:o?.contentWindow?.document?.head,prepend:!0});return R.jsx(kr,{ref:r,children:n&&l.createPortal(R.jsx(s.CacheProvider,{value:i,children:t.children}),n)})},exports.PoweredByWatermarkLogo=()=>R.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[R.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),R.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:R.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),R.jsx("defs",{children:R.jsx("clipPath",{id:"clip0_900_1816",children:R.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=tt,exports.Radio=wt,exports.RadioGroup=Sr,exports.Rank=rn,exports.RichTextField=an,exports.Select=Wr,exports.Slider=hn,exports.SortableList=on,exports.StarRating=gn,exports.Surface=or,exports.Switch=xn,exports.TextArea=yn,exports.TextBarDivider=({typographyProps:e,text:o,sx:n})=>{const i=t.useTheme();return R.jsx(t.Box,{sx:r.mergeSx(n,{width:"100%",position:"relative",display:"flex",gap:4,my:i.spacing(i.custom.margin.md),"&:before":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:R.jsx(Ae,{align:"center",variation:"sm",component:"p",...e,children:o})})},exports.TextField=ut,exports.ThemeProvider=({mode:o="light",screenSize:r="lg",direction:n="ltr",children:i})=>{const a=((o="light",r="lg",n="ltr")=>{const{width:i}=Yn(),[a,s]=e.useState(o),[l,c]=e.useState(r),[u,d]=e.useState(!1),[p,m]=e.useState(Qn(a,l,n)),[h,f]=e.useState(Qn("light"===a?"dark":"light",l,n)),[g,x]=e.useState("");e.useEffect((()=>{e.startTransition((()=>{c(i&&i<F.lg?"sm":"lg")}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{m(Qn(a,l,n)),f(Qn("light"===a?"dark":"light",l,n))}))}),[a,l]);const b=t.useMediaQuery(p.breakpoints.only("sm"),{noSsr:!0}),y=t.useMediaQuery(p.breakpoints.only("md"),{noSsr:!0}),v=t.useMediaQuery(p.breakpoints.between("lg","xl"),{noSsr:!0}),C=t.useMediaQuery(p.breakpoints.up("xl"),{noSsr:!0});return e.useEffect((()=>{e.startTransition((()=>{b&&x("sm"),y&&x("md"),v&&x("lg"),C&&x("xl")}))}),[b,y,v,C]),{breakpoint:g,darkTheme:h,gridOverlayVisible:u,mode:a,theme:p,toggleGridOverlay:()=>{e.startTransition((()=>{d((e=>!e))}))},toggleMode:t=>{e.startTransition((()=>{if(t)return s(t);s((e=>"light"===e?"dark":"light"))}))}}})(o,r,n);return e.useEffect((()=>{"rtl"===n&&(document.dir="rtl")}),[]),R.jsx(gi.Provider,{value:a,children:R.jsx(s.CacheProvider,{value:"rtl"===n?bi:yi,children:R.jsxs(fi,{theme:a.theme,children:[R.jsx(t.CssBaseline,{}),R.jsx(xi,{}),i]})})})},exports.TickGroup=({heading:e,ticks:o})=>(t.useTheme(),R.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[R.jsx(Ae,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),R.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:o.map(((o,r)=>R.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[R.jsx(Q,{name:"positive",size:32}),R.jsx(Ae,{variation:"xxl",component:"p",children:o})]},`tick-group-${e}-${r}`)))})]})),exports.Toast=({buttons:e,message:o,status:r="neutral",variation:n="sm"})=>{const i=t.useTheme();return R.jsx(t.Stack,{sx:{backgroundColor:i.custom.palette.surface.overlay,borderRadius:i.spacing(i.custom.radius.lg),boxShadow:i.custom.elevation.overlay,color:i.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:R.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===n?"row":"column",gap:2},children:[R.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==r&&R.jsx(vn,{status:r}),R.jsx(t.Box,{sx:{display:"flex"},children:R.jsx(Ae,{variation:"md",component:"p",sx:{px:1,pt:.5},children:o})})]}),e&&R.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=Co,exports.Typography=Ae,exports.UserMenu=({avatar:e,email:o,menuItems:r,name:n,variation:i})=>{const a=Zo({variant:"popper"});return R.jsx(On,{state:a,button:R.jsx(In,{active:a.isOpen,avatar:e,email:o,name:n,variation:i}),children:R.jsx(or,{borderradius:"md",variation:"overlay",sx:{width:192},children:R.jsx(t.Stack,{sx:{p:1},children:r?.map(Rn)})})})},exports.backgroundCreator=ht,exports.chooseArticle=Zn,exports.defaultInputValidation=qn,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.passwordValidation=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}}),exports.useDropdownMenu=()=>{const[t,o]=e.useState(null);return{open:Boolean(t),handleClick:e=>{o(e.currentTarget)},handleClose:()=>{o(null)},anchorEl:t}};
23
+ */function Jt(){if(_t)return Ht;_t=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;return Ht=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)o.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Ht}function eo(){if(zt)return Dt;zt=1;return Dt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function to(){return Wt?Nt:(Wt=1,Nt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var oo=Qt();Ft.exports=function(){if(Kt)return Gt;Kt=1;var e=Qt(),t=Jt(),o=eo(),r=to(),n=function(){if(qt)return Zt;qt=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=eo(),o={},r=to();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function n(n,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in n)if(r(n,c)){var u;try{if("function"!=typeof n[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=n[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return n.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(o={})},Zt=n}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Gt=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:h(a),arrayOf:function(e){return h((function(t,r,n,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,n,i,a+"["+l+"]",o);if(c instanceof Error)return c}return null}))},element:h((function(e,t,o,r,n){var i=e[t];return s(i)?null:new m("Invalid "+r+" `"+n+"` of type `"+b(i)+"` supplied to `"+o+"`, expected a single ReactElement.")})),elementType:h((function(t,o,r,n,i){var a=t[o];return e.isValidElementType(a)?null:new m("Invalid "+n+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return h((function(t,o,r,n,i){if(!(t[o]instanceof e)){var a=e.name||u;return new m("Invalid "+n+" `"+i+"` of type `"+((s=t[o]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:h((function(e,t,o,r,n){return x(e[t])?null:new m("Invalid "+r+" `"+n+"` supplied to `"+o+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[n],c=b(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,a,s+"."+u,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?h((function(t,o,r,n,i){for(var a=t[o],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+n+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(n)+" at index "+t+"."),a}return h((function(t,n,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,i,a,s,o);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return h((function(t,r,n,i,a){var s=t[r],l=b(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(n,i,a,c,y(u));var d=u(s,c,n,i,a+"."+c,o);if(d)return d}return null}))},exact:function(e){return h((function(n,i,a,s,l){var c=n[i],u=b(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},n[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return g(a,s,l,p,y(h));if(!h)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(n[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=h(c,p,a,s,l+"."+p,o);if(f)return f}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function n(n,a,s,c,d,p,h){if(c=c||u,p=p||s,h!==o){if(l){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?n?null===a[s]?new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=n.bind(null,!1);return a.isRequired=n.bind(null,!0),a}function f(e){return h((function(t,o,r,n,i,a){var s=t[o];return b(s)!==e?new m("Invalid "+n+" `"+i+"` of type `"+y(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,o,r,n){return new m((e||"React class")+": "+t+" type `"+o+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var o,r=t.call(e);if(t!==e.entries){for(;!(o=r.next()).done;)if(!x(o.value))return!1}else for(;!(o=r.next()).done;){var n=o.value;if(n&&!x(n[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=n,d.resetWarningCache=n.resetWarningCache,d.PropTypes=d,d},Gt}()(oo.isElement,!0)}else Ft.exports=function(){if(Yt)return Ut;Yt=1;var e=eo();function t(){}function o(){}return o.resetWarningCache=t,Ut=function(){function r(t,o,r,n,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:t};return i.PropTypes=i,i}}()();var ro=I(Ft.exports);function no(e=null){const t=k.useContext(n.ThemeContext);return t&&(o=t,0!==Object.keys(o).length)?t:e;var o}function io(e,t,o,r,n){const[i,a]=k.useState((()=>n&&o?o(e).matches:r?r(e).matches:t));return Et((()=>{let t=!0;if(!o)return;const r=o(e),n=()=>{t&&a(r.matches)};return n(),r.addListener(n),()=>{t=!1,r.removeListener(n)}}),[e,o]),i}const ao=k.useSyncExternalStore;function so(e,t,o,r,n){const i=k.useCallback((()=>t),[t]),a=k.useMemo((()=>{if(n&&o)return()=>o(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i}),[i,e,r,n,o]),[s,l]=k.useMemo((()=>{if(null===o)return[i,()=>()=>{}];const t=o(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,o,e]);return ao(l,s,a)}const lo=()=>{const e=t.useTheme();return[...e.breakpoints.keys].reduce(((t,o)=>{const r=function(e,t={}){const o=no(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:n=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=Bt({name:"MuiUseMediaQuery",props:t,theme:o});"production"!==process.env.NODE_ENV&&"function"==typeof e&&null===o&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let l="function"==typeof e?e(o):e;l=l.replace(/^@media( ?)/m,"");const c=(void 0!==ao?so:io)(l,n,i,a,s);return"production"!==process.env.NODE_ENV&&k.useDebugValue({query:l,match:c}),c}(e.breakpoints.up(o));return r?o:t}),null)??"sm"},co=({children:e,...t})=>e,uo=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),po=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"& .MuiButtonBase-root":{":hover":{background:e.custom.palette.interaction.hoverOnDark},":active":{background:e.custom.palette.interaction.pressOnDark}}}),mo=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),ho=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),fo=(e,t)=>({borderRadius:"default"===e?t.spacing(t.custom.radius.md):t.custom.radius.round}),go={xs:3*N,sm:3.5*N,md:4*N,lg:5*N,xl:6*N},xo=e=>({height:go[e],width:go[e]}),bo={xs:2*N,sm:2*N,md:2*N,lg:2.5*N,xl:3*N},yo=e=>({height:bo[e],width:bo[e]}),vo=t.styled(t.IconButton)((({theme:e,variation:t,shape:o="default",sizing:r})=>({boxSizing:"border-box",transition:"all 200ms ease",...o&&{...fo(o,e)},...r&&{...xo(r)},"&.MuiIconButton-root":{..."default"===t&&{...uo(e)},..."toggle"===t&&{...po(e)},..."outlined"===t&&{...mo(e)},..."raised"===t&&{...ho(e)},...o&&{...fo(o,e)},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:focus":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...r&&{...yo(r)},position:"relative",zIndex:1}}))),Co=({children:e,message:o,variation:r="primary",...n})=>{const i=t.useTheme();if("primary"===r)return R.jsx(t.Tooltip,{...n,componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:i.spacing(i.custom.radius.sm),filter:`drop-shadow(${i.custom.elevation.overlay})`}}}},title:o,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:R.jsx(t.Box,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})},wo=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderTopLeftRadius:0}}),jo=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopLeftRadius:0,borderBottomLeftRadius:0}}),ko=t.styled(t.ButtonGroup)((({theme:e,variation:t,orientation:o="horizontal",iconColor:r,sizing:n="lg",groupRaised:i=!1})=>({"&.MuiButtonGroup-root":{backgroundColor:e.custom.palette.input.default,border:`1px solid ${e.custom.palette.stroke.default}`,...i&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{borderRadius:0,..."default"===t&&{...uo(e)},..."toggle"===t&&{...po(e)},..."vertical"===o&&{...wo(e)},..."horizontal"===o&&{...jo(e)},...n&&{...xo(n)}},"& .MuiSvgIcon-root":{...n&&{...yo(n)},fill:r||"inherit"}}}))),So=({sx:e,...t})=>R.jsx(xt,{...t,sx:r.mergeSx({fontSize:{xs:De.sm.body.md,sm:De.sm.body.md,md:De.sm.body.md,lg:De.lg.body.md,xl:De.lg.body.md}},!!e&&{...e})}),Mo=t.styled(t.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:V,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${V}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:V,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${V}px)`}}}}}))),Io=({children:e,width:t})=>R.jsx(Mo,{sx:{width:t},children:e}),Eo=t.styled(bt)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),To=({disabled:e,children:t})=>R.jsx(Eo,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:t}),Lo=t.styled(wt)((()=>({marginRight:0}))),Bo=t.styled(t.Box)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:A,width:`calc(50% - ${_/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:A,width:`calc(50% - ${_/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),Oo=e=>R.jsx(Bo,{sx:{textAlign:"center",position:"relative"},children:R.jsx(Lo,{...e})}),Ro=({options:e=[],disabled:o=!1,sizing:r="lg",onChange:n,internalChange:i,value:a})=>{const s=t.useTheme();function l(e){console.warn(e),n(e.value),i&&i()}return R.jsx(t.Box,{children:R.jsx(Io,{children:R.jsx(t.Grid,{container:!0,justifyContent:"space-between",children:e.map((e=>R.jsxs(t.Grid,{item:!0,sm:!0,onClick:()=>l(e),sx:{...!o&&{cursor:"pointer"},textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{...!o&&{backgroundColor:s.custom.palette.interaction.hover}}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{...!o&&{backgroundColor:s.custom.palette.input.default,borderColor:s.custom.palette.stroke.focus,boxShadow:s.custom.boxShadow.input.focus},"&:before":{...!o&&{backgroundColor:s.custom.palette.interaction.press}},"&.Mui-checked":{backgroundColor:s.custom.palette.purple[500]}}}},children:[R.jsx(Oo,{sizing:r,disabled:o,onChange:t=>l(e),checked:a===e.value},e.value),R.jsx(t.Box,{sx:{mt:W.xs,width:"100%"},children:R.jsx(To,{disabled:o,children:e.label})})]},e.value)))})})})},Fo=t.styled(t.Link)((({theme:e,disabled:t})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:t?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:t?"none":"auto","&:hover":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),$o=e=>e.target&&"_blank"===e.target?R.jsx(Fo,{rel:"noopener",...e}):R.jsx(Fo,{...e}),Ao=t.styled(t.Box)((({theme:e})=>({alignItems:"center",cursor:"pointer",display:"flex",flexDirection:"column",gap:e.spacing(.5)}))),Po=t.styled(t.Box)((({theme:e})=>({alignItems:"center",color:e.custom.palette.text.secondary,display:"flex",opacity:0,transition:e.custom.easing.input}))),Vo=t.styled(Ae)((({active:e,theme:t})=>({color:e?t.custom.palette.text.primary:t.custom.palette.text.secondary,textAlign:"center"}))),Ho=t.styled(t.Button)((({active:e,fullWidth:t,theme:o})=>({alignItems:"center",backgroundColor:e?o.custom.palette.interaction.press:"transparent",borderRadius:o.spacing(o.custom.radius.md),color:o.custom.palette.text.primary,display:"flex",gap:o.spacing(1),justifyContent:t?"space-between":"center",minWidth:0,padding:o.spacing(1),textTransform:"none",width:t?"100%":"auto","&:hover":{backgroundColor:o.custom.palette.interaction.hover,"& > div":{opacity:1}},"&:focus":{backgroundColor:o.custom.palette.interaction.hover},"&:active":{backgroundColor:o.custom.palette.interaction.press},"&:disabled":{backgroundColor:o.custom.palette.interaction.disabled,color:o.custom.palette.text.disabled}})));function _o(e){if("undefined"==typeof window)return e;const t=k.useRef(null);return k.useLayoutEffect((()=>{t.current=e})),k.useCallback(((...e)=>{var o;null===(o=t.current)||void 0===o||o.call(t,...e)}),[])}const Do={};const zo={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1},No=k,Wo="useId"in No?()=>No.useId():()=>{};function Zo({parentPopupState:t,popupId:o=Wo(),variant:r,disableAutoFocus:n}){const i=e.useRef(!0);e.useEffect((()=>(i.current=!0,()=>{i.current=!1})),[]);const[a,s]=e.useState(zo),l=e.useCallback((e=>{i.current&&s(e)}),[]),c=e.useCallback((e=>l((t=>({...t,setAnchorElUsed:!0,anchorEl:e??void 0})))),[]),u=_o((e=>(a.isOpen?m(e):d(e),a))),d=_o((e=>{const o=e instanceof Element?void 0:e,n=e instanceof Element?e:(null==e?void 0:e.currentTarget)instanceof Element?e.currentTarget:void 0;if("touchstart"===(null==o?void 0:o.type))return void l((e=>({...e,_deferNextOpen:!0})));const i=null==o?void 0:o.clientX,a=null==o?void 0:o.clientY,s="number"==typeof i&&"number"==typeof a?{left:i,top:a}:void 0,c=i=>{var a,l;if(e||i.setAnchorElUsed||"dialog"===r||(l="eventOrAnchorEl should be defined if setAnchorEl is not used",Do[a="missingEventOrAnchorEl"]||(Do[a]=!0,console.error("[material-ui-popup-state] WARNING",l))),t){if(!t.isOpen)return i;setTimeout((()=>t._setChildPopupState(b)))}const c={...i,isOpen:!0,anchorPosition:s,hovered:"mouseover"===(null==o?void 0:o.type)||i.hovered,focused:"focus"===(null==o?void 0:o.type)||i.focused,_openEventType:null==o?void 0:o.type};return i.setAnchorElUsed||(null!=o&&o.currentTarget?c.anchorEl=null==o?void 0:o.currentTarget:n&&(c.anchorEl=n)),c};l((e=>e._deferNextOpen?(setTimeout((()=>l(c)),0),{...e,_deferNextOpen:!1}):c(e)))})),p=e=>{const{_childPopupState:o}=e;return setTimeout((()=>{null==o||o.close(),null==t||t._setChildPopupState(null)})),{...e,isOpen:!1,hovered:!1,focused:!1}},m=_o((e=>{const t=e instanceof Element?void 0:e;"touchstart"!==(null==t?void 0:t.type)?l((e=>e._deferNextClose?(setTimeout((()=>l(p)),0),{...e,_deferNextClose:!1}):p(e))):l((e=>({...e,_deferNextClose:!0})))})),h=e.useCallback(((e,t)=>{e?d(t):m(t)}),[]),f=_o((e=>{const{relatedTarget:t}=e;l((e=>!e.hovered||t instanceof Element&&Uo(t,b)?e:e.focused?{...e,hovered:!1}:p(e)))})),g=_o((e=>{if(!e)return;const{relatedTarget:t}=e;l((e=>!e.focused||t instanceof Element&&Uo(t,b)?e:e.hovered?{...e,focused:!1}:p(e)))})),x=e.useCallback((e=>l((t=>({...t,_childPopupState:e})))),[]),b={...a,setAnchorEl:c,popupId:o??void 0,variant:r,open:d,close:m,toggle:u,setOpen:h,onBlur:g,onMouseLeave:f,disableAutoFocus:n??Boolean(a.hovered||a.focused),_setChildPopupState:x};return b}function qo({isOpen:e,popupId:t,variant:o}){return{..."popover"===o?{"aria-haspopup":!0,"aria-controls":e?t:void 0}:"popper"===o?{"aria-describedby":e?t:void 0}:void 0}}function Go(e){return{...qo(e),onClick:e.open,onTouchStart:e.open}}function Ko({isOpen:e,anchorEl:t,anchorPosition:o,close:r,popupId:n,onMouseLeave:i,disableAutoFocus:a,_openEventType:s}){return{id:n,anchorEl:t,anchorPosition:o,anchorReference:"contextmenu"===s?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:i,...a&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function Uo(e,t){const{anchorEl:o,_childPopupState:r}=t;return Yo(o,e)||Yo(function(e,{popupId:t}){if(!t)return null;const o="function"==typeof e.getRootNode?e.getRootNode():document;return"function"==typeof o.getElementById?o.getElementById(t):null}(e,t),e)||null!=r&&Uo(e,r)}function Yo(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}const Xo=e=>({boxShadow:e.custom.elevation.raised}),Qo=e=>({boxShadow:e.custom.elevation.overlay}),Jo=(e,t)=>{switch(t){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},er=(e,t)=>{switch(e){case"sunken":return t.custom.palette.surface.sunken;case"raised":return t.custom.palette.surface.raised;case"overlay":return t.custom.palette.surface.overlay;default:return t.custom.palette.surface.default}},tr=t.styled(t.Paper)((({theme:e,variation:t="default",borderradius:o})=>({boxShadow:"unset",borderRadius:Jo(e,o),background:er(t,e),..."overlay"===t&&{...Qo(e)},..."raised"===t&&{...Xo(e)}}))),or=({children:e,variation:t="overlay",sx:o,...n})=>R.jsx(tr,{variation:t,...n,sx:r.mergeSx(o||{},{}),children:e}),rr=({children:e,description:o,title:r})=>R.jsx(or,{variation:"raised",borderradius:"md",sx:{maxWidth:200},children:R.jsxs(t.Stack,{sx:{gap:2,p:2},children:[R.jsxs(t.Stack,{sx:{gap:1},children:[R.jsx(Ae,{variation:"sm",component:"p",weight:"bold",children:r}),R.jsx(Ae,{variation:"sm",component:"p",children:o})]}),e]})}),nr=t.styled(or)((({notification:e,theme:t})=>({alignItems:"center",cursor:"pointer",display:"flex",height:40,justifyContent:"center",position:"relative",width:40,...e&&{"&:after":{background:t.custom.palette.red[500],borderRadius:t.custom.radius.round,content:'""',height:t.spacing(1),position:"absolute",right:t.spacing(.5),top:t.spacing(.5),width:t.spacing(1)}}}))),ir=({notification:e,onClick:t})=>R.jsx(nr,{variation:"overlay",borderradius:"md",notification:e,onClick:t,children:R.jsx(Q,{name:"notification"})}),ar=e.forwardRef(((t,o)=>{const{decimalSeparator:r,thousandSeparator:n,value:a,...s}=t,l=e.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"group"===e.type))?.value??"";var e}),[void 0]),c=e.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"decimal"===e.type))?.value??".";var e}),[void 0]);return R.jsx(i.NumericFormat,{...s,value:a??"",getInputRef:o,thousandSeparator:n??l,decimalSeparator:r??c})})),sr=({disabled:r=!1,InputProps:n,inputProps:i,placeholder:a,hideActionButtons:s=!1,max:l=1/0,min:c=-1/0,startAdornment:u,endAdornment:d,internalChange:p,numericFormatProps:m,onChange:h,step:f=1,value:g,...x})=>{const b=t.useTheme(),[y,v]=e.useState(g),C=y,w=e=>{v(e),h&&h(e),p&&p()},j=()=>{const e=(null==C||Number.isNaN(C)?0:C)+f;e>l||w(e)},k=()=>{const e=(null==C||Number.isNaN(C)?0:C)-f;e<c||w(e)},S={decimalScale:5,isAllowed:({floatValue:e})=>null==e||e>=c&&e<=l,max:l!==1/0?l:void 0,min:c!==-1/0?c:void 0,step:1!==f?f:void 0,onKeyDown:e=>{"ArrowUp"===e.key?j():"ArrowDown"===e.key&&k()},onValueChange:({floatValue:e})=>{e!==C&&w(e)},value:C,...m};return R.jsx(ct,{placeholder:a,sx:{height:D,"& .MuiOutlinedInput-input":{minWidth:H,pl:u?1:2,pr:u?1:2}},...x,value:C??"",disabled:r,InputProps:{...n,inputComponent:ar,startAdornment:u?R.jsx(t.InputAdornment,{position:"start",sx:{pl:1},children:u}):null,endAdornment:!s&&R.jsxs(t.Stack,{gap:b.custom.margin.sm,sx:{height:"100%",alignItems:"center"},direction:"row",children:[d&&R.jsx(t.InputAdornment,{position:"end",children:d}),R.jsxs(t.Stack,{sx:{height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${b.custom.palette.stroke.default}`},children:[R.jsx(t.ButtonBase,{onClick:()=>j(),sx:{flex:1,borderTopRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:R.jsx(o.ArrowDropUp,{fontSize:"inherit"})}),R.jsx(t.Divider,{}),R.jsx(t.ButtonBase,{onClick:()=>k(),sx:{flex:1,borderBottomRightRadius:b.spacing(b.custom.radius.md),fontSize:12,"&:hover":{background:b.custom.palette.interaction.hover}},children:R.jsx(o.ArrowDropDown,{fontSize:"inherit"})})]})]})},inputProps:{...i,...S}})};const lr=(e,t)=>"light"===t?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},cr=(e,t,o)=>{switch(t){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===o?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===o?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===o?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},ur=t.styled(t.Chip)((({theme:e,variation:t,weight:o})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...cr(e,t,o),"& .MuiChip-label":{fontSize:`${De.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...lr(0,o)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...cr(e,t,o),...lr(0,o)}})));var dr=function(){function e(e){var t=this;this._insertTag=function(e){var o;o=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,o),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var pr="undefined"!=typeof document,mr=function(e,t,o){for(var r=0,n=0;r=n,n=a.peek(),38===r&&12===n&&(t[o]=1),!a.token(n);)a.next();return a.slice(e,a.position)},hr=function(e,t){return a.dealloc(function(e,t){var o=-1,r=44;do{switch(a.token(r)){case 0:38===r&&12===a.peek()&&(t[o]=1),e[o]+=mr(a.position-1,t,o);break;case 2:e[o]+=a.delimit(r);break;case 4:if(44===r){e[++o]=58===a.peek()?"&\f":"",t[o]=e[o].length;break}default:e[o]+=a.from(r)}}while(r=a.next());return e}(a.alloc(e),t))},fr=new WeakMap,gr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,o=e.parent,r=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fr.get(o))&&!r){fr.set(e,!0);for(var n=[],i=hr(t,n),a=o.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},xr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function br(e,t){switch(a.hash(e,t)){case 5103:return a.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.WEBKIT+e+a.MOZ+e+a.MS+e+e;case 6828:case 4268:return a.WEBKIT+e+a.MS+e+e;case 6165:return a.WEBKIT+e+a.MS+"flex-"+e+e;case 5187:return a.WEBKIT+e+a.replace(e,/(\w+).+(:[^]+)/,a.WEBKIT+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.WEBKIT+e+a.MS+"flex-item-"+a.replace(e,/flex-|-self/,"")+e;case 4675:return a.WEBKIT+e+a.MS+"flex-line-pack"+a.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return a.WEBKIT+e+a.MS+a.replace(e,"shrink","negative")+e;case 5292:return a.WEBKIT+e+a.MS+a.replace(e,"basis","preferred-size")+e;case 6060:return a.WEBKIT+"box-"+a.replace(e,"-grow","")+a.WEBKIT+e+a.MS+a.replace(e,"grow","positive")+e;case 4554:return a.WEBKIT+a.replace(e,/([^-])(transform)/g,"$1"+a.WEBKIT+"$2")+e;case 6187:return a.replace(a.replace(a.replace(e,/(zoom-|grab)/,a.WEBKIT+"$1"),/(image-set)/,a.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return a.replace(e,/(image-set\([^]*)/,a.WEBKIT+"$1$`$1");case 4968:return a.replace(a.replace(e,/(.+:)(flex-)?(.*)/,a.WEBKIT+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return a.replace(e,/(.+)-inline(.+)/,a.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(a.strlen(e)-1-t>6)switch(a.charat(e,t+1)){case 109:if(45!==a.charat(e,t+4))break;case 102:return a.replace(e,/(.+:)(.+)-([^]+)/,"$1"+a.WEBKIT+"$2-$3$1"+a.MOZ+(108==a.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~a.indexof(e,"stretch")?br(a.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==a.charat(e,t+1))break;case 6444:switch(a.charat(e,a.strlen(e)-3-(~a.indexof(e,"!important")&&10))){case 107:return a.replace(e,":",":"+a.WEBKIT)+e;case 101:return a.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.WEBKIT+(45===a.charat(e,14)?"inline-":"")+"box$3$1"+a.WEBKIT+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch(a.charat(e,t+11)){case 114:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.WEBKIT+e+a.MS+e+e}return e}var yr,vr,Cr=pr?void 0:(yr=function(){return e=function(){return{}},t=Object.create(null),function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]};var e,t},vr=new WeakMap,function(e){if(vr.has(e))return vr.get(e);var t=yr(e);return vr.set(e,t),t}),wr=[function(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case a.DECLARATION:e.return=br(e.value,e.length);break;case a.KEYFRAMES:return a.serialize([a.copy(e,{value:a.replace(e.value,"@","@"+a.WEBKIT)})],r);case a.RULESET:if(e.length)return a.combine(e.props,(function(t){switch(a.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return a.serialize([a.copy(e,{props:[a.replace(t,/:(read-\w+)/,":"+a.MOZ+"$1")]})],r);case"::placeholder":return a.serialize([a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.WEBKIT+"input-$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.MOZ+"$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""}))}}],jr=function(e){var t=e.key;if(pr&&"css"===t){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,n,i=e.stylisPlugins||wr,s={},l=[];pr&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),o=1;o<t.length;o++)s[t[o]]=!0;l.push(e)})));var c=[gr,xr];if(Cr){var u=[a.stringify],d=a.middleware(c.concat(i,u)),p=Cr(i)(t),m=function(e,t){var o,r=t.name;return void 0===p[r]&&(p[r]=(o=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(o),d))),p[r]};n=function(e,t,o,r){var n=t.name,i=m(e,t);return void 0===x.compat?(r&&(x.inserted[n]=!0),i):r?void(x.inserted[n]=i):i}}else{var h,f=[a.stringify,a.rulesheet((function(e){h.insert(e)}))],g=a.middleware(c.concat(i,f));n=function(e,t,o,r){var n;h=o,n=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(n),g),r&&(x.inserted[t.name]=!0)}}var x={key:t,sheet:new dr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:n};return x.sheet.hydrate(l),x};const kr=t.styled("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),Sr=({options:o,onChange:r,other:n,value:i,internalChange:a,...s})=>{const l=n?.enabled,c="other-option",u=`${c}-value-`,[d,p]=e.useState(i),[m,h]=e.useState(!1);e.useEffect((()=>{!m&&d?.includes(u)?h(!0):m&&h(!1)}),[d]);return R.jsxs(R.Fragment,{children:[R.jsxs(t.RadioGroup,{...s,value:d,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,t)=>{r&&r(t),p(t),a&&a()},children:[o?o.map(((e,t)=>R.jsx(it,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:R.jsx(wt,{})},t))):null,l&&R.jsx(it,{label:n?.label||"Other",value:u,control:R.jsx(wt,{checked:d?.includes(u)})},c)]}),m&&R.jsx(t.Box,{sx:{mt:1},children:R.jsx(ut,{fullWidth:!0,autoFocus:!0,placeholder:n?.placeholder,defaultValue:d?.replace(u,""),onChange:e=>{var t;r&&r((t=e.target.value,`${u}${t}`)),a&&a()},required:!0})})]})},Mr=({handleSelectAll:o,isIndeterminate:r,isAllSelected:n,sizing:i})=>{const[a,s]=e.useState(!1),l=t.useTheme();return e.useEffect((()=>{n&&s(n)}),[n]),R.jsxs(t.Stack,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:e=>{const t=!a;s(t),o(e,t)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[R.jsx(t.FormLabel,{sx:{cursor:"pointer",fontSize:()=>i&&Ne[i]},children:"Select all"}),R.jsx(st,{sizing:"default",indeterminate:r,checked:a})]})},Ir=e.forwardRef((({children:e,handleSelectAll:t,showSelectAll:o,value:r=[],selections:n,sizing:i,...a},s)=>{const l=Array.isArray(r)&&r.length===n.length,c=Array.isArray(r)&&r.length>0&&r.length<n.length;return R.jsxs("ul",{ref:s,...a,children:[o&&R.jsx(Mr,{handleSelectAll:t,isIndeterminate:c,isAllSelected:l,sizing:i}),e]})})),Er="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",Tr=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},Lr=(e,t)=>({"& .MuiTypography-root":{height:Tr(t),fontSize:Ne[t],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm)}}),Br=e=>({fontSize:`${De.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(Z.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),Or=(e,t)=>{switch(t){case"lg":return{height:Tr(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.lg,height:X.lg,top:`calc(50% - ${X.lg/2}px)`}};case"md":return{height:Tr(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.md,height:X.md,top:`calc(50% - ${X.md/2}px)`}};case"xs":return{height:Tr(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.xs,height:X.xs,top:`calc(50% - ${X.xs/2}px)`}};default:return{height:Tr("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:X.lg,height:X.lg,top:`calc(50% - ${X.lg/2}px)`}}}},Rr=e=>({position:"relative",fontSize:`${De.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:X.xl,height:X.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),Fr=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:Er}}}}),$r=t.styled(t.Autocomplete)((({theme:e,sizing:t,value:o})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:X[t],height:X[t]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...t&&{height:"xs"===t?2*N+"px":3*N+"px"},paddingTop:0,paddingBottom:0,paddingLeft:o&&Array.isArray(o)&&o.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:Ne[t],gap:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*N+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...t&&{height:"xs"===t?2*N+"px":3*N+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),Ar=t.styled(t.Chip)((({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),Pr=t.styled(t.TextField)((({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),Vr=t.styled(t.Popper)((({theme:e,sizing:o})=>({"& .MuiPaper-root":{...o&&{margin:"lg"===o?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===o?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===o?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:Er,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${t.autocompleteClasses.listbox}`]:{overflowX:"hidden",[`& .${t.autocompleteClasses.option}`]:{fontSize:Ne[o],...o&&{height:"lg"===o?5*N+"px":4*N+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),Hr=e=>R.jsx(Vr,{...e}),_r=({selections:t,disableClearable:r=!1,disabled:n,internalChange:i,multiple:a=!0,onChange:s,placeholder:l="",renderListItem:c,sizing:u="lg",value:d=(a?[]:"")})=>{const[p,m]=e.useState(t.filter((e=>d.includes(e?.value)))),h=(e,o)=>{if(s){const r=o?t.map((({value:e})=>e)):[];m(o?t:[]),s(e,r,"selectOption"),i&&i()}},f=e=>null!==e&&(!Array.isArray(e)||e.length>0);return R.jsx($r,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:R.jsx(o.KeyboardArrowDown,{}),sizing:u,disabled:n,disableClearable:r,autoComplete:!0,multiple:a,renderInput:e=>R.jsx(Pr,{...e,placeholder:f(p)?void 0:l,sizing:u}),options:t,renderTags:(e,t)=>e.map(((e,r)=>{const{key:n,...i}=t({index:r});return R.jsx(Ar,{sizing:u,deleteIcon:R.jsx(o.CloseRounded,{fontSize:"small"}),label:e.label,...i},n)})),onChange:(e,t,o)=>{const r=Array.isArray(t)?t.map((e=>e.value)):t?.value??null;m(t),s?.(e,r,o),i?.()},PopperComponent:e=>R.jsx(Hr,{...e,sizing:u}),isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,{selected:r})=>{const{key:n,...i}=e;return R.jsxs("li",{...i,children:[R.jsx("span",{children:c?c(t.value,t.label):t.label}),R.jsx(o.Check,{sx:{visibility:r?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:e.forwardRef(((e,o)=>R.jsx(Ir,{ref:o,...e,showSelectAll:a,handleSelectAll:h,value:p,selections:t,sizing:u}))),value:p})},Dr=t.styled(t.MenuItem)((({theme:e})=>({...{...Rr(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),zr=({children:e,selected:r,...n})=>R.jsx(Dr,{...n,children:R.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[R.jsx(t.Box,{children:e}),r&&R.jsx(o.Check,{})]})}),Nr=t.styled(t.Select)((({theme:e,sizing:t})=>({...{...Br(e)},...t&&{...Or(e,t)},...t&&{...Lr(e,t)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),Wr=({selections:e,autoComplete:r=!1,disabled:n=!1,disablePortal:i=!1,inputRef:a,internalChange:s,multi:l=!0,onChange:c,placeholder:u="",selectOptionProps:d,sizing:p="lg",sx:m,value:h=[],renderListItem:f,...g})=>{const x=t.useTheme(),b=lo();return r?R.jsx(_r,{selections:e,placeholder:u,disabled:n,sizing:p,onChange:(e,t)=>{c&&c(t||""),s&&s()},value:Array.isArray(h)?h??[]:h??"",internalChange:s,renderListItem:f,multiple:l}):R.jsxs(Nr,{sizing:p,inputRef:a,MenuProps:{disablePortal:i,sx:Fr,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:o.KeyboardArrowDown,renderValue:t=>u&&!t?R.jsx(Ae,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",sx:{color:x.custom.palette.text.placeholder},children:u}):R.jsx(Ae,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",children:e?.find((({value:e})=>e===t))?.label}),onChange:(e,t)=>{c&&c(e,t),s&&s()},sx:m,value:h,...g,children:[""!==u.trim()&&R.jsx(zr,{disabled:!0,value:"","aria-label":"placeholder",children:u},"placeholder"),e?.map((({value:e,label:t})=>R.jsx(zr,{value:e,...d,children:f?f(e,t):t},e)))]})},Zr=t.styled(t.Box)((({theme:e,disabled:t,fullWidth:o})=>({width:o?"100%":"auto",minWidth:240,backgroundColor:t?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${t?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...t&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),qr=t.styled(So)((({theme:e})=>({fontSize:De.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),Gr=({label:e="Placeholder",disabled:r,onChange:n,options:i,fullWidth:a})=>{const s=t.useTheme(),l=i.map((e=>e.label)).indexOf(e);return R.jsx(Zr,{disabled:r,fullWidth:a,children:R.jsxs(t.Stack,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[R.jsxs(t.Box,{display:"flex",alignItems:"center",sx:{"& svg":{fill:s.custom.palette.icon.secondary}},children:[R.jsx(o.DragHandle,{sx:{width:X.lg,height:X.lg,mr:s.custom.padding.sm}}),R.jsx(qr,{align:"left",disabled:r,children:e})]}),R.jsx(Wr,{name:"rank",sizing:"xs",selections:i.map(((e,t)=>({label:`${t+1}`,value:`${t}`}))),disabled:r,value:`${l}`,onChange:function(e){const t=l,o=Number(e.target.value),r=i;let a=1;const s=r.splice(t,a)[0];a=0,r.splice(o,a,s),n(r)},MenuProps:{anchorOrigin:{vertical:_,horizontal:"center"}}})]})})},Kr=e.createContext({attributes:{},listeners:void 0,ref(){}}),Ur=e=>u.defaultAnimateLayoutChanges({...e,wasDragging:!0});function Yr({children:o,top:r,bottom:n,id:i}){const{attributes:a,isDragging:s,listeners:l,setNodeRef:c,setActivatorNodeRef:p,transform:m,transition:h}=u.useSortable({id:i,animateLayoutChanges:Ur}),f=e.useMemo((()=>({attributes:a,listeners:l,ref:p})),[a,l,p]),g={opacity:s?.4:void 0,transform:d.CSS.Translate.toString(m),transition:h};return R.jsx(Kr.Provider,{value:f,children:R.jsxs(t.Stack,{className:"SortableItem",...a,sx:{position:"relative",...g,width:"100%"},ref:c,children:[r&&r,R.jsx(t.Box,{...l,sx:{display:"flex",cursor:"grab"},children:o}),n&&n]})})}const Xr={sideEffects:c.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function Qr({children:e}){return l.createPortal(R.jsx(c.DragOverlay,{zIndex:999999,dropAnimation:Xr,children:e}),document.body)}const Jr=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class en extends c.MouseSensor{static activators=[{eventName:"onMouseDown",handler:Jr}]}class tn extends c.TouchSensor{static activators=[{eventName:"onTouchStart",handler:Jr}]}function on({items:o,onChange:r,renderItem:n,disabled:i,direction:a}){if(!o)return;const[s,l]=e.useState(null),d=e.useMemo((()=>o.find((e=>e?.id===s?.id))),[s,o]),p=t.useTheme(),m=t.useMediaQuery(p.breakpoints.down("md")),h=c.useSensors(c.useSensor(en,{activationConstraint:{distance:5}}),c.useSensor(tn,{activationConstraint:{delay:m?300:0,tolerance:8}}),c.useSensor(c.KeyboardSensor,{coordinateGetter:u.sortableKeyboardCoordinates}));return R.jsxs(c.DndContext,{measuring:{droppable:{strategy:c.MeasuringStrategy.Always}},sensors:h,onDragStart:({active:e})=>{l(e)},onDragEnd:({active:e,over:t})=>{if(t&&e.id!==t?.id){const n=o.findIndex((({id:t})=>t===e.id)),i=o.findIndex((({id:e})=>e===t.id));r(u.arrayMove(o,n,i))}l(null)},onDragCancel:()=>{l(null)},children:[R.jsx(u.SortableContext,{items:o,disabled:i,strategy:"horizontal"===a?u.horizontalListSortingStrategy:u.verticalListSortingStrategy,children:R.jsx(t.Stack,{sx:{..."horizontal"===a&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:o.map((t=>R.jsx(e.Fragment,{children:n(t)},t.id)))})}),R.jsx(Qr,{children:d?n(d,!0,!!s):null})]})}on.Item=Yr,on.DragHandle=function(){const{attributes:o,listeners:r,ref:n}=e.useContext(Kr);return R.jsx(t.Box,{...o,...r,ref:n,children:R.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:R.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const rn=({labelTop:o,labelBottom:r,disabled:n,fullWidth:i=!1,options:a,onChange:s,value:l,internalChange:c})=>{const u=t.useTheme(),[d,p]=e.useState(l||a);function m(e){p(e),s(e.map((({id:e})=>e))),c&&c()}return R.jsxs(t.Stack,{gap:u.custom.margin.sm,textAlign:"center",sx:{width:i?"100%":"auto"},children:[o&&R.jsx(So,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:o}),R.jsx(on,{onChange:function(e){p(e),s(e.map((({id:e})=>e))),c&&c()},items:d,direction:"vertical",renderItem:({...e})=>R.jsx(Yr,{id:e.id,children:R.jsx(Gr,{onChange:m,...e,options:d,disabled:n,selections:e.selections,fullWidth:i})})}),r&&R.jsx(So,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:r})]})},nn=t.styled(h.RichTextEditor)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),an=({onChange:o,value:r,internalChange:n,minWidth:i=100,minHeight:a=100,maxHeight:s,placeholder:l,autoFocus:c})=>{const u=e.useRef(null),d=t.useTheme();return R.jsx(nn,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:a,minWidth:i,maxHeight:s}},ref:u,onUpdate:({editor:e})=>{o&&o(e.storage.markdown.getMarkdown()),n&&n()},extensions:[m.StarterKit.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),p.Placeholder.configure({placeholder:l}),f.Markdown],content:r,renderControls:()=>R.jsxs(t.Stack,{gap:d.custom.margin.xs,direction:"row",children:[R.jsx(h.MenuButtonBold,{}),R.jsx(h.MenuButtonItalic,{})]})})},sn=e=>({"& .MuiSlider-thumb":{width:H,height:H,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:A,height:A,backgroundColor:e.custom.palette.icon.primaryInverted}}}),ln=e=>Array.isArray(e),cn=(e,t)=>({height:P,padding:`${P}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${_}px)`,left:`-${V}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:t&&ln(t)?`-${P+1}px`:`-${V+1}px`,width:`calc(100% + ${V}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:A,width:A,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),un=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:A,minWidth:_,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${De.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),dn=t.styled(t.Slider)((({theme:e,value:t})=>({"&.MuiSlider-root":{width:`calc(100% - ${_}px)`,marginLeft:_/2,...{...cn(e,t)},...{...sn(e)},...{...un(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),pn=[1,2,5,10],mn=(e,t)=>{if(e>=t)return console.warn("Min value must be less than max value"),1;const o=(t-e)/9;if(o<=1)return 1;const r=Math.floor(Math.log10(o)),n=o/Math.pow(10,r);return i=n,(pn.find((e=>i<=e))??pn[pn.length-1])*Math.pow(10,r);var i},hn=({labelLeft:e,labelMiddle:o,labelRight:r,labelRightProps:n,labelLeftProps:i,disabled:a,onChange:s,internalChange:l,max:c=5,min:u=1,step:d,value:p=u,...m})=>{const{sanitisedMin:h,sanitisedMax:f}=((e,t)=>e>=t?{sanitisedMin:1,sanitisedMax:5}:{sanitisedMin:e,sanitisedMax:t})(u,c),g=((e,t,o)=>{const r=[];for(let n=e;n<=t;n+=o)r.push({value:n,label:n===e||n===t||n+o<=t?n.toString():void 0});return r[r.length-1].value!==t&&r.push({value:t,label:t.toString()}),r})(h,f,d??mn(u,c));return R.jsxs(t.Box,{sx:{minWidth:300},children:[R.jsx(t.Box,{height:24,children:R.jsx(dn,{valueLabelDisplay:a?"on":"auto",disabled:a,marks:g,step:d,max:f,min:h,onChangeCommitted:()=>{l&&l()},onChange:(e,t,o)=>{s&&s(e,t,o)},value:p,...m})}),R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",pt:Z.lg,gap:1},children:[e&&R.jsx(t.Box,{sx:{flex:1},children:R.jsx(bt,{disabled:a,showicon:!1,...i,children:e})}),o&&R.jsx(t.Box,{sx:{flex:1,textAlign:"center"},children:R.jsx(bt,{showicon:!1,disabled:a,children:o})}),r&&R.jsx(t.Box,{sx:{flex:1,textAlign:"right"},children:R.jsx(bt,{...n,showicon:!1,disabled:a,children:r})})]})]})},fn=t.styled(t.Rating)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),gn=({internalChange:e,onChange:o,...r})=>R.jsx(fn,{...r,onChange:(t,r)=>{o&&o(t,r),e&&e()},icon:R.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:R.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),xn=t.styled((e=>R.jsx(t.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),bn=t.styled(ct)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:D,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:X.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),yn=({startAdornment:e,endAdornment:o,onChange:r,internalChange:n,inputRef:i,...a})=>R.jsx(bn,{multiline:!0,inputRef:i,InputProps:{startAdornment:e?R.jsx(t.InputAdornment,{position:"start",children:e}):null,endAdornment:o?R.jsx(t.InputAdornment,{position:"start",children:o}):null},onChange:e=>{r&&r(e),n&&n()},...a}),vn=({status:e})=>{const o=t.useTheme();switch(e){case"neutral":return null;case"success":return R.jsx(Cn,{backgroundColor:o.custom.palette.green[500],name:"check-circle"});case"warning":return R.jsx(Cn,{backgroundColor:o.custom.palette.yellow[500],name:"error-outline"});case"danger":return R.jsx(Cn,{backgroundColor:o.custom.palette.red[500],name:"warning-amber"});case"discover":return R.jsx(Cn,{backgroundColor:o.custom.palette.purple[500],name:"lightbulb"})}},Cn=({backgroundColor:e,name:o})=>{const r=t.useTheme();return R.jsx(t.Box,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:R.jsx(t.Box,{sx:{backgroundColor:e,borderRadius:r.custom.radius.round,color:r.custom.palette.white,display:"flex",p:.5},children:R.jsx(Q,{name:o,size:20})})})},wn=t.styled(t.Button)((({active:e,theme:t})=>({maxWidth:"100%",padding:t.spacing(.5),textTransform:"none",width:"100%",...Ke(t,e)}))),jn=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),kn=t.styled(t.Stack)({alignItems:"flex-start",display:"flex",justifyContent:"center"}),Sn=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),Mn=t.styled(t.Box)((({active:e,theme:t})=>({alignItems:"center",borderRadius:t.custom.radius.round,cursor:"pointer",display:"flex",justifyContent:"center",padding:t.spacing(.5),...Ke(t,e)}))),In=({active:e,avatar:o,email:r,name:n,variation:i})=>{const a=t.useTheme();return"sm"===i?R.jsx(t.Box,{sx:{display:"flex",justifyContent:"center"},children:R.jsx(Mn,{active:e,children:R.jsx(Pe,{src:o,variation:"sm"})})}):R.jsx(wn,{active:e,children:R.jsxs(jn,{sx:{flex:1},children:[R.jsxs(jn,{children:[R.jsx(Pe,{src:o,variation:"sm"}),R.jsxs(kn,{children:[R.jsx(Ae,{variation:"sm",component:"p",lineHeight:1.2,children:n}),R.jsx(Ae,{variation:"xs",component:"p",sx:{color:a.custom.palette.text.secondary},lineHeight:1.2,children:r})]})]}),R.jsx(Sn,{children:R.jsx(Q,{name:"chevron-right",size:24})})]})})},En=t.styled(t.Button)((({active:e,theme:t})=>({borderRadius:t.spacing(t.custom.radius.sm),maxWidth:"100%",padding:t.spacing(.75,1.5),textTransform:"none",width:"100%",...Ke(t,e)}))),Tn=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between"}))),Ln=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",color:e.custom.palette.icon.secondary,display:"flex",justifyContent:"center"}))),Bn=({active:e,danger:o,hasChildren:r,selected:n,title:i})=>{const a=t.useTheme();return R.jsx(En,{active:e,children:R.jsxs(Tn,{sx:{flex:1},children:[R.jsx(Tn,{children:R.jsx(Ae,{variation:"md",component:"p",lineHeight:1.2,color:o?a.custom.palette.text.negative:a.custom.palette.text.primary,children:i})}),R.jsxs(Ln,{children:[r&&R.jsx(Q,{name:"chevron-right",size:24}),n&&R.jsx(Q,{name:"check-thin",size:24})]})]})})},On=({button:e,children:o,state:r})=>R.jsx(t.ClickAwayListener,{onClickAway:()=>r.close(),children:R.jsxs(t.Box,{children:[R.jsx(t.Box,{...Go(r),children:e}),R.jsx(t.Popper,{...Ko(r),placement:"right-end",transition:!0,children:({TransitionProps:e})=>R.jsx(t.Fade,{...e,timeout:350,children:R.jsx(t.Box,{sx:{pl:1},children:o})})})]})}),Rn=(e,o)=>{if(e.children?.length){const r=Zo({variant:"popper"});return R.jsx(On,{state:r,button:R.jsx(Bn,{title:e.title,active:r.isOpen,hasChildren:!0,selected:e.selected}),children:R.jsx(or,{borderradius:"md",variation:"overlay",sx:{width:192},children:R.jsx(t.Stack,{sx:{p:1},children:e.children.map(Rn)})})},o)}return R.jsx(Bn,{title:e.title,selected:e.selected})};const Fn=(e,t)=>{switch(e){case 1:return t.custom.palette.red[500];case 2:return t.custom.palette.yellow[500];case 3:case 4:return t.custom.palette.green[500];default:return t.custom.palette.icon.disabled}},$n=(e,t)=>{switch(e){case 1:return t.custom.palette.text.negative;case 2:return t.custom.palette.yellow[800];case 3:return t.custom.palette.green[800];case 4:return t.custom.palette.text.positive;default:return t.custom.palette.icon.disabled}},An=t.styled(t.LinearProgress)((({theme:e,score:o})=>({boxShadow:"unset",background:e.custom.palette.neutral[100],borderRadius:e.spacing(e.custom.radius.sm),[`.${t.linearProgressClasses.bar}`]:{borderRadius:e.spacing(e.custom.radius.sm),backgroundColor:Fn(o,e)}}))),Pn={translations:M.translations,graphs:S.adjacencyGraphs,dictionary:{...S.dictionary,...M.dictionary}};b.zxcvbnOptions.setOptions(Pn);const Vn=({label:o="Strength",width:r=60,value:n,onChange:i})=>{const[a,s]=e.useState(0),l=t.useTheme();return e.useEffect((()=>{s(b.zxcvbn(n).score)}),[n]),e.useEffect((()=>{i(a)}),[a]),R.jsxs(t.Stack,{direction:"row",gap:1,sx:{alignItems:"center"},children:[R.jsx(Ae,{variation:"sm",component:"p",children:o}),R.jsx(An,{variant:"determinate",value:0===a?6.6:25*a,score:a,sx:{width:r}}),R.jsx(Ae,{variation:"sm",component:"p",sx:{color:$n(a,l)},children:["","Very weak","Weak","Strong","Excellent"][a]})]})},Hn=({helperText:e,inputName:t,errors:o,...r})=>{const n=Boolean(o&&o[t]);return n?R.jsx(C.ErrorMessage,{errors:o,name:t,render:({message:e})=>R.jsx(bt,{showicon:!!e,state:"negative",children:e})}):e&&!n?R.jsx(bt,{state:"default",...r,children:e}):null},_n={textfield:ut,numberfield:sr,textarea:yn,select:Wr,checkbox:lt,checkboxGroup:dt,slider:hn,starRating:gn,differential:Mt,likert:Ro,radioGroup:Sr,ranking:rn,richTextfield:an,customfield:ft},Dn=({name:o,fieldType:r,label:n,control:i,errors:a,labelProps:s,helperText:l,helpTextProps:c,validation:u,content:d,styleOverrides:p,defaultValue:m,onChange:h,watch:f,trigger:b,strengthIndicator:y,...v})=>{const{custom:C}=t.useTheme(),w=void 0!==a&&Object.keys(a).length>0,[j,k]=e.useState(0);return y&&e.useEffect((()=>{j>0&&b(o)}),[j]),R.jsxs(t.Stack,{sx:p?.sxInputStack,gap:C.margin.sm,children:[n&&R.jsx(So,{...s,children:n}),"html"===r&&d?R.jsx(co,{children:d}):R.jsxs(R.Fragment,{children:[R.jsx(g.Controller,{name:o,control:i,render:e=>function({field:{ref:e,...t}}){const o=_n[r];return null!==t.value?R.jsx(o,{...v,...t,inputRef:e}):R.jsx("div",{})}({...e,field:{...e.field,value:e.field.value||m}}),rules:{...u,validate:e=>{if(u&&"phone"in u)return x.isValidPhoneNumber(`+${f("extension")}${e}`)||u.phone.message;if(u&&"score"in u)return j<=u.score.value?u.score.message:void 0;if(u&&"white_space"in u)return!e.match(/^\s*$/g)||u.white_space.message;if(u&&"match"in u)switch(u.match?.comparison){case"not_eq":return e!=f(u.match.field)||u.match.message;case"gt":return e>f(u.match.field)||u.match.message;case"lt":return e<f(u.match.field)||u.match.message;default:return e===f(u.match.field)||u.match.message}}}}),y&&"password"===v?.type&&R.jsx(Vn,{value:f(o),onChange:k})]}),R.jsxs(R.Fragment,{children:[Boolean(w)?R.jsx(Hn,{helperText:void 0,inputName:o,errors:a,showicon:!0}):null,Boolean(l)?R.jsx(Hn,{helperText:l,inputName:o,errors:void 0,...c}):null]})]})},zn=e=>e.reduce(((e,t)=>({...e,[t?.name]:Nn(t,t?.defaultValue)})),{}),Nn=(e,t)=>{switch(e.fieldType){case"select":return Array.isArray(t),t;case"starRating":case"numberfield":return t||0;case"slider":{const{min:o}=e;return Array.isArray(t)?t:t||o}case"likert":case"radioGroup":case"customfield":default:return t||"";case"checkboxGroup":return t||[];case"checkbox":return t||!1;case"ranking":{const{options:o}=e;return t?t.map((e=>o.find((({id:t})=>t===e)))):o}}},Wn=e.forwardRef((({submitButton:o,secondaryButton:r,onFormSubmit:n,onFormChange:i,formConfig:a},s)=>{const{custom:l}=t.useTheme(),{fields:c,reValidateMode:u,styleOverrides:d,autoComplete:p,formId:m,mode:h}=a,{reset:f,getValues:x,trigger:b,setValue:y,control:v,formState:{isValid:C,errors:w},setFocus:j,handleSubmit:k,watch:S}=g.useForm({mode:h||"onChange",reValidateMode:u,defaultValues:e.useMemo((()=>zn(c)),[]),shouldUnregister:!0});e.useEffect((()=>{(function(e,t){const o=new Set(e),r=new Set(t);return e.every((e=>r.has(e)))&&t.every((e=>o.has(e)))})(c.map((({name:e})=>e)),Object.keys(x()))||c.forEach((e=>{"html"!==e.fieldType&&e.defaultValue&&y(e.name,Nn(e,e.defaultValue))}))}),[c]),e.useEffect((()=>{f(zn(c))}),[m]),e.useImperativeHandle(s,(()=>({set(e,t){y(e,t)},resetForm(){f()},focus(e){j(e)},submit(){n&&k(n)()},values:()=>x(),valid:()=>C,errors:()=>w,async triggerFormValidation(){await b()}})));const M=()=>{i&&i(x())};return R.jsxs(t.Box,{component:"form",autoComplete:p,noValidate:!0,sx:d?.sxForm,...n&&{onSubmit:k(n)},children:[R.jsx(t.Stack,{gap:l.margin.md,sx:d?.sxStack,children:c.map((({name:t,...o})=>e.createElement(Dn,{...i&&{internalChange:M},name:t,key:t,errors:w,control:v,watch:S,trigger:b,...o,defaultValue:zn(c)[t]})))}),(r||o)&&R.jsxs(t.Stack,{direction:"row",sx:d?.sxButtons||{mt:l.margin.lg,gap:l.margin.sm,justifyContent:"flex-end"},children:[r&&r,o&&o]})]})})),Zn=e=>{const t=e.toLowerCase();return["a","e","i","o","u"].some((e=>t.startsWith(e)))?"an":"a"},qn=(e,t,o)=>({maxLength:{value:o||255,message:`Maximum character limit of ${o||255}.`},...t&&{required:e?`Please enter ${Zn(e)} ${e}`:"This field is required"}}),Gn=qn().maxLength.value;var Kn={headings:{"01-starter":{heading:"Starter",pricing:"{{currencySymbol}} {{starterPrice}} / month"},"02-team":{heading:"Team",pricing:"{{currencySymbol}} {{teamPrice}} / month"},"03-plus":{heading:"Plus",pricing:"{{currencySymbol}} {{plusPrice}} / month"},"04-scale":{heading:"Scale",pricing:"{{currencySymbol}} {{scalePrice}} / month"}},rows:{"01-seats":{heading:"Seats",description:"The number of users you can have on your account.",starter:"1",team:"10",plus:"50",scale:"100+"},"02-servicing":{heading:"Client servicing included",description:"Get direct communication with a Loops Customer Success Manager.",starter:"{{dash}}",team:"{{dash}}",plus:"Serviced lite",scale:"💪\nFully serviced"},"03-respondents":{heading:"Price per respondent",description:"The amount you pay to recruit and survey each respondent.",starter:"{{currencySymbol}}{{starterRespondentPrice}}",team:"{{currencySymbol}}{{teamRespondentPrice}}",plus:"{{currencySymbol}}{{plusRespondentPrice}}",scale:"{{currencySymbol}}{{scaleRespondentPrice}}"},"04-questions":{heading:"Question limit",description:"The maximum number of questions you can add to a test.",starter:"10",team:"15",plus:"20",scale:"25"},"05-ai":{heading:"AI-powered insights",description:"Use Loops AI to summarise the findings from your tests.",starter:"Basic",team:"✨\nAdvanced",plus:"✨\nAdvanced",scale:"✨\nAdvanced"},"06-demographics":{heading:"Demographic filters",description:"Reach your target audience using built-in demographic filters.",starter:"Basic",team:"🎯\nAdvanced",plus:"🎯\nAdvanced",scale:"🎯\nAdvanced"},"07-training":{heading:"Training",description:"Our team will onboard you and get you set up.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"08-invite":{heading:"Invite your own respondents",description:"Share your test with your own recruited audience.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"09-email":{heading:"Email capture",description:"Ability to collect respondent email addresses.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"10-beta":{heading:"Beta features",description:"Assess to our latest features as they become available.",starter:"{{dash}}",team:"{{dash}}",plus:"{{tick}}",scale:"{{tick}}"},"11-sso":{heading:"Single sign on (SSO)",description:"Enterprise level authentication using SAML (supports Okta and OneLogin).",starter:"{{dash}}",team:"{{dash}}",plus:"{{dash}}",scale:"{{tick}}"},"12-minimum":{heading:"Minimum term",description:"The minimum subscription period.",starter:"30 days",team:"6 months",plus:"6 months",scale:"12 months"}}};const Un=({text:e})=>{const o=t.useTheme(),r="{{tick}}"===e,n="{{dash}}"===e;return R.jsx(t.Box,{sx:{display:"flex",alignItems:"center",textAlign:"center",width:122},children:R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:{sm:.5,md:1},flex:1},children:[r&&R.jsx(Q,{name:"check",size:24}),n&&R.jsx(Q,{name:"dash",size:24}),!r&&!n&&R.jsx(Ae,{variation:"lg",component:"p",sx:{color:o.custom.palette.text.secondary,hyphens:"none",whiteSpace:"pre"},children:R.jsx(R.Fragment,{children:e})})]})})},Yn=()=>{const t="object"==typeof window;function o(){return{width:t?window.innerWidth:void 0,height:t?window.innerHeight:void 0}}const[r,n]=e.useState(o);return e.useEffect((()=>{if(t)return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r);function r(){e.startTransition((()=>{n(o())}))}}),[]),r},Xn="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Qn=(e,o,r)=>t.createTheme({direction:r,custom:{palette:{black:"#000000",white:"#ffffff",neutral:we[e],neutralAlpha:"light"===e?xe:be,purple:ke[e],red:Se[e],peach:Me[e],yellow:Ie[e],blue:Ee[e],green:Te[e],icon:Le[e].icon,interaction:Le[e].interaction,stroke:Le[e].stroke,surface:Le[e].surface,text:Le[e].text,input:Le[e].input},margin:W,padding:Z,radius:q,elevation:G,elevationFilter:K,boxShadow:U,easing:Y,typography:De[o]},palette:{mode:e,primary:{main:ye[500]}},spacing:N,shape:{borderRadius:N,hotspot:{default:12,active:24}},breakpoints:{values:F},typography:{fontFamily:`"${Re.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:ze(o),styleOverrides:{root:{color:Le[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${we[e][0]};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${Oe.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Oe.default.weight};\n src: url(${Xn}${Oe.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Oe.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Oe.bold.weight};\n src: url(${Xn}${Oe.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Re.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Re.default.weight};\n src: url(${Xn}${Re.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Re.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Re.bold.weight};\n src: url(${Xn}${Re.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${F.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${F.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:e}})=>({color:e.palette.surface.overlay}),tooltip:({theme:{custom:e}})=>({backgroundColor:e.palette.surface.overlay,borderRadius:e.radius.md,color:e.palette.text.primary,backdropFilter:"blur(0)",filter:e.elevationFilter.overlay,fontFamily:Re.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*N}px ${e.padding.md*N}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}});var Jn="$$material";const ei="exact-prop: ​";function ti(e){return"production"===process.env.NODE_ENV?e:Tt({},e,{[ei]:t=>{const o=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return o.length>0?new Error(`The following props are not supported: ${o.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}const oi=k.createContext(null);function ri(){const e=k.useContext(oi);return"production"!==process.env.NODE_ENV&&k.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(oi.displayName="ThemeContext");var ni="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ii(e){const{children:t,theme:o}=e,r=ri();"production"!==process.env.NODE_ENV&&null===r&&"function"==typeof o&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const n=k.useMemo((()=>{const e=null===r?o:function(e,t){if("function"==typeof t){const o=t(e);return"production"!==process.env.NODE_ENV&&(o||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),o}return Tt({},e,t)}(r,o);return null!=e&&(e[ni]=null!==r),e}),[o,r]);return R.jsx(oi.Provider,{value:n,children:t})}"production"!==process.env.NODE_ENV&&(ii.propTypes={children:ro.node,theme:ro.oneOfType([ro.object,ro.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(ii.propTypes=ti(ii.propTypes));const ai=["value"],si=k.createContext();function li(e){let{value:t}=e,o=Ot(e,ai);return R.jsx(si.Provider,Tt({value:null==t||t},o))}"production"!==process.env.NODE_ENV&&(li.propTypes={children:ro.node,value:ro.bool});const ci=k.createContext(void 0);function ui({value:e,children:t}){return R.jsx(ci.Provider,{value:e,children:t})}"production"!==process.env.NODE_ENV&&(ui.propTypes={children:ro.node,value:ro.object});const di={};function pi(e,t,o,r=!1){return k.useMemo((()=>{const n=e&&t[e]||t;if("function"==typeof o){const i=o(n),a=e?Tt({},t,{[e]:i}):i;return r?()=>a:a}return Tt({},t,e?{[e]:o}:o)}),[e,t,o,r])}function mi(e){const{children:t,theme:o,themeId:r}=e,i=no(di),a=ri()||di;"production"!==process.env.NODE_ENV&&(null===i&&"function"==typeof o||r&&i&&!i[r]&&"function"==typeof o)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const s=pi(r,i,o),l=pi(r,a,o,!0),c="rtl"===s.direction;return R.jsx(ii,{theme:l,children:R.jsx(n.ThemeContext.Provider,{value:s,children:R.jsx(li,{value:c,children:R.jsx(ui,{value:null==s?void 0:s.components,children:t})})})})}"production"!==process.env.NODE_ENV&&(mi.propTypes={children:ro.node,theme:ro.oneOfType([ro.func,ro.object]).isRequired,themeId:ro.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(mi.propTypes=ti(mi.propTypes));const hi=["theme"];function fi(e){let{theme:t}=e,o=Ot(e,hi);const r=t[Jn];return R.jsx(mi,Tt({},o,{themeId:r?Jn:void 0,theme:r||t}))}"production"!==process.env.NODE_ENV&&(fi.propTypes={children:ro.node,theme:ro.oneOfType([ro.object,ro.func]).isRequired});const gi=e.createContext(null),xi=()=>R.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),bi=jr({key:"muirtl",stylisPlugins:[a.prefixer,w]}),yi=jr({key:"mui"});exports.AnnualController=({body:e,currency:o,changeCurrencyEvent:r=()=>{},frequency:n,heading:i,setCurrency:a=()=>{},setFrequency:s=()=>{},togglePayAnnuallyEvent:l=()=>{}})=>{const c=t.useTheme(),u=lo(),d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return R.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:c.custom.palette.surface.default,borderRadius:c.custom.radius.round,boxShadow:c.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[R.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1},children:[R.jsx(xn,{defaultChecked:!0,onChange:()=>(l(),void s("monthly"===n?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==n,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),R.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[R.jsx(Ae,{variation:"sm"===u||"md"===u?"md":"xxl",component:"p",children:i}),R.jsx(Ae,{variation:"sm",component:"p",sx:{color:c.custom.palette.text.secondary},children:e})]})]}),R.jsx(Wr,{name:"currency",onChange:e=>{return t=e.target.value,r(t),void a(t);var t},selections:d,value:d.find((e=>e.value===o))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:_,lg:D}}})]})},exports.AuthContainerSurface=({children:e,headContent:o,sx:n,...i})=>{const a=t.useTheme();return R.jsxs(or,{...i,sx:r.mergeSx(n,{mx:[a.spacing(a.custom.margin.md),0],width:1,maxWidth:[512]}),children:[o&&R.jsx(t.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:a.spacing(a.custom.margin.md),px:a.spacing(a.custom.margin.md)},children:o}),R.jsx(t.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:o?[a.spacing(a.custom.margin.md)]:[a.spacing(a.custom.padding.lg),a.spacing(a.custom.padding.xl)],px:[a.spacing(a.custom.padding.lg),a.spacing(a.custom.padding.xl)],pb:[a.spacing(a.custom.padding.lg),a.spacing(a.custom.padding.xl)]},children:e})]})},exports.AuthFormHeader=({logo:e,headerText:o,subText:r})=>{const n=t.useTheme();return R.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),alignItems:"center",mb:n.spacing(n.custom.margin.lg),children:[!1===e?null:e||R.jsx(Q,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),R.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),children:[o&&R.jsx(Ae,{variation:"sm",component:"h1",align:"center",weight:"bold",children:o}),function(){if(r)return"string"==typeof r?R.jsx(Ae,{variation:"md",component:"p",align:"center",children:r}):r}()]})]})},exports.Avatar=Pe,exports.AvatarGroup=({variation:e="primary",...o})=>{if("primary"===e)return R.jsx(t.AvatarGroup,{...o})},exports.Button=nt,exports.CheckBoxGroup=dt,exports.Checkbox=lt,exports.ColorBackgroundContainer=({sx:e,children:o,texture:n="noise1",gradient:i="tone1",...a})=>{const s=t.useTheme();return R.jsx(t.Container,{maxWidth:!1,disableGutters:!0,sx:r.mergeSx({background:ht(s,{texture:n,gradient:i}),height:"100%",p:[0,0,0]},!!e&&{...e}),...a,children:o})},exports.CustomField=ft,exports.DEFAULT_MAX_INPUT_LENGTH=Gn,exports.Differential=Mt,exports.DropdownMenu=({open:e,anchorEl:o,handleClick:r,handleClose:n,items:i,...a})=>R.jsx(R.Fragment,{children:R.jsx(It,{anchorEl:o,open:e,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...a,children:i?.map(((e,o)=>R.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&R.jsx(t.Box,{mr:1,children:e.icon}),e.label]},o)))})}),exports.FormControlLabel=it,exports.FormGenerator=Wn,exports.GridOverlay=({breakpoint:e})=>{const o=t.useTheme(),r=Array.from({length:6},((e,t)=>t));return e||(e=lo()),R.jsxs(t.Stack,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[R.jsx(t.Container,{sx:{background:o.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:R.jsx(t.Box,{sx:{background:o.custom.palette.purple[300],display:"flex",flex:1},children:R.jsxs(t.Grid,{container:!0,spacing:2,children:[r.map((e=>R.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:R.jsx(t.Box,{sx:{background:o.custom.palette.green[300],height:"100%"}})},`grid-1-${e}`))),r.map((e=>R.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:R.jsx(t.Box,{sx:{background:o.custom.palette.green[300],height:"100%"}})},`grid-2-${e}`)))]})})}),!!e&&R.jsx(t.Box,{sx:{backgroundColor:o.custom.palette.surface.default,borderRadius:o.spacing(o.custom.radius.md),bottom:16,filter:o.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:R.jsx(Ae,{variation:"sm",component:"p",weight:"bold",children:e})})]})},exports.Html=co,exports.Icon=Q,exports.IconButton=({icon:e,loading:t,tooltipMessage:o,sizing:r,slotProps:n,...i})=>{const a=()=>R.jsx(vo,{...i,sizing:r,children:t?R.jsx(tt,{sizing:r}):e});return o?R.jsx(Co,{message:o,...n?.tooltip,children:a()}):a()},exports.IconButtonGroup=({ButtonGroupProps:e,children:t,...o})=>R.jsx(ko,{...o,...e,children:t}),exports.InputLabel=So,exports.InputLabelHelp=bt,exports.Likert=Ro,exports.Link=$o,exports.Loader=()=>R.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:R.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),exports.Logo=e=>R.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:R.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),exports.NavButton=({active:e,label:o,href:r,icon:n,onClick:i,variation:a})=>"sm"===a?R.jsxs(Ao,{onClick:i,children:[R.jsx(Ho,{active:e,children:R.jsx(t.Box,{display:"flex",alignItems:"center",gap:1,children:n&&R.jsx(Q,{name:n,size:24})})}),R.jsx(Vo,{component:"p",variation:"sm",active:e,children:o})]}):R.jsxs(Ho,{onClick:i,fullWidth:!0,active:e,children:[R.jsxs(t.Box,{display:"flex",alignItems:"center",gap:1.5,children:[n&&R.jsx(Q,{name:n,size:24}),R.jsx(Ae,{component:"p",variation:"lg",children:o})]}),r&&R.jsx(Po,{children:R.jsx(Q,{name:"open-in-new",size:20})})]}),exports.Nudge=({children:e,description:o,title:r,variation:n})=>{if("sm"===n){const n=Zo({variant:"popper"});return R.jsx(t.ClickAwayListener,{onClickAway:()=>n.close(),children:R.jsxs(t.Box,{sx:{position:"relative"},children:[R.jsx(t.Box,{...Go(n),children:R.jsx(ir,{notification:!0})}),R.jsx(t.Popper,{...Ko(n),placement:"right-end",transition:!0,children:({TransitionProps:n})=>R.jsx(t.Fade,{...n,timeout:350,children:R.jsx(t.Box,{sx:{pl:1},children:R.jsx(rr,{description:o,title:r,children:e})})})})]})})}return R.jsx(rr,{description:o,title:r,children:e})},exports.NumberField=sr,exports.Pill=({body:e,maxWidth:t,...o})=>R.jsx(ur,{label:e,sx:{...t&&{maxWidth:`${t}px`}},...o}),exports.PlanFeatureTable=({currencySymbol:e,data:o,starterPrice:r,starterRespondentPrice:n,teamPrice:i,teamRespondentPrice:a,plusPrice:s,plusRespondentPrice:l,scalePrice:c,scaleRespondentPrice:u,variation:d="default"})=>{const p=t.useTheme();o||(o=Kn);const m=Object.values(o.headings).map((({heading:t,pricing:o})=>({heading:t,pricing:o.replace("{{currencySymbol}}",e).replace("{{starterPrice}}",r).replace("{{teamPrice}}",i).replace("{{plusPrice}}",s).replace("{{scalePrice}}",c)}))),h=t=>t.replace("{{currencySymbol}}",e).replace("{{starterRespondentPrice}}",n||"").replace("{{teamRespondentPrice}}",a||"").replace("{{plusRespondentPrice}}",l||"").replace("{{scaleRespondentPrice}}",u||""),f=[...Object.values(o.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},starter:h(e.starter),team:h(e.team),plus:h(e.plus),scale:h(e.scale)})))];return R.jsxs(t.Stack,{sx:{backgroundColor:p.custom.palette.surface.default,borderRadius:p.spacing(p.custom.radius.xl),boxShadow:p.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[R.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[R.jsx(t.Box,{sx:{width:160}}),m.map((({heading:e,pricing:o})=>R.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[R.jsx(Ae,{variation:"platform"===d?"lg":"xxl",component:"p",weight:"bold",children:e}),R.jsx(Ae,{variation:"platform"===d?"sm":"md",component:"p",sx:{color:p.custom.palette.text.secondary},children:o})]},e)))]}),f.map((e=>R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:p.custom.palette.surface.sunken}},children:[R.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:R.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&R.jsx(Co,{message:e.name.description,children:R.jsx(t.Box,{sx:{alignItems:"center",color:p.custom.palette.icon.secondary,display:"flex"},children:R.jsx(Q,{name:"info",size:24})})}),R.jsx(Ae,{variation:"platform"===d?"md":"lg",component:"p",children:e.name.heading})]})}),R.jsx(Un,{text:e.starter}),R.jsx(Un,{text:e.team}),R.jsx(Un,{text:e.plus}),R.jsx(Un,{text:e.scale})]},e.key)))]})},exports.PlanTierCard=({amount:o,billingType:r,body:n,ctaEvent:i=()=>{},ctaLink:a="#",ctaTarget:s="_self",ctaText:l,ctaVariation:c="primary",currencySymbol:u,currentPlan:d,features:p=[],freeTrialLength:m,freeTrialText:h,frequency:f,heading:g,label:x,largestHeaderHeight:b=0,perMonth:y,setLargestHeaderHeight:v=()=>{},variation:C="default"})=>{const w=t.useTheme(),j=lo(),{width:k}=Yn(),S=e.useRef(null),[M,I]=e.useState("sm");return e.useEffect((()=>{e.startTransition((()=>{I(j),j!==M&&v(0),S.current&&S.current.offsetHeight>b&&v(S.current.offsetHeight)}))}),[j,M,k]),R.jsxs(t.Stack,{sx:{display:"flex",flex:1,position:"relative"},children:[R.jsx(t.Stack,{sx:{alignItems:"center",backgroundColor:w.custom.palette.icon.primary,borderTopLeftRadius:w.spacing(w.custom.radius.lg),borderTopRightRadius:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,color:w.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:x?1:0,display:{sm:x?"flex":"none",md:"flex"}},children:R.jsx(Ae,{variation:"md",component:"p",weight:"bold",sx:{color:w.custom.palette.white},children:x||"&nbsp;"})}),R.jsxs(t.Stack,{sx:{backgroundColor:w.custom.palette.surface.default,borderBottomLeftRadius:w.spacing(w.custom.radius.lg),borderBottomRightRadius:w.spacing(w.custom.radius.lg),borderTopLeftRadius:x?0:w.spacing(w.custom.radius.lg),borderTopRightRadius:x?0:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,display:"flex",flex:1},children:[R.jsxs(t.Stack,{sx:{display:"flex",gap:"sm"===j||"md"===j?1:2,textAlign:"center",minHeight:{sm:"none",md:b},px:2,py:{sm:2,lg:4}},ref:S,children:[R.jsx(Ae,{variation:"sm"===j?"xxl":"platform"===C?"md":"lg",component:"h2",weight:"bold",children:g}),R.jsx(Ae,{variation:"sm"===j?"md":"platform"===C?"md"===j?"sm":"md":"md"===j?"md":"lg",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]}),R.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===C?184:240,xl:"platform"===C?184:226},px:2,py:{sm:2,md:2,lg:"platform"===C?2:6}},children:[R.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[R.jsx(Ae,{variation:"md"===j?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:u}),R.jsx(Ae,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:o}),y&&R.jsx(Ae,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:y})]}),m&&h&&R.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:w.custom.palette.yellow[300],borderRadius:w.custom.radius.round,boxShadow:w.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[R.jsx(Q,{name:"gift",size:24}),R.jsxs(t.Box,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[R.jsx(Ae,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:m}),R.jsx(Ae,{variation:"md",component:"p",sx:{lineHeight:1},children:h})]})]}),r&&R.jsx(Ae,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.placeholder},children:r})]}),R.jsxs(t.Stack,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[R.jsx(t.Box,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:R.jsx($o,{href:a,title:l,target:s,onClick:()=>{g&&i(g)},sx:{"&:hover":{cursor:d?"default":"pointer"}},children:R.jsx(nt,{fullWidth:!0,variation:c,sizing:"lg",disabled:d,children:l})})}),p?.length&&R.jsx(t.Stack,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===C?4:6}},children:p.map(((e,o)=>R.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[R.jsx(Q,{name:"positive",size:24}),R.jsx(Ae,{variation:"md",component:"p",children:e})]},`${g}-feature-${o}`)))})]})]})]})},exports.PlanTierCardScale=({body:e,ctaEvent:o=()=>{},ctaLink:r="",ctaTarget:n="_blank",ctaText:i,currencySymbol:a,heading:s,postText:l,preText:c,amount:u})=>{const d=t.useTheme();return R.jsxs(t.Box,{sx:{backgroundColor:d.custom.palette.purple[0],borderRadius:d.spacing(d.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:d.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[R.jsxs(t.Stack,{sx:{flex:1,gap:2,justifyContent:"center"},children:[R.jsx(Ae,{variation:"md",component:"h2",sx:{fontWeight:500},children:s}),R.jsx(Ae,{variation:"md",component:"p",sx:{color:d.custom.palette.text.secondary},children:e})]}),R.jsxs(t.Stack,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[R.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[R.jsx(Ae,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pr:.5},children:c}),R.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex"},children:[R.jsx(Ae,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:a}),R.jsx(Ae,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:u})]}),R.jsx(Ae,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pl:.1},children:l})]}),R.jsx($o,{href:r,title:i,target:n,onClick:()=>{s&&o(s)},children:R.jsx(nt,{fullWidth:!0,variation:"outlined",sizing:"lg",children:i})})]})]})},exports.Portal=t=>{const[o,r]=e.useState(null),n=o?.contentWindow?.document?.body,i=jr({key:"css",container:o?.contentWindow?.document?.head,prepend:!0});return R.jsx(kr,{ref:r,children:n&&l.createPortal(R.jsx(s.CacheProvider,{value:i,children:t.children}),n)})},exports.PoweredByWatermarkLogo=()=>R.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[R.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),R.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:R.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),R.jsx("defs",{children:R.jsx("clipPath",{id:"clip0_900_1816",children:R.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=tt,exports.Radio=wt,exports.RadioGroup=Sr,exports.Rank=rn,exports.RichTextField=an,exports.Select=Wr,exports.Slider=hn,exports.SortableList=on,exports.StarRating=gn,exports.Surface=or,exports.Switch=xn,exports.TextArea=yn,exports.TextBarDivider=({typographyProps:e,text:o,sx:n})=>{const i=t.useTheme();return R.jsx(t.Box,{sx:r.mergeSx(n,{width:"100%",position:"relative",display:"flex",gap:4,my:i.spacing(i.custom.margin.md),"&:before":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:R.jsx(Ae,{align:"center",variation:"sm",component:"p",...e,children:o})})},exports.TextField=ut,exports.ThemeProvider=({mode:o="light",screenSize:r="lg",direction:n="ltr",children:i})=>{const a=((o="light",r="lg",n="ltr")=>{const{width:i}=Yn(),[a,s]=e.useState(o),[l,c]=e.useState(r),[u,d]=e.useState(!1),[p,m]=e.useState(Qn(a,l,n)),[h,f]=e.useState(Qn("light"===a?"dark":"light",l,n)),[g,x]=e.useState("");e.useEffect((()=>{e.startTransition((()=>{c(i&&i<F.lg?"sm":"lg")}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{m(Qn(a,l,n)),f(Qn("light"===a?"dark":"light",l,n))}))}),[a,l]);const b=t.useMediaQuery(p.breakpoints.only("sm"),{noSsr:!0}),y=t.useMediaQuery(p.breakpoints.only("md"),{noSsr:!0}),v=t.useMediaQuery(p.breakpoints.between("lg","xl"),{noSsr:!0}),C=t.useMediaQuery(p.breakpoints.up("xl"),{noSsr:!0});return e.useEffect((()=>{e.startTransition((()=>{b&&x("sm"),y&&x("md"),v&&x("lg"),C&&x("xl")}))}),[b,y,v,C]),{breakpoint:g,darkTheme:h,gridOverlayVisible:u,mode:a,theme:p,toggleGridOverlay:()=>{e.startTransition((()=>{d((e=>!e))}))},toggleMode:t=>{e.startTransition((()=>{if(t)return s(t);s((e=>"light"===e?"dark":"light"))}))}}})(o,r,n);return e.useEffect((()=>{"rtl"===n&&(document.dir="rtl")}),[]),R.jsx(gi.Provider,{value:a,children:R.jsx(s.CacheProvider,{value:"rtl"===n?bi:yi,children:R.jsxs(fi,{theme:a.theme,children:[R.jsx(t.CssBaseline,{}),R.jsx(xi,{}),i]})})})},exports.TickGroup=({heading:e,ticks:o})=>(t.useTheme(),R.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[R.jsx(Ae,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),R.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:o.map(((o,r)=>R.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[R.jsx(Q,{name:"positive",size:32}),R.jsx(Ae,{variation:"xxl",component:"p",children:o})]},`tick-group-${e}-${r}`)))})]})),exports.Toast=({buttons:e,message:o,status:r="neutral",variation:n="sm"})=>{const i=t.useTheme();return R.jsx(t.Stack,{sx:{backgroundColor:i.custom.palette.surface.overlay,borderRadius:i.spacing(i.custom.radius.lg),boxShadow:i.custom.elevation.overlay,color:i.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:R.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===n?"row":"column",gap:2},children:[R.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==r&&R.jsx(vn,{status:r}),R.jsx(t.Box,{sx:{display:"flex"},children:R.jsx(Ae,{variation:"md",component:"p",sx:{px:1,pt:.5},children:o})})]}),e&&R.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=Co,exports.Typography=Ae,exports.UserMenu=({avatar:e,email:o,menuItems:r,name:n,variation:i})=>{const a=Zo({variant:"popper"});return R.jsx(On,{state:a,button:R.jsx(In,{active:a.isOpen,avatar:e,email:o,name:n,variation:i}),children:R.jsx(or,{borderradius:"md",variation:"overlay",sx:{width:192},children:R.jsx(t.Stack,{sx:{p:1},children:r?.map(Rn)})})})},exports.backgroundCreator=ht,exports.chooseArticle=Zn,exports.defaultInputValidation=qn,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.passwordValidation=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}}),exports.useDropdownMenu=()=>{const[t,o]=e.useState(null);return{open:Boolean(t),handleClick:e=>{o(e.currentTarget)},handleClose:()=>{o(null)},anchorEl:t}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useloops/design-system",
3
- "version": "1.4.131",
3
+ "version": "1.4.132",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",