@useloops/design-system 1.4.517 → 1.4.518

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,{forwardRef as n,useState as i,useEffect as o,F
20
20
  object-assign
21
21
  (c) Sindre Sorhus
22
22
  @license MIT
23
- */function vb(){if(rb)return ob;rb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ob=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(i,o){for(var r,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(i),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))t.call(r,c)&&(a[c]=r[c]);if(e){s=e(r);for(var d=0;d<s.length;d++)n.call(r,s[d])&&(a[s[d]]=r[s[d]])}}return a},ob}function Cb(){if(ab)return sb;ab=1;return sb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function yb(){return cb?lb:(cb=1,lb=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var wb=fb();Jj.exports=function(){if(hb)return pb;hb=1;var e=fb(),t=vb(),n=Cb(),i=yb(),o=function(){if(ub)return db;ub=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Cb(),n={},i=yb();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,r,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(i(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](r,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},db=o}(),r=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),pb=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:m(s),arrayOf:function(e){return m((function(t,i,o,r,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[i];if(!Array.isArray(a))return new h("Invalid "+r+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,r,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,i,o){var r=e[t];return a(r)?null:new h("Invalid "+i+" `"+o+"` of type `"+v(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,i,o,r){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(s)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,i,o,r){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+o+" `"+r+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+i+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,i,o){return f(e[t])?null:new h("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,r,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var d in l)if(i(l,d)){var u=e(l,d,r,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,i,o,r){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+o+" `"+r+"` of value `"+String(s)+"` supplied to `"+i+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&r(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."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+t+"."),s}return m((function(t,o,r,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,r,s,a,n);if(null==d)return null;d.data&&i(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,i,o,r,s){var a=t[i],l=v(a);if("object"!==l)return new h("Invalid "+r+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,r,s,c,C(d));var u=d(a,c,o,r,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(o,r,s,a,l){var c=o[r],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[r],e);for(var p in u){var m=e[p];if(i(e,p)&&"function"!=typeof m)return g(s,a,l,p,C(m));if(!m)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=m(c,p,s,a,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function o(o,s,a,c,u,p,m){if(c=c||d,p=p||a,m!==n){if(l){var x=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 x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&i<3&&(r("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,i++)}}return null==s[a]?o?null===s[a]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,p)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function x(e){return m((function(t,n,i,o,r,s){var a=t[n];return v(a)!==e?new h("Invalid "+o+" `"+r+"` of type `"+C(a)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,i,o){return new h((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function f(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(f);if(null===e||a(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 n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!f(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!f(o[1]))return!1}return!0;default:return!1}}function v(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 C(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},pb}()(wb.isElement,!0)}else Jj.exports=function(){if(xb)return mb;xb=1;var e=Cb();function t(){}function n(){}return n.resetWarningCache=t,mb=function(){function i(t,n,i,o,r,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function o(){return i}i.isRequired=i;var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();var jb=di(Jj.exports);function bb(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bb(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function kb(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bb(e))&&(i&&(i+=" "),i+=t);return i}const Mb=e=>e,zb=(()=>{let e=Mb;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mb}}})(),Sb={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Vb(e,t,n="Mui"){const i=Sb[t];return i?`${n}-${i}`:`${zb.generate(e)}-${t}`}const Fb=e.createContext({});function Tb(e){return Vb("MuiTimeline",e)}function Lb(e){return"alternate-reverse"===e?"positionAlternateReverse":`position${Xt(e)}`}"production"!==process.env.NODE_ENV&&(Fb.displayName="TimelineContext"),function(e,t,n="Mui"){const i={};t.forEach((t=>{i[t]=Vb(e,t,n)}))}("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const Pb=Ke("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[Lb(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Ab=e.forwardRef((function(t,n){const i=Je({props:t,name:"MuiTimeline"}),{position:o="right",className:r,...s}=i,a={...i,position:o},l=(e=>{const{position:t,classes:n}=e;return function(e,t,n){const i={};for(const o in e){const r=e[o];let s="",a=!0;for(let e=0;e<r.length;e+=1){const i=r[e];i&&(s+=(!0===a?"":" ")+t(i),a=!1,n&&n[i]&&(s+=" "+n[i]))}i[o]=s}return i}({root:["root",t&&Lb(t)]},Tb,n)})(a),c=e.useMemo((()=>({position:o})),[o]);return gi.jsx(Fb.Provider,{value:c,children:gi.jsx(Pb,{className:kb(l.root,r),ownerState:a,ref:n,...s})})}));"production"!==process.env.NODE_ENV&&(Ab.propTypes={children:jb.node,classes:jb.object,className:jb.string,position:jb.oneOf(["alternate-reverse","alternate","left","right"]),sx:jb.oneOfType([jb.arrayOf(jb.oneOfType([jb.func,jb.object,jb.bool])),jb.func,jb.object])});const Bb=F(Wt)((({theme:e,completed:t})=>({width:"24px",height:"24px",backgroundColor:e.custom.palette.surface.raised,boxShadow:"none",border:"none",padding:0,margin:"4px 0",...!t&&{border:`2px dashed ${e.custom.palette.icon.disabled}`}}))),Hb=F(M)((({theme:e})=>({display:"flex",flexDirection:"column",padding:`0 0 ${e.spacing(e.custom.padding.md)} ${e.spacing(e.custom.padding.sm)}`}))),Eb=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),Rb=F(zl)((({theme:e})=>({[`&.${X.root}`]:{...Eb(e),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.link},"> .MuiTypography-root":{textAlign:"start"},"&:hover":{"> .MuiTypography-root:first-child":{textDecoration:"underline"},"& .MuiSvgIcon-root":{color:e.custom.palette.icon.linkHover}}}}))),Ib=F(M)((({theme:e})=>({[`&.${je.root}`]:{...Eb(e),"& .MuiTypography-root":{color:"inherit"}}}))),$b=F(Qs)((()=>({color:"inherit",fontWeight:500,fontSize:da.lg}))),Db=F(Qs)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),Ob=({children:e,complete:t,onClick:n})=>t?gi.jsx(Ib,{children:e}):gi.jsx(Rb,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),_b=({complete:e,title:t,description:n,onClick:i})=>gi.jsx(Hb,{children:gi.jsxs(Ob,{complete:e,onClick:i,children:[gi.jsx($b,{component:"p",variation:"lg",children:t}),!e&&gi.jsx(Ys,{name:"arrow-right",size:16}),!e&&n&&gi.jsx(Db,{variation:"lg",component:"p",children:n})]})}),Nb=({item:e,showConnector:t})=>{const{complete:n,title:i,description:o,onClick:r}=e;return gi.jsxs(Ut,{children:[gi.jsxs(qt,{children:[gi.jsx(Bb,{completed:n,children:n?gi.jsx(Ys,{name:"badge-tick-in-circle",size:24}):void 0}),t&&gi.jsx(Gt,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&gi.jsx(Yt,{component:()=>gi.jsx(_b,{complete:n,title:i,description:o,onClick:r})})]})},Wb={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},Zb=({expanded:e,onToggleExpanded:t,items:n})=>{const r=n.find((e=>!e.complete)),s=p((()=>e?n:[r]),[e,n,r]),c=a(null),[d,u]=i(),h=l((()=>{if(!c.current)return;const e=c.current.scrollHeight;u(e)}),[n]);return o((()=>{h()}),[e,h]),o((()=>{const e=new ResizeObserver(h);return c.current&&e.observe(c.current),()=>e.disconnect()}),[h]),gi.jsx(Uw.div,{variants:Wb,initial:"initial",animate:"auto"===d?"initial":["initial","animate"],custom:d,style:{overflow:"hidden"},children:gi.jsx("div",{ref:c,style:{display:"flex"},children:gi.jsxs(Ab,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${Zt.root}`]:{minHeight:0,":before":{flex:0,padding:0}}},children:[s.map(((e,t)=>{const n=t<s.length-1;return e&&e?.title===r?.title?gi.jsx(Nb,{item:e,showConnector:s.length>1?n:!!r?.description},`${e.title}-${e.complete}`):e&&gi.jsx(Nb,{item:e,showConnector:n},e.title)})),!e&&gi.jsx(M,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:gi.jsx(Ul,{endIcon:gi.jsx(Ys,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:t,children:"Show more"})})]})})})},Ub=({completed:e,total:t})=>gi.jsx(Qs,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),qb=({cardTitle:e,cardSubtitle:t,welcomeImageUrl:n,welcomeImageAltDescription:o,items:r=[]})=>{const[s,a]=i(!0),l=Sa(),c=()=>a(!s),d=r.length,u=r.filter((e=>e.complete)).length,p=u/d*100;return gi.jsxs(Mu,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"xl"===l?"row":"column",gap:e=>({sm:e.spacing(e.custom.padding.md),lg:e.spacing(e.custom.margin.lg)}),padding:e=>({sm:e.spacing(e.custom.margin.md),lg:e.spacing(e.custom.margin.lg)})},children:[gi.jsxs(Yj,{children:[gi.jsx(M,{component:"img",src:n,alt:o,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),gi.jsx(Qs,{component:"h1",variation:"md",fontWeight:500,children:e}),gi.jsx(Kj,{component:"p",variation:"lg",children:t})]}),gi.jsxs(Xj,{children:[gi.jsxs(M,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[gi.jsx(Ub,{completed:u,total:d}),s&&gi.jsx(ed,{sizing:"sm",variation:"outlined",icon:gi.jsx(Ge,{}),onClick:c})]}),gi.jsx(Ju,{variation:"determinate",value:p}),gi.jsx(Zb,{expanded:s,onToggleExpanded:c,items:r})]})]})},Gb=(e,t)=>gi.jsxs(M,{display:"flex",gap:.5,children:[gi.jsx(Qs,{variation:"sm",component:"p",weight:"bold",children:e||0}),gi.jsx(Qs,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:Fj(t,e||0)})]}),Yb=({loops:e,tests:t,drafts:n})=>gi.jsxs(M,{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,children:[!!e&&Gb(e,"Loop"),!!t&&Gb(t,"Test"),!!n&&Gb(n,"Draft")]}),Xb=F(A)((({theme:e})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.purple[100]}`,backgroundColor:e.custom.palette.purple[0],padding:`${e.spacing(e.custom.padding.xs)} ${e.spacing(e.custom.padding.sm)}`,"& p":{color:e.custom.palette.purple[1e3]}}))),Kb=({sx:e,body:t})=>gi.jsx(Xb,{"data-id":"pill-container",sx:De(e,{position:"absolute",zIndex:1}),children:gi.jsx(Qs,{variation:"xxs",component:"p",weight:"bold",children:t})}),Qb=({title:e,maxLines:t,sx:n})=>gi.jsx(Qs,{variation:"md",component:"p",weight:"bold",sx:De({overflow:"hidden",display:"-webkit-box",WebkitLineClamp:`${t}`,WebkitBoxOrient:"vertical"},n),children:e}),Jb=F(M,{shouldForwardProp:e=>!["disableRaisedEffect"].includes(e)})((({theme:e,disableRaisedEffect:t})=>({width:"100%",transition:"all 0.3s ease","&:hover":{'*[data-id="image-container"]':{boxShadow:t?"none":e.custom.elevation.raised}}}))),ek=F(Be,{shouldForwardProp:e=>!["disableHoverStyle"].includes(e)})((({theme:e,disableHoverStyle:t=!1})=>({cursor:"pointer",...!0===t&&{"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.palette.background.paper}}}))),tk=F(M)((({theme:e})=>({boxShadow:"none",overflow:"hidden",height:150,position:"relative",borderRadius:e.spacing(e.custom.radius.md),[`> .${je.root}`]:{display:"flex",height:"100%","> span":{display:"flex",width:"100%"}}}))),nk=({title:e,description:t,thumbnail:n})=>{const i=[e,t].filter(Boolean).join(" | ");return gi.jsx(Kd,{src:n,alt:i,title:i,style:{width:"100%",height:"auto",objectFit:"cover"}})},ik=F(He)((({theme:e})=>({paddingTop:e.spacing(e.custom.padding.xs),paddingBottom:e.spacing(e.custom.padding.xs),paddingLeft:0,paddingRight:0,display:"flex",flexDirection:"column",gap:e.spacing(e.custom.margin.xs),'& [data-id="title-container"]':{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"start",gap:e.spacing(e.custom.margin.xs),"& > p":{alignSelf:"center"}}}))),ok=F(M,{shouldForwardProp:e=>!["viewType"].includes(e)})((({theme:e,viewType:t})=>({width:"grid"===t?"100%":108,height:"grid"===t?150:72,backgroundColor:e.custom.palette.purple[0],display:"flex",justifyContent:"center",alignItems:"center",borderRadius:e.spacing(e.custom.radius.md),"& svg":{height:"grid"===t?64:32,width:"grid"===t?64:32}}))),rk=({updatedDate:e,format:t=!1,noWrap:n})=>gi.jsxs(Qs,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?Kt(e).format("DD MMM YYYY"):e]}),sk=({title:e,description:t,loopCount:n,testCount:i,draftCount:o,updatedAt:r,moreActions:s,thumbnail:a,isDemo:l,loading:c,onClick:d})=>c?gi.jsx(Jb,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:gi.jsxs(ek,{component:"div",disableHoverStyle:!0,children:[gi.jsx(tk,{"data-id":"image-container",children:gi.jsx(tp,{})}),gi.jsxs(ik,{children:[gi.jsx(M,{"data-id":"title-container",height:32,children:gi.jsx(tp,{})}),gi.jsx(tp,{height:20}),gi.jsx(tp,{height:16,width:"60%"})]})]})}):gi.jsx(Jb,{children:gi.jsxs(ek,{component:"div",disableHoverStyle:!0,onClick:d,children:[gi.jsxs(tk,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[l&&gi.jsx(Kb,{body:"Demo",sx:{bottom:8,left:8}}),gi.jsx(nk,{thumbnail:a,title:e,description:t})]}),gi.jsxs(ik,{children:[gi.jsxs(M,{"data-id":"title-container",children:[gi.jsx(Qb,{title:e,maxLines:2}),gi.jsx(M,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:s})]}),gi.jsx(Yb,{loops:n,tests:i,drafts:o}),gi.jsx(rk,{updatedDate:r,format:!0})]})]})}),ak=({title:e,description:t,loopCount:n,testCount:i,draftCount:o,updatedAt:r,moreActions:s,thumbnail:a,isDemo:l,loading:c,onClick:d})=>{const u=b();return c?gi.jsx(Jb,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:gi.jsxs(ek,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[gi.jsx(tk,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:gi.jsx(tp,{})}),gi.jsx(ik,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:gi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[gi.jsx(tp,{width:"100%",height:20}),gi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[gi.jsx(tp,{height:20,width:"70%"}),gi.jsx(tp,{height:16,width:200})]})]})})]})}):gi.jsx(Jb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:gi.jsxs(ek,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[gi.jsxs(tk,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[l&&gi.jsx(Kb,{sx:{top:4,right:4},body:"Demo"}),gi.jsx(nk,{thumbnail:a,title:e,description:t})]}),gi.jsx(ik,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:gi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[gi.jsx(Qb,{title:e,maxLines:1}),gi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[gi.jsx(Yb,{loops:n,tests:i,drafts:o}),gi.jsx(rk,{updatedDate:r,format:!0,noWrap:!0})]})]})}),s&&gi.jsx(M,{onClick:e=>e.stopPropagation(),children:s})]})})},lk=e=>"list"===e.viewType?gi.jsx(ak,{...e}):gi.jsx(sk,{...e}),ck=({onClick:e,viewType:t,title:n})=>{const i=b();return"list"===t?gi.jsx(Jb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${i.custom.palette.stroke.light}`},children:gi.jsxs(ek,{component:"div",onClick:e,sx:{display:"flex",gap:i.spacing(i.custom.margin.sm),alignItems:"center",padding:i.spacing(i.custom.padding.xs)},children:[gi.jsx(tk,{sx:{height:72,width:108},"data-id":"image-container",children:gi.jsx(ok,{viewType:t,children:gi.jsx(Ys,{name:"add"})})}),gi.jsx(ik,{sx:{overflow:"hidden",pl:i.spacing(i.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:gi.jsx(A,{gap:i.spacing(i.custom.margin.xs),children:gi.jsx(Qb,{title:n,maxLines:1})})})]})}):gi.jsx(Jb,{sx:{height:"100%"},children:gi.jsxs(ek,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[gi.jsx(tk,{"data-id":"image-container",sx:{width:"100%"},children:gi.jsx(ok,{viewType:t,children:gi.jsx(Ys,{name:"add"})})}),gi.jsx(ik,{children:gi.jsx(Qb,{title:n,maxLines:2})})]})})},dk=F(M)((({theme:e,type:t})=>({backgroundColor:"focus"===t?e.custom.palette.peach[300]:e.custom.palette.surface.sunken,borderRadius:`${e.spacing(e.custom.radius.lg)} ${e.spacing(e.custom.radius.lg)} 0 0`,display:"flex",alignItems:"center",gap:e.spacing(e.custom.margin.xs),padding:`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`}))),uk=({type:e,loading:t})=>{const n=b(),i=(e=>{switch(e){case"single-punch":return{icon:"check",label:"Single punch question"};case"multi-punch":return{icon:"check-double",label:"Multi punch question"};case"slider":return{icon:"linear-scale",label:"Slider question"};case"likert":return{icon:"thumbs-up-down",label:"Likert question"};case"rank":return{icon:"rank",label:"Rank question"};case"open-question":return{icon:"comment",label:"Open question"};case"emoji":return{icon:"emoticon",label:"Emoji question"};case"focus":return{icon:"image-search",label:"Focus step"};default:return{icon:"help",label:"Unknown type"}}})(e);return t?gi.jsx(tp,{width:"100%",height:36,sx:{borderRadius:`${n.spacing(n.custom.radius.lg)} ${n.spacing(n.custom.radius.lg)} 0 0`}}):gi.jsxs(dk,{type:e,children:[gi.jsx(Ys,{name:i.icon,size:16}),gi.jsx(Qs,{variation:"sm",component:"p",sx:{px:n.spacing(n.custom.padding.xs)},children:i.label})]})},pk=F(A)((({theme:e})=>({border:`1px solid ${e.custom.palette.stroke.light}`,borderRadius:e.spacing(e.custom.radius.lg)}))),hk=F(A)((({theme:e})=>({gap:e.spacing(e.custom.padding.sm),padding:e.spacing(e.custom.padding.md)}))),mk=({preQuestionText:e,questionText:t,questionType:n,supportText:i,slotProps:o,loading:r})=>{const s=b();return r?gi.jsxs(pk,{children:[gi.jsx(uk,{loading:!0}),gi.jsxs(A,{gap:1,sx:{padding:s.spacing(s.custom.padding.md)},children:[gi.jsx(tp,{width:"100%",height:22}),gi.jsx(tp,{width:"100%",height:44}),gi.jsx(tp,{width:"100%",height:66})]})]}):gi.jsxs(pk,{children:[gi.jsx(uk,{type:n}),gi.jsxs(hk,{children:[e&&gi.jsx(Qs,{variation:"md",component:"p",color:s.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),gi.jsx(Qs,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:t}),i&&gi.jsx(Yd,{children:i})]})]})};var xk=d((({handleNavigateRegion:e,questionMenuItems:t,questionTitle:n,currentRegionIndex:i=0,loading:o,popperState:r})=>{const s=b(),a=r||hu({variant:"popper"});return o?gi.jsx(tp,{width:"30%",height:32,sx:{borderRadius:s.spacing(s.custom.radius.md)}}):gi.jsxs(M,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:s.custom.padding.md},children:[gi.jsx(M,{sx:{minWidth:0},children:gi.jsx(Au,{width:300,offset:[0,8],placement:"bottom-start",state:a,slotProps:{surface:{sx:{maxHeight:400,overflowY:"auto",paddingRight:0,"& .MuiButton-root":{height:40,borderRadius:0},"& .MuiTypography-root":{px:s.spacing(s.custom.padding.xs)}}}},trigger:gi.jsx(Ul,{sx:{overflow:"hidden",flex:1,">div":{flex:"0 1 auto",textWrap:"nowrap",overflow:"hidden",minWidth:0,textOverflow:"ellipsis",whiteSpace:"nowrap"},">span":{flex:"0 0 auto"},fontVariantNumeric:"tabular-nums"},sizing:"lg",variation:"secondary",endIcon:a.isOpen?gi.jsx(Ys,{name:"chevron-up"}):gi.jsx(Ys,{name:"chevron-down"}),children:n}),menuItems:t})}),gi.jsxs(A,{direction:"row",alignItems:"center",gap:s.spacing(s.custom.margin.md),sx:{flex:"0 0 auto",minWidth:0},children:[gi.jsx(M,{children:gi.jsxs(Qs,{monospaced:!0,component:"p",variation:"xs",color:s.custom.palette.text.secondary,sx:{"& strong":{color:s.custom.palette.text.primary,fontWeight:500}},children:[gi.jsx("strong",{children:gi.jsx(Ot,{value:(i||0)+1})})," ","of ",t?.length||0]})}),gi.jsx(M,{sx:{display:"flex",alignItems:"center"},children:gi.jsxs(A,{direction:"row",spacing:.5,children:[gi.jsx(ed,{icon:gi.jsx(Ys,{name:"arrow-left"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+1===1,onClick:()=>e(-1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:s.custom.palette.purple[0],"&:hover:before":{backgroundColor:s.custom.palette.interaction.hover}}}}),gi.jsx(ed,{icon:gi.jsx(Ys,{name:"arrow-right"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+1===t?.length,onClick:()=>e(1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:s.custom.palette.purple[0],"&:hover:before":{backgroundColor:s.custom.palette.interaction.hover}}}})]})})]})]})}));const gk=F(Yl)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),fk=n((({onChange:e,onClear:t,onFocus:n,placeholder:i,value:o,...r},s)=>{const l=b(),c=a(null),d=()=>{e?.({target:{value:""},currentTarget:{value:""}}),t?.()};m(s,(()=>({...c.current,clear:d})));const u={color:l.custom.palette.icon.primary};return gi.jsx(gk,{inputRef:c,placeholder:i,value:o,onChange:e,onFocus:n,startAdornment:gi.jsx(Ys,{name:"search",size:17,sx:u}),endAdornment:o?gi.jsx(M,{onClick:d,sx:{cursor:"pointer",display:"flex"},children:gi.jsx(Ys,{name:"close",size:17,sx:u})}):void 0,...r})})),vk=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between",padding:1}))),Ck=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1)}))),yk=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary}))),wk=({loading:e,...t})=>gi.jsx(gi.Fragment,{children:e?gi.jsx(bk,{...t}):gi.jsx(jk,{...t})}),jk=({buttons:e,subtitle:t,title:n})=>gi.jsx(gi.Fragment,{children:gi.jsx(vk,{sx:{justifyContent:"space-between"},children:gi.jsx(Z,{children:gi.jsx(U,{container:!0,spacing:2,children:gi.jsx(U,{size:12,children:gi.jsxs(Ck,{sx:{justifyContent:"space-between",py:1},children:[gi.jsx(Ck,{children:gi.jsxs(Ck,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[n&&gi.jsx(Qs,{variation:"sm",component:"h2",weight:"bold",children:n}),t&&gi.jsx(yk,{variation:"sm",component:"p",children:t})]})}),e&&gi.jsx(Ck,{children:e})]})})})})})}),bk=({title:e,subtitle:t,buttons:n})=>gi.jsx(gi.Fragment,{children:gi.jsx(vk,{sx:{justifyContent:"space-between"},children:gi.jsx(Z,{children:gi.jsx(U,{container:!0,spacing:2,children:gi.jsx(U,{size:12,children:gi.jsxs(Ck,{sx:{justifyContent:"space-between",py:1},children:[gi.jsx(Ck,{children:gi.jsxs(Ck,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&gi.jsx(tp,{variant:"text",width:200,height:28}),t&&gi.jsx(tp,{variant:"text",width:140,height:17})]})}),gi.jsx(Ck,{children:n&&gi.jsxs(gi.Fragment,{children:[gi.jsx(tp,{variant:"text",width:72,height:28}),gi.jsx(tp,{variant:"text",width:56,height:28})]})})]})})})})})}),kk=F(Uw.div,{shouldForwardProp:e=>!["active"].includes(e)})((({active:e,theme:t})=>({backgroundColor:e?t.custom.palette.blue[0]:t.custom.palette.surface.default,border:e?`1px solid ${t.custom.palette.blue[500]}`:`1px solid ${t.custom.palette.stroke.default}`,borderRadius:t.spacing(t.custom.radius.md),cursor:"pointer",display:"flex",flex:1,flexDirection:"column",justifyContent:"space-between",padding:t.spacing(t.custom.padding.sm,t.custom.padding.md)}))),Mk=F(Uw.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)}))),zk=({active:e,animated:t,label:n,sentimentScore:i,stat:o,title:r,onClick:s})=>{const a=b();return gi.jsxs(kk,{layout:t,active:e,onClick:s,children:[gi.jsx(Qs,{component:"p",variation:"sm",weight:"bold",children:r}),gi.jsxs(Mk,{layout:t,children:["number"==typeof i?gi.jsxs(gi.Fragment,{children:[gi.jsx(Qs,{monospaced:!0,variation:"md",component:"p",weight:"bold",sx:{lineHeight:"160%"},children:gi.jsx(Ot,{value:i,format:{maximumFractionDigits:1},animated:t})}),gi.jsx(oh,{sentimentScore:i})]}):gi.jsx(Qs,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:gi.jsx(gi.Fragment,{children:"number"==typeof o?gi.jsx(Ot,{value:o,format:{maximumFractionDigits:1},animated:t}):"-"})}),!!n&&gi.jsx(Qs,{component:"p",variation:"xs",color:a.custom.palette.text.secondary,clamp:1,sx:{wordBreak:"break-all"},children:n})]})]})};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".react-truncate-list {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n list-style: none;\n overflow: auto;\n}\n\n.react-truncate-list *,\n.react-truncate-list *::before,\n.react-truncate-list *::after {\n box-sizing: inherit;\n}\n");const Sk=({animated:e=!0,status:t,menuItems:n,title:o,tags:r,stats:s,user:a,slotProps:l,loading:c=!1,...d})=>{const[u,p]=i(!1);return gi.jsx(Mu,{variation:"raised",borderradius:"lg",...d,sx:De({padding:e=>e.spacing(e.custom.padding.md),border:e=>`1px solid ${e.custom.palette.stroke.light}`,width:"100%",cursor:"pointer","&:hover .TestItem__Menu":{opacity:1}},d.sx),children:gi.jsxs(A,{component:"article",gap:2,children:[gi.jsxs(A,{component:"header",gap:1,justifyContent:"space-between",children:[gi.jsxs(A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[c?gi.jsx(tp,{sx:{width:90,height:32}}):gi.jsx(Lh,{status:t,...l?.status}),!c&&Boolean(n?.length)&&gi.jsx(Au,{trigger:gi.jsx(ed,{icon:gi.jsx(Ys,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestItem__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:e=>`${e.custom.palette.interaction.press} !important`,opacity:1}}}),bindOn:["toggle"],menuItems:n,width:128,offset:[0,8],placement:"bottom-end",...l?.menu})]}),c?gi.jsx(tp,{}):gi.jsx(Qs,{component:"h1",weight:"bold",...l?.title,sx:De({fontSize:e=>e.custom.typography.body.xl},l?.title?.sx),children:o})]}),gi.jsx(M,{children:c?gi.jsx(M,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>gi.jsx(tp,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(r?.length)&&gi.jsx(Qt,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...u&&{maxHeight:"none"}},alwaysShowTruncator:u,renderTruncator:({hiddenItemsCount:e})=>e>0?gi.jsx(tu,{body:`+${e}`,weight:"light",onClick:e=>{e.stopPropagation(),p(!0)},...l?.tagsExpand,sx:De({background:e=>e.custom.palette.neutral[50]},l?.tagsExpand?.sx)}):gi.jsx(ed,{sizing:"sm",icon:gi.jsx(Ys,{name:"chevron-up",size:16}),onClick:e=>{e.stopPropagation(),p(!1)},...l?.tagsCollapse,sx:De({color:e=>e.custom.palette.icon.primary},l?.tagsCollapse?.sx)}),children:r.map((e=>gi.jsx(tu,{body:e,weight:"light",...l?.pill,sx:De({background:e=>e.custom.palette.neutral[50]},l?.pill?.sx)},e)))})}),!c&&s?.progress&&gi.jsx(Mu,{variation:"sunken",borderradius:"md",sx:{border:e=>`1px solid ${e.custom.palette.neutral[100]}`,padding:e=>e.spacing(e.custom.padding.md)},children:gi.jsxs(A,{gap:2,children:[gi.jsx(Ju,{variation:"determinate",value:s.progress.percentage}),gi.jsxs(M,{gap:{sm:.5,md:1},justifyContent:"stretch",sx:e=>({display:"grid",[e.breakpoints.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.breakpoints.down("lg")]:{gridTemplateColumns:"auto"},[e.containerQueries.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.containerQueries.down("lg")]:{gridTemplateColumns:"auto"}}),children:[gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Vk,{animated:e,label:"Completed",primaryText:s.progress.completed.toString(),secondaryText:`of ${s.progress.total}`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Vk,{animated:e,label:"Incomplete",primaryText:s.progress.incomplete.toString(),secondaryText:`${s.progress.incompletePercentage}%`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Vk,{animated:e,label:"Duration",primaryText:s.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==t&&gi.jsxs(M,{display:"flex",justifyItems:"center",gap:.3,children:[gi.jsx(Qs,{component:"p",sx:{fontSize:e=>e.custom.typography.body.sm,color:e=>s?.progress?.estimatedTimeToComplete?e.custom.palette.text.secondary:e.custom.palette.text.placeholder,"& > strong":{color:e=>e.custom.palette.text.primary}},children:s.progress.estimatedTimeToComplete?gi.jsxs(gi.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(t)," ",gi.jsx("strong",{children:s.progress.estimatedTimeToComplete})]}):gi.jsx(gi.Fragment,{children:"Not enough data to estimate completion time"})}),s.progress.estimatedTimeToComplete&&gi.jsx(Xs,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:gi.jsx(M,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:gi.jsx(Ys,{name:"info",size:16})})})]})]})}),gi.jsxs(M,{component:"footer",display:"flex",flexDirection:"row",justifyContent:a?"space-between":"end",gap:1,children:[a&&gi.jsx(M,{display:"flex",alignItems:"center",gap:1,children:c?gi.jsxs(gi.Fragment,{children:[gi.jsx(tp,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),gi.jsx(tp,{sx:{width:100}})]}):gi.jsx(gi.Fragment,{children:gi.jsx(Qs,{component:"p",clamp:1,sx:{fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.secondary},children:a.activityDescription})})}),!c&&"draft"!==t&&gi.jsxs(M,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[gi.jsx(Fk,{animated:e,iconName:"data-bar",label:"answers",value:s?.count?.answers??0}),gi.jsx(Fk,{animated:e,iconName:"comment-filled",label:"comments",value:s?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},Vk=({animated:e,label:t,primaryText:n,secondaryText:i})=>{const o=n.match(/\d{1,2}:\d{2}/),r=n.split(":"),s=!isNaN(Number(n)),a=i.includes("%")&&!isNaN(Number(i.replace("%","")));return gi.jsxs(A,{sx:{background:e=>e.custom.palette.surface.default,minWidth:"92px",border:e=>`1px solid ${e.custom.palette.neutral[100]}`,borderRadius:1,padding:e=>`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`,color:e=>e.custom.palette.text.primary,flexShrink:0,height:"100%"},direction:{sm:"row",md:"row",lg:"column"},alignItems:"center",gap:{sm:1,md:1,lg:0},children:[gi.jsx(Qs,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:t}),gi.jsx(Qs,{component:"h3",sx:{fontSize:e=>({sm:e.custom.typography.body.sm,md:e.custom.typography.body.md,lg:e.custom.typography.body.xxl}),fontWeight:500,flexShrink:0},monospaced:!0,children:gi.jsx(gi.Fragment,{children:o||s?gi.jsx(gi.Fragment,{children:o?gi.jsxs(gi.Fragment,{children:[gi.jsx(Ot,{value:Number(r[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",gi.jsx(Ot,{value:Number(r[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):gi.jsx(Ot,{value:Number(n),animated:e})}):gi.jsx(gi.Fragment,{children:n})})}),gi.jsx(Qs,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},monospaced:!0,children:a?gi.jsxs(gi.Fragment,{children:[gi.jsx(Ot,{value:i.replace("%",""),animated:e}),"%"]}):i})]})},Fk=({animated:e,iconName:t,label:n,value:i,slotProps:o})=>gi.jsxs(M,{display:"flex",alignItems:"center",gap:.5,children:[gi.jsx(Ys,{name:t,...o?.icon,sx:De({color:e=>e.custom.palette.icon.secondary},o?.icon?.sx)}),gi.jsxs(Qs,{monospaced:!0,component:"p",sx:e=>({fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.primary,"& > span":{color:e=>e.custom.palette.text.secondary,[e.breakpoints.up("lg")]:{display:"inline"},[e.breakpoints.down("lg")]:{display:"none"},[e.containerQueries.up("lg")]:{display:"inline"},[e.containerQueries.down("lg")]:{display:"none"}}}),children:[gi.jsx(Ot,{value:i,animated:e})," ",gi.jsx("span",{children:n})]})]}),Tk=n((({colorScheme:e="purple",variation:t,title:n,description:i,loading:o,onShowMoreClick:r,menuItems:s,active:a,...l},c)=>{const d=b(),u="raised";return gi.jsxs(Mu,{ref:c,active:a,borderradius:"lg",variation:u,...l,sx:De({display:"flex",flexDirection:"column",gap:d.custom.margin.sm,border:`1px solid ${d.custom.palette.stroke.light}`,padding:d.custom.padding.md,"&:hover":{cursor:"pointer",".TestKPICard__Menu":{opacity:1}},..."dimmed"===t&&{border:`1px solid ${d.custom.palette.stroke.light}`}},l.sx),children:[gi.jsxs(A,{direction:"row",gap:1,children:[gi.jsxs(A,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[gi.jsx(gi.Fragment,{children:o?gi.jsx(tp,{sx:{width:17,height:16}}):gi.jsx(M,{sx:{height:"22px",display:"flex",placeItems:"center"},children:gi.jsx(uh,{colorScheme:e,disabled:t&&"dimmed"===t})})}),o?gi.jsx(tp,{sx:{marginTop:"-1px"}}):gi.jsx(Qs,{component:"p",variation:"md",weight:"bold",sx:{color:"dimmed"===t?d.custom.palette.text.disabled:d.custom.palette.text.primary},children:n})]}),!o&&Boolean(s?.length)&&gi.jsx(Au,{trigger:gi.jsx(ed,{icon:gi.jsx(Ys,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestKPICard__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:`${d.custom.palette.interaction.press} !important`,opacity:1}}}),menuItems:s,width:128,offset:[0,-8],placement:"bottom-end"})]}),o?gi.jsx(M,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>gi.jsx(tp,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):gi.jsx(zc,{clamp:3,component:"p",variation:"sm",sx:{color:"dimmed"===t?d.custom.palette.text.disabled:d.custom.palette.text.secondary},onShowMoreClick:r,slotProps:{showMoreButton:{disabled:"dimmed"===t},gradientBox:{background:a?d.custom.palette.blue[0]:bu(u,d)}},children:i})]})})),Lk=(e,t=1e5)=>Math.round(e*t)/t;var Pk=d((({playing:e,ended:t,seeking:n,buffering:i,handleAction:o})=>gi.jsx(ed,{disabled:i,loading:i,onClick:()=>o(),shape:"round",sizing:"xl",variation:"outlined",icon:gi.jsx(Ys,{name:(()=>{switch(!0){case n&&t:return"replay";case n:return"play";case!e&&t:return"replay";case e:return"pause";default:return"play"}})()})})));const Ak=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%60),o=i<10?"0"+i:i,r=t>0&&n<10?"0"+n:n;return t>0?`${t}:${r}:${o}`:`${r}:${o}`},Bk=(e,t)=>t/e*100,Hk=F(M)((({theme:e})=>({position:"absolute",top:"100%",marginTop:e.spacing((e.breakpoints.down("lg"),e.custom.margin.xs)),left:0,display:"flex",alignItems:"center",width:"100%",height:18}))),Ek=F(M)((({theme:e,width:t,left:n})=>({position:"absolute",background:e.custom.palette.neutralAlpha[2],opacity:1,borderRadius:18,height:18,pointerEvents:"none",top:0,left:`${n}%`,width:`${t}%`,zIndex:0,"&:after":{content:'" "',position:"absolute",width:"100%",height:78,top:38,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.neutralAlpha[1]}}))),Rk=F(M,{shouldForwardProp:e=>"isActive"!==e})((({theme:e,isActive:t})=>({position:"absolute",background:e.custom.palette.purple[500],height:8,width:8,borderRadius:8,...t?{transform:"translateX(-50%) scale(1)"}:{transform:"translateX(-50%) scale(0.5)"},transition:"all 0.2s, background 0.2s"})));var Ik=d((({startTime:e,endTime:t,currentTime:n,markers:i=[],markerIndicator:o=!0,markerIndicatorSize:r=3,markerIndicatorMode:s,marker:a})=>{const l=p((()=>Bk(t-e,n-e)),[n,e,t]),c=p((()=>"time"===s?r:(t-e)*r),[t,e,s,r]),{width:d,left:u}=p((()=>{const i=t-e,o=(n-e)/i;let a;a="time"===s?r/i*100:100*r;const c=a/2,d=100*o,u=100-100*o,p=Math.min(c,d);return{width:p+Math.min(c,u),left:l-p}}),[n,e,t,l,s,r]),h=p((()=>i.map((({timeStamp:i,id:o,meta:r})=>({id:o,timeStamp:i,markerPosition:Bk(t-e,i),isActive:Math.abs(i-n+e)<=c/2+1e-10,meta:r})))),[i,t,e,n,c]),m=a||Rk;return gi.jsxs(Hk,{children:[o&&gi.jsx(Ek,{width:d,left:u}),h.map((({id:e,markerPosition:t,isActive:n,meta:i})=>gi.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...i&&{meta:i}},e)))]})}));var $k=d(F(pe)((({theme:e,type:t,muted:n,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===t?{height:100,color:e.custom.palette.icon.primary,...(n||0===i)&&{opacity:.5},[`.${Ee.valueLabel}`]:{background:e.custom.palette.surface.default,color:e.custom.palette.text.primary,fontSize:e.custom.typography.body.xs,fontWeight:"normal",boxShadow:e.custom.elevation.overlay},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${Ee.rail}`]:{height:4,background:et(e.custom.palette.neutral[400],.5),opacity:1},[`.${Ee.track}`]:{border:0,boxShadow:"none",height:4}}}))));const Dk=F(A)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),Ok=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:i,volumeControlsType:o})=>{const r=gi.jsx(ed,{icon:(()=>{switch(!0){case 0===i||n:return gi.jsx(Xe,{});case i<.5:return gi.jsx(en,{});default:return gi.jsx(Ye,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return gi.jsx(Dk,{children:"mute"===o?r:gi.jsx(Su,{bindOn:["hover"],trigger:r,popperProps:{placement:"top",style:{zIndex:40}},children:gi.jsx($k,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(Bk(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},_k=F(A)({flex:1,position:"relative"}),Nk=F(A)((({theme:e})=>({ml:"auto",alignItems:"center",position:"absolute",width:"100%",overflow:"hidden",right:0,bottom:8,gap:e.spacing(e.custom.margin.xs)}))),Wk=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),Zk=F(M)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),Uk=F(M)((({theme:e,left:t,width:n})=>({background:e.custom.palette.neutral[300],height:4,position:"absolute",left:`${t}%`,pointerEvents:"none",top:"50%",transform:"translateY(-50%)",borderRadius:e.custom.radius.round,width:`${n}%`})));var qk=d((({startTime:e,currentTime:t,endTime:n,playing:o,markerIndicator:r,bufferRanges:s,handleSeeking:a,handleSeekEnd:c,handleSeekStart:d,markers:u,marker:p,markerIndicatorMode:h,markerIndicatorSize:m,volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C,volumeControls:y})=>{const[w,j]=i(o),b=l(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),k=l(((e,t)=>{e.stopPropagation(),c?.(w),w&&j(!1)}),[w,c]),M=l((e=>{e.stopPropagation(),o&&j(o),d?.(o)}),[o,d]),z=l((()=>{o&&j(o),d?.(o)}),[o,d]),S=l((()=>{c?.(w),w&&j(!1)}),[w,c]);return gi.jsxs(_k,{children:[gi.jsxs(Nk,{direction:"row",children:[gi.jsxs(Wk,{component:"p",variation:"md",children:[Ak(t-e)," / ",Ak(n-e)]}),y&&gi.jsx(Ok,{volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>gi.jsx(Uk,{left:e,width:t},n))),gi.jsxs(Zk,{children:[gi.jsx($k,{step:.05,value:t,max:n,min:e,onChangeCommitted:k,onMouseDown:M,onChange:b,onTouchStart:z,onTouchEnd:S}),u&&u?.length>0&&gi.jsx(Ik,{markerIndicatorMode:h,markerIndicatorSize:m,markerIndicator:r,markers:u,marker:p,startTime:e,currentTime:t,endTime:n})]})]})}));const Gk=F(Mu)((({theme:e})=>({display:"flex",flex:1,padding:e.spacing(e.custom.padding.md),borderColor:e.custom.palette.stroke.light,borderWidth:1,gap:e.spacing(e.custom.padding.sm),borderStyle:"solid",flexDirection:"column"}))),Yk=F(A)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),Xk=n((({id:e,videoElement:t,initialEndTime:n=0,initialCurrentTime:r=0,initialMuted:s,initialVolume:a,markers:c,options:d,slots:u,events:{onEnd:p,onPlay:h,onSeekEnd:x,onSeeking:g,onSeekStart:f,onTimeUpdate:v,onPause:C,onVolumeChange:y,onVolumeMute:w,onRestart:j,onFirstPlay:b,onFirstEnded:k,onReset:M}={},videoSeekTime:z},S)=>{const[V,F]=i(!1),[T,L]=i([]),P={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...d},[{seeking:A,endTime:B,currentTime:H,playing:E,buffering:R,loaded:I,ended:$,volume:D,muted:O,startTime:_,firstPlay:N,firstEnded:W},Z]=i({startTime:Lk(P.normaliseTime?r:0),endTime:Lk(P.normaliseTime?n:t.duration),currentTime:Lk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1,volume:a||1,muted:s||!1,buffering:!1});o((()=>{if(t.muted=O,t.volume=D,P.normaliseTime&&(void 0===n||void 0===r))throw new Error("Please supply an initial end time and initial currentTime for normalising time in VideoControls.tsx");return()=>{ie()}}),[]),o((()=>{Z((e=>({...e,startTime:Lk(P.normaliseTime?r:0),endTime:Lk(P.normaliseTime?n:t.duration),currentTime:Lk(r??0)}))),t.currentTime=Lk(r??0)}),[r,n]);const U=l((()=>{Z((e=>({...e,playing:!1,ended:!0,...!W&&{firstEnded:!0}}))),p&&p(),!W&&k&&k()}),[W]);o((()=>{if(!t||null==z)return;(async()=>{const e=!t.paused,n=z===B;Z((e=>({...e,playing:!1,currentTime:Lk(z)}))),await new Promise((e=>{const n=()=>{t.removeEventListener("seeked",n),e()};t.addEventListener("seeked",n),setTimeout(e,500)})),Z((e=>({...e,currentTime:Lk(z)}))),await new Promise((e=>setTimeout(e,50))),Z((t=>({...t,playing:e,currentTime:Lk(n?z-.001:z+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[z,t]);const q=l((e=>{Z((t=>({...t,muted:e.target?.muted,volume:"number"==typeof e.target?.volume?e.target?.volume:1}))),O!==e.target?.muted&&w&&w(!O),D!==e.target?.volume&&y&&y(D)}),[O,D]),G=l((()=>{const e=Lk(t.currentTime)>=B&&B!==Lk(t.duration)&&!$,n=Lk(t.currentTime)>=B&&B===Lk(t.duration)&&!$&&!E;(e||n)&&(t.pause(),t.dispatchEvent(new Event("ended"))),Z((e=>({...e,currentTime:Lk(t.currentTime)}))),v&&v(Lk(t.currentTime))}),[B,$,E]),Y=l((()=>{Z((e=>({...e,playing:!1}))),C&&C()}),[H]),X=l((()=>{Z((e=>({...e,playing:!0,ended:!1,buffering:!1,...!N&&{firstPlay:!0}}))),!N&&b&&b(),h&&h()}),[N]),K=l((()=>{Z((e=>({...e,buffering:!0})))}),[]),Q=l((()=>{Z((e=>({...e,buffering:!1})))}),[R]),J=l((()=>{const e=[];for(let n=0;n<t.buffered.length;n++){const i=t.buffered.start(n),o=t.buffered.end(n);if(o>=_&&i<=B){const t=Math.max(i,_),n=Math.min(o,B);e.push({start:t-_,end:n-_,startPercent:(t-_)/(B-_)*100,widthPercent:(n-t)/(B-_)*100})}}L(e)}),[A,B,H,E,R,I,$,D,O,_,T]),ee=l((async e=>{E&&ie(),t.currentTime=_,e&&await ne(),j&&j()}),[E,H,_,B,$]),te=l((async()=>{E&&ie(),t.currentTime=_,Z((e=>({...e,startTime:Lk(P.normaliseTime?r:0),endTime:Lk(P.normaliseTime?n:t.duration),currentTime:Lk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),M&&M()}),[E,H,_,B,$,r,n]),ne=async()=>{await t.play()},ie=()=>{t.pause()},oe=l((e=>{t.currentTime=Lk(e),Z((t=>({...t,currentTime:Lk(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!N||t.firstPlay,bufferProgress:e}))),g&&g(e),!N&&b&&b()}),[R,N]),re=l((async()=>{document.hidden?E&&!t.paused?(F(!0),ie()):F(!1):(V&&!E&&await ne(),F(!1))}),[E,V,ie,ne,t]),se=l((e=>{e&&t.pause(),Z((e=>({...e,seeking:!0}))),f&&f()}),[$]),ae=l((async(e,n,i)=>{n&&(t.currentTime=n),e&&!$&&await t.play(),i&&E&&t.pause(),Z((e=>({...e,...n?{currentTime:n}:{},ended:!i&&e.ended,seeking:!1}))),x&&x(n)}),[E,$,R,A]);return Jt("visibilitychange",re,document),Jt("pause",Y,t),Jt("playing",X,t),Jt("timeupdate",G,t),Jt("ended",U,t),Jt("volumechange",q,t),Jt("waiting",K,t),Jt("canplay",Q,t),Jt("progress",J,t),m(S,(()=>({play:ne,pause:ie,restart:ee,reset:te,seek:(e,t,n)=>ae(t,e,n),videoState:{seeking:A,endTime:B,currentTime:H,playing:E,buffering:R,loaded:I,ended:$,volume:D,firstPlay:N,firstEnded:W,muted:O,startTime:_}}))),gi.jsxs(Gk,{variation:"raised",borderradius:"xl",id:e,children:[gi.jsxs(Yk,{...P?.rtl&&{dir:"rtl"},children:[gi.jsx(Pk,{seeking:A,playing:E,ended:$,buffering:R,handleAction:async()=>{$?await ee(!0):E?ie():await ne()}}),gi.jsx(qk,{handleSeeking:oe,handleSeekEnd:ae,handleSeekStart:se,ended:$,marker:u?.marker,markers:c,markerIndicatorMode:P.markerIndicatorMode,markerIndicatorSize:P.markerIndicatorSize,markerIndicator:P.markerIndicator,startTime:P.normaliseTime?_:0,currentTime:H,endTime:B,playing:E,bufferRanges:T,buffering:R,volume:D,muted:O,volumeControls:P.volumeControls,volumeControlsType:P.volumeControlsType,handleVolumeMute:()=>{t.muted=!O},handleVolumeChange:e=>{t.volume=e,O&&(t.muted=!1)}})]}),u?.bottom]})}));var Kk=d(Xk);const Qk="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Jk=(e,t,n)=>Re({direction:n,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Nn[e],neutralAlpha:"light"===e?Hn:En,purple:Zn[e],red:Un[e],peach:qn[e],yellow:Gn[e],blue:Yn[e],green:Xn[e],icon:ai[e].icon,interaction:ai[e].interaction,stroke:ai[e].stroke,surface:ai[e].surface,text:ai[e].text,input:ai[e].input,skeleton:ai[e].skeleton,data:ai[e].data,body:ai[e].surface.default},margin:ei,padding:ti,radius:ni,elevation:ii,elevationFilter:oi,boxShadow:ri,easing:si,typography:la[t]},palette:{mode:e,primary:{main:Rn[500]}},spacing:Jn,shape:{borderRadius:Jn,hotspot:{default:12,active:24}},breakpoints:{values:Kn},typography:{fontFamily:`"${ci.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:ca(t),styleOverrides:{root:{color:ai[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:e=>`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${e.custom.palette.body};\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: '${ci.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.Domaine.default.weight};\n src: url(${Qk}${ci.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${ci.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.Domaine.bold.weight};\n src: url(${Qk}${ci.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${ci.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.FoundersGrotesk.default.weight};\n src: url(${Qk}${ci.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${ci.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.FoundersGrotesk.bold.weight};\n src: url(${Qk}${ci.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${Kn.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${Kn.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiButton:{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:ci.FoundersGrotesk.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*Jn}px ${e.padding.md*Jn}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 eM="production"===process.env.NODE_ENV,tM="Invariant failed";const nM=u(null),iM=(e="light",t="lg",n="ltr")=>{const{width:r}=bc(),[a,l]=i(e),[c,d]=i(t),[u,h]=i(n),[m,x]=i(!1),[g,f]=i("");o((()=>{u&&document.documentElement.setAttribute("dir",u)}),[u]);o((()=>{s((()=>{d(r&&r<Kn.lg?"sm":"lg")}))}),[r]),o((()=>{s((()=>{h(n)}))}),[n]),o((()=>{s((()=>{l(e)}))}),[e]);const v=p((()=>Jk(a,c,u)),[a,u,c]),C=V(v.breakpoints.only("sm"),{noSsr:!0}),y=V(v.breakpoints.only("md"),{noSsr:!0}),w=V(v.breakpoints.between("lg","xl"),{noSsr:!0}),j=V(v.breakpoints.up("xl"),{noSsr:!0});return o((()=>{s((()=>{C&&f("sm"),y&&f("md"),w&&f("lg"),j&&f("xl")}))}),[C,y,w,j]),{breakpoint:g,gridOverlayVisible:m,mode:a,theme:v,toggleGridOverlay:()=>{s((()=>{x((e=>!e))}))},toggleMode:e=>{s((()=>{if(e)return l(e);l((e=>"light"===e?"dark":"light"))}))}}},oM=()=>{const e=h(nM);return function(e,t){if(!e){if(eM)throw new Error(tM);var n=t,i="".concat(tM,": ").concat(n);throw new Error(i)}}(e,"useTheme must be used within a ThemeProvider"),e};var rM=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.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 sM="undefined"!=typeof document,aM=function(e,t,n){for(var i=0,o=0;i=o,o=zn(),38===i&&12===o&&(t[n]=1),!kn(o);)bn();return Vn(e,Fn)},lM=function(e,t){return fn(function(e,t){var n=-1,i=44;do{switch(kn(i)){case 0:38===i&&12===zn()&&(t[n]=1),e[n]+=aM(Fn-1,t,n);break;case 2:e[n]+=Sn(i);break;case 4:if(44===i){e[++n]=58===zn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mn(i)}}while(i=bn());return e}(vn(e),t))},cM=new WeakMap,dM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||cM.get(n))&&!i){cM.set(e,!0);for(var o=[],r=lM(t,o),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},uM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pM(e,t){switch(Cn(e,t)){case 5103:return un+"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 un+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+pn+e+hn+e+e;case 6828:case 4268:return un+e+hn+e+e;case 6165:return un+e+hn+"flex-"+e+e;case 5187:return un+e+dn(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+hn+"flex-$1$2")+e;case 5443:return un+e+hn+"flex-item-"+dn(e,/flex-|-self/,"")+e;case 4675:return un+e+hn+"flex-line-pack"+dn(e,/align-content|flex-|-self/,"")+e;case 5548:return un+e+hn+dn(e,"shrink","negative")+e;case 5292:return un+e+hn+dn(e,"basis","preferred-size")+e;case 6060:return un+"box-"+dn(e,"-grow","")+un+e+hn+dn(e,"grow","positive")+e;case 4554:return un+dn(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+hn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+un+e+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,un+"$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(wn(e)-1-t>6)switch(yn(e,t+1)){case 109:if(45!==yn(e,t+4))break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+pn+(108==yn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jn(e,"stretch")?pM(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yn(e,t+1))break;case 6444:switch(yn(e,wn(e)-3-(~jn(e,"!important")&&10))){case 107:return dn(e,":",":"+un)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(45===yn(e,14)?"inline-":"")+"box$3$1"+un+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(yn(e,t+11)){case 114:return un+e+hn+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+hn+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+hn+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return un+e+hn+e+e}return e}var hM,mM,xM=sM?void 0:(hM=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},mM=new WeakMap,function(e){if(mM.has(e))return mM.get(e);var t=hM(e);return mM.set(e,t),t}),gM=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case xn:e.return=pM(e.value,e.length);break;case mn:return ln([cn(e,{value:dn(e.value,"@","@"+un)})],i);case rn:if(e.length)return sn(e.props,(function(t){switch(an(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([cn(e,{props:[dn(t,/:(read-\w+)/,":"+pn+"$1")]})],i);case"::placeholder":return ln([cn(e,{props:[dn(t,/:(plac\w+)/,":"+un+"input-$1")]}),cn(e,{props:[dn(t,/:(plac\w+)/,":"+pn+"$1")]}),cn(e,{props:[dn(t,/:(plac\w+)/,hn+"input-$1")]})],i)}return""}))}}],fM=function(e){var t=e.key;if(sM&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,r=e.stylisPlugins||gM,s={},a=[];sM&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)})));var l=[dM,uM];if(xM){var c=[tn],d=on(l.concat(r,c)),u=xM(r)(t),p=function(e,t){var n,i=t.name;return void 0===u[i]&&(u[i]=(n=e?e+"{"+t.styles+"}":t.styles,ln(gn(n),d))),u[i]};o=function(e,t,n,i){var o=t.name,r=p(e,t);return void 0===g.compat?(i&&(g.inserted[o]=!0),r):i?void(g.inserted[o]=r):r}}else{var h,m=[tn,nn((function(e){h.insert(e)}))],x=on(l.concat(r,m));o=function(e,t,n,i){var o;h=n,o=e?e+"{"+t.styles+"}":t.styles,ln(gn(o),x),i&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new rM({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(a),g};const vM=()=>gi.jsx(Ie,{styles:{"strong, b":{fontWeight:500}}}),CM=fM({key:"muirtl",stylisPlugins:[Tn,Pn]}),yM=fM({key:"mui"}),wM=({mode:e="light",screenSize:t="lg",direction:n="ltr",ignoreCacheProvider:i,children:o})=>{const r=iM(e,t,n),s=()=>gi.jsxs(tt,{theme:r.theme,children:[gi.jsx($e,{}),gi.jsx(vM,{}),o]});return gi.jsx(nM.Provider,{value:r,children:i?s():gi.jsx(Ln,{value:"rtl"===n?CM:yM,children:s()})})};export{Np as AIInsight,Wp as AISummary,$p as AIWrittenByLockUp,ol as Accordion,Op as AiContentContainer,il as AnnualController,Jp as AssetItem,eh as AuthContainerSurface,ll as AuthFormHeader,cl as Avatar,dl as AvatarGroup,hl as Badge,kl as BrandBadge,Ll as Breadcrumb,_l as BulletGraphic,Ul as Button,Wl as ButtonBase,ql as Checkbox,Xl as CheckboxGroup,th as ClipboardCopyingOverlay,Kl as ColorBackgroundContainer,lh as CommentCard,oc as CreatableAutocomplete,rc as CustomField,ia as DEFAULT_MAX_INPUT_LENGTH,gh as DataPointInfo,Ch as DemographicSelectionSection,gc as Differential,vc as DropdownMenu,wh as EmojiListItem,bh as EmojiQuestionEditorOption,yc as EmojiWrapper,kh as EmptyStateCard,zc as ExpandableTypographyClamp,Hh as ExtendedTestStatus,Ih as FilterCount,Oh as FilterGroupAccordion,qw as FilterPyramidGraph,Qw as FilterRow,Dh as FilteredItemsCard,Vc as Flag,li as FontWeight,Ja as FormControlLabel,_d as FormGenerator,nj as GraphBar,Gd as GridOverlay,ij as Header,Fc as Html,Yd as HtmlParser,Ys as Icon,ed as IconButton,Kc as IconButtonBase,nd as IconButtonGroup,Kd as Image,Gl as InputFieldBase,Tc as InputLabel,lc as InputLabelHelp,Vj as KpiDataPopover,uh as KpiIndicator,tu as Label,Ic as Likert,zl as Link,iu as Loader,ou as Logo,Ij as LoopItem,$j as LoopItemEmpty,su as LoopsAiButton,au as Markdown,Au as Menu,Hu as ModalActionsWrapper,Eu as ModalContentWrapper,Ru as ModalLayout,Gj as Navigation,Nu as NavigationButton,Gu as Nudge,rd as NumberField,qb as OnboardingCard,_p as PaginationControl,Xu as Pill,zp as PlanFeatureTable,Rp as PlanTierCard,Su as Popper,Ku as PoweredByWatermarkLogo,Jc as Progress,Ju as ProgressBar,lk as ProjectItem,ck as ProjectItemEmpty,mk as QuestionBlock,uk as QuestionLabel,xk as QuestionSelector,pc as Radio,sd as RadioGroup,Cd as Rank,wd as RichTextField,fk as SearchInput,wk as SectionHeader,Qa as Select,oh as SentimentArrow,tp as Skeleton,Vd as Slider,vd as SortableList,Td as StarRating,Mu as Surface,tl as Switch,zk as Tab,Sk as TestItem,Tk as TestKPICard,np as TextBarDivider,Yl as TextField,Pd as Textarea,nM as ThemeContext,wM as ThemeProvider,Ip as TickGroup,ip as Toast,Xs as Tooltip,up as TrialCard,Qs as Typography,fp as UserMenu,Kk as VideoControls,vp as VideoModal,za as backgroundCreator,Jn as base,On as blue,Yn as blueRamp,ri as boxShadow,Kn as breakpoints,ga as buttonHeightMap,xa as buttonInteraction,ta as chooseArticle,wc as compareArrayMembers,Jk as customTheme,Bn as darkNeutral,En as darkNeutralAlpha,na as defaultInputValidation,si as easing,ii as elevation,oi as elevationFilter,ea as emailValidation,ci as fonts,Wn as generateRamp,ya as getButtonSizing,Ca as getButtonTypography,va as getIconSizing,dh as getKpiIndicatorColor,_n as green,Xn as greenRamp,Yc as iconButtonHelpers,Gs as iconSizeMap,jc as isButton,ch as mapKpiColorSchemeByInteger,ei as margin,An as neutral,Hn as neutralAlpha,Nn as neutralRamp,pa as outlined,ti as padding,oa as passwordValidation,$n as peach,qn as peachRamp,ma as primary,Rn as purple,Zn as purpleRamp,ni as radius,In as red,Un as redRamp,ha as secondary,ai as semantic,Qn as space,ua as subtle,Sa as useBreakpoint,Cc as useDropdownMenu,kc as useKeyCombo,Mc as usePrevious,bc as useScreenSize,oM as useTheme,iM as useThemeBuilder,Dn as yellow,Gn as yellowRamp};
23
+ */function vb(){if(rb)return ob;rb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return ob=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(i,o){for(var r,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(i),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))t.call(r,c)&&(a[c]=r[c]);if(e){s=e(r);for(var d=0;d<s.length;d++)n.call(r,s[d])&&(a[s[d]]=r[s[d]])}}return a},ob}function Cb(){if(ab)return sb;ab=1;return sb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function yb(){return cb?lb:(cb=1,lb=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var wb=fb();Jj.exports=function(){if(hb)return pb;hb=1;var e=fb(),t=vb(),n=Cb(),i=yb(),o=function(){if(ub)return db;ub=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Cb(),n={},i=yb();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,r,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(i(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](r,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},db=o}(),r=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),pb=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:m(s),arrayOf:function(e){return m((function(t,i,o,r,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[i];if(!Array.isArray(a))return new h("Invalid "+r+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,r,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,i,o){var r=e[t];return a(r)?null:new h("Invalid "+i+" `"+o+"` of type `"+v(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,i,o,r){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(s)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,i,o,r){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+o+" `"+r+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+i+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,i,o){return f(e[t])?null:new h("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,r,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var d in l)if(i(l,d)){var u=e(l,d,r,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,i,o,r){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+o+" `"+r+"` of value `"+String(s)+"` supplied to `"+i+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&r(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."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+t+"."),s}return m((function(t,o,r,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,r,s,a,n);if(null==d)return null;d.data&&i(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,i,o,r,s){var a=t[i],l=v(a);if("object"!==l)return new h("Invalid "+r+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,r,s,c,C(d));var u=d(a,c,o,r,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(o,r,s,a,l){var c=o[r],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[r],e);for(var p in u){var m=e[p];if(i(e,p)&&"function"!=typeof m)return g(s,a,l,p,C(m));if(!m)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=m(c,p,s,a,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function o(o,s,a,c,u,p,m){if(c=c||d,p=p||a,m!==n){if(l){var x=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 x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&i<3&&(r("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,i++)}}return null==s[a]?o?null===s[a]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,p)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function x(e){return m((function(t,n,i,o,r,s){var a=t[n];return v(a)!==e?new h("Invalid "+o+" `"+r+"` of type `"+C(a)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,i,o){return new h((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function f(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(f);if(null===e||a(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 n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!f(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!f(o[1]))return!1}return!0;default:return!1}}function v(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 C(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},pb}()(wb.isElement,!0)}else Jj.exports=function(){if(xb)return mb;xb=1;var e=Cb();function t(){}function n(){}return n.resetWarningCache=t,mb=function(){function i(t,n,i,o,r,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function o(){return i}i.isRequired=i;var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();var jb=di(Jj.exports);function bb(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bb(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function kb(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bb(e))&&(i&&(i+=" "),i+=t);return i}const Mb=e=>e,zb=(()=>{let e=Mb;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mb}}})(),Sb={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Vb(e,t,n="Mui"){const i=Sb[t];return i?`${n}-${i}`:`${zb.generate(e)}-${t}`}const Fb=e.createContext({});function Tb(e){return Vb("MuiTimeline",e)}function Lb(e){return"alternate-reverse"===e?"positionAlternateReverse":`position${Xt(e)}`}"production"!==process.env.NODE_ENV&&(Fb.displayName="TimelineContext"),function(e,t,n="Mui"){const i={};t.forEach((t=>{i[t]=Vb(e,t,n)}))}("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const Pb=Ke("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[Lb(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Ab=e.forwardRef((function(t,n){const i=Je({props:t,name:"MuiTimeline"}),{position:o="right",className:r,...s}=i,a={...i,position:o},l=(e=>{const{position:t,classes:n}=e;return function(e,t,n){const i={};for(const o in e){const r=e[o];let s="",a=!0;for(let e=0;e<r.length;e+=1){const i=r[e];i&&(s+=(!0===a?"":" ")+t(i),a=!1,n&&n[i]&&(s+=" "+n[i]))}i[o]=s}return i}({root:["root",t&&Lb(t)]},Tb,n)})(a),c=e.useMemo((()=>({position:o})),[o]);return gi.jsx(Fb.Provider,{value:c,children:gi.jsx(Pb,{className:kb(l.root,r),ownerState:a,ref:n,...s})})}));"production"!==process.env.NODE_ENV&&(Ab.propTypes={children:jb.node,classes:jb.object,className:jb.string,position:jb.oneOf(["alternate-reverse","alternate","left","right"]),sx:jb.oneOfType([jb.arrayOf(jb.oneOfType([jb.func,jb.object,jb.bool])),jb.func,jb.object])});const Bb=F(Wt)((({theme:e,completed:t})=>({width:"24px",height:"24px",backgroundColor:e.custom.palette.surface.raised,boxShadow:"none",border:"none",padding:0,margin:"4px 0",...!t&&{border:`2px dashed ${e.custom.palette.icon.disabled}`}}))),Hb=F(M)((({theme:e})=>({display:"flex",flexDirection:"column",padding:`0 0 ${e.spacing(e.custom.padding.md)} ${e.spacing(e.custom.padding.sm)}`}))),Eb=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),Rb=F(zl)((({theme:e})=>({[`&.${X.root}`]:{...Eb(e),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.link},"> .MuiTypography-root":{textAlign:"start"},"&:hover":{"> .MuiTypography-root:first-child":{textDecoration:"underline"},"& .MuiSvgIcon-root":{color:e.custom.palette.icon.linkHover}}}}))),Ib=F(M)((({theme:e})=>({[`&.${je.root}`]:{...Eb(e),"& .MuiTypography-root":{color:"inherit"}}}))),$b=F(Qs)((()=>({color:"inherit",fontWeight:500,fontSize:da.lg}))),Db=F(Qs)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),Ob=({children:e,complete:t,onClick:n})=>t?gi.jsx(Ib,{children:e}):gi.jsx(Rb,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),_b=({complete:e,title:t,description:n,onClick:i})=>gi.jsx(Hb,{children:gi.jsxs(Ob,{complete:e,onClick:i,children:[gi.jsx($b,{component:"p",variation:"lg",children:t}),!e&&gi.jsx(Ys,{name:"arrow-right",size:16}),!e&&n&&gi.jsx(Db,{variation:"lg",component:"p",children:n})]})}),Nb=({item:e,showConnector:t})=>{const{complete:n,title:i,description:o,onClick:r}=e;return gi.jsxs(Ut,{children:[gi.jsxs(qt,{children:[gi.jsx(Bb,{completed:n,children:n?gi.jsx(Ys,{name:"badge-tick-in-circle",size:24}):void 0}),t&&gi.jsx(Gt,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&gi.jsx(Yt,{component:()=>gi.jsx(_b,{complete:n,title:i,description:o,onClick:r})})]})},Wb={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},Zb=({expanded:e,onToggleExpanded:t,items:n})=>{const r=n.find((e=>!e.complete)),s=p((()=>e?n:[r]),[e,n,r]),c=a(null),[d,u]=i(),h=l((()=>{if(!c.current)return;const e=c.current.scrollHeight;u(e)}),[n]);return o((()=>{h()}),[e,h]),o((()=>{const e=new ResizeObserver(h);return c.current&&e.observe(c.current),()=>e.disconnect()}),[h]),gi.jsx(Uw.div,{variants:Wb,initial:"initial",animate:"auto"===d?"initial":["initial","animate"],custom:d,style:{overflow:"hidden"},children:gi.jsx("div",{ref:c,style:{display:"flex"},children:gi.jsxs(Ab,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${Zt.root}`]:{minHeight:0,":before":{flex:0,padding:0}}},children:[s.map(((e,t)=>{const n=t<s.length-1;return e&&e?.title===r?.title?gi.jsx(Nb,{item:e,showConnector:s.length>1?n:!!r?.description},`${e.title}-${e.complete}`):e&&gi.jsx(Nb,{item:e,showConnector:n},e.title)})),!e&&gi.jsx(M,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:gi.jsx(Ul,{endIcon:gi.jsx(Ys,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:t,children:"Show more"})})]})})})},Ub=({completed:e,total:t})=>gi.jsx(Qs,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),qb=({cardTitle:e,cardSubtitle:t,welcomeImageUrl:n,welcomeImageAltDescription:o,items:r=[]})=>{const[s,a]=i(!0),l=Sa(),c=()=>a(!s),d=r.length,u=r.filter((e=>e.complete)).length,p=u/d*100;return gi.jsxs(Mu,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"xl"===l?"row":"column",gap:e=>({sm:e.spacing(e.custom.padding.md),lg:e.spacing(e.custom.margin.lg)}),padding:e=>({sm:e.spacing(e.custom.margin.md),lg:e.spacing(e.custom.margin.lg)})},children:[gi.jsxs(Yj,{children:[gi.jsx(M,{component:"img",src:n,alt:o,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),gi.jsx(Qs,{component:"h1",variation:"md",fontWeight:500,children:e}),gi.jsx(Kj,{component:"p",variation:"lg",children:t})]}),gi.jsxs(Xj,{children:[gi.jsxs(M,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[gi.jsx(Ub,{completed:u,total:d}),s&&gi.jsx(ed,{sizing:"sm",variation:"outlined",icon:gi.jsx(Ge,{}),onClick:c})]}),gi.jsx(Ju,{variation:"determinate",value:p}),gi.jsx(Zb,{expanded:s,onToggleExpanded:c,items:r})]})]})},Gb=(e,t)=>gi.jsxs(M,{display:"flex",gap:.5,children:[gi.jsx(Qs,{variation:"sm",component:"p",weight:"bold",children:e||0}),gi.jsx(Qs,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:Fj(t,e||0)})]}),Yb=({loops:e,tests:t,drafts:n})=>gi.jsxs(M,{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,children:[!!e&&Gb(e,"Loop"),!!t&&Gb(t,"Test"),!!n&&Gb(n,"Draft")]}),Xb=F(A)((({theme:e})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.purple[100]}`,backgroundColor:e.custom.palette.purple[0],padding:`${e.spacing(e.custom.padding.xs)} ${e.spacing(e.custom.padding.sm)}`,"& p":{color:e.custom.palette.purple[1e3]}}))),Kb=({sx:e,body:t})=>gi.jsx(Xb,{"data-id":"pill-container",sx:De(e,{position:"absolute",zIndex:1}),children:gi.jsx(Qs,{variation:"xxs",component:"p",weight:"bold",children:t})}),Qb=({title:e,maxLines:t,sx:n})=>gi.jsx(Qs,{variation:"md",component:"p",weight:"bold",sx:De({overflow:"hidden",display:"-webkit-box",WebkitLineClamp:`${t}`,WebkitBoxOrient:"vertical"},n),children:e}),Jb=F(M,{shouldForwardProp:e=>!["disableRaisedEffect"].includes(e)})((({theme:e,disableRaisedEffect:t})=>({width:"100%",transition:"all 0.3s ease","&:hover":{'*[data-id="image-container"]':{boxShadow:t?"none":e.custom.elevation.raised}}}))),ek=F(Be,{shouldForwardProp:e=>!["disableHoverStyle"].includes(e)})((({theme:e,disableHoverStyle:t=!1})=>({cursor:"pointer",...!0===t&&{"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.palette.background.paper}}}))),tk=F(M)((({theme:e})=>({boxShadow:"none",overflow:"hidden",height:150,position:"relative",borderRadius:e.spacing(e.custom.radius.md),[`> .${je.root}`]:{display:"flex",height:"100%","> span":{display:"flex",width:"100%"}}}))),nk=({title:e,description:t,thumbnail:n})=>{const i=[e,t].filter(Boolean).join(" | ");return gi.jsx(Kd,{src:n,alt:i,title:i,style:{width:"100%",height:"auto",objectFit:"cover"}})},ik=F(He)((({theme:e})=>({paddingTop:e.spacing(e.custom.padding.xs),paddingBottom:e.spacing(e.custom.padding.xs),paddingLeft:0,paddingRight:0,display:"flex",flexDirection:"column",gap:e.spacing(e.custom.margin.xs),'& [data-id="title-container"]':{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"start",gap:e.spacing(e.custom.margin.xs),"& > p":{alignSelf:"center"}}}))),ok=F(M,{shouldForwardProp:e=>!["viewType"].includes(e)})((({theme:e,viewType:t})=>({width:"grid"===t?"100%":108,height:"grid"===t?150:72,backgroundColor:e.custom.palette.purple[0],display:"flex",justifyContent:"center",alignItems:"center",borderRadius:e.spacing(e.custom.radius.md),"& svg":{height:"grid"===t?64:32,width:"grid"===t?64:32}}))),rk=({updatedDate:e,format:t=!1,noWrap:n})=>gi.jsxs(Qs,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?Kt(e).format("DD MMM YYYY"):e]}),sk=({title:e,description:t,loopCount:n,testCount:i,draftCount:o,updatedAt:r,moreActions:s,thumbnail:a,isDemo:l,loading:c,onClick:d})=>c?gi.jsx(Jb,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:gi.jsxs(ek,{component:"div",disableHoverStyle:!0,children:[gi.jsx(tk,{"data-id":"image-container",children:gi.jsx(tp,{})}),gi.jsxs(ik,{children:[gi.jsx(M,{"data-id":"title-container",height:32,children:gi.jsx(tp,{})}),gi.jsx(tp,{height:20}),gi.jsx(tp,{height:16,width:"60%"})]})]})}):gi.jsx(Jb,{children:gi.jsxs(ek,{component:"div",disableHoverStyle:!0,onClick:d,children:[gi.jsxs(tk,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[l&&gi.jsx(Kb,{body:"Demo",sx:{bottom:8,left:8}}),gi.jsx(nk,{thumbnail:a,title:e,description:t})]}),gi.jsxs(ik,{children:[gi.jsxs(M,{"data-id":"title-container",children:[gi.jsx(Qb,{title:e,maxLines:2}),gi.jsx(M,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:s})]}),gi.jsx(Yb,{loops:n,tests:i,drafts:o}),gi.jsx(rk,{updatedDate:r,format:!0})]})]})}),ak=({title:e,description:t,loopCount:n,testCount:i,draftCount:o,updatedAt:r,moreActions:s,thumbnail:a,isDemo:l,loading:c,onClick:d})=>{const u=b();return c?gi.jsx(Jb,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:gi.jsxs(ek,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[gi.jsx(tk,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:gi.jsx(tp,{})}),gi.jsx(ik,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:gi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[gi.jsx(tp,{width:"100%",height:20}),gi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[gi.jsx(tp,{height:20,width:"70%"}),gi.jsx(tp,{height:16,width:200})]})]})})]})}):gi.jsx(Jb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:gi.jsxs(ek,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[gi.jsxs(tk,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[l&&gi.jsx(Kb,{sx:{top:4,right:4},body:"Demo"}),gi.jsx(nk,{thumbnail:a,title:e,description:t})]}),gi.jsx(ik,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:gi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[gi.jsx(Qb,{title:e,maxLines:1}),gi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[gi.jsx(Yb,{loops:n,tests:i,drafts:o}),gi.jsx(rk,{updatedDate:r,format:!0,noWrap:!0})]})]})}),s&&gi.jsx(M,{onClick:e=>e.stopPropagation(),children:s})]})})},lk=e=>"list"===e.viewType?gi.jsx(ak,{...e}):gi.jsx(sk,{...e}),ck=({onClick:e,viewType:t,title:n})=>{const i=b();return"list"===t?gi.jsx(Jb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${i.custom.palette.stroke.light}`},children:gi.jsxs(ek,{component:"div",onClick:e,sx:{display:"flex",gap:i.spacing(i.custom.margin.sm),alignItems:"center",padding:i.spacing(i.custom.padding.xs)},children:[gi.jsx(tk,{sx:{height:72,width:108},"data-id":"image-container",children:gi.jsx(ok,{viewType:t,children:gi.jsx(Ys,{name:"add"})})}),gi.jsx(ik,{sx:{overflow:"hidden",pl:i.spacing(i.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:gi.jsx(A,{gap:i.spacing(i.custom.margin.xs),children:gi.jsx(Qb,{title:n,maxLines:1})})})]})}):gi.jsx(Jb,{sx:{height:"100%"},children:gi.jsxs(ek,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[gi.jsx(tk,{"data-id":"image-container",sx:{width:"100%"},children:gi.jsx(ok,{viewType:t,children:gi.jsx(Ys,{name:"add"})})}),gi.jsx(ik,{children:gi.jsx(Qb,{title:n,maxLines:2})})]})})},dk=F(M)((({theme:e,type:t})=>({backgroundColor:"focus"===t?e.custom.palette.peach[300]:e.custom.palette.surface.sunken,borderRadius:`${e.spacing(e.custom.radius.lg)} ${e.spacing(e.custom.radius.lg)} 0 0`,display:"flex",alignItems:"center",gap:e.spacing(e.custom.margin.xs),padding:`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`}))),uk=({type:e,loading:t})=>{const n=b(),i=(e=>{switch(e){case"single-punch":return{icon:"check",label:"Single punch question"};case"multi-punch":return{icon:"check-double",label:"Multi punch question"};case"slider":return{icon:"linear-scale",label:"Slider question"};case"likert":return{icon:"thumbs-up-down",label:"Likert question"};case"rank":return{icon:"rank",label:"Rank question"};case"open-question":return{icon:"comment",label:"Open question"};case"emoji":return{icon:"emoticon",label:"Emoji question"};case"focus":return{icon:"image-search",label:"Focus step"};default:return{icon:"help",label:"Unknown type"}}})(e);return t?gi.jsx(tp,{width:"100%",height:36,sx:{borderRadius:`${n.spacing(n.custom.radius.lg)} ${n.spacing(n.custom.radius.lg)} 0 0`}}):gi.jsxs(dk,{type:e,children:[gi.jsx(Ys,{name:i.icon,size:16}),gi.jsx(Qs,{variation:"sm",component:"p",sx:{px:n.spacing(n.custom.padding.xs)},children:i.label})]})},pk=F(A)((({theme:e})=>({border:`1px solid ${e.custom.palette.stroke.light}`,borderRadius:e.spacing(e.custom.radius.lg)}))),hk=F(A)((({theme:e})=>({gap:e.spacing(e.custom.padding.sm),padding:e.spacing(e.custom.padding.md)}))),mk=({preQuestionText:e,questionText:t,questionType:n,supportText:i,slotProps:o,loading:r})=>{const s=b();return r?gi.jsxs(pk,{children:[gi.jsx(uk,{loading:!0}),gi.jsxs(A,{gap:1,sx:{padding:s.spacing(s.custom.padding.md)},children:[gi.jsx(tp,{width:"100%",height:22}),gi.jsx(tp,{width:"100%",height:44}),gi.jsx(tp,{width:"100%",height:66})]})]}):gi.jsxs(pk,{children:[gi.jsx(uk,{type:n}),gi.jsxs(hk,{children:[e&&gi.jsx(Qs,{variation:"md",component:"p",color:s.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),gi.jsx(Qs,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:t}),i&&gi.jsx(Yd,{children:i})]})]})};var xk=d((({handleNavigateRegion:e,questionMenuItems:t,questionTitle:n,currentRegionIndex:i=0,loading:o,popperState:r})=>{const s=b(),a=r||hu({variant:"popper"});return o?gi.jsx(tp,{width:"30%",height:32,sx:{borderRadius:s.spacing(s.custom.radius.md)}}):gi.jsxs(M,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:s.custom.padding.md},children:[gi.jsx(M,{sx:{minWidth:0},children:gi.jsx(Au,{width:300,offset:[0,8],placement:"bottom-start",state:a,slotProps:{surface:{sx:{maxHeight:400,overflowY:"auto",paddingRight:0,"& .MuiButton-root":{height:40,borderRadius:0},"& .MuiTypography-root":{px:s.spacing(s.custom.padding.xs)}}}},trigger:gi.jsx(Ul,{sx:{overflow:"hidden",flex:1,">div":{flex:"0 1 auto",textWrap:"nowrap",overflow:"hidden",minWidth:0,textOverflow:"ellipsis",whiteSpace:"nowrap"},">span":{flex:"0 0 auto"},fontVariantNumeric:"tabular-nums"},sizing:"lg",variation:"secondary",endIcon:a.isOpen?gi.jsx(Ys,{name:"chevron-up"}):gi.jsx(Ys,{name:"chevron-down"}),children:n}),menuItems:t})}),gi.jsxs(A,{direction:"row",alignItems:"center",gap:s.spacing(s.custom.margin.md),sx:{flex:"0 0 auto",minWidth:0},children:[gi.jsx(M,{children:gi.jsxs(Qs,{monospaced:!0,component:"p",variation:"xs",color:s.custom.palette.text.secondary,sx:{"& strong":{color:s.custom.palette.text.primary,fontWeight:500}},children:[gi.jsx("strong",{children:gi.jsx(Ot,{value:(i||0)+1})})," ","of ",t?.length||0]})}),gi.jsx(M,{sx:{display:"flex",alignItems:"center"},children:gi.jsxs(A,{direction:"row",spacing:.5,children:[gi.jsx(ed,{icon:gi.jsx(Ys,{name:"arrow-left"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+1===1,onClick:()=>e(-1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:s.custom.palette.purple[0],"&:hover:before":{backgroundColor:s.custom.palette.interaction.hover}}}}),gi.jsx(ed,{icon:gi.jsx(Ys,{name:"arrow-right"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+1===t?.length,onClick:()=>e(1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:s.custom.palette.purple[0],"&:hover:before":{backgroundColor:s.custom.palette.interaction.hover}}}})]})})]})]})}));const gk=F(Yl)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),fk=n((({onChange:e,onClear:t,onFocus:n,placeholder:i,value:o,...r},s)=>{const l=b(),c=a(null),d=()=>{e?.({target:{value:""},currentTarget:{value:""}}),t?.()};m(s,(()=>({...c.current,clear:d})));const u={color:l.custom.palette.icon.primary};return gi.jsx(gk,{inputRef:c,placeholder:i,value:o,onChange:e,onFocus:n,startAdornment:gi.jsx(Ys,{name:"search",size:17,sx:u}),endAdornment:o?gi.jsx(M,{onClick:d,sx:{cursor:"pointer",display:"flex"},children:gi.jsx(Ys,{name:"close",size:17,sx:u})}):void 0,...r})})),vk=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between",padding:1}))),Ck=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1)}))),yk=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary}))),wk=({loading:e,...t})=>gi.jsx(gi.Fragment,{children:e?gi.jsx(bk,{...t}):gi.jsx(jk,{...t})}),jk=({buttons:e,subtitle:t,title:n,maxWidth:i})=>gi.jsx(gi.Fragment,{children:gi.jsx(vk,{sx:{justifyContent:"space-between"},children:gi.jsx(Z,{maxWidth:i,children:gi.jsx(U,{container:!0,spacing:2,children:gi.jsx(U,{size:12,children:gi.jsxs(Ck,{sx:{justifyContent:"space-between",py:1},children:[gi.jsx(Ck,{children:gi.jsxs(Ck,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[n&&gi.jsx(Qs,{variation:"sm",component:"h2",weight:"bold",children:n}),t&&gi.jsx(yk,{variation:"sm",component:"p",children:t})]})}),e&&gi.jsx(Ck,{children:e})]})})})})})}),bk=({title:e,subtitle:t,buttons:n,maxWidth:i})=>gi.jsx(gi.Fragment,{children:gi.jsx(vk,{sx:{justifyContent:"space-between"},children:gi.jsx(Z,{maxWidth:i,children:gi.jsx(U,{container:!0,spacing:2,children:gi.jsx(U,{size:12,children:gi.jsxs(Ck,{sx:{justifyContent:"space-between",py:1},children:[gi.jsx(Ck,{children:gi.jsxs(Ck,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&gi.jsx(tp,{variant:"text",width:200,height:28}),t&&gi.jsx(tp,{variant:"text",width:140,height:17})]})}),gi.jsx(Ck,{children:n&&gi.jsxs(gi.Fragment,{children:[gi.jsx(tp,{variant:"text",width:72,height:28}),gi.jsx(tp,{variant:"text",width:56,height:28})]})})]})})})})})}),kk=F(Uw.div,{shouldForwardProp:e=>!["active"].includes(e)})((({active:e,theme:t})=>({backgroundColor:e?t.custom.palette.blue[0]:t.custom.palette.surface.default,border:e?`1px solid ${t.custom.palette.blue[500]}`:`1px solid ${t.custom.palette.stroke.default}`,borderRadius:t.spacing(t.custom.radius.md),cursor:"pointer",display:"flex",flex:1,flexDirection:"column",justifyContent:"space-between",padding:t.spacing(t.custom.padding.sm,t.custom.padding.md)}))),Mk=F(Uw.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)}))),zk=({active:e,animated:t,label:n,sentimentScore:i,stat:o,title:r,onClick:s})=>{const a=b();return gi.jsxs(kk,{layout:t,active:e,onClick:s,children:[gi.jsx(Qs,{component:"p",variation:"sm",weight:"bold",children:r}),gi.jsxs(Mk,{layout:t,children:["number"==typeof i?gi.jsxs(gi.Fragment,{children:[gi.jsx(Qs,{monospaced:!0,variation:"md",component:"p",weight:"bold",sx:{lineHeight:"160%"},children:gi.jsx(Ot,{value:i,format:{maximumFractionDigits:1},animated:t})}),gi.jsx(oh,{sentimentScore:i})]}):gi.jsx(Qs,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:gi.jsx(gi.Fragment,{children:"number"==typeof o?gi.jsx(Ot,{value:o,format:{maximumFractionDigits:1},animated:t}):"-"})}),!!n&&gi.jsx(Qs,{component:"p",variation:"xs",color:a.custom.palette.text.secondary,clamp:1,sx:{wordBreak:"break-all"},children:n})]})]})};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".react-truncate-list {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n list-style: none;\n overflow: auto;\n}\n\n.react-truncate-list *,\n.react-truncate-list *::before,\n.react-truncate-list *::after {\n box-sizing: inherit;\n}\n");const Sk=({animated:e=!0,status:t,menuItems:n,title:o,tags:r,stats:s,user:a,slotProps:l,loading:c=!1,...d})=>{const[u,p]=i(!1);return gi.jsx(Mu,{variation:"raised",borderradius:"lg",...d,sx:De({padding:e=>e.spacing(e.custom.padding.md),border:e=>`1px solid ${e.custom.palette.stroke.light}`,width:"100%",cursor:"pointer","&:hover .TestItem__Menu":{opacity:1}},d.sx),children:gi.jsxs(A,{component:"article",gap:2,children:[gi.jsxs(A,{component:"header",gap:1,justifyContent:"space-between",children:[gi.jsxs(A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[c?gi.jsx(tp,{sx:{width:90,height:32}}):gi.jsx(Lh,{status:t,...l?.status}),!c&&Boolean(n?.length)&&gi.jsx(Au,{trigger:gi.jsx(ed,{icon:gi.jsx(Ys,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestItem__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:e=>`${e.custom.palette.interaction.press} !important`,opacity:1}}}),bindOn:["toggle"],menuItems:n,width:128,offset:[0,8],placement:"bottom-end",...l?.menu})]}),c?gi.jsx(tp,{}):gi.jsx(Qs,{component:"h1",weight:"bold",...l?.title,sx:De({fontSize:e=>e.custom.typography.body.xl},l?.title?.sx),children:o})]}),gi.jsx(M,{children:c?gi.jsx(M,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>gi.jsx(tp,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(r?.length)&&gi.jsx(Qt,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...u&&{maxHeight:"none"}},alwaysShowTruncator:u,renderTruncator:({hiddenItemsCount:e})=>e>0?gi.jsx(tu,{body:`+${e}`,weight:"light",onClick:e=>{e.stopPropagation(),p(!0)},...l?.tagsExpand,sx:De({background:e=>e.custom.palette.neutral[50]},l?.tagsExpand?.sx)}):gi.jsx(ed,{sizing:"sm",icon:gi.jsx(Ys,{name:"chevron-up",size:16}),onClick:e=>{e.stopPropagation(),p(!1)},...l?.tagsCollapse,sx:De({color:e=>e.custom.palette.icon.primary},l?.tagsCollapse?.sx)}),children:r.map((e=>gi.jsx(tu,{body:e,weight:"light",...l?.pill,sx:De({background:e=>e.custom.palette.neutral[50]},l?.pill?.sx)},e)))})}),!c&&s?.progress&&gi.jsx(Mu,{variation:"sunken",borderradius:"md",sx:{border:e=>`1px solid ${e.custom.palette.neutral[100]}`,padding:e=>e.spacing(e.custom.padding.md)},children:gi.jsxs(A,{gap:2,children:[gi.jsx(Ju,{variation:"determinate",value:s.progress.percentage}),gi.jsxs(M,{gap:{sm:.5,md:1},justifyContent:"stretch",sx:e=>({display:"grid",[e.breakpoints.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.breakpoints.down("lg")]:{gridTemplateColumns:"auto"},[e.containerQueries.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.containerQueries.down("lg")]:{gridTemplateColumns:"auto"}}),children:[gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Vk,{animated:e,label:"Completed",primaryText:s.progress.completed.toString(),secondaryText:`of ${s.progress.total}`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Vk,{animated:e,label:"Incomplete",primaryText:s.progress.incomplete.toString(),secondaryText:`${s.progress.incompletePercentage}%`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Vk,{animated:e,label:"Duration",primaryText:s.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==t&&gi.jsxs(M,{display:"flex",justifyItems:"center",gap:.3,children:[gi.jsx(Qs,{component:"p",sx:{fontSize:e=>e.custom.typography.body.sm,color:e=>s?.progress?.estimatedTimeToComplete?e.custom.palette.text.secondary:e.custom.palette.text.placeholder,"& > strong":{color:e=>e.custom.palette.text.primary}},children:s.progress.estimatedTimeToComplete?gi.jsxs(gi.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(t)," ",gi.jsx("strong",{children:s.progress.estimatedTimeToComplete})]}):gi.jsx(gi.Fragment,{children:"Not enough data to estimate completion time"})}),s.progress.estimatedTimeToComplete&&gi.jsx(Xs,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:gi.jsx(M,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:gi.jsx(Ys,{name:"info",size:16})})})]})]})}),gi.jsxs(M,{component:"footer",display:"flex",flexDirection:"row",justifyContent:a?"space-between":"end",gap:1,children:[a&&gi.jsx(M,{display:"flex",alignItems:"center",gap:1,children:c?gi.jsxs(gi.Fragment,{children:[gi.jsx(tp,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),gi.jsx(tp,{sx:{width:100}})]}):gi.jsx(gi.Fragment,{children:gi.jsx(Qs,{component:"p",clamp:1,sx:{fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.secondary},children:a.activityDescription})})}),!c&&"draft"!==t&&gi.jsxs(M,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[gi.jsx(Fk,{animated:e,iconName:"data-bar",label:"answers",value:s?.count?.answers??0}),gi.jsx(Fk,{animated:e,iconName:"comment-filled",label:"comments",value:s?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},Vk=({animated:e,label:t,primaryText:n,secondaryText:i})=>{const o=n.match(/\d{1,2}:\d{2}/),r=n.split(":"),s=!isNaN(Number(n)),a=i.includes("%")&&!isNaN(Number(i.replace("%","")));return gi.jsxs(A,{sx:{background:e=>e.custom.palette.surface.default,minWidth:"92px",border:e=>`1px solid ${e.custom.palette.neutral[100]}`,borderRadius:1,padding:e=>`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`,color:e=>e.custom.palette.text.primary,flexShrink:0,height:"100%"},direction:{sm:"row",md:"row",lg:"column"},alignItems:"center",gap:{sm:1,md:1,lg:0},children:[gi.jsx(Qs,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:t}),gi.jsx(Qs,{component:"h3",sx:{fontSize:e=>({sm:e.custom.typography.body.sm,md:e.custom.typography.body.md,lg:e.custom.typography.body.xxl}),fontWeight:500,flexShrink:0},monospaced:!0,children:gi.jsx(gi.Fragment,{children:o||s?gi.jsx(gi.Fragment,{children:o?gi.jsxs(gi.Fragment,{children:[gi.jsx(Ot,{value:Number(r[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",gi.jsx(Ot,{value:Number(r[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):gi.jsx(Ot,{value:Number(n),animated:e})}):gi.jsx(gi.Fragment,{children:n})})}),gi.jsx(Qs,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},monospaced:!0,children:a?gi.jsxs(gi.Fragment,{children:[gi.jsx(Ot,{value:i.replace("%",""),animated:e}),"%"]}):i})]})},Fk=({animated:e,iconName:t,label:n,value:i,slotProps:o})=>gi.jsxs(M,{display:"flex",alignItems:"center",gap:.5,children:[gi.jsx(Ys,{name:t,...o?.icon,sx:De({color:e=>e.custom.palette.icon.secondary},o?.icon?.sx)}),gi.jsxs(Qs,{monospaced:!0,component:"p",sx:e=>({fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.primary,"& > span":{color:e=>e.custom.palette.text.secondary,[e.breakpoints.up("lg")]:{display:"inline"},[e.breakpoints.down("lg")]:{display:"none"},[e.containerQueries.up("lg")]:{display:"inline"},[e.containerQueries.down("lg")]:{display:"none"}}}),children:[gi.jsx(Ot,{value:i,animated:e})," ",gi.jsx("span",{children:n})]})]}),Tk=n((({colorScheme:e="purple",variation:t,title:n,description:i,loading:o,onShowMoreClick:r,menuItems:s,active:a,...l},c)=>{const d=b(),u="raised";return gi.jsxs(Mu,{ref:c,active:a,borderradius:"lg",variation:u,...l,sx:De({display:"flex",flexDirection:"column",gap:d.custom.margin.sm,border:`1px solid ${d.custom.palette.stroke.light}`,padding:d.custom.padding.md,"&:hover":{cursor:"pointer",".TestKPICard__Menu":{opacity:1}},..."dimmed"===t&&{border:`1px solid ${d.custom.palette.stroke.light}`}},l.sx),children:[gi.jsxs(A,{direction:"row",gap:1,children:[gi.jsxs(A,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[gi.jsx(gi.Fragment,{children:o?gi.jsx(tp,{sx:{width:17,height:16}}):gi.jsx(M,{sx:{height:"22px",display:"flex",placeItems:"center"},children:gi.jsx(uh,{colorScheme:e,disabled:t&&"dimmed"===t})})}),o?gi.jsx(tp,{sx:{marginTop:"-1px"}}):gi.jsx(Qs,{component:"p",variation:"md",weight:"bold",sx:{color:"dimmed"===t?d.custom.palette.text.disabled:d.custom.palette.text.primary},children:n})]}),!o&&Boolean(s?.length)&&gi.jsx(Au,{trigger:gi.jsx(ed,{icon:gi.jsx(Ys,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestKPICard__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:`${d.custom.palette.interaction.press} !important`,opacity:1}}}),menuItems:s,width:128,offset:[0,-8],placement:"bottom-end"})]}),o?gi.jsx(M,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>gi.jsx(tp,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):gi.jsx(zc,{clamp:3,component:"p",variation:"sm",sx:{color:"dimmed"===t?d.custom.palette.text.disabled:d.custom.palette.text.secondary},onShowMoreClick:r,slotProps:{showMoreButton:{disabled:"dimmed"===t},gradientBox:{background:a?d.custom.palette.blue[0]:bu(u,d)}},children:i})]})})),Lk=(e,t=1e5)=>Math.round(e*t)/t;var Pk=d((({playing:e,ended:t,seeking:n,buffering:i,handleAction:o})=>gi.jsx(ed,{disabled:i,loading:i,onClick:()=>o(),shape:"round",sizing:"xl",variation:"outlined",icon:gi.jsx(Ys,{name:(()=>{switch(!0){case n&&t:return"replay";case n:return"play";case!e&&t:return"replay";case e:return"pause";default:return"play"}})()})})));const Ak=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=Math.floor(e%60),o=i<10?"0"+i:i,r=t>0&&n<10?"0"+n:n;return t>0?`${t}:${r}:${o}`:`${r}:${o}`},Bk=(e,t)=>t/e*100,Hk=F(M)((({theme:e})=>({position:"absolute",top:"100%",marginTop:e.spacing((e.breakpoints.down("lg"),e.custom.margin.xs)),left:0,display:"flex",alignItems:"center",width:"100%",height:18}))),Ek=F(M)((({theme:e,width:t,left:n})=>({position:"absolute",background:e.custom.palette.neutralAlpha[2],opacity:1,borderRadius:18,height:18,pointerEvents:"none",top:0,left:`${n}%`,width:`${t}%`,zIndex:0,"&:after":{content:'" "',position:"absolute",width:"100%",height:78,top:38,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.neutralAlpha[1]}}))),Rk=F(M,{shouldForwardProp:e=>"isActive"!==e})((({theme:e,isActive:t})=>({position:"absolute",background:e.custom.palette.purple[500],height:8,width:8,borderRadius:8,...t?{transform:"translateX(-50%) scale(1)"}:{transform:"translateX(-50%) scale(0.5)"},transition:"all 0.2s, background 0.2s"})));var Ik=d((({startTime:e,endTime:t,currentTime:n,markers:i=[],markerIndicator:o=!0,markerIndicatorSize:r=3,markerIndicatorMode:s,marker:a})=>{const l=p((()=>Bk(t-e,n-e)),[n,e,t]),c=p((()=>"time"===s?r:(t-e)*r),[t,e,s,r]),{width:d,left:u}=p((()=>{const i=t-e,o=(n-e)/i;let a;a="time"===s?r/i*100:100*r;const c=a/2,d=100*o,u=100-100*o,p=Math.min(c,d);return{width:p+Math.min(c,u),left:l-p}}),[n,e,t,l,s,r]),h=p((()=>i.map((({timeStamp:i,id:o,meta:r})=>({id:o,timeStamp:i,markerPosition:Bk(t-e,i),isActive:Math.abs(i-n+e)<=c/2+1e-10,meta:r})))),[i,t,e,n,c]),m=a||Rk;return gi.jsxs(Hk,{children:[o&&gi.jsx(Ek,{width:d,left:u}),h.map((({id:e,markerPosition:t,isActive:n,meta:i})=>gi.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...i&&{meta:i}},e)))]})}));var $k=d(F(pe)((({theme:e,type:t,muted:n,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===t?{height:100,color:e.custom.palette.icon.primary,...(n||0===i)&&{opacity:.5},[`.${Ee.valueLabel}`]:{background:e.custom.palette.surface.default,color:e.custom.palette.text.primary,fontSize:e.custom.typography.body.xs,fontWeight:"normal",boxShadow:e.custom.elevation.overlay},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${Ee.rail}`]:{height:4,background:et(e.custom.palette.neutral[400],.5),opacity:1},[`.${Ee.track}`]:{border:0,boxShadow:"none",height:4}}}))));const Dk=F(A)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),Ok=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:i,volumeControlsType:o})=>{const r=gi.jsx(ed,{icon:(()=>{switch(!0){case 0===i||n:return gi.jsx(Xe,{});case i<.5:return gi.jsx(en,{});default:return gi.jsx(Ye,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return gi.jsx(Dk,{children:"mute"===o?r:gi.jsx(Su,{bindOn:["hover"],trigger:r,popperProps:{placement:"top",style:{zIndex:40}},children:gi.jsx($k,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(Bk(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},_k=F(A)({flex:1,position:"relative"}),Nk=F(A)((({theme:e})=>({ml:"auto",alignItems:"center",position:"absolute",width:"100%",overflow:"hidden",right:0,bottom:8,gap:e.spacing(e.custom.margin.xs)}))),Wk=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),Zk=F(M)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),Uk=F(M)((({theme:e,left:t,width:n})=>({background:e.custom.palette.neutral[300],height:4,position:"absolute",left:`${t}%`,pointerEvents:"none",top:"50%",transform:"translateY(-50%)",borderRadius:e.custom.radius.round,width:`${n}%`})));var qk=d((({startTime:e,currentTime:t,endTime:n,playing:o,markerIndicator:r,bufferRanges:s,handleSeeking:a,handleSeekEnd:c,handleSeekStart:d,markers:u,marker:p,markerIndicatorMode:h,markerIndicatorSize:m,volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C,volumeControls:y})=>{const[w,j]=i(o),b=l(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),k=l(((e,t)=>{e.stopPropagation(),c?.(w),w&&j(!1)}),[w,c]),M=l((e=>{e.stopPropagation(),o&&j(o),d?.(o)}),[o,d]),z=l((()=>{o&&j(o),d?.(o)}),[o,d]),S=l((()=>{c?.(w),w&&j(!1)}),[w,c]);return gi.jsxs(_k,{children:[gi.jsxs(Nk,{direction:"row",children:[gi.jsxs(Wk,{component:"p",variation:"md",children:[Ak(t-e)," / ",Ak(n-e)]}),y&&gi.jsx(Ok,{volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>gi.jsx(Uk,{left:e,width:t},n))),gi.jsxs(Zk,{children:[gi.jsx($k,{step:.05,value:t,max:n,min:e,onChangeCommitted:k,onMouseDown:M,onChange:b,onTouchStart:z,onTouchEnd:S}),u&&u?.length>0&&gi.jsx(Ik,{markerIndicatorMode:h,markerIndicatorSize:m,markerIndicator:r,markers:u,marker:p,startTime:e,currentTime:t,endTime:n})]})]})}));const Gk=F(Mu)((({theme:e})=>({display:"flex",flex:1,padding:e.spacing(e.custom.padding.md),borderColor:e.custom.palette.stroke.light,borderWidth:1,gap:e.spacing(e.custom.padding.sm),borderStyle:"solid",flexDirection:"column"}))),Yk=F(A)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),Xk=n((({id:e,videoElement:t,initialEndTime:n=0,initialCurrentTime:r=0,initialMuted:s,initialVolume:a,markers:c,options:d,slots:u,events:{onEnd:p,onPlay:h,onSeekEnd:x,onSeeking:g,onSeekStart:f,onTimeUpdate:v,onPause:C,onVolumeChange:y,onVolumeMute:w,onRestart:j,onFirstPlay:b,onFirstEnded:k,onReset:M}={},videoSeekTime:z},S)=>{const[V,F]=i(!1),[T,L]=i([]),P={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...d},[{seeking:A,endTime:B,currentTime:H,playing:E,buffering:R,loaded:I,ended:$,volume:D,muted:O,startTime:_,firstPlay:N,firstEnded:W},Z]=i({startTime:Lk(P.normaliseTime?r:0),endTime:Lk(P.normaliseTime?n:t.duration),currentTime:Lk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1,volume:a||1,muted:s||!1,buffering:!1});o((()=>{if(t.muted=O,t.volume=D,P.normaliseTime&&(void 0===n||void 0===r))throw new Error("Please supply an initial end time and initial currentTime for normalising time in VideoControls.tsx");return()=>{ie()}}),[]),o((()=>{Z((e=>({...e,startTime:Lk(P.normaliseTime?r:0),endTime:Lk(P.normaliseTime?n:t.duration),currentTime:Lk(r??0)}))),t.currentTime=Lk(r??0)}),[r,n]);const U=l((()=>{Z((e=>({...e,playing:!1,ended:!0,...!W&&{firstEnded:!0}}))),p&&p(),!W&&k&&k()}),[W]);o((()=>{if(!t||null==z)return;(async()=>{const e=!t.paused,n=z===B;Z((e=>({...e,playing:!1,currentTime:Lk(z)}))),await new Promise((e=>{const n=()=>{t.removeEventListener("seeked",n),e()};t.addEventListener("seeked",n),setTimeout(e,500)})),Z((e=>({...e,currentTime:Lk(z)}))),await new Promise((e=>setTimeout(e,50))),Z((t=>({...t,playing:e,currentTime:Lk(n?z-.001:z+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[z,t]);const q=l((e=>{Z((t=>({...t,muted:e.target?.muted,volume:"number"==typeof e.target?.volume?e.target?.volume:1}))),O!==e.target?.muted&&w&&w(!O),D!==e.target?.volume&&y&&y(D)}),[O,D]),G=l((()=>{const e=Lk(t.currentTime)>=B&&B!==Lk(t.duration)&&!$,n=Lk(t.currentTime)>=B&&B===Lk(t.duration)&&!$&&!E;(e||n)&&(t.pause(),t.dispatchEvent(new Event("ended"))),Z((e=>({...e,currentTime:Lk(t.currentTime)}))),v&&v(Lk(t.currentTime))}),[B,$,E]),Y=l((()=>{Z((e=>({...e,playing:!1}))),C&&C()}),[H]),X=l((()=>{Z((e=>({...e,playing:!0,ended:!1,buffering:!1,...!N&&{firstPlay:!0}}))),!N&&b&&b(),h&&h()}),[N]),K=l((()=>{Z((e=>({...e,buffering:!0})))}),[]),Q=l((()=>{Z((e=>({...e,buffering:!1})))}),[R]),J=l((()=>{const e=[];for(let n=0;n<t.buffered.length;n++){const i=t.buffered.start(n),o=t.buffered.end(n);if(o>=_&&i<=B){const t=Math.max(i,_),n=Math.min(o,B);e.push({start:t-_,end:n-_,startPercent:(t-_)/(B-_)*100,widthPercent:(n-t)/(B-_)*100})}}L(e)}),[A,B,H,E,R,I,$,D,O,_,T]),ee=l((async e=>{E&&ie(),t.currentTime=_,e&&await ne(),j&&j()}),[E,H,_,B,$]),te=l((async()=>{E&&ie(),t.currentTime=_,Z((e=>({...e,startTime:Lk(P.normaliseTime?r:0),endTime:Lk(P.normaliseTime?n:t.duration),currentTime:Lk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),M&&M()}),[E,H,_,B,$,r,n]),ne=async()=>{await t.play()},ie=()=>{t.pause()},oe=l((e=>{t.currentTime=Lk(e),Z((t=>({...t,currentTime:Lk(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!N||t.firstPlay,bufferProgress:e}))),g&&g(e),!N&&b&&b()}),[R,N]),re=l((async()=>{document.hidden?E&&!t.paused?(F(!0),ie()):F(!1):(V&&!E&&await ne(),F(!1))}),[E,V,ie,ne,t]),se=l((e=>{e&&t.pause(),Z((e=>({...e,seeking:!0}))),f&&f()}),[$]),ae=l((async(e,n,i)=>{n&&(t.currentTime=n),e&&!$&&await t.play(),i&&E&&t.pause(),Z((e=>({...e,...n?{currentTime:n}:{},ended:!i&&e.ended,seeking:!1}))),x&&x(n)}),[E,$,R,A]);return Jt("visibilitychange",re,document),Jt("pause",Y,t),Jt("playing",X,t),Jt("timeupdate",G,t),Jt("ended",U,t),Jt("volumechange",q,t),Jt("waiting",K,t),Jt("canplay",Q,t),Jt("progress",J,t),m(S,(()=>({play:ne,pause:ie,restart:ee,reset:te,seek:(e,t,n)=>ae(t,e,n),videoState:{seeking:A,endTime:B,currentTime:H,playing:E,buffering:R,loaded:I,ended:$,volume:D,firstPlay:N,firstEnded:W,muted:O,startTime:_}}))),gi.jsxs(Gk,{variation:"raised",borderradius:"xl",id:e,children:[gi.jsxs(Yk,{...P?.rtl&&{dir:"rtl"},children:[gi.jsx(Pk,{seeking:A,playing:E,ended:$,buffering:R,handleAction:async()=>{$?await ee(!0):E?ie():await ne()}}),gi.jsx(qk,{handleSeeking:oe,handleSeekEnd:ae,handleSeekStart:se,ended:$,marker:u?.marker,markers:c,markerIndicatorMode:P.markerIndicatorMode,markerIndicatorSize:P.markerIndicatorSize,markerIndicator:P.markerIndicator,startTime:P.normaliseTime?_:0,currentTime:H,endTime:B,playing:E,bufferRanges:T,buffering:R,volume:D,muted:O,volumeControls:P.volumeControls,volumeControlsType:P.volumeControlsType,handleVolumeMute:()=>{t.muted=!O},handleVolumeChange:e=>{t.volume=e,O&&(t.muted=!1)}})]}),u?.bottom]})}));var Kk=d(Xk);const Qk="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Jk=(e,t,n)=>Re({direction:n,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Nn[e],neutralAlpha:"light"===e?Hn:En,purple:Zn[e],red:Un[e],peach:qn[e],yellow:Gn[e],blue:Yn[e],green:Xn[e],icon:ai[e].icon,interaction:ai[e].interaction,stroke:ai[e].stroke,surface:ai[e].surface,text:ai[e].text,input:ai[e].input,skeleton:ai[e].skeleton,data:ai[e].data,body:ai[e].surface.default},margin:ei,padding:ti,radius:ni,elevation:ii,elevationFilter:oi,boxShadow:ri,easing:si,typography:la[t]},palette:{mode:e,primary:{main:Rn[500]}},spacing:Jn,shape:{borderRadius:Jn,hotspot:{default:12,active:24}},breakpoints:{values:Kn},typography:{fontFamily:`"${ci.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:ca(t),styleOverrides:{root:{color:ai[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:e=>`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${e.custom.palette.body};\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: '${ci.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.Domaine.default.weight};\n src: url(${Qk}${ci.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${ci.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.Domaine.bold.weight};\n src: url(${Qk}${ci.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${ci.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.FoundersGrotesk.default.weight};\n src: url(${Qk}${ci.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${ci.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${ci.FoundersGrotesk.bold.weight};\n src: url(${Qk}${ci.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${Kn.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${Kn.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiButton:{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:ci.FoundersGrotesk.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*Jn}px ${e.padding.md*Jn}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 eM="production"===process.env.NODE_ENV,tM="Invariant failed";const nM=u(null),iM=(e="light",t="lg",n="ltr")=>{const{width:r}=bc(),[a,l]=i(e),[c,d]=i(t),[u,h]=i(n),[m,x]=i(!1),[g,f]=i("");o((()=>{u&&document.documentElement.setAttribute("dir",u)}),[u]);o((()=>{s((()=>{d(r&&r<Kn.lg?"sm":"lg")}))}),[r]),o((()=>{s((()=>{h(n)}))}),[n]),o((()=>{s((()=>{l(e)}))}),[e]);const v=p((()=>Jk(a,c,u)),[a,u,c]),C=V(v.breakpoints.only("sm"),{noSsr:!0}),y=V(v.breakpoints.only("md"),{noSsr:!0}),w=V(v.breakpoints.between("lg","xl"),{noSsr:!0}),j=V(v.breakpoints.up("xl"),{noSsr:!0});return o((()=>{s((()=>{C&&f("sm"),y&&f("md"),w&&f("lg"),j&&f("xl")}))}),[C,y,w,j]),{breakpoint:g,gridOverlayVisible:m,mode:a,theme:v,toggleGridOverlay:()=>{s((()=>{x((e=>!e))}))},toggleMode:e=>{s((()=>{if(e)return l(e);l((e=>"light"===e?"dark":"light"))}))}}},oM=()=>{const e=h(nM);return function(e,t){if(!e){if(eM)throw new Error(tM);var n=t,i="".concat(tM,": ").concat(n);throw new Error(i)}}(e,"useTheme must be used within a ThemeProvider"),e};var rM=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.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 sM="undefined"!=typeof document,aM=function(e,t,n){for(var i=0,o=0;i=o,o=zn(),38===i&&12===o&&(t[n]=1),!kn(o);)bn();return Vn(e,Fn)},lM=function(e,t){return fn(function(e,t){var n=-1,i=44;do{switch(kn(i)){case 0:38===i&&12===zn()&&(t[n]=1),e[n]+=aM(Fn-1,t,n);break;case 2:e[n]+=Sn(i);break;case 4:if(44===i){e[++n]=58===zn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mn(i)}}while(i=bn());return e}(vn(e),t))},cM=new WeakMap,dM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||cM.get(n))&&!i){cM.set(e,!0);for(var o=[],r=lM(t,o),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},uM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pM(e,t){switch(Cn(e,t)){case 5103:return un+"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 un+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+pn+e+hn+e+e;case 6828:case 4268:return un+e+hn+e+e;case 6165:return un+e+hn+"flex-"+e+e;case 5187:return un+e+dn(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+hn+"flex-$1$2")+e;case 5443:return un+e+hn+"flex-item-"+dn(e,/flex-|-self/,"")+e;case 4675:return un+e+hn+"flex-line-pack"+dn(e,/align-content|flex-|-self/,"")+e;case 5548:return un+e+hn+dn(e,"shrink","negative")+e;case 5292:return un+e+hn+dn(e,"basis","preferred-size")+e;case 6060:return un+"box-"+dn(e,"-grow","")+un+e+hn+dn(e,"grow","positive")+e;case 4554:return un+dn(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+hn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+un+e+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,un+"$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(wn(e)-1-t>6)switch(yn(e,t+1)){case 109:if(45!==yn(e,t+4))break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+pn+(108==yn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jn(e,"stretch")?pM(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yn(e,t+1))break;case 6444:switch(yn(e,wn(e)-3-(~jn(e,"!important")&&10))){case 107:return dn(e,":",":"+un)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(45===yn(e,14)?"inline-":"")+"box$3$1"+un+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(yn(e,t+11)){case 114:return un+e+hn+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+hn+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+hn+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return un+e+hn+e+e}return e}var hM,mM,xM=sM?void 0:(hM=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},mM=new WeakMap,function(e){if(mM.has(e))return mM.get(e);var t=hM(e);return mM.set(e,t),t}),gM=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case xn:e.return=pM(e.value,e.length);break;case mn:return ln([cn(e,{value:dn(e.value,"@","@"+un)})],i);case rn:if(e.length)return sn(e.props,(function(t){switch(an(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([cn(e,{props:[dn(t,/:(read-\w+)/,":"+pn+"$1")]})],i);case"::placeholder":return ln([cn(e,{props:[dn(t,/:(plac\w+)/,":"+un+"input-$1")]}),cn(e,{props:[dn(t,/:(plac\w+)/,":"+pn+"$1")]}),cn(e,{props:[dn(t,/:(plac\w+)/,hn+"input-$1")]})],i)}return""}))}}],fM=function(e){var t=e.key;if(sM&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,r=e.stylisPlugins||gM,s={},a=[];sM&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)})));var l=[dM,uM];if(xM){var c=[tn],d=on(l.concat(r,c)),u=xM(r)(t),p=function(e,t){var n,i=t.name;return void 0===u[i]&&(u[i]=(n=e?e+"{"+t.styles+"}":t.styles,ln(gn(n),d))),u[i]};o=function(e,t,n,i){var o=t.name,r=p(e,t);return void 0===g.compat?(i&&(g.inserted[o]=!0),r):i?void(g.inserted[o]=r):r}}else{var h,m=[tn,nn((function(e){h.insert(e)}))],x=on(l.concat(r,m));o=function(e,t,n,i){var o;h=n,o=e?e+"{"+t.styles+"}":t.styles,ln(gn(o),x),i&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new rM({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(a),g};const vM=()=>gi.jsx(Ie,{styles:{"strong, b":{fontWeight:500}}}),CM=fM({key:"muirtl",stylisPlugins:[Tn,Pn]}),yM=fM({key:"mui"}),wM=({mode:e="light",screenSize:t="lg",direction:n="ltr",ignoreCacheProvider:i,children:o})=>{const r=iM(e,t,n),s=()=>gi.jsxs(tt,{theme:r.theme,children:[gi.jsx($e,{}),gi.jsx(vM,{}),o]});return gi.jsx(nM.Provider,{value:r,children:i?s():gi.jsx(Ln,{value:"rtl"===n?CM:yM,children:s()})})};export{Np as AIInsight,Wp as AISummary,$p as AIWrittenByLockUp,ol as Accordion,Op as AiContentContainer,il as AnnualController,Jp as AssetItem,eh as AuthContainerSurface,ll as AuthFormHeader,cl as Avatar,dl as AvatarGroup,hl as Badge,kl as BrandBadge,Ll as Breadcrumb,_l as BulletGraphic,Ul as Button,Wl as ButtonBase,ql as Checkbox,Xl as CheckboxGroup,th as ClipboardCopyingOverlay,Kl as ColorBackgroundContainer,lh as CommentCard,oc as CreatableAutocomplete,rc as CustomField,ia as DEFAULT_MAX_INPUT_LENGTH,gh as DataPointInfo,Ch as DemographicSelectionSection,gc as Differential,vc as DropdownMenu,wh as EmojiListItem,bh as EmojiQuestionEditorOption,yc as EmojiWrapper,kh as EmptyStateCard,zc as ExpandableTypographyClamp,Hh as ExtendedTestStatus,Ih as FilterCount,Oh as FilterGroupAccordion,qw as FilterPyramidGraph,Qw as FilterRow,Dh as FilteredItemsCard,Vc as Flag,li as FontWeight,Ja as FormControlLabel,_d as FormGenerator,nj as GraphBar,Gd as GridOverlay,ij as Header,Fc as Html,Yd as HtmlParser,Ys as Icon,ed as IconButton,Kc as IconButtonBase,nd as IconButtonGroup,Kd as Image,Gl as InputFieldBase,Tc as InputLabel,lc as InputLabelHelp,Vj as KpiDataPopover,uh as KpiIndicator,tu as Label,Ic as Likert,zl as Link,iu as Loader,ou as Logo,Ij as LoopItem,$j as LoopItemEmpty,su as LoopsAiButton,au as Markdown,Au as Menu,Hu as ModalActionsWrapper,Eu as ModalContentWrapper,Ru as ModalLayout,Gj as Navigation,Nu as NavigationButton,Gu as Nudge,rd as NumberField,qb as OnboardingCard,_p as PaginationControl,Xu as Pill,zp as PlanFeatureTable,Rp as PlanTierCard,Su as Popper,Ku as PoweredByWatermarkLogo,Jc as Progress,Ju as ProgressBar,lk as ProjectItem,ck as ProjectItemEmpty,mk as QuestionBlock,uk as QuestionLabel,xk as QuestionSelector,pc as Radio,sd as RadioGroup,Cd as Rank,wd as RichTextField,fk as SearchInput,wk as SectionHeader,Qa as Select,oh as SentimentArrow,tp as Skeleton,Vd as Slider,vd as SortableList,Td as StarRating,Mu as Surface,tl as Switch,zk as Tab,Sk as TestItem,Tk as TestKPICard,np as TextBarDivider,Yl as TextField,Pd as Textarea,nM as ThemeContext,wM as ThemeProvider,Ip as TickGroup,ip as Toast,Xs as Tooltip,up as TrialCard,Qs as Typography,fp as UserMenu,Kk as VideoControls,vp as VideoModal,za as backgroundCreator,Jn as base,On as blue,Yn as blueRamp,ri as boxShadow,Kn as breakpoints,ga as buttonHeightMap,xa as buttonInteraction,ta as chooseArticle,wc as compareArrayMembers,Jk as customTheme,Bn as darkNeutral,En as darkNeutralAlpha,na as defaultInputValidation,si as easing,ii as elevation,oi as elevationFilter,ea as emailValidation,ci as fonts,Wn as generateRamp,ya as getButtonSizing,Ca as getButtonTypography,va as getIconSizing,dh as getKpiIndicatorColor,_n as green,Xn as greenRamp,Yc as iconButtonHelpers,Gs as iconSizeMap,jc as isButton,ch as mapKpiColorSchemeByInteger,ei as margin,An as neutral,Hn as neutralAlpha,Nn as neutralRamp,pa as outlined,ti as padding,oa as passwordValidation,$n as peach,qn as peachRamp,ma as primary,Rn as purple,Zn as purpleRamp,ni as radius,In as red,Un as redRamp,ha as secondary,ai as semantic,Qn as space,ua as subtle,Sa as useBreakpoint,Cc as useDropdownMenu,kc as useKeyCombo,Mc as usePrevious,bc as useScreenSize,oM as useTheme,iM as useThemeBuilder,Dn as yellow,Gn as yellowRamp};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { FunctionComponent, PropsWithChildren, ReactElement, Dispatch, SetStateAction, ReactNode, ChangeEvent, FC, MouseEventHandler, ComponentProps } from 'react';
3
3
  import * as _mui_material from '@mui/material';
4
- import { SxProps, Theme, BoxProps, CSSObject, AvatarProps as AvatarProps$1, AvatarGroupProps as AvatarGroupProps$1, LinkProps as LinkProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, TypographyProps as TypographyProps$1, FormControlLabelProps as FormControlLabelProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, PaperProps, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, CircularProgressProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SkeletonProps as SkeletonProps$1, SwitchProps as SwitchProps$1, SvgIconProps, AccordionProps as AccordionProps$1, AccordionSummaryProps, AccordionDetailsProps, Breakpoint, PaletteMode, Direction } from '@mui/material';
4
+ import { SxProps, Theme, BoxProps, CSSObject, AvatarProps as AvatarProps$1, AvatarGroupProps as AvatarGroupProps$1, LinkProps as LinkProps$1, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, ContainerProps, MenuProps as MenuProps$1, MenuItemProps as MenuItemProps$1, TypographyProps as TypographyProps$1, FormControlLabelProps as FormControlLabelProps$1, IconButtonProps as IconButtonProps$1, TooltipProps as TooltipProps$1, ButtonGroupProps, TextFieldProps as TextFieldProps$1, PaperProps, PopperProps as PopperProps$1, ClickAwayListenerProps, FadeProps, CircularProgressProps, LinearProgressProps, SelectProps as SelectProps$1, SelectChangeEvent, SkeletonProps as SkeletonProps$1, SwitchProps as SwitchProps$1, SvgIconProps, AccordionProps as AccordionProps$1, AccordionSummaryProps, AccordionDetailsProps, Breakpoint as Breakpoint$1, PaletteMode, Direction } from '@mui/material';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { PopupState } from 'material-ui-popup-state/hooks';
7
7
  import { Theme as Theme$1, SxProps as SxProps$1 } from '@mui/material/styles';
@@ -14,10 +14,11 @@ import { BoxProps as BoxProps$1 } from '@mui/material/Box';
14
14
  import { IconProps as IconProps$1 } from 'systems/BrandCore/Icon/Icon';
15
15
  import { TooltipProps as TooltipProps$2 } from 'systems/WebCore/Tooltip';
16
16
  import { KpiIndicatorColor as KpiIndicatorColor$1 } from 'systems/Platform/KpiIndicator/utils';
17
+ import * as _mui_system from '@mui/system';
18
+ import { Breakpoint } from '@mui/system';
17
19
  import { ChipProps } from '@mui/material/Chip';
18
20
  import { SubmitHandler } from 'react-hook-form';
19
21
  import * as _emotion_styled from '@emotion/styled';
20
- import * as _mui_system from '@mui/system';
21
22
  import { UniqueIdentifier } from '@dnd-kit/core';
22
23
  import { Mark } from '@mui/material/Slider/useSlider.types';
23
24
  import { LazyLoadImageProps } from 'react-lazy-load-image-component';
@@ -2486,6 +2487,7 @@ interface SectionHeaderProps {
2486
2487
  loading?: boolean;
2487
2488
  subtitle?: string;
2488
2489
  title?: string;
2490
+ maxWidth?: Breakpoint | false;
2489
2491
  }
2490
2492
  declare const SectionHeader: FunctionComponent<SectionHeaderProps>;
2491
2493
 
@@ -2594,8 +2596,8 @@ type VideoControlsProps = {
2594
2596
  };
2595
2597
  declare const _default: react.MemoExoticComponent<react.ForwardRefExoticComponent<VideoControlsProps & react.RefAttributes<any>>>;
2596
2598
 
2597
- type BreakpointOrNull = Breakpoint | null;
2598
- declare const useBreakpoint: () => Breakpoint;
2599
+ type BreakpointOrNull = Breakpoint$1 | null;
2600
+ declare const useBreakpoint: () => Breakpoint$1;
2599
2601
 
2600
2602
  declare function compareArrayMembers(arr1: string[], arr2: string[]): boolean;
2601
2603
 
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  object-assign
21
21
  (c) Sindre Sorhus
22
22
  @license MIT
23
- */function PC(){if(wC)return yC;wC=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return yC=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(a[c]=i[c]);if(e){s=e(i);for(var d=0;d<s.length;d++)n.call(i,s[d])&&(a[s[d]]=i[s[d]])}}return a},yC}function AC(){if(bC)return jC;bC=1;return jC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function EC(){return SC?kC:(SC=1,kC=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var RC=LC();xC.exports=function(){if(VC)return BC;VC=1;var e=LC(),t=PC(),n=AC(),o=EC(),r=function(){if(zC)return MC;zC=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=AC(),n={},o=EC();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(o(r,c)){var d;try{if("function"!=typeof r[c]){var u=Error((a||"React class")+": "+s+" 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 u.name="Invariant Violation",u}d=r[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},MC=r}(),i=function(){};function s(){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){}}),BC=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:m(s),arrayOf:function(e){return m((function(t,o,r,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[o];if(!Array.isArray(a))return new h("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,r,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,o,r){var i=e[t];return a(i)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,o,r,i){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+r+" `"+i+"` of type `"+v(s)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,o,r,i){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+r+" `"+i+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+o+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,o,r){return f(e[t])?null:new h("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,r,i,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=v(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(o(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,o,r,i){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+r+" `"+i+"` of value `"+String(s)+"` supplied to `"+o+"`, 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."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;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 "+y(r)+" at index "+t+"."),s}return m((function(t,r,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,r,i,s,a,n);if(null==d)return null;d.data&&o(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,o,r,i,s){var a=t[o],l=v(a);if("object"!==l)return new h("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(r,i,s,c,C(d));var u=d(a,c,r,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(r,i,s,a,l){var c=r[i],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},r[i],e);for(var p in u){var m=e[p];if(o(e,p)&&"function"!=typeof m)return g(s,a,l,p,C(m));if(!m)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=m(c,p,s,a,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,s,a,c,u,p,m){if(c=c||d,p=p||a,m!==n){if(l){var x=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 x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&o<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,o++)}}return null==s[a]?r?null===s[a]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,p)}var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function x(e){return m((function(t,n,o,r,i,s){var a=t[n];return v(a)!==e?new h("Invalid "+r+" `"+i+"` of type `"+C(a)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,o,r){return new h((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function f(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(f);if(null===e||a(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 n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!f(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!f(r[1]))return!1}return!0;default:return!1}}function v(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 C(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=r,u.resetWarningCache=r.resetWarningCache,u.PropTypes=u,u},BC}()(RC.isElement,!0)}else xC.exports=function(){if(IC)return TC;IC=1;var e=AC();function t(){}function n(){}return n.resetWarningCache=t,TC=function(){function o(t,n,o,r,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var HC=ge(xC.exports);function $C(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=$C(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function DC(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=$C(e))&&(o&&(o+=" "),o+=t);return o}const OC=e=>e,_C=(()=>{let e=OC;return{configure(t){e=t},generate:t=>e(t),reset(){e=OC}}})(),WC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function NC(e,t,n="Mui"){const o=WC[t];return o?`${n}-${o}`:`${_C.generate(e)}-${t}`}const ZC=H.createContext({});function UC(e){return NC("MuiTimeline",e)}function GC(e){return"alternate-reverse"===e?"positionAlternateReverse":`position${V.capitalize(e)}`}"production"!==process.env.NODE_ENV&&(ZC.displayName="TimelineContext"),function(e,t,n="Mui"){const o={};t.forEach((t=>{o[t]=NC(e,t,n)}))}("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const qC=r.styled("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[GC(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),KC=H.forwardRef((function(e,t){const n=r.useThemeProps({props:e,name:"MuiTimeline"}),{position:o="right",className:i,...s}=n,a={...n,position:o},l=(e=>{const{position:t,classes:n}=e;return function(e,t,n){const o={};for(const r in e){const i=e[r];let s="",a=!0;for(let e=0;e<i.length;e+=1){const o=i[e];o&&(s+=(!0===a?"":" ")+t(o),a=!1,n&&n[o]&&(s+=" "+n[o]))}o[r]=s}return o}({root:["root",t&&GC(t)]},UC,n)})(a),c=H.useMemo((()=>({position:o})),[o]);return je.jsx(ZC.Provider,{value:c,children:je.jsx(qC,{className:DC(l.root,i),ownerState:a,ref:t,...s})})}));"production"!==process.env.NODE_ENV&&(KC.propTypes={children:HC.node,classes:HC.object,className:HC.string,position:HC.oneOf(["alternate-reverse","alternate","left","right"]),sx:HC.oneOfType([HC.arrayOf(HC.oneOfType([HC.func,HC.object,HC.bool])),HC.func,HC.object])});const YC=t.styled(B.TimelineDot)((({theme:e,completed:t})=>({width:"24px",height:"24px",backgroundColor:e.custom.palette.surface.raised,boxShadow:"none",border:"none",padding:0,margin:"4px 0",...!t&&{border:`2px dashed ${e.custom.palette.icon.disabled}`}}))),XC=t.styled(t.Box)((({theme:e})=>({display:"flex",flexDirection:"column",padding:`0 0 ${e.spacing(e.custom.padding.md)} ${e.spacing(e.custom.padding.sm)}`}))),QC=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),JC=t.styled(Si)((({theme:e})=>({[`&.${t.linkClasses.root}`]:{...QC(e),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.link},"> .MuiTypography-root":{textAlign:"start"},"&:hover":{"> .MuiTypography-root:first-child":{textDecoration:"underline"},"& .MuiSvgIcon-root":{color:e.custom.palette.icon.linkHover}}}}))),ey=t.styled(t.Box)((({theme:e})=>({[`&.${t.boxClasses.root}`]:{...QC(e),"& .MuiTypography-root":{color:"inherit"}}}))),ty=t.styled(ir)((()=>({color:"inherit",fontWeight:500,fontSize:xr.lg}))),ny=t.styled(ir)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),oy=({children:e,complete:t,onClick:n})=>t?je.jsx(ey,{children:e}):je.jsx(JC,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),ry=({complete:e,title:t,description:n,onClick:o})=>je.jsx(XC,{children:je.jsxs(oy,{complete:e,onClick:o,children:[je.jsx(ty,{component:"p",variation:"lg",children:t}),!e&&je.jsx(nr,{name:"arrow-right",size:16}),!e&&n&&je.jsx(ny,{variation:"lg",component:"p",children:n})]})}),iy=({item:e,showConnector:t})=>{const{complete:n,title:o,description:r,onClick:i}=e;return je.jsxs(B.TimelineItem,{children:[je.jsxs(B.TimelineSeparator,{children:[je.jsx(YC,{completed:n,children:n?je.jsx(nr,{name:"badge-tick-in-circle",size:24}):void 0}),t&&je.jsx(B.TimelineConnector,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&je.jsx(B.TimelineContent,{component:()=>je.jsx(ry,{complete:n,title:o,description:r,onClick:i})})]})},sy={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},ay=({expanded:n,onToggleExpanded:o,items:r})=>{const i=r.find((e=>!e.complete)),s=e.useMemo((()=>n?r:[i]),[n,r,i]),a=e.useRef(null),[l,c]=e.useState(),d=e.useCallback((()=>{if(!a.current)return;const e=a.current.scrollHeight;c(e)}),[r]);return e.useEffect((()=>{d()}),[n,d]),e.useEffect((()=>{const e=new ResizeObserver(d);return a.current&&e.observe(a.current),()=>e.disconnect()}),[d]),je.jsx(xv.div,{variants:sy,initial:"initial",animate:"auto"===l?"initial":["initial","animate"],custom:l,style:{overflow:"hidden"},children:je.jsx("div",{ref:a,style:{display:"flex"},children:je.jsxs(KC,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${B.timelineItemClasses.root}`]:{minHeight:0,":before":{flex:0,padding:0}}},children:[s.map(((e,t)=>{const n=t<s.length-1;return e&&e?.title===i?.title?je.jsx(iy,{item:e,showConnector:s.length>1?n:!!i?.description},`${e.title}-${e.complete}`):e&&je.jsx(iy,{item:e,showConnector:n},e.title)})),!n&&je.jsx(t.Box,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:je.jsx(Ni,{endIcon:je.jsx(nr,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:o,children:"Show more"})})]})})})},ly=({completed:e,total:t})=>je.jsx(ir,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),cy=(e,n)=>je.jsxs(t.Box,{display:"flex",gap:.5,children:[je.jsx(ir,{variation:"sm",component:"p",weight:"bold",children:e||0}),je.jsx(ir,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:Gv(n,e||0)})]}),dy=({loops:e,tests:n,drafts:o})=>je.jsxs(t.Box,{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,children:[!!e&&cy(e,"Loop"),!!n&&cy(n,"Test"),!!o&&cy(o,"Draft")]}),uy=t.styled(t.Stack)((({theme:e})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.purple[100]}`,backgroundColor:e.custom.palette.purple[0],padding:`${e.spacing(e.custom.padding.xs)} ${e.spacing(e.custom.padding.sm)}`,"& p":{color:e.custom.palette.purple[1e3]}}))),py=({sx:e,body:t})=>je.jsx(uy,{"data-id":"pill-container",sx:n.mergeSx(e,{position:"absolute",zIndex:1}),children:je.jsx(ir,{variation:"xxs",component:"p",weight:"bold",children:t})}),hy=({title:e,maxLines:t,sx:o})=>je.jsx(ir,{variation:"md",component:"p",weight:"bold",sx:n.mergeSx({overflow:"hidden",display:"-webkit-box",WebkitLineClamp:`${t}`,WebkitBoxOrient:"vertical"},o),children:e}),my=t.styled(t.Box,{shouldForwardProp:e=>!["disableRaisedEffect"].includes(e)})((({theme:e,disableRaisedEffect:t})=>({width:"100%",transition:"all 0.3s ease","&:hover":{'*[data-id="image-container"]':{boxShadow:t?"none":e.custom.elevation.raised}}}))),xy=t.styled(t.CardActionArea,{shouldForwardProp:e=>!["disableHoverStyle"].includes(e)})((({theme:e,disableHoverStyle:t=!1})=>({cursor:"pointer",...!0===t&&{"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.palette.background.paper}}}))),gy=t.styled(t.Box)((({theme:e})=>({boxShadow:"none",overflow:"hidden",height:150,position:"relative",borderRadius:e.spacing(e.custom.radius.md),[`> .${t.boxClasses.root}`]:{display:"flex",height:"100%","> span":{display:"flex",width:"100%"}}}))),fy=({title:e,description:t,thumbnail:n})=>{const o=[e,t].filter(Boolean).join(" | ");return je.jsx(Za,{src:n,alt:o,title:o,style:{width:"100%",height:"auto",objectFit:"cover"}})},vy=t.styled(t.CardContent)((({theme:e})=>({paddingTop:e.spacing(e.custom.padding.xs),paddingBottom:e.spacing(e.custom.padding.xs),paddingLeft:0,paddingRight:0,display:"flex",flexDirection:"column",gap:e.spacing(e.custom.margin.xs),'& [data-id="title-container"]':{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"start",gap:e.spacing(e.custom.margin.xs),"& > p":{alignSelf:"center"}}}))),Cy=t.styled(t.Box,{shouldForwardProp:e=>!["viewType"].includes(e)})((({theme:e,viewType:t})=>({width:"grid"===t?"100%":108,height:"grid"===t?150:72,backgroundColor:e.custom.palette.purple[0],display:"flex",justifyContent:"center",alignItems:"center",borderRadius:e.spacing(e.custom.radius.md),"& svg":{height:"grid"===t?64:32,width:"grid"===t?64:32}}))),yy=({updatedDate:e,format:t=!1,noWrap:n})=>je.jsxs(ir,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?T(e).format("DD MMM YYYY"):e]}),wy=({title:e,description:n,loopCount:o,testCount:r,draftCount:i,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>d?je.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:je.jsxs(xy,{component:"div",disableHoverStyle:!0,children:[je.jsx(gy,{"data-id":"image-container",children:je.jsx(Nl,{})}),je.jsxs(vy,{children:[je.jsx(t.Box,{"data-id":"title-container",height:32,children:je.jsx(Nl,{})}),je.jsx(Nl,{height:20}),je.jsx(Nl,{height:16,width:"60%"})]})]})}):je.jsx(my,{children:je.jsxs(xy,{component:"div",disableHoverStyle:!0,onClick:u,children:[je.jsxs(gy,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[c&&je.jsx(py,{body:"Demo",sx:{bottom:8,left:8}}),je.jsx(fy,{thumbnail:l,title:e,description:n})]}),je.jsxs(vy,{children:[je.jsxs(t.Box,{"data-id":"title-container",children:[je.jsx(hy,{title:e,maxLines:2}),je.jsx(t.Box,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:a})]}),je.jsx(dy,{loops:o,tests:r,drafts:i}),je.jsx(yy,{updatedDate:s,format:!0})]})]})}),jy=({title:e,description:n,loopCount:o,testCount:r,draftCount:i,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>{const p=t.useTheme();return d?je.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:je.jsxs(xy,{component:"div",onClick:u,sx:{display:"flex",gap:p.spacing(p.custom.margin.sm),alignItems:"center",padding:p.spacing(p.custom.padding.xs)},children:[je.jsx(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:je.jsx(Nl,{})}),je.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:je.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[je.jsx(Nl,{width:"100%",height:20}),je.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[je.jsx(Nl,{height:20,width:"70%"}),je.jsx(Nl,{height:16,width:200})]})]})})]})}):je.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:je.jsxs(xy,{component:"div",onClick:u,sx:{display:"flex",gap:p.spacing(p.custom.margin.sm),alignItems:"center",padding:p.spacing(p.custom.padding.xs)},children:[je.jsxs(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[c&&je.jsx(py,{sx:{top:4,right:4},body:"Demo"}),je.jsx(fy,{thumbnail:l,title:e,description:n})]}),je.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:je.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[je.jsx(hy,{title:e,maxLines:1}),je.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[je.jsx(dy,{loops:o,tests:r,drafts:i}),je.jsx(yy,{updatedDate:s,format:!0,noWrap:!0})]})]})}),a&&je.jsx(t.Box,{onClick:e=>e.stopPropagation(),children:a})]})})},by=t.styled(t.Box)((({theme:e,type:t})=>({backgroundColor:"focus"===t?e.custom.palette.peach[300]:e.custom.palette.surface.sunken,borderRadius:`${e.spacing(e.custom.radius.lg)} ${e.spacing(e.custom.radius.lg)} 0 0`,display:"flex",alignItems:"center",gap:e.spacing(e.custom.margin.xs),padding:`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`}))),ky=({type:e,loading:n})=>{const o=t.useTheme(),r=(e=>{switch(e){case"single-punch":return{icon:"check",label:"Single punch question"};case"multi-punch":return{icon:"check-double",label:"Multi punch question"};case"slider":return{icon:"linear-scale",label:"Slider question"};case"likert":return{icon:"thumbs-up-down",label:"Likert question"};case"rank":return{icon:"rank",label:"Rank question"};case"open-question":return{icon:"comment",label:"Open question"};case"emoji":return{icon:"emoticon",label:"Emoji question"};case"focus":return{icon:"image-search",label:"Focus step"};default:return{icon:"help",label:"Unknown type"}}})(e);return n?je.jsx(Nl,{width:"100%",height:36,sx:{borderRadius:`${o.spacing(o.custom.radius.lg)} ${o.spacing(o.custom.radius.lg)} 0 0`}}):je.jsxs(by,{type:e,children:[je.jsx(nr,{name:r.icon,size:16}),je.jsx(ir,{variation:"sm",component:"p",sx:{px:o.spacing(o.custom.padding.xs)},children:r.label})]})},Sy=t.styled(t.Stack)((({theme:e})=>({border:`1px solid ${e.custom.palette.stroke.light}`,borderRadius:e.spacing(e.custom.radius.lg)}))),My=t.styled(t.Stack)((({theme:e})=>({gap:e.spacing(e.custom.padding.sm),padding:e.spacing(e.custom.padding.md)})));var zy=e.memo((({handleNavigateRegion:e,questionMenuItems:n,questionTitle:o,currentRegionIndex:r=0,loading:i,popperState:s})=>{const a=t.useTheme(),l=s||rl({variant:"popper"});return i?je.jsx(Nl,{width:"30%",height:32,sx:{borderRadius:a.spacing(a.custom.radius.md)}}):je.jsxs(t.Box,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:a.custom.padding.md},children:[je.jsx(t.Box,{sx:{minWidth:0},children:je.jsx(kl,{width:300,offset:[0,8],placement:"bottom-start",state:l,slotProps:{surface:{sx:{maxHeight:400,overflowY:"auto",paddingRight:0,"& .MuiButton-root":{height:40,borderRadius:0},"& .MuiTypography-root":{px:a.spacing(a.custom.padding.xs)}}}},trigger:je.jsx(Ni,{sx:{overflow:"hidden",flex:1,">div":{flex:"0 1 auto",textWrap:"nowrap",overflow:"hidden",minWidth:0,textOverflow:"ellipsis",whiteSpace:"nowrap"},">span":{flex:"0 0 auto"},fontVariantNumeric:"tabular-nums"},sizing:"lg",variation:"secondary",endIcon:l.isOpen?je.jsx(nr,{name:"chevron-up"}):je.jsx(nr,{name:"chevron-down"}),children:o}),menuItems:n})}),je.jsxs(t.Stack,{direction:"row",alignItems:"center",gap:a.spacing(a.custom.margin.md),sx:{flex:"0 0 auto",minWidth:0},children:[je.jsx(t.Box,{children:je.jsxs(ir,{monospaced:!0,component:"p",variation:"xs",color:a.custom.palette.text.secondary,sx:{"& strong":{color:a.custom.palette.text.primary,fontWeight:500}},children:[je.jsx("strong",{children:je.jsx(S,{value:(r||0)+1})})," ","of ",n?.length||0]})}),je.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},children:je.jsxs(t.Stack,{direction:"row",spacing:.5,children:[je.jsx(Ks,{icon:je.jsx(nr,{name:"arrow-left"}),shape:"round",variation:"toggle",sizing:"lg",disabled:r+1===1,onClick:()=>e(-1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:a.custom.palette.purple[0],"&:hover:before":{backgroundColor:a.custom.palette.interaction.hover}}}}),je.jsx(Ks,{icon:je.jsx(nr,{name:"arrow-right"}),shape:"round",variation:"toggle",sizing:"lg",disabled:r+1===n?.length,onClick:()=>e(1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:a.custom.palette.purple[0],"&:hover:before":{backgroundColor:a.custom.palette.interaction.hover}}}})]})})]})]})}));const By=t.styled(Gi)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),Vy=e.forwardRef((({onChange:n,onClear:o,onFocus:r,placeholder:i,value:s,...a},l)=>{const c=t.useTheme(),d=e.useRef(null),u=()=>{n?.({target:{value:""},currentTarget:{value:""}}),o?.()};e.useImperativeHandle(l,(()=>({...d.current,clear:u})));const p={color:c.custom.palette.icon.primary};return je.jsx(By,{inputRef:d,placeholder:i,value:s,onChange:n,onFocus:r,startAdornment:je.jsx(nr,{name:"search",size:17,sx:p}),endAdornment:s?je.jsx(t.Box,{onClick:u,sx:{cursor:"pointer",display:"flex"},children:je.jsx(nr,{name:"close",size:17,sx:p})}):void 0,...a})})),Ty=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between",padding:1}))),Iy=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1)}))),Fy=t.styled(ir)((({theme:e})=>({color:e.custom.palette.text.secondary}))),Ly=({buttons:e,subtitle:n,title:o})=>je.jsx(je.Fragment,{children:je.jsx(Ty,{sx:{justifyContent:"space-between"},children:je.jsx(t.Container,{children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[je.jsx(Iy,{children:je.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&je.jsx(ir,{variation:"sm",component:"h2",weight:"bold",children:o}),n&&je.jsx(Fy,{variation:"sm",component:"p",children:n})]})}),e&&je.jsx(Iy,{children:e})]})})})})})}),Py=({title:e,subtitle:n,buttons:o})=>je.jsx(je.Fragment,{children:je.jsx(Ty,{sx:{justifyContent:"space-between"},children:je.jsx(t.Container,{children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[je.jsx(Iy,{children:je.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&je.jsx(Nl,{variant:"text",width:200,height:28}),n&&je.jsx(Nl,{variant:"text",width:140,height:17})]})}),je.jsx(Iy,{children:o&&je.jsxs(je.Fragment,{children:[je.jsx(Nl,{variant:"text",width:72,height:28}),je.jsx(Nl,{variant:"text",width:56,height:28})]})})]})})})})})}),Ay=t.styled(xv.div,{shouldForwardProp:e=>!["active"].includes(e)})((({active:e,theme:t})=>({backgroundColor:e?t.custom.palette.blue[0]:t.custom.palette.surface.default,border:e?`1px solid ${t.custom.palette.blue[500]}`:`1px solid ${t.custom.palette.stroke.default}`,borderRadius:t.spacing(t.custom.radius.md),cursor:"pointer",display:"flex",flex:1,flexDirection:"column",justifyContent:"space-between",padding:t.spacing(t.custom.padding.sm,t.custom.padding.md)}))),Ey=t.styled(xv.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".react-truncate-list {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n list-style: none;\n overflow: auto;\n}\n\n.react-truncate-list *,\n.react-truncate-list *::before,\n.react-truncate-list *::after {\n box-sizing: inherit;\n}\n");const Ry=({animated:e,label:n,primaryText:o,secondaryText:r})=>{const i=o.match(/\d{1,2}:\d{2}/),s=o.split(":"),a=!isNaN(Number(o)),l=r.includes("%")&&!isNaN(Number(r.replace("%","")));return je.jsxs(t.Stack,{sx:{background:e=>e.custom.palette.surface.default,minWidth:"92px",border:e=>`1px solid ${e.custom.palette.neutral[100]}`,borderRadius:1,padding:e=>`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`,color:e=>e.custom.palette.text.primary,flexShrink:0,height:"100%"},direction:{sm:"row",md:"row",lg:"column"},alignItems:"center",gap:{sm:1,md:1,lg:0},children:[je.jsx(ir,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:n}),je.jsx(ir,{component:"h3",sx:{fontSize:e=>({sm:e.custom.typography.body.sm,md:e.custom.typography.body.md,lg:e.custom.typography.body.xxl}),fontWeight:500,flexShrink:0},monospaced:!0,children:je.jsx(je.Fragment,{children:i||a?je.jsx(je.Fragment,{children:i?je.jsxs(je.Fragment,{children:[je.jsx(S,{value:Number(s[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",je.jsx(S,{value:Number(s[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):je.jsx(S,{value:Number(o),animated:e})}):je.jsx(je.Fragment,{children:o})})}),je.jsx(ir,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},monospaced:!0,children:l?je.jsxs(je.Fragment,{children:[je.jsx(S,{value:r.replace("%",""),animated:e}),"%"]}):r})]})},Hy=({animated:e,iconName:o,label:r,value:i,slotProps:s})=>je.jsxs(t.Box,{display:"flex",alignItems:"center",gap:.5,children:[je.jsx(nr,{name:o,...s?.icon,sx:n.mergeSx({color:e=>e.custom.palette.icon.secondary},s?.icon?.sx)}),je.jsxs(ir,{monospaced:!0,component:"p",sx:e=>({fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.primary,"& > span":{color:e=>e.custom.palette.text.secondary,[e.breakpoints.up("lg")]:{display:"inline"},[e.breakpoints.down("lg")]:{display:"none"},[e.containerQueries.up("lg")]:{display:"inline"},[e.containerQueries.down("lg")]:{display:"none"}}}),children:[je.jsx(S,{value:i,animated:e})," ",je.jsx("span",{children:r})]})]}),$y=e.forwardRef((({colorScheme:e="purple",variation:o,title:r,description:i,loading:s,onShowMoreClick:a,menuItems:l,active:c,...d},u)=>{const p=t.useTheme(),h="raised";return je.jsxs(gl,{ref:u,active:c,borderradius:"lg",variation:h,...d,sx:n.mergeSx({display:"flex",flexDirection:"column",gap:p.custom.margin.sm,border:`1px solid ${p.custom.palette.stroke.light}`,padding:p.custom.padding.md,"&:hover":{cursor:"pointer",".TestKPICard__Menu":{opacity:1}},..."dimmed"===o&&{border:`1px solid ${p.custom.palette.stroke.light}`}},d.sx),children:[je.jsxs(t.Stack,{direction:"row",gap:1,children:[je.jsxs(t.Stack,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[je.jsx(je.Fragment,{children:s?je.jsx(Nl,{sx:{width:17,height:16}}):je.jsx(t.Box,{sx:{height:"22px",display:"flex",placeItems:"center"},children:je.jsx(Wc,{colorScheme:e,disabled:o&&"dimmed"===o})})}),s?je.jsx(Nl,{sx:{marginTop:"-1px"}}):je.jsx(ir,{component:"p",variation:"md",weight:"bold",sx:{color:"dimmed"===o?p.custom.palette.text.disabled:p.custom.palette.text.primary},children:r})]}),!s&&Boolean(l?.length)&&je.jsx(kl,{trigger:je.jsx(Ks,{icon:je.jsx(nr,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestKPICard__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:`${p.custom.palette.interaction.press} !important`,opacity:1}}}),menuItems:l,width:128,offset:[0,-8],placement:"bottom-end"})]}),s?je.jsx(t.Box,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>je.jsx(Nl,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):je.jsx(ws,{clamp:3,component:"p",variation:"sm",sx:{color:"dimmed"===o?p.custom.palette.text.disabled:p.custom.palette.text.secondary},onShowMoreClick:a,slotProps:{showMoreButton:{disabled:"dimmed"===o},gradientBox:{background:c?p.custom.palette.blue[0]:ml(h,p)}},children:i})]})})),Dy=(e,t=1e5)=>Math.round(e*t)/t;var Oy=e.memo((({playing:e,ended:t,seeking:n,buffering:o,handleAction:r})=>je.jsx(Ks,{disabled:o,loading:o,onClick:()=>r(),shape:"round",sizing:"xl",variation:"outlined",icon:je.jsx(nr,{name:(()=>{switch(!0){case n&&t:return"replay";case n:return"play";case!e&&t:return"replay";case e:return"pause";default:return"play"}})()})})));const _y=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60),r=o<10?"0"+o:o,i=t>0&&n<10?"0"+n:n;return t>0?`${t}:${i}:${r}`:`${i}:${r}`},Wy=(e,t)=>t/e*100,Ny=t.styled(t.Box)((({theme:e})=>({position:"absolute",top:"100%",marginTop:e.spacing((e.breakpoints.down("lg"),e.custom.margin.xs)),left:0,display:"flex",alignItems:"center",width:"100%",height:18}))),Zy=t.styled(t.Box)((({theme:e,width:t,left:n})=>({position:"absolute",background:e.custom.palette.neutralAlpha[2],opacity:1,borderRadius:18,height:18,pointerEvents:"none",top:0,left:`${n}%`,width:`${t}%`,zIndex:0,"&:after":{content:'" "',position:"absolute",width:"100%",height:78,top:38,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.neutralAlpha[1]}}))),Uy=t.styled(t.Box,{shouldForwardProp:e=>"isActive"!==e})((({theme:e,isActive:t})=>({position:"absolute",background:e.custom.palette.purple[500],height:8,width:8,borderRadius:8,...t?{transform:"translateX(-50%) scale(1)"}:{transform:"translateX(-50%) scale(0.5)"},transition:"all 0.2s, background 0.2s"})));var Gy=e.memo((({startTime:t,endTime:n,currentTime:o,markers:r=[],markerIndicator:i=!0,markerIndicatorSize:s=3,markerIndicatorMode:a,marker:l})=>{const c=e.useMemo((()=>Wy(n-t,o-t)),[o,t,n]),d=e.useMemo((()=>"time"===a?s:(n-t)*s),[n,t,a,s]),{width:u,left:p}=e.useMemo((()=>{const e=n-t,r=(o-t)/e;let i;i="time"===a?s/e*100:100*s;const l=i/2,d=100*r,u=100-100*r,p=Math.min(l,d);return{width:p+Math.min(l,u),left:c-p}}),[o,t,n,c,a,s]),h=e.useMemo((()=>r.map((({timeStamp:e,id:r,meta:i})=>({id:r,timeStamp:e,markerPosition:Wy(n-t,e),isActive:Math.abs(e-o+t)<=d/2+1e-10,meta:i})))),[r,n,t,o,d]),m=l||Uy;return je.jsxs(Ny,{children:[i&&je.jsx(Zy,{width:u,left:p}),h.map((({id:e,markerPosition:t,isActive:n,meta:o})=>je.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...o&&{meta:o}},e)))]})}));const qy=t.styled(t.Slider)((({theme:e,type:n,muted:o,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${t.sliderClasses.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${r.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${r.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${r.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===n?{height:100,color:e.custom.palette.icon.primary,...(o||0===i)&&{opacity:.5},[`.${t.sliderClasses.valueLabel}`]:{background:e.custom.palette.surface.default,color:e.custom.palette.text.primary,fontSize:e.custom.typography.body.xs,fontWeight:"normal",boxShadow:e.custom.elevation.overlay},[`.${t.sliderClasses.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${r.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${r.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${r.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${t.sliderClasses.rail}`]:{height:4,background:r.alpha(e.custom.palette.neutral[400],.5),opacity:1},[`.${t.sliderClasses.track}`]:{border:0,boxShadow:"none",height:4}}})));var Ky=e.memo(qy);const Yy=t.styled(t.Stack)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),Xy=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:r,volumeControlsType:i})=>{const s=je.jsx(Ks,{icon:(()=>{switch(!0){case 0===r||n:return je.jsx(o.VolumeOff,{});case r<.5:return je.jsx(L,{});default:return je.jsx(o.VolumeUp,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return je.jsx(Yy,{children:"mute"===i?s:je.jsx(vl,{bindOn:["hover"],trigger:s,popperProps:{placement:"top",style:{zIndex:40}},children:je.jsx(Ky,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:r,valueLabelFormat:e=>`${Math.ceil(Wy(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},Qy=t.styled(t.Stack)({flex:1,position:"relative"}),Jy=t.styled(t.Stack)((({theme:e})=>({ml:"auto",alignItems:"center",position:"absolute",width:"100%",overflow:"hidden",right:0,bottom:8,gap:e.spacing(e.custom.margin.xs)}))),ew=t.styled(ir)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),tw=t.styled(t.Box)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),nw=t.styled(t.Box)((({theme:e,left:t,width:n})=>({background:e.custom.palette.neutral[300],height:4,position:"absolute",left:`${t}%`,pointerEvents:"none",top:"50%",transform:"translateY(-50%)",borderRadius:e.custom.radius.round,width:`${n}%`})));var ow=e.memo((({startTime:t,currentTime:n,endTime:o,playing:r,markerIndicator:i,bufferRanges:s,handleSeeking:a,handleSeekEnd:l,handleSeekStart:c,markers:d,marker:u,markerIndicatorMode:p,markerIndicatorSize:h,volume:m,muted:x,handleVolumeMute:g,handleVolumeChange:f,volumeControlsType:v,volumeControls:C})=>{const[y,w]=e.useState(r),j=e.useCallback(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),b=e.useCallback(((e,t)=>{e.stopPropagation(),l?.(y),y&&w(!1)}),[y,l]),k=e.useCallback((e=>{e.stopPropagation(),r&&w(r),c?.(r)}),[r,c]),S=e.useCallback((()=>{r&&w(r),c?.(r)}),[r,c]),M=e.useCallback((()=>{l?.(y),y&&w(!1)}),[y,l]);return je.jsxs(Qy,{children:[je.jsxs(Jy,{direction:"row",children:[je.jsxs(ew,{component:"p",variation:"md",children:[_y(n-t)," / ",_y(o-t)]}),C&&je.jsx(Xy,{volume:m,muted:x,handleVolumeMute:g,handleVolumeChange:f,volumeControlsType:v})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>je.jsx(nw,{left:e,width:t},n))),je.jsxs(tw,{children:[je.jsx(Ky,{step:.05,value:n,max:o,min:t,onChangeCommitted:b,onMouseDown:k,onChange:j,onTouchStart:S,onTouchEnd:M}),d&&d?.length>0&&je.jsx(Gy,{markerIndicatorMode:p,markerIndicatorSize:h,markerIndicator:i,markers:d,marker:u,startTime:t,currentTime:n,endTime:o})]})]})}));const rw=t.styled(gl)((({theme:e})=>({display:"flex",flex:1,padding:e.spacing(e.custom.padding.md),borderColor:e.custom.palette.stroke.light,borderWidth:1,gap:e.spacing(e.custom.padding.sm),borderStyle:"solid",flexDirection:"column"}))),iw=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),sw=e.forwardRef((({id:t,videoElement:n,initialEndTime:o=0,initialCurrentTime:r=0,initialMuted:i,initialVolume:s,markers:a,options:l,slots:c,events:{onEnd:d,onPlay:u,onSeekEnd:p,onSeeking:h,onSeekStart:m,onTimeUpdate:x,onPause:g,onVolumeChange:f,onVolumeMute:v,onRestart:C,onFirstPlay:y,onFirstEnded:w,onReset:j}={},videoSeekTime:b},k)=>{const[S,M]=e.useState(!1),[z,B]=e.useState([]),V={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...l},[{seeking:T,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,muted:$,startTime:D,firstPlay:O,firstEnded:_},W]=e.useState({startTime:Dy(V.normaliseTime?r:0),endTime:Dy(V.normaliseTime?o:n.duration),currentTime:Dy(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1,volume:s||1,muted:i||!1,buffering:!1});e.useEffect((()=>{if(n.muted=$,n.volume=H,V.normaliseTime&&(void 0===o||void 0===r))throw new Error("Please supply an initial end time and initial currentTime for normalising time in VideoControls.tsx");return()=>{te()}}),[]),e.useEffect((()=>{W((e=>({...e,startTime:Dy(V.normaliseTime?r:0),endTime:Dy(V.normaliseTime?o:n.duration),currentTime:Dy(r??0)}))),n.currentTime=Dy(r??0)}),[r,o]);const N=e.useCallback((()=>{W((e=>({...e,playing:!1,ended:!0,...!_&&{firstEnded:!0}}))),d&&d(),!_&&w&&w()}),[_]);e.useEffect((()=>{if(!n||null==b)return;(async()=>{const e=!n.paused,t=b===I;W((e=>({...e,playing:!1,currentTime:Dy(b)}))),await new Promise((e=>{const t=()=>{n.removeEventListener("seeked",t),e()};n.addEventListener("seeked",t),setTimeout(e,500)})),W((e=>({...e,currentTime:Dy(b)}))),await new Promise((e=>setTimeout(e,50))),W((n=>({...n,playing:e,currentTime:Dy(t?b-.001:b+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[b,n]);const Z=e.useCallback((e=>{W((t=>({...t,muted:e.target?.muted,volume:"number"==typeof e.target?.volume?e.target?.volume:1}))),$!==e.target?.muted&&v&&v(!$),H!==e.target?.volume&&f&&f(H)}),[$,H]),U=e.useCallback((()=>{const e=Dy(n.currentTime)>=I&&I!==Dy(n.duration)&&!R,t=Dy(n.currentTime)>=I&&I===Dy(n.duration)&&!R&&!P;(e||t)&&(n.pause(),n.dispatchEvent(new Event("ended"))),W((e=>({...e,currentTime:Dy(n.currentTime)}))),x&&x(Dy(n.currentTime))}),[I,R,P]),G=e.useCallback((()=>{W((e=>({...e,playing:!1}))),g&&g()}),[L]),q=e.useCallback((()=>{W((e=>({...e,playing:!0,ended:!1,buffering:!1,...!O&&{firstPlay:!0}}))),!O&&y&&y(),u&&u()}),[O]),K=e.useCallback((()=>{W((e=>({...e,buffering:!0})))}),[]),Y=e.useCallback((()=>{W((e=>({...e,buffering:!1})))}),[A]),X=e.useCallback((()=>{const e=[];for(let t=0;t<n.buffered.length;t++){const o=n.buffered.start(t),r=n.buffered.end(t);if(r>=D&&o<=I){const t=Math.max(o,D),n=Math.min(r,I);e.push({start:t-D,end:n-D,startPercent:(t-D)/(I-D)*100,widthPercent:(n-t)/(I-D)*100})}}B(e)}),[T,I,L,P,A,E,R,H,$,D,z]),Q=e.useCallback((async e=>{P&&te(),n.currentTime=D,e&&await ee(),C&&C()}),[P,L,D,I,R]),J=e.useCallback((async()=>{P&&te(),n.currentTime=D,W((e=>({...e,startTime:Dy(V.normaliseTime?r:0),endTime:Dy(V.normaliseTime?o:n.duration),currentTime:Dy(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),j&&j()}),[P,L,D,I,R,r,o]),ee=async()=>{await n.play()},te=()=>{n.pause()},ne=e.useCallback((e=>{n.currentTime=Dy(e),W((t=>({...t,currentTime:Dy(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!O||t.firstPlay,bufferProgress:e}))),h&&h(e),!O&&y&&y()}),[A,O]),oe=e.useCallback((async()=>{document.hidden?P&&!n.paused?(M(!0),te()):M(!1):(S&&!P&&await ee(),M(!1))}),[P,S,te,ee,n]),re=e.useCallback((e=>{e&&n.pause(),W((e=>({...e,seeking:!0}))),m&&m()}),[R]),ie=e.useCallback((async(e,t,o)=>{t&&(n.currentTime=t),e&&!R&&await n.play(),o&&P&&n.pause(),W((e=>({...e,...t?{currentTime:t}:{},ended:!o&&e.ended,seeking:!1}))),p&&p(t)}),[P,R,A,T]);return F("visibilitychange",oe,document),F("pause",G,n),F("playing",q,n),F("timeupdate",U,n),F("ended",N,n),F("volumechange",Z,n),F("waiting",K,n),F("canplay",Y,n),F("progress",X,n),e.useImperativeHandle(k,(()=>({play:ee,pause:te,restart:Q,reset:J,seek:(e,t,n)=>ie(t,e,n),videoState:{seeking:T,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,firstPlay:O,firstEnded:_,muted:$,startTime:D}}))),je.jsxs(rw,{variation:"raised",borderradius:"xl",id:t,children:[je.jsxs(iw,{...V?.rtl&&{dir:"rtl"},children:[je.jsx(Oy,{seeking:T,playing:P,ended:R,buffering:A,handleAction:async()=>{R?await Q(!0):P?te():await ee()}}),je.jsx(ow,{handleSeeking:ne,handleSeekEnd:ie,handleSeekStart:re,ended:R,marker:c?.marker,markers:a,markerIndicatorMode:V.markerIndicatorMode,markerIndicatorSize:V.markerIndicatorSize,markerIndicator:V.markerIndicator,startTime:V.normaliseTime?D:0,currentTime:L,endTime:I,playing:P,bufferRanges:z,buffering:A,volume:H,muted:$,volumeControls:V.volumeControls,volumeControlsType:V.volumeControlsType,handleVolumeMute:()=>{n.muted=!$},handleVolumeChange:e=>{n.volume=e,$&&(n.muted=!1)}})]}),c?.bottom]})}));var aw=e.memo(sw);const lw="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",cw=(e,n,o)=>t.createTheme({direction:o,custom:{palette:{black:"#000000",white:"#ffffff",neutral:K[e],neutralAlpha:"light"===e?O:_,purple:X[e],red:Q[e],peach:J[e],yellow:ee[e],blue:te[e],green:ne[e],icon:he[e].icon,interaction:he[e].interaction,stroke:he[e].stroke,surface:he[e].surface,text:he[e].text,input:he[e].input,skeleton:he[e].skeleton,data:he[e].data,body:he[e].surface.default},margin:se,padding:ae,radius:le,elevation:ce,elevationFilter:de,boxShadow:ue,easing:pe,typography:hr[n]},palette:{mode:e,primary:{main:W[500]}},spacing:ie,shape:{borderRadius:ie,hotspot:{default:12,active:24}},breakpoints:{values:oe},typography:{fontFamily:`"${xe.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:mr(n),styleOverrides:{root:{color:he[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:e=>`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${e.custom.palette.body};\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: '${xe.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.Domaine.default.weight};\n src: url(${lw}${xe.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${xe.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.Domaine.bold.weight};\n src: url(${lw}${xe.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${xe.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.FoundersGrotesk.default.weight};\n src: url(${lw}${xe.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${xe.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.FoundersGrotesk.bold.weight};\n src: url(${lw}${xe.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${oe.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${oe.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiButton:{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:xe.FoundersGrotesk.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*ie}px ${e.padding.md*ie}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 dw="production"===process.env.NODE_ENV,uw="Invariant failed";const pw=e.createContext(null),hw=(n="light",o="lg",r="ltr")=>{const{width:i}=vs(),[s,a]=e.useState(n),[l,c]=e.useState(o),[d,u]=e.useState(r),[p,h]=e.useState(!1),[m,x]=e.useState("");e.useEffect((()=>{d&&document.documentElement.setAttribute("dir",d)}),[d]);e.useEffect((()=>{e.startTransition((()=>{c(i&&i<oe.lg?"sm":"lg")}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{u(r)}))}),[r]),e.useEffect((()=>{e.startTransition((()=>{a(n)}))}),[n]);const g=e.useMemo((()=>cw(s,l,d)),[s,d,l]),f=t.useMediaQuery(g.breakpoints.only("sm"),{noSsr:!0}),v=t.useMediaQuery(g.breakpoints.only("md"),{noSsr:!0}),C=t.useMediaQuery(g.breakpoints.between("lg","xl"),{noSsr:!0}),y=t.useMediaQuery(g.breakpoints.up("xl"),{noSsr:!0});return e.useEffect((()=>{e.startTransition((()=>{f&&x("sm"),v&&x("md"),C&&x("lg"),y&&x("xl")}))}),[f,v,C,y]),{breakpoint:m,gridOverlayVisible:p,mode:s,theme:g,toggleGridOverlay:()=>{e.startTransition((()=>{h((e=>!e))}))},toggleMode:t=>{e.startTransition((()=>{if(t)return a(t);a((e=>"light"===e?"dark":"light"))}))}}};var mw=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.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 xw="undefined"!=typeof document,gw=function(e,t,n){for(var o=0,r=0;o=r,r=P.peek(),38===o&&12===r&&(t[n]=1),!P.token(r);)P.next();return P.slice(e,P.position)},fw=function(e,t){return P.dealloc(function(e,t){var n=-1,o=44;do{switch(P.token(o)){case 0:38===o&&12===P.peek()&&(t[n]=1),e[n]+=gw(P.position-1,t,n);break;case 2:e[n]+=P.delimit(o);break;case 4:if(44===o){e[++n]=58===P.peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=P.from(o)}}while(o=P.next());return e}(P.alloc(e),t))},vw=new WeakMap,Cw=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||vw.get(n))&&!o){vw.set(e,!0);for(var r=[],i=fw(t,r),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=r[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},yw=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ww(e,t){switch(P.hash(e,t)){case 5103:return P.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 P.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P.WEBKIT+e+P.MOZ+e+P.MS+e+e;case 6828:case 4268:return P.WEBKIT+e+P.MS+e+e;case 6165:return P.WEBKIT+e+P.MS+"flex-"+e+e;case 5187:return P.WEBKIT+e+P.replace(e,/(\w+).+(:[^]+)/,P.WEBKIT+"box-$1$2"+P.MS+"flex-$1$2")+e;case 5443:return P.WEBKIT+e+P.MS+"flex-item-"+P.replace(e,/flex-|-self/,"")+e;case 4675:return P.WEBKIT+e+P.MS+"flex-line-pack"+P.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return P.WEBKIT+e+P.MS+P.replace(e,"shrink","negative")+e;case 5292:return P.WEBKIT+e+P.MS+P.replace(e,"basis","preferred-size")+e;case 6060:return P.WEBKIT+"box-"+P.replace(e,"-grow","")+P.WEBKIT+e+P.MS+P.replace(e,"grow","positive")+e;case 4554:return P.WEBKIT+P.replace(e,/([^-])(transform)/g,"$1"+P.WEBKIT+"$2")+e;case 6187:return P.replace(P.replace(P.replace(e,/(zoom-|grab)/,P.WEBKIT+"$1"),/(image-set)/,P.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return P.replace(e,/(image-set\([^]*)/,P.WEBKIT+"$1$`$1");case 4968:return P.replace(P.replace(e,/(.+:)(flex-)?(.*)/,P.WEBKIT+"box-pack:$3"+P.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return P.replace(e,/(.+)-inline(.+)/,P.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(P.strlen(e)-1-t>6)switch(P.charat(e,t+1)){case 109:if(45!==P.charat(e,t+4))break;case 102:return P.replace(e,/(.+:)(.+)-([^]+)/,"$1"+P.WEBKIT+"$2-$3$1"+P.MOZ+(108==P.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~P.indexof(e,"stretch")?ww(P.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==P.charat(e,t+1))break;case 6444:switch(P.charat(e,P.strlen(e)-3-(~P.indexof(e,"!important")&&10))){case 107:return P.replace(e,":",":"+P.WEBKIT)+e;case 101:return P.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P.WEBKIT+(45===P.charat(e,14)?"inline-":"")+"box$3$1"+P.WEBKIT+"$2$3$1"+P.MS+"$2box$3")+e}break;case 5936:switch(P.charat(e,t+11)){case 114:return P.WEBKIT+e+P.MS+P.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P.WEBKIT+e+P.MS+P.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P.WEBKIT+e+P.MS+P.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P.WEBKIT+e+P.MS+e+e}return e}var jw,bw,kw=xw?void 0:(jw=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},bw=new WeakMap,function(e){if(bw.has(e))return bw.get(e);var t=jw(e);return bw.set(e,t),t}),Sw=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case P.DECLARATION:e.return=ww(e.value,e.length);break;case P.KEYFRAMES:return P.serialize([P.copy(e,{value:P.replace(e.value,"@","@"+P.WEBKIT)})],o);case P.RULESET:if(e.length)return P.combine(e.props,(function(t){switch(P.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return P.serialize([P.copy(e,{props:[P.replace(t,/:(read-\w+)/,":"+P.MOZ+"$1")]})],o);case"::placeholder":return P.serialize([P.copy(e,{props:[P.replace(t,/:(plac\w+)/,":"+P.WEBKIT+"input-$1")]}),P.copy(e,{props:[P.replace(t,/:(plac\w+)/,":"+P.MOZ+"$1")]}),P.copy(e,{props:[P.replace(t,/:(plac\w+)/,P.MS+"input-$1")]})],o)}return""}))}}],Mw=function(e){var t=e.key;if(xw&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||Sw,s={},a=[];xw&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)})));var l=[Cw,yw];if(kw){var c=[P.stringify],d=P.middleware(l.concat(i,c)),u=kw(i)(t),p=function(e,t){var n=t.name;return void 0===u[n]&&(u[n]=function(e){return P.serialize(P.compile(e),d)}(e?e+"{"+t.styles+"}":t.styles)),u[n]};r=function(e,t,n,o){var r=t.name,i=p(e,t);return void 0===g.compat?(o&&(g.inserted[r]=!0),i):o?void(g.inserted[r]=i):i}}else{var h,m=[P.stringify,P.rulesheet((function(e){h.insert(e)}))],x=P.middleware(l.concat(i,m));r=function(e,t,n,o){h=n,function(e){P.serialize(P.compile(e),x)}(e?e+"{"+t.styles+"}":t.styles),o&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new mw({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:r};return g.sheet.hydrate(a),g};const zw=()=>je.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),Bw=Mw({key:"muirtl",stylisPlugins:[P.prefixer,E]}),Vw=Mw({key:"mui"});exports.AIInsight=({comments:n,themeDescription:o,slotProps:r,suggestions:i,activeCommentIndex:s,onActiveCommentIndexChange:a})=>{const[l,c]=e.useState(0),d=t.useTheme(),u=e.useRef(null),[p,h]=e.useState("auto"),m=s??l,x=e=>{a&&a(e),void 0===s&&c(e)};e.useEffect((()=>{if(!u.current)return;const e=u.current.scrollHeight+2;h(e)}),[m]);const g=n?.length?n[m]:void 0,f=g?e.cloneElement(g,{ref:u}):void 0;return je.jsxs(bc,{slotProps:{childrenContainer:{display:"flex",flexDirection:"column",gap:d.spacing(d.custom.padding.md)}},withLockUp:!0,...r?.aiContentContainer,children:[je.jsx(ir,{component:"p",variation:"sm",children:o}),!!n?.length&&je.jsxs(t.Box,{children:[je.jsx(ir,{component:"p",variation:"sm",weight:"bold",sx:{pb:d.spacing(d.custom.padding.sm)},children:"Key comments"}),je.jsx(t.Box,{sx:{overflow:"hidden",height:"auto"===p?"auto":`${p}px`,transition:"height 0.1s ease-in-out",boxShadow:d.custom.elevation.raised,borderRadius:d.spacing(d.custom.radius.md)},children:f}),je.jsx(kc,{items:Array.from({length:n?.length},((e,t)=>t.toString())),activeItem:m.toString(),onClickNext:()=>{m+1===n.length?x(0):x(m+1)},onClickPrevious:()=>{x(0===m?n.length-1:m-1)}})]}),!!i?.length&&je.jsxs(t.Box,{children:[je.jsx(ir,{component:"p",variation:"sm",weight:"bold",children:"Ideas to consider"}),je.jsx(t.List,{sx:{listStyleType:"disc",padding:0,pl:2},children:i.map(((e,t)=>je.jsx(j,{sx:{display:"list-item",padding:0},children:je.jsx(b,{disableTypography:!0,primary:je.jsx(ir,{component:"p",variation:"sm",children:e})})},`${t}-suggestion`)))})]})]})},exports.AISummary=Sc,exports.AIWrittenByLockUp=wc,exports.Accordion=({heading:n,items:o})=>{const{custom:r}=t.useTheme(),[i,s]=e.useState("");return je.jsx(t.Container,{sx:{backgroundColor:r.palette.surface.default,color:r.palette.text.primary},children:je.jsxs(t.Grid2,{container:!0,sx:{alignItems:"center",display:"flex",justifyContent:"center",py:{sm:4,lg:6},gap:2},children:[je.jsx(t.Grid2,{size:[12,12,12,8],children:je.jsx(ir,{variation:"xl",component:"h2",fontWeight:500,sx:{textAlign:"center"},children:n})}),je.jsx(t.Grid2,{size:[12,12,12,8],children:o?.map((e=>{return je.jsxs(li,{expanded:i===e.heading,onChange:(t=e.heading,(e,n)=>{s(!!n&&t)}),children:[je.jsx(ci,{"aria-controls":`${e.heading}-content`,id:`${e.heading}-header`,heading:e.heading,children:je.jsx(ir,{variation:"lg",component:"p",fontWeight:500,children:e.heading})}),je.jsx(di,{children:"string"==typeof e.body?je.jsx(ir,{variation:"lg",component:"p",sx:{whiteSpace:"break-spaces"},children:e.body}):e.body})]},e.heading);var t}))})]})})},exports.AiContentContainer=bc,exports.AnnualController=({body:e,currency:n,hideCurrency:o=!1,changeCurrencyEvent:r=()=>{},frequency:i,heading:s,setCurrency:a=()=>{},setFrequency:l=()=>{},togglePayAnnuallyEvent:c=()=>{},selections:d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}]})=>{const u=t.useTheme(),p=Fr();return je.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:u.custom.palette.surface.default,borderRadius:u.custom.radius.round,boxShadow:u.custom.elevation.raised,display:"flex",gap:{sm:u.spacing(u.custom.padding.md),lg:u.spacing(u.custom.padding.lg)},pl:{sm:u.spacing(u.custom.padding.md),lg:u.spacing(u.custom.padding.lg)},pr:{sm:u.spacing(u.custom.padding.md+.5),lg:u.spacing(u.custom.padding.lg)},py:u.spacing(u.custom.padding.md)},children:[je.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:e=>({sm:e.spacing(e.custom.padding.sm),lg:e.spacing(e.custom.padding.md)})},children:[je.jsx(t.Box,{sx:{pr:e=>e.spacing(e.custom.padding.md),display:"flex"},children:je.jsx(ai,{onChange:()=>(c(),void l("monthly"===i?"annually":"monthly")),role:"switch","aria-checked":"annually"===i,"aria-label":"Switch between monthly and annual billing",checked:"annually"===i})}),je.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[je.jsx(ir,{variation:"md",component:"p",children:s}),je.jsx(ir,{variation:"sm",component:"p",sx:{color:u.custom.palette.text.secondary},children:e})]})]}),!o&&je.jsx(oi,{name:"currency",onChange:e=>{return t=e.target.value,r(t),void a(t);var t},selections:d,value:d.find((e=>e.value===n))?.value,sizing:["xs","sm","md"].includes(p)?"md":"lg",sx:{minWidth:{sm:64,lg:72}}})]})},exports.AssetItem=({size:e,thumbnail:t,cover:n,mediaType:o,loading:r,menuItems:i,slotProps:s,...a})=>je.jsx(Lc,{loading:r,size:e,...a,children:r?je.jsx(Nl,{sx:{borderRadius:0}}):je.jsxs(je.Fragment,{children:[je.jsx(Mc,{slotProps:s,menuItems:i}),je.jsx(Ic,{thumbnail:t,size:e}),je.jsx(Bc,{cover:n,mediaType:o})]})}),exports.AuthContainerSurface=({children:e,headContent:o,sx:r,...i})=>{const s=t.useTheme();return je.jsxs(gl,{...i,sx:n.mergeSx(r,{mx:[s.spacing(s.custom.margin.md),0],width:1,maxWidth:[512]}),children:[o&&je.jsx(t.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:s.spacing(s.custom.margin.md),px:s.spacing(s.custom.margin.md)},children:o}),je.jsx(t.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:o?[s.spacing(s.custom.margin.md)]:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],px:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],pb:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)]},children:e})]})},exports.AuthFormHeader=({logo:e,headerText:n,subText:o})=>{const r=t.useTheme();return je.jsxs(t.Stack,{gap:r.spacing(r.custom.margin.md),alignItems:"center",mb:r.spacing(r.custom.margin.lg),children:[!1===e?null:e||je.jsx(nr,{name:"brand-wordmark",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),je.jsxs(t.Stack,{gap:r.spacing(r.custom.margin.md),children:[n&&je.jsx(ir,{variation:"sm",component:"h1",align:"center",weight:"bold",children:n}),function(){if(o)return"string"==typeof o?je.jsx(ir,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},exports.Avatar=ui,exports.AvatarGroup=({variation:e="primary",...n})=>{if("primary"===e)return je.jsx(t.AvatarGroup,{...n})},exports.Badge=({children:e})=>je.jsx(pi,{children:je.jsx(hi,{variation:"xs",component:"p",type:"button",weight:"bold",children:e})}),exports.BrandBadge=({color:e,name:o,size:r,sx:i,...s})=>{const a=t.useTheme(),l=r||bi.xl,c=r||bi.xl,d={sx:n.mergeSx({color:(e=>{switch(e){case"purple":return a.custom.palette.purple[500];case"peach":return a.custom.palette.peach[500];case"red":return a.custom.palette.red[500];default:return a.custom.palette.icon.disabled}})(e),height:l,width:c},i),...s};switch(o){case"emotion-meh":return je.jsx(gi,{...d});case"emotion-good":return je.jsx(mi,{...d});case"emotion-great":return je.jsx(xi,{...d});case"understanding-unknown":return je.jsx(ji,{...d});case"understanding-low":return je.jsx(wi,{...d});case"understanding-good":return je.jsx(Ci,{...d});case"understanding-great":return je.jsx(yi,{...d});case"property-secure":return je.jsx(vi,{...d});case"property-private":return je.jsx(fi,{...d});default:return je.jsx(je.Fragment,{})}},exports.Breadcrumb=Ti,exports.BulletGraphic=({name:e,size:t,sx:o,...r})=>{const i=t||Di.xl,s=t||Di.xl,a={sx:n.mergeSx({height:i,width:s,fill:"none"},o),...r};switch(e){case"ai":return je.jsx(Ii,{...a});case"alert":return je.jsx(Fi,{...a});case"celebrate-collaborate":return je.jsx(Li,{...a});case"comment":return je.jsx(Pi,{...a});case"many-media":return je.jsx(Ai,{...a});case"qual-and-quant":return je.jsx(Ri,{...a});case"variant-test":return je.jsx(Hi,{...a});case"worldwide":return je.jsx($i,{...a});default:return je.jsx(Ei,{...a})}},exports.Button=Ni,exports.ButtonBase=_i,exports.Checkbox=Zi,exports.CheckboxGroup=qi,exports.ClipboardCopyingOverlay=Pc,exports.ColorBackgroundContainer=Ki,exports.CommentCard=Oc,exports.CreatableAutocomplete=ns,exports.CustomField=os,exports.DEFAULT_MAX_INPUT_LENGTH=cr,exports.DataPointInfo=qc,exports.DemographicSelectionSection=({demographicOptionLabel:e,demographicSelectionLabels:t})=>je.jsxs(Kc,{children:[je.jsx(ir,{component:"p",weight:"bold",variation:"xs",sx:{maxWidth:"128px",color:e=>e.custom.palette.text.primary,paddingTop:"1px"},children:e}),je.jsx(Yc,{children:t.map(((e,t)=>je.jsx(Dl,{label:e,sx:{maxWidth:"256px"}},`${t}-${e}`)))})]}),exports.Differential=ms,exports.DropdownMenu=({open:e,anchorEl:n,handleClick:o,handleClose:r,items:i,...s})=>je.jsx(je.Fragment,{children:je.jsx(xs,{anchorEl:n,open:e,onClose:r,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...s,children:i?.map(((e,n)=>je.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&je.jsx(t.Box,{mr:1,children:e.icon}),e.label]},n)))})}),exports.EmojiListItem=({disabled:e,loading:n,active:o,onClick:r,icon:i,label:s,slotProps:a,...l})=>{const c=t.useTheme();return je.jsx(Xc,{borderradius:"md",variation:"default",active:!e&&o,disabled:e,onClick:e?void 0:r,sx:{px:c.custom.padding.sm,py:c.custom.padding.xs,...a?.surface?.sx},...a?.surface,...l,children:je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-content-container",children:[i&&je.jsx(je.Fragment,{children:n?je.jsx(Nl,{variant:"text",width:24,sx:{borderRadius:"50%"}}):je.jsx(gs,{disabled:e,checked:!0,...a?.icon,children:i})}),s&&je.jsx(t.Box,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-label-container",children:n?je.jsx(Nl,{variant:"text",width:120}):je.jsx(ir,{component:"p",variation:"md",sx:{color:e?c.custom.palette.text.disabled:c.custom.palette.text.primary},...a?.label,children:s})})]})})},exports.EmojiQuestionEditorOption=({dragHandle:e=!1,disabled:n,loading:o,onDelete:r,primaryAction:i,icon:s,label:a,slotProps:l,...c})=>{const d=t.useTheme();return je.jsxs(Qc,{borderradius:"md",variation:"default",disabled:n,sx:{p:d.custom.padding.sm,...l?.surface?.sx},...l?.surface,...c,children:[e&&je.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},className:"emoji-list-item-drag-handle-container",children:je.jsx(Ks,{disabled:n,sizing:"xs",icon:je.jsx(nr,{name:"drag-handle",color:d.custom.palette.icon.secondary}),...l?.dragHandle})}),je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.sm),flex:"1 0 0",px:d.spacing(d.custom.padding.sm)},className:"emoji-list-item-content-container",children:[s&&je.jsx(je.Fragment,{children:o?je.jsx(Nl,{width:24,height:24,sx:{borderRadius:"50%"}}):je.jsx(gs,{disabled:n,checked:!0,...l?.icon,children:s})}),a&&je.jsx(t.Box,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.sm)},className:"emoji-list-item-label-container",children:o?je.jsx(Nl,{width:100,height:24}):je.jsx(ir,{component:"p",variation:"md",sx:{color:n?d.custom.palette.text.disabled:d.custom.palette.text.primary},...l?.label,children:a})})]}),(i||r)&&je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.xs)},className:"emoji-list-item-actions-container",children:[i&&je.jsx(je.Fragment,{children:o?je.jsx(Nl,{width:24,height:24}):i}),r&&je.jsx(je.Fragment,{children:o?je.jsx(Nl,{width:24,height:24}):je.jsx(Ks,{sizing:"xs",disabled:n,icon:je.jsx(nr,{name:"delete",color:d.custom.palette.icon.secondary}),onClick:e=>{e.stopPropagation(),r&&r()},...l?.deleteAction})})]})]})},exports.EmojiWrapper=gs,exports.EmptyStateCard=({onClickCta:e,ctaText:o="Create a new test",title:r="This Loop has no tests",body:i="Create a new test to start gathering insights on your creative work.",hideCta:s=!1,hideIcon:a=!1,iconName:l="data-bar",slotProps:c,sx:d})=>{const u=t.useTheme();return je.jsx(gl,{variation:"raised",borderradius:"lg",sx:n.mergeSx({backgroundColor:u.custom.palette.purple[0],p:u.spacing(u.custom.padding.md)},d),...c?.surface,children:je.jsxs(t.Stack,{gap:2,direction:"row",alignItems:"start",children:[!a&&je.jsx(t.Box,{sx:n.mergeSx({backgroundColor:u.custom.palette.yellow[300],flexShrink:0,p:u.spacing(u.custom.padding.sm),aspectRatio:1,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:u.spacing(u.custom.radius.round)},c?.icon?.sx),children:je.jsx(nr,{name:l,size:24})}),je.jsxs(t.Stack,{gap:2,alignItems:"start",children:[je.jsxs(t.Stack,{gap:u.spacing(u.custom.padding.sm),className:"copy-stack",children:[je.jsx(ir,{component:"p",variation:"lg",weight:"bold",sx:{color:u.custom.palette.purple[800]},...c?.title,children:r}),je.jsx(ir,{component:"p",variation:"md",sx:{color:u.custom.palette.purple[800]},...c?.body,children:i})]}),!s&&je.jsx(Ni,{onClick:e,...c?.button,children:o})]})]})})},exports.ExpandableTypographyClamp=ws,exports.ExtendedTestStatus=({animated:e=!0,status:n,segments:o,loading:r})=>{const i=t.useTheme(),{number:s,totalNumber:a}=o[0],l=a?Number(s)/a*100:void 0;return r?je.jsx(Nl,{width:"100%",height:73,sx:{borderRadius:i.spacing(i.custom.radius.lg)}}):je.jsxs(ad,{status:n,children:[je.jsxs(t.Stack,{direction:"row",gap:i.custom.padding.sm,alignItems:"center",sx:{flex:"1 1 auto",minWidth:"176px"},children:[je.jsx(nr,{name:td(n),size:24}),je.jsxs(t.Stack,{sx:{width:"100%",gap:i.spacing(i.custom.padding.sm)},children:[je.jsx(ir,{component:"p",variation:"md",sx:{color:nd(i,n,1e3)},children:ld(n)}),je.jsx(_l,{variation:"determinate",value:l,sx:{[`&.${t.linearProgressClasses.root}`]:{background:od(i,n,100),height:"8px",[`& .${t.linearProgressClasses.bar}`]:{backgroundColor:od(i,n)}}}})]})]}),je.jsx(t.Stack,{direction:"row",gap:i.custom.margin.lg,alignItems:"center",sx:{px:i.custom.padding.sm,flex:"0 0 auto"},children:o.map(((t,o)=>je.jsx(sd,{animated:e,segment:t,status:n},o)))})]})},exports.FilterCount=({animated:e=!0,buttonText:n,end:o,filteredCount:r,loading:i,onButtonPress:s=()=>{},start:a,totalCount:l})=>{const c=t.useTheme(),d={component:"p",variation:"xs"},u={color:c.custom.palette.text.secondary},p={color:c.custom.palette.text.link,component:"p",onClick:s,sx:{cursor:"pointer",textDecoration:"underline"},variation:"xs"},h="number"==typeof r&&r!==l,m=n&&"number"==typeof r&&r!==l;return je.jsx(cd,{children:i?je.jsxs(je.Fragment,{children:[je.jsxs(dd,{children:[a?je.jsx(Nl,{width:50,height:18}):null,je.jsx(Nl,{width:30,height:18}),o?je.jsx(Nl,{width:50,height:18}):null]}),m?je.jsx(Nl,{width:60,height:18}):null]}):je.jsxs(je.Fragment,{children:[je.jsxs(dd,{children:[a?je.jsx(ir,{...d,...u,children:a}):null,h?je.jsxs(je.Fragment,{children:[je.jsx(ir,{...d,weight:"bold",monospaced:!0,children:je.jsx(S,{value:r,animated:e})}),je.jsx(ir,{...d,...u,children:"/"})]}):null,je.jsx(ir,{...d,...u,monospaced:!0,children:je.jsx(S,{value:l,animated:e})}),o?je.jsx(ir,{...d,...u,children:o}):null]}),m?je.jsx(ir,{...p,children:n}):null]})})},exports.FilterGroupAccordion=({heading:e,showIndicator:o,slotProps:r,children:i})=>{const s=t.useTheme();return je.jsxs(t.Accordion,{disableGutters:!0,elevation:0,square:!0,...r?.accordion,sx:n.mergeSx({"&::before":{content:"none"}},r?.accordion?.sx),children:[je.jsxs(pd,{expandIcon:je.jsx(nr,{name:"chevron-down"}),...r?.summary,children:[je.jsx(ir,{component:"p",variation:"md",color:"textPrimary",children:e}),o&&je.jsx(hd,{})]}),je.jsx(t.AccordionDetails,{...r?.details,sx:n.mergeSx({padding:0,paddingTop:s.spacing(.5)},r?.details?.sx),children:i})]})},exports.FilterPyramidGraph=({label:o,left:r,center:i,right:s,maxValue:a,maxCount:l})=>{const c=t.useTheme(),[d,u]=e.useState(!1),{totalBarWidth:p,filteredBarWidth:h,barBackground:m}=vv(r,i,"left",a,l),{totalBarWidth:x,filteredBarWidth:g,barBackground:f}=vv(s,i,"right",a,l);return je.jsxs(t.Grid2,{container:!0,columnSpacing:c.custom.padding.xs,size:"grow",sx:n.mergeSx({p:c.custom.padding.xs,width:"100%",transition:"background 0.15s ease-in-out"},d?{background:c.custom.palette.interaction.hover}:{}),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[je.jsxs(t.Grid2,{size:"grow",position:"relative",overflow:"hidden",children:[je.jsx(gv,{sx:{width:`${p}%`,right:0}}),je.jsx(fv,{initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3,ease:"easeOut"},style:{background:m,transformOrigin:"right",right:0}}),je.jsx(zd,{children:r.label?.length&&d&&je.jsx(xv.div,{initial:{opacity:0,translateX:50},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:50},transition:{duration:.2,ease:"easeOut"},style:{position:"absolute",top:0,right:"8px"},children:je.jsx(ir,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:r.label})})})]}),je.jsx(t.Grid2,{size:2,sx:{maxWidth:"48px"},children:je.jsx(gl,{variation:"raised",borderradius:"sm",sx:n.mergeSx({transition:"background 0.5s ease-in-out, color 0.5s ease-in-out"},d?{background:c.custom.palette.neutral[800]}:{}),children:je.jsx(ir,{component:"p",variation:"xxs",sx:{color:d?c.custom.palette.text.primaryInverted:c.custom.palette.text.primary,textAlign:"center"},children:o})})}),je.jsxs(t.Grid2,{size:"grow",sx:{position:"relative",overflow:"hidden"},children:[je.jsx(gv,{sx:{width:`${x}%`}}),je.jsx(fv,{initial:{width:0},animate:{width:`${g}%`},transition:{duration:.3,ease:"easeOut"},style:{background:f,transformOrigin:"left"}}),je.jsx(zd,{children:s.label?.length&&d&&je.jsx(xv.div,{initial:{opacity:0,translateX:-50},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-50},transition:{duration:.2,ease:"easeOut"},style:{position:"absolute",top:0,left:"8px"},children:je.jsx(ir,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:s.label})})})]})]})},exports.FilterRow=({label:e,selectedCount:n,checked:o=!1,onChange:r,slotProps:i,disabled:s})=>{const a=t.useTheme();return je.jsx(Cv,{dense:!0,sx:{display:"flex",px:a.spacing(a.custom.padding.sm),"&.Mui-disabled":{background:"transparent"}},onClick:()=>{s||r?.(!o)},disabled:s,children:je.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:a.custom.padding.md,width:"100%",children:[je.jsx(Zi,{variant:"secondary",value:o,disabled:s,...i?.checkboxProps,sx:{"&.Mui-disabled > span":{borderColor:`${a.custom.palette.stroke.disabled} !important`},[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}}}),je.jsx(ir,{component:"p",variation:"md",sx:{color:s?a.custom.palette.text.disabled:a.custom.palette.text.primary},children:e}),je.jsx(ir,{monospaced:!0,component:"p",variation:"sm",sx:{color:s?a.custom.palette.text.disabled:a.custom.palette.text.secondary,ml:"auto",mt:"2px",flexShrink:0},noWrap:!0,children:je.jsx(S,{value:n||0,animated:!0})})]})})},exports.FilteredItemsCard=({onClickCta:e,primaryText:n="All items have been filtered out",secondaryText:o="Remove filters to see results",ctaText:r="Clear filters"})=>je.jsx(gl,{variation:"sunken",borderradius:"lg",sx:{flexGrow:1,maxHeight:"max-content"},children:je.jsxs(ud,{children:[je.jsxs(t.Stack,{sx:{gap:e=>e.spacing(e.custom.padding.sm),alignItems:"center",[`& .${t.typographyClasses.root}`]:{textAlign:"center"}},children:[je.jsx(ir,{component:"p",weight:"bold",variation:"lg",children:n}),je.jsx(ir,{component:"p",variation:"md",sx:{color:e=>e.custom.palette.text.secondary},children:o})]}),je.jsx(Ni,{variation:"outlined",sizing:"sm",onClick:e,children:r})]})}),exports.Flag=bs,exports.FormControlLabel=ri,exports.FormGenerator=Ra,exports.GraphBar=({id:o,label:r,value:i,relativePercentage:s,respondentCount:a,tooltipContent:l,icon:c,hideIcon:d=!1,hideCheckbox:u=!1,hideUnitColumn1:p=!1,hideUnitColumn2:h=!1,animated:m=!0,checked:x=!1,disabled:g=!1,onChange:f,percentageSymbol:v=!1,compact:C,slotProps:y={}})=>{const w=t.useTheme(),[k,B]=e.useState(0),V=e.useRef(null),T=y.icon;e.useEffect((()=>{const e=k,t=s||i,n=performance.now(),o=r=>{const i=r-n,s=Math.min(i/250,1);B(e+(t-e)*(s*(2-s))),s<1&&requestAnimationFrame(o)},r=requestAnimationFrame(o);return()=>cancelAnimationFrame(r)}),[s,i]);const I=e.useCallback((()=>{!g&&f&&f(!x)}),[g,f,x]),F=p&&h,L=null!=i,P=null!=a;return je.jsx(j,{disablePadding:!0,sx:{mb:w.spacing(w.custom.margin.xs)},children:je.jsx(or,{message:l||r,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{width:"100%"}}},...y.tooltip,children:je.jsxs(Cv,{id:o,role:void 0,onClick:I,dense:!0,disabled:g,sx:{display:"flex"},children:[!d&&c&&je.jsx(z,{...T,sx:n.mergeSx({minWidth:0,mr:w.custom.margin.xs,color:w.custom.palette.text.primary},T?.sx),children:c}),je.jsxs(t.Stack,{direction:"row",width:1,gap:C?w.custom.margin.sm:w.custom.margin.md,alignItems:"center",children:[je.jsxs(M,{sx:{display:"flex",position:"relative",width:"fill-available"},children:[!g&&je.jsx(wv,{variant:"determinate",value:k,checked:x,...y.graphBar}),je.jsx(b,{disableTypography:!0,primary:je.jsx(ir,{...y.graphBarTypography,component:"p",variation:"xs",noWrap:!0,sx:n.mergeSx(y.graphBarTypography?.sx,{color:(()=>{if(!x||g)return w.custom.palette.text.disabled;return("object"==typeof y.graphBarTypography?.sx&&null!==y.graphBarTypography?.sx&&"color"in y.graphBarTypography.sx?y.graphBarTypography.sx.color:void 0)||w.palette.text.primary})()}),children:r}),sx:{my:0,position:"absolute",display:"flex",alignItems:"center",inset:0,ml:1}})]}),!F&&je.jsxs(M,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:w.custom.margin.xs,children:[!p&&je.jsx(jv,{weight:"bold",color:w.palette.text.primary,disabled:g,checked:x,...y?.unitText1,children:L?je.jsxs(je.Fragment,{children:[je.jsx(S,{value:i,animated:m}),""+(v?"%":"")]}):"-"}),!h&&je.jsx(jv,{color:w.palette.text.secondary,disabled:g,checked:x,...y?.unitText2,children:P?je.jsx(S,{value:a,animated:m}):"-"})]}),!u&&je.jsx(M,{display:"flex",justifyContent:"space-between",alignItems:"center",children:je.jsx(Zi,{id:`${o}-checkbox`,variant:"secondary",checked:!g&&x,disabled:g,...y.checkbox,checkboxLabel:void 0,inputRef:V,sx:n.mergeSx(y.checkbox?.sx,{[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}})})})]})]})})})},exports.GridOverlay=({breakpoint:n=!0,maxWidth:o=!1,position:r="fixed",visible:i=!1})=>{const s=Array.from({length:6},((e,t)=>t)),a=Fr(),[l,c]=e.useState(i);return Cs("cmd+g",(e=>{e.preventDefault(),console.log("Command+G keyboard shortcut triggered"),c(!l)})),l&&je.jsxs(Ha,{position:r,children:[je.jsx($a,{maxWidth:!!o&&"xl",children:je.jsx(Da,{children:je.jsxs(t.Grid2,{container:!0,spacing:2,sx:{flex:1},children:[s.map((e=>je.jsx(t.Grid2,{sx:{display:{sm:"none",md:"block"}},size:"grow",children:je.jsx(Oa,{})},`grid-1-${e}`))),s.map((e=>je.jsx(t.Grid2,{sx:{display:{sm:"block"}},size:"grow",children:je.jsx(Oa,{})},`grid-2-${e}`)))]})})}),n&&je.jsx(_a,{children:je.jsx(ir,{variation:"md",component:"p",weight:"bold",children:a})})]})},exports.Header=({backAction:e,title:o,showEditTitleOnlyOnHover:r=!0,breadcrumbLinks:i,buttons:s,controlBar:a,sx:l,slotProps:c,loading:d})=>{const u={...c,container:{maxWidth:!1,...c?.container}};return je.jsxs(je.Fragment,{children:[je.jsx(bv,{sx:n.mergeSx({justifyContent:"space-between",position:"sticky",top:"0",zIndex:999},l),children:je.jsx(t.Container,{...u.container,children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsxs(zv,{sx:{justifyContent:"space-between",py:1,height:61},children:[je.jsxs(zv,{children:[void 0!==e&&je.jsx(Ks,{sizing:"lg",icon:je.jsx(nr,{name:"arrow-left",size:20}),sx:{color:e=>e.custom.palette.icon.primary},onClick:e}),je.jsxs(zv,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,...r&&{":hover .Header__TitleIconButton":{opacity:1}}},children:[d?je.jsx(Nl,{width:256,sx:{fontSize:xr.lg,lineHeight:1.4}}):je.jsx(ir,{variation:"lg",component:"p",weight:"bold",children:o}),void 0!==u?.titleIconButton?.onClick&&je.jsx(Ks,{icon:je.jsx(nr,{name:"edit"}),sizing:"md",sx:{my:"-4px",...r&&{opacity:0,transition:"opacity 0.3s ease"}},className:"Header__TitleIconButton",...u?.titleIconButton})]}),i&&je.jsx(je.Fragment,{children:d?je.jsx(Nl,{width:200,height:17,sx:{fontSize:xr.lg,lineHeight:1.4,mt:.5}}):je.jsx(Ti,{links:i})})]})]}),s&&je.jsx(zv,{children:s})]})})})})}),a&&je.jsx(kv,{children:je.jsx(t.Container,{...u.container,children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsx(Sv,{children:je.jsx(Mv,{children:a})})})})})})]})},exports.Html=ks,exports.HtmlParser=Wa,exports.Icon=nr,exports.IconButton=Ks,exports.IconButtonBase=Us,exports.IconButtonGroup=Xs,exports.Image=Za,exports.InputFieldBase=Ui,exports.InputLabel=Ss,exports.InputLabelHelp=ss,exports.KpiDataPopover=({indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:r,combinedAveragePercent:i,linkedQuestions:s})=>je.jsxs(gl,{variation:"overlay",borderradius:"lg",sx:{padding:e=>e.spacing(e.custom.padding.md),paddingBottom:0,maxHeight:"384px",width:"320px",overflowY:"scroll",backgroundColor:e=>e.custom.palette.surface.overlay},children:[je.jsxs(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),sx:{},children:[je.jsx(Vv,{indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:r,combinedAveragePercent:i}),je.jsx(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),children:s&&s.map(((e,t)=>je.jsx(Uv,{...e},`${t}-${e.questionTitle}`)))})]}),je.jsx(t.Box,{sx:{position:"sticky",bottom:0,height:"24px",width:"100%",background:e=>`linear-gradient(0deg, ${e.custom.palette.surface.overlay} 0%, rgba(0, 0, 0, 0.00) 100%)`}})]}),exports.KpiIndicator=Wc,exports.Label=Ka,exports.Likert=Ls,exports.Link=Si,exports.Loader=({fullscreen:e})=>e?je.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100dvw",height:"calc(100dvh - 80px)",background:e=>e.custom.palette.white},children:je.jsx(t.Box,{sx:{width:200},children:je.jsx(Ya,{})})}):je.jsx(Ya,{}),exports.Logo=e=>je.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:je.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.LoopItem=({onClick:e,id:n,thumbnail:o,title:r,active:i=!1,loading:s,testCount:a,draftCount:l,cta:c})=>{const d=t.useTheme();return s?je.jsxs(qv,{onClick:e,active:i,"data-id":n,cta:c,children:[je.jsx(Yv,{id:"image-holder",children:je.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),je.jsx(Xv,{children:je.jsxs(t.Box,{display:"flex",gap:1,flexDirection:"column",width:2/3,alignSelf:"center",children:[je.jsx(Nl,{height:19}),je.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[je.jsx(Nl,{height:16}),je.jsx(Nl,{height:16})]})]})})]}):je.jsxs(qv,{onClick:e,active:i,"data-id":n,cta:c,children:[je.jsx(Yv,{id:"image-holder",children:je.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),je.jsxs(Xv,{children:[je.jsx(Jv,{component:"p",variation:"sm",weight:"bold",active:i,children:r}),je.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[!a&&!l&&je.jsx(eC,{component:"p",variation:"sm",active:i,children:"Empty"}),!!a&&je.jsx(eC,{component:"p",variation:"sm",active:i,children:`${a} ${Gv("Test",a)}`}),!!l&&je.jsx(eC,{component:"p",variation:"sm",active:i,children:`${l} ${Gv("Draft",l)}`})]})]}),c&&je.jsx(Qv,{children:c})]})},exports.LoopItemEmpty=nC,exports.LoopsAiButton=Qa,exports.Markdown=({typographyProps:e={variation:"lg",component:"p"},children:t=""})=>je.jsx(w,{options:{overrides:{p:{component:ir,props:e},ul:{component:({children:e,...t})=>je.jsx("ul",{...t,children:e}),props:{style:{color:"object"==typeof e?.sx&&e?.sx&&"color"in e.sx&&"string"==typeof e.sx.color?e.sx.color:"inherit"}}}},forceBlock:!0,forceWrapper:!0},children:t}),exports.Menu=kl,exports.ModalActionsWrapper=Ml,exports.ModalContentWrapper=zl,exports.ModalLayout=({title:e,subtitle:n,body:o,children:r,extraAction:i,hideCloseButton:s,contentPadding:a,handleClose:l})=>{const c=t.useTheme();return je.jsxs(gl,{variation:"overlay",sx:{minWidth:320,width:"100%",maxWidth:600,overflow:"hidden",position:"relative"},children:[je.jsxs(t.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:c.custom.margin.md,padding:c.custom.padding.md,paddingLeft:c.custom.padding.lg,children:[je.jsxs(t.Stack,{children:["string"==typeof e?je.jsx(ir,{component:"p",variation:"xl",weight:"bold",children:e}):e,n&&je.jsx(ir,{component:"p",variation:"md",sx:{color:c.custom.palette.text.secondary},children:n})]}),je.jsxs(t.Stack,{direction:"row",gap:c.spacing(c.custom.margin.md),height:32,children:[i,!s&&je.jsx(Ks,{sizing:"md",icon:je.jsx(nr,{name:"close"}),sx:{color:c.custom.palette.icon.primary},onClick:l})]})]}),o&&je.jsx(zl,{contentPadding:!!a,children:je.jsx(t.Stack,{gap:c.custom.padding.md,sx:{maxWidth:600},children:"string"==typeof o?je.jsx(ir,{component:"p",variation:"md",children:o}):o})}),r&&je.jsx(zl,{contentPadding:!!a,children:r})]})},exports.Navigation=({logoLink:e,isMobile:n,nudgeProps:o,primaryMenuItemProps:r,secondaryMenuItemProps:i,sizing:s="lg",tertiaryMenuItemProps:a,toggleMenuOnClick:l=()=>{},userMenuProps:c})=>{const d=t.useTheme();return je.jsxs(lC,{navigationSizing:s,children:[je.jsx(aC,{logoLink:e,navigationSizing:s,toggleMenuOnClick:l,isMobile:n}),je.jsx(cC,{children:je.jsxs(t.Stack,{sx:{gap:4,justifyContent:"space-between",width:"100%"},children:[!!r?.length&&je.jsx(t.Stack,{sx:{gap:"lg"===s?.5:2,width:"100%"},children:r.map(((e,t)=>je.jsx(Ll,{navigationSizing:s,...e},`primary-menu-item-${t}`)))}),je.jsxs(t.Stack,{sx:{gap:2},children:[o?.title&&je.jsx(Hl,{navigationSizing:s,...o}),!!i?.length&&i.map(((e,t)=>je.jsx(Ll,{navigationSizing:s,...e,label:"Help center"===e.label&&"sm"===s?"Help":e.label},`secondary-menu-item-${t}`))),je.jsx(t.Divider,{sx:{color:d.custom.palette.stroke.default}}),je.jsx(oc,{rounded:"sm"===s,...c}),!!a?.length&&je.jsx(dC,{children:a.map(((e,t)=>je.jsx(Ll,{navigationSizing:s,...e},`tertiary-menu-item-${t}`)))})]})]})})]})},exports.NavigationButton=Ll,exports.Nudge=Hl,exports.NumberField=ea,exports.OnboardingCard=({cardTitle:n,cardSubtitle:r,welcomeImageUrl:i,welcomeImageAltDescription:s,items:a=[]})=>{const[l,c]=e.useState(!0),d=Fr(),u=()=>c(!l),p=a.length,h=a.filter((e=>e.complete)).length,m=h/p*100;return je.jsxs(gl,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"xl"===d?"row":"column",gap:e=>({sm:e.spacing(e.custom.padding.md),lg:e.spacing(e.custom.margin.lg)}),padding:e=>({sm:e.spacing(e.custom.margin.md),lg:e.spacing(e.custom.margin.lg)})},children:[je.jsxs(uC,{children:[je.jsx(t.Box,{component:"img",src:i,alt:s,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),je.jsx(ir,{component:"h1",variation:"md",fontWeight:500,children:n}),je.jsx(hC,{component:"p",variation:"lg",children:r})]}),je.jsxs(pC,{children:[je.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[je.jsx(ly,{completed:h,total:p}),l&&je.jsx(Ks,{sizing:"sm",variation:"outlined",icon:je.jsx(o.ExpandLess,{}),onClick:u})]}),je.jsx(_l,{variation:"determinate",value:m}),je.jsx(ay,{expanded:l,onToggleExpanded:u,items:a})]})]})},exports.PaginationControl=kc,exports.Pill=Dl,exports.PlanFeatureTable=({currencySymbol:e,data:n,loading:o,tier1MinimumTerm:r,tier1Price:i,tier1QuestionLimit:s,tier1RespondentPrice:a,tier2MinimumTerm:l,tier2Price:c,tier2QuestionLimit:d,tier2RespondentPrice:u,tier3MinimumTerm:p,tier3Price:h,tier3QuestionLimit:m,tier3RespondentPrice:x,tier4MinimumTerm:g,tier4Price:f,tier4QuestionLimit:v,tier4RespondentPrice:C,variation:y="default"})=>{if(o)return je.jsx(cc,{});const w=t.useTheme(),j={...sr,...n},b=t=>"number"==typeof t?`${e}${new Intl.NumberFormat("en-GB").format(t)}`:t||"",k=t=>t.replace("{{currencySymbol}}",e||"").replace("{{tier1MinimumTerm}}",r?`${r} months`:"No minimum term").replace("{{tier2MinimumTerm}}",l?`${l} months`:"No minimum term").replace("{{tier3MinimumTerm}}",p?`${p} months`:"No minimum term").replace("{{tier4MinimumTerm}}",g?`${g} months`:"No minimum term").replace("{{tier1Price}}",b(i)).replace("{{tier2Price}}",b(c)).replace("{{tier3Price}}",b(h)).replace("{{tier4Price}}",b(f)).replace("{{tier1QuestionLimit}}",s?String(s):"").replace("{{tier2QuestionLimit}}",d?String(d):"").replace("{{tier3QuestionLimit}}",m?String(m):"").replace("{{tier4QuestionLimit}}",v?String(v):"").replace("{{tier1RespondentPrice}}",b(a)).replace("{{tier2RespondentPrice}}",b(u)).replace("{{tier3RespondentPrice}}",b(x)).replace("{{tier4RespondentPrice}}",b(C)),S=Object.values(j.headings).map((({heading:e,pricing:t})=>({heading:e,pricing:k(t)}))),M=[...Object.values(j.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},tier1:k(e.tier1),tier2:k(e.tier2),tier3:k(e.tier3),tier4:k(e.tier4)})))];return je.jsxs(t.Stack,{sx:{backgroundColor:w.custom.palette.surface.default,borderRadius:w.spacing(w.custom.radius.xl),boxShadow:w.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[je.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[je.jsx(t.Box,{sx:{width:160}}),S.map((({heading:e,pricing:n})=>je.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[je.jsx(ir,{variation:"platform"===y?"lg":"xxl",component:"p",weight:"bold",children:e}),je.jsx(ir,{variation:"platform"===y?"sm":"md",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]},e)))]}),M.map((e=>je.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(even)":{backgroundColor:w.custom.palette.surface.sunken}},children:[je.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:je.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&je.jsx(or,{message:e.name.description,children:je.jsx(t.Box,{sx:{alignItems:"center",color:w.custom.palette.icon.secondary,display:"flex"},children:je.jsx(nr,{name:"info",size:24})})}),je.jsx(ir,{variation:"platform"===y?"md":"lg",component:"p",children:e.name.heading})]})}),je.jsx(uc,{text:e.tier1}),je.jsx(uc,{text:e.tier2}),je.jsx(uc,{text:e.tier3}),je.jsx(uc,{text:e.tier4})]},e.key)))]})},exports.PlanTierCard=({amount:n,billingType:o,body:r,ctaEvent:i=()=>{},ctaLink:s="#",ctaTarget:a="_self",ctaText:l,ctaVariation:c="primary",currencySymbol:d,currentPlan:u,features:p=[],heading:h,label:m,loading:x,perMonth:g,respondentsTitle:f,respondentsFeatures:v,saving:C,sectionHeights:y,updateSectionHeight:w})=>{const j=t.useTheme(),b=Fr(),{width:k}=vs(),S=e.useRef(null),M=e.useRef(null),z=e.useRef(null),B=e.useRef(null),[V,T]=e.useState("sm");return x?je.jsx(gc,{}):(e.useEffect((()=>{e.startTransition((()=>{if(y&&w){b!==V&&(w("headerHeight",0),w("bodyHeight",0),w("respondentCardHeight",0),w("bottomHeight",0));[{ref:S,key:"headerHeight"},{ref:M,key:"bodyHeight"},{ref:z,key:"respondentCardHeight"},{ref:B,key:"bottomHeight"}].forEach((({ref:e,key:t})=>{e.current?.offsetHeight&&e.current.offsetHeight>y[t]&&w(t,e.current.offsetHeight)}))}}))}),[b,V,k]),je.jsxs(xc.PlanTierCard,{children:[je.jsxs(xc.Top,{children:[je.jsxs(xc.Head,{ref:S,height:y?.headerHeight,children:[je.jsxs(xc.PlanTitle,{children:[je.jsx(ir,{variation:"md",component:"h1",weight:"bold",children:h}),m&&je.jsx(Ka,{body:m,weight:"heavy",sx:{backgroundColor:e=>e.custom.palette.icon.primary,color:e=>e.custom.palette.text.primaryInverted}})]}),je.jsxs(xc.Billing,{children:[je.jsxs(xc.Price,{children:[je.jsxs(ir,{variation:"lg",component:"h1",weight:"bold",sx:{fontFamily:e=>e.typography.fontFamily,lineHeight:1},children:[d,n]}),g&&je.jsx(ir,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.secondary,lineHeight:1},children:g})]}),o&&je.jsx(ir,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.secondary},children:o})]}),C&&je.jsx(yc,{body:C,weight:"heavy"})]}),je.jsx(xc.Body,{ref:M,height:y?.bodyHeight,children:je.jsx(ir,{variation:"lg",component:"p",children:r})}),f&&je.jsx(Cc,{ref:z,height:y?.respondentCardHeight,respondentsTitle:f,respondentsFeatures:v})]}),je.jsxs(xc.Bottom,{ref:B,height:y?.bottomHeight,children:[p?.length&&je.jsx(xc.FeatureList,{children:p.map(((e,t)=>je.jsx(hc,{feature:e},`${h}-feature-${t}`)))}),!u&&je.jsx(Si,{href:s,title:l,target:a,onClick:()=>{h&&i(h)},sx:{"&:hover":{cursor:"pointer"}},children:je.jsx(Ni,{fullWidth:!0,variation:c,sizing:"lg",disabled:u,children:l})})]})]}))},exports.Popper=vl,exports.PoweredByWatermarkLogo=()=>je.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[je.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:je.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"})}),je.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[je.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:je.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"})}),je.jsx("defs",{children:je.jsx("clipPath",{id:"clip0_900_1816",children:je.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=qs,exports.ProgressBar=_l,exports.ProjectItem=e=>"list"===e.viewType?je.jsx(jy,{...e}):je.jsx(wy,{...e}),exports.ProjectItemEmpty=({onClick:e,viewType:n,title:o})=>{const r=t.useTheme();return"list"===n?je.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${r.custom.palette.stroke.light}`},children:je.jsxs(xy,{component:"div",onClick:e,sx:{display:"flex",gap:r.spacing(r.custom.margin.sm),alignItems:"center",padding:r.spacing(r.custom.padding.xs)},children:[je.jsx(gy,{sx:{height:72,width:108},"data-id":"image-container",children:je.jsx(Cy,{viewType:n,children:je.jsx(nr,{name:"add"})})}),je.jsx(vy,{sx:{overflow:"hidden",pl:r.spacing(r.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:je.jsx(t.Stack,{gap:r.spacing(r.custom.margin.xs),children:je.jsx(hy,{title:o,maxLines:1})})})]})}):je.jsx(my,{sx:{height:"100%"},children:je.jsxs(xy,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[je.jsx(gy,{"data-id":"image-container",sx:{width:"100%"},children:je.jsx(Cy,{viewType:n,children:je.jsx(nr,{name:"add"})})}),je.jsx(vy,{children:je.jsx(hy,{title:o,maxLines:2})})]})})},exports.QuestionBlock=({preQuestionText:e,questionText:n,questionType:o,supportText:r,slotProps:i,loading:s})=>{const a=t.useTheme();return s?je.jsxs(Sy,{children:[je.jsx(ky,{loading:!0}),je.jsxs(t.Stack,{gap:1,sx:{padding:a.spacing(a.custom.padding.md)},children:[je.jsx(Nl,{width:"100%",height:22}),je.jsx(Nl,{width:"100%",height:44}),je.jsx(Nl,{width:"100%",height:66})]})]}):je.jsxs(Sy,{children:[je.jsx(ky,{type:o}),je.jsxs(My,{children:[e&&je.jsx(ir,{variation:"md",component:"p",color:a.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),je.jsx(ir,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:n}),r&&je.jsx(Wa,{children:r})]})]})},exports.QuestionLabel=ky,exports.QuestionSelector=zy,exports.Radio=ds,exports.RadioGroup=ta,exports.Rank=ma,exports.RichTextField=ga,exports.SearchInput=Vy,exports.SectionHeader=({loading:e,...t})=>je.jsx(je.Fragment,{children:e?je.jsx(Py,{...t}):je.jsx(Ly,{...t})}),exports.Select=oi,exports.SentimentArrow=Rc,exports.Skeleton=Nl,exports.Slider=ba,exports.SortableList=ha,exports.StarRating=Sa,exports.Surface=gl,exports.Switch=si,exports.Tab=({active:e,animated:n,label:o,sentimentScore:r,stat:i,title:s,onClick:a})=>{const l=t.useTheme();return je.jsxs(Ay,{layout:n,active:e,onClick:a,children:[je.jsx(ir,{component:"p",variation:"sm",weight:"bold",children:s}),je.jsxs(Ey,{layout:n,children:["number"==typeof r?je.jsxs(je.Fragment,{children:[je.jsx(ir,{monospaced:!0,variation:"md",component:"p",weight:"bold",sx:{lineHeight:"160%"},children:je.jsx(S,{value:r,format:{maximumFractionDigits:1},animated:n})}),je.jsx(Rc,{sentimentScore:r})]}):je.jsx(ir,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:je.jsx(je.Fragment,{children:"number"==typeof i?je.jsx(S,{value:i,format:{maximumFractionDigits:1},animated:n}):"-"})}),!!o&&je.jsx(ir,{component:"p",variation:"xs",color:l.custom.palette.text.secondary,clamp:1,sx:{wordBreak:"break-all"},children:o})]})]})},exports.TestItem=({animated:o=!0,status:r,menuItems:i,title:s,tags:a,stats:l,user:c,slotProps:d,loading:u=!1,...p})=>{const[h,m]=e.useState(!1);return je.jsx(gl,{variation:"raised",borderradius:"lg",...p,sx:n.mergeSx({padding:e=>e.spacing(e.custom.padding.md),border:e=>`1px solid ${e.custom.palette.stroke.light}`,width:"100%",cursor:"pointer","&:hover .TestItem__Menu":{opacity:1}},p.sx),children:je.jsxs(t.Stack,{component:"article",gap:2,children:[je.jsxs(t.Stack,{component:"header",gap:1,justifyContent:"space-between",children:[je.jsxs(t.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[u?je.jsx(Nl,{sx:{width:90,height:32}}):je.jsx(id,{status:r,...d?.status}),!u&&Boolean(i?.length)&&je.jsx(kl,{trigger:je.jsx(Ks,{icon:je.jsx(nr,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestItem__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:e=>`${e.custom.palette.interaction.press} !important`,opacity:1}}}),bindOn:["toggle"],menuItems:i,width:128,offset:[0,8],placement:"bottom-end",...d?.menu})]}),u?je.jsx(Nl,{}):je.jsx(ir,{component:"h1",weight:"bold",...d?.title,sx:n.mergeSx({fontSize:e=>e.custom.typography.body.xl},d?.title?.sx),children:s})]}),je.jsx(t.Box,{children:u?je.jsx(t.Box,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>je.jsx(Nl,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(a?.length)&&je.jsx(I.TruncatedList,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...h&&{maxHeight:"none"}},alwaysShowTruncator:h,renderTruncator:({hiddenItemsCount:e})=>e>0?je.jsx(Ka,{body:`+${e}`,weight:"light",onClick:e=>{e.stopPropagation(),m(!0)},...d?.tagsExpand,sx:n.mergeSx({background:e=>e.custom.palette.neutral[50]},d?.tagsExpand?.sx)}):je.jsx(Ks,{sizing:"sm",icon:je.jsx(nr,{name:"chevron-up",size:16}),onClick:e=>{e.stopPropagation(),m(!1)},...d?.tagsCollapse,sx:n.mergeSx({color:e=>e.custom.palette.icon.primary},d?.tagsCollapse?.sx)}),children:a.map((e=>je.jsx(Ka,{body:e,weight:"light",...d?.pill,sx:n.mergeSx({background:e=>e.custom.palette.neutral[50]},d?.pill?.sx)},e)))})}),!u&&l?.progress&&je.jsx(gl,{variation:"sunken",borderradius:"md",sx:{border:e=>`1px solid ${e.custom.palette.neutral[100]}`,padding:e=>e.spacing(e.custom.padding.md)},children:je.jsxs(t.Stack,{gap:2,children:[je.jsx(_l,{variation:"determinate",value:l.progress.percentage}),je.jsxs(t.Box,{gap:{sm:.5,md:1},justifyContent:"stretch",sx:e=>({display:"grid",[e.breakpoints.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.breakpoints.down("lg")]:{gridTemplateColumns:"auto"},[e.containerQueries.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.containerQueries.down("lg")]:{gridTemplateColumns:"auto"}}),children:[je.jsx(t.Box,{flexBasis:0,flexGrow:1,children:je.jsx(Ry,{animated:o,label:"Completed",primaryText:l.progress.completed.toString(),secondaryText:`of ${l.progress.total}`})}),je.jsx(t.Box,{flexBasis:0,flexGrow:1,children:je.jsx(Ry,{animated:o,label:"Incomplete",primaryText:l.progress.incomplete.toString(),secondaryText:`${l.progress.incompletePercentage}%`})}),je.jsx(t.Box,{flexBasis:0,flexGrow:1,children:je.jsx(Ry,{animated:o,label:"Duration",primaryText:l.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==r&&je.jsxs(t.Box,{display:"flex",justifyItems:"center",gap:.3,children:[je.jsx(ir,{component:"p",sx:{fontSize:e=>e.custom.typography.body.sm,color:e=>l?.progress?.estimatedTimeToComplete?e.custom.palette.text.secondary:e.custom.palette.text.placeholder,"& > strong":{color:e=>e.custom.palette.text.primary}},children:l.progress.estimatedTimeToComplete?je.jsxs(je.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(r)," ",je.jsx("strong",{children:l.progress.estimatedTimeToComplete})]}):je.jsx(je.Fragment,{children:"Not enough data to estimate completion time"})}),l.progress.estimatedTimeToComplete&&je.jsx(or,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:je.jsx(t.Box,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:je.jsx(nr,{name:"info",size:16})})})]})]})}),je.jsxs(t.Box,{component:"footer",display:"flex",flexDirection:"row",justifyContent:c?"space-between":"end",gap:1,children:[c&&je.jsx(t.Box,{display:"flex",alignItems:"center",gap:1,children:u?je.jsxs(je.Fragment,{children:[je.jsx(Nl,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),je.jsx(Nl,{sx:{width:100}})]}):je.jsx(je.Fragment,{children:je.jsx(ir,{component:"p",clamp:1,sx:{fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.secondary},children:c.activityDescription})})}),!u&&"draft"!==r&&je.jsxs(t.Box,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[je.jsx(Hy,{animated:o,iconName:"data-bar",label:"answers",value:l?.count?.answers??0}),je.jsx(Hy,{animated:o,iconName:"comment-filled",label:"comments",value:l?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},exports.TestKPICard=$y,exports.TextBarDivider=({typographyProps:e,text:o,sx:r})=>{const i=t.useTheme();return je.jsx(t.Box,{sx:n.mergeSx(r,{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:je.jsx(ir,{align:"center",variation:"sm",component:"p",...e,children:o})})},exports.TextField=Gi,exports.Textarea=za,exports.ThemeContext=pw,exports.ThemeProvider=({mode:e="light",screenSize:n="lg",direction:o="ltr",ignoreCacheProvider:i,children:s})=>{const a=hw(e,n,o),l=()=>je.jsxs(r.ThemeProvider,{theme:a.theme,children:[je.jsx(t.CssBaseline,{}),je.jsx(zw,{}),s]});return je.jsx(pw.Provider,{value:a,children:i?l():je.jsx(A.CacheProvider,{value:"rtl"===o?Bw:Vw,children:l()})})},exports.TickGroup=({heading:e,ticks:n})=>je.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4}},children:[je.jsx(ir,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),je.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:n.map(((n,o)=>je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[je.jsx(nr,{name:"badge-tick",size:32}),je.jsx(ir,{variation:"xxl",component:"p",children:n})]},`tick-group-${e}-${o}`)))})]}),exports.Toast=({buttons:e,message:n,status:o="neutral",variation:r="sm"})=>{const i=t.useTheme();return je.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:je.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===r?"row":"column",gap:2},children:[je.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&je.jsx(Zl,{status:o}),je.jsx(t.Box,{sx:{display:"flex"},children:je.jsx(ir,{variation:"md",component:"p",sx:{px:1,pt:.5},children:n})})]}),e&&je.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=or,exports.TrialCard=({promoHeadline:e,promoDescription:t,ctaText:n,ctaFn:o})=>je.jsxs(Yl.TrialCard,{gradient:"tone1",texture:"noise1",children:[je.jsxs(Yl.Top,{sx:{alignItems:"start"},children:[je.jsx(Xl,{body:e,weight:"heavy",icon:je.jsx(nr,{name:"gift"})}),je.jsx(ir,{component:"p",variation:"lg",sx:{maxWidth:{lg:600,md:"initial"},color:e=>e.custom.palette.text.lockedWhite},children:t})]}),je.jsx(Yl.CtaButtonContainer,{children:je.jsx(Yl.CtaButton,{variation:"secondary",onClick:o,children:n})})]}),exports.Typography=ir,exports.UserMenu=oc,exports.VideoControls=aw,exports.VideoModal=({modalVisible:e=!1,showModal:n,video:o})=>je.jsx(t.Modal,{closeAfterTransition:!0,onClose:()=>n(!1),open:e,hideBackdrop:!0,children:je.jsx(t.Fade,{in:e,children:je.jsxs(ic,{children:[je.jsx(t.Backdrop,{open:e,onClick:()=>n(!1)}),je.jsx(sc,{children:je.jsx(ac,{children:je.jsx(lc,{autoPlay:!0,controls:!0,controlsList:"nodownload noremoteplayback noplaybackrate",disablePictureInPicture:!0,muted:!0,preload:"auto",src:o,tabIndex:-1})})}),je.jsx(rc,{children:je.jsx(t.Container,{children:je.jsx(Ks,{icon:je.jsx(nr,{name:"close",size:24}),variation:"outlined",shape:"round",onClick:()=>n(!1)})})})]})})}),exports.backgroundCreator=Ir,exports.base=ie,exports.blue=G,exports.blueRamp=te,exports.boxShadow=ue,exports.breakpoints=oe,exports.buttonHeightMap=wr,exports.buttonInteraction=yr,exports.chooseArticle=ar,exports.compareArrayMembers=function(e,t){const n=new Set(e),o=new Set(t);return e.every((e=>o.has(e)))&&t.every((e=>n.has(e)))},exports.customTheme=cw,exports.darkNeutral=D,exports.darkNeutralAlpha=_,exports.defaultInputValidation=lr,exports.easing=pe,exports.elevation=ce,exports.elevationFilter=de,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.fonts=xe,exports.generateRamp=Y,exports.getButtonSizing=Sr,exports.getButtonTypography=kr,exports.getIconSizing=br,exports.getKpiIndicatorColor=_c,exports.green=q,exports.greenRamp=ne,exports.iconButtonHelpers=Ns,exports.iconSizeMap=tr,exports.isButton=fs,exports.mapKpiColorSchemeByInteger=e=>["purple","peach","blue","yellow","green","red"][e],exports.margin=se,exports.neutral=$,exports.neutralAlpha=O,exports.neutralRamp=K,exports.outlined=fr,exports.padding=ae,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.peach=Z,exports.peachRamp=J,exports.primary=Cr,exports.purple=W,exports.purpleRamp=X,exports.radius=le,exports.red=N,exports.redRamp=Q,exports.secondary=vr,exports.semantic=he,exports.space=re,exports.subtle=gr,exports.useBreakpoint=Fr,exports.useDropdownMenu=()=>{const[t,n]=e.useState(null);return{open:Boolean(t),handleClick:e=>{n(e.currentTarget)},handleClose:()=>{n(null)},anchorEl:t}},exports.useKeyCombo=Cs,exports.usePrevious=ys,exports.useScreenSize=vs,exports.useTheme=()=>{const t=e.useContext(pw);return function(e,t){if(!e){if(dw)throw new Error(uw);var n=t,o="".concat(uw,": ").concat(n);throw new Error(o)}}(t,"useTheme must be used within a ThemeProvider"),t},exports.useThemeBuilder=hw,exports.yellow=U,exports.yellowRamp=ee;
23
+ */function PC(){if(wC)return yC;wC=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return yC=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(a[c]=i[c]);if(e){s=e(i);for(var d=0;d<s.length;d++)n.call(i,s[d])&&(a[s[d]]=i[s[d]])}}return a},yC}function AC(){if(bC)return jC;bC=1;return jC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function EC(){return SC?kC:(SC=1,kC=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var RC=LC();xC.exports=function(){if(VC)return BC;VC=1;var e=LC(),t=PC(),n=AC(),o=EC(),r=function(){if(zC)return MC;zC=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=AC(),n={},o=EC();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(o(r,c)){var d;try{if("function"!=typeof r[c]){var u=Error((a||"React class")+": "+s+" 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 u.name="Invariant Violation",u}d=r[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+d.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},MC=r}(),i=function(){};function s(){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){}}),BC=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:m(s),arrayOf:function(e){return m((function(t,o,r,i,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[o];if(!Array.isArray(a))return new h("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,r,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,o,r){var i=e[t];return a(i)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,o,r,i){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+r+" `"+i+"` of type `"+v(s)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,o,r,i){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+r+" `"+i+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+o+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,o,r){return f(e[t])?null:new h("Invalid "+o+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,r,i,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[r],c=v(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(o(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,o,r,i){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+r+" `"+i+"` of value `"+String(s)+"` supplied to `"+o+"`, 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."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;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 "+y(r)+" at index "+t+"."),s}return m((function(t,r,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,r,i,s,a,n);if(null==d)return null;d.data&&o(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,o,r,i,s){var a=t[o],l=v(a);if("object"!==l)return new h("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(r,i,s,c,C(d));var u=d(a,c,r,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(r,i,s,a,l){var c=r[i],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},r[i],e);for(var p in u){var m=e[p];if(o(e,p)&&"function"!=typeof m)return g(s,a,l,p,C(m));if(!m)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=m(c,p,s,a,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,s,a,c,u,p,m){if(c=c||d,p=p||a,m!==n){if(l){var x=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 x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&o<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,o++)}}return null==s[a]?r?null===s[a]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,p)}var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function x(e){return m((function(t,n,o,r,i,s){var a=t[n];return v(a)!==e?new h("Invalid "+r+" `"+i+"` of type `"+C(a)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,o,r){return new h((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function f(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(f);if(null===e||a(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 n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!f(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!f(r[1]))return!1}return!0;default:return!1}}function v(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 C(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=r,u.resetWarningCache=r.resetWarningCache,u.PropTypes=u,u},BC}()(RC.isElement,!0)}else xC.exports=function(){if(IC)return TC;IC=1;var e=AC();function t(){}function n(){}return n.resetWarningCache=t,TC=function(){function o(t,n,o,r,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var HC=ge(xC.exports);function $C(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=$C(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function DC(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=$C(e))&&(o&&(o+=" "),o+=t);return o}const OC=e=>e,_C=(()=>{let e=OC;return{configure(t){e=t},generate:t=>e(t),reset(){e=OC}}})(),WC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function NC(e,t,n="Mui"){const o=WC[t];return o?`${n}-${o}`:`${_C.generate(e)}-${t}`}const ZC=H.createContext({});function UC(e){return NC("MuiTimeline",e)}function GC(e){return"alternate-reverse"===e?"positionAlternateReverse":`position${V.capitalize(e)}`}"production"!==process.env.NODE_ENV&&(ZC.displayName="TimelineContext"),function(e,t,n="Mui"){const o={};t.forEach((t=>{o[t]=NC(e,t,n)}))}("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const qC=r.styled("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[GC(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),KC=H.forwardRef((function(e,t){const n=r.useThemeProps({props:e,name:"MuiTimeline"}),{position:o="right",className:i,...s}=n,a={...n,position:o},l=(e=>{const{position:t,classes:n}=e;return function(e,t,n){const o={};for(const r in e){const i=e[r];let s="",a=!0;for(let e=0;e<i.length;e+=1){const o=i[e];o&&(s+=(!0===a?"":" ")+t(o),a=!1,n&&n[o]&&(s+=" "+n[o]))}o[r]=s}return o}({root:["root",t&&GC(t)]},UC,n)})(a),c=H.useMemo((()=>({position:o})),[o]);return je.jsx(ZC.Provider,{value:c,children:je.jsx(qC,{className:DC(l.root,i),ownerState:a,ref:t,...s})})}));"production"!==process.env.NODE_ENV&&(KC.propTypes={children:HC.node,classes:HC.object,className:HC.string,position:HC.oneOf(["alternate-reverse","alternate","left","right"]),sx:HC.oneOfType([HC.arrayOf(HC.oneOfType([HC.func,HC.object,HC.bool])),HC.func,HC.object])});const YC=t.styled(B.TimelineDot)((({theme:e,completed:t})=>({width:"24px",height:"24px",backgroundColor:e.custom.palette.surface.raised,boxShadow:"none",border:"none",padding:0,margin:"4px 0",...!t&&{border:`2px dashed ${e.custom.palette.icon.disabled}`}}))),XC=t.styled(t.Box)((({theme:e})=>({display:"flex",flexDirection:"column",padding:`0 0 ${e.spacing(e.custom.padding.md)} ${e.spacing(e.custom.padding.sm)}`}))),QC=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),JC=t.styled(Si)((({theme:e})=>({[`&.${t.linkClasses.root}`]:{...QC(e),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.link},"> .MuiTypography-root":{textAlign:"start"},"&:hover":{"> .MuiTypography-root:first-child":{textDecoration:"underline"},"& .MuiSvgIcon-root":{color:e.custom.palette.icon.linkHover}}}}))),ey=t.styled(t.Box)((({theme:e})=>({[`&.${t.boxClasses.root}`]:{...QC(e),"& .MuiTypography-root":{color:"inherit"}}}))),ty=t.styled(ir)((()=>({color:"inherit",fontWeight:500,fontSize:xr.lg}))),ny=t.styled(ir)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),oy=({children:e,complete:t,onClick:n})=>t?je.jsx(ey,{children:e}):je.jsx(JC,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),ry=({complete:e,title:t,description:n,onClick:o})=>je.jsx(XC,{children:je.jsxs(oy,{complete:e,onClick:o,children:[je.jsx(ty,{component:"p",variation:"lg",children:t}),!e&&je.jsx(nr,{name:"arrow-right",size:16}),!e&&n&&je.jsx(ny,{variation:"lg",component:"p",children:n})]})}),iy=({item:e,showConnector:t})=>{const{complete:n,title:o,description:r,onClick:i}=e;return je.jsxs(B.TimelineItem,{children:[je.jsxs(B.TimelineSeparator,{children:[je.jsx(YC,{completed:n,children:n?je.jsx(nr,{name:"badge-tick-in-circle",size:24}):void 0}),t&&je.jsx(B.TimelineConnector,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&je.jsx(B.TimelineContent,{component:()=>je.jsx(ry,{complete:n,title:o,description:r,onClick:i})})]})},sy={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},ay=({expanded:n,onToggleExpanded:o,items:r})=>{const i=r.find((e=>!e.complete)),s=e.useMemo((()=>n?r:[i]),[n,r,i]),a=e.useRef(null),[l,c]=e.useState(),d=e.useCallback((()=>{if(!a.current)return;const e=a.current.scrollHeight;c(e)}),[r]);return e.useEffect((()=>{d()}),[n,d]),e.useEffect((()=>{const e=new ResizeObserver(d);return a.current&&e.observe(a.current),()=>e.disconnect()}),[d]),je.jsx(xv.div,{variants:sy,initial:"initial",animate:"auto"===l?"initial":["initial","animate"],custom:l,style:{overflow:"hidden"},children:je.jsx("div",{ref:a,style:{display:"flex"},children:je.jsxs(KC,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${B.timelineItemClasses.root}`]:{minHeight:0,":before":{flex:0,padding:0}}},children:[s.map(((e,t)=>{const n=t<s.length-1;return e&&e?.title===i?.title?je.jsx(iy,{item:e,showConnector:s.length>1?n:!!i?.description},`${e.title}-${e.complete}`):e&&je.jsx(iy,{item:e,showConnector:n},e.title)})),!n&&je.jsx(t.Box,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:je.jsx(Ni,{endIcon:je.jsx(nr,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:o,children:"Show more"})})]})})})},ly=({completed:e,total:t})=>je.jsx(ir,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),cy=(e,n)=>je.jsxs(t.Box,{display:"flex",gap:.5,children:[je.jsx(ir,{variation:"sm",component:"p",weight:"bold",children:e||0}),je.jsx(ir,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:Gv(n,e||0)})]}),dy=({loops:e,tests:n,drafts:o})=>je.jsxs(t.Box,{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,children:[!!e&&cy(e,"Loop"),!!n&&cy(n,"Test"),!!o&&cy(o,"Draft")]}),uy=t.styled(t.Stack)((({theme:e})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.purple[100]}`,backgroundColor:e.custom.palette.purple[0],padding:`${e.spacing(e.custom.padding.xs)} ${e.spacing(e.custom.padding.sm)}`,"& p":{color:e.custom.palette.purple[1e3]}}))),py=({sx:e,body:t})=>je.jsx(uy,{"data-id":"pill-container",sx:n.mergeSx(e,{position:"absolute",zIndex:1}),children:je.jsx(ir,{variation:"xxs",component:"p",weight:"bold",children:t})}),hy=({title:e,maxLines:t,sx:o})=>je.jsx(ir,{variation:"md",component:"p",weight:"bold",sx:n.mergeSx({overflow:"hidden",display:"-webkit-box",WebkitLineClamp:`${t}`,WebkitBoxOrient:"vertical"},o),children:e}),my=t.styled(t.Box,{shouldForwardProp:e=>!["disableRaisedEffect"].includes(e)})((({theme:e,disableRaisedEffect:t})=>({width:"100%",transition:"all 0.3s ease","&:hover":{'*[data-id="image-container"]':{boxShadow:t?"none":e.custom.elevation.raised}}}))),xy=t.styled(t.CardActionArea,{shouldForwardProp:e=>!["disableHoverStyle"].includes(e)})((({theme:e,disableHoverStyle:t=!1})=>({cursor:"pointer",...!0===t&&{"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.palette.background.paper}}}))),gy=t.styled(t.Box)((({theme:e})=>({boxShadow:"none",overflow:"hidden",height:150,position:"relative",borderRadius:e.spacing(e.custom.radius.md),[`> .${t.boxClasses.root}`]:{display:"flex",height:"100%","> span":{display:"flex",width:"100%"}}}))),fy=({title:e,description:t,thumbnail:n})=>{const o=[e,t].filter(Boolean).join(" | ");return je.jsx(Za,{src:n,alt:o,title:o,style:{width:"100%",height:"auto",objectFit:"cover"}})},vy=t.styled(t.CardContent)((({theme:e})=>({paddingTop:e.spacing(e.custom.padding.xs),paddingBottom:e.spacing(e.custom.padding.xs),paddingLeft:0,paddingRight:0,display:"flex",flexDirection:"column",gap:e.spacing(e.custom.margin.xs),'& [data-id="title-container"]':{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"start",gap:e.spacing(e.custom.margin.xs),"& > p":{alignSelf:"center"}}}))),Cy=t.styled(t.Box,{shouldForwardProp:e=>!["viewType"].includes(e)})((({theme:e,viewType:t})=>({width:"grid"===t?"100%":108,height:"grid"===t?150:72,backgroundColor:e.custom.palette.purple[0],display:"flex",justifyContent:"center",alignItems:"center",borderRadius:e.spacing(e.custom.radius.md),"& svg":{height:"grid"===t?64:32,width:"grid"===t?64:32}}))),yy=({updatedDate:e,format:t=!1,noWrap:n})=>je.jsxs(ir,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?T(e).format("DD MMM YYYY"):e]}),wy=({title:e,description:n,loopCount:o,testCount:r,draftCount:i,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>d?je.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:je.jsxs(xy,{component:"div",disableHoverStyle:!0,children:[je.jsx(gy,{"data-id":"image-container",children:je.jsx(Nl,{})}),je.jsxs(vy,{children:[je.jsx(t.Box,{"data-id":"title-container",height:32,children:je.jsx(Nl,{})}),je.jsx(Nl,{height:20}),je.jsx(Nl,{height:16,width:"60%"})]})]})}):je.jsx(my,{children:je.jsxs(xy,{component:"div",disableHoverStyle:!0,onClick:u,children:[je.jsxs(gy,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[c&&je.jsx(py,{body:"Demo",sx:{bottom:8,left:8}}),je.jsx(fy,{thumbnail:l,title:e,description:n})]}),je.jsxs(vy,{children:[je.jsxs(t.Box,{"data-id":"title-container",children:[je.jsx(hy,{title:e,maxLines:2}),je.jsx(t.Box,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:a})]}),je.jsx(dy,{loops:o,tests:r,drafts:i}),je.jsx(yy,{updatedDate:s,format:!0})]})]})}),jy=({title:e,description:n,loopCount:o,testCount:r,draftCount:i,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>{const p=t.useTheme();return d?je.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:je.jsxs(xy,{component:"div",onClick:u,sx:{display:"flex",gap:p.spacing(p.custom.margin.sm),alignItems:"center",padding:p.spacing(p.custom.padding.xs)},children:[je.jsx(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:je.jsx(Nl,{})}),je.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:je.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[je.jsx(Nl,{width:"100%",height:20}),je.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[je.jsx(Nl,{height:20,width:"70%"}),je.jsx(Nl,{height:16,width:200})]})]})})]})}):je.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:je.jsxs(xy,{component:"div",onClick:u,sx:{display:"flex",gap:p.spacing(p.custom.margin.sm),alignItems:"center",padding:p.spacing(p.custom.padding.xs)},children:[je.jsxs(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[c&&je.jsx(py,{sx:{top:4,right:4},body:"Demo"}),je.jsx(fy,{thumbnail:l,title:e,description:n})]}),je.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:je.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[je.jsx(hy,{title:e,maxLines:1}),je.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[je.jsx(dy,{loops:o,tests:r,drafts:i}),je.jsx(yy,{updatedDate:s,format:!0,noWrap:!0})]})]})}),a&&je.jsx(t.Box,{onClick:e=>e.stopPropagation(),children:a})]})})},by=t.styled(t.Box)((({theme:e,type:t})=>({backgroundColor:"focus"===t?e.custom.palette.peach[300]:e.custom.palette.surface.sunken,borderRadius:`${e.spacing(e.custom.radius.lg)} ${e.spacing(e.custom.radius.lg)} 0 0`,display:"flex",alignItems:"center",gap:e.spacing(e.custom.margin.xs),padding:`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`}))),ky=({type:e,loading:n})=>{const o=t.useTheme(),r=(e=>{switch(e){case"single-punch":return{icon:"check",label:"Single punch question"};case"multi-punch":return{icon:"check-double",label:"Multi punch question"};case"slider":return{icon:"linear-scale",label:"Slider question"};case"likert":return{icon:"thumbs-up-down",label:"Likert question"};case"rank":return{icon:"rank",label:"Rank question"};case"open-question":return{icon:"comment",label:"Open question"};case"emoji":return{icon:"emoticon",label:"Emoji question"};case"focus":return{icon:"image-search",label:"Focus step"};default:return{icon:"help",label:"Unknown type"}}})(e);return n?je.jsx(Nl,{width:"100%",height:36,sx:{borderRadius:`${o.spacing(o.custom.radius.lg)} ${o.spacing(o.custom.radius.lg)} 0 0`}}):je.jsxs(by,{type:e,children:[je.jsx(nr,{name:r.icon,size:16}),je.jsx(ir,{variation:"sm",component:"p",sx:{px:o.spacing(o.custom.padding.xs)},children:r.label})]})},Sy=t.styled(t.Stack)((({theme:e})=>({border:`1px solid ${e.custom.palette.stroke.light}`,borderRadius:e.spacing(e.custom.radius.lg)}))),My=t.styled(t.Stack)((({theme:e})=>({gap:e.spacing(e.custom.padding.sm),padding:e.spacing(e.custom.padding.md)})));var zy=e.memo((({handleNavigateRegion:e,questionMenuItems:n,questionTitle:o,currentRegionIndex:r=0,loading:i,popperState:s})=>{const a=t.useTheme(),l=s||rl({variant:"popper"});return i?je.jsx(Nl,{width:"30%",height:32,sx:{borderRadius:a.spacing(a.custom.radius.md)}}):je.jsxs(t.Box,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:a.custom.padding.md},children:[je.jsx(t.Box,{sx:{minWidth:0},children:je.jsx(kl,{width:300,offset:[0,8],placement:"bottom-start",state:l,slotProps:{surface:{sx:{maxHeight:400,overflowY:"auto",paddingRight:0,"& .MuiButton-root":{height:40,borderRadius:0},"& .MuiTypography-root":{px:a.spacing(a.custom.padding.xs)}}}},trigger:je.jsx(Ni,{sx:{overflow:"hidden",flex:1,">div":{flex:"0 1 auto",textWrap:"nowrap",overflow:"hidden",minWidth:0,textOverflow:"ellipsis",whiteSpace:"nowrap"},">span":{flex:"0 0 auto"},fontVariantNumeric:"tabular-nums"},sizing:"lg",variation:"secondary",endIcon:l.isOpen?je.jsx(nr,{name:"chevron-up"}):je.jsx(nr,{name:"chevron-down"}),children:o}),menuItems:n})}),je.jsxs(t.Stack,{direction:"row",alignItems:"center",gap:a.spacing(a.custom.margin.md),sx:{flex:"0 0 auto",minWidth:0},children:[je.jsx(t.Box,{children:je.jsxs(ir,{monospaced:!0,component:"p",variation:"xs",color:a.custom.palette.text.secondary,sx:{"& strong":{color:a.custom.palette.text.primary,fontWeight:500}},children:[je.jsx("strong",{children:je.jsx(S,{value:(r||0)+1})})," ","of ",n?.length||0]})}),je.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},children:je.jsxs(t.Stack,{direction:"row",spacing:.5,children:[je.jsx(Ks,{icon:je.jsx(nr,{name:"arrow-left"}),shape:"round",variation:"toggle",sizing:"lg",disabled:r+1===1,onClick:()=>e(-1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:a.custom.palette.purple[0],"&:hover:before":{backgroundColor:a.custom.palette.interaction.hover}}}}),je.jsx(Ks,{icon:je.jsx(nr,{name:"arrow-right"}),shape:"round",variation:"toggle",sizing:"lg",disabled:r+1===n?.length,onClick:()=>e(1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:a.custom.palette.purple[0],"&:hover:before":{backgroundColor:a.custom.palette.interaction.hover}}}})]})})]})]})}));const By=t.styled(Gi)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),Vy=e.forwardRef((({onChange:n,onClear:o,onFocus:r,placeholder:i,value:s,...a},l)=>{const c=t.useTheme(),d=e.useRef(null),u=()=>{n?.({target:{value:""},currentTarget:{value:""}}),o?.()};e.useImperativeHandle(l,(()=>({...d.current,clear:u})));const p={color:c.custom.palette.icon.primary};return je.jsx(By,{inputRef:d,placeholder:i,value:s,onChange:n,onFocus:r,startAdornment:je.jsx(nr,{name:"search",size:17,sx:p}),endAdornment:s?je.jsx(t.Box,{onClick:u,sx:{cursor:"pointer",display:"flex"},children:je.jsx(nr,{name:"close",size:17,sx:p})}):void 0,...a})})),Ty=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between",padding:1}))),Iy=t.styled(t.Box)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1)}))),Fy=t.styled(ir)((({theme:e})=>({color:e.custom.palette.text.secondary}))),Ly=({buttons:e,subtitle:n,title:o,maxWidth:r})=>je.jsx(je.Fragment,{children:je.jsx(Ty,{sx:{justifyContent:"space-between"},children:je.jsx(t.Container,{maxWidth:r,children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[je.jsx(Iy,{children:je.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&je.jsx(ir,{variation:"sm",component:"h2",weight:"bold",children:o}),n&&je.jsx(Fy,{variation:"sm",component:"p",children:n})]})}),e&&je.jsx(Iy,{children:e})]})})})})})}),Py=({title:e,subtitle:n,buttons:o,maxWidth:r})=>je.jsx(je.Fragment,{children:je.jsx(Ty,{sx:{justifyContent:"space-between"},children:je.jsx(t.Container,{maxWidth:r,children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[je.jsx(Iy,{children:je.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&je.jsx(Nl,{variant:"text",width:200,height:28}),n&&je.jsx(Nl,{variant:"text",width:140,height:17})]})}),je.jsx(Iy,{children:o&&je.jsxs(je.Fragment,{children:[je.jsx(Nl,{variant:"text",width:72,height:28}),je.jsx(Nl,{variant:"text",width:56,height:28})]})})]})})})})})}),Ay=t.styled(xv.div,{shouldForwardProp:e=>!["active"].includes(e)})((({active:e,theme:t})=>({backgroundColor:e?t.custom.palette.blue[0]:t.custom.palette.surface.default,border:e?`1px solid ${t.custom.palette.blue[500]}`:`1px solid ${t.custom.palette.stroke.default}`,borderRadius:t.spacing(t.custom.radius.md),cursor:"pointer",display:"flex",flex:1,flexDirection:"column",justifyContent:"space-between",padding:t.spacing(t.custom.padding.sm,t.custom.padding.md)}))),Ey=t.styled(xv.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".react-truncate-list {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n list-style: none;\n overflow: auto;\n}\n\n.react-truncate-list *,\n.react-truncate-list *::before,\n.react-truncate-list *::after {\n box-sizing: inherit;\n}\n");const Ry=({animated:e,label:n,primaryText:o,secondaryText:r})=>{const i=o.match(/\d{1,2}:\d{2}/),s=o.split(":"),a=!isNaN(Number(o)),l=r.includes("%")&&!isNaN(Number(r.replace("%","")));return je.jsxs(t.Stack,{sx:{background:e=>e.custom.palette.surface.default,minWidth:"92px",border:e=>`1px solid ${e.custom.palette.neutral[100]}`,borderRadius:1,padding:e=>`${e.spacing(e.custom.padding.sm)} ${e.spacing(e.custom.padding.md)}`,color:e=>e.custom.palette.text.primary,flexShrink:0,height:"100%"},direction:{sm:"row",md:"row",lg:"column"},alignItems:"center",gap:{sm:1,md:1,lg:0},children:[je.jsx(ir,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:n}),je.jsx(ir,{component:"h3",sx:{fontSize:e=>({sm:e.custom.typography.body.sm,md:e.custom.typography.body.md,lg:e.custom.typography.body.xxl}),fontWeight:500,flexShrink:0},monospaced:!0,children:je.jsx(je.Fragment,{children:i||a?je.jsx(je.Fragment,{children:i?je.jsxs(je.Fragment,{children:[je.jsx(S,{value:Number(s[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",je.jsx(S,{value:Number(s[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):je.jsx(S,{value:Number(o),animated:e})}):je.jsx(je.Fragment,{children:o})})}),je.jsx(ir,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},monospaced:!0,children:l?je.jsxs(je.Fragment,{children:[je.jsx(S,{value:r.replace("%",""),animated:e}),"%"]}):r})]})},Hy=({animated:e,iconName:o,label:r,value:i,slotProps:s})=>je.jsxs(t.Box,{display:"flex",alignItems:"center",gap:.5,children:[je.jsx(nr,{name:o,...s?.icon,sx:n.mergeSx({color:e=>e.custom.palette.icon.secondary},s?.icon?.sx)}),je.jsxs(ir,{monospaced:!0,component:"p",sx:e=>({fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.primary,"& > span":{color:e=>e.custom.palette.text.secondary,[e.breakpoints.up("lg")]:{display:"inline"},[e.breakpoints.down("lg")]:{display:"none"},[e.containerQueries.up("lg")]:{display:"inline"},[e.containerQueries.down("lg")]:{display:"none"}}}),children:[je.jsx(S,{value:i,animated:e})," ",je.jsx("span",{children:r})]})]}),$y=e.forwardRef((({colorScheme:e="purple",variation:o,title:r,description:i,loading:s,onShowMoreClick:a,menuItems:l,active:c,...d},u)=>{const p=t.useTheme(),h="raised";return je.jsxs(gl,{ref:u,active:c,borderradius:"lg",variation:h,...d,sx:n.mergeSx({display:"flex",flexDirection:"column",gap:p.custom.margin.sm,border:`1px solid ${p.custom.palette.stroke.light}`,padding:p.custom.padding.md,"&:hover":{cursor:"pointer",".TestKPICard__Menu":{opacity:1}},..."dimmed"===o&&{border:`1px solid ${p.custom.palette.stroke.light}`}},d.sx),children:[je.jsxs(t.Stack,{direction:"row",gap:1,children:[je.jsxs(t.Stack,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[je.jsx(je.Fragment,{children:s?je.jsx(Nl,{sx:{width:17,height:16}}):je.jsx(t.Box,{sx:{height:"22px",display:"flex",placeItems:"center"},children:je.jsx(Wc,{colorScheme:e,disabled:o&&"dimmed"===o})})}),s?je.jsx(Nl,{sx:{marginTop:"-1px"}}):je.jsx(ir,{component:"p",variation:"md",weight:"bold",sx:{color:"dimmed"===o?p.custom.palette.text.disabled:p.custom.palette.text.primary},children:r})]}),!s&&Boolean(l?.length)&&je.jsx(kl,{trigger:je.jsx(Ks,{icon:je.jsx(nr,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestKPICard__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:`${p.custom.palette.interaction.press} !important`,opacity:1}}}),menuItems:l,width:128,offset:[0,-8],placement:"bottom-end"})]}),s?je.jsx(t.Box,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>je.jsx(Nl,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):je.jsx(ws,{clamp:3,component:"p",variation:"sm",sx:{color:"dimmed"===o?p.custom.palette.text.disabled:p.custom.palette.text.secondary},onShowMoreClick:a,slotProps:{showMoreButton:{disabled:"dimmed"===o},gradientBox:{background:c?p.custom.palette.blue[0]:ml(h,p)}},children:i})]})})),Dy=(e,t=1e5)=>Math.round(e*t)/t;var Oy=e.memo((({playing:e,ended:t,seeking:n,buffering:o,handleAction:r})=>je.jsx(Ks,{disabled:o,loading:o,onClick:()=>r(),shape:"round",sizing:"xl",variation:"outlined",icon:je.jsx(nr,{name:(()=>{switch(!0){case n&&t:return"replay";case n:return"play";case!e&&t:return"replay";case e:return"pause";default:return"play"}})()})})));const _y=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60),r=o<10?"0"+o:o,i=t>0&&n<10?"0"+n:n;return t>0?`${t}:${i}:${r}`:`${i}:${r}`},Wy=(e,t)=>t/e*100,Ny=t.styled(t.Box)((({theme:e})=>({position:"absolute",top:"100%",marginTop:e.spacing((e.breakpoints.down("lg"),e.custom.margin.xs)),left:0,display:"flex",alignItems:"center",width:"100%",height:18}))),Zy=t.styled(t.Box)((({theme:e,width:t,left:n})=>({position:"absolute",background:e.custom.palette.neutralAlpha[2],opacity:1,borderRadius:18,height:18,pointerEvents:"none",top:0,left:`${n}%`,width:`${t}%`,zIndex:0,"&:after":{content:'" "',position:"absolute",width:"100%",height:78,top:38,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.neutralAlpha[1]}}))),Uy=t.styled(t.Box,{shouldForwardProp:e=>"isActive"!==e})((({theme:e,isActive:t})=>({position:"absolute",background:e.custom.palette.purple[500],height:8,width:8,borderRadius:8,...t?{transform:"translateX(-50%) scale(1)"}:{transform:"translateX(-50%) scale(0.5)"},transition:"all 0.2s, background 0.2s"})));var Gy=e.memo((({startTime:t,endTime:n,currentTime:o,markers:r=[],markerIndicator:i=!0,markerIndicatorSize:s=3,markerIndicatorMode:a,marker:l})=>{const c=e.useMemo((()=>Wy(n-t,o-t)),[o,t,n]),d=e.useMemo((()=>"time"===a?s:(n-t)*s),[n,t,a,s]),{width:u,left:p}=e.useMemo((()=>{const e=n-t,r=(o-t)/e;let i;i="time"===a?s/e*100:100*s;const l=i/2,d=100*r,u=100-100*r,p=Math.min(l,d);return{width:p+Math.min(l,u),left:c-p}}),[o,t,n,c,a,s]),h=e.useMemo((()=>r.map((({timeStamp:e,id:r,meta:i})=>({id:r,timeStamp:e,markerPosition:Wy(n-t,e),isActive:Math.abs(e-o+t)<=d/2+1e-10,meta:i})))),[r,n,t,o,d]),m=l||Uy;return je.jsxs(Ny,{children:[i&&je.jsx(Zy,{width:u,left:p}),h.map((({id:e,markerPosition:t,isActive:n,meta:o})=>je.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...o&&{meta:o}},e)))]})}));const qy=t.styled(t.Slider)((({theme:e,type:n,muted:o,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${t.sliderClasses.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${r.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${r.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${r.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===n?{height:100,color:e.custom.palette.icon.primary,...(o||0===i)&&{opacity:.5},[`.${t.sliderClasses.valueLabel}`]:{background:e.custom.palette.surface.default,color:e.custom.palette.text.primary,fontSize:e.custom.typography.body.xs,fontWeight:"normal",boxShadow:e.custom.elevation.overlay},[`.${t.sliderClasses.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${r.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${r.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${r.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${t.sliderClasses.rail}`]:{height:4,background:r.alpha(e.custom.palette.neutral[400],.5),opacity:1},[`.${t.sliderClasses.track}`]:{border:0,boxShadow:"none",height:4}}})));var Ky=e.memo(qy);const Yy=t.styled(t.Stack)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),Xy=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:r,volumeControlsType:i})=>{const s=je.jsx(Ks,{icon:(()=>{switch(!0){case 0===r||n:return je.jsx(o.VolumeOff,{});case r<.5:return je.jsx(L,{});default:return je.jsx(o.VolumeUp,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return je.jsx(Yy,{children:"mute"===i?s:je.jsx(vl,{bindOn:["hover"],trigger:s,popperProps:{placement:"top",style:{zIndex:40}},children:je.jsx(Ky,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:r,valueLabelFormat:e=>`${Math.ceil(Wy(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},Qy=t.styled(t.Stack)({flex:1,position:"relative"}),Jy=t.styled(t.Stack)((({theme:e})=>({ml:"auto",alignItems:"center",position:"absolute",width:"100%",overflow:"hidden",right:0,bottom:8,gap:e.spacing(e.custom.margin.xs)}))),ew=t.styled(ir)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),tw=t.styled(t.Box)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),nw=t.styled(t.Box)((({theme:e,left:t,width:n})=>({background:e.custom.palette.neutral[300],height:4,position:"absolute",left:`${t}%`,pointerEvents:"none",top:"50%",transform:"translateY(-50%)",borderRadius:e.custom.radius.round,width:`${n}%`})));var ow=e.memo((({startTime:t,currentTime:n,endTime:o,playing:r,markerIndicator:i,bufferRanges:s,handleSeeking:a,handleSeekEnd:l,handleSeekStart:c,markers:d,marker:u,markerIndicatorMode:p,markerIndicatorSize:h,volume:m,muted:x,handleVolumeMute:g,handleVolumeChange:f,volumeControlsType:v,volumeControls:C})=>{const[y,w]=e.useState(r),j=e.useCallback(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),b=e.useCallback(((e,t)=>{e.stopPropagation(),l?.(y),y&&w(!1)}),[y,l]),k=e.useCallback((e=>{e.stopPropagation(),r&&w(r),c?.(r)}),[r,c]),S=e.useCallback((()=>{r&&w(r),c?.(r)}),[r,c]),M=e.useCallback((()=>{l?.(y),y&&w(!1)}),[y,l]);return je.jsxs(Qy,{children:[je.jsxs(Jy,{direction:"row",children:[je.jsxs(ew,{component:"p",variation:"md",children:[_y(n-t)," / ",_y(o-t)]}),C&&je.jsx(Xy,{volume:m,muted:x,handleVolumeMute:g,handleVolumeChange:f,volumeControlsType:v})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>je.jsx(nw,{left:e,width:t},n))),je.jsxs(tw,{children:[je.jsx(Ky,{step:.05,value:n,max:o,min:t,onChangeCommitted:b,onMouseDown:k,onChange:j,onTouchStart:S,onTouchEnd:M}),d&&d?.length>0&&je.jsx(Gy,{markerIndicatorMode:p,markerIndicatorSize:h,markerIndicator:i,markers:d,marker:u,startTime:t,currentTime:n,endTime:o})]})]})}));const rw=t.styled(gl)((({theme:e})=>({display:"flex",flex:1,padding:e.spacing(e.custom.padding.md),borderColor:e.custom.palette.stroke.light,borderWidth:1,gap:e.spacing(e.custom.padding.sm),borderStyle:"solid",flexDirection:"column"}))),iw=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),sw=e.forwardRef((({id:t,videoElement:n,initialEndTime:o=0,initialCurrentTime:r=0,initialMuted:i,initialVolume:s,markers:a,options:l,slots:c,events:{onEnd:d,onPlay:u,onSeekEnd:p,onSeeking:h,onSeekStart:m,onTimeUpdate:x,onPause:g,onVolumeChange:f,onVolumeMute:v,onRestart:C,onFirstPlay:y,onFirstEnded:w,onReset:j}={},videoSeekTime:b},k)=>{const[S,M]=e.useState(!1),[z,B]=e.useState([]),V={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...l},[{seeking:T,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,muted:$,startTime:D,firstPlay:O,firstEnded:_},W]=e.useState({startTime:Dy(V.normaliseTime?r:0),endTime:Dy(V.normaliseTime?o:n.duration),currentTime:Dy(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1,volume:s||1,muted:i||!1,buffering:!1});e.useEffect((()=>{if(n.muted=$,n.volume=H,V.normaliseTime&&(void 0===o||void 0===r))throw new Error("Please supply an initial end time and initial currentTime for normalising time in VideoControls.tsx");return()=>{te()}}),[]),e.useEffect((()=>{W((e=>({...e,startTime:Dy(V.normaliseTime?r:0),endTime:Dy(V.normaliseTime?o:n.duration),currentTime:Dy(r??0)}))),n.currentTime=Dy(r??0)}),[r,o]);const N=e.useCallback((()=>{W((e=>({...e,playing:!1,ended:!0,...!_&&{firstEnded:!0}}))),d&&d(),!_&&w&&w()}),[_]);e.useEffect((()=>{if(!n||null==b)return;(async()=>{const e=!n.paused,t=b===I;W((e=>({...e,playing:!1,currentTime:Dy(b)}))),await new Promise((e=>{const t=()=>{n.removeEventListener("seeked",t),e()};n.addEventListener("seeked",t),setTimeout(e,500)})),W((e=>({...e,currentTime:Dy(b)}))),await new Promise((e=>setTimeout(e,50))),W((n=>({...n,playing:e,currentTime:Dy(t?b-.001:b+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[b,n]);const Z=e.useCallback((e=>{W((t=>({...t,muted:e.target?.muted,volume:"number"==typeof e.target?.volume?e.target?.volume:1}))),$!==e.target?.muted&&v&&v(!$),H!==e.target?.volume&&f&&f(H)}),[$,H]),U=e.useCallback((()=>{const e=Dy(n.currentTime)>=I&&I!==Dy(n.duration)&&!R,t=Dy(n.currentTime)>=I&&I===Dy(n.duration)&&!R&&!P;(e||t)&&(n.pause(),n.dispatchEvent(new Event("ended"))),W((e=>({...e,currentTime:Dy(n.currentTime)}))),x&&x(Dy(n.currentTime))}),[I,R,P]),G=e.useCallback((()=>{W((e=>({...e,playing:!1}))),g&&g()}),[L]),q=e.useCallback((()=>{W((e=>({...e,playing:!0,ended:!1,buffering:!1,...!O&&{firstPlay:!0}}))),!O&&y&&y(),u&&u()}),[O]),K=e.useCallback((()=>{W((e=>({...e,buffering:!0})))}),[]),Y=e.useCallback((()=>{W((e=>({...e,buffering:!1})))}),[A]),X=e.useCallback((()=>{const e=[];for(let t=0;t<n.buffered.length;t++){const o=n.buffered.start(t),r=n.buffered.end(t);if(r>=D&&o<=I){const t=Math.max(o,D),n=Math.min(r,I);e.push({start:t-D,end:n-D,startPercent:(t-D)/(I-D)*100,widthPercent:(n-t)/(I-D)*100})}}B(e)}),[T,I,L,P,A,E,R,H,$,D,z]),Q=e.useCallback((async e=>{P&&te(),n.currentTime=D,e&&await ee(),C&&C()}),[P,L,D,I,R]),J=e.useCallback((async()=>{P&&te(),n.currentTime=D,W((e=>({...e,startTime:Dy(V.normaliseTime?r:0),endTime:Dy(V.normaliseTime?o:n.duration),currentTime:Dy(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),j&&j()}),[P,L,D,I,R,r,o]),ee=async()=>{await n.play()},te=()=>{n.pause()},ne=e.useCallback((e=>{n.currentTime=Dy(e),W((t=>({...t,currentTime:Dy(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!O||t.firstPlay,bufferProgress:e}))),h&&h(e),!O&&y&&y()}),[A,O]),oe=e.useCallback((async()=>{document.hidden?P&&!n.paused?(M(!0),te()):M(!1):(S&&!P&&await ee(),M(!1))}),[P,S,te,ee,n]),re=e.useCallback((e=>{e&&n.pause(),W((e=>({...e,seeking:!0}))),m&&m()}),[R]),ie=e.useCallback((async(e,t,o)=>{t&&(n.currentTime=t),e&&!R&&await n.play(),o&&P&&n.pause(),W((e=>({...e,...t?{currentTime:t}:{},ended:!o&&e.ended,seeking:!1}))),p&&p(t)}),[P,R,A,T]);return F("visibilitychange",oe,document),F("pause",G,n),F("playing",q,n),F("timeupdate",U,n),F("ended",N,n),F("volumechange",Z,n),F("waiting",K,n),F("canplay",Y,n),F("progress",X,n),e.useImperativeHandle(k,(()=>({play:ee,pause:te,restart:Q,reset:J,seek:(e,t,n)=>ie(t,e,n),videoState:{seeking:T,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,firstPlay:O,firstEnded:_,muted:$,startTime:D}}))),je.jsxs(rw,{variation:"raised",borderradius:"xl",id:t,children:[je.jsxs(iw,{...V?.rtl&&{dir:"rtl"},children:[je.jsx(Oy,{seeking:T,playing:P,ended:R,buffering:A,handleAction:async()=>{R?await Q(!0):P?te():await ee()}}),je.jsx(ow,{handleSeeking:ne,handleSeekEnd:ie,handleSeekStart:re,ended:R,marker:c?.marker,markers:a,markerIndicatorMode:V.markerIndicatorMode,markerIndicatorSize:V.markerIndicatorSize,markerIndicator:V.markerIndicator,startTime:V.normaliseTime?D:0,currentTime:L,endTime:I,playing:P,bufferRanges:z,buffering:A,volume:H,muted:$,volumeControls:V.volumeControls,volumeControlsType:V.volumeControlsType,handleVolumeMute:()=>{n.muted=!$},handleVolumeChange:e=>{n.volume=e,$&&(n.muted=!1)}})]}),c?.bottom]})}));var aw=e.memo(sw);const lw="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",cw=(e,n,o)=>t.createTheme({direction:o,custom:{palette:{black:"#000000",white:"#ffffff",neutral:K[e],neutralAlpha:"light"===e?O:_,purple:X[e],red:Q[e],peach:J[e],yellow:ee[e],blue:te[e],green:ne[e],icon:he[e].icon,interaction:he[e].interaction,stroke:he[e].stroke,surface:he[e].surface,text:he[e].text,input:he[e].input,skeleton:he[e].skeleton,data:he[e].data,body:he[e].surface.default},margin:se,padding:ae,radius:le,elevation:ce,elevationFilter:de,boxShadow:ue,easing:pe,typography:hr[n]},palette:{mode:e,primary:{main:W[500]}},spacing:ie,shape:{borderRadius:ie,hotspot:{default:12,active:24}},breakpoints:{values:oe},typography:{fontFamily:`"${xe.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:mr(n),styleOverrides:{root:{color:he[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:e=>`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${e.custom.palette.body};\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: '${xe.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.Domaine.default.weight};\n src: url(${lw}${xe.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${xe.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.Domaine.bold.weight};\n src: url(${lw}${xe.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${xe.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.FoundersGrotesk.default.weight};\n src: url(${lw}${xe.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${xe.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${xe.FoundersGrotesk.bold.weight};\n src: url(${lw}${xe.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${oe.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${oe.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiButton:{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:xe.FoundersGrotesk.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*ie}px ${e.padding.md*ie}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 dw="production"===process.env.NODE_ENV,uw="Invariant failed";const pw=e.createContext(null),hw=(n="light",o="lg",r="ltr")=>{const{width:i}=vs(),[s,a]=e.useState(n),[l,c]=e.useState(o),[d,u]=e.useState(r),[p,h]=e.useState(!1),[m,x]=e.useState("");e.useEffect((()=>{d&&document.documentElement.setAttribute("dir",d)}),[d]);e.useEffect((()=>{e.startTransition((()=>{c(i&&i<oe.lg?"sm":"lg")}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{u(r)}))}),[r]),e.useEffect((()=>{e.startTransition((()=>{a(n)}))}),[n]);const g=e.useMemo((()=>cw(s,l,d)),[s,d,l]),f=t.useMediaQuery(g.breakpoints.only("sm"),{noSsr:!0}),v=t.useMediaQuery(g.breakpoints.only("md"),{noSsr:!0}),C=t.useMediaQuery(g.breakpoints.between("lg","xl"),{noSsr:!0}),y=t.useMediaQuery(g.breakpoints.up("xl"),{noSsr:!0});return e.useEffect((()=>{e.startTransition((()=>{f&&x("sm"),v&&x("md"),C&&x("lg"),y&&x("xl")}))}),[f,v,C,y]),{breakpoint:m,gridOverlayVisible:p,mode:s,theme:g,toggleGridOverlay:()=>{e.startTransition((()=>{h((e=>!e))}))},toggleMode:t=>{e.startTransition((()=>{if(t)return a(t);a((e=>"light"===e?"dark":"light"))}))}}};var mw=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=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,n),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 n=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{n.insertRule(e,n.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 xw="undefined"!=typeof document,gw=function(e,t,n){for(var o=0,r=0;o=r,r=P.peek(),38===o&&12===r&&(t[n]=1),!P.token(r);)P.next();return P.slice(e,P.position)},fw=function(e,t){return P.dealloc(function(e,t){var n=-1,o=44;do{switch(P.token(o)){case 0:38===o&&12===P.peek()&&(t[n]=1),e[n]+=gw(P.position-1,t,n);break;case 2:e[n]+=P.delimit(o);break;case 4:if(44===o){e[++n]=58===P.peek()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=P.from(o)}}while(o=P.next());return e}(P.alloc(e),t))},vw=new WeakMap,Cw=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||vw.get(n))&&!o){vw.set(e,!0);for(var r=[],i=fw(t,r),s=n.props,a=0,l=0;a<i.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=r[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},yw=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ww(e,t){switch(P.hash(e,t)){case 5103:return P.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 P.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P.WEBKIT+e+P.MOZ+e+P.MS+e+e;case 6828:case 4268:return P.WEBKIT+e+P.MS+e+e;case 6165:return P.WEBKIT+e+P.MS+"flex-"+e+e;case 5187:return P.WEBKIT+e+P.replace(e,/(\w+).+(:[^]+)/,P.WEBKIT+"box-$1$2"+P.MS+"flex-$1$2")+e;case 5443:return P.WEBKIT+e+P.MS+"flex-item-"+P.replace(e,/flex-|-self/,"")+e;case 4675:return P.WEBKIT+e+P.MS+"flex-line-pack"+P.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return P.WEBKIT+e+P.MS+P.replace(e,"shrink","negative")+e;case 5292:return P.WEBKIT+e+P.MS+P.replace(e,"basis","preferred-size")+e;case 6060:return P.WEBKIT+"box-"+P.replace(e,"-grow","")+P.WEBKIT+e+P.MS+P.replace(e,"grow","positive")+e;case 4554:return P.WEBKIT+P.replace(e,/([^-])(transform)/g,"$1"+P.WEBKIT+"$2")+e;case 6187:return P.replace(P.replace(P.replace(e,/(zoom-|grab)/,P.WEBKIT+"$1"),/(image-set)/,P.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return P.replace(e,/(image-set\([^]*)/,P.WEBKIT+"$1$`$1");case 4968:return P.replace(P.replace(e,/(.+:)(flex-)?(.*)/,P.WEBKIT+"box-pack:$3"+P.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return P.replace(e,/(.+)-inline(.+)/,P.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(P.strlen(e)-1-t>6)switch(P.charat(e,t+1)){case 109:if(45!==P.charat(e,t+4))break;case 102:return P.replace(e,/(.+:)(.+)-([^]+)/,"$1"+P.WEBKIT+"$2-$3$1"+P.MOZ+(108==P.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~P.indexof(e,"stretch")?ww(P.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==P.charat(e,t+1))break;case 6444:switch(P.charat(e,P.strlen(e)-3-(~P.indexof(e,"!important")&&10))){case 107:return P.replace(e,":",":"+P.WEBKIT)+e;case 101:return P.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P.WEBKIT+(45===P.charat(e,14)?"inline-":"")+"box$3$1"+P.WEBKIT+"$2$3$1"+P.MS+"$2box$3")+e}break;case 5936:switch(P.charat(e,t+11)){case 114:return P.WEBKIT+e+P.MS+P.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P.WEBKIT+e+P.MS+P.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P.WEBKIT+e+P.MS+P.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P.WEBKIT+e+P.MS+e+e}return e}var jw,bw,kw=xw?void 0:(jw=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},bw=new WeakMap,function(e){if(bw.has(e))return bw.get(e);var t=jw(e);return bw.set(e,t),t}),Sw=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case P.DECLARATION:e.return=ww(e.value,e.length);break;case P.KEYFRAMES:return P.serialize([P.copy(e,{value:P.replace(e.value,"@","@"+P.WEBKIT)})],o);case P.RULESET:if(e.length)return P.combine(e.props,(function(t){switch(P.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return P.serialize([P.copy(e,{props:[P.replace(t,/:(read-\w+)/,":"+P.MOZ+"$1")]})],o);case"::placeholder":return P.serialize([P.copy(e,{props:[P.replace(t,/:(plac\w+)/,":"+P.WEBKIT+"input-$1")]}),P.copy(e,{props:[P.replace(t,/:(plac\w+)/,":"+P.MOZ+"$1")]}),P.copy(e,{props:[P.replace(t,/:(plac\w+)/,P.MS+"input-$1")]})],o)}return""}))}}],Mw=function(e){var t=e.key;if(xw&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||Sw,s={},a=[];xw&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)})));var l=[Cw,yw];if(kw){var c=[P.stringify],d=P.middleware(l.concat(i,c)),u=kw(i)(t),p=function(e,t){var n=t.name;return void 0===u[n]&&(u[n]=function(e){return P.serialize(P.compile(e),d)}(e?e+"{"+t.styles+"}":t.styles)),u[n]};r=function(e,t,n,o){var r=t.name,i=p(e,t);return void 0===g.compat?(o&&(g.inserted[r]=!0),i):o?void(g.inserted[r]=i):i}}else{var h,m=[P.stringify,P.rulesheet((function(e){h.insert(e)}))],x=P.middleware(l.concat(i,m));r=function(e,t,n,o){h=n,function(e){P.serialize(P.compile(e),x)}(e?e+"{"+t.styles+"}":t.styles),o&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new mw({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:r};return g.sheet.hydrate(a),g};const zw=()=>je.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),Bw=Mw({key:"muirtl",stylisPlugins:[P.prefixer,E]}),Vw=Mw({key:"mui"});exports.AIInsight=({comments:n,themeDescription:o,slotProps:r,suggestions:i,activeCommentIndex:s,onActiveCommentIndexChange:a})=>{const[l,c]=e.useState(0),d=t.useTheme(),u=e.useRef(null),[p,h]=e.useState("auto"),m=s??l,x=e=>{a&&a(e),void 0===s&&c(e)};e.useEffect((()=>{if(!u.current)return;const e=u.current.scrollHeight+2;h(e)}),[m]);const g=n?.length?n[m]:void 0,f=g?e.cloneElement(g,{ref:u}):void 0;return je.jsxs(bc,{slotProps:{childrenContainer:{display:"flex",flexDirection:"column",gap:d.spacing(d.custom.padding.md)}},withLockUp:!0,...r?.aiContentContainer,children:[je.jsx(ir,{component:"p",variation:"sm",children:o}),!!n?.length&&je.jsxs(t.Box,{children:[je.jsx(ir,{component:"p",variation:"sm",weight:"bold",sx:{pb:d.spacing(d.custom.padding.sm)},children:"Key comments"}),je.jsx(t.Box,{sx:{overflow:"hidden",height:"auto"===p?"auto":`${p}px`,transition:"height 0.1s ease-in-out",boxShadow:d.custom.elevation.raised,borderRadius:d.spacing(d.custom.radius.md)},children:f}),je.jsx(kc,{items:Array.from({length:n?.length},((e,t)=>t.toString())),activeItem:m.toString(),onClickNext:()=>{m+1===n.length?x(0):x(m+1)},onClickPrevious:()=>{x(0===m?n.length-1:m-1)}})]}),!!i?.length&&je.jsxs(t.Box,{children:[je.jsx(ir,{component:"p",variation:"sm",weight:"bold",children:"Ideas to consider"}),je.jsx(t.List,{sx:{listStyleType:"disc",padding:0,pl:2},children:i.map(((e,t)=>je.jsx(j,{sx:{display:"list-item",padding:0},children:je.jsx(b,{disableTypography:!0,primary:je.jsx(ir,{component:"p",variation:"sm",children:e})})},`${t}-suggestion`)))})]})]})},exports.AISummary=Sc,exports.AIWrittenByLockUp=wc,exports.Accordion=({heading:n,items:o})=>{const{custom:r}=t.useTheme(),[i,s]=e.useState("");return je.jsx(t.Container,{sx:{backgroundColor:r.palette.surface.default,color:r.palette.text.primary},children:je.jsxs(t.Grid2,{container:!0,sx:{alignItems:"center",display:"flex",justifyContent:"center",py:{sm:4,lg:6},gap:2},children:[je.jsx(t.Grid2,{size:[12,12,12,8],children:je.jsx(ir,{variation:"xl",component:"h2",fontWeight:500,sx:{textAlign:"center"},children:n})}),je.jsx(t.Grid2,{size:[12,12,12,8],children:o?.map((e=>{return je.jsxs(li,{expanded:i===e.heading,onChange:(t=e.heading,(e,n)=>{s(!!n&&t)}),children:[je.jsx(ci,{"aria-controls":`${e.heading}-content`,id:`${e.heading}-header`,heading:e.heading,children:je.jsx(ir,{variation:"lg",component:"p",fontWeight:500,children:e.heading})}),je.jsx(di,{children:"string"==typeof e.body?je.jsx(ir,{variation:"lg",component:"p",sx:{whiteSpace:"break-spaces"},children:e.body}):e.body})]},e.heading);var t}))})]})})},exports.AiContentContainer=bc,exports.AnnualController=({body:e,currency:n,hideCurrency:o=!1,changeCurrencyEvent:r=()=>{},frequency:i,heading:s,setCurrency:a=()=>{},setFrequency:l=()=>{},togglePayAnnuallyEvent:c=()=>{},selections:d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}]})=>{const u=t.useTheme(),p=Fr();return je.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:u.custom.palette.surface.default,borderRadius:u.custom.radius.round,boxShadow:u.custom.elevation.raised,display:"flex",gap:{sm:u.spacing(u.custom.padding.md),lg:u.spacing(u.custom.padding.lg)},pl:{sm:u.spacing(u.custom.padding.md),lg:u.spacing(u.custom.padding.lg)},pr:{sm:u.spacing(u.custom.padding.md+.5),lg:u.spacing(u.custom.padding.lg)},py:u.spacing(u.custom.padding.md)},children:[je.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:e=>({sm:e.spacing(e.custom.padding.sm),lg:e.spacing(e.custom.padding.md)})},children:[je.jsx(t.Box,{sx:{pr:e=>e.spacing(e.custom.padding.md),display:"flex"},children:je.jsx(ai,{onChange:()=>(c(),void l("monthly"===i?"annually":"monthly")),role:"switch","aria-checked":"annually"===i,"aria-label":"Switch between monthly and annual billing",checked:"annually"===i})}),je.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[je.jsx(ir,{variation:"md",component:"p",children:s}),je.jsx(ir,{variation:"sm",component:"p",sx:{color:u.custom.palette.text.secondary},children:e})]})]}),!o&&je.jsx(oi,{name:"currency",onChange:e=>{return t=e.target.value,r(t),void a(t);var t},selections:d,value:d.find((e=>e.value===n))?.value,sizing:["xs","sm","md"].includes(p)?"md":"lg",sx:{minWidth:{sm:64,lg:72}}})]})},exports.AssetItem=({size:e,thumbnail:t,cover:n,mediaType:o,loading:r,menuItems:i,slotProps:s,...a})=>je.jsx(Lc,{loading:r,size:e,...a,children:r?je.jsx(Nl,{sx:{borderRadius:0}}):je.jsxs(je.Fragment,{children:[je.jsx(Mc,{slotProps:s,menuItems:i}),je.jsx(Ic,{thumbnail:t,size:e}),je.jsx(Bc,{cover:n,mediaType:o})]})}),exports.AuthContainerSurface=({children:e,headContent:o,sx:r,...i})=>{const s=t.useTheme();return je.jsxs(gl,{...i,sx:n.mergeSx(r,{mx:[s.spacing(s.custom.margin.md),0],width:1,maxWidth:[512]}),children:[o&&je.jsx(t.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:s.spacing(s.custom.margin.md),px:s.spacing(s.custom.margin.md)},children:o}),je.jsx(t.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:o?[s.spacing(s.custom.margin.md)]:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],px:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)],pb:[s.spacing(s.custom.padding.lg),s.spacing(s.custom.padding.xl)]},children:e})]})},exports.AuthFormHeader=({logo:e,headerText:n,subText:o})=>{const r=t.useTheme();return je.jsxs(t.Stack,{gap:r.spacing(r.custom.margin.md),alignItems:"center",mb:r.spacing(r.custom.margin.lg),children:[!1===e?null:e||je.jsx(nr,{name:"brand-wordmark",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),je.jsxs(t.Stack,{gap:r.spacing(r.custom.margin.md),children:[n&&je.jsx(ir,{variation:"sm",component:"h1",align:"center",weight:"bold",children:n}),function(){if(o)return"string"==typeof o?je.jsx(ir,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},exports.Avatar=ui,exports.AvatarGroup=({variation:e="primary",...n})=>{if("primary"===e)return je.jsx(t.AvatarGroup,{...n})},exports.Badge=({children:e})=>je.jsx(pi,{children:je.jsx(hi,{variation:"xs",component:"p",type:"button",weight:"bold",children:e})}),exports.BrandBadge=({color:e,name:o,size:r,sx:i,...s})=>{const a=t.useTheme(),l=r||bi.xl,c=r||bi.xl,d={sx:n.mergeSx({color:(e=>{switch(e){case"purple":return a.custom.palette.purple[500];case"peach":return a.custom.palette.peach[500];case"red":return a.custom.palette.red[500];default:return a.custom.palette.icon.disabled}})(e),height:l,width:c},i),...s};switch(o){case"emotion-meh":return je.jsx(gi,{...d});case"emotion-good":return je.jsx(mi,{...d});case"emotion-great":return je.jsx(xi,{...d});case"understanding-unknown":return je.jsx(ji,{...d});case"understanding-low":return je.jsx(wi,{...d});case"understanding-good":return je.jsx(Ci,{...d});case"understanding-great":return je.jsx(yi,{...d});case"property-secure":return je.jsx(vi,{...d});case"property-private":return je.jsx(fi,{...d});default:return je.jsx(je.Fragment,{})}},exports.Breadcrumb=Ti,exports.BulletGraphic=({name:e,size:t,sx:o,...r})=>{const i=t||Di.xl,s=t||Di.xl,a={sx:n.mergeSx({height:i,width:s,fill:"none"},o),...r};switch(e){case"ai":return je.jsx(Ii,{...a});case"alert":return je.jsx(Fi,{...a});case"celebrate-collaborate":return je.jsx(Li,{...a});case"comment":return je.jsx(Pi,{...a});case"many-media":return je.jsx(Ai,{...a});case"qual-and-quant":return je.jsx(Ri,{...a});case"variant-test":return je.jsx(Hi,{...a});case"worldwide":return je.jsx($i,{...a});default:return je.jsx(Ei,{...a})}},exports.Button=Ni,exports.ButtonBase=_i,exports.Checkbox=Zi,exports.CheckboxGroup=qi,exports.ClipboardCopyingOverlay=Pc,exports.ColorBackgroundContainer=Ki,exports.CommentCard=Oc,exports.CreatableAutocomplete=ns,exports.CustomField=os,exports.DEFAULT_MAX_INPUT_LENGTH=cr,exports.DataPointInfo=qc,exports.DemographicSelectionSection=({demographicOptionLabel:e,demographicSelectionLabels:t})=>je.jsxs(Kc,{children:[je.jsx(ir,{component:"p",weight:"bold",variation:"xs",sx:{maxWidth:"128px",color:e=>e.custom.palette.text.primary,paddingTop:"1px"},children:e}),je.jsx(Yc,{children:t.map(((e,t)=>je.jsx(Dl,{label:e,sx:{maxWidth:"256px"}},`${t}-${e}`)))})]}),exports.Differential=ms,exports.DropdownMenu=({open:e,anchorEl:n,handleClick:o,handleClose:r,items:i,...s})=>je.jsx(je.Fragment,{children:je.jsx(xs,{anchorEl:n,open:e,onClose:r,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...s,children:i?.map(((e,n)=>je.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&je.jsx(t.Box,{mr:1,children:e.icon}),e.label]},n)))})}),exports.EmojiListItem=({disabled:e,loading:n,active:o,onClick:r,icon:i,label:s,slotProps:a,...l})=>{const c=t.useTheme();return je.jsx(Xc,{borderradius:"md",variation:"default",active:!e&&o,disabled:e,onClick:e?void 0:r,sx:{px:c.custom.padding.sm,py:c.custom.padding.xs,...a?.surface?.sx},...a?.surface,...l,children:je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-content-container",children:[i&&je.jsx(je.Fragment,{children:n?je.jsx(Nl,{variant:"text",width:24,sx:{borderRadius:"50%"}}):je.jsx(gs,{disabled:e,checked:!0,...a?.icon,children:i})}),s&&je.jsx(t.Box,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-label-container",children:n?je.jsx(Nl,{variant:"text",width:120}):je.jsx(ir,{component:"p",variation:"md",sx:{color:e?c.custom.palette.text.disabled:c.custom.palette.text.primary},...a?.label,children:s})})]})})},exports.EmojiQuestionEditorOption=({dragHandle:e=!1,disabled:n,loading:o,onDelete:r,primaryAction:i,icon:s,label:a,slotProps:l,...c})=>{const d=t.useTheme();return je.jsxs(Qc,{borderradius:"md",variation:"default",disabled:n,sx:{p:d.custom.padding.sm,...l?.surface?.sx},...l?.surface,...c,children:[e&&je.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},className:"emoji-list-item-drag-handle-container",children:je.jsx(Ks,{disabled:n,sizing:"xs",icon:je.jsx(nr,{name:"drag-handle",color:d.custom.palette.icon.secondary}),...l?.dragHandle})}),je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.sm),flex:"1 0 0",px:d.spacing(d.custom.padding.sm)},className:"emoji-list-item-content-container",children:[s&&je.jsx(je.Fragment,{children:o?je.jsx(Nl,{width:24,height:24,sx:{borderRadius:"50%"}}):je.jsx(gs,{disabled:n,checked:!0,...l?.icon,children:s})}),a&&je.jsx(t.Box,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.sm)},className:"emoji-list-item-label-container",children:o?je.jsx(Nl,{width:100,height:24}):je.jsx(ir,{component:"p",variation:"md",sx:{color:n?d.custom.palette.text.disabled:d.custom.palette.text.primary},...l?.label,children:a})})]}),(i||r)&&je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.xs)},className:"emoji-list-item-actions-container",children:[i&&je.jsx(je.Fragment,{children:o?je.jsx(Nl,{width:24,height:24}):i}),r&&je.jsx(je.Fragment,{children:o?je.jsx(Nl,{width:24,height:24}):je.jsx(Ks,{sizing:"xs",disabled:n,icon:je.jsx(nr,{name:"delete",color:d.custom.palette.icon.secondary}),onClick:e=>{e.stopPropagation(),r&&r()},...l?.deleteAction})})]})]})},exports.EmojiWrapper=gs,exports.EmptyStateCard=({onClickCta:e,ctaText:o="Create a new test",title:r="This Loop has no tests",body:i="Create a new test to start gathering insights on your creative work.",hideCta:s=!1,hideIcon:a=!1,iconName:l="data-bar",slotProps:c,sx:d})=>{const u=t.useTheme();return je.jsx(gl,{variation:"raised",borderradius:"lg",sx:n.mergeSx({backgroundColor:u.custom.palette.purple[0],p:u.spacing(u.custom.padding.md)},d),...c?.surface,children:je.jsxs(t.Stack,{gap:2,direction:"row",alignItems:"start",children:[!a&&je.jsx(t.Box,{sx:n.mergeSx({backgroundColor:u.custom.palette.yellow[300],flexShrink:0,p:u.spacing(u.custom.padding.sm),aspectRatio:1,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:u.spacing(u.custom.radius.round)},c?.icon?.sx),children:je.jsx(nr,{name:l,size:24})}),je.jsxs(t.Stack,{gap:2,alignItems:"start",children:[je.jsxs(t.Stack,{gap:u.spacing(u.custom.padding.sm),className:"copy-stack",children:[je.jsx(ir,{component:"p",variation:"lg",weight:"bold",sx:{color:u.custom.palette.purple[800]},...c?.title,children:r}),je.jsx(ir,{component:"p",variation:"md",sx:{color:u.custom.palette.purple[800]},...c?.body,children:i})]}),!s&&je.jsx(Ni,{onClick:e,...c?.button,children:o})]})]})})},exports.ExpandableTypographyClamp=ws,exports.ExtendedTestStatus=({animated:e=!0,status:n,segments:o,loading:r})=>{const i=t.useTheme(),{number:s,totalNumber:a}=o[0],l=a?Number(s)/a*100:void 0;return r?je.jsx(Nl,{width:"100%",height:73,sx:{borderRadius:i.spacing(i.custom.radius.lg)}}):je.jsxs(ad,{status:n,children:[je.jsxs(t.Stack,{direction:"row",gap:i.custom.padding.sm,alignItems:"center",sx:{flex:"1 1 auto",minWidth:"176px"},children:[je.jsx(nr,{name:td(n),size:24}),je.jsxs(t.Stack,{sx:{width:"100%",gap:i.spacing(i.custom.padding.sm)},children:[je.jsx(ir,{component:"p",variation:"md",sx:{color:nd(i,n,1e3)},children:ld(n)}),je.jsx(_l,{variation:"determinate",value:l,sx:{[`&.${t.linearProgressClasses.root}`]:{background:od(i,n,100),height:"8px",[`& .${t.linearProgressClasses.bar}`]:{backgroundColor:od(i,n)}}}})]})]}),je.jsx(t.Stack,{direction:"row",gap:i.custom.margin.lg,alignItems:"center",sx:{px:i.custom.padding.sm,flex:"0 0 auto"},children:o.map(((t,o)=>je.jsx(sd,{animated:e,segment:t,status:n},o)))})]})},exports.FilterCount=({animated:e=!0,buttonText:n,end:o,filteredCount:r,loading:i,onButtonPress:s=()=>{},start:a,totalCount:l})=>{const c=t.useTheme(),d={component:"p",variation:"xs"},u={color:c.custom.palette.text.secondary},p={color:c.custom.palette.text.link,component:"p",onClick:s,sx:{cursor:"pointer",textDecoration:"underline"},variation:"xs"},h="number"==typeof r&&r!==l,m=n&&"number"==typeof r&&r!==l;return je.jsx(cd,{children:i?je.jsxs(je.Fragment,{children:[je.jsxs(dd,{children:[a?je.jsx(Nl,{width:50,height:18}):null,je.jsx(Nl,{width:30,height:18}),o?je.jsx(Nl,{width:50,height:18}):null]}),m?je.jsx(Nl,{width:60,height:18}):null]}):je.jsxs(je.Fragment,{children:[je.jsxs(dd,{children:[a?je.jsx(ir,{...d,...u,children:a}):null,h?je.jsxs(je.Fragment,{children:[je.jsx(ir,{...d,weight:"bold",monospaced:!0,children:je.jsx(S,{value:r,animated:e})}),je.jsx(ir,{...d,...u,children:"/"})]}):null,je.jsx(ir,{...d,...u,monospaced:!0,children:je.jsx(S,{value:l,animated:e})}),o?je.jsx(ir,{...d,...u,children:o}):null]}),m?je.jsx(ir,{...p,children:n}):null]})})},exports.FilterGroupAccordion=({heading:e,showIndicator:o,slotProps:r,children:i})=>{const s=t.useTheme();return je.jsxs(t.Accordion,{disableGutters:!0,elevation:0,square:!0,...r?.accordion,sx:n.mergeSx({"&::before":{content:"none"}},r?.accordion?.sx),children:[je.jsxs(pd,{expandIcon:je.jsx(nr,{name:"chevron-down"}),...r?.summary,children:[je.jsx(ir,{component:"p",variation:"md",color:"textPrimary",children:e}),o&&je.jsx(hd,{})]}),je.jsx(t.AccordionDetails,{...r?.details,sx:n.mergeSx({padding:0,paddingTop:s.spacing(.5)},r?.details?.sx),children:i})]})},exports.FilterPyramidGraph=({label:o,left:r,center:i,right:s,maxValue:a,maxCount:l})=>{const c=t.useTheme(),[d,u]=e.useState(!1),{totalBarWidth:p,filteredBarWidth:h,barBackground:m}=vv(r,i,"left",a,l),{totalBarWidth:x,filteredBarWidth:g,barBackground:f}=vv(s,i,"right",a,l);return je.jsxs(t.Grid2,{container:!0,columnSpacing:c.custom.padding.xs,size:"grow",sx:n.mergeSx({p:c.custom.padding.xs,width:"100%",transition:"background 0.15s ease-in-out"},d?{background:c.custom.palette.interaction.hover}:{}),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[je.jsxs(t.Grid2,{size:"grow",position:"relative",overflow:"hidden",children:[je.jsx(gv,{sx:{width:`${p}%`,right:0}}),je.jsx(fv,{initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3,ease:"easeOut"},style:{background:m,transformOrigin:"right",right:0}}),je.jsx(zd,{children:r.label?.length&&d&&je.jsx(xv.div,{initial:{opacity:0,translateX:50},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:50},transition:{duration:.2,ease:"easeOut"},style:{position:"absolute",top:0,right:"8px"},children:je.jsx(ir,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:r.label})})})]}),je.jsx(t.Grid2,{size:2,sx:{maxWidth:"48px"},children:je.jsx(gl,{variation:"raised",borderradius:"sm",sx:n.mergeSx({transition:"background 0.5s ease-in-out, color 0.5s ease-in-out"},d?{background:c.custom.palette.neutral[800]}:{}),children:je.jsx(ir,{component:"p",variation:"xxs",sx:{color:d?c.custom.palette.text.primaryInverted:c.custom.palette.text.primary,textAlign:"center"},children:o})})}),je.jsxs(t.Grid2,{size:"grow",sx:{position:"relative",overflow:"hidden"},children:[je.jsx(gv,{sx:{width:`${x}%`}}),je.jsx(fv,{initial:{width:0},animate:{width:`${g}%`},transition:{duration:.3,ease:"easeOut"},style:{background:f,transformOrigin:"left"}}),je.jsx(zd,{children:s.label?.length&&d&&je.jsx(xv.div,{initial:{opacity:0,translateX:-50},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-50},transition:{duration:.2,ease:"easeOut"},style:{position:"absolute",top:0,left:"8px"},children:je.jsx(ir,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:s.label})})})]})]})},exports.FilterRow=({label:e,selectedCount:n,checked:o=!1,onChange:r,slotProps:i,disabled:s})=>{const a=t.useTheme();return je.jsx(Cv,{dense:!0,sx:{display:"flex",px:a.spacing(a.custom.padding.sm),"&.Mui-disabled":{background:"transparent"}},onClick:()=>{s||r?.(!o)},disabled:s,children:je.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:a.custom.padding.md,width:"100%",children:[je.jsx(Zi,{variant:"secondary",value:o,disabled:s,...i?.checkboxProps,sx:{"&.Mui-disabled > span":{borderColor:`${a.custom.palette.stroke.disabled} !important`},[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}}}),je.jsx(ir,{component:"p",variation:"md",sx:{color:s?a.custom.palette.text.disabled:a.custom.palette.text.primary},children:e}),je.jsx(ir,{monospaced:!0,component:"p",variation:"sm",sx:{color:s?a.custom.palette.text.disabled:a.custom.palette.text.secondary,ml:"auto",mt:"2px",flexShrink:0},noWrap:!0,children:je.jsx(S,{value:n||0,animated:!0})})]})})},exports.FilteredItemsCard=({onClickCta:e,primaryText:n="All items have been filtered out",secondaryText:o="Remove filters to see results",ctaText:r="Clear filters"})=>je.jsx(gl,{variation:"sunken",borderradius:"lg",sx:{flexGrow:1,maxHeight:"max-content"},children:je.jsxs(ud,{children:[je.jsxs(t.Stack,{sx:{gap:e=>e.spacing(e.custom.padding.sm),alignItems:"center",[`& .${t.typographyClasses.root}`]:{textAlign:"center"}},children:[je.jsx(ir,{component:"p",weight:"bold",variation:"lg",children:n}),je.jsx(ir,{component:"p",variation:"md",sx:{color:e=>e.custom.palette.text.secondary},children:o})]}),je.jsx(Ni,{variation:"outlined",sizing:"sm",onClick:e,children:r})]})}),exports.Flag=bs,exports.FormControlLabel=ri,exports.FormGenerator=Ra,exports.GraphBar=({id:o,label:r,value:i,relativePercentage:s,respondentCount:a,tooltipContent:l,icon:c,hideIcon:d=!1,hideCheckbox:u=!1,hideUnitColumn1:p=!1,hideUnitColumn2:h=!1,animated:m=!0,checked:x=!1,disabled:g=!1,onChange:f,percentageSymbol:v=!1,compact:C,slotProps:y={}})=>{const w=t.useTheme(),[k,B]=e.useState(0),V=e.useRef(null),T=y.icon;e.useEffect((()=>{const e=k,t=s||i,n=performance.now(),o=r=>{const i=r-n,s=Math.min(i/250,1);B(e+(t-e)*(s*(2-s))),s<1&&requestAnimationFrame(o)},r=requestAnimationFrame(o);return()=>cancelAnimationFrame(r)}),[s,i]);const I=e.useCallback((()=>{!g&&f&&f(!x)}),[g,f,x]),F=p&&h,L=null!=i,P=null!=a;return je.jsx(j,{disablePadding:!0,sx:{mb:w.spacing(w.custom.margin.xs)},children:je.jsx(or,{message:l||r,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{width:"100%"}}},...y.tooltip,children:je.jsxs(Cv,{id:o,role:void 0,onClick:I,dense:!0,disabled:g,sx:{display:"flex"},children:[!d&&c&&je.jsx(z,{...T,sx:n.mergeSx({minWidth:0,mr:w.custom.margin.xs,color:w.custom.palette.text.primary},T?.sx),children:c}),je.jsxs(t.Stack,{direction:"row",width:1,gap:C?w.custom.margin.sm:w.custom.margin.md,alignItems:"center",children:[je.jsxs(M,{sx:{display:"flex",position:"relative",width:"fill-available"},children:[!g&&je.jsx(wv,{variant:"determinate",value:k,checked:x,...y.graphBar}),je.jsx(b,{disableTypography:!0,primary:je.jsx(ir,{...y.graphBarTypography,component:"p",variation:"xs",noWrap:!0,sx:n.mergeSx(y.graphBarTypography?.sx,{color:(()=>{if(!x||g)return w.custom.palette.text.disabled;return("object"==typeof y.graphBarTypography?.sx&&null!==y.graphBarTypography?.sx&&"color"in y.graphBarTypography.sx?y.graphBarTypography.sx.color:void 0)||w.palette.text.primary})()}),children:r}),sx:{my:0,position:"absolute",display:"flex",alignItems:"center",inset:0,ml:1}})]}),!F&&je.jsxs(M,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:w.custom.margin.xs,children:[!p&&je.jsx(jv,{weight:"bold",color:w.palette.text.primary,disabled:g,checked:x,...y?.unitText1,children:L?je.jsxs(je.Fragment,{children:[je.jsx(S,{value:i,animated:m}),""+(v?"%":"")]}):"-"}),!h&&je.jsx(jv,{color:w.palette.text.secondary,disabled:g,checked:x,...y?.unitText2,children:P?je.jsx(S,{value:a,animated:m}):"-"})]}),!u&&je.jsx(M,{display:"flex",justifyContent:"space-between",alignItems:"center",children:je.jsx(Zi,{id:`${o}-checkbox`,variant:"secondary",checked:!g&&x,disabled:g,...y.checkbox,checkboxLabel:void 0,inputRef:V,sx:n.mergeSx(y.checkbox?.sx,{[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}})})})]})]})})})},exports.GridOverlay=({breakpoint:n=!0,maxWidth:o=!1,position:r="fixed",visible:i=!1})=>{const s=Array.from({length:6},((e,t)=>t)),a=Fr(),[l,c]=e.useState(i);return Cs("cmd+g",(e=>{e.preventDefault(),console.log("Command+G keyboard shortcut triggered"),c(!l)})),l&&je.jsxs(Ha,{position:r,children:[je.jsx($a,{maxWidth:!!o&&"xl",children:je.jsx(Da,{children:je.jsxs(t.Grid2,{container:!0,spacing:2,sx:{flex:1},children:[s.map((e=>je.jsx(t.Grid2,{sx:{display:{sm:"none",md:"block"}},size:"grow",children:je.jsx(Oa,{})},`grid-1-${e}`))),s.map((e=>je.jsx(t.Grid2,{sx:{display:{sm:"block"}},size:"grow",children:je.jsx(Oa,{})},`grid-2-${e}`)))]})})}),n&&je.jsx(_a,{children:je.jsx(ir,{variation:"md",component:"p",weight:"bold",children:a})})]})},exports.Header=({backAction:e,title:o,showEditTitleOnlyOnHover:r=!0,breadcrumbLinks:i,buttons:s,controlBar:a,sx:l,slotProps:c,loading:d})=>{const u={...c,container:{maxWidth:!1,...c?.container}};return je.jsxs(je.Fragment,{children:[je.jsx(bv,{sx:n.mergeSx({justifyContent:"space-between",position:"sticky",top:"0",zIndex:999},l),children:je.jsx(t.Container,{...u.container,children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsxs(zv,{sx:{justifyContent:"space-between",py:1,height:61},children:[je.jsxs(zv,{children:[void 0!==e&&je.jsx(Ks,{sizing:"lg",icon:je.jsx(nr,{name:"arrow-left",size:20}),sx:{color:e=>e.custom.palette.icon.primary},onClick:e}),je.jsxs(zv,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,...r&&{":hover .Header__TitleIconButton":{opacity:1}}},children:[d?je.jsx(Nl,{width:256,sx:{fontSize:xr.lg,lineHeight:1.4}}):je.jsx(ir,{variation:"lg",component:"p",weight:"bold",children:o}),void 0!==u?.titleIconButton?.onClick&&je.jsx(Ks,{icon:je.jsx(nr,{name:"edit"}),sizing:"md",sx:{my:"-4px",...r&&{opacity:0,transition:"opacity 0.3s ease"}},className:"Header__TitleIconButton",...u?.titleIconButton})]}),i&&je.jsx(je.Fragment,{children:d?je.jsx(Nl,{width:200,height:17,sx:{fontSize:xr.lg,lineHeight:1.4,mt:.5}}):je.jsx(Ti,{links:i})})]})]}),s&&je.jsx(zv,{children:s})]})})})})}),a&&je.jsx(kv,{children:je.jsx(t.Container,{...u.container,children:je.jsx(t.Grid2,{container:!0,spacing:2,children:je.jsx(t.Grid2,{size:12,children:je.jsx(Sv,{children:je.jsx(Mv,{children:a})})})})})})]})},exports.Html=ks,exports.HtmlParser=Wa,exports.Icon=nr,exports.IconButton=Ks,exports.IconButtonBase=Us,exports.IconButtonGroup=Xs,exports.Image=Za,exports.InputFieldBase=Ui,exports.InputLabel=Ss,exports.InputLabelHelp=ss,exports.KpiDataPopover=({indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:r,combinedAveragePercent:i,linkedQuestions:s})=>je.jsxs(gl,{variation:"overlay",borderradius:"lg",sx:{padding:e=>e.spacing(e.custom.padding.md),paddingBottom:0,maxHeight:"384px",width:"320px",overflowY:"scroll",backgroundColor:e=>e.custom.palette.surface.overlay},children:[je.jsxs(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),sx:{},children:[je.jsx(Vv,{indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:r,combinedAveragePercent:i}),je.jsx(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),children:s&&s.map(((e,t)=>je.jsx(Uv,{...e},`${t}-${e.questionTitle}`)))})]}),je.jsx(t.Box,{sx:{position:"sticky",bottom:0,height:"24px",width:"100%",background:e=>`linear-gradient(0deg, ${e.custom.palette.surface.overlay} 0%, rgba(0, 0, 0, 0.00) 100%)`}})]}),exports.KpiIndicator=Wc,exports.Label=Ka,exports.Likert=Ls,exports.Link=Si,exports.Loader=({fullscreen:e})=>e?je.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100dvw",height:"calc(100dvh - 80px)",background:e=>e.custom.palette.white},children:je.jsx(t.Box,{sx:{width:200},children:je.jsx(Ya,{})})}):je.jsx(Ya,{}),exports.Logo=e=>je.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:je.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.LoopItem=({onClick:e,id:n,thumbnail:o,title:r,active:i=!1,loading:s,testCount:a,draftCount:l,cta:c})=>{const d=t.useTheme();return s?je.jsxs(qv,{onClick:e,active:i,"data-id":n,cta:c,children:[je.jsx(Yv,{id:"image-holder",children:je.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),je.jsx(Xv,{children:je.jsxs(t.Box,{display:"flex",gap:1,flexDirection:"column",width:2/3,alignSelf:"center",children:[je.jsx(Nl,{height:19}),je.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[je.jsx(Nl,{height:16}),je.jsx(Nl,{height:16})]})]})})]}):je.jsxs(qv,{onClick:e,active:i,"data-id":n,cta:c,children:[je.jsx(Yv,{id:"image-holder",children:je.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),je.jsxs(Xv,{children:[je.jsx(Jv,{component:"p",variation:"sm",weight:"bold",active:i,children:r}),je.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[!a&&!l&&je.jsx(eC,{component:"p",variation:"sm",active:i,children:"Empty"}),!!a&&je.jsx(eC,{component:"p",variation:"sm",active:i,children:`${a} ${Gv("Test",a)}`}),!!l&&je.jsx(eC,{component:"p",variation:"sm",active:i,children:`${l} ${Gv("Draft",l)}`})]})]}),c&&je.jsx(Qv,{children:c})]})},exports.LoopItemEmpty=nC,exports.LoopsAiButton=Qa,exports.Markdown=({typographyProps:e={variation:"lg",component:"p"},children:t=""})=>je.jsx(w,{options:{overrides:{p:{component:ir,props:e},ul:{component:({children:e,...t})=>je.jsx("ul",{...t,children:e}),props:{style:{color:"object"==typeof e?.sx&&e?.sx&&"color"in e.sx&&"string"==typeof e.sx.color?e.sx.color:"inherit"}}}},forceBlock:!0,forceWrapper:!0},children:t}),exports.Menu=kl,exports.ModalActionsWrapper=Ml,exports.ModalContentWrapper=zl,exports.ModalLayout=({title:e,subtitle:n,body:o,children:r,extraAction:i,hideCloseButton:s,contentPadding:a,handleClose:l})=>{const c=t.useTheme();return je.jsxs(gl,{variation:"overlay",sx:{minWidth:320,width:"100%",maxWidth:600,overflow:"hidden",position:"relative"},children:[je.jsxs(t.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:c.custom.margin.md,padding:c.custom.padding.md,paddingLeft:c.custom.padding.lg,children:[je.jsxs(t.Stack,{children:["string"==typeof e?je.jsx(ir,{component:"p",variation:"xl",weight:"bold",children:e}):e,n&&je.jsx(ir,{component:"p",variation:"md",sx:{color:c.custom.palette.text.secondary},children:n})]}),je.jsxs(t.Stack,{direction:"row",gap:c.spacing(c.custom.margin.md),height:32,children:[i,!s&&je.jsx(Ks,{sizing:"md",icon:je.jsx(nr,{name:"close"}),sx:{color:c.custom.palette.icon.primary},onClick:l})]})]}),o&&je.jsx(zl,{contentPadding:!!a,children:je.jsx(t.Stack,{gap:c.custom.padding.md,sx:{maxWidth:600},children:"string"==typeof o?je.jsx(ir,{component:"p",variation:"md",children:o}):o})}),r&&je.jsx(zl,{contentPadding:!!a,children:r})]})},exports.Navigation=({logoLink:e,isMobile:n,nudgeProps:o,primaryMenuItemProps:r,secondaryMenuItemProps:i,sizing:s="lg",tertiaryMenuItemProps:a,toggleMenuOnClick:l=()=>{},userMenuProps:c})=>{const d=t.useTheme();return je.jsxs(lC,{navigationSizing:s,children:[je.jsx(aC,{logoLink:e,navigationSizing:s,toggleMenuOnClick:l,isMobile:n}),je.jsx(cC,{children:je.jsxs(t.Stack,{sx:{gap:4,justifyContent:"space-between",width:"100%"},children:[!!r?.length&&je.jsx(t.Stack,{sx:{gap:"lg"===s?.5:2,width:"100%"},children:r.map(((e,t)=>je.jsx(Ll,{navigationSizing:s,...e},`primary-menu-item-${t}`)))}),je.jsxs(t.Stack,{sx:{gap:2},children:[o?.title&&je.jsx(Hl,{navigationSizing:s,...o}),!!i?.length&&i.map(((e,t)=>je.jsx(Ll,{navigationSizing:s,...e,label:"Help center"===e.label&&"sm"===s?"Help":e.label},`secondary-menu-item-${t}`))),je.jsx(t.Divider,{sx:{color:d.custom.palette.stroke.default}}),je.jsx(oc,{rounded:"sm"===s,...c}),!!a?.length&&je.jsx(dC,{children:a.map(((e,t)=>je.jsx(Ll,{navigationSizing:s,...e},`tertiary-menu-item-${t}`)))})]})]})})]})},exports.NavigationButton=Ll,exports.Nudge=Hl,exports.NumberField=ea,exports.OnboardingCard=({cardTitle:n,cardSubtitle:r,welcomeImageUrl:i,welcomeImageAltDescription:s,items:a=[]})=>{const[l,c]=e.useState(!0),d=Fr(),u=()=>c(!l),p=a.length,h=a.filter((e=>e.complete)).length,m=h/p*100;return je.jsxs(gl,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"xl"===d?"row":"column",gap:e=>({sm:e.spacing(e.custom.padding.md),lg:e.spacing(e.custom.margin.lg)}),padding:e=>({sm:e.spacing(e.custom.margin.md),lg:e.spacing(e.custom.margin.lg)})},children:[je.jsxs(uC,{children:[je.jsx(t.Box,{component:"img",src:i,alt:s,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),je.jsx(ir,{component:"h1",variation:"md",fontWeight:500,children:n}),je.jsx(hC,{component:"p",variation:"lg",children:r})]}),je.jsxs(pC,{children:[je.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[je.jsx(ly,{completed:h,total:p}),l&&je.jsx(Ks,{sizing:"sm",variation:"outlined",icon:je.jsx(o.ExpandLess,{}),onClick:u})]}),je.jsx(_l,{variation:"determinate",value:m}),je.jsx(ay,{expanded:l,onToggleExpanded:u,items:a})]})]})},exports.PaginationControl=kc,exports.Pill=Dl,exports.PlanFeatureTable=({currencySymbol:e,data:n,loading:o,tier1MinimumTerm:r,tier1Price:i,tier1QuestionLimit:s,tier1RespondentPrice:a,tier2MinimumTerm:l,tier2Price:c,tier2QuestionLimit:d,tier2RespondentPrice:u,tier3MinimumTerm:p,tier3Price:h,tier3QuestionLimit:m,tier3RespondentPrice:x,tier4MinimumTerm:g,tier4Price:f,tier4QuestionLimit:v,tier4RespondentPrice:C,variation:y="default"})=>{if(o)return je.jsx(cc,{});const w=t.useTheme(),j={...sr,...n},b=t=>"number"==typeof t?`${e}${new Intl.NumberFormat("en-GB").format(t)}`:t||"",k=t=>t.replace("{{currencySymbol}}",e||"").replace("{{tier1MinimumTerm}}",r?`${r} months`:"No minimum term").replace("{{tier2MinimumTerm}}",l?`${l} months`:"No minimum term").replace("{{tier3MinimumTerm}}",p?`${p} months`:"No minimum term").replace("{{tier4MinimumTerm}}",g?`${g} months`:"No minimum term").replace("{{tier1Price}}",b(i)).replace("{{tier2Price}}",b(c)).replace("{{tier3Price}}",b(h)).replace("{{tier4Price}}",b(f)).replace("{{tier1QuestionLimit}}",s?String(s):"").replace("{{tier2QuestionLimit}}",d?String(d):"").replace("{{tier3QuestionLimit}}",m?String(m):"").replace("{{tier4QuestionLimit}}",v?String(v):"").replace("{{tier1RespondentPrice}}",b(a)).replace("{{tier2RespondentPrice}}",b(u)).replace("{{tier3RespondentPrice}}",b(x)).replace("{{tier4RespondentPrice}}",b(C)),S=Object.values(j.headings).map((({heading:e,pricing:t})=>({heading:e,pricing:k(t)}))),M=[...Object.values(j.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},tier1:k(e.tier1),tier2:k(e.tier2),tier3:k(e.tier3),tier4:k(e.tier4)})))];return je.jsxs(t.Stack,{sx:{backgroundColor:w.custom.palette.surface.default,borderRadius:w.spacing(w.custom.radius.xl),boxShadow:w.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[je.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[je.jsx(t.Box,{sx:{width:160}}),S.map((({heading:e,pricing:n})=>je.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[je.jsx(ir,{variation:"platform"===y?"lg":"xxl",component:"p",weight:"bold",children:e}),je.jsx(ir,{variation:"platform"===y?"sm":"md",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]},e)))]}),M.map((e=>je.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(even)":{backgroundColor:w.custom.palette.surface.sunken}},children:[je.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:je.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&je.jsx(or,{message:e.name.description,children:je.jsx(t.Box,{sx:{alignItems:"center",color:w.custom.palette.icon.secondary,display:"flex"},children:je.jsx(nr,{name:"info",size:24})})}),je.jsx(ir,{variation:"platform"===y?"md":"lg",component:"p",children:e.name.heading})]})}),je.jsx(uc,{text:e.tier1}),je.jsx(uc,{text:e.tier2}),je.jsx(uc,{text:e.tier3}),je.jsx(uc,{text:e.tier4})]},e.key)))]})},exports.PlanTierCard=({amount:n,billingType:o,body:r,ctaEvent:i=()=>{},ctaLink:s="#",ctaTarget:a="_self",ctaText:l,ctaVariation:c="primary",currencySymbol:d,currentPlan:u,features:p=[],heading:h,label:m,loading:x,perMonth:g,respondentsTitle:f,respondentsFeatures:v,saving:C,sectionHeights:y,updateSectionHeight:w})=>{const j=t.useTheme(),b=Fr(),{width:k}=vs(),S=e.useRef(null),M=e.useRef(null),z=e.useRef(null),B=e.useRef(null),[V,T]=e.useState("sm");return x?je.jsx(gc,{}):(e.useEffect((()=>{e.startTransition((()=>{if(y&&w){b!==V&&(w("headerHeight",0),w("bodyHeight",0),w("respondentCardHeight",0),w("bottomHeight",0));[{ref:S,key:"headerHeight"},{ref:M,key:"bodyHeight"},{ref:z,key:"respondentCardHeight"},{ref:B,key:"bottomHeight"}].forEach((({ref:e,key:t})=>{e.current?.offsetHeight&&e.current.offsetHeight>y[t]&&w(t,e.current.offsetHeight)}))}}))}),[b,V,k]),je.jsxs(xc.PlanTierCard,{children:[je.jsxs(xc.Top,{children:[je.jsxs(xc.Head,{ref:S,height:y?.headerHeight,children:[je.jsxs(xc.PlanTitle,{children:[je.jsx(ir,{variation:"md",component:"h1",weight:"bold",children:h}),m&&je.jsx(Ka,{body:m,weight:"heavy",sx:{backgroundColor:e=>e.custom.palette.icon.primary,color:e=>e.custom.palette.text.primaryInverted}})]}),je.jsxs(xc.Billing,{children:[je.jsxs(xc.Price,{children:[je.jsxs(ir,{variation:"lg",component:"h1",weight:"bold",sx:{fontFamily:e=>e.typography.fontFamily,lineHeight:1},children:[d,n]}),g&&je.jsx(ir,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.secondary,lineHeight:1},children:g})]}),o&&je.jsx(ir,{variation:"sm",component:"p",sx:{color:j.custom.palette.text.secondary},children:o})]}),C&&je.jsx(yc,{body:C,weight:"heavy"})]}),je.jsx(xc.Body,{ref:M,height:y?.bodyHeight,children:je.jsx(ir,{variation:"lg",component:"p",children:r})}),f&&je.jsx(Cc,{ref:z,height:y?.respondentCardHeight,respondentsTitle:f,respondentsFeatures:v})]}),je.jsxs(xc.Bottom,{ref:B,height:y?.bottomHeight,children:[p?.length&&je.jsx(xc.FeatureList,{children:p.map(((e,t)=>je.jsx(hc,{feature:e},`${h}-feature-${t}`)))}),!u&&je.jsx(Si,{href:s,title:l,target:a,onClick:()=>{h&&i(h)},sx:{"&:hover":{cursor:"pointer"}},children:je.jsx(Ni,{fullWidth:!0,variation:c,sizing:"lg",disabled:u,children:l})})]})]}))},exports.Popper=vl,exports.PoweredByWatermarkLogo=()=>je.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[je.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:je.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"})}),je.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[je.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:je.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"})}),je.jsx("defs",{children:je.jsx("clipPath",{id:"clip0_900_1816",children:je.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=qs,exports.ProgressBar=_l,exports.ProjectItem=e=>"list"===e.viewType?je.jsx(jy,{...e}):je.jsx(wy,{...e}),exports.ProjectItemEmpty=({onClick:e,viewType:n,title:o})=>{const r=t.useTheme();return"list"===n?je.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${r.custom.palette.stroke.light}`},children:je.jsxs(xy,{component:"div",onClick:e,sx:{display:"flex",gap:r.spacing(r.custom.margin.sm),alignItems:"center",padding:r.spacing(r.custom.padding.xs)},children:[je.jsx(gy,{sx:{height:72,width:108},"data-id":"image-container",children:je.jsx(Cy,{viewType:n,children:je.jsx(nr,{name:"add"})})}),je.jsx(vy,{sx:{overflow:"hidden",pl:r.spacing(r.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:je.jsx(t.Stack,{gap:r.spacing(r.custom.margin.xs),children:je.jsx(hy,{title:o,maxLines:1})})})]})}):je.jsx(my,{sx:{height:"100%"},children:je.jsxs(xy,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[je.jsx(gy,{"data-id":"image-container",sx:{width:"100%"},children:je.jsx(Cy,{viewType:n,children:je.jsx(nr,{name:"add"})})}),je.jsx(vy,{children:je.jsx(hy,{title:o,maxLines:2})})]})})},exports.QuestionBlock=({preQuestionText:e,questionText:n,questionType:o,supportText:r,slotProps:i,loading:s})=>{const a=t.useTheme();return s?je.jsxs(Sy,{children:[je.jsx(ky,{loading:!0}),je.jsxs(t.Stack,{gap:1,sx:{padding:a.spacing(a.custom.padding.md)},children:[je.jsx(Nl,{width:"100%",height:22}),je.jsx(Nl,{width:"100%",height:44}),je.jsx(Nl,{width:"100%",height:66})]})]}):je.jsxs(Sy,{children:[je.jsx(ky,{type:o}),je.jsxs(My,{children:[e&&je.jsx(ir,{variation:"md",component:"p",color:a.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),je.jsx(ir,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:n}),r&&je.jsx(Wa,{children:r})]})]})},exports.QuestionLabel=ky,exports.QuestionSelector=zy,exports.Radio=ds,exports.RadioGroup=ta,exports.Rank=ma,exports.RichTextField=ga,exports.SearchInput=Vy,exports.SectionHeader=({loading:e,...t})=>je.jsx(je.Fragment,{children:e?je.jsx(Py,{...t}):je.jsx(Ly,{...t})}),exports.Select=oi,exports.SentimentArrow=Rc,exports.Skeleton=Nl,exports.Slider=ba,exports.SortableList=ha,exports.StarRating=Sa,exports.Surface=gl,exports.Switch=si,exports.Tab=({active:e,animated:n,label:o,sentimentScore:r,stat:i,title:s,onClick:a})=>{const l=t.useTheme();return je.jsxs(Ay,{layout:n,active:e,onClick:a,children:[je.jsx(ir,{component:"p",variation:"sm",weight:"bold",children:s}),je.jsxs(Ey,{layout:n,children:["number"==typeof r?je.jsxs(je.Fragment,{children:[je.jsx(ir,{monospaced:!0,variation:"md",component:"p",weight:"bold",sx:{lineHeight:"160%"},children:je.jsx(S,{value:r,format:{maximumFractionDigits:1},animated:n})}),je.jsx(Rc,{sentimentScore:r})]}):je.jsx(ir,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:je.jsx(je.Fragment,{children:"number"==typeof i?je.jsx(S,{value:i,format:{maximumFractionDigits:1},animated:n}):"-"})}),!!o&&je.jsx(ir,{component:"p",variation:"xs",color:l.custom.palette.text.secondary,clamp:1,sx:{wordBreak:"break-all"},children:o})]})]})},exports.TestItem=({animated:o=!0,status:r,menuItems:i,title:s,tags:a,stats:l,user:c,slotProps:d,loading:u=!1,...p})=>{const[h,m]=e.useState(!1);return je.jsx(gl,{variation:"raised",borderradius:"lg",...p,sx:n.mergeSx({padding:e=>e.spacing(e.custom.padding.md),border:e=>`1px solid ${e.custom.palette.stroke.light}`,width:"100%",cursor:"pointer","&:hover .TestItem__Menu":{opacity:1}},p.sx),children:je.jsxs(t.Stack,{component:"article",gap:2,children:[je.jsxs(t.Stack,{component:"header",gap:1,justifyContent:"space-between",children:[je.jsxs(t.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[u?je.jsx(Nl,{sx:{width:90,height:32}}):je.jsx(id,{status:r,...d?.status}),!u&&Boolean(i?.length)&&je.jsx(kl,{trigger:je.jsx(Ks,{icon:je.jsx(nr,{name:"more-horizontal",size:16}),variation:"outlined",className:"TestItem__Menu",sx:{width:28,aspectRatio:1,borderRadius:"100% !important",transition:"opacity 0.3s ease",opacity:0,"&:focus":{background:e=>`${e.custom.palette.interaction.press} !important`,opacity:1}}}),bindOn:["toggle"],menuItems:i,width:128,offset:[0,8],placement:"bottom-end",...d?.menu})]}),u?je.jsx(Nl,{}):je.jsx(ir,{component:"h1",weight:"bold",...d?.title,sx:n.mergeSx({fontSize:e=>e.custom.typography.body.xl},d?.title?.sx),children:s})]}),je.jsx(t.Box,{children:u?je.jsx(t.Box,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>je.jsx(Nl,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(a?.length)&&je.jsx(I.TruncatedList,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...h&&{maxHeight:"none"}},alwaysShowTruncator:h,renderTruncator:({hiddenItemsCount:e})=>e>0?je.jsx(Ka,{body:`+${e}`,weight:"light",onClick:e=>{e.stopPropagation(),m(!0)},...d?.tagsExpand,sx:n.mergeSx({background:e=>e.custom.palette.neutral[50]},d?.tagsExpand?.sx)}):je.jsx(Ks,{sizing:"sm",icon:je.jsx(nr,{name:"chevron-up",size:16}),onClick:e=>{e.stopPropagation(),m(!1)},...d?.tagsCollapse,sx:n.mergeSx({color:e=>e.custom.palette.icon.primary},d?.tagsCollapse?.sx)}),children:a.map((e=>je.jsx(Ka,{body:e,weight:"light",...d?.pill,sx:n.mergeSx({background:e=>e.custom.palette.neutral[50]},d?.pill?.sx)},e)))})}),!u&&l?.progress&&je.jsx(gl,{variation:"sunken",borderradius:"md",sx:{border:e=>`1px solid ${e.custom.palette.neutral[100]}`,padding:e=>e.spacing(e.custom.padding.md)},children:je.jsxs(t.Stack,{gap:2,children:[je.jsx(_l,{variation:"determinate",value:l.progress.percentage}),je.jsxs(t.Box,{gap:{sm:.5,md:1},justifyContent:"stretch",sx:e=>({display:"grid",[e.breakpoints.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.breakpoints.down("lg")]:{gridTemplateColumns:"auto"},[e.containerQueries.up("lg")]:{gridTemplateColumns:"repeat(3, 1fr)"},[e.containerQueries.down("lg")]:{gridTemplateColumns:"auto"}}),children:[je.jsx(t.Box,{flexBasis:0,flexGrow:1,children:je.jsx(Ry,{animated:o,label:"Completed",primaryText:l.progress.completed.toString(),secondaryText:`of ${l.progress.total}`})}),je.jsx(t.Box,{flexBasis:0,flexGrow:1,children:je.jsx(Ry,{animated:o,label:"Incomplete",primaryText:l.progress.incomplete.toString(),secondaryText:`${l.progress.incompletePercentage}%`})}),je.jsx(t.Box,{flexBasis:0,flexGrow:1,children:je.jsx(Ry,{animated:o,label:"Duration",primaryText:l.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==r&&je.jsxs(t.Box,{display:"flex",justifyItems:"center",gap:.3,children:[je.jsx(ir,{component:"p",sx:{fontSize:e=>e.custom.typography.body.sm,color:e=>l?.progress?.estimatedTimeToComplete?e.custom.palette.text.secondary:e.custom.palette.text.placeholder,"& > strong":{color:e=>e.custom.palette.text.primary}},children:l.progress.estimatedTimeToComplete?je.jsxs(je.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(r)," ",je.jsx("strong",{children:l.progress.estimatedTimeToComplete})]}):je.jsx(je.Fragment,{children:"Not enough data to estimate completion time"})}),l.progress.estimatedTimeToComplete&&je.jsx(or,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:je.jsx(t.Box,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:je.jsx(nr,{name:"info",size:16})})})]})]})}),je.jsxs(t.Box,{component:"footer",display:"flex",flexDirection:"row",justifyContent:c?"space-between":"end",gap:1,children:[c&&je.jsx(t.Box,{display:"flex",alignItems:"center",gap:1,children:u?je.jsxs(je.Fragment,{children:[je.jsx(Nl,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),je.jsx(Nl,{sx:{width:100}})]}):je.jsx(je.Fragment,{children:je.jsx(ir,{component:"p",clamp:1,sx:{fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.secondary},children:c.activityDescription})})}),!u&&"draft"!==r&&je.jsxs(t.Box,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[je.jsx(Hy,{animated:o,iconName:"data-bar",label:"answers",value:l?.count?.answers??0}),je.jsx(Hy,{animated:o,iconName:"comment-filled",label:"comments",value:l?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},exports.TestKPICard=$y,exports.TextBarDivider=({typographyProps:e,text:o,sx:r})=>{const i=t.useTheme();return je.jsx(t.Box,{sx:n.mergeSx(r,{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:je.jsx(ir,{align:"center",variation:"sm",component:"p",...e,children:o})})},exports.TextField=Gi,exports.Textarea=za,exports.ThemeContext=pw,exports.ThemeProvider=({mode:e="light",screenSize:n="lg",direction:o="ltr",ignoreCacheProvider:i,children:s})=>{const a=hw(e,n,o),l=()=>je.jsxs(r.ThemeProvider,{theme:a.theme,children:[je.jsx(t.CssBaseline,{}),je.jsx(zw,{}),s]});return je.jsx(pw.Provider,{value:a,children:i?l():je.jsx(A.CacheProvider,{value:"rtl"===o?Bw:Vw,children:l()})})},exports.TickGroup=({heading:e,ticks:n})=>je.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4}},children:[je.jsx(ir,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),je.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:n.map(((n,o)=>je.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[je.jsx(nr,{name:"badge-tick",size:32}),je.jsx(ir,{variation:"xxl",component:"p",children:n})]},`tick-group-${e}-${o}`)))})]}),exports.Toast=({buttons:e,message:n,status:o="neutral",variation:r="sm"})=>{const i=t.useTheme();return je.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:je.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===r?"row":"column",gap:2},children:[je.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&je.jsx(Zl,{status:o}),je.jsx(t.Box,{sx:{display:"flex"},children:je.jsx(ir,{variation:"md",component:"p",sx:{px:1,pt:.5},children:n})})]}),e&&je.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=or,exports.TrialCard=({promoHeadline:e,promoDescription:t,ctaText:n,ctaFn:o})=>je.jsxs(Yl.TrialCard,{gradient:"tone1",texture:"noise1",children:[je.jsxs(Yl.Top,{sx:{alignItems:"start"},children:[je.jsx(Xl,{body:e,weight:"heavy",icon:je.jsx(nr,{name:"gift"})}),je.jsx(ir,{component:"p",variation:"lg",sx:{maxWidth:{lg:600,md:"initial"},color:e=>e.custom.palette.text.lockedWhite},children:t})]}),je.jsx(Yl.CtaButtonContainer,{children:je.jsx(Yl.CtaButton,{variation:"secondary",onClick:o,children:n})})]}),exports.Typography=ir,exports.UserMenu=oc,exports.VideoControls=aw,exports.VideoModal=({modalVisible:e=!1,showModal:n,video:o})=>je.jsx(t.Modal,{closeAfterTransition:!0,onClose:()=>n(!1),open:e,hideBackdrop:!0,children:je.jsx(t.Fade,{in:e,children:je.jsxs(ic,{children:[je.jsx(t.Backdrop,{open:e,onClick:()=>n(!1)}),je.jsx(sc,{children:je.jsx(ac,{children:je.jsx(lc,{autoPlay:!0,controls:!0,controlsList:"nodownload noremoteplayback noplaybackrate",disablePictureInPicture:!0,muted:!0,preload:"auto",src:o,tabIndex:-1})})}),je.jsx(rc,{children:je.jsx(t.Container,{children:je.jsx(Ks,{icon:je.jsx(nr,{name:"close",size:24}),variation:"outlined",shape:"round",onClick:()=>n(!1)})})})]})})}),exports.backgroundCreator=Ir,exports.base=ie,exports.blue=G,exports.blueRamp=te,exports.boxShadow=ue,exports.breakpoints=oe,exports.buttonHeightMap=wr,exports.buttonInteraction=yr,exports.chooseArticle=ar,exports.compareArrayMembers=function(e,t){const n=new Set(e),o=new Set(t);return e.every((e=>o.has(e)))&&t.every((e=>n.has(e)))},exports.customTheme=cw,exports.darkNeutral=D,exports.darkNeutralAlpha=_,exports.defaultInputValidation=lr,exports.easing=pe,exports.elevation=ce,exports.elevationFilter=de,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.fonts=xe,exports.generateRamp=Y,exports.getButtonSizing=Sr,exports.getButtonTypography=kr,exports.getIconSizing=br,exports.getKpiIndicatorColor=_c,exports.green=q,exports.greenRamp=ne,exports.iconButtonHelpers=Ns,exports.iconSizeMap=tr,exports.isButton=fs,exports.mapKpiColorSchemeByInteger=e=>["purple","peach","blue","yellow","green","red"][e],exports.margin=se,exports.neutral=$,exports.neutralAlpha=O,exports.neutralRamp=K,exports.outlined=fr,exports.padding=ae,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.peach=Z,exports.peachRamp=J,exports.primary=Cr,exports.purple=W,exports.purpleRamp=X,exports.radius=le,exports.red=N,exports.redRamp=Q,exports.secondary=vr,exports.semantic=he,exports.space=re,exports.subtle=gr,exports.useBreakpoint=Fr,exports.useDropdownMenu=()=>{const[t,n]=e.useState(null);return{open:Boolean(t),handleClick:e=>{n(e.currentTarget)},handleClose:()=>{n(null)},anchorEl:t}},exports.useKeyCombo=Cs,exports.usePrevious=ys,exports.useScreenSize=vs,exports.useTheme=()=>{const t=e.useContext(pw);return function(e,t){if(!e){if(dw)throw new Error(uw);var n=t,o="".concat(uw,": ").concat(n);throw new Error(o)}}(t,"useTheme must be used within a ThemeProvider"),t},exports.useThemeBuilder=hw,exports.yellow=U,exports.yellowRamp=ee;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useloops/design-system",
3
- "version": "1.4.517",
3
+ "version": "1.4.518",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",