@useloops/design-system 1.4.522 → 1.4.523

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 wb(){return cb?lb:(cb=1,lb=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var yb=fb();Jj.exports=function(){if(hb)return pb;hb=1;var e=fb(),t=vb(),n=Cb(),i=wb(),o=function(){if(ub)return db;ub=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Cb(),n={},i=wb();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 "+w(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 w(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}()(yb.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)}`}))),Ib=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),Eb=F(zl)((({theme:e})=>({[`&.${X.root}`]:{...Ib(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}}}}))),Rb=F(M)((({theme:e})=>({[`&.${je.root}`]:{...Ib(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(Rb,{children:e}):gi.jsx(Eb,{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(Gt,{children:[gi.jsx(Bb,{completed:n,children:n?gi.jsx(Ys,{name:"badge-tick-in-circle",size:24}):void 0}),t&&gi.jsx(qt,{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(Uy.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`}),Gb=({cardTitle:e,cardSubtitle:t,welcomeImageUrl:n,welcomeImageAltDescription:o,items:r=[]})=>{const[s,a]=i(!0),l=b(),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:"row",[l.breakpoints.down("lgNav")]:{flexDirection:"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(qe,{}),onClick:c})]}),gi.jsx(Ju,{variation:"determinate",value:p}),gi.jsx(Zb,{expanded:s,onToggleExpanded:c,items:r})]})]})},qb=(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&&qb(e,"Loop"),!!t&&qb(t,"Test"),!!n&&qb(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)}))),wk=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary}))),yk=({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(wk,{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})]})})]})})})})})});function kk(e){return[0,e/2,e]}const Mk=465,zk=F(M)((({theme:e})=>({height:24,width:24,margin:e.spacing(.5)}))),Sk=F(M)((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",gap:e.spacing(.5),width:"100%",minWidth:450,minHeight:497,padding:16,boxSizing:"border-box",overflow:"hidden"}))),Vk=F(Te)((({theme:e})=>({padding:e.spacing(.5),paddingBottom:e.spacing(1),borderRadius:e.spacing(e.custom.radius.md),backgroundColor:e.custom.palette.interaction.none,display:"flex",minWidth:33,flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:Mk,"&:hover":{backgroundColor:e.custom.palette.interaction.hover,[`& .${Le.root}`]:{[`& .${Pe.root}`]:{backgroundColor:e.custom.palette.blue[0]}}},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-selected":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled":{opacity:1}}))),Fk=F(M)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(.5),height:Mk,width:"100%"}))),Tk=F(M)((()=>({height:22,display:"flex",alignItems:"center"}))),Lk=F(M)((({theme:e,value:t,disabled:n,checked:i})=>({transition:"background 200ms ease",width:"100%",height:t,backgroundColor:n||!i?e.custom.palette.neutral[100]:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm)}))),Pk=F(A)((()=>({alignItems:"center",display:"flex",justifyContent:"flex-end"}))),Ak=F(M)((({theme:e})=>({height:24,marginTop:e.spacing(1),display:"flex",alignItems:"center"}))),Bk=F(A,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((()=>({height:Mk,boxSizing:"border-box"}))),Hk=F(A,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((({theme:e,hideLabel:t,hideCheckbox:n})=>({height:Mk,display:"flex",justifyContent:"space-between",paddingRight:e.spacing(e.custom.margin.sm),paddingTop:t||n?e.spacing(.5):e.spacing(2),boxSizing:"border-box"}))),Ik=F(M)((({showGraphLines:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",height:18,width:32,textAlign:"right",position:"relative","&:after":{content:'""',position:"absolute",left:`calc(100% + ${t.spacing(2)})`,bottom:8,width:e?400:0,height:1,backgroundColor:"currentColor",opacity:.1}})));var Ek=d((({yAxisMax:e,rounding:t,tickInterval:n,loading:i,yAxisTickData:o,hideLabel:r,showGraphLines:s,hideCheckbox:a,disabled:l,slotProps:c})=>{const d=b(),u=p((()=>t?Math.ceil(e/t)*t:e),[e,t]),h=o||function(e,t){if(null==e)return kk(t);if(e<0)throw new Error("axisTickInterval must be greater than or equal to 0");if(0===e)return kk(t);const n=[];for(let i=0;i<=t;i+=e)n.push(i),i+e>t&&i!==t&&n.push(t);return n}(n,u).reverse(),{onChange:m,...x}=c?.root||{};return gi.jsxs(Bk,{children:[gi.jsxs(M,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[r&&gi.jsx(zk,{}),a&&gi.jsx(zk,{})]}),gi.jsx(Hk,{...x,hideLabel:r,hideCheckbox:a,children:h.map(((e,t)=>gi.jsx(Ik,{showGraphLines:s,children:i?gi.jsx(tp,{width:20,height:20}):gi.jsx(Qs,{component:"p",variation:"xs",monospaced:!0,sx:{color:l?d.custom.palette.text.disabled:d.custom.palette.text.primary},children:e})},t)))}),gi.jsxs(M,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[!r&&gi.jsx(zk,{}),!a&&gi.jsx(zk,{})]})]})}));const Rk=({percentage:e,label:t,checked:n,toolTipContent:r,hideValue:s,hideLabel:c,hideCheckbox:d,disableTooltip:u,animateBar:p,slotProps:h,tickInterval:m,onChange:x,maxDataValue:g,disabled:f,loading:v,value:C,id:w,className:y})=>{b();const[j,k]=i(0),M=a(null);o((()=>{const t=((e,t,n)=>{if(e<=0)return 1;const i=Math.ceil(n/t)*t;return Math.max(1,e/i*380)})(e,m,g),n=p?j:t,i=performance.now(),o=e=>{const r=e-i,s=Math.min(r/250,1);k(n+(t-n)*(s*(2-s))),s<1&&requestAnimationFrame(o)},r=requestAnimationFrame(o);return()=>cancelAnimationFrame(r)}),[C]);const z=l((()=>{!f&&x&&x(w,!n)}),[f,x,n]);return gi.jsx(Xs,{message:r||null,disableHoverListener:u||!r,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{height:"fill-available",width:1,...h?.tooltip?.slotProps?.wrapper?.sx}}},children:gi.jsxs(Vk,{disabled:f,...h?.barWrapper,id:w,className:y,onClick:z,children:[!s&&gi.jsx(Tk,{...h?.value,children:v?gi.jsx(tp,{width:20,height:18}):gi.jsx(Qs,{variation:"sm",component:"p",fontWeight:500,monospaced:!0,sx:{color:e=>f||!n?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:Math.round(e)})}),v?gi.jsx(tp,{width:"fill-available",height:j}):gi.jsx(Lk,{checked:n,value:j,disabled:f,...h?.bar}),gi.jsxs(Pk,{children:[!c&&gi.jsx(Ak,{...h?.label,children:v?gi.jsx(tp,{width:20,height:20}):gi.jsx(Qs,{variation:"sm",component:"p",monospaced:!0,sx:{color:e=>f||!n?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:t})}),!d&&gi.jsx(gi.Fragment,{children:v?gi.jsx(tp,{width:24,height:24,sx:{borderRadius:.5}}):gi.jsx(Gl,{id:`${w}-checkbox`,variant:"secondary",checked:!f&&n,disabled:f,checkboxLabel:void 0,inputRef:M,onChange:z,...h?.checkbox,sx:De({mr:0,mt:1},h?.checkbox?.sx)})})]})]})})},$k=({rounding:e,tickInterval:t=10,data:n,loading:i,disabled:o,onChangeHandler:r,animateBars:s,slotProps:a,hideYAxis:l=!1,hideValues:c=!1,showGraphLines:d=!1,hideLabels:u=!1,hideCheckboxes:h=!1,disableTooltips:m=!1})=>{const x=p((()=>Math.ceil(n.reduce(((e,{percentage:t})=>t>e?t:e),0))),[n]);return gi.jsxs(Sk,{...a?.root,children:[!l&&gi.jsx(Ek,{loading:i,yAxisMax:x,rounding:e,tickInterval:t,disabled:o,showGraphLines:d,hideLabel:u,hideCheckbox:h,slotProps:{root:a?.yAxis}}),gi.jsx(Fk,{...a?.barsWrapper,children:n.map(((e,n)=>{const{percentage:a,label:l,value:d,checked:p,id:g,amount:f,relativePercentage:v,onChange:C}=e;return gi.jsx(Rk,{loading:i,label:l,value:d,percentage:a,maxDataValue:x,checked:p,tickInterval:t,disabled:o||i,animateBar:s,hideValue:c,onChange:r?(e,t)=>r(e,t):C?(e,t)=>C({amount:f,percentage:a,name:l,relativePercentage:v},t):void 0,hideLabel:u,hideCheckbox:h,toolTipContent:null==a?null:`${a}%`,disableTooltip:m,id:g,className:`slider-graph-bar-${n+1}`,slotProps:{barWrapper:{},checkbox:{},value:{},label:{},tooltip:{},bar:{}}},n)}))})]})},Dk=F(Uy.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)}))),Ok=F(Uy.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)}))),_k=({active:e,animated:t,label:n,sentimentScore:i,stat:o,title:r,onClick:s})=>{const a=b();return gi.jsxs(Dk,{layout:t,active:e,onClick:s,children:[gi.jsx(Qs,{component:"p",variation:"sm",weight:"bold",children:r}),gi.jsxs(Ok,{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 Nk=({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(Wk,{animated:e,label:"Completed",primaryText:s.progress.completed.toString(),secondaryText:`of ${s.progress.total}`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Wk,{animated:e,label:"Incomplete",primaryText:s.progress.incomplete.toString(),secondaryText:`${s.progress.incompletePercentage}%`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Wk,{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(Zk,{animated:e,iconName:"data-bar",label:"answers",value:s?.count?.answers??0}),gi.jsx(Zk,{animated:e,iconName:"comment-filled",label:"comments",value:s?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},Wk=({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})]})},Zk=({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})]})]}),Uk=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})]})})),Gk=(e,t=1e5)=>Math.round(e*t)/t;var qk=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 Yk=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}`},Xk=(e,t)=>t/e*100,Kk=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}))),Qk=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]}}))),Jk=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 eM=d((({startTime:e,endTime:t,currentTime:n,markers:i=[],markerIndicator:o=!0,markerIndicatorSize:r=3,markerIndicatorMode:s,marker:a})=>{const l=p((()=>Xk(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:Xk(t-e,i),isActive:Math.abs(i-n+e)<=c/2+1e-10,meta:r})))),[i,t,e,n,c]),m=a||Jk;return gi.jsxs(Kk,{children:[o&&gi.jsx(Qk,{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 tM=d(F(pe)((({theme:e,type:t,muted:n,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${Ie.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${Ie.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${Ie.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},[`.${Ie.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},[`.${Ie.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${Ie.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${Ie.focusVisible}`]:{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${Ie.rail}`]:{height:4,background:et(e.custom.palette.neutral[400],.5),opacity:1},[`.${Ie.track}`]:{border:0,boxShadow:"none",height:4}}}))));const nM=F(A)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),iM=({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(nM,{children:"mute"===o?r:gi.jsx(Su,{bindOn:["hover"],trigger:r,popperProps:{placement:"top",style:{zIndex:40}},children:gi.jsx(tM,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(Xk(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},oM=F(A)({flex:1,position:"relative"}),rM=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)}))),sM=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),aM=F(M)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),lM=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 cM=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:w})=>{const[y,j]=i(o),b=l(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),k=l(((e,t)=>{e.stopPropagation(),c?.(y),y&&j(!1)}),[y,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?.(y),y&&j(!1)}),[y,c]);return gi.jsxs(oM,{children:[gi.jsxs(rM,{direction:"row",children:[gi.jsxs(sM,{component:"p",variation:"md",children:[Yk(t-e)," / ",Yk(n-e)]}),w&&gi.jsx(iM,{volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>gi.jsx(lM,{left:e,width:t},n))),gi.jsxs(aM,{children:[gi.jsx(tM,{step:.05,value:t,max:n,min:e,onChangeCommitted:k,onMouseDown:M,onChange:b,onTouchStart:z,onTouchEnd:S}),u&&u?.length>0&&gi.jsx(eM,{markerIndicatorMode:h,markerIndicatorSize:m,markerIndicator:r,markers:u,marker:p,startTime:e,currentTime:t,endTime:n})]})]})}));const dM=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"}))),uM=F(A)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),pM=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:w,onVolumeMute:y,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:I,buffering:E,loaded:R,ended:$,volume:D,muted:O,startTime:_,firstPlay:N,firstEnded:W},Z]=i({startTime:Gk(P.normaliseTime?r:0),endTime:Gk(P.normaliseTime?n:t.duration),currentTime:Gk(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:Gk(P.normaliseTime?r:0),endTime:Gk(P.normaliseTime?n:t.duration),currentTime:Gk(r??0)}))),t.currentTime=Gk(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:Gk(z)}))),await new Promise((e=>{const n=()=>{t.removeEventListener("seeked",n),e()};t.addEventListener("seeked",n),setTimeout(e,500)})),Z((e=>({...e,currentTime:Gk(z)}))),await new Promise((e=>setTimeout(e,50))),Z((t=>({...t,playing:e,currentTime:Gk(n?z-.001:z+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[z,t]);const G=l((e=>{Z((t=>({...t,muted:e.target?.muted,volume:"number"==typeof e.target?.volume?e.target?.volume:1}))),O!==e.target?.muted&&y&&y(!O),D!==e.target?.volume&&w&&w(D)}),[O,D]),q=l((()=>{const e=Gk(t.currentTime)>=B&&B!==Gk(t.duration)&&!$,n=Gk(t.currentTime)>=B&&B===Gk(t.duration)&&!$&&!I;(e||n)&&(t.pause(),t.dispatchEvent(new Event("ended"))),Z((e=>({...e,currentTime:Gk(t.currentTime)}))),v&&v(Gk(t.currentTime))}),[B,$,I]),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})))}),[E]),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,I,E,R,$,D,O,_,T]),ee=l((async e=>{I&&ie(),t.currentTime=_,e&&await ne(),j&&j()}),[I,H,_,B,$]),te=l((async()=>{I&&ie(),t.currentTime=_,Z((e=>({...e,startTime:Gk(P.normaliseTime?r:0),endTime:Gk(P.normaliseTime?n:t.duration),currentTime:Gk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),M&&M()}),[I,H,_,B,$,r,n]),ne=async()=>{await t.play()},ie=()=>{t.pause()},oe=l((e=>{t.currentTime=Gk(e),Z((t=>({...t,currentTime:Gk(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!N||t.firstPlay,bufferProgress:e}))),g&&g(e),!N&&b&&b()}),[E,N]),re=l((async()=>{document.hidden?I&&!t.paused?(F(!0),ie()):F(!1):(V&&!I&&await ne(),F(!1))}),[I,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&&I&&t.pause(),Z((e=>({...e,...n?{currentTime:n}:{},ended:!i&&e.ended,seeking:!1}))),x&&x(n)}),[I,$,E,A]);return Jt("visibilitychange",re,document),Jt("pause",Y,t),Jt("playing",X,t),Jt("timeupdate",q,t),Jt("ended",U,t),Jt("volumechange",G,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:I,buffering:E,loaded:R,ended:$,volume:D,firstPlay:N,firstEnded:W,muted:O,startTime:_}}))),gi.jsxs(dM,{variation:"raised",borderradius:"xl",id:e,children:[gi.jsxs(uM,{...P?.rtl&&{dir:"rtl"},children:[gi.jsx(qk,{seeking:A,playing:I,ended:$,buffering:E,handleAction:async()=>{$?await ee(!0):I?ie():await ne()}}),gi.jsx(cM,{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:I,bufferRanges:T,buffering:E,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 hM=d(pM);const mM="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",xM=(e,t,n)=>Ee({direction:n,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Nn[e],neutralAlpha:"light"===e?Hn:In,purple:Zn[e],red:Un[e],peach:Gn[e],yellow:qn[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:En[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(${mM}${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(${mM}${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(${mM}${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(${mM}${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 gM="production"===process.env.NODE_ENV,fM="Invariant failed";const vM=u(null),CM=(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((()=>xM(a,c,u)),[a,u,c]),C=V(v.breakpoints.only("sm"),{noSsr:!0}),w=V(v.breakpoints.only("md"),{noSsr:!0}),y=V(v.breakpoints.between("lg","xl"),{noSsr:!0}),j=V(v.breakpoints.up("xl"),{noSsr:!0});return o((()=>{s((()=>{C&&f("sm"),w&&f("md"),y&&f("lg"),j&&f("xl")}))}),[C,w,y,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"))}))}}},wM=()=>{const e=h(vM);return function(e,t){if(!e){if(gM)throw new Error(fM);var n=t,i="".concat(fM,": ").concat(n);throw new Error(i)}}(e,"useTheme must be used within a ThemeProvider"),e};var yM=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 jM="undefined"!=typeof document,bM=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)},kM=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]+=bM(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))},MM=new WeakMap,zM=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)||MM.get(n))&&!i){MM.set(e,!0);for(var o=[],r=kM(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]}}},SM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function VM(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(yn(e)-1-t>6)switch(wn(e,t+1)){case 109:if(45!==wn(e,t+4))break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+pn+(108==wn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jn(e,"stretch")?VM(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wn(e,t+1))break;case 6444:switch(wn(e,yn(e)-3-(~jn(e,"!important")&&10))){case 107:return dn(e,":",":"+un)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(45===wn(e,14)?"inline-":"")+"box$3$1"+un+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(wn(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 FM,TM,LM=jM?void 0:(FM=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},TM=new WeakMap,function(e){if(TM.has(e))return TM.get(e);var t=FM(e);return TM.set(e,t),t}),PM=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case xn:e.return=VM(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""}))}}],AM=function(e){var t=e.key;if(jM&&"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||PM,s={},a=[];jM&&(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=[zM,SM];if(LM){var c=[tn],d=on(l.concat(r,c)),u=LM(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 yM({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 BM=()=>gi.jsx(Re,{styles:{"strong, b":{fontWeight:500}}}),HM=AM({key:"muirtl",stylisPlugins:[Tn,Pn]}),IM=AM({key:"mui"}),EM=({mode:e="light",screenSize:t="lg",direction:n="ltr",ignoreCacheProvider:i,children:o})=>{const r=CM(e,t,n),s=()=>gi.jsxs(tt,{theme:r.theme,children:[gi.jsx($e,{}),gi.jsx(BM,{}),o]});return gi.jsx(vM.Provider,{value:r,children:i?s():gi.jsx(Ln,{value:"rtl"===n?HM:IM,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,Gl 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,yh as EmojiListItem,bh as EmojiQuestionEditorOption,wc as EmojiWrapper,kh as EmptyStateCard,zc as ExpandableTypographyClamp,Hh as ExtendedTestStatus,Rh as FilterCount,Oh as FilterGroupAccordion,Gy as FilterPyramidGraph,Qy as FilterRow,Dh as FilteredItemsCard,Vc as Flag,li as FontWeight,Ja as FormControlLabel,_d as FormGenerator,nj as GraphBar,qd 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,ql as InputFieldBase,Tc as InputLabel,lc as InputLabelHelp,Vj as KpiDataPopover,uh as KpiIndicator,tu as Label,Rc as Likert,zl as Link,iu as Loader,ou as Logo,Rj as LoopItem,$j as LoopItemEmpty,su as LoopsAiButton,au as Markdown,Au as Menu,Hu as ModalActionsWrapper,Iu as ModalContentWrapper,Eu as ModalLayout,qj as Navigation,Nu as NavigationButton,qu as Nudge,rd as NumberField,Gb as OnboardingCard,_p as PaginationControl,Xu as Pill,zp as PlanFeatureTable,Ep 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,yd as RichTextField,fk as SearchInput,yk as SectionHeader,Qa as Select,oh as SentimentArrow,tp as Skeleton,Vd as Slider,$k as SliderGraph,vd as SortableList,Td as StarRating,Mu as Surface,tl as Switch,_k as Tab,Nk as TestItem,Uk as TestKPICard,np as TextBarDivider,Yl as TextField,Pd as Textarea,vM as ThemeContext,EM as ThemeProvider,Rp as TickGroup,ip as Toast,Xs as Tooltip,up as TrialCard,Qs as Typography,fp as UserMenu,hM 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,yc as compareArrayMembers,xM as customTheme,Bn as darkNeutral,In as darkNeutralAlpha,na as defaultInputValidation,si as easing,ii as elevation,oi as elevationFilter,ea as emailValidation,ci as fonts,Wn as generateRamp,wa as getButtonSizing,Ca as getButtonTypography,va as getIconSizing,dh as getKpiIndicatorColor,_n as green,Xn as greenRamp,Yc as iconButtonHelpers,qs 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,Gn as peachRamp,ma as primary,En as purple,Zn as purpleRamp,ni as radius,Rn 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,wM as useTheme,CM as useThemeBuilder,Dn as yellow,qn 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 wb(){return cb?lb:(cb=1,lb=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var yb=fb();Jj.exports=function(){if(hb)return pb;hb=1;var e=fb(),t=vb(),n=Cb(),i=wb(),o=function(){if(ub)return db;ub=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Cb(),n={},i=wb();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 "+w(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 w(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}()(yb.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)}`}))),Ib=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),Eb=F(zl)((({theme:e})=>({[`&.${X.root}`]:{...Ib(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}}}}))),Rb=F(M)((({theme:e})=>({[`&.${je.root}`]:{...Ib(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(Rb,{children:e}):gi.jsx(Eb,{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(Gt,{children:[gi.jsx(Bb,{completed:n,children:n?gi.jsx(Ys,{name:"badge-tick-in-circle",size:24}):void 0}),t&&gi.jsx(qt,{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(Uy.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`}),Gb=({cardTitle:e,cardSubtitle:t,welcomeImageUrl:n,welcomeImageAltDescription:o,items:r=[]})=>{const[s,a]=i(!0),l=b(),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:"row",[l.breakpoints.down("lgNav")]:{flexDirection:"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(qe,{}),onClick:c})]}),gi.jsx(Ju,{variation:"determinate",value:p}),gi.jsx(Zb,{expanded:s,onToggleExpanded:c,items:r})]})]})},qb=(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&&qb(e,"Loop"),!!t&&qb(t,"Test"),!!n&&qb(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)}))),wk=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary}))),yk=({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(wk,{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})]})})]})})})})})});function kk(e){return[0,e/2,e]}const Mk=465,zk=F(M)((({theme:e})=>({height:24,width:24,margin:e.spacing(.5)}))),Sk=F(M)((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",gap:e.spacing(.5),width:"100%",minWidth:450,minHeight:497,padding:16,boxSizing:"border-box",overflow:"hidden"}))),Vk=F(Te)((({theme:e})=>({padding:e.spacing(.5),paddingBottom:e.spacing(1),borderRadius:e.spacing(e.custom.radius.md),backgroundColor:e.custom.palette.interaction.none,display:"flex",minWidth:33,flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:Mk,"&:hover":{backgroundColor:e.custom.palette.interaction.hover,[`& .${Le.root}`]:{[`& .${Pe.root}`]:{backgroundColor:e.custom.palette.blue[0]}}},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-selected":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled":{opacity:1}}))),Fk=F(M)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(.5),height:Mk,width:"100%"}))),Tk=F(M)((()=>({height:22,display:"flex",alignItems:"center"}))),Lk=F(M)((({theme:e,value:t,disabled:n,checked:i})=>({transition:"background 200ms ease",width:"100%",height:t,backgroundColor:n||!i?e.custom.palette.neutral[100]:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm)}))),Pk=F(A)((()=>({alignItems:"center",display:"flex",justifyContent:"flex-end"}))),Ak=F(M)((({theme:e})=>({height:24,marginTop:e.spacing(1),display:"flex",alignItems:"center"}))),Bk=F(A,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((()=>({height:Mk,boxSizing:"border-box"}))),Hk=F(A,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((({theme:e,hideLabel:t,hideCheckbox:n})=>({height:Mk,display:"flex",justifyContent:"space-between",paddingRight:e.spacing(e.custom.margin.sm),paddingTop:t||n?e.spacing(.5):e.spacing(2),boxSizing:"border-box"}))),Ik=F(M)((({showGraphLines:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",height:18,width:32,textAlign:"right",position:"relative","&:after":{content:'""',position:"absolute",left:`calc(100% + ${t.spacing(2)})`,bottom:8,width:e?400:0,height:1,backgroundColor:"currentColor",opacity:.1}})));var Ek=d((({yAxisMax:e,rounding:t,tickInterval:n,loading:i,yAxisTickData:o,hideLabel:r,showGraphLines:s,hideCheckbox:a,disabled:l,slotProps:c})=>{const d=b(),u=p((()=>t?Math.ceil(e/t)*t:e),[e,t]),h=o||function(e,t){if(null==e)return kk(t);if(e<0)throw new Error("axisTickInterval must be greater than or equal to 0");if(0===e)return kk(t);const n=[];for(let i=0;i<=t;i+=e)n.push(i),i+e>t&&i!==t&&n.push(t);return n}(n,u).reverse(),{onChange:m,...x}=c?.root||{};return gi.jsxs(Bk,{children:[gi.jsxs(M,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[r&&gi.jsx(zk,{}),a&&gi.jsx(zk,{})]}),gi.jsx(Hk,{...x,hideLabel:r,hideCheckbox:a,children:h.map(((e,t)=>gi.jsx(Ik,{showGraphLines:s,children:i?gi.jsx(tp,{width:20,height:20}):gi.jsx(Qs,{component:"p",variation:"xs",monospaced:!0,sx:{color:l?d.custom.palette.text.disabled:d.custom.palette.text.primary},children:e})},t)))}),gi.jsxs(M,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[!r&&gi.jsx(zk,{}),!a&&gi.jsx(zk,{})]})]})}));const Rk=({percentage:e,label:t,checked:n,toolTipContent:r,hideValue:s,hideLabel:c,hideCheckbox:d,disableTooltip:u,animateBar:p,slotProps:h,tickInterval:m,onChange:x,maxDataValue:g,disabled:f,loading:v,value:C,id:w,className:y})=>{b();const[j,k]=i(0),M=a(null);o((()=>{const t=((e,t,n)=>{if(e<=0)return 1;const i=Math.ceil(n/t)*t;return Math.max(1,e/i*380)})(e,m,g),n=p?j:t,i=performance.now(),o=e=>{const r=e-i,s=Math.min(r/250,1);k(n+(t-n)*(s*(2-s))),s<1&&requestAnimationFrame(o)},r=requestAnimationFrame(o);return()=>cancelAnimationFrame(r)}),[C]);const z=l((()=>{!f&&x&&x(w,!n)}),[f,x,n]);return gi.jsx(Xs,{message:r||null,disableHoverListener:u||!r,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{height:"fill-available",width:1,...h?.tooltip?.slotProps?.wrapper?.sx}}},children:gi.jsxs(Vk,{disabled:f,...h?.barWrapper,id:w,className:y,onClick:z,children:[!s&&gi.jsx(Tk,{...h?.value,children:v?gi.jsx(tp,{width:20,height:18}):gi.jsx(Qs,{variation:"sm",component:"p",fontWeight:500,monospaced:!0,sx:{color:e=>f||!n?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:Math.round(e)})}),v?gi.jsx(tp,{width:"fill-available",height:j}):gi.jsx(Lk,{checked:n,value:j,disabled:f,...h?.bar}),gi.jsxs(Pk,{children:[!c&&gi.jsx(Ak,{...h?.label,children:v?gi.jsx(tp,{width:20,height:20}):gi.jsx(Qs,{variation:"sm",component:"p",monospaced:!0,sx:{color:e=>f||!n?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:t})}),!d&&gi.jsx(gi.Fragment,{children:v?gi.jsx(tp,{width:24,height:24,sx:{borderRadius:.5}}):gi.jsx(Gl,{id:`${w}-checkbox`,variant:"secondary",checked:!f&&n,disabled:f,checkboxLabel:void 0,inputRef:M,onChange:z,...h?.checkbox,sx:De({mr:0,mt:1},h?.checkbox?.sx)})})]})]})})},$k=({rounding:e,tickInterval:t=10,data:n,loading:i,disabled:o,onChangeHandler:r,animateBars:s,slotProps:a,hideYAxis:l=!1,hideValues:c=!1,showGraphLines:d=!1,hideLabels:u=!1,hideCheckboxes:h=!1,disableTooltips:m=!1})=>{const x=p((()=>Math.ceil(n.reduce(((e,{percentage:t})=>t>e?t:e),0))),[n]);return gi.jsxs(Sk,{...a?.root,children:[!l&&gi.jsx(Ek,{loading:i,yAxisMax:x,rounding:e,tickInterval:t,disabled:o,showGraphLines:d,hideLabel:u,hideCheckbox:h,slotProps:{root:a?.yAxis}}),gi.jsx(Fk,{...a?.barsWrapper,children:n.map(((e,n)=>{const{percentage:a,label:l,value:d,checked:p,id:g,amount:f,relativePercentage:v,onChange:C}=e;return gi.jsx(Rk,{loading:i,label:l,value:d,percentage:a,maxDataValue:x,checked:p,tickInterval:t,disabled:o||i,animateBar:s,hideValue:c,onChange:r?(e,t)=>r(e,t):C?(e,t)=>C({amount:f,percentage:a,name:l,relativePercentage:v},t):void 0,hideLabel:u,hideCheckbox:h,toolTipContent:null==a?null:`${a}%`,disableTooltip:m,id:g,className:`slider-graph-bar-${n+1}`,slotProps:{barWrapper:{},checkbox:{},value:{},label:{},tooltip:{},bar:{}}},n)}))})]})},Dk=F(Uy.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),boxShadow:t.custom.elevation.raised}))),Ok=F(Uy.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)}))),_k=({active:e,animated:t,label:n,sentimentScore:i,stat:o,title:r,onClick:s})=>{const a=b();return gi.jsxs(Dk,{layout:t,active:e,onClick:s,children:[gi.jsx(Qs,{component:"p",variation:"sm",weight:"bold",children:r}),gi.jsxs(Ok,{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 Nk=({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(Wk,{animated:e,label:"Completed",primaryText:s.progress.completed.toString(),secondaryText:`of ${s.progress.total}`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Wk,{animated:e,label:"Incomplete",primaryText:s.progress.incomplete.toString(),secondaryText:`${s.progress.incompletePercentage}%`})}),gi.jsx(M,{flexBasis:0,flexGrow:1,children:gi.jsx(Wk,{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(Zk,{animated:e,iconName:"data-bar",label:"answers",value:s?.count?.answers??0}),gi.jsx(Zk,{animated:e,iconName:"comment-filled",label:"comments",value:s?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},Wk=({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})]})},Zk=({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})]})]}),Uk=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})]})})),Gk=(e,t=1e5)=>Math.round(e*t)/t;var qk=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 Yk=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}`},Xk=(e,t)=>t/e*100,Kk=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}))),Qk=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]}}))),Jk=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 eM=d((({startTime:e,endTime:t,currentTime:n,markers:i=[],markerIndicator:o=!0,markerIndicatorSize:r=3,markerIndicatorMode:s,marker:a})=>{const l=p((()=>Xk(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:Xk(t-e,i),isActive:Math.abs(i-n+e)<=c/2+1e-10,meta:r})))),[i,t,e,n,c]),m=a||Jk;return gi.jsxs(Kk,{children:[o&&gi.jsx(Qk,{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 tM=d(F(pe)((({theme:e,type:t,muted:n,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${Ie.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${Ie.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${Ie.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},[`.${Ie.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},[`.${Ie.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${Ie.active}`]:{width:8,height:8,boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${Ie.focusVisible}`]:{boxShadow:`${et(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${Ie.rail}`]:{height:4,background:et(e.custom.palette.neutral[400],.5),opacity:1},[`.${Ie.track}`]:{border:0,boxShadow:"none",height:4}}}))));const nM=F(A)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),iM=({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(nM,{children:"mute"===o?r:gi.jsx(Su,{bindOn:["hover"],trigger:r,popperProps:{placement:"top",style:{zIndex:40}},children:gi.jsx(tM,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(Xk(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},oM=F(A)({flex:1,position:"relative"}),rM=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)}))),sM=F(Qs)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),aM=F(M)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),lM=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 cM=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:w})=>{const[y,j]=i(o),b=l(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),k=l(((e,t)=>{e.stopPropagation(),c?.(y),y&&j(!1)}),[y,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?.(y),y&&j(!1)}),[y,c]);return gi.jsxs(oM,{children:[gi.jsxs(rM,{direction:"row",children:[gi.jsxs(sM,{component:"p",variation:"md",children:[Yk(t-e)," / ",Yk(n-e)]}),w&&gi.jsx(iM,{volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>gi.jsx(lM,{left:e,width:t},n))),gi.jsxs(aM,{children:[gi.jsx(tM,{step:.05,value:t,max:n,min:e,onChangeCommitted:k,onMouseDown:M,onChange:b,onTouchStart:z,onTouchEnd:S}),u&&u?.length>0&&gi.jsx(eM,{markerIndicatorMode:h,markerIndicatorSize:m,markerIndicator:r,markers:u,marker:p,startTime:e,currentTime:t,endTime:n})]})]})}));const dM=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"}))),uM=F(A)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),pM=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:w,onVolumeMute:y,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:I,buffering:E,loaded:R,ended:$,volume:D,muted:O,startTime:_,firstPlay:N,firstEnded:W},Z]=i({startTime:Gk(P.normaliseTime?r:0),endTime:Gk(P.normaliseTime?n:t.duration),currentTime:Gk(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:Gk(P.normaliseTime?r:0),endTime:Gk(P.normaliseTime?n:t.duration),currentTime:Gk(r??0)}))),t.currentTime=Gk(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:Gk(z)}))),await new Promise((e=>{const n=()=>{t.removeEventListener("seeked",n),e()};t.addEventListener("seeked",n),setTimeout(e,500)})),Z((e=>({...e,currentTime:Gk(z)}))),await new Promise((e=>setTimeout(e,50))),Z((t=>({...t,playing:e,currentTime:Gk(n?z-.001:z+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[z,t]);const G=l((e=>{Z((t=>({...t,muted:e.target?.muted,volume:"number"==typeof e.target?.volume?e.target?.volume:1}))),O!==e.target?.muted&&y&&y(!O),D!==e.target?.volume&&w&&w(D)}),[O,D]),q=l((()=>{const e=Gk(t.currentTime)>=B&&B!==Gk(t.duration)&&!$,n=Gk(t.currentTime)>=B&&B===Gk(t.duration)&&!$&&!I;(e||n)&&(t.pause(),t.dispatchEvent(new Event("ended"))),Z((e=>({...e,currentTime:Gk(t.currentTime)}))),v&&v(Gk(t.currentTime))}),[B,$,I]),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})))}),[E]),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,I,E,R,$,D,O,_,T]),ee=l((async e=>{I&&ie(),t.currentTime=_,e&&await ne(),j&&j()}),[I,H,_,B,$]),te=l((async()=>{I&&ie(),t.currentTime=_,Z((e=>({...e,startTime:Gk(P.normaliseTime?r:0),endTime:Gk(P.normaliseTime?n:t.duration),currentTime:Gk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),M&&M()}),[I,H,_,B,$,r,n]),ne=async()=>{await t.play()},ie=()=>{t.pause()},oe=l((e=>{t.currentTime=Gk(e),Z((t=>({...t,currentTime:Gk(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!N||t.firstPlay,bufferProgress:e}))),g&&g(e),!N&&b&&b()}),[E,N]),re=l((async()=>{document.hidden?I&&!t.paused?(F(!0),ie()):F(!1):(V&&!I&&await ne(),F(!1))}),[I,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&&I&&t.pause(),Z((e=>({...e,...n?{currentTime:n}:{},ended:!i&&e.ended,seeking:!1}))),x&&x(n)}),[I,$,E,A]);return Jt("visibilitychange",re,document),Jt("pause",Y,t),Jt("playing",X,t),Jt("timeupdate",q,t),Jt("ended",U,t),Jt("volumechange",G,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:I,buffering:E,loaded:R,ended:$,volume:D,firstPlay:N,firstEnded:W,muted:O,startTime:_}}))),gi.jsxs(dM,{variation:"raised",borderradius:"xl",id:e,children:[gi.jsxs(uM,{...P?.rtl&&{dir:"rtl"},children:[gi.jsx(qk,{seeking:A,playing:I,ended:$,buffering:E,handleAction:async()=>{$?await ee(!0):I?ie():await ne()}}),gi.jsx(cM,{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:I,bufferRanges:T,buffering:E,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 hM=d(pM);const mM="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",xM=(e,t,n)=>Ee({direction:n,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Nn[e],neutralAlpha:"light"===e?Hn:In,purple:Zn[e],red:Un[e],peach:Gn[e],yellow:qn[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:En[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(${mM}${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(${mM}${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(${mM}${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(${mM}${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 gM="production"===process.env.NODE_ENV,fM="Invariant failed";const vM=u(null),CM=(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((()=>xM(a,c,u)),[a,u,c]),C=V(v.breakpoints.only("sm"),{noSsr:!0}),w=V(v.breakpoints.only("md"),{noSsr:!0}),y=V(v.breakpoints.between("lg","xl"),{noSsr:!0}),j=V(v.breakpoints.up("xl"),{noSsr:!0});return o((()=>{s((()=>{C&&f("sm"),w&&f("md"),y&&f("lg"),j&&f("xl")}))}),[C,w,y,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"))}))}}},wM=()=>{const e=h(vM);return function(e,t){if(!e){if(gM)throw new Error(fM);var n=t,i="".concat(fM,": ").concat(n);throw new Error(i)}}(e,"useTheme must be used within a ThemeProvider"),e};var yM=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 jM="undefined"!=typeof document,bM=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)},kM=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]+=bM(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))},MM=new WeakMap,zM=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)||MM.get(n))&&!i){MM.set(e,!0);for(var o=[],r=kM(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]}}},SM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function VM(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(yn(e)-1-t>6)switch(wn(e,t+1)){case 109:if(45!==wn(e,t+4))break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+pn+(108==wn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jn(e,"stretch")?VM(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wn(e,t+1))break;case 6444:switch(wn(e,yn(e)-3-(~jn(e,"!important")&&10))){case 107:return dn(e,":",":"+un)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+un+(45===wn(e,14)?"inline-":"")+"box$3$1"+un+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(wn(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 FM,TM,LM=jM?void 0:(FM=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},TM=new WeakMap,function(e){if(TM.has(e))return TM.get(e);var t=FM(e);return TM.set(e,t),t}),PM=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case xn:e.return=VM(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""}))}}],AM=function(e){var t=e.key;if(jM&&"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||PM,s={},a=[];jM&&(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=[zM,SM];if(LM){var c=[tn],d=on(l.concat(r,c)),u=LM(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 yM({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 BM=()=>gi.jsx(Re,{styles:{"strong, b":{fontWeight:500}}}),HM=AM({key:"muirtl",stylisPlugins:[Tn,Pn]}),IM=AM({key:"mui"}),EM=({mode:e="light",screenSize:t="lg",direction:n="ltr",ignoreCacheProvider:i,children:o})=>{const r=CM(e,t,n),s=()=>gi.jsxs(tt,{theme:r.theme,children:[gi.jsx($e,{}),gi.jsx(BM,{}),o]});return gi.jsx(vM.Provider,{value:r,children:i?s():gi.jsx(Ln,{value:"rtl"===n?HM:IM,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,Gl 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,yh as EmojiListItem,bh as EmojiQuestionEditorOption,wc as EmojiWrapper,kh as EmptyStateCard,zc as ExpandableTypographyClamp,Hh as ExtendedTestStatus,Rh as FilterCount,Oh as FilterGroupAccordion,Gy as FilterPyramidGraph,Qy as FilterRow,Dh as FilteredItemsCard,Vc as Flag,li as FontWeight,Ja as FormControlLabel,_d as FormGenerator,nj as GraphBar,qd 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,ql as InputFieldBase,Tc as InputLabel,lc as InputLabelHelp,Vj as KpiDataPopover,uh as KpiIndicator,tu as Label,Rc as Likert,zl as Link,iu as Loader,ou as Logo,Rj as LoopItem,$j as LoopItemEmpty,su as LoopsAiButton,au as Markdown,Au as Menu,Hu as ModalActionsWrapper,Iu as ModalContentWrapper,Eu as ModalLayout,qj as Navigation,Nu as NavigationButton,qu as Nudge,rd as NumberField,Gb as OnboardingCard,_p as PaginationControl,Xu as Pill,zp as PlanFeatureTable,Ep 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,yd as RichTextField,fk as SearchInput,yk as SectionHeader,Qa as Select,oh as SentimentArrow,tp as Skeleton,Vd as Slider,$k as SliderGraph,vd as SortableList,Td as StarRating,Mu as Surface,tl as Switch,_k as Tab,Nk as TestItem,Uk as TestKPICard,np as TextBarDivider,Yl as TextField,Pd as Textarea,vM as ThemeContext,EM as ThemeProvider,Rp as TickGroup,ip as Toast,Xs as Tooltip,up as TrialCard,Qs as Typography,fp as UserMenu,hM 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,yc as compareArrayMembers,xM as customTheme,Bn as darkNeutral,In as darkNeutralAlpha,na as defaultInputValidation,si as easing,ii as elevation,oi as elevationFilter,ea as emailValidation,ci as fonts,Wn as generateRamp,wa as getButtonSizing,Ca as getButtonTypography,va as getIconSizing,dh as getKpiIndicatorColor,_n as green,Xn as greenRamp,Yc as iconButtonHelpers,qs 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,Gn as peachRamp,ma as primary,En as purple,Zn as purpleRamp,ni as radius,Rn 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,wM as useTheme,CM as useThemeBuilder,Dn as yellow,qn as yellowRamp};
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,i){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)}(o),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},yC}function AC(){if(jC)return bC;jC=1;return bC="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(TC)return BC;TC=1;var e=LC(),t=PC(),n=AC(),o=EC(),i=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 i(i,r,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(o(i,c)){var d;try{if("function"!=typeof i[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 i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[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 i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},MC=i}(),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){}}),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,i,r,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=t[o];if(!Array.isArray(a))return new h("Invalid "+r+" `"+s+"` of type `"+v(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,i,r,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,o,i){var r=e[t];return a(r)?null:new h("Invalid "+o+" `"+i+"` of type `"+v(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,o,i,r){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+i+" `"+r+"` of type `"+v(s)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,o,i,r){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+i+" `"+r+"` 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,i){return f(e[t])?null:new h("Invalid "+o+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,i,r,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[i],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(o(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,o,i,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 "+i+" `"+r+"` of value `"+String(s)+"` supplied to `"+o+"`, 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 i=e[t];if("function"!=typeof i)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),s}return m((function(t,i,r,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,r,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 `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,o,i,r,s){var a=t[o],l=v(a);if("object"!==l)return new h("Invalid "+r+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(i,r,s,c,C(d));var u=d(a,c,i,r,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(i,r,s,a,l){var c=i[r],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},i[r],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(i[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={},o=0;function i(i,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&&(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,o++)}}return null==s[a]?i?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=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function x(e){return m((function(t,n,o,i,r,s){var a=t[n];return v(a)!==e?new h("Invalid "+i+" `"+r+"` of type `"+C(a)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,o,i){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 `"+i+"`.")}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 i=n.value;if(i&&!f(i[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=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},BC}()(RC.isElement,!0)}else xC.exports=function(){if(IC)return VC;IC=1;var e=AC();function t(){}function n(){}return n.resetWarningCache=t,VC=function(){function o(t,n,o,i,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 i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();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 i=e.length;for(t=0;t<i;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="",i=arguments.length;n<i;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${T.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=i.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=i.useThemeProps({props:e,name:"MuiTimeline"}),{position:o="right",className:r,...s}=n,a={...n,position:o},l=(e=>{const{position:t,classes:n}=e;return function(e,t,n){const o={};for(const i in e){const r=e[i];let s="",a=!0;for(let e=0;e<r.length;e+=1){const o=r[e];o&&(s+=(!0===a?"":" ")+t(o),a=!1,n&&n[o]&&(s+=" "+n[o]))}o[i]=s}return o}({root:["root",t&&GC(t)]},UC,n)})(a),c=H.useMemo((()=>({position:o})),[o]);return be.jsx(ZC.Provider,{value:c,children:be.jsx(qC,{className:DC(l.root,r),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(Sr)((({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(ri)((()=>({color:"inherit",fontWeight:500,fontSize:xi.lg}))),ny=t.styled(ri)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),oy=({children:e,complete:t,onClick:n})=>t?be.jsx(ey,{children:e}):be.jsx(JC,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),iy=({complete:e,title:t,description:n,onClick:o})=>be.jsx(XC,{children:be.jsxs(oy,{complete:e,onClick:o,children:[be.jsx(ty,{component:"p",variation:"lg",children:t}),!e&&be.jsx(ni,{name:"arrow-right",size:16}),!e&&n&&be.jsx(ny,{variation:"lg",component:"p",children:n})]})}),ry=({item:e,showConnector:t})=>{const{complete:n,title:o,description:i,onClick:r}=e;return be.jsxs(B.TimelineItem,{children:[be.jsxs(B.TimelineSeparator,{children:[be.jsx(YC,{completed:n,children:n?be.jsx(ni,{name:"badge-tick-in-circle",size:24}):void 0}),t&&be.jsx(B.TimelineConnector,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&be.jsx(B.TimelineContent,{component:()=>be.jsx(iy,{complete:n,title:o,description:i,onClick:r})})]})},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:i})=>{const r=i.find((e=>!e.complete)),s=e.useMemo((()=>n?i:[r]),[n,i,r]),a=e.useRef(null),[l,c]=e.useState(),d=e.useCallback((()=>{if(!a.current)return;const e=a.current.scrollHeight;c(e)}),[i]);return e.useEffect((()=>{d()}),[n,d]),e.useEffect((()=>{const e=new ResizeObserver(d);return a.current&&e.observe(a.current),()=>e.disconnect()}),[d]),be.jsx(xv.div,{variants:sy,initial:"initial",animate:"auto"===l?"initial":["initial","animate"],custom:l,style:{overflow:"hidden"},children:be.jsx("div",{ref:a,style:{display:"flex"},children:be.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===r?.title?be.jsx(ry,{item:e,showConnector:s.length>1?n:!!r?.description},`${e.title}-${e.complete}`):e&&be.jsx(ry,{item:e,showConnector:n},e.title)})),!n&&be.jsx(t.Box,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:be.jsx(Nr,{endIcon:be.jsx(ni,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:o,children:"Show more"})})]})})})},ly=({completed:e,total:t})=>be.jsx(ri,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),cy=(e,n)=>be.jsxs(t.Box,{display:"flex",gap:.5,children:[be.jsx(ri,{variation:"sm",component:"p",weight:"bold",children:e||0}),be.jsx(ri,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:Gv(n,e||0)})]}),dy=({loops:e,tests:n,drafts:o})=>be.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})=>be.jsx(uy,{"data-id":"pill-container",sx:n.mergeSx(e,{position:"absolute",zIndex:1}),children:be.jsx(ri,{variation:"xxs",component:"p",weight:"bold",children:t})}),hy=({title:e,maxLines:t,sx:o})=>be.jsx(ri,{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 be.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})=>be.jsxs(ri,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?V(e).format("DD MMM YYYY"):e]}),wy=({title:e,description:n,loopCount:o,testCount:i,draftCount:r,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>d?be.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:be.jsxs(xy,{component:"div",disableHoverStyle:!0,children:[be.jsx(gy,{"data-id":"image-container",children:be.jsx(Nl,{})}),be.jsxs(vy,{children:[be.jsx(t.Box,{"data-id":"title-container",height:32,children:be.jsx(Nl,{})}),be.jsx(Nl,{height:20}),be.jsx(Nl,{height:16,width:"60%"})]})]})}):be.jsx(my,{children:be.jsxs(xy,{component:"div",disableHoverStyle:!0,onClick:u,children:[be.jsxs(gy,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[c&&be.jsx(py,{body:"Demo",sx:{bottom:8,left:8}}),be.jsx(fy,{thumbnail:l,title:e,description:n})]}),be.jsxs(vy,{children:[be.jsxs(t.Box,{"data-id":"title-container",children:[be.jsx(hy,{title:e,maxLines:2}),be.jsx(t.Box,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:a})]}),be.jsx(dy,{loops:o,tests:i,drafts:r}),be.jsx(yy,{updatedDate:s,format:!0})]})]})}),by=({title:e,description:n,loopCount:o,testCount:i,draftCount:r,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>{const p=t.useTheme();return d?be.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:be.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:[be.jsx(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:be.jsx(Nl,{})}),be.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:be.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[be.jsx(Nl,{width:"100%",height:20}),be.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[be.jsx(Nl,{height:20,width:"70%"}),be.jsx(Nl,{height:16,width:200})]})]})})]})}):be.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:be.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:[be.jsxs(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[c&&be.jsx(py,{sx:{top:4,right:4},body:"Demo"}),be.jsx(fy,{thumbnail:l,title:e,description:n})]}),be.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:be.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[be.jsx(hy,{title:e,maxLines:1}),be.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[be.jsx(dy,{loops:o,tests:i,drafts:r}),be.jsx(yy,{updatedDate:s,format:!0,noWrap:!0})]})]})}),a&&be.jsx(t.Box,{onClick:e=>e.stopPropagation(),children:a})]})})},jy=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(),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 n?be.jsx(Nl,{width:"100%",height:36,sx:{borderRadius:`${o.spacing(o.custom.radius.lg)} ${o.spacing(o.custom.radius.lg)} 0 0`}}):be.jsxs(jy,{type:e,children:[be.jsx(ni,{name:i.icon,size:16}),be.jsx(ri,{variation:"sm",component:"p",sx:{px:o.spacing(o.custom.padding.xs)},children:i.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:i=0,loading:r,popperState:s})=>{const a=t.useTheme(),l=s||il({variant:"popper"});return r?be.jsx(Nl,{width:"30%",height:32,sx:{borderRadius:a.spacing(a.custom.radius.md)}}):be.jsxs(t.Box,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:a.custom.padding.md},children:[be.jsx(t.Box,{sx:{minWidth:0},children:be.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:be.jsx(Nr,{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?be.jsx(ni,{name:"chevron-up"}):be.jsx(ni,{name:"chevron-down"}),children:o}),menuItems:n})}),be.jsxs(t.Stack,{direction:"row",alignItems:"center",gap:a.spacing(a.custom.margin.md),sx:{flex:"0 0 auto",minWidth:0},children:[be.jsx(t.Box,{children:be.jsxs(ri,{monospaced:!0,component:"p",variation:"xs",color:a.custom.palette.text.secondary,sx:{"& strong":{color:a.custom.palette.text.primary,fontWeight:500}},children:[be.jsx("strong",{children:be.jsx(S,{value:(i||0)+1})})," ","of ",n?.length||0]})}),be.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},children:be.jsxs(t.Stack,{direction:"row",spacing:.5,children:[be.jsx(Ks,{icon:be.jsx(ni,{name:"arrow-left"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+1===1,onClick:()=>e(-1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:a.custom.palette.purple[0],"&:hover:before":{backgroundColor:a.custom.palette.interaction.hover}}}}),be.jsx(Ks,{icon:be.jsx(ni,{name:"arrow-right"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+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(Gr)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),Ty=e.forwardRef((({onChange:n,onClear:o,onFocus:i,placeholder:r,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 be.jsx(By,{inputRef:d,placeholder:r,value:s,onChange:n,onFocus:i,startAdornment:be.jsx(ni,{name:"search",size:17,sx:p}),endAdornment:s?be.jsx(t.Box,{onClick:u,sx:{cursor:"pointer",display:"flex"},children:be.jsx(ni,{name:"close",size:17,sx:p})}):void 0,...a})})),Vy=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(ri)((({theme:e})=>({color:e.custom.palette.text.secondary}))),Ly=({buttons:e,subtitle:n,title:o,maxWidth:i})=>be.jsx(be.Fragment,{children:be.jsx(Vy,{sx:{justifyContent:"space-between"},children:be.jsx(t.Container,{maxWidth:i,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[be.jsx(Iy,{children:be.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&be.jsx(ri,{variation:"sm",component:"h2",weight:"bold",children:o}),n&&be.jsx(Fy,{variation:"sm",component:"p",children:n})]})}),e&&be.jsx(Iy,{children:e})]})})})})})}),Py=({title:e,subtitle:n,buttons:o,maxWidth:i})=>be.jsx(be.Fragment,{children:be.jsx(Vy,{sx:{justifyContent:"space-between"},children:be.jsx(t.Container,{maxWidth:i,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[be.jsx(Iy,{children:be.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&be.jsx(Nl,{variant:"text",width:200,height:28}),n&&be.jsx(Nl,{variant:"text",width:140,height:17})]})}),be.jsx(Iy,{children:o&&be.jsxs(be.Fragment,{children:[be.jsx(Nl,{variant:"text",width:72,height:28}),be.jsx(Nl,{variant:"text",width:56,height:28})]})})]})})})})})});function Ay(e){return[0,e/2,e]}const Ey=465,Ry=t.styled(t.Box)((({theme:e})=>({height:24,width:24,margin:e.spacing(.5)}))),Hy=t.styled(t.Box)((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",gap:e.spacing(.5),width:"100%",minWidth:450,minHeight:497,padding:16,boxSizing:"border-box",overflow:"hidden"}))),$y=t.styled(t.ListItemButton)((({theme:e})=>({padding:e.spacing(.5),paddingBottom:e.spacing(1),borderRadius:e.spacing(e.custom.radius.md),backgroundColor:e.custom.palette.interaction.none,display:"flex",minWidth:33,flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:Ey,"&:hover":{backgroundColor:e.custom.palette.interaction.hover,[`& .${t.formControlLabelClasses.root}`]:{[`& .${t.checkboxClasses.root}`]:{backgroundColor:e.custom.palette.blue[0]}}},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-selected":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled":{opacity:1}}))),Dy=t.styled(t.Box)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(.5),height:Ey,width:"100%"}))),Oy=t.styled(t.Box)((()=>({height:22,display:"flex",alignItems:"center"}))),_y=t.styled(t.Box)((({theme:e,value:t,disabled:n,checked:o})=>({transition:"background 200ms ease",width:"100%",height:t,backgroundColor:n||!o?e.custom.palette.neutral[100]:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm)}))),Wy=t.styled(t.Stack)((()=>({alignItems:"center",display:"flex",justifyContent:"flex-end"}))),Ny=t.styled(t.Box)((({theme:e})=>({height:24,marginTop:e.spacing(1),display:"flex",alignItems:"center"}))),Zy=t.styled(t.Stack,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((()=>({height:Ey,boxSizing:"border-box"}))),Uy=t.styled(t.Stack,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((({theme:e,hideLabel:t,hideCheckbox:n})=>({height:Ey,display:"flex",justifyContent:"space-between",paddingRight:e.spacing(e.custom.margin.sm),paddingTop:t||n?e.spacing(.5):e.spacing(2),boxSizing:"border-box"}))),Gy=t.styled(t.Box)((({showGraphLines:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",height:18,width:32,textAlign:"right",position:"relative","&:after":{content:'""',position:"absolute",left:`calc(100% + ${t.spacing(2)})`,bottom:8,width:e?400:0,height:1,backgroundColor:"currentColor",opacity:.1}})));var qy=e.memo((({yAxisMax:n,rounding:o,tickInterval:i,loading:r,yAxisTickData:s,hideLabel:a,showGraphLines:l,hideCheckbox:c,disabled:d,slotProps:u})=>{const p=t.useTheme(),h=e.useMemo((()=>o?Math.ceil(n/o)*o:n),[n,o]),m=s||function(e,t){if(null==e)return Ay(t);if(e<0)throw new Error("axisTickInterval must be greater than or equal to 0");if(0===e)return Ay(t);const n=[];for(let o=0;o<=t;o+=e)n.push(o),o+e>t&&o!==t&&n.push(t);return n}(i,h).reverse(),{onChange:x,...g}=u?.root||{};return be.jsxs(Zy,{children:[be.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[a&&be.jsx(Ry,{}),c&&be.jsx(Ry,{})]}),be.jsx(Uy,{...g,hideLabel:a,hideCheckbox:c,children:m.map(((e,t)=>be.jsx(Gy,{showGraphLines:l,children:r?be.jsx(Nl,{width:20,height:20}):be.jsx(ri,{component:"p",variation:"xs",monospaced:!0,sx:{color:d?p.custom.palette.text.disabled:p.custom.palette.text.primary},children:e})},t)))}),be.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[!a&&be.jsx(Ry,{}),!c&&be.jsx(Ry,{})]})]})}));const Ky=({percentage:o,label:i,checked:r,toolTipContent:s,hideValue:a,hideLabel:l,hideCheckbox:c,disableTooltip:d,animateBar:u,slotProps:p,tickInterval:h,onChange:m,maxDataValue:x,disabled:g,loading:f,value:v,id:C,className:y})=>{t.useTheme();const[w,b]=e.useState(0),j=e.useRef(null);e.useEffect((()=>{const e=((e,t,n)=>{if(e<=0)return 1;const o=Math.ceil(n/t)*t;return Math.max(1,e/o*380)})(o,h,x),t=u?w:e,n=performance.now(),i=o=>{const r=o-n,s=Math.min(r/250,1);b(t+(e-t)*(s*(2-s))),s<1&&requestAnimationFrame(i)},r=requestAnimationFrame(i);return()=>cancelAnimationFrame(r)}),[v]);const k=e.useCallback((()=>{!g&&m&&m(C,!r)}),[g,m,r]);return be.jsx(oi,{message:s||null,disableHoverListener:d||!s,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{height:"fill-available",width:1,...p?.tooltip?.slotProps?.wrapper?.sx}}},children:be.jsxs($y,{disabled:g,...p?.barWrapper,id:C,className:y,onClick:k,children:[!a&&be.jsx(Oy,{...p?.value,children:f?be.jsx(Nl,{width:20,height:18}):be.jsx(ri,{variation:"sm",component:"p",fontWeight:500,monospaced:!0,sx:{color:e=>g||!r?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:Math.round(o)})}),f?be.jsx(Nl,{width:"fill-available",height:w}):be.jsx(_y,{checked:r,value:w,disabled:g,...p?.bar}),be.jsxs(Wy,{children:[!l&&be.jsx(Ny,{...p?.label,children:f?be.jsx(Nl,{width:20,height:20}):be.jsx(ri,{variation:"sm",component:"p",monospaced:!0,sx:{color:e=>g||!r?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:i})}),!c&&be.jsx(be.Fragment,{children:f?be.jsx(Nl,{width:24,height:24,sx:{borderRadius:.5}}):be.jsx(Zr,{id:`${C}-checkbox`,variant:"secondary",checked:!g&&r,disabled:g,checkboxLabel:void 0,inputRef:j,onChange:k,...p?.checkbox,sx:n.mergeSx({mr:0,mt:1},p?.checkbox?.sx)})})]})]})})},Yy=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)}))),Xy=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],i=document.createElement("style");i.type="text/css","top"===n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 Qy=({animated:e,label:n,primaryText:o,secondaryText:i})=>{const r=o.match(/\d{1,2}:\d{2}/),s=o.split(":"),a=!isNaN(Number(o)),l=i.includes("%")&&!isNaN(Number(i.replace("%","")));return be.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:[be.jsx(ri,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:n}),be.jsx(ri,{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:be.jsx(be.Fragment,{children:r||a?be.jsx(be.Fragment,{children:r?be.jsxs(be.Fragment,{children:[be.jsx(S,{value:Number(s[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",be.jsx(S,{value:Number(s[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):be.jsx(S,{value:Number(o),animated:e})}):be.jsx(be.Fragment,{children:o})})}),be.jsx(ri,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},monospaced:!0,children:l?be.jsxs(be.Fragment,{children:[be.jsx(S,{value:i.replace("%",""),animated:e}),"%"]}):i})]})},Jy=({animated:e,iconName:o,label:i,value:r,slotProps:s})=>be.jsxs(t.Box,{display:"flex",alignItems:"center",gap:.5,children:[be.jsx(ni,{name:o,...s?.icon,sx:n.mergeSx({color:e=>e.custom.palette.icon.secondary},s?.icon?.sx)}),be.jsxs(ri,{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:[be.jsx(S,{value:r,animated:e})," ",be.jsx("span",{children:i})]})]}),ew=e.forwardRef((({colorScheme:e="purple",variation:o,title:i,description:r,loading:s,onShowMoreClick:a,menuItems:l,active:c,...d},u)=>{const p=t.useTheme(),h="raised";return be.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:[be.jsxs(t.Stack,{direction:"row",gap:1,children:[be.jsxs(t.Stack,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[be.jsx(be.Fragment,{children:s?be.jsx(Nl,{sx:{width:17,height:16}}):be.jsx(t.Box,{sx:{height:"22px",display:"flex",placeItems:"center"},children:be.jsx(Wc,{colorScheme:e,disabled:o&&"dimmed"===o})})}),s?be.jsx(Nl,{sx:{marginTop:"-1px"}}):be.jsx(ri,{component:"p",variation:"md",weight:"bold",sx:{color:"dimmed"===o?p.custom.palette.text.disabled:p.custom.palette.text.primary},children:i})]}),!s&&Boolean(l?.length)&&be.jsx(kl,{trigger:be.jsx(Ks,{icon:be.jsx(ni,{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?be.jsx(t.Box,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>be.jsx(Nl,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):be.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:r})]})})),tw=(e,t=1e5)=>Math.round(e*t)/t;var nw=e.memo((({playing:e,ended:t,seeking:n,buffering:o,handleAction:i})=>be.jsx(Ks,{disabled:o,loading:o,onClick:()=>i(),shape:"round",sizing:"xl",variation:"outlined",icon:be.jsx(ni,{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 ow=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60),i=o<10?"0"+o:o,r=t>0&&n<10?"0"+n:n;return t>0?`${t}:${r}:${i}`:`${r}:${i}`},iw=(e,t)=>t/e*100,rw=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}))),sw=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]}}))),aw=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 lw=e.memo((({startTime:t,endTime:n,currentTime:o,markers:i=[],markerIndicator:r=!0,markerIndicatorSize:s=3,markerIndicatorMode:a,marker:l})=>{const c=e.useMemo((()=>iw(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,i=(o-t)/e;let r;r="time"===a?s/e*100:100*s;const l=r/2,d=100*i,u=100-100*i,p=Math.min(l,d);return{width:p+Math.min(l,u),left:c-p}}),[o,t,n,c,a,s]),h=e.useMemo((()=>i.map((({timeStamp:e,id:i,meta:r})=>({id:i,timeStamp:e,markerPosition:iw(n-t,e),isActive:Math.abs(e-o+t)<=d/2+1e-10,meta:r})))),[i,n,t,o,d]),m=l||aw;return be.jsxs(rw,{children:[r&&be.jsx(sw,{width:u,left:p}),h.map((({id:e,markerPosition:t,isActive:n,meta:o})=>be.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...o&&{meta:o}},e)))]})}));const cw=t.styled(t.Slider)((({theme:e,type:n,muted:o,value:r})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${t.sliderClasses.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${i.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${i.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${i.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===n?{height:100,color:e.custom.palette.icon.primary,...(o||0===r)&&{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:`${i.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${i.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${i.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:i.alpha(e.custom.palette.neutral[400],.5),opacity:1},[`.${t.sliderClasses.track}`]:{border:0,boxShadow:"none",height:4}}})));var dw=e.memo(cw);const uw=t.styled(t.Stack)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),pw=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:i,volumeControlsType:r})=>{const s=be.jsx(Ks,{icon:(()=>{switch(!0){case 0===i||n:return be.jsx(o.VolumeOff,{});case i<.5:return be.jsx(L,{});default:return be.jsx(o.VolumeUp,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return be.jsx(uw,{children:"mute"===r?s:be.jsx(vl,{bindOn:["hover"],trigger:s,popperProps:{placement:"top",style:{zIndex:40}},children:be.jsx(dw,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(iw(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},hw=t.styled(t.Stack)({flex:1,position:"relative"}),mw=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)}))),xw=t.styled(ri)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),gw=t.styled(t.Box)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),fw=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 vw=e.memo((({startTime:t,currentTime:n,endTime:o,playing:i,markerIndicator:r,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(i),b=e.useCallback(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),j=e.useCallback(((e,t)=>{e.stopPropagation(),l?.(y),y&&w(!1)}),[y,l]),k=e.useCallback((e=>{e.stopPropagation(),i&&w(i),c?.(i)}),[i,c]),S=e.useCallback((()=>{i&&w(i),c?.(i)}),[i,c]),M=e.useCallback((()=>{l?.(y),y&&w(!1)}),[y,l]);return be.jsxs(hw,{children:[be.jsxs(mw,{direction:"row",children:[be.jsxs(xw,{component:"p",variation:"md",children:[ow(n-t)," / ",ow(o-t)]}),C&&be.jsx(pw,{volume:m,muted:x,handleVolumeMute:g,handleVolumeChange:f,volumeControlsType:v})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>be.jsx(fw,{left:e,width:t},n))),be.jsxs(gw,{children:[be.jsx(dw,{step:.05,value:n,max:o,min:t,onChangeCommitted:j,onMouseDown:k,onChange:b,onTouchStart:S,onTouchEnd:M}),d&&d?.length>0&&be.jsx(lw,{markerIndicatorMode:p,markerIndicatorSize:h,markerIndicator:r,markers:d,marker:u,startTime:t,currentTime:n,endTime:o})]})]})}));const Cw=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"}))),yw=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),ww=e.forwardRef((({id:t,videoElement:n,initialEndTime:o=0,initialCurrentTime:i=0,initialMuted:r,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:b}={},videoSeekTime:j},k)=>{const[S,M]=e.useState(!1),[z,B]=e.useState([]),T={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...l},[{seeking:V,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,muted:$,startTime:D,firstPlay:O,firstEnded:_},W]=e.useState({startTime:tw(T.normaliseTime?i:0),endTime:tw(T.normaliseTime?o:n.duration),currentTime:tw(i??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1,volume:s||1,muted:r||!1,buffering:!1});e.useEffect((()=>{if(n.muted=$,n.volume=H,T.normaliseTime&&(void 0===o||void 0===i))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:tw(T.normaliseTime?i:0),endTime:tw(T.normaliseTime?o:n.duration),currentTime:tw(i??0)}))),n.currentTime=tw(i??0)}),[i,o]);const N=e.useCallback((()=>{W((e=>({...e,playing:!1,ended:!0,...!_&&{firstEnded:!0}}))),d&&d(),!_&&w&&w()}),[_]);e.useEffect((()=>{if(!n||null==j)return;(async()=>{const e=!n.paused,t=j===I;W((e=>({...e,playing:!1,currentTime:tw(j)}))),await new Promise((e=>{const t=()=>{n.removeEventListener("seeked",t),e()};n.addEventListener("seeked",t),setTimeout(e,500)})),W((e=>({...e,currentTime:tw(j)}))),await new Promise((e=>setTimeout(e,50))),W((n=>({...n,playing:e,currentTime:tw(t?j-.001:j+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[j,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=tw(n.currentTime)>=I&&I!==tw(n.duration)&&!R,t=tw(n.currentTime)>=I&&I===tw(n.duration)&&!R&&!P;(e||t)&&(n.pause(),n.dispatchEvent(new Event("ended"))),W((e=>({...e,currentTime:tw(n.currentTime)}))),x&&x(tw(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),i=n.buffered.end(t);if(i>=D&&o<=I){const t=Math.max(o,D),n=Math.min(i,I);e.push({start:t-D,end:n-D,startPercent:(t-D)/(I-D)*100,widthPercent:(n-t)/(I-D)*100})}}B(e)}),[V,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:tw(T.normaliseTime?i:0),endTime:tw(T.normaliseTime?o:n.duration),currentTime:tw(i??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),b&&b()}),[P,L,D,I,R,i,o]),ee=async()=>{await n.play()},te=()=>{n.pause()},ne=e.useCallback((e=>{n.currentTime=tw(e),W((t=>({...t,currentTime:tw(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]),ie=e.useCallback((e=>{e&&n.pause(),W((e=>({...e,seeking:!0}))),m&&m()}),[R]),re=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,V]);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)=>re(t,e,n),videoState:{seeking:V,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,firstPlay:O,firstEnded:_,muted:$,startTime:D}}))),be.jsxs(Cw,{variation:"raised",borderradius:"xl",id:t,children:[be.jsxs(yw,{...T?.rtl&&{dir:"rtl"},children:[be.jsx(nw,{seeking:V,playing:P,ended:R,buffering:A,handleAction:async()=>{R?await Q(!0):P?te():await ee()}}),be.jsx(vw,{handleSeeking:ne,handleSeekEnd:re,handleSeekStart:ie,ended:R,marker:c?.marker,markers:a,markerIndicatorMode:T.markerIndicatorMode,markerIndicatorSize:T.markerIndicatorSize,markerIndicator:T.markerIndicator,startTime:T.normaliseTime?D:0,currentTime:L,endTime:I,playing:P,bufferRanges:z,buffering:A,volume:H,muted:$,volumeControls:T.volumeControls,volumeControlsType:T.volumeControlsType,handleVolumeMute:()=>{n.muted=!$},handleVolumeChange:e=>{n.volume=e,$&&(n.muted=!1)}})]}),c?.bottom]})}));var bw=e.memo(ww);const jw="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",kw=(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:hi[n]},palette:{mode:e,primary:{main:W[500]}},spacing:re,shape:{borderRadius:re,hotspot:{default:12,active:24}},breakpoints:{values:oe},typography:{fontFamily:`"${xe.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:mi(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(${jw}${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(${jw}${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(${jw}${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(${jw}${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*re}px ${e.padding.md*re}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 Sw="production"===process.env.NODE_ENV,Mw="Invariant failed";const zw=e.createContext(null),Bw=(n="light",o="lg",i="ltr")=>{const{width:r}=vs(),[s,a]=e.useState(n),[l,c]=e.useState(o),[d,u]=e.useState(i),[p,h]=e.useState(!1),[m,x]=e.useState("");e.useEffect((()=>{d&&document.documentElement.setAttribute("dir",d)}),[d]);e.useEffect((()=>{e.startTransition((()=>{c(r&&r<oe.lg?"sm":"lg")}))}),[r]),e.useEffect((()=>{e.startTransition((()=>{u(i)}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{a(n)}))}),[n]);const g=e.useMemo((()=>kw(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 Tw=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 Vw="undefined"!=typeof document,Iw=function(e,t,n){for(var o=0,i=0;o=i,i=P.peek(),38===o&&12===i&&(t[n]=1),!P.token(i);)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]+=Iw(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))},Lw=new WeakMap,Pw=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)||Lw.get(n))&&!o){Lw.set(e,!0);for(var i=[],r=Fw(t,i),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},Aw=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ew(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")?Ew(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 Rw,Hw,$w=Vw?void 0:(Rw=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},Hw=new WeakMap,function(e){if(Hw.has(e))return Hw.get(e);var t=Rw(e);return Hw.set(e,t),t}),Dw=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case P.DECLARATION:e.return=Ew(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""}))}}],Ow=function(e){var t=e.key;if(Vw&&"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,i,r=e.stylisPlugins||Dw,s={},a=[];Vw&&(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=[Pw,Aw];if($w){var c=[P.stringify],d=P.middleware(l.concat(r,c)),u=$w(r)(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]};i=function(e,t,n,o){var i=t.name,r=p(e,t);return void 0===g.compat?(o&&(g.inserted[i]=!0),r):o?void(g.inserted[i]=r):r}}else{var h,m=[P.stringify,P.rulesheet((function(e){h.insert(e)}))],x=P.middleware(l.concat(r,m));i=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 Tw({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(a),g};const _w=()=>be.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),Ww=Ow({key:"muirtl",stylisPlugins:[P.prefixer,E]}),Nw=Ow({key:"mui"});exports.AIInsight=({comments:n,themeDescription:o,slotProps:i,suggestions:r,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 be.jsxs(jc,{slotProps:{childrenContainer:{display:"flex",flexDirection:"column",gap:d.spacing(d.custom.padding.md)}},withLockUp:!0,...i?.aiContentContainer,children:[be.jsx(ri,{component:"p",variation:"sm",children:o}),!!n?.length&&be.jsxs(t.Box,{children:[be.jsx(ri,{component:"p",variation:"sm",weight:"bold",sx:{pb:d.spacing(d.custom.padding.sm)},children:"Key comments"}),be.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}),be.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)}})]}),!!r?.length&&be.jsxs(t.Box,{children:[be.jsx(ri,{component:"p",variation:"sm",weight:"bold",children:"Ideas to consider"}),be.jsx(t.List,{sx:{listStyleType:"disc",padding:0,pl:2},children:r.map(((e,t)=>be.jsx(b,{sx:{display:"list-item",padding:0},children:be.jsx(j,{disableTypography:!0,primary:be.jsx(ri,{component:"p",variation:"sm",children:e})})},`${t}-suggestion`)))})]})]})},exports.AISummary=Sc,exports.AIWrittenByLockUp=wc,exports.Accordion=({heading:n,items:o})=>{const{custom:i}=t.useTheme(),[r,s]=e.useState("");return be.jsx(t.Container,{sx:{backgroundColor:i.palette.surface.default,color:i.palette.text.primary},children:be.jsxs(t.Grid2,{container:!0,sx:{alignItems:"center",display:"flex",justifyContent:"center",py:{sm:4,lg:6},gap:2},children:[be.jsx(t.Grid2,{size:[12,12,12,8],children:be.jsx(ri,{variation:"xl",component:"h2",fontWeight:500,sx:{textAlign:"center"},children:n})}),be.jsx(t.Grid2,{size:[12,12,12,8],children:o?.map((e=>{return be.jsxs(lr,{expanded:r===e.heading,onChange:(t=e.heading,(e,n)=>{s(!!n&&t)}),children:[be.jsx(cr,{"aria-controls":`${e.heading}-content`,id:`${e.heading}-header`,heading:e.heading,children:be.jsx(ri,{variation:"lg",component:"p",fontWeight:500,children:e.heading})}),be.jsx(dr,{children:"string"==typeof e.body?be.jsx(ri,{variation:"lg",component:"p",sx:{whiteSpace:"break-spaces"},children:e.body}):e.body})]},e.heading);var t}))})]})})},exports.AiContentContainer=jc,exports.AnnualController=({body:e,currency:n,hideCurrency:o=!1,changeCurrencyEvent:i=()=>{},frequency:r,heading:s,setCurrency:a=()=>{},setFrequency:l=()=>{},togglePayAnnuallyEvent:c=()=>{},selections:d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}]})=>{const u=t.useTheme(),p=Fi();return be.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:[be.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:[be.jsx(t.Box,{sx:{pr:e=>e.spacing(e.custom.padding.md),display:"flex"},children:be.jsx(ar,{onChange:()=>(c(),void l("monthly"===r?"annually":"monthly")),role:"switch","aria-checked":"annually"===r,"aria-label":"Switch between monthly and annual billing",checked:"annually"===r})}),be.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[be.jsx(ri,{variation:"md",component:"p",children:s}),be.jsx(ri,{variation:"sm",component:"p",sx:{color:u.custom.palette.text.secondary},children:e})]})]}),!o&&be.jsx(or,{name:"currency",onChange:e=>{return t=e.target.value,i(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:i,menuItems:r,slotProps:s,...a})=>be.jsx(Lc,{loading:i,size:e,...a,children:i?be.jsx(Nl,{sx:{borderRadius:0}}):be.jsxs(be.Fragment,{children:[be.jsx(Mc,{slotProps:s,menuItems:r}),be.jsx(Ic,{thumbnail:t,size:e}),be.jsx(Bc,{cover:n,mediaType:o})]})}),exports.AuthContainerSurface=({children:e,headContent:o,sx:i,...r})=>{const s=t.useTheme();return be.jsxs(gl,{...r,sx:n.mergeSx(i,{mx:[s.spacing(s.custom.margin.md),0],width:1,maxWidth:[512]}),children:[o&&be.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}),be.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 i=t.useTheme();return be.jsxs(t.Stack,{gap:i.spacing(i.custom.margin.md),alignItems:"center",mb:i.spacing(i.custom.margin.lg),children:[!1===e?null:e||be.jsx(ni,{name:"brand-wordmark",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),be.jsxs(t.Stack,{gap:i.spacing(i.custom.margin.md),children:[n&&be.jsx(ri,{variation:"sm",component:"h1",align:"center",weight:"bold",children:n}),function(){if(o)return"string"==typeof o?be.jsx(ri,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},exports.Avatar=ur,exports.AvatarGroup=({variation:e="primary",...n})=>{if("primary"===e)return be.jsx(t.AvatarGroup,{...n})},exports.Badge=({children:e})=>be.jsx(pr,{children:be.jsx(hr,{variation:"xs",component:"p",type:"button",weight:"bold",children:e})}),exports.BrandBadge=({color:e,name:o,size:i,sx:r,...s})=>{const a=t.useTheme(),l=i||jr.xl,c=i||jr.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},r),...s};switch(o){case"emotion-meh":return be.jsx(gr,{...d});case"emotion-good":return be.jsx(mr,{...d});case"emotion-great":return be.jsx(xr,{...d});case"understanding-unknown":return be.jsx(br,{...d});case"understanding-low":return be.jsx(wr,{...d});case"understanding-good":return be.jsx(Cr,{...d});case"understanding-great":return be.jsx(yr,{...d});case"property-secure":return be.jsx(vr,{...d});case"property-private":return be.jsx(fr,{...d});default:return be.jsx(be.Fragment,{})}},exports.Breadcrumb=Vr,exports.BulletGraphic=({name:e,size:t,sx:o,...i})=>{const r=t||Dr.xl,s=t||Dr.xl,a={sx:n.mergeSx({height:r,width:s,fill:"none"},o),...i};switch(e){case"ai":return be.jsx(Ir,{...a});case"alert":return be.jsx(Fr,{...a});case"celebrate-collaborate":return be.jsx(Lr,{...a});case"comment":return be.jsx(Pr,{...a});case"many-media":return be.jsx(Ar,{...a});case"qual-and-quant":return be.jsx(Rr,{...a});case"variant-test":return be.jsx(Hr,{...a});case"worldwide":return be.jsx($r,{...a});default:return be.jsx(Er,{...a})}},exports.Button=Nr,exports.ButtonBase=_r,exports.Checkbox=Zr,exports.CheckboxGroup=qr,exports.ClipboardCopyingOverlay=Pc,exports.ColorBackgroundContainer=Kr,exports.CommentCard=Oc,exports.CreatableAutocomplete=ns,exports.CustomField=os,exports.DEFAULT_MAX_INPUT_LENGTH=ci,exports.DataPointInfo=qc,exports.DemographicSelectionSection=({demographicOptionLabel:e,demographicSelectionLabels:t})=>be.jsxs(Kc,{children:[be.jsx(ri,{component:"p",weight:"bold",variation:"xs",sx:{maxWidth:"128px",color:e=>e.custom.palette.text.primary,paddingTop:"1px"},children:e}),be.jsx(Yc,{children:t.map(((e,t)=>be.jsx(Dl,{label:e,sx:{maxWidth:"256px"}},`${t}-${e}`)))})]}),exports.Differential=ms,exports.DropdownMenu=({open:e,anchorEl:n,handleClick:o,handleClose:i,items:r,...s})=>be.jsx(be.Fragment,{children:be.jsx(xs,{anchorEl:n,open:e,onClose:i,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...s,children:r?.map(((e,n)=>be.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&be.jsx(t.Box,{mr:1,children:e.icon}),e.label]},n)))})}),exports.EmojiListItem=({disabled:e,loading:n,active:o,onClick:i,icon:r,label:s,slotProps:a,...l})=>{const c=t.useTheme();return be.jsx(Xc,{borderradius:"md",variation:"default",active:!e&&o,disabled:e,onClick:e?void 0:i,sx:{px:c.custom.padding.sm,py:c.custom.padding.xs,...a?.surface?.sx},...a?.surface,...l,children:be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-content-container",children:[r&&be.jsx(be.Fragment,{children:n?be.jsx(Nl,{variant:"text",width:24,sx:{borderRadius:"50%"}}):be.jsx(gs,{disabled:e,checked:!0,...a?.icon,children:r})}),s&&be.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?be.jsx(Nl,{variant:"text",width:120}):be.jsx(ri,{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:i,primaryAction:r,icon:s,label:a,slotProps:l,...c})=>{const d=t.useTheme();return be.jsxs(Qc,{borderradius:"md",variation:"default",disabled:n,sx:{p:d.custom.padding.sm,...l?.surface?.sx},...l?.surface,...c,children:[e&&be.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},className:"emoji-list-item-drag-handle-container",children:be.jsx(Ks,{disabled:n,sizing:"xs",icon:be.jsx(ni,{name:"drag-handle",color:d.custom.palette.icon.secondary}),...l?.dragHandle})}),be.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&&be.jsx(be.Fragment,{children:o?be.jsx(Nl,{width:24,height:24,sx:{borderRadius:"50%"}}):be.jsx(gs,{disabled:n,checked:!0,...l?.icon,children:s})}),a&&be.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?be.jsx(Nl,{width:100,height:24}):be.jsx(ri,{component:"p",variation:"md",sx:{color:n?d.custom.palette.text.disabled:d.custom.palette.text.primary},...l?.label,children:a})})]}),(r||i)&&be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.xs)},className:"emoji-list-item-actions-container",children:[r&&be.jsx(be.Fragment,{children:o?be.jsx(Nl,{width:24,height:24}):r}),i&&be.jsx(be.Fragment,{children:o?be.jsx(Nl,{width:24,height:24}):be.jsx(Ks,{sizing:"xs",disabled:n,icon:be.jsx(ni,{name:"delete",color:d.custom.palette.icon.secondary}),onClick:e=>{e.stopPropagation(),i&&i()},...l?.deleteAction})})]})]})},exports.EmojiWrapper=gs,exports.EmptyStateCard=({onClickCta:e,ctaText:o="Create a new test",title:i="This Loop has no tests",body:r="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 be.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:be.jsxs(t.Stack,{gap:2,direction:"row",alignItems:"start",children:[!a&&be.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:be.jsx(ni,{name:l,size:24})}),be.jsxs(t.Stack,{gap:2,alignItems:"start",children:[be.jsxs(t.Stack,{gap:u.spacing(u.custom.padding.sm),className:"copy-stack",children:[be.jsx(ri,{component:"p",variation:"lg",weight:"bold",sx:{color:u.custom.palette.purple[800]},...c?.title,children:i}),be.jsx(ri,{component:"p",variation:"md",sx:{color:u.custom.palette.purple[800]},...c?.body,children:r})]}),!s&&be.jsx(Nr,{onClick:e,...c?.button,children:o})]})]})})},exports.ExpandableTypographyClamp=ws,exports.ExtendedTestStatus=({animated:e=!0,status:n,segments:o,loading:i})=>{const r=t.useTheme(),{number:s,totalNumber:a}=o[0],l=a?Number(s)/a*100:void 0;return i?be.jsx(Nl,{width:"100%",height:73,sx:{borderRadius:r.spacing(r.custom.radius.lg)}}):be.jsxs(ad,{status:n,children:[be.jsxs(t.Stack,{direction:"row",gap:r.custom.padding.sm,alignItems:"center",sx:{flex:"1 1 auto",minWidth:"176px"},children:[be.jsx(ni,{name:td(n),size:24}),be.jsxs(t.Stack,{sx:{width:"100%",gap:r.spacing(r.custom.padding.sm)},children:[be.jsx(ri,{component:"p",variation:"md",sx:{color:nd(r,n,1e3)},children:ld(n)}),be.jsx(_l,{variation:"determinate",value:l,sx:{[`&.${t.linearProgressClasses.root}`]:{background:od(r,n,100),height:"8px",[`& .${t.linearProgressClasses.bar}`]:{backgroundColor:od(r,n)}}}})]})]}),be.jsx(t.Stack,{direction:"row",gap:r.custom.margin.lg,alignItems:"center",sx:{px:r.custom.padding.sm,flex:"0 0 auto"},children:o.map(((t,o)=>be.jsx(sd,{animated:e,segment:t,status:n},o)))})]})},exports.FilterCount=({animated:e=!0,buttonText:n,end:o,filteredCount:i,loading:r,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 i&&i!==l,m=n&&"number"==typeof i&&i!==l;return be.jsx(cd,{children:r?be.jsxs(be.Fragment,{children:[be.jsxs(dd,{children:[a?be.jsx(Nl,{width:50,height:18}):null,be.jsx(Nl,{width:30,height:18}),o?be.jsx(Nl,{width:50,height:18}):null]}),m?be.jsx(Nl,{width:60,height:18}):null]}):be.jsxs(be.Fragment,{children:[be.jsxs(dd,{children:[a?be.jsx(ri,{...d,...u,children:a}):null,h?be.jsxs(be.Fragment,{children:[be.jsx(ri,{...d,weight:"bold",monospaced:!0,children:be.jsx(S,{value:i,animated:e})}),be.jsx(ri,{...d,...u,children:"/"})]}):null,be.jsx(ri,{...d,...u,monospaced:!0,children:be.jsx(S,{value:l,animated:e})}),o?be.jsx(ri,{...d,...u,children:o}):null]}),m?be.jsx(ri,{...p,children:n}):null]})})},exports.FilterGroupAccordion=({heading:e,showIndicator:o,slotProps:i,children:r})=>{const s=t.useTheme();return be.jsxs(t.Accordion,{disableGutters:!0,elevation:0,square:!0,...i?.accordion,sx:n.mergeSx({"&::before":{content:"none"}},i?.accordion?.sx),children:[be.jsxs(pd,{expandIcon:be.jsx(ni,{name:"chevron-down"}),...i?.summary,children:[be.jsx(ri,{component:"p",variation:"md",color:"textPrimary",children:e}),o&&be.jsx(hd,{})]}),be.jsx(t.AccordionDetails,{...i?.details,sx:n.mergeSx({padding:0,paddingTop:s.spacing(.5)},i?.details?.sx),children:r})]})},exports.FilterPyramidGraph=({label:o,left:i,center:r,right:s,maxValue:a,maxCount:l})=>{const c=t.useTheme(),[d,u]=e.useState(!1),{totalBarWidth:p,filteredBarWidth:h,barBackground:m}=vv(i,r,"left",a,l),{totalBarWidth:x,filteredBarWidth:g,barBackground:f}=vv(s,r,"right",a,l);return be.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:[be.jsxs(t.Grid2,{size:"grow",position:"relative",overflow:"hidden",children:[be.jsx(gv,{sx:{width:`${p}%`,right:0}}),be.jsx(fv,{initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3,ease:"easeOut"},style:{background:m,transformOrigin:"right",right:0}}),be.jsx(zd,{children:i.label?.length&&d&&be.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:be.jsx(ri,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:i.label})})})]}),be.jsx(t.Grid2,{size:2,sx:{maxWidth:"48px"},children:be.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:be.jsx(ri,{component:"p",variation:"xxs",sx:{color:d?c.custom.palette.text.primaryInverted:c.custom.palette.text.primary,textAlign:"center"},children:o})})}),be.jsxs(t.Grid2,{size:"grow",sx:{position:"relative",overflow:"hidden"},children:[be.jsx(gv,{sx:{width:`${x}%`}}),be.jsx(fv,{initial:{width:0},animate:{width:`${g}%`},transition:{duration:.3,ease:"easeOut"},style:{background:f,transformOrigin:"left"}}),be.jsx(zd,{children:s.label?.length&&d&&be.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:be.jsx(ri,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:s.label})})})]})]})},exports.FilterRow=({label:e,selectedCount:n,checked:o=!1,onChange:i,slotProps:r,disabled:s})=>{const a=t.useTheme();return be.jsx(Cv,{dense:!0,sx:{display:"flex",px:a.spacing(a.custom.padding.sm),"&.Mui-disabled":{background:"transparent"}},onClick:()=>{s||i?.(!o)},disabled:s,children:be.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:a.custom.padding.md,width:"100%",children:[be.jsx(Zr,{variant:"secondary",value:o,disabled:s,...r?.checkboxProps,sx:{"&.Mui-disabled > span":{borderColor:`${a.custom.palette.stroke.disabled} !important`},[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}}}),be.jsx(ri,{component:"p",variation:"md",sx:{color:s?a.custom.palette.text.disabled:a.custom.palette.text.primary},children:e}),be.jsx(ri,{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:be.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:i="Clear filters"})=>be.jsx(gl,{variation:"sunken",borderradius:"lg",sx:{flexGrow:1,maxHeight:"max-content"},children:be.jsxs(ud,{children:[be.jsxs(t.Stack,{sx:{gap:e=>e.spacing(e.custom.padding.sm),alignItems:"center",[`& .${t.typographyClasses.root}`]:{textAlign:"center"}},children:[be.jsx(ri,{component:"p",weight:"bold",variation:"lg",children:n}),be.jsx(ri,{component:"p",variation:"md",sx:{color:e=>e.custom.palette.text.secondary},children:o})]}),be.jsx(Nr,{variation:"outlined",sizing:"sm",onClick:e,children:i})]})}),exports.Flag=js,exports.FormControlLabel=ir,exports.FormGenerator=Ra,exports.GraphBar=({id:o,label:i,value:r,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),T=e.useRef(null),V=y.icon;e.useEffect((()=>{const e=k,t=s||r,n=performance.now(),o=i=>{const r=i-n,s=Math.min(r/250,1);B(e+(t-e)*(s*(2-s))),s<1&&requestAnimationFrame(o)},i=requestAnimationFrame(o);return()=>cancelAnimationFrame(i)}),[s,r]);const I=e.useCallback((()=>{!g&&f&&f(!x)}),[g,f,x]),F=p&&h,L=null!=r,P=null!=a;return be.jsx(b,{disablePadding:!0,sx:{mb:w.spacing(w.custom.margin.xs)},children:be.jsx(oi,{message:l||i,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{width:"100%"}}},...y.tooltip,children:be.jsxs(Cv,{id:o,role:void 0,onClick:I,dense:!0,disabled:g,sx:{display:"flex"},children:[!d&&c&&be.jsx(z,{...V,sx:n.mergeSx({minWidth:0,mr:w.custom.margin.xs,color:w.custom.palette.text.primary},V?.sx),children:c}),be.jsxs(t.Stack,{direction:"row",width:1,gap:C?w.custom.margin.sm:w.custom.margin.md,alignItems:"center",children:[be.jsxs(M,{sx:{display:"flex",position:"relative",width:"fill-available"},children:[!g&&be.jsx(wv,{variant:"determinate",value:k,checked:x,...y.graphBar}),be.jsx(j,{disableTypography:!0,primary:be.jsx(ri,{...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:i}),sx:{my:0,position:"absolute",display:"flex",alignItems:"center",inset:0,ml:1}})]}),!F&&be.jsxs(M,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:w.custom.margin.xs,children:[!p&&be.jsx(bv,{weight:"bold",color:w.palette.text.primary,disabled:g,checked:x,...y?.unitText1,children:L?be.jsxs(be.Fragment,{children:[be.jsx(S,{value:r,animated:m}),""+(v?"%":"")]}):"-"}),!h&&be.jsx(bv,{color:w.palette.text.secondary,disabled:g,checked:x,...y?.unitText2,children:P?be.jsx(S,{value:a,animated:m}):"-"})]}),!u&&be.jsx(M,{display:"flex",justifyContent:"space-between",alignItems:"center",children:be.jsx(Zr,{id:`${o}-checkbox`,variant:"secondary",checked:!g&&x,disabled:g,...y.checkbox,checkboxLabel:void 0,inputRef:T,sx:n.mergeSx(y.checkbox?.sx,{[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}})})})]})]})})})},exports.GridOverlay=({breakpoint:n=!0,maxWidth:o=!1,position:i="fixed",visible:r=!1})=>{const s=Array.from({length:6},((e,t)=>t)),a=Fi(),[l,c]=e.useState(r);return Cs("cmd+g",(e=>{e.preventDefault(),console.log("Command+G keyboard shortcut triggered"),c(!l)})),l&&be.jsxs(Ha,{position:i,children:[be.jsx($a,{maxWidth:!!o&&"xl",children:be.jsx(Da,{children:be.jsxs(t.Grid2,{container:!0,spacing:2,sx:{flex:1},children:[s.map((e=>be.jsx(t.Grid2,{sx:{display:{sm:"none",md:"block"}},size:"grow",children:be.jsx(Oa,{})},`grid-1-${e}`))),s.map((e=>be.jsx(t.Grid2,{sx:{display:{sm:"block"}},size:"grow",children:be.jsx(Oa,{})},`grid-2-${e}`)))]})})}),n&&be.jsx(_a,{children:be.jsx(ri,{variation:"md",component:"p",weight:"bold",children:a})})]})},exports.Header=({backAction:e,title:o,showEditTitleOnlyOnHover:i=!0,breadcrumbLinks:r,buttons:s,controlBar:a,sx:l,slotProps:c,loading:d})=>{const u={...c,container:{maxWidth:!1,...c?.container}};return be.jsxs(be.Fragment,{children:[be.jsx(jv,{sx:n.mergeSx({justifyContent:"space-between",position:"sticky",top:"0",zIndex:999},l),children:be.jsx(t.Container,{...u.container,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsxs(zv,{sx:{justifyContent:"space-between",py:1,height:61},children:[be.jsxs(zv,{children:[void 0!==e&&be.jsx(Ks,{sizing:"lg",icon:be.jsx(ni,{name:"arrow-left",size:20}),sx:{color:e=>e.custom.palette.icon.primary},onClick:e}),be.jsxs(zv,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,...i&&{":hover .Header__TitleIconButton":{opacity:1}}},children:[d?be.jsx(Nl,{width:256,sx:{fontSize:xi.lg,lineHeight:1.4}}):be.jsx(ri,{variation:"lg",component:"p",weight:"bold",children:o}),void 0!==u?.titleIconButton?.onClick&&be.jsx(Ks,{icon:be.jsx(ni,{name:"edit"}),sizing:"md",sx:{my:"-4px",...i&&{opacity:0,transition:"opacity 0.3s ease"}},className:"Header__TitleIconButton",...u?.titleIconButton})]}),r&&be.jsx(be.Fragment,{children:d?be.jsx(Nl,{width:200,height:17,sx:{fontSize:xi.lg,lineHeight:1.4,mt:.5}}):be.jsx(Vr,{links:r})})]})]}),s&&be.jsx(zv,{children:s})]})})})})}),a&&be.jsx(kv,{children:be.jsx(t.Container,{...u.container,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsx(Sv,{children:be.jsx(Mv,{children:a})})})})})})]})},exports.Html=ks,exports.HtmlParser=Wa,exports.Icon=ni,exports.IconButton=Ks,exports.IconButtonBase=Us,exports.IconButtonGroup=Xs,exports.Image=Za,exports.InputFieldBase=Ur,exports.InputLabel=Ss,exports.InputLabelHelp=ss,exports.KpiDataPopover=({indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:i,combinedAveragePercent:r,linkedQuestions:s})=>be.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:[be.jsxs(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),sx:{},children:[be.jsx(Tv,{indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:i,combinedAveragePercent:r}),be.jsx(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),children:s&&s.map(((e,t)=>be.jsx(Uv,{...e},`${t}-${e.questionTitle}`)))})]}),be.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=Sr,exports.Loader=({fullscreen:e})=>e?be.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100dvw",height:"calc(100dvh - 80px)",background:e=>e.custom.palette.white},children:be.jsx(t.Box,{sx:{width:200},children:be.jsx(Ya,{})})}):be.jsx(Ya,{}),exports.Logo=e=>be.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:be.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:i,active:r=!1,loading:s,testCount:a,draftCount:l,cta:c})=>{const d=t.useTheme();return s?be.jsxs(qv,{onClick:e,active:r,"data-id":n,cta:c,children:[be.jsx(Yv,{id:"image-holder",children:be.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),be.jsx(Xv,{children:be.jsxs(t.Box,{display:"flex",gap:1,flexDirection:"column",width:2/3,alignSelf:"center",children:[be.jsx(Nl,{height:19}),be.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[be.jsx(Nl,{height:16}),be.jsx(Nl,{height:16})]})]})})]}):be.jsxs(qv,{onClick:e,active:r,"data-id":n,cta:c,children:[be.jsx(Yv,{id:"image-holder",children:be.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),be.jsxs(Xv,{children:[be.jsx(Jv,{component:"p",variation:"sm",weight:"bold",active:r,children:i}),be.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[!a&&!l&&be.jsx(eC,{component:"p",variation:"sm",active:r,children:"Empty"}),!!a&&be.jsx(eC,{component:"p",variation:"sm",active:r,children:`${a} ${Gv("Test",a)}`}),!!l&&be.jsx(eC,{component:"p",variation:"sm",active:r,children:`${l} ${Gv("Draft",l)}`})]})]}),c&&be.jsx(Qv,{children:c})]})},exports.LoopItemEmpty=nC,exports.LoopsAiButton=Qa,exports.Markdown=({typographyProps:e={variation:"lg",component:"p"},children:t=""})=>be.jsx(w,{options:{overrides:{p:{component:ri,props:e},ul:{component:({children:e,...t})=>be.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:i,extraAction:r,hideCloseButton:s,contentPadding:a,handleClose:l})=>{const c=t.useTheme();return be.jsxs(gl,{variation:"overlay",sx:{minWidth:320,width:"100%",maxWidth:600,overflow:"hidden",position:"relative"},children:[be.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:[be.jsxs(t.Stack,{children:["string"==typeof e?be.jsx(ri,{component:"p",variation:"xl",weight:"bold",children:e}):e,n&&be.jsx(ri,{component:"p",variation:"md",sx:{color:c.custom.palette.text.secondary},children:n})]}),be.jsxs(t.Stack,{direction:"row",gap:c.spacing(c.custom.margin.md),height:32,children:[r,!s&&be.jsx(Ks,{sizing:"md",icon:be.jsx(ni,{name:"close"}),sx:{color:c.custom.palette.icon.primary},onClick:l})]})]}),o&&be.jsx(zl,{contentPadding:!!a,children:be.jsx(t.Stack,{gap:c.custom.padding.md,sx:{maxWidth:600},children:"string"==typeof o?be.jsx(ri,{component:"p",variation:"md",children:o}):o})}),i&&be.jsx(zl,{contentPadding:!!a,children:i})]})},exports.Navigation=({logoLink:e,isMobile:n,nudgeProps:o,primaryMenuItemProps:i,secondaryMenuItemProps:r,sizing:s="lg",tertiaryMenuItemProps:a,toggleMenuOnClick:l=()=>{},userMenuProps:c})=>{const d=t.useTheme();return be.jsxs(lC,{navigationSizing:s,children:[be.jsx(aC,{logoLink:e,navigationSizing:s,toggleMenuOnClick:l,isMobile:n}),be.jsx(cC,{children:be.jsxs(t.Stack,{sx:{gap:4,justifyContent:"space-between",width:"100%"},children:[!!i?.length&&be.jsx(t.Stack,{sx:{gap:"lg"===s?.5:2,width:"100%"},children:i.map(((e,t)=>be.jsx(Ll,{navigationSizing:s,...e},`primary-menu-item-${t}`)))}),be.jsxs(t.Stack,{sx:{gap:2},children:[o?.title&&be.jsx(Hl,{navigationSizing:s,...o}),!!r?.length&&r.map(((e,t)=>be.jsx(Ll,{navigationSizing:s,...e,label:"Help center"===e.label&&"sm"===s?"Help":e.label},`secondary-menu-item-${t}`))),be.jsx(t.Divider,{sx:{color:d.custom.palette.stroke.default}}),be.jsx(oc,{rounded:"sm"===s,...c}),!!a?.length&&be.jsx(dC,{children:a.map(((e,t)=>be.jsx(Ll,{navigationSizing:s,...e},`tertiary-menu-item-${t}`)))})]})]})})]})},exports.NavigationButton=Ll,exports.Nudge=Hl,exports.NumberField=ea,exports.OnboardingCard=({cardTitle:n,cardSubtitle:i,welcomeImageUrl:r,welcomeImageAltDescription:s,items:a=[]})=>{const[l,c]=e.useState(!0),d=t.useTheme(),u=()=>c(!l),p=a.length,h=a.filter((e=>e.complete)).length,m=h/p*100;return be.jsxs(gl,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"row",[d.breakpoints.down("lgNav")]:{flexDirection:"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:[be.jsxs(uC,{children:[be.jsx(t.Box,{component:"img",src:r,alt:s,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),be.jsx(ri,{component:"h1",variation:"md",fontWeight:500,children:n}),be.jsx(hC,{component:"p",variation:"lg",children:i})]}),be.jsxs(pC,{children:[be.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[be.jsx(ly,{completed:h,total:p}),l&&be.jsx(Ks,{sizing:"sm",variation:"outlined",icon:be.jsx(o.ExpandLess,{}),onClick:u})]}),be.jsx(_l,{variation:"determinate",value:m}),be.jsx(ay,{expanded:l,onToggleExpanded:u,items:a})]})]})},exports.PaginationControl=kc,exports.Pill=Dl,exports.PlanFeatureTable=({currencySymbol:e,data:n,loading:o,tier1MinimumTerm:i,tier1Price:r,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 be.jsx(cc,{});const w=t.useTheme(),b={...si,...n},j=t=>"number"==typeof t?`${e}${new Intl.NumberFormat("en-GB").format(t)}`:t||"",k=t=>t.replace("{{currencySymbol}}",e||"").replace("{{tier1MinimumTerm}}",i?`${i} 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}}",j(r)).replace("{{tier2Price}}",j(c)).replace("{{tier3Price}}",j(h)).replace("{{tier4Price}}",j(f)).replace("{{tier1QuestionLimit}}",s?String(s):"").replace("{{tier2QuestionLimit}}",d?String(d):"").replace("{{tier3QuestionLimit}}",m?String(m):"").replace("{{tier4QuestionLimit}}",v?String(v):"").replace("{{tier1RespondentPrice}}",j(a)).replace("{{tier2RespondentPrice}}",j(u)).replace("{{tier3RespondentPrice}}",j(x)).replace("{{tier4RespondentPrice}}",j(C)),S=Object.values(b.headings).map((({heading:e,pricing:t})=>({heading:e,pricing:k(t)}))),M=[...Object.values(b.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 be.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:[be.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[be.jsx(t.Box,{sx:{width:160}}),S.map((({heading:e,pricing:n})=>be.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[be.jsx(ri,{variation:"platform"===y?"lg":"xxl",component:"p",weight:"bold",children:e}),be.jsx(ri,{variation:"platform"===y?"sm":"md",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]},e)))]}),M.map((e=>be.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(even)":{backgroundColor:w.custom.palette.surface.sunken}},children:[be.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:be.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&be.jsx(oi,{message:e.name.description,children:be.jsx(t.Box,{sx:{alignItems:"center",color:w.custom.palette.icon.secondary,display:"flex"},children:be.jsx(ni,{name:"info",size:24})})}),be.jsx(ri,{variation:"platform"===y?"md":"lg",component:"p",children:e.name.heading})]})}),be.jsx(uc,{text:e.tier1}),be.jsx(uc,{text:e.tier2}),be.jsx(uc,{text:e.tier3}),be.jsx(uc,{text:e.tier4})]},e.key)))]})},exports.PlanTierCard=({amount:n,billingType:o,body:i,ctaEvent:r=()=>{},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 b=t.useTheme(),j=Fi(),{width:k}=vs(),S=e.useRef(null),M=e.useRef(null),z=e.useRef(null),B=e.useRef(null),[T,V]=e.useState("sm");return x?be.jsx(gc,{}):(e.useEffect((()=>{e.startTransition((()=>{if(y&&w){j!==T&&(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)}))}}))}),[j,T,k]),be.jsxs(xc.PlanTierCard,{children:[be.jsxs(xc.Top,{children:[be.jsxs(xc.Head,{ref:S,height:y?.headerHeight,children:[be.jsxs(xc.PlanTitle,{children:[be.jsx(ri,{variation:"md",component:"h1",weight:"bold",children:h}),m&&be.jsx(Ka,{body:m,weight:"heavy",sx:{backgroundColor:e=>e.custom.palette.icon.primary,color:e=>e.custom.palette.text.primaryInverted}})]}),be.jsxs(xc.Billing,{children:[be.jsxs(xc.Price,{children:[be.jsxs(ri,{variation:"lg",component:"h1",weight:"bold",sx:{fontFamily:e=>e.typography.fontFamily,lineHeight:1},children:[d,n]}),g&&be.jsx(ri,{variation:"sm",component:"p",sx:{color:b.custom.palette.text.secondary,lineHeight:1},children:g})]}),o&&be.jsx(ri,{variation:"sm",component:"p",sx:{color:b.custom.palette.text.secondary},children:o})]}),C&&be.jsx(yc,{body:C,weight:"heavy"})]}),be.jsx(xc.Body,{ref:M,height:y?.bodyHeight,children:be.jsx(ri,{variation:"lg",component:"p",children:i})}),f&&be.jsx(Cc,{ref:z,height:y?.respondentCardHeight,respondentsTitle:f,respondentsFeatures:v})]}),be.jsxs(xc.Bottom,{ref:B,height:y?.bottomHeight,children:[p?.length&&be.jsx(xc.FeatureList,{children:p.map(((e,t)=>be.jsx(hc,{feature:e},`${h}-feature-${t}`)))}),!u&&be.jsx(Sr,{href:s,title:l,target:a,onClick:()=>{h&&r(h)},sx:{"&:hover":{cursor:"pointer"}},children:be.jsx(Nr,{fullWidth:!0,variation:c,sizing:"lg",disabled:u,children:l})})]})]}))},exports.Popper=vl,exports.PoweredByWatermarkLogo=()=>be.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[be.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:be.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"})}),be.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:be.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"})}),be.jsx("defs",{children:be.jsx("clipPath",{id:"clip0_900_1816",children:be.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=qs,exports.ProgressBar=_l,exports.ProjectItem=e=>"list"===e.viewType?be.jsx(by,{...e}):be.jsx(wy,{...e}),exports.ProjectItemEmpty=({onClick:e,viewType:n,title:o})=>{const i=t.useTheme();return"list"===n?be.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${i.custom.palette.stroke.light}`},children:be.jsxs(xy,{component:"div",onClick:e,sx:{display:"flex",gap:i.spacing(i.custom.margin.sm),alignItems:"center",padding:i.spacing(i.custom.padding.xs)},children:[be.jsx(gy,{sx:{height:72,width:108},"data-id":"image-container",children:be.jsx(Cy,{viewType:n,children:be.jsx(ni,{name:"add"})})}),be.jsx(vy,{sx:{overflow:"hidden",pl:i.spacing(i.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:be.jsx(t.Stack,{gap:i.spacing(i.custom.margin.xs),children:be.jsx(hy,{title:o,maxLines:1})})})]})}):be.jsx(my,{sx:{height:"100%"},children:be.jsxs(xy,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[be.jsx(gy,{"data-id":"image-container",sx:{width:"100%"},children:be.jsx(Cy,{viewType:n,children:be.jsx(ni,{name:"add"})})}),be.jsx(vy,{children:be.jsx(hy,{title:o,maxLines:2})})]})})},exports.QuestionBlock=({preQuestionText:e,questionText:n,questionType:o,supportText:i,slotProps:r,loading:s})=>{const a=t.useTheme();return s?be.jsxs(Sy,{children:[be.jsx(ky,{loading:!0}),be.jsxs(t.Stack,{gap:1,sx:{padding:a.spacing(a.custom.padding.md)},children:[be.jsx(Nl,{width:"100%",height:22}),be.jsx(Nl,{width:"100%",height:44}),be.jsx(Nl,{width:"100%",height:66})]})]}):be.jsxs(Sy,{children:[be.jsx(ky,{type:o}),be.jsxs(My,{children:[e&&be.jsx(ri,{variation:"md",component:"p",color:a.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),be.jsx(ri,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:n}),i&&be.jsx(Wa,{children:i})]})]})},exports.QuestionLabel=ky,exports.QuestionSelector=zy,exports.Radio=ds,exports.RadioGroup=ta,exports.Rank=ma,exports.RichTextField=ga,exports.SearchInput=Ty,exports.SectionHeader=({loading:e,...t})=>be.jsx(be.Fragment,{children:e?be.jsx(Py,{...t}):be.jsx(Ly,{...t})}),exports.Select=or,exports.SentimentArrow=Rc,exports.Skeleton=Nl,exports.Slider=ja,exports.SliderGraph=({rounding:t,tickInterval:n=10,data:o,loading:i,disabled:r,onChangeHandler:s,animateBars:a,slotProps:l,hideYAxis:c=!1,hideValues:d=!1,showGraphLines:u=!1,hideLabels:p=!1,hideCheckboxes:h=!1,disableTooltips:m=!1})=>{const x=e.useMemo((()=>Math.ceil(o.reduce(((e,{percentage:t})=>t>e?t:e),0))),[o]);return be.jsxs(Hy,{...l?.root,children:[!c&&be.jsx(qy,{loading:i,yAxisMax:x,rounding:t,tickInterval:n,disabled:r,showGraphLines:u,hideLabel:p,hideCheckbox:h,slotProps:{root:l?.yAxis}}),be.jsx(Dy,{...l?.barsWrapper,children:o.map(((e,t)=>{const{percentage:o,label:l,value:c,checked:u,id:g,amount:f,relativePercentage:v,onChange:C}=e;return be.jsx(Ky,{loading:i,label:l,value:c,percentage:o,maxDataValue:x,checked:u,tickInterval:n,disabled:r||i,animateBar:a,hideValue:d,onChange:s?(e,t)=>s(e,t):C?(e,t)=>C({amount:f,percentage:o,name:l,relativePercentage:v},t):void 0,hideLabel:p,hideCheckbox:h,toolTipContent:null==o?null:`${o}%`,disableTooltip:m,id:g,className:`slider-graph-bar-${t+1}`,slotProps:{barWrapper:{},checkbox:{},value:{},label:{},tooltip:{},bar:{}}},t)}))})]})},exports.SortableList=ha,exports.StarRating=Sa,exports.Surface=gl,exports.Switch=sr,exports.Tab=({active:e,animated:n,label:o,sentimentScore:i,stat:r,title:s,onClick:a})=>{const l=t.useTheme();return be.jsxs(Yy,{layout:n,active:e,onClick:a,children:[be.jsx(ri,{component:"p",variation:"sm",weight:"bold",children:s}),be.jsxs(Xy,{layout:n,children:["number"==typeof i?be.jsxs(be.Fragment,{children:[be.jsx(ri,{monospaced:!0,variation:"md",component:"p",weight:"bold",sx:{lineHeight:"160%"},children:be.jsx(S,{value:i,format:{maximumFractionDigits:1},animated:n})}),be.jsx(Rc,{sentimentScore:i})]}):be.jsx(ri,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:be.jsx(be.Fragment,{children:"number"==typeof r?be.jsx(S,{value:r,format:{maximumFractionDigits:1},animated:n}):"-"})}),!!o&&be.jsx(ri,{component:"p",variation:"xs",color:l.custom.palette.text.secondary,clamp:1,sx:{wordBreak:"break-all"},children:o})]})]})},exports.TestItem=({animated:o=!0,status:i,menuItems:r,title:s,tags:a,stats:l,user:c,slotProps:d,loading:u=!1,...p})=>{const[h,m]=e.useState(!1);return be.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:be.jsxs(t.Stack,{component:"article",gap:2,children:[be.jsxs(t.Stack,{component:"header",gap:1,justifyContent:"space-between",children:[be.jsxs(t.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[u?be.jsx(Nl,{sx:{width:90,height:32}}):be.jsx(rd,{status:i,...d?.status}),!u&&Boolean(r?.length)&&be.jsx(kl,{trigger:be.jsx(Ks,{icon:be.jsx(ni,{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:r,width:128,offset:[0,8],placement:"bottom-end",...d?.menu})]}),u?be.jsx(Nl,{}):be.jsx(ri,{component:"h1",weight:"bold",...d?.title,sx:n.mergeSx({fontSize:e=>e.custom.typography.body.xl},d?.title?.sx),children:s})]}),be.jsx(t.Box,{children:u?be.jsx(t.Box,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>be.jsx(Nl,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(a?.length)&&be.jsx(I.TruncatedList,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...h&&{maxHeight:"none"}},alwaysShowTruncator:h,renderTruncator:({hiddenItemsCount:e})=>e>0?be.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)}):be.jsx(Ks,{sizing:"sm",icon:be.jsx(ni,{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=>be.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&&be.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:be.jsxs(t.Stack,{gap:2,children:[be.jsx(_l,{variation:"determinate",value:l.progress.percentage}),be.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:[be.jsx(t.Box,{flexBasis:0,flexGrow:1,children:be.jsx(Qy,{animated:o,label:"Completed",primaryText:l.progress.completed.toString(),secondaryText:`of ${l.progress.total}`})}),be.jsx(t.Box,{flexBasis:0,flexGrow:1,children:be.jsx(Qy,{animated:o,label:"Incomplete",primaryText:l.progress.incomplete.toString(),secondaryText:`${l.progress.incompletePercentage}%`})}),be.jsx(t.Box,{flexBasis:0,flexGrow:1,children:be.jsx(Qy,{animated:o,label:"Duration",primaryText:l.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==i&&be.jsxs(t.Box,{display:"flex",justifyItems:"center",gap:.3,children:[be.jsx(ri,{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?be.jsxs(be.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(i)," ",be.jsx("strong",{children:l.progress.estimatedTimeToComplete})]}):be.jsx(be.Fragment,{children:"Not enough data to estimate completion time"})}),l.progress.estimatedTimeToComplete&&be.jsx(oi,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:be.jsx(t.Box,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:be.jsx(ni,{name:"info",size:16})})})]})]})}),be.jsxs(t.Box,{component:"footer",display:"flex",flexDirection:"row",justifyContent:c?"space-between":"end",gap:1,children:[c&&be.jsx(t.Box,{display:"flex",alignItems:"center",gap:1,children:u?be.jsxs(be.Fragment,{children:[be.jsx(Nl,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),be.jsx(Nl,{sx:{width:100}})]}):be.jsx(be.Fragment,{children:be.jsx(ri,{component:"p",clamp:1,sx:{fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.secondary},children:c.activityDescription})})}),!u&&"draft"!==i&&be.jsxs(t.Box,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[be.jsx(Jy,{animated:o,iconName:"data-bar",label:"answers",value:l?.count?.answers??0}),be.jsx(Jy,{animated:o,iconName:"comment-filled",label:"comments",value:l?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},exports.TestKPICard=ew,exports.TextBarDivider=({typographyProps:e,text:o,sx:i})=>{const r=t.useTheme();return be.jsx(t.Box,{sx:n.mergeSx(i,{width:"100%",position:"relative",display:"flex",gap:4,my:r.spacing(r.custom.margin.md),"&:before":{content:'""',width:"100%",background:r.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:r.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:be.jsx(ri,{align:"center",variation:"sm",component:"p",...e,children:o})})},exports.TextField=Gr,exports.Textarea=za,exports.ThemeContext=zw,exports.ThemeProvider=({mode:e="light",screenSize:n="lg",direction:o="ltr",ignoreCacheProvider:r,children:s})=>{const a=Bw(e,n,o),l=()=>be.jsxs(i.ThemeProvider,{theme:a.theme,children:[be.jsx(t.CssBaseline,{}),be.jsx(_w,{}),s]});return be.jsx(zw.Provider,{value:a,children:r?l():be.jsx(A.CacheProvider,{value:"rtl"===o?Ww:Nw,children:l()})})},exports.TickGroup=({heading:e,ticks:n})=>be.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4}},children:[be.jsx(ri,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),be.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:n.map(((n,o)=>be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[be.jsx(ni,{name:"badge-tick",size:32}),be.jsx(ri,{variation:"xxl",component:"p",children:n})]},`tick-group-${e}-${o}`)))})]}),exports.Toast=({buttons:e,message:n,status:o="neutral",variation:i="sm"})=>{const r=t.useTheme();return be.jsx(t.Stack,{sx:{backgroundColor:r.custom.palette.surface.overlay,borderRadius:r.spacing(r.custom.radius.lg),boxShadow:r.custom.elevation.overlay,color:r.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:be.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===i?"row":"column",gap:2},children:[be.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&be.jsx(Zl,{status:o}),be.jsx(t.Box,{sx:{display:"flex"},children:be.jsx(ri,{variation:"md",component:"p",sx:{px:1,pt:.5},children:n})})]}),e&&be.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=oi,exports.TrialCard=({promoHeadline:e,promoDescription:t,ctaText:n,ctaFn:o})=>be.jsxs(Yl.TrialCard,{gradient:"tone1",texture:"noise1",children:[be.jsxs(Yl.Top,{sx:{alignItems:"start"},children:[be.jsx(Xl,{body:e,weight:"heavy",icon:be.jsx(ni,{name:"gift"})}),be.jsx(ri,{component:"p",variation:"lg",sx:{maxWidth:{lg:600,md:"initial"},color:e=>e.custom.palette.text.lockedWhite},children:t})]}),be.jsx(Yl.CtaButtonContainer,{children:be.jsx(Yl.CtaButton,{variation:"secondary",onClick:o,children:n})})]}),exports.Typography=ri,exports.UserMenu=oc,exports.VideoControls=bw,exports.VideoModal=({modalVisible:e=!1,showModal:n,video:o})=>be.jsx(t.Modal,{closeAfterTransition:!0,onClose:()=>n(!1),open:e,hideBackdrop:!0,children:be.jsx(t.Fade,{in:e,children:be.jsxs(rc,{children:[be.jsx(t.Backdrop,{open:e,onClick:()=>n(!1)}),be.jsx(sc,{children:be.jsx(ac,{children:be.jsx(lc,{autoPlay:!0,controls:!0,controlsList:"nodownload noremoteplayback noplaybackrate",disablePictureInPicture:!0,muted:!0,preload:"auto",src:o,tabIndex:-1})})}),be.jsx(ic,{children:be.jsx(t.Container,{children:be.jsx(Ks,{icon:be.jsx(ni,{name:"close",size:24}),variation:"outlined",shape:"round",onClick:()=>n(!1)})})})]})})}),exports.backgroundCreator=Ii,exports.base=re,exports.blue=G,exports.blueRamp=te,exports.boxShadow=ue,exports.breakpoints=oe,exports.buttonHeightMap=wi,exports.buttonInteraction=yi,exports.chooseArticle=ai,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=kw,exports.darkNeutral=D,exports.darkNeutralAlpha=_,exports.defaultInputValidation=li,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=Si,exports.getButtonTypography=ki,exports.getIconSizing=ji,exports.getKpiIndicatorColor=_c,exports.green=q,exports.greenRamp=ne,exports.iconButtonHelpers=Ns,exports.iconSizeMap=ti,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=fi,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=Ci,exports.purple=W,exports.purpleRamp=X,exports.radius=le,exports.red=N,exports.redRamp=Q,exports.secondary=vi,exports.semantic=he,exports.space=ie,exports.subtle=gi,exports.useBreakpoint=Fi,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(zw);return function(e,t){if(!e){if(Sw)throw new Error(Mw);var n=t,o="".concat(Mw,": ").concat(n);throw new Error(o)}}(t,"useTheme must be used within a ThemeProvider"),t},exports.useThemeBuilder=Bw,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,i){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)}(o),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},yC}function AC(){if(jC)return bC;jC=1;return bC="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(TC)return BC;TC=1;var e=LC(),t=PC(),n=AC(),o=EC(),i=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 i(i,r,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(o(i,c)){var d;try{if("function"!=typeof i[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 i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[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 i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},MC=i}(),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){}}),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,i,r,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=t[o];if(!Array.isArray(a))return new h("Invalid "+r+" `"+s+"` of type `"+v(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,i,r,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,o,i){var r=e[t];return a(r)?null:new h("Invalid "+o+" `"+i+"` of type `"+v(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,o,i,r){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+i+" `"+r+"` of type `"+v(s)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,o,i,r){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+i+" `"+r+"` 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,i){return f(e[t])?null:new h("Invalid "+o+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,i,r,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[i],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(o(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,o,i,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 "+i+" `"+r+"` of value `"+String(s)+"` supplied to `"+o+"`, 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 i=e[t];if("function"!=typeof i)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),s}return m((function(t,i,r,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,r,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 `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,o,i,r,s){var a=t[o],l=v(a);if("object"!==l)return new h("Invalid "+r+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(i,r,s,c,C(d));var u=d(a,c,i,r,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(i,r,s,a,l){var c=i[r],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},i[r],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(i[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={},o=0;function i(i,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&&(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,o++)}}return null==s[a]?i?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=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function x(e){return m((function(t,n,o,i,r,s){var a=t[n];return v(a)!==e?new h("Invalid "+i+" `"+r+"` of type `"+C(a)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,o,i){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 `"+i+"`.")}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 i=n.value;if(i&&!f(i[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=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},BC}()(RC.isElement,!0)}else xC.exports=function(){if(IC)return VC;IC=1;var e=AC();function t(){}function n(){}return n.resetWarningCache=t,VC=function(){function o(t,n,o,i,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 i(){return o}o.isRequired=o;var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}()();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 i=e.length;for(t=0;t<i;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="",i=arguments.length;n<i;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${T.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=i.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=i.useThemeProps({props:e,name:"MuiTimeline"}),{position:o="right",className:r,...s}=n,a={...n,position:o},l=(e=>{const{position:t,classes:n}=e;return function(e,t,n){const o={};for(const i in e){const r=e[i];let s="",a=!0;for(let e=0;e<r.length;e+=1){const o=r[e];o&&(s+=(!0===a?"":" ")+t(o),a=!1,n&&n[o]&&(s+=" "+n[o]))}o[i]=s}return o}({root:["root",t&&GC(t)]},UC,n)})(a),c=H.useMemo((()=>({position:o})),[o]);return be.jsx(ZC.Provider,{value:c,children:be.jsx(qC,{className:DC(l.root,r),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(Sr)((({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(ri)((()=>({color:"inherit",fontWeight:500,fontSize:xi.lg}))),ny=t.styled(ri)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),oy=({children:e,complete:t,onClick:n})=>t?be.jsx(ey,{children:e}):be.jsx(JC,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),iy=({complete:e,title:t,description:n,onClick:o})=>be.jsx(XC,{children:be.jsxs(oy,{complete:e,onClick:o,children:[be.jsx(ty,{component:"p",variation:"lg",children:t}),!e&&be.jsx(ni,{name:"arrow-right",size:16}),!e&&n&&be.jsx(ny,{variation:"lg",component:"p",children:n})]})}),ry=({item:e,showConnector:t})=>{const{complete:n,title:o,description:i,onClick:r}=e;return be.jsxs(B.TimelineItem,{children:[be.jsxs(B.TimelineSeparator,{children:[be.jsx(YC,{completed:n,children:n?be.jsx(ni,{name:"badge-tick-in-circle",size:24}):void 0}),t&&be.jsx(B.TimelineConnector,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&be.jsx(B.TimelineContent,{component:()=>be.jsx(iy,{complete:n,title:o,description:i,onClick:r})})]})},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:i})=>{const r=i.find((e=>!e.complete)),s=e.useMemo((()=>n?i:[r]),[n,i,r]),a=e.useRef(null),[l,c]=e.useState(),d=e.useCallback((()=>{if(!a.current)return;const e=a.current.scrollHeight;c(e)}),[i]);return e.useEffect((()=>{d()}),[n,d]),e.useEffect((()=>{const e=new ResizeObserver(d);return a.current&&e.observe(a.current),()=>e.disconnect()}),[d]),be.jsx(xv.div,{variants:sy,initial:"initial",animate:"auto"===l?"initial":["initial","animate"],custom:l,style:{overflow:"hidden"},children:be.jsx("div",{ref:a,style:{display:"flex"},children:be.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===r?.title?be.jsx(ry,{item:e,showConnector:s.length>1?n:!!r?.description},`${e.title}-${e.complete}`):e&&be.jsx(ry,{item:e,showConnector:n},e.title)})),!n&&be.jsx(t.Box,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:be.jsx(Nr,{endIcon:be.jsx(ni,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:o,children:"Show more"})})]})})})},ly=({completed:e,total:t})=>be.jsx(ri,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),cy=(e,n)=>be.jsxs(t.Box,{display:"flex",gap:.5,children:[be.jsx(ri,{variation:"sm",component:"p",weight:"bold",children:e||0}),be.jsx(ri,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:Gv(n,e||0)})]}),dy=({loops:e,tests:n,drafts:o})=>be.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})=>be.jsx(uy,{"data-id":"pill-container",sx:n.mergeSx(e,{position:"absolute",zIndex:1}),children:be.jsx(ri,{variation:"xxs",component:"p",weight:"bold",children:t})}),hy=({title:e,maxLines:t,sx:o})=>be.jsx(ri,{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 be.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})=>be.jsxs(ri,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?V(e).format("DD MMM YYYY"):e]}),wy=({title:e,description:n,loopCount:o,testCount:i,draftCount:r,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>d?be.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:be.jsxs(xy,{component:"div",disableHoverStyle:!0,children:[be.jsx(gy,{"data-id":"image-container",children:be.jsx(Nl,{})}),be.jsxs(vy,{children:[be.jsx(t.Box,{"data-id":"title-container",height:32,children:be.jsx(Nl,{})}),be.jsx(Nl,{height:20}),be.jsx(Nl,{height:16,width:"60%"})]})]})}):be.jsx(my,{children:be.jsxs(xy,{component:"div",disableHoverStyle:!0,onClick:u,children:[be.jsxs(gy,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[c&&be.jsx(py,{body:"Demo",sx:{bottom:8,left:8}}),be.jsx(fy,{thumbnail:l,title:e,description:n})]}),be.jsxs(vy,{children:[be.jsxs(t.Box,{"data-id":"title-container",children:[be.jsx(hy,{title:e,maxLines:2}),be.jsx(t.Box,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:a})]}),be.jsx(dy,{loops:o,tests:i,drafts:r}),be.jsx(yy,{updatedDate:s,format:!0})]})]})}),by=({title:e,description:n,loopCount:o,testCount:i,draftCount:r,updatedAt:s,moreActions:a,thumbnail:l,isDemo:c,loading:d,onClick:u})=>{const p=t.useTheme();return d?be.jsx(my,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:be.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:[be.jsx(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:be.jsx(Nl,{})}),be.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:be.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[be.jsx(Nl,{width:"100%",height:20}),be.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[be.jsx(Nl,{height:20,width:"70%"}),be.jsx(Nl,{height:16,width:200})]})]})})]})}):be.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${p.custom.palette.stroke.light}`},children:be.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:[be.jsxs(gy,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[c&&be.jsx(py,{sx:{top:4,right:4},body:"Demo"}),be.jsx(fy,{thumbnail:l,title:e,description:n})]}),be.jsx(vy,{sx:{overflow:"hidden",pl:p.spacing(p.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:be.jsxs(t.Stack,{gap:p.spacing(p.custom.margin.xs),children:[be.jsx(hy,{title:e,maxLines:1}),be.jsxs(t.Stack,{direction:"row",gap:p.spacing(p.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[be.jsx(dy,{loops:o,tests:i,drafts:r}),be.jsx(yy,{updatedDate:s,format:!0,noWrap:!0})]})]})}),a&&be.jsx(t.Box,{onClick:e=>e.stopPropagation(),children:a})]})})},jy=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(),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 n?be.jsx(Nl,{width:"100%",height:36,sx:{borderRadius:`${o.spacing(o.custom.radius.lg)} ${o.spacing(o.custom.radius.lg)} 0 0`}}):be.jsxs(jy,{type:e,children:[be.jsx(ni,{name:i.icon,size:16}),be.jsx(ri,{variation:"sm",component:"p",sx:{px:o.spacing(o.custom.padding.xs)},children:i.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:i=0,loading:r,popperState:s})=>{const a=t.useTheme(),l=s||il({variant:"popper"});return r?be.jsx(Nl,{width:"30%",height:32,sx:{borderRadius:a.spacing(a.custom.radius.md)}}):be.jsxs(t.Box,{sx:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:a.custom.padding.md},children:[be.jsx(t.Box,{sx:{minWidth:0},children:be.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:be.jsx(Nr,{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?be.jsx(ni,{name:"chevron-up"}):be.jsx(ni,{name:"chevron-down"}),children:o}),menuItems:n})}),be.jsxs(t.Stack,{direction:"row",alignItems:"center",gap:a.spacing(a.custom.margin.md),sx:{flex:"0 0 auto",minWidth:0},children:[be.jsx(t.Box,{children:be.jsxs(ri,{monospaced:!0,component:"p",variation:"xs",color:a.custom.palette.text.secondary,sx:{"& strong":{color:a.custom.palette.text.primary,fontWeight:500}},children:[be.jsx("strong",{children:be.jsx(S,{value:(i||0)+1})})," ","of ",n?.length||0]})}),be.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},children:be.jsxs(t.Stack,{direction:"row",spacing:.5,children:[be.jsx(Ks,{icon:be.jsx(ni,{name:"arrow-left"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+1===1,onClick:()=>e(-1),sx:{"&.MuiIconButton-root.MuiButtonBase-root":{backgroundColor:a.custom.palette.purple[0],"&:hover:before":{backgroundColor:a.custom.palette.interaction.hover}}}}),be.jsx(Ks,{icon:be.jsx(ni,{name:"arrow-right"}),shape:"round",variation:"toggle",sizing:"lg",disabled:i+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(Gr)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),Ty=e.forwardRef((({onChange:n,onClear:o,onFocus:i,placeholder:r,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 be.jsx(By,{inputRef:d,placeholder:r,value:s,onChange:n,onFocus:i,startAdornment:be.jsx(ni,{name:"search",size:17,sx:p}),endAdornment:s?be.jsx(t.Box,{onClick:u,sx:{cursor:"pointer",display:"flex"},children:be.jsx(ni,{name:"close",size:17,sx:p})}):void 0,...a})})),Vy=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(ri)((({theme:e})=>({color:e.custom.palette.text.secondary}))),Ly=({buttons:e,subtitle:n,title:o,maxWidth:i})=>be.jsx(be.Fragment,{children:be.jsx(Vy,{sx:{justifyContent:"space-between"},children:be.jsx(t.Container,{maxWidth:i,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[be.jsx(Iy,{children:be.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&be.jsx(ri,{variation:"sm",component:"h2",weight:"bold",children:o}),n&&be.jsx(Fy,{variation:"sm",component:"p",children:n})]})}),e&&be.jsx(Iy,{children:e})]})})})})})}),Py=({title:e,subtitle:n,buttons:o,maxWidth:i})=>be.jsx(be.Fragment,{children:be.jsx(Vy,{sx:{justifyContent:"space-between"},children:be.jsx(t.Container,{maxWidth:i,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsxs(Iy,{sx:{justifyContent:"space-between",py:1},children:[be.jsx(Iy,{children:be.jsxs(Iy,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&be.jsx(Nl,{variant:"text",width:200,height:28}),n&&be.jsx(Nl,{variant:"text",width:140,height:17})]})}),be.jsx(Iy,{children:o&&be.jsxs(be.Fragment,{children:[be.jsx(Nl,{variant:"text",width:72,height:28}),be.jsx(Nl,{variant:"text",width:56,height:28})]})})]})})})})})});function Ay(e){return[0,e/2,e]}const Ey=465,Ry=t.styled(t.Box)((({theme:e})=>({height:24,width:24,margin:e.spacing(.5)}))),Hy=t.styled(t.Box)((({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",gap:e.spacing(.5),width:"100%",minWidth:450,minHeight:497,padding:16,boxSizing:"border-box",overflow:"hidden"}))),$y=t.styled(t.ListItemButton)((({theme:e})=>({padding:e.spacing(.5),paddingBottom:e.spacing(1),borderRadius:e.spacing(e.custom.radius.md),backgroundColor:e.custom.palette.interaction.none,display:"flex",minWidth:33,flexDirection:"column",alignItems:"center",justifyContent:"flex-end",height:Ey,"&:hover":{backgroundColor:e.custom.palette.interaction.hover,[`& .${t.formControlLabelClasses.root}`]:{[`& .${t.checkboxClasses.root}`]:{backgroundColor:e.custom.palette.blue[0]}}},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-selected":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled":{opacity:1}}))),Dy=t.styled(t.Box)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(.5),height:Ey,width:"100%"}))),Oy=t.styled(t.Box)((()=>({height:22,display:"flex",alignItems:"center"}))),_y=t.styled(t.Box)((({theme:e,value:t,disabled:n,checked:o})=>({transition:"background 200ms ease",width:"100%",height:t,backgroundColor:n||!o?e.custom.palette.neutral[100]:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm)}))),Wy=t.styled(t.Stack)((()=>({alignItems:"center",display:"flex",justifyContent:"flex-end"}))),Ny=t.styled(t.Box)((({theme:e})=>({height:24,marginTop:e.spacing(1),display:"flex",alignItems:"center"}))),Zy=t.styled(t.Stack,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((()=>({height:Ey,boxSizing:"border-box"}))),Uy=t.styled(t.Stack,{shouldForwardProp:e=>"hideLabel"!==e&&"hideCheckbox"!==e})((({theme:e,hideLabel:t,hideCheckbox:n})=>({height:Ey,display:"flex",justifyContent:"space-between",paddingRight:e.spacing(e.custom.margin.sm),paddingTop:t||n?e.spacing(.5):e.spacing(2),boxSizing:"border-box"}))),Gy=t.styled(t.Box)((({showGraphLines:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",height:18,width:32,textAlign:"right",position:"relative","&:after":{content:'""',position:"absolute",left:`calc(100% + ${t.spacing(2)})`,bottom:8,width:e?400:0,height:1,backgroundColor:"currentColor",opacity:.1}})));var qy=e.memo((({yAxisMax:n,rounding:o,tickInterval:i,loading:r,yAxisTickData:s,hideLabel:a,showGraphLines:l,hideCheckbox:c,disabled:d,slotProps:u})=>{const p=t.useTheme(),h=e.useMemo((()=>o?Math.ceil(n/o)*o:n),[n,o]),m=s||function(e,t){if(null==e)return Ay(t);if(e<0)throw new Error("axisTickInterval must be greater than or equal to 0");if(0===e)return Ay(t);const n=[];for(let o=0;o<=t;o+=e)n.push(o),o+e>t&&o!==t&&n.push(t);return n}(i,h).reverse(),{onChange:x,...g}=u?.root||{};return be.jsxs(Zy,{children:[be.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[a&&be.jsx(Ry,{}),c&&be.jsx(Ry,{})]}),be.jsx(Uy,{...g,hideLabel:a,hideCheckbox:c,children:m.map(((e,t)=>be.jsx(Gy,{showGraphLines:l,children:r?be.jsx(Nl,{width:20,height:20}):be.jsx(ri,{component:"p",variation:"xs",monospaced:!0,sx:{color:d?p.custom.palette.text.disabled:p.custom.palette.text.primary},children:e})},t)))}),be.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[!a&&be.jsx(Ry,{}),!c&&be.jsx(Ry,{})]})]})}));const Ky=({percentage:o,label:i,checked:r,toolTipContent:s,hideValue:a,hideLabel:l,hideCheckbox:c,disableTooltip:d,animateBar:u,slotProps:p,tickInterval:h,onChange:m,maxDataValue:x,disabled:g,loading:f,value:v,id:C,className:y})=>{t.useTheme();const[w,b]=e.useState(0),j=e.useRef(null);e.useEffect((()=>{const e=((e,t,n)=>{if(e<=0)return 1;const o=Math.ceil(n/t)*t;return Math.max(1,e/o*380)})(o,h,x),t=u?w:e,n=performance.now(),i=o=>{const r=o-n,s=Math.min(r/250,1);b(t+(e-t)*(s*(2-s))),s<1&&requestAnimationFrame(i)},r=requestAnimationFrame(i);return()=>cancelAnimationFrame(r)}),[v]);const k=e.useCallback((()=>{!g&&m&&m(C,!r)}),[g,m,r]);return be.jsx(oi,{message:s||null,disableHoverListener:d||!s,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{height:"fill-available",width:1,...p?.tooltip?.slotProps?.wrapper?.sx}}},children:be.jsxs($y,{disabled:g,...p?.barWrapper,id:C,className:y,onClick:k,children:[!a&&be.jsx(Oy,{...p?.value,children:f?be.jsx(Nl,{width:20,height:18}):be.jsx(ri,{variation:"sm",component:"p",fontWeight:500,monospaced:!0,sx:{color:e=>g||!r?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:Math.round(o)})}),f?be.jsx(Nl,{width:"fill-available",height:w}):be.jsx(_y,{checked:r,value:w,disabled:g,...p?.bar}),be.jsxs(Wy,{children:[!l&&be.jsx(Ny,{...p?.label,children:f?be.jsx(Nl,{width:20,height:20}):be.jsx(ri,{variation:"sm",component:"p",monospaced:!0,sx:{color:e=>g||!r?e.custom.palette.text.disabled:e.custom.palette.text.primary},children:i})}),!c&&be.jsx(be.Fragment,{children:f?be.jsx(Nl,{width:24,height:24,sx:{borderRadius:.5}}):be.jsx(Zr,{id:`${C}-checkbox`,variant:"secondary",checked:!g&&r,disabled:g,checkboxLabel:void 0,inputRef:j,onChange:k,...p?.checkbox,sx:n.mergeSx({mr:0,mt:1},p?.checkbox?.sx)})})]})]})})},Yy=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),boxShadow:t.custom.elevation.raised}))),Xy=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],i=document.createElement("style");i.type="text/css","top"===n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 Qy=({animated:e,label:n,primaryText:o,secondaryText:i})=>{const r=o.match(/\d{1,2}:\d{2}/),s=o.split(":"),a=!isNaN(Number(o)),l=i.includes("%")&&!isNaN(Number(i.replace("%","")));return be.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:[be.jsx(ri,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:n}),be.jsx(ri,{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:be.jsx(be.Fragment,{children:r||a?be.jsx(be.Fragment,{children:r?be.jsxs(be.Fragment,{children:[be.jsx(S,{value:Number(s[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",be.jsx(S,{value:Number(s[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):be.jsx(S,{value:Number(o),animated:e})}):be.jsx(be.Fragment,{children:o})})}),be.jsx(ri,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},monospaced:!0,children:l?be.jsxs(be.Fragment,{children:[be.jsx(S,{value:i.replace("%",""),animated:e}),"%"]}):i})]})},Jy=({animated:e,iconName:o,label:i,value:r,slotProps:s})=>be.jsxs(t.Box,{display:"flex",alignItems:"center",gap:.5,children:[be.jsx(ni,{name:o,...s?.icon,sx:n.mergeSx({color:e=>e.custom.palette.icon.secondary},s?.icon?.sx)}),be.jsxs(ri,{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:[be.jsx(S,{value:r,animated:e})," ",be.jsx("span",{children:i})]})]}),ew=e.forwardRef((({colorScheme:e="purple",variation:o,title:i,description:r,loading:s,onShowMoreClick:a,menuItems:l,active:c,...d},u)=>{const p=t.useTheme(),h="raised";return be.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:[be.jsxs(t.Stack,{direction:"row",gap:1,children:[be.jsxs(t.Stack,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[be.jsx(be.Fragment,{children:s?be.jsx(Nl,{sx:{width:17,height:16}}):be.jsx(t.Box,{sx:{height:"22px",display:"flex",placeItems:"center"},children:be.jsx(Wc,{colorScheme:e,disabled:o&&"dimmed"===o})})}),s?be.jsx(Nl,{sx:{marginTop:"-1px"}}):be.jsx(ri,{component:"p",variation:"md",weight:"bold",sx:{color:"dimmed"===o?p.custom.palette.text.disabled:p.custom.palette.text.primary},children:i})]}),!s&&Boolean(l?.length)&&be.jsx(kl,{trigger:be.jsx(Ks,{icon:be.jsx(ni,{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?be.jsx(t.Box,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>be.jsx(Nl,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):be.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:r})]})})),tw=(e,t=1e5)=>Math.round(e*t)/t;var nw=e.memo((({playing:e,ended:t,seeking:n,buffering:o,handleAction:i})=>be.jsx(Ks,{disabled:o,loading:o,onClick:()=>i(),shape:"round",sizing:"xl",variation:"outlined",icon:be.jsx(ni,{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 ow=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%60),i=o<10?"0"+o:o,r=t>0&&n<10?"0"+n:n;return t>0?`${t}:${r}:${i}`:`${r}:${i}`},iw=(e,t)=>t/e*100,rw=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}))),sw=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]}}))),aw=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 lw=e.memo((({startTime:t,endTime:n,currentTime:o,markers:i=[],markerIndicator:r=!0,markerIndicatorSize:s=3,markerIndicatorMode:a,marker:l})=>{const c=e.useMemo((()=>iw(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,i=(o-t)/e;let r;r="time"===a?s/e*100:100*s;const l=r/2,d=100*i,u=100-100*i,p=Math.min(l,d);return{width:p+Math.min(l,u),left:c-p}}),[o,t,n,c,a,s]),h=e.useMemo((()=>i.map((({timeStamp:e,id:i,meta:r})=>({id:i,timeStamp:e,markerPosition:iw(n-t,e),isActive:Math.abs(e-o+t)<=d/2+1e-10,meta:r})))),[i,n,t,o,d]),m=l||aw;return be.jsxs(rw,{children:[r&&be.jsx(sw,{width:u,left:p}),h.map((({id:e,markerPosition:t,isActive:n,meta:o})=>be.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...o&&{meta:o}},e)))]})}));const cw=t.styled(t.Slider)((({theme:e,type:n,muted:o,value:r})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${t.sliderClasses.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${i.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${i.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${i.alpha(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===n?{height:100,color:e.custom.palette.icon.primary,...(o||0===r)&&{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:`${i.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${t.sliderClasses.active}`]:{width:8,height:8,boxShadow:`${i.alpha(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${t.sliderClasses.focusVisible}`]:{boxShadow:`${i.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:i.alpha(e.custom.palette.neutral[400],.5),opacity:1},[`.${t.sliderClasses.track}`]:{border:0,boxShadow:"none",height:4}}})));var dw=e.memo(cw);const uw=t.styled(t.Stack)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),pw=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:i,volumeControlsType:r})=>{const s=be.jsx(Ks,{icon:(()=>{switch(!0){case 0===i||n:return be.jsx(o.VolumeOff,{});case i<.5:return be.jsx(L,{});default:return be.jsx(o.VolumeUp,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return be.jsx(uw,{children:"mute"===r?s:be.jsx(vl,{bindOn:["hover"],trigger:s,popperProps:{placement:"top",style:{zIndex:40}},children:be.jsx(dw,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(iw(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},hw=t.styled(t.Stack)({flex:1,position:"relative"}),mw=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)}))),xw=t.styled(ri)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),gw=t.styled(t.Box)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),fw=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 vw=e.memo((({startTime:t,currentTime:n,endTime:o,playing:i,markerIndicator:r,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(i),b=e.useCallback(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),j=e.useCallback(((e,t)=>{e.stopPropagation(),l?.(y),y&&w(!1)}),[y,l]),k=e.useCallback((e=>{e.stopPropagation(),i&&w(i),c?.(i)}),[i,c]),S=e.useCallback((()=>{i&&w(i),c?.(i)}),[i,c]),M=e.useCallback((()=>{l?.(y),y&&w(!1)}),[y,l]);return be.jsxs(hw,{children:[be.jsxs(mw,{direction:"row",children:[be.jsxs(xw,{component:"p",variation:"md",children:[ow(n-t)," / ",ow(o-t)]}),C&&be.jsx(pw,{volume:m,muted:x,handleVolumeMute:g,handleVolumeChange:f,volumeControlsType:v})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>be.jsx(fw,{left:e,width:t},n))),be.jsxs(gw,{children:[be.jsx(dw,{step:.05,value:n,max:o,min:t,onChangeCommitted:j,onMouseDown:k,onChange:b,onTouchStart:S,onTouchEnd:M}),d&&d?.length>0&&be.jsx(lw,{markerIndicatorMode:p,markerIndicatorSize:h,markerIndicator:r,markers:d,marker:u,startTime:t,currentTime:n,endTime:o})]})]})}));const Cw=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"}))),yw=t.styled(t.Stack)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),ww=e.forwardRef((({id:t,videoElement:n,initialEndTime:o=0,initialCurrentTime:i=0,initialMuted:r,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:b}={},videoSeekTime:j},k)=>{const[S,M]=e.useState(!1),[z,B]=e.useState([]),T={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...l},[{seeking:V,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,muted:$,startTime:D,firstPlay:O,firstEnded:_},W]=e.useState({startTime:tw(T.normaliseTime?i:0),endTime:tw(T.normaliseTime?o:n.duration),currentTime:tw(i??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1,volume:s||1,muted:r||!1,buffering:!1});e.useEffect((()=>{if(n.muted=$,n.volume=H,T.normaliseTime&&(void 0===o||void 0===i))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:tw(T.normaliseTime?i:0),endTime:tw(T.normaliseTime?o:n.duration),currentTime:tw(i??0)}))),n.currentTime=tw(i??0)}),[i,o]);const N=e.useCallback((()=>{W((e=>({...e,playing:!1,ended:!0,...!_&&{firstEnded:!0}}))),d&&d(),!_&&w&&w()}),[_]);e.useEffect((()=>{if(!n||null==j)return;(async()=>{const e=!n.paused,t=j===I;W((e=>({...e,playing:!1,currentTime:tw(j)}))),await new Promise((e=>{const t=()=>{n.removeEventListener("seeked",t),e()};n.addEventListener("seeked",t),setTimeout(e,500)})),W((e=>({...e,currentTime:tw(j)}))),await new Promise((e=>setTimeout(e,50))),W((n=>({...n,playing:e,currentTime:tw(t?j-.001:j+.001)})))})().catch((e=>{console.error("Error seeking video:",e)}))}),[j,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=tw(n.currentTime)>=I&&I!==tw(n.duration)&&!R,t=tw(n.currentTime)>=I&&I===tw(n.duration)&&!R&&!P;(e||t)&&(n.pause(),n.dispatchEvent(new Event("ended"))),W((e=>({...e,currentTime:tw(n.currentTime)}))),x&&x(tw(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),i=n.buffered.end(t);if(i>=D&&o<=I){const t=Math.max(o,D),n=Math.min(i,I);e.push({start:t-D,end:n-D,startPercent:(t-D)/(I-D)*100,widthPercent:(n-t)/(I-D)*100})}}B(e)}),[V,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:tw(T.normaliseTime?i:0),endTime:tw(T.normaliseTime?o:n.duration),currentTime:tw(i??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),b&&b()}),[P,L,D,I,R,i,o]),ee=async()=>{await n.play()},te=()=>{n.pause()},ne=e.useCallback((e=>{n.currentTime=tw(e),W((t=>({...t,currentTime:tw(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]),ie=e.useCallback((e=>{e&&n.pause(),W((e=>({...e,seeking:!0}))),m&&m()}),[R]),re=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,V]);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)=>re(t,e,n),videoState:{seeking:V,endTime:I,currentTime:L,playing:P,buffering:A,loaded:E,ended:R,volume:H,firstPlay:O,firstEnded:_,muted:$,startTime:D}}))),be.jsxs(Cw,{variation:"raised",borderradius:"xl",id:t,children:[be.jsxs(yw,{...T?.rtl&&{dir:"rtl"},children:[be.jsx(nw,{seeking:V,playing:P,ended:R,buffering:A,handleAction:async()=>{R?await Q(!0):P?te():await ee()}}),be.jsx(vw,{handleSeeking:ne,handleSeekEnd:re,handleSeekStart:ie,ended:R,marker:c?.marker,markers:a,markerIndicatorMode:T.markerIndicatorMode,markerIndicatorSize:T.markerIndicatorSize,markerIndicator:T.markerIndicator,startTime:T.normaliseTime?D:0,currentTime:L,endTime:I,playing:P,bufferRanges:z,buffering:A,volume:H,muted:$,volumeControls:T.volumeControls,volumeControlsType:T.volumeControlsType,handleVolumeMute:()=>{n.muted=!$},handleVolumeChange:e=>{n.volume=e,$&&(n.muted=!1)}})]}),c?.bottom]})}));var bw=e.memo(ww);const jw="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",kw=(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:hi[n]},palette:{mode:e,primary:{main:W[500]}},spacing:re,shape:{borderRadius:re,hotspot:{default:12,active:24}},breakpoints:{values:oe},typography:{fontFamily:`"${xe.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:mi(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(${jw}${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(${jw}${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(${jw}${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(${jw}${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*re}px ${e.padding.md*re}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 Sw="production"===process.env.NODE_ENV,Mw="Invariant failed";const zw=e.createContext(null),Bw=(n="light",o="lg",i="ltr")=>{const{width:r}=vs(),[s,a]=e.useState(n),[l,c]=e.useState(o),[d,u]=e.useState(i),[p,h]=e.useState(!1),[m,x]=e.useState("");e.useEffect((()=>{d&&document.documentElement.setAttribute("dir",d)}),[d]);e.useEffect((()=>{e.startTransition((()=>{c(r&&r<oe.lg?"sm":"lg")}))}),[r]),e.useEffect((()=>{e.startTransition((()=>{u(i)}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{a(n)}))}),[n]);const g=e.useMemo((()=>kw(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 Tw=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 Vw="undefined"!=typeof document,Iw=function(e,t,n){for(var o=0,i=0;o=i,i=P.peek(),38===o&&12===i&&(t[n]=1),!P.token(i);)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]+=Iw(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))},Lw=new WeakMap,Pw=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)||Lw.get(n))&&!o){Lw.set(e,!0);for(var i=[],r=Fw(t,i),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},Aw=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ew(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")?Ew(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 Rw,Hw,$w=Vw?void 0:(Rw=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},Hw=new WeakMap,function(e){if(Hw.has(e))return Hw.get(e);var t=Rw(e);return Hw.set(e,t),t}),Dw=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case P.DECLARATION:e.return=Ew(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""}))}}],Ow=function(e){var t=e.key;if(Vw&&"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,i,r=e.stylisPlugins||Dw,s={},a=[];Vw&&(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=[Pw,Aw];if($w){var c=[P.stringify],d=P.middleware(l.concat(r,c)),u=$w(r)(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]};i=function(e,t,n,o){var i=t.name,r=p(e,t);return void 0===g.compat?(o&&(g.inserted[i]=!0),r):o?void(g.inserted[i]=r):r}}else{var h,m=[P.stringify,P.rulesheet((function(e){h.insert(e)}))],x=P.middleware(l.concat(r,m));i=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 Tw({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(a),g};const _w=()=>be.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),Ww=Ow({key:"muirtl",stylisPlugins:[P.prefixer,E]}),Nw=Ow({key:"mui"});exports.AIInsight=({comments:n,themeDescription:o,slotProps:i,suggestions:r,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 be.jsxs(jc,{slotProps:{childrenContainer:{display:"flex",flexDirection:"column",gap:d.spacing(d.custom.padding.md)}},withLockUp:!0,...i?.aiContentContainer,children:[be.jsx(ri,{component:"p",variation:"sm",children:o}),!!n?.length&&be.jsxs(t.Box,{children:[be.jsx(ri,{component:"p",variation:"sm",weight:"bold",sx:{pb:d.spacing(d.custom.padding.sm)},children:"Key comments"}),be.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}),be.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)}})]}),!!r?.length&&be.jsxs(t.Box,{children:[be.jsx(ri,{component:"p",variation:"sm",weight:"bold",children:"Ideas to consider"}),be.jsx(t.List,{sx:{listStyleType:"disc",padding:0,pl:2},children:r.map(((e,t)=>be.jsx(b,{sx:{display:"list-item",padding:0},children:be.jsx(j,{disableTypography:!0,primary:be.jsx(ri,{component:"p",variation:"sm",children:e})})},`${t}-suggestion`)))})]})]})},exports.AISummary=Sc,exports.AIWrittenByLockUp=wc,exports.Accordion=({heading:n,items:o})=>{const{custom:i}=t.useTheme(),[r,s]=e.useState("");return be.jsx(t.Container,{sx:{backgroundColor:i.palette.surface.default,color:i.palette.text.primary},children:be.jsxs(t.Grid2,{container:!0,sx:{alignItems:"center",display:"flex",justifyContent:"center",py:{sm:4,lg:6},gap:2},children:[be.jsx(t.Grid2,{size:[12,12,12,8],children:be.jsx(ri,{variation:"xl",component:"h2",fontWeight:500,sx:{textAlign:"center"},children:n})}),be.jsx(t.Grid2,{size:[12,12,12,8],children:o?.map((e=>{return be.jsxs(lr,{expanded:r===e.heading,onChange:(t=e.heading,(e,n)=>{s(!!n&&t)}),children:[be.jsx(cr,{"aria-controls":`${e.heading}-content`,id:`${e.heading}-header`,heading:e.heading,children:be.jsx(ri,{variation:"lg",component:"p",fontWeight:500,children:e.heading})}),be.jsx(dr,{children:"string"==typeof e.body?be.jsx(ri,{variation:"lg",component:"p",sx:{whiteSpace:"break-spaces"},children:e.body}):e.body})]},e.heading);var t}))})]})})},exports.AiContentContainer=jc,exports.AnnualController=({body:e,currency:n,hideCurrency:o=!1,changeCurrencyEvent:i=()=>{},frequency:r,heading:s,setCurrency:a=()=>{},setFrequency:l=()=>{},togglePayAnnuallyEvent:c=()=>{},selections:d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}]})=>{const u=t.useTheme(),p=Fi();return be.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:[be.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:[be.jsx(t.Box,{sx:{pr:e=>e.spacing(e.custom.padding.md),display:"flex"},children:be.jsx(ar,{onChange:()=>(c(),void l("monthly"===r?"annually":"monthly")),role:"switch","aria-checked":"annually"===r,"aria-label":"Switch between monthly and annual billing",checked:"annually"===r})}),be.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[be.jsx(ri,{variation:"md",component:"p",children:s}),be.jsx(ri,{variation:"sm",component:"p",sx:{color:u.custom.palette.text.secondary},children:e})]})]}),!o&&be.jsx(or,{name:"currency",onChange:e=>{return t=e.target.value,i(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:i,menuItems:r,slotProps:s,...a})=>be.jsx(Lc,{loading:i,size:e,...a,children:i?be.jsx(Nl,{sx:{borderRadius:0}}):be.jsxs(be.Fragment,{children:[be.jsx(Mc,{slotProps:s,menuItems:r}),be.jsx(Ic,{thumbnail:t,size:e}),be.jsx(Bc,{cover:n,mediaType:o})]})}),exports.AuthContainerSurface=({children:e,headContent:o,sx:i,...r})=>{const s=t.useTheme();return be.jsxs(gl,{...r,sx:n.mergeSx(i,{mx:[s.spacing(s.custom.margin.md),0],width:1,maxWidth:[512]}),children:[o&&be.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}),be.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 i=t.useTheme();return be.jsxs(t.Stack,{gap:i.spacing(i.custom.margin.md),alignItems:"center",mb:i.spacing(i.custom.margin.lg),children:[!1===e?null:e||be.jsx(ni,{name:"brand-wordmark",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),be.jsxs(t.Stack,{gap:i.spacing(i.custom.margin.md),children:[n&&be.jsx(ri,{variation:"sm",component:"h1",align:"center",weight:"bold",children:n}),function(){if(o)return"string"==typeof o?be.jsx(ri,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},exports.Avatar=ur,exports.AvatarGroup=({variation:e="primary",...n})=>{if("primary"===e)return be.jsx(t.AvatarGroup,{...n})},exports.Badge=({children:e})=>be.jsx(pr,{children:be.jsx(hr,{variation:"xs",component:"p",type:"button",weight:"bold",children:e})}),exports.BrandBadge=({color:e,name:o,size:i,sx:r,...s})=>{const a=t.useTheme(),l=i||jr.xl,c=i||jr.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},r),...s};switch(o){case"emotion-meh":return be.jsx(gr,{...d});case"emotion-good":return be.jsx(mr,{...d});case"emotion-great":return be.jsx(xr,{...d});case"understanding-unknown":return be.jsx(br,{...d});case"understanding-low":return be.jsx(wr,{...d});case"understanding-good":return be.jsx(Cr,{...d});case"understanding-great":return be.jsx(yr,{...d});case"property-secure":return be.jsx(vr,{...d});case"property-private":return be.jsx(fr,{...d});default:return be.jsx(be.Fragment,{})}},exports.Breadcrumb=Vr,exports.BulletGraphic=({name:e,size:t,sx:o,...i})=>{const r=t||Dr.xl,s=t||Dr.xl,a={sx:n.mergeSx({height:r,width:s,fill:"none"},o),...i};switch(e){case"ai":return be.jsx(Ir,{...a});case"alert":return be.jsx(Fr,{...a});case"celebrate-collaborate":return be.jsx(Lr,{...a});case"comment":return be.jsx(Pr,{...a});case"many-media":return be.jsx(Ar,{...a});case"qual-and-quant":return be.jsx(Rr,{...a});case"variant-test":return be.jsx(Hr,{...a});case"worldwide":return be.jsx($r,{...a});default:return be.jsx(Er,{...a})}},exports.Button=Nr,exports.ButtonBase=_r,exports.Checkbox=Zr,exports.CheckboxGroup=qr,exports.ClipboardCopyingOverlay=Pc,exports.ColorBackgroundContainer=Kr,exports.CommentCard=Oc,exports.CreatableAutocomplete=ns,exports.CustomField=os,exports.DEFAULT_MAX_INPUT_LENGTH=ci,exports.DataPointInfo=qc,exports.DemographicSelectionSection=({demographicOptionLabel:e,demographicSelectionLabels:t})=>be.jsxs(Kc,{children:[be.jsx(ri,{component:"p",weight:"bold",variation:"xs",sx:{maxWidth:"128px",color:e=>e.custom.palette.text.primary,paddingTop:"1px"},children:e}),be.jsx(Yc,{children:t.map(((e,t)=>be.jsx(Dl,{label:e,sx:{maxWidth:"256px"}},`${t}-${e}`)))})]}),exports.Differential=ms,exports.DropdownMenu=({open:e,anchorEl:n,handleClick:o,handleClose:i,items:r,...s})=>be.jsx(be.Fragment,{children:be.jsx(xs,{anchorEl:n,open:e,onClose:i,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...s,children:r?.map(((e,n)=>be.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&be.jsx(t.Box,{mr:1,children:e.icon}),e.label]},n)))})}),exports.EmojiListItem=({disabled:e,loading:n,active:o,onClick:i,icon:r,label:s,slotProps:a,...l})=>{const c=t.useTheme();return be.jsx(Xc,{borderradius:"md",variation:"default",active:!e&&o,disabled:e,onClick:e?void 0:i,sx:{px:c.custom.padding.sm,py:c.custom.padding.xs,...a?.surface?.sx},...a?.surface,...l,children:be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-content-container",children:[r&&be.jsx(be.Fragment,{children:n?be.jsx(Nl,{variant:"text",width:24,sx:{borderRadius:"50%"}}):be.jsx(gs,{disabled:e,checked:!0,...a?.icon,children:r})}),s&&be.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?be.jsx(Nl,{variant:"text",width:120}):be.jsx(ri,{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:i,primaryAction:r,icon:s,label:a,slotProps:l,...c})=>{const d=t.useTheme();return be.jsxs(Qc,{borderradius:"md",variation:"default",disabled:n,sx:{p:d.custom.padding.sm,...l?.surface?.sx},...l?.surface,...c,children:[e&&be.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},className:"emoji-list-item-drag-handle-container",children:be.jsx(Ks,{disabled:n,sizing:"xs",icon:be.jsx(ni,{name:"drag-handle",color:d.custom.palette.icon.secondary}),...l?.dragHandle})}),be.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&&be.jsx(be.Fragment,{children:o?be.jsx(Nl,{width:24,height:24,sx:{borderRadius:"50%"}}):be.jsx(gs,{disabled:n,checked:!0,...l?.icon,children:s})}),a&&be.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?be.jsx(Nl,{width:100,height:24}):be.jsx(ri,{component:"p",variation:"md",sx:{color:n?d.custom.palette.text.disabled:d.custom.palette.text.primary},...l?.label,children:a})})]}),(r||i)&&be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:d.spacing(d.custom.margin.xs)},className:"emoji-list-item-actions-container",children:[r&&be.jsx(be.Fragment,{children:o?be.jsx(Nl,{width:24,height:24}):r}),i&&be.jsx(be.Fragment,{children:o?be.jsx(Nl,{width:24,height:24}):be.jsx(Ks,{sizing:"xs",disabled:n,icon:be.jsx(ni,{name:"delete",color:d.custom.palette.icon.secondary}),onClick:e=>{e.stopPropagation(),i&&i()},...l?.deleteAction})})]})]})},exports.EmojiWrapper=gs,exports.EmptyStateCard=({onClickCta:e,ctaText:o="Create a new test",title:i="This Loop has no tests",body:r="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 be.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:be.jsxs(t.Stack,{gap:2,direction:"row",alignItems:"start",children:[!a&&be.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:be.jsx(ni,{name:l,size:24})}),be.jsxs(t.Stack,{gap:2,alignItems:"start",children:[be.jsxs(t.Stack,{gap:u.spacing(u.custom.padding.sm),className:"copy-stack",children:[be.jsx(ri,{component:"p",variation:"lg",weight:"bold",sx:{color:u.custom.palette.purple[800]},...c?.title,children:i}),be.jsx(ri,{component:"p",variation:"md",sx:{color:u.custom.palette.purple[800]},...c?.body,children:r})]}),!s&&be.jsx(Nr,{onClick:e,...c?.button,children:o})]})]})})},exports.ExpandableTypographyClamp=ws,exports.ExtendedTestStatus=({animated:e=!0,status:n,segments:o,loading:i})=>{const r=t.useTheme(),{number:s,totalNumber:a}=o[0],l=a?Number(s)/a*100:void 0;return i?be.jsx(Nl,{width:"100%",height:73,sx:{borderRadius:r.spacing(r.custom.radius.lg)}}):be.jsxs(ad,{status:n,children:[be.jsxs(t.Stack,{direction:"row",gap:r.custom.padding.sm,alignItems:"center",sx:{flex:"1 1 auto",minWidth:"176px"},children:[be.jsx(ni,{name:td(n),size:24}),be.jsxs(t.Stack,{sx:{width:"100%",gap:r.spacing(r.custom.padding.sm)},children:[be.jsx(ri,{component:"p",variation:"md",sx:{color:nd(r,n,1e3)},children:ld(n)}),be.jsx(_l,{variation:"determinate",value:l,sx:{[`&.${t.linearProgressClasses.root}`]:{background:od(r,n,100),height:"8px",[`& .${t.linearProgressClasses.bar}`]:{backgroundColor:od(r,n)}}}})]})]}),be.jsx(t.Stack,{direction:"row",gap:r.custom.margin.lg,alignItems:"center",sx:{px:r.custom.padding.sm,flex:"0 0 auto"},children:o.map(((t,o)=>be.jsx(sd,{animated:e,segment:t,status:n},o)))})]})},exports.FilterCount=({animated:e=!0,buttonText:n,end:o,filteredCount:i,loading:r,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 i&&i!==l,m=n&&"number"==typeof i&&i!==l;return be.jsx(cd,{children:r?be.jsxs(be.Fragment,{children:[be.jsxs(dd,{children:[a?be.jsx(Nl,{width:50,height:18}):null,be.jsx(Nl,{width:30,height:18}),o?be.jsx(Nl,{width:50,height:18}):null]}),m?be.jsx(Nl,{width:60,height:18}):null]}):be.jsxs(be.Fragment,{children:[be.jsxs(dd,{children:[a?be.jsx(ri,{...d,...u,children:a}):null,h?be.jsxs(be.Fragment,{children:[be.jsx(ri,{...d,weight:"bold",monospaced:!0,children:be.jsx(S,{value:i,animated:e})}),be.jsx(ri,{...d,...u,children:"/"})]}):null,be.jsx(ri,{...d,...u,monospaced:!0,children:be.jsx(S,{value:l,animated:e})}),o?be.jsx(ri,{...d,...u,children:o}):null]}),m?be.jsx(ri,{...p,children:n}):null]})})},exports.FilterGroupAccordion=({heading:e,showIndicator:o,slotProps:i,children:r})=>{const s=t.useTheme();return be.jsxs(t.Accordion,{disableGutters:!0,elevation:0,square:!0,...i?.accordion,sx:n.mergeSx({"&::before":{content:"none"}},i?.accordion?.sx),children:[be.jsxs(pd,{expandIcon:be.jsx(ni,{name:"chevron-down"}),...i?.summary,children:[be.jsx(ri,{component:"p",variation:"md",color:"textPrimary",children:e}),o&&be.jsx(hd,{})]}),be.jsx(t.AccordionDetails,{...i?.details,sx:n.mergeSx({padding:0,paddingTop:s.spacing(.5)},i?.details?.sx),children:r})]})},exports.FilterPyramidGraph=({label:o,left:i,center:r,right:s,maxValue:a,maxCount:l})=>{const c=t.useTheme(),[d,u]=e.useState(!1),{totalBarWidth:p,filteredBarWidth:h,barBackground:m}=vv(i,r,"left",a,l),{totalBarWidth:x,filteredBarWidth:g,barBackground:f}=vv(s,r,"right",a,l);return be.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:[be.jsxs(t.Grid2,{size:"grow",position:"relative",overflow:"hidden",children:[be.jsx(gv,{sx:{width:`${p}%`,right:0}}),be.jsx(fv,{initial:{width:0},animate:{width:`${h}%`},transition:{duration:.3,ease:"easeOut"},style:{background:m,transformOrigin:"right",right:0}}),be.jsx(zd,{children:i.label?.length&&d&&be.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:be.jsx(ri,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:i.label})})})]}),be.jsx(t.Grid2,{size:2,sx:{maxWidth:"48px"},children:be.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:be.jsx(ri,{component:"p",variation:"xxs",sx:{color:d?c.custom.palette.text.primaryInverted:c.custom.palette.text.primary,textAlign:"center"},children:o})})}),be.jsxs(t.Grid2,{size:"grow",sx:{position:"relative",overflow:"hidden"},children:[be.jsx(gv,{sx:{width:`${x}%`}}),be.jsx(fv,{initial:{width:0},animate:{width:`${g}%`},transition:{duration:.3,ease:"easeOut"},style:{background:f,transformOrigin:"left"}}),be.jsx(zd,{children:s.label?.length&&d&&be.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:be.jsx(ri,{component:"p",variation:"xxs",sx:{color:c.custom.palette.text.primary},children:s.label})})})]})]})},exports.FilterRow=({label:e,selectedCount:n,checked:o=!1,onChange:i,slotProps:r,disabled:s})=>{const a=t.useTheme();return be.jsx(Cv,{dense:!0,sx:{display:"flex",px:a.spacing(a.custom.padding.sm),"&.Mui-disabled":{background:"transparent"}},onClick:()=>{s||i?.(!o)},disabled:s,children:be.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:a.custom.padding.md,width:"100%",children:[be.jsx(Zr,{variant:"secondary",value:o,disabled:s,...r?.checkboxProps,sx:{"&.Mui-disabled > span":{borderColor:`${a.custom.palette.stroke.disabled} !important`},[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}}}),be.jsx(ri,{component:"p",variation:"md",sx:{color:s?a.custom.palette.text.disabled:a.custom.palette.text.primary},children:e}),be.jsx(ri,{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:be.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:i="Clear filters"})=>be.jsx(gl,{variation:"sunken",borderradius:"lg",sx:{flexGrow:1,maxHeight:"max-content"},children:be.jsxs(ud,{children:[be.jsxs(t.Stack,{sx:{gap:e=>e.spacing(e.custom.padding.sm),alignItems:"center",[`& .${t.typographyClasses.root}`]:{textAlign:"center"}},children:[be.jsx(ri,{component:"p",weight:"bold",variation:"lg",children:n}),be.jsx(ri,{component:"p",variation:"md",sx:{color:e=>e.custom.palette.text.secondary},children:o})]}),be.jsx(Nr,{variation:"outlined",sizing:"sm",onClick:e,children:i})]})}),exports.Flag=js,exports.FormControlLabel=ir,exports.FormGenerator=Ra,exports.GraphBar=({id:o,label:i,value:r,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),T=e.useRef(null),V=y.icon;e.useEffect((()=>{const e=k,t=s||r,n=performance.now(),o=i=>{const r=i-n,s=Math.min(r/250,1);B(e+(t-e)*(s*(2-s))),s<1&&requestAnimationFrame(o)},i=requestAnimationFrame(o);return()=>cancelAnimationFrame(i)}),[s,r]);const I=e.useCallback((()=>{!g&&f&&f(!x)}),[g,f,x]),F=p&&h,L=null!=r,P=null!=a;return be.jsx(b,{disablePadding:!0,sx:{mb:w.spacing(w.custom.margin.xs)},children:be.jsx(oi,{message:l||i,followCursor:!0,placement:"bottom-start",slotProps:{wrapper:{sx:{width:"100%"}}},...y.tooltip,children:be.jsxs(Cv,{id:o,role:void 0,onClick:I,dense:!0,disabled:g,sx:{display:"flex"},children:[!d&&c&&be.jsx(z,{...V,sx:n.mergeSx({minWidth:0,mr:w.custom.margin.xs,color:w.custom.palette.text.primary},V?.sx),children:c}),be.jsxs(t.Stack,{direction:"row",width:1,gap:C?w.custom.margin.sm:w.custom.margin.md,alignItems:"center",children:[be.jsxs(M,{sx:{display:"flex",position:"relative",width:"fill-available"},children:[!g&&be.jsx(wv,{variant:"determinate",value:k,checked:x,...y.graphBar}),be.jsx(j,{disableTypography:!0,primary:be.jsx(ri,{...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:i}),sx:{my:0,position:"absolute",display:"flex",alignItems:"center",inset:0,ml:1}})]}),!F&&be.jsxs(M,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:w.custom.margin.xs,children:[!p&&be.jsx(bv,{weight:"bold",color:w.palette.text.primary,disabled:g,checked:x,...y?.unitText1,children:L?be.jsxs(be.Fragment,{children:[be.jsx(S,{value:r,animated:m}),""+(v?"%":"")]}):"-"}),!h&&be.jsx(bv,{color:w.palette.text.secondary,disabled:g,checked:x,...y?.unitText2,children:P?be.jsx(S,{value:a,animated:m}):"-"})]}),!u&&be.jsx(M,{display:"flex",justifyContent:"space-between",alignItems:"center",children:be.jsx(Zr,{id:`${o}-checkbox`,variant:"secondary",checked:!g&&x,disabled:g,...y.checkbox,checkboxLabel:void 0,inputRef:T,sx:n.mergeSx(y.checkbox?.sx,{[`&.${t.formControlLabelClasses.root}`]:{marginRight:0}})})})]})]})})})},exports.GridOverlay=({breakpoint:n=!0,maxWidth:o=!1,position:i="fixed",visible:r=!1})=>{const s=Array.from({length:6},((e,t)=>t)),a=Fi(),[l,c]=e.useState(r);return Cs("cmd+g",(e=>{e.preventDefault(),console.log("Command+G keyboard shortcut triggered"),c(!l)})),l&&be.jsxs(Ha,{position:i,children:[be.jsx($a,{maxWidth:!!o&&"xl",children:be.jsx(Da,{children:be.jsxs(t.Grid2,{container:!0,spacing:2,sx:{flex:1},children:[s.map((e=>be.jsx(t.Grid2,{sx:{display:{sm:"none",md:"block"}},size:"grow",children:be.jsx(Oa,{})},`grid-1-${e}`))),s.map((e=>be.jsx(t.Grid2,{sx:{display:{sm:"block"}},size:"grow",children:be.jsx(Oa,{})},`grid-2-${e}`)))]})})}),n&&be.jsx(_a,{children:be.jsx(ri,{variation:"md",component:"p",weight:"bold",children:a})})]})},exports.Header=({backAction:e,title:o,showEditTitleOnlyOnHover:i=!0,breadcrumbLinks:r,buttons:s,controlBar:a,sx:l,slotProps:c,loading:d})=>{const u={...c,container:{maxWidth:!1,...c?.container}};return be.jsxs(be.Fragment,{children:[be.jsx(jv,{sx:n.mergeSx({justifyContent:"space-between",position:"sticky",top:"0",zIndex:999},l),children:be.jsx(t.Container,{...u.container,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsxs(zv,{sx:{justifyContent:"space-between",py:1,height:61},children:[be.jsxs(zv,{children:[void 0!==e&&be.jsx(Ks,{sizing:"lg",icon:be.jsx(ni,{name:"arrow-left",size:20}),sx:{color:e=>e.custom.palette.icon.primary},onClick:e}),be.jsxs(zv,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[o&&be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,...i&&{":hover .Header__TitleIconButton":{opacity:1}}},children:[d?be.jsx(Nl,{width:256,sx:{fontSize:xi.lg,lineHeight:1.4}}):be.jsx(ri,{variation:"lg",component:"p",weight:"bold",children:o}),void 0!==u?.titleIconButton?.onClick&&be.jsx(Ks,{icon:be.jsx(ni,{name:"edit"}),sizing:"md",sx:{my:"-4px",...i&&{opacity:0,transition:"opacity 0.3s ease"}},className:"Header__TitleIconButton",...u?.titleIconButton})]}),r&&be.jsx(be.Fragment,{children:d?be.jsx(Nl,{width:200,height:17,sx:{fontSize:xi.lg,lineHeight:1.4,mt:.5}}):be.jsx(Vr,{links:r})})]})]}),s&&be.jsx(zv,{children:s})]})})})})}),a&&be.jsx(kv,{children:be.jsx(t.Container,{...u.container,children:be.jsx(t.Grid2,{container:!0,spacing:2,children:be.jsx(t.Grid2,{size:12,children:be.jsx(Sv,{children:be.jsx(Mv,{children:a})})})})})})]})},exports.Html=ks,exports.HtmlParser=Wa,exports.Icon=ni,exports.IconButton=Ks,exports.IconButtonBase=Us,exports.IconButtonGroup=Xs,exports.Image=Za,exports.InputFieldBase=Ur,exports.InputLabel=Ss,exports.InputLabelHelp=ss,exports.KpiDataPopover=({indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:i,combinedAveragePercent:r,linkedQuestions:s})=>be.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:[be.jsxs(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),sx:{},children:[be.jsx(Tv,{indicatorColor:e,kpiTitle:n,tagTitle:o,combinedAverageValue:i,combinedAveragePercent:r}),be.jsx(t.Stack,{gap:e=>e.spacing(e.custom.margin.md),children:s&&s.map(((e,t)=>be.jsx(Uv,{...e},`${t}-${e.questionTitle}`)))})]}),be.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=Sr,exports.Loader=({fullscreen:e})=>e?be.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100dvw",height:"calc(100dvh - 80px)",background:e=>e.custom.palette.white},children:be.jsx(t.Box,{sx:{width:200},children:be.jsx(Ya,{})})}):be.jsx(Ya,{}),exports.Logo=e=>be.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:be.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:i,active:r=!1,loading:s,testCount:a,draftCount:l,cta:c})=>{const d=t.useTheme();return s?be.jsxs(qv,{onClick:e,active:r,"data-id":n,cta:c,children:[be.jsx(Yv,{id:"image-holder",children:be.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),be.jsx(Xv,{children:be.jsxs(t.Box,{display:"flex",gap:1,flexDirection:"column",width:2/3,alignSelf:"center",children:[be.jsx(Nl,{height:19}),be.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[be.jsx(Nl,{height:16}),be.jsx(Nl,{height:16})]})]})})]}):be.jsxs(qv,{onClick:e,active:r,"data-id":n,cta:c,children:[be.jsx(Yv,{id:"image-holder",children:be.jsx(Za,{src:o,width:"100%",height:"100%",containerSx:tC})}),be.jsxs(Xv,{children:[be.jsx(Jv,{component:"p",variation:"sm",weight:"bold",active:r,children:i}),be.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.margin.sm),width:1,justifyContent:"center",children:[!a&&!l&&be.jsx(eC,{component:"p",variation:"sm",active:r,children:"Empty"}),!!a&&be.jsx(eC,{component:"p",variation:"sm",active:r,children:`${a} ${Gv("Test",a)}`}),!!l&&be.jsx(eC,{component:"p",variation:"sm",active:r,children:`${l} ${Gv("Draft",l)}`})]})]}),c&&be.jsx(Qv,{children:c})]})},exports.LoopItemEmpty=nC,exports.LoopsAiButton=Qa,exports.Markdown=({typographyProps:e={variation:"lg",component:"p"},children:t=""})=>be.jsx(w,{options:{overrides:{p:{component:ri,props:e},ul:{component:({children:e,...t})=>be.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:i,extraAction:r,hideCloseButton:s,contentPadding:a,handleClose:l})=>{const c=t.useTheme();return be.jsxs(gl,{variation:"overlay",sx:{minWidth:320,width:"100%",maxWidth:600,overflow:"hidden",position:"relative"},children:[be.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:[be.jsxs(t.Stack,{children:["string"==typeof e?be.jsx(ri,{component:"p",variation:"xl",weight:"bold",children:e}):e,n&&be.jsx(ri,{component:"p",variation:"md",sx:{color:c.custom.palette.text.secondary},children:n})]}),be.jsxs(t.Stack,{direction:"row",gap:c.spacing(c.custom.margin.md),height:32,children:[r,!s&&be.jsx(Ks,{sizing:"md",icon:be.jsx(ni,{name:"close"}),sx:{color:c.custom.palette.icon.primary},onClick:l})]})]}),o&&be.jsx(zl,{contentPadding:!!a,children:be.jsx(t.Stack,{gap:c.custom.padding.md,sx:{maxWidth:600},children:"string"==typeof o?be.jsx(ri,{component:"p",variation:"md",children:o}):o})}),i&&be.jsx(zl,{contentPadding:!!a,children:i})]})},exports.Navigation=({logoLink:e,isMobile:n,nudgeProps:o,primaryMenuItemProps:i,secondaryMenuItemProps:r,sizing:s="lg",tertiaryMenuItemProps:a,toggleMenuOnClick:l=()=>{},userMenuProps:c})=>{const d=t.useTheme();return be.jsxs(lC,{navigationSizing:s,children:[be.jsx(aC,{logoLink:e,navigationSizing:s,toggleMenuOnClick:l,isMobile:n}),be.jsx(cC,{children:be.jsxs(t.Stack,{sx:{gap:4,justifyContent:"space-between",width:"100%"},children:[!!i?.length&&be.jsx(t.Stack,{sx:{gap:"lg"===s?.5:2,width:"100%"},children:i.map(((e,t)=>be.jsx(Ll,{navigationSizing:s,...e},`primary-menu-item-${t}`)))}),be.jsxs(t.Stack,{sx:{gap:2},children:[o?.title&&be.jsx(Hl,{navigationSizing:s,...o}),!!r?.length&&r.map(((e,t)=>be.jsx(Ll,{navigationSizing:s,...e,label:"Help center"===e.label&&"sm"===s?"Help":e.label},`secondary-menu-item-${t}`))),be.jsx(t.Divider,{sx:{color:d.custom.palette.stroke.default}}),be.jsx(oc,{rounded:"sm"===s,...c}),!!a?.length&&be.jsx(dC,{children:a.map(((e,t)=>be.jsx(Ll,{navigationSizing:s,...e},`tertiary-menu-item-${t}`)))})]})]})})]})},exports.NavigationButton=Ll,exports.Nudge=Hl,exports.NumberField=ea,exports.OnboardingCard=({cardTitle:n,cardSubtitle:i,welcomeImageUrl:r,welcomeImageAltDescription:s,items:a=[]})=>{const[l,c]=e.useState(!0),d=t.useTheme(),u=()=>c(!l),p=a.length,h=a.filter((e=>e.complete)).length,m=h/p*100;return be.jsxs(gl,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"row",[d.breakpoints.down("lgNav")]:{flexDirection:"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:[be.jsxs(uC,{children:[be.jsx(t.Box,{component:"img",src:r,alt:s,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),be.jsx(ri,{component:"h1",variation:"md",fontWeight:500,children:n}),be.jsx(hC,{component:"p",variation:"lg",children:i})]}),be.jsxs(pC,{children:[be.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[be.jsx(ly,{completed:h,total:p}),l&&be.jsx(Ks,{sizing:"sm",variation:"outlined",icon:be.jsx(o.ExpandLess,{}),onClick:u})]}),be.jsx(_l,{variation:"determinate",value:m}),be.jsx(ay,{expanded:l,onToggleExpanded:u,items:a})]})]})},exports.PaginationControl=kc,exports.Pill=Dl,exports.PlanFeatureTable=({currencySymbol:e,data:n,loading:o,tier1MinimumTerm:i,tier1Price:r,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 be.jsx(cc,{});const w=t.useTheme(),b={...si,...n},j=t=>"number"==typeof t?`${e}${new Intl.NumberFormat("en-GB").format(t)}`:t||"",k=t=>t.replace("{{currencySymbol}}",e||"").replace("{{tier1MinimumTerm}}",i?`${i} 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}}",j(r)).replace("{{tier2Price}}",j(c)).replace("{{tier3Price}}",j(h)).replace("{{tier4Price}}",j(f)).replace("{{tier1QuestionLimit}}",s?String(s):"").replace("{{tier2QuestionLimit}}",d?String(d):"").replace("{{tier3QuestionLimit}}",m?String(m):"").replace("{{tier4QuestionLimit}}",v?String(v):"").replace("{{tier1RespondentPrice}}",j(a)).replace("{{tier2RespondentPrice}}",j(u)).replace("{{tier3RespondentPrice}}",j(x)).replace("{{tier4RespondentPrice}}",j(C)),S=Object.values(b.headings).map((({heading:e,pricing:t})=>({heading:e,pricing:k(t)}))),M=[...Object.values(b.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 be.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:[be.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[be.jsx(t.Box,{sx:{width:160}}),S.map((({heading:e,pricing:n})=>be.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[be.jsx(ri,{variation:"platform"===y?"lg":"xxl",component:"p",weight:"bold",children:e}),be.jsx(ri,{variation:"platform"===y?"sm":"md",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]},e)))]}),M.map((e=>be.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(even)":{backgroundColor:w.custom.palette.surface.sunken}},children:[be.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:be.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&be.jsx(oi,{message:e.name.description,children:be.jsx(t.Box,{sx:{alignItems:"center",color:w.custom.palette.icon.secondary,display:"flex"},children:be.jsx(ni,{name:"info",size:24})})}),be.jsx(ri,{variation:"platform"===y?"md":"lg",component:"p",children:e.name.heading})]})}),be.jsx(uc,{text:e.tier1}),be.jsx(uc,{text:e.tier2}),be.jsx(uc,{text:e.tier3}),be.jsx(uc,{text:e.tier4})]},e.key)))]})},exports.PlanTierCard=({amount:n,billingType:o,body:i,ctaEvent:r=()=>{},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 b=t.useTheme(),j=Fi(),{width:k}=vs(),S=e.useRef(null),M=e.useRef(null),z=e.useRef(null),B=e.useRef(null),[T,V]=e.useState("sm");return x?be.jsx(gc,{}):(e.useEffect((()=>{e.startTransition((()=>{if(y&&w){j!==T&&(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)}))}}))}),[j,T,k]),be.jsxs(xc.PlanTierCard,{children:[be.jsxs(xc.Top,{children:[be.jsxs(xc.Head,{ref:S,height:y?.headerHeight,children:[be.jsxs(xc.PlanTitle,{children:[be.jsx(ri,{variation:"md",component:"h1",weight:"bold",children:h}),m&&be.jsx(Ka,{body:m,weight:"heavy",sx:{backgroundColor:e=>e.custom.palette.icon.primary,color:e=>e.custom.palette.text.primaryInverted}})]}),be.jsxs(xc.Billing,{children:[be.jsxs(xc.Price,{children:[be.jsxs(ri,{variation:"lg",component:"h1",weight:"bold",sx:{fontFamily:e=>e.typography.fontFamily,lineHeight:1},children:[d,n]}),g&&be.jsx(ri,{variation:"sm",component:"p",sx:{color:b.custom.palette.text.secondary,lineHeight:1},children:g})]}),o&&be.jsx(ri,{variation:"sm",component:"p",sx:{color:b.custom.palette.text.secondary},children:o})]}),C&&be.jsx(yc,{body:C,weight:"heavy"})]}),be.jsx(xc.Body,{ref:M,height:y?.bodyHeight,children:be.jsx(ri,{variation:"lg",component:"p",children:i})}),f&&be.jsx(Cc,{ref:z,height:y?.respondentCardHeight,respondentsTitle:f,respondentsFeatures:v})]}),be.jsxs(xc.Bottom,{ref:B,height:y?.bottomHeight,children:[p?.length&&be.jsx(xc.FeatureList,{children:p.map(((e,t)=>be.jsx(hc,{feature:e},`${h}-feature-${t}`)))}),!u&&be.jsx(Sr,{href:s,title:l,target:a,onClick:()=>{h&&r(h)},sx:{"&:hover":{cursor:"pointer"}},children:be.jsx(Nr,{fullWidth:!0,variation:c,sizing:"lg",disabled:u,children:l})})]})]}))},exports.Popper=vl,exports.PoweredByWatermarkLogo=()=>be.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[be.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:be.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"})}),be.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:be.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"})}),be.jsx("defs",{children:be.jsx("clipPath",{id:"clip0_900_1816",children:be.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=qs,exports.ProgressBar=_l,exports.ProjectItem=e=>"list"===e.viewType?be.jsx(by,{...e}):be.jsx(wy,{...e}),exports.ProjectItemEmpty=({onClick:e,viewType:n,title:o})=>{const i=t.useTheme();return"list"===n?be.jsx(my,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${i.custom.palette.stroke.light}`},children:be.jsxs(xy,{component:"div",onClick:e,sx:{display:"flex",gap:i.spacing(i.custom.margin.sm),alignItems:"center",padding:i.spacing(i.custom.padding.xs)},children:[be.jsx(gy,{sx:{height:72,width:108},"data-id":"image-container",children:be.jsx(Cy,{viewType:n,children:be.jsx(ni,{name:"add"})})}),be.jsx(vy,{sx:{overflow:"hidden",pl:i.spacing(i.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:be.jsx(t.Stack,{gap:i.spacing(i.custom.margin.xs),children:be.jsx(hy,{title:o,maxLines:1})})})]})}):be.jsx(my,{sx:{height:"100%"},children:be.jsxs(xy,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[be.jsx(gy,{"data-id":"image-container",sx:{width:"100%"},children:be.jsx(Cy,{viewType:n,children:be.jsx(ni,{name:"add"})})}),be.jsx(vy,{children:be.jsx(hy,{title:o,maxLines:2})})]})})},exports.QuestionBlock=({preQuestionText:e,questionText:n,questionType:o,supportText:i,slotProps:r,loading:s})=>{const a=t.useTheme();return s?be.jsxs(Sy,{children:[be.jsx(ky,{loading:!0}),be.jsxs(t.Stack,{gap:1,sx:{padding:a.spacing(a.custom.padding.md)},children:[be.jsx(Nl,{width:"100%",height:22}),be.jsx(Nl,{width:"100%",height:44}),be.jsx(Nl,{width:"100%",height:66})]})]}):be.jsxs(Sy,{children:[be.jsx(ky,{type:o}),be.jsxs(My,{children:[e&&be.jsx(ri,{variation:"md",component:"p",color:a.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),be.jsx(ri,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:n}),i&&be.jsx(Wa,{children:i})]})]})},exports.QuestionLabel=ky,exports.QuestionSelector=zy,exports.Radio=ds,exports.RadioGroup=ta,exports.Rank=ma,exports.RichTextField=ga,exports.SearchInput=Ty,exports.SectionHeader=({loading:e,...t})=>be.jsx(be.Fragment,{children:e?be.jsx(Py,{...t}):be.jsx(Ly,{...t})}),exports.Select=or,exports.SentimentArrow=Rc,exports.Skeleton=Nl,exports.Slider=ja,exports.SliderGraph=({rounding:t,tickInterval:n=10,data:o,loading:i,disabled:r,onChangeHandler:s,animateBars:a,slotProps:l,hideYAxis:c=!1,hideValues:d=!1,showGraphLines:u=!1,hideLabels:p=!1,hideCheckboxes:h=!1,disableTooltips:m=!1})=>{const x=e.useMemo((()=>Math.ceil(o.reduce(((e,{percentage:t})=>t>e?t:e),0))),[o]);return be.jsxs(Hy,{...l?.root,children:[!c&&be.jsx(qy,{loading:i,yAxisMax:x,rounding:t,tickInterval:n,disabled:r,showGraphLines:u,hideLabel:p,hideCheckbox:h,slotProps:{root:l?.yAxis}}),be.jsx(Dy,{...l?.barsWrapper,children:o.map(((e,t)=>{const{percentage:o,label:l,value:c,checked:u,id:g,amount:f,relativePercentage:v,onChange:C}=e;return be.jsx(Ky,{loading:i,label:l,value:c,percentage:o,maxDataValue:x,checked:u,tickInterval:n,disabled:r||i,animateBar:a,hideValue:d,onChange:s?(e,t)=>s(e,t):C?(e,t)=>C({amount:f,percentage:o,name:l,relativePercentage:v},t):void 0,hideLabel:p,hideCheckbox:h,toolTipContent:null==o?null:`${o}%`,disableTooltip:m,id:g,className:`slider-graph-bar-${t+1}`,slotProps:{barWrapper:{},checkbox:{},value:{},label:{},tooltip:{},bar:{}}},t)}))})]})},exports.SortableList=ha,exports.StarRating=Sa,exports.Surface=gl,exports.Switch=sr,exports.Tab=({active:e,animated:n,label:o,sentimentScore:i,stat:r,title:s,onClick:a})=>{const l=t.useTheme();return be.jsxs(Yy,{layout:n,active:e,onClick:a,children:[be.jsx(ri,{component:"p",variation:"sm",weight:"bold",children:s}),be.jsxs(Xy,{layout:n,children:["number"==typeof i?be.jsxs(be.Fragment,{children:[be.jsx(ri,{monospaced:!0,variation:"md",component:"p",weight:"bold",sx:{lineHeight:"160%"},children:be.jsx(S,{value:i,format:{maximumFractionDigits:1},animated:n})}),be.jsx(Rc,{sentimentScore:i})]}):be.jsx(ri,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:be.jsx(be.Fragment,{children:"number"==typeof r?be.jsx(S,{value:r,format:{maximumFractionDigits:1},animated:n}):"-"})}),!!o&&be.jsx(ri,{component:"p",variation:"xs",color:l.custom.palette.text.secondary,clamp:1,sx:{wordBreak:"break-all"},children:o})]})]})},exports.TestItem=({animated:o=!0,status:i,menuItems:r,title:s,tags:a,stats:l,user:c,slotProps:d,loading:u=!1,...p})=>{const[h,m]=e.useState(!1);return be.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:be.jsxs(t.Stack,{component:"article",gap:2,children:[be.jsxs(t.Stack,{component:"header",gap:1,justifyContent:"space-between",children:[be.jsxs(t.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[u?be.jsx(Nl,{sx:{width:90,height:32}}):be.jsx(rd,{status:i,...d?.status}),!u&&Boolean(r?.length)&&be.jsx(kl,{trigger:be.jsx(Ks,{icon:be.jsx(ni,{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:r,width:128,offset:[0,8],placement:"bottom-end",...d?.menu})]}),u?be.jsx(Nl,{}):be.jsx(ri,{component:"h1",weight:"bold",...d?.title,sx:n.mergeSx({fontSize:e=>e.custom.typography.body.xl},d?.title?.sx),children:s})]}),be.jsx(t.Box,{children:u?be.jsx(t.Box,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>be.jsx(Nl,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(a?.length)&&be.jsx(I.TruncatedList,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...h&&{maxHeight:"none"}},alwaysShowTruncator:h,renderTruncator:({hiddenItemsCount:e})=>e>0?be.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)}):be.jsx(Ks,{sizing:"sm",icon:be.jsx(ni,{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=>be.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&&be.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:be.jsxs(t.Stack,{gap:2,children:[be.jsx(_l,{variation:"determinate",value:l.progress.percentage}),be.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:[be.jsx(t.Box,{flexBasis:0,flexGrow:1,children:be.jsx(Qy,{animated:o,label:"Completed",primaryText:l.progress.completed.toString(),secondaryText:`of ${l.progress.total}`})}),be.jsx(t.Box,{flexBasis:0,flexGrow:1,children:be.jsx(Qy,{animated:o,label:"Incomplete",primaryText:l.progress.incomplete.toString(),secondaryText:`${l.progress.incompletePercentage}%`})}),be.jsx(t.Box,{flexBasis:0,flexGrow:1,children:be.jsx(Qy,{animated:o,label:"Duration",primaryText:l.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==i&&be.jsxs(t.Box,{display:"flex",justifyItems:"center",gap:.3,children:[be.jsx(ri,{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?be.jsxs(be.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(i)," ",be.jsx("strong",{children:l.progress.estimatedTimeToComplete})]}):be.jsx(be.Fragment,{children:"Not enough data to estimate completion time"})}),l.progress.estimatedTimeToComplete&&be.jsx(oi,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:be.jsx(t.Box,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:be.jsx(ni,{name:"info",size:16})})})]})]})}),be.jsxs(t.Box,{component:"footer",display:"flex",flexDirection:"row",justifyContent:c?"space-between":"end",gap:1,children:[c&&be.jsx(t.Box,{display:"flex",alignItems:"center",gap:1,children:u?be.jsxs(be.Fragment,{children:[be.jsx(Nl,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),be.jsx(Nl,{sx:{width:100}})]}):be.jsx(be.Fragment,{children:be.jsx(ri,{component:"p",clamp:1,sx:{fontSize:e=>e.custom.typography.body.xs,color:e=>e.custom.palette.text.secondary},children:c.activityDescription})})}),!u&&"draft"!==i&&be.jsxs(t.Box,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[be.jsx(Jy,{animated:o,iconName:"data-bar",label:"answers",value:l?.count?.answers??0}),be.jsx(Jy,{animated:o,iconName:"comment-filled",label:"comments",value:l?.count?.comments??0,slotProps:{icon:{size:20}}})]})]})]})})},exports.TestKPICard=ew,exports.TextBarDivider=({typographyProps:e,text:o,sx:i})=>{const r=t.useTheme();return be.jsx(t.Box,{sx:n.mergeSx(i,{width:"100%",position:"relative",display:"flex",gap:4,my:r.spacing(r.custom.margin.md),"&:before":{content:'""',width:"100%",background:r.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:r.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:be.jsx(ri,{align:"center",variation:"sm",component:"p",...e,children:o})})},exports.TextField=Gr,exports.Textarea=za,exports.ThemeContext=zw,exports.ThemeProvider=({mode:e="light",screenSize:n="lg",direction:o="ltr",ignoreCacheProvider:r,children:s})=>{const a=Bw(e,n,o),l=()=>be.jsxs(i.ThemeProvider,{theme:a.theme,children:[be.jsx(t.CssBaseline,{}),be.jsx(_w,{}),s]});return be.jsx(zw.Provider,{value:a,children:r?l():be.jsx(A.CacheProvider,{value:"rtl"===o?Ww:Nw,children:l()})})},exports.TickGroup=({heading:e,ticks:n})=>be.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4}},children:[be.jsx(ri,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),be.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:n.map(((n,o)=>be.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[be.jsx(ni,{name:"badge-tick",size:32}),be.jsx(ri,{variation:"xxl",component:"p",children:n})]},`tick-group-${e}-${o}`)))})]}),exports.Toast=({buttons:e,message:n,status:o="neutral",variation:i="sm"})=>{const r=t.useTheme();return be.jsx(t.Stack,{sx:{backgroundColor:r.custom.palette.surface.overlay,borderRadius:r.spacing(r.custom.radius.lg),boxShadow:r.custom.elevation.overlay,color:r.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:be.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===i?"row":"column",gap:2},children:[be.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&be.jsx(Zl,{status:o}),be.jsx(t.Box,{sx:{display:"flex"},children:be.jsx(ri,{variation:"md",component:"p",sx:{px:1,pt:.5},children:n})})]}),e&&be.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=oi,exports.TrialCard=({promoHeadline:e,promoDescription:t,ctaText:n,ctaFn:o})=>be.jsxs(Yl.TrialCard,{gradient:"tone1",texture:"noise1",children:[be.jsxs(Yl.Top,{sx:{alignItems:"start"},children:[be.jsx(Xl,{body:e,weight:"heavy",icon:be.jsx(ni,{name:"gift"})}),be.jsx(ri,{component:"p",variation:"lg",sx:{maxWidth:{lg:600,md:"initial"},color:e=>e.custom.palette.text.lockedWhite},children:t})]}),be.jsx(Yl.CtaButtonContainer,{children:be.jsx(Yl.CtaButton,{variation:"secondary",onClick:o,children:n})})]}),exports.Typography=ri,exports.UserMenu=oc,exports.VideoControls=bw,exports.VideoModal=({modalVisible:e=!1,showModal:n,video:o})=>be.jsx(t.Modal,{closeAfterTransition:!0,onClose:()=>n(!1),open:e,hideBackdrop:!0,children:be.jsx(t.Fade,{in:e,children:be.jsxs(rc,{children:[be.jsx(t.Backdrop,{open:e,onClick:()=>n(!1)}),be.jsx(sc,{children:be.jsx(ac,{children:be.jsx(lc,{autoPlay:!0,controls:!0,controlsList:"nodownload noremoteplayback noplaybackrate",disablePictureInPicture:!0,muted:!0,preload:"auto",src:o,tabIndex:-1})})}),be.jsx(ic,{children:be.jsx(t.Container,{children:be.jsx(Ks,{icon:be.jsx(ni,{name:"close",size:24}),variation:"outlined",shape:"round",onClick:()=>n(!1)})})})]})})}),exports.backgroundCreator=Ii,exports.base=re,exports.blue=G,exports.blueRamp=te,exports.boxShadow=ue,exports.breakpoints=oe,exports.buttonHeightMap=wi,exports.buttonInteraction=yi,exports.chooseArticle=ai,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=kw,exports.darkNeutral=D,exports.darkNeutralAlpha=_,exports.defaultInputValidation=li,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=Si,exports.getButtonTypography=ki,exports.getIconSizing=ji,exports.getKpiIndicatorColor=_c,exports.green=q,exports.greenRamp=ne,exports.iconButtonHelpers=Ns,exports.iconSizeMap=ti,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=fi,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=Ci,exports.purple=W,exports.purpleRamp=X,exports.radius=le,exports.red=N,exports.redRamp=Q,exports.secondary=vi,exports.semantic=he,exports.space=ie,exports.subtle=gi,exports.useBreakpoint=Fi,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(zw);return function(e,t){if(!e){if(Sw)throw new Error(Mw);var n=t,o="".concat(Mw,": ").concat(n);throw new Error(o)}}(t,"useTheme must be used within a ThemeProvider"),t},exports.useThemeBuilder=Bw,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.522",
3
+ "version": "1.4.523",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",