@useloops/design-system 1.4.501 → 1.4.502
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 +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
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 pb(){if(Jj)return Qj;Jj=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Qj=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},Qj}function hb(){if(tb)return eb;tb=1;return eb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function mb(){return ib?nb:(ib=1,nb=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var xb=ub();Gj.exports=function(){if(ab)return sb;ab=1;var e=ub(),t=pb(),n=hb(),i=mb(),o=function(){if(rb)return ob;rb=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=hb(),n={},i=mb();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={})},ob=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){}}),sb=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:m(s),arrayOf:function(e){return m((function(t,i,o,r,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[i];if(!Array.isArray(a))return new h("Invalid "+r+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,r,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,i,o){var r=e[t];return a(r)?null:new h("Invalid "+i+" `"+o+"` of type `"+v(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,i,o,r){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(s)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,i,o,r){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+o+" `"+r+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+i+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,i,o){return f(e[t])?null:new h("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,r,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var d in l)if(i(l,d)){var u=e(l,d,r,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,i,o,r){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+o+" `"+r+"` of value `"+String(s)+"` supplied to `"+i+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+t+"."),s}return m((function(t,o,r,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,r,s,a,n);if(null==d)return null;d.data&&i(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,i,o,r,s){var a=t[i],l=v(a);if("object"!==l)return new h("Invalid "+r+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,r,s,c,C(d));var u=d(a,c,o,r,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(o,r,s,a,l){var c=o[r],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[r],e);for(var p in u){var m=e[p];if(i(e,p)&&"function"!=typeof m)return g(s,a,l,p,C(m));if(!m)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=m(c,p,s,a,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function o(o,s,a,c,u,p,m){if(c=c||d,p=p||a,m!==n){if(l){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&i<3&&(r("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,i++)}}return null==s[a]?o?null===s[a]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,p)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function x(e){return m((function(t,n,i,o,r,s){var a=t[n];return v(a)!==e?new h("Invalid "+o+" `"+r+"` of type `"+C(a)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,i,o){return new h((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function f(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(f);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!f(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!f(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function C(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},sb}()(xb.isElement,!0)}else Gj.exports=function(){if(cb)return lb;cb=1;var e=hb();function t(){}function n(){}return n.resetWarningCache=t,lb=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 gb=mi(Gj.exports);function fb(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=fb(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function vb(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fb(e))&&(i&&(i+=" "),i+=t);return i}const Cb=e=>e,yb=(()=>{let e=Cb;return{configure(t){e=t},generate:t=>e(t),reset(){e=Cb}}})(),wb={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 jb(e,t,n="Mui"){const i=wb[t];return i?`${n}-${i}`:`${yb.generate(e)}-${t}`}const bb=e.createContext({});function kb(e){return jb("MuiTimeline",e)}function Mb(e){return"alternate-reverse"===e?"positionAlternateReverse":`position${en(e)}`}"production"!==process.env.NODE_ENV&&(bb.displayName="TimelineContext"),function(e,t,n="Mui"){const i={};t.forEach((t=>{i[t]=jb(e,t,n)}))}("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const zb=Qe("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[Mb(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Sb=e.forwardRef((function(t,n){const i=et({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&&Mb(t)]},kb,n)})(a),c=e.useMemo((()=>({position:o})),[o]);return yi.jsx(bb.Provider,{value:c,children:yi.jsx(zb,{className:vb(l.root,r),ownerState:a,ref:n,...s})})}));"production"!==process.env.NODE_ENV&&(Sb.propTypes={children:gb.node,classes:gb.object,className:gb.string,position:gb.oneOf(["alternate-reverse","alternate","left","right"]),sx:gb.oneOfType([gb.arrayOf(gb.oneOfType([gb.func,gb.object,gb.bool])),gb.func,gb.object])});const Vb=F(qt)((({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}`}}))),Fb=F(M)((({theme:e})=>({display:"flex",flexDirection:"column",padding:`0 0 ${e.spacing(e.custom.padding.md)} ${e.spacing(e.custom.padding.sm)}`}))),Tb=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),Lb=F(Fl)((({theme:e})=>({[`&.${X.root}`]:{...Tb(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}}}}))),Pb=F(M)((({theme:e})=>({[`&.${be.root}`]:{...Tb(e),"& .MuiTypography-root":{color:"inherit"}}}))),Ab=F(ta)((()=>({color:"inherit",fontWeight:500,fontSize:ha.lg}))),Bb=F(ta)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),Eb=({children:e,complete:t,onClick:n})=>t?yi.jsx(Pb,{children:e}):yi.jsx(Lb,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),Hb=({complete:e,title:t,description:n,onClick:i})=>yi.jsx(Fb,{children:yi.jsxs(Eb,{complete:e,onClick:i,children:[yi.jsx(Ab,{component:"p",variation:"lg",children:t}),!e&&yi.jsx(Qs,{name:"arrow-right",size:16}),!e&&n&&yi.jsx(Bb,{variation:"lg",component:"p",children:n})]})}),Rb=({item:e,showConnector:t})=>{const{complete:n,title:i,description:o,onClick:r}=e;return yi.jsxs(Xt,{children:[yi.jsxs(Kt,{children:[yi.jsx(Vb,{completed:n,children:n?yi.jsx(Qs,{name:"badge-tick-in-circle",size:24}):void 0}),t&&yi.jsx(Qt,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&yi.jsx(Jt,{component:()=>yi.jsx(Hb,{complete:n,title:i,description:o,onClick:r})})]})},Ib={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},$b=({expanded:e,onToggleExpanded:t,items:n})=>{const r=n.find((e=>!e.complete)),s=d((()=>e?n:[r]),[e,n,r]),c=a(null),[u,p]=i(),h=l((()=>{if(!c.current)return;const e=c.current.scrollHeight;p(e)}),[n]);return o((()=>{h()}),[e,h]),o((()=>{const e=new ResizeObserver(h);return c.current&&e.observe(c.current),()=>e.disconnect()}),[h]),yi.jsx(Dw.div,{variants:Ib,initial:"initial",animate:"auto"===u?"initial":["initial","animate"],custom:u,style:{overflow:"hidden"},children:yi.jsx("div",{ref:c,style:{display:"flex"},children:yi.jsxs(Sb,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${Yt.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?yi.jsx(Rb,{item:e,showConnector:s.length>1?n:!!r?.description},`${e.title}-${e.complete}`):e&&yi.jsx(Rb,{item:e,showConnector:n},e.title)})),!e&&yi.jsx(M,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:yi.jsx(Yl,{endIcon:yi.jsx(Qs,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:t,children:"Show more"})})]})})})},Db=({completed:e,total:t})=>yi.jsx(ta,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),Ob=({cardTitle:e,cardSubtitle:t,welcomeImageUrl:n,welcomeImageAltDescription:o,items:r=[]})=>{const[s,a]=i(!0),l=Ta(),c=()=>a(!s),d=r.length,u=r.filter((e=>e.complete)).length,p=u/d*100;return yi.jsxs(Vu,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"xl"===l?"row":"column",gap:e=>({sm:e.spacing(e.custom.padding.md),lg:e.spacing(e.custom.margin.lg)}),padding:e=>({sm:e.spacing(e.custom.margin.md),lg:e.spacing(e.custom.margin.lg)})},children:[yi.jsxs(Nj,{children:[yi.jsx(M,{component:"img",src:n,alt:o,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),yi.jsx(ta,{component:"h1",variation:"md",fontWeight:500,children:e}),yi.jsx(Zj,{component:"p",variation:"lg",children:t})]}),yi.jsxs(Wj,{children:[yi.jsxs(M,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[yi.jsx(Db,{completed:u,total:d}),s&&yi.jsx(Xd,{sizing:"sm",variation:"outlined",icon:yi.jsx(Ye,{}),onClick:c})]}),yi.jsx(np,{variation:"determinate",value:p}),yi.jsx($b,{expanded:s,onToggleExpanded:c,items:r})]})]})},_b=(e,t)=>yi.jsxs(M,{display:"flex",gap:.5,children:[yi.jsx(ta,{variation:"sm",component:"p",weight:"bold",children:e||0}),yi.jsx(ta,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:bj(t,e||0)})]}),Nb=({loops:e,tests:t,drafts:n})=>yi.jsxs(M,{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,children:[!!e&&_b(e,"Loop"),!!t&&_b(t,"Test"),!!n&&_b(n,"Draft")]}),Wb=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]}}))),Zb=({sx:e,body:t})=>yi.jsx(Wb,{"data-id":"pill-container",sx:$e(e,{position:"absolute",zIndex:1}),children:yi.jsx(ta,{variation:"xxs",component:"p",weight:"bold",children:t})}),Ub=({title:e,maxLines:t,sx:n})=>yi.jsx(ta,{variation:"md",component:"p",weight:"bold",sx:$e({overflow:"hidden",display:"-webkit-box",WebkitLineClamp:`${t}`,WebkitBoxOrient:"vertical"},n),children:e}),Gb=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}}}))),qb=F(Ae,{shouldForwardProp:e=>!["disableHoverStyle"].includes(e)})((({theme:e,disableHoverStyle:t=!1})=>({cursor:"pointer",...!0===t&&{"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.palette.background.paper}}}))),Yb=F(M)((({theme:e})=>({boxShadow:"none",overflow:"hidden",height:150,position:"relative",borderRadius:e.spacing(e.custom.radius.md),[`> .${be.root}`]:{display:"flex",height:"100%","> span":{display:"flex",width:"100%"}}}))),Xb=({title:e,description:t,thumbnail:n})=>{const i=[e,t].filter(Boolean).join(" | ");return yi.jsx(eu,{src:n,alt:i,title:i,style:{width:"100%",height:"auto",objectFit:"cover"}})},Kb=F(Be)((({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"}}}))),Qb=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}}))),Jb=({updatedDate:e,format:t=!1,noWrap:n})=>yi.jsxs(ta,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?tn(e).format("DD MMM YYYY"):e]}),ek=({title:e,description:t,loopCount:n,testCount:i,draftCount:o,updatedAt:r,moreActions:s,thumbnail:a,isDemo:l,loading:c,onClick:d})=>c?yi.jsx(Gb,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:yi.jsxs(qb,{component:"div",disableHoverStyle:!0,children:[yi.jsx(Yb,{"data-id":"image-container",children:yi.jsx(op,{})}),yi.jsxs(Kb,{children:[yi.jsx(M,{"data-id":"title-container",height:32,children:yi.jsx(op,{})}),yi.jsx(op,{height:20}),yi.jsx(op,{height:16,width:"60%"})]})]})}):yi.jsx(Gb,{children:yi.jsxs(qb,{component:"div",disableHoverStyle:!0,onClick:d,children:[yi.jsxs(Yb,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[l&&yi.jsx(Zb,{body:"Demo",sx:{bottom:8,left:8}}),yi.jsx(Xb,{thumbnail:a,title:e,description:t})]}),yi.jsxs(Kb,{children:[yi.jsxs(M,{"data-id":"title-container",children:[yi.jsx(Ub,{title:e,maxLines:2}),yi.jsx(M,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:s})]}),yi.jsx(Nb,{loops:n,tests:i,drafts:o}),yi.jsx(Jb,{updatedDate:r,format:!0})]})]})}),tk=({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?yi.jsx(Gb,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:yi.jsxs(qb,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[yi.jsx(Yb,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:yi.jsx(op,{})}),yi.jsx(Kb,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:yi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[yi.jsx(op,{width:"100%",height:20}),yi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[yi.jsx(op,{height:20,width:"70%"}),yi.jsx(op,{height:16,width:200})]})]})})]})}):yi.jsx(Gb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:yi.jsxs(qb,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[yi.jsxs(Yb,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[l&&yi.jsx(Zb,{sx:{top:4,right:4},body:"Demo"}),yi.jsx(Xb,{thumbnail:a,title:e,description:t})]}),yi.jsx(Kb,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:yi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[yi.jsx(Ub,{title:e,maxLines:1}),yi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[yi.jsx(Nb,{loops:n,tests:i,drafts:o}),yi.jsx(Jb,{updatedDate:r,format:!0,noWrap:!0})]})]})}),s&&yi.jsx(M,{onClick:e=>e.stopPropagation(),children:s})]})})},nk=e=>"list"===e.viewType?yi.jsx(tk,{...e}):yi.jsx(ek,{...e}),ik=({onClick:e,viewType:t,title:n})=>{const i=b();return"list"===t?yi.jsx(Gb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${i.custom.palette.stroke.light}`},children:yi.jsxs(qb,{component:"div",onClick:e,sx:{display:"flex",gap:i.spacing(i.custom.margin.sm),alignItems:"center",padding:i.spacing(i.custom.padding.xs)},children:[yi.jsx(Yb,{sx:{height:72,width:108},"data-id":"image-container",children:yi.jsx(Qb,{viewType:t,children:yi.jsx(Qs,{name:"add"})})}),yi.jsx(Kb,{sx:{overflow:"hidden",pl:i.spacing(i.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:yi.jsx(A,{gap:i.spacing(i.custom.margin.xs),children:yi.jsx(Ub,{title:n,maxLines:1})})})]})}):yi.jsx(Gb,{sx:{height:"100%"},children:yi.jsxs(qb,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[yi.jsx(Yb,{"data-id":"image-container",sx:{width:"100%"},children:yi.jsx(Qb,{viewType:t,children:yi.jsx(Qs,{name:"add"})})}),yi.jsx(Kb,{children:yi.jsx(Ub,{title:n,maxLines:2})})]})})},ok=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)}`}))),rk=({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?yi.jsx(op,{width:"100%",height:36,sx:{borderRadius:`${n.spacing(n.custom.radius.lg)} ${n.spacing(n.custom.radius.lg)} 0 0`}}):yi.jsxs(ok,{type:e,children:[yi.jsx(Qs,{name:i.icon,size:16}),yi.jsx(ta,{variation:"sm",component:"p",sx:{px:n.spacing(n.custom.padding.xs)},children:i.label})]})},sk=F(A)((({theme:e})=>({border:`1px solid ${e.custom.palette.stroke.light}`,borderRadius:e.spacing(e.custom.radius.lg)}))),ak=F(A)((({theme:e})=>({gap:e.spacing(e.custom.padding.sm),padding:e.spacing(e.custom.padding.md)}))),lk=({preQuestionText:e,questionText:t,questionType:n,supportText:i,slotProps:o,loading:r})=>{const s=b();return r?yi.jsxs(sk,{children:[yi.jsx(rk,{loading:!0}),yi.jsxs(A,{gap:1,sx:{padding:s.spacing(s.custom.padding.md)},children:[yi.jsx(op,{width:"100%",height:22}),yi.jsx(op,{width:"100%",height:44}),yi.jsx(op,{width:"100%",height:66})]})]}):yi.jsxs(sk,{children:[yi.jsx(rk,{type:n}),yi.jsxs(ak,{children:[e&&yi.jsx(ta,{variation:"md",component:"p",color:s.custom.palette.text.secondary,children:e}),yi.jsx(ta,{variation:"md",component:"p",weight:"bold",children:t}),i&&yi.jsx(du,{typographyProps:{variation:"md",component:"p",color:s.custom.palette.text.secondary,sx:$e({"& strong":{fontWeight:400}},o?.supportText?.sx)},children:i})]})]})},ck=F(Ql)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),dk=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?.()};p(s,(()=>({...c.current,clear:d})));const u={color:l.custom.palette.icon.primary};return yi.jsx(ck,{inputRef:c,placeholder:i,value:o,onChange:e,onFocus:n,startAdornment:yi.jsx(Qs,{name:"search",size:17,sx:u}),endAdornment:o?yi.jsx(M,{onClick:d,sx:{cursor:"pointer",display:"flex"},children:yi.jsx(Qs,{name:"close",size:17,sx:u})}):void 0,...r})})),uk=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between",padding:1}))),pk=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1)}))),hk=F(ta)((({theme:e})=>({color:e.custom.palette.text.secondary}))),mk=({loading:e,...t})=>yi.jsx(yi.Fragment,{children:e?yi.jsx(gk,{...t}):yi.jsx(xk,{...t})}),xk=({buttons:e,subtitle:t,title:n})=>yi.jsx(yi.Fragment,{children:yi.jsx(uk,{sx:{justifyContent:"space-between"},children:yi.jsx(Z,{children:yi.jsx(U,{container:!0,spacing:2,children:yi.jsx(U,{size:12,children:yi.jsxs(pk,{sx:{justifyContent:"space-between",py:1},children:[yi.jsx(pk,{children:yi.jsxs(pk,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[n&&yi.jsx(ta,{variation:"sm",component:"h2",weight:"bold",children:n}),t&&yi.jsx(hk,{variation:"sm",component:"p",children:t})]})}),e&&yi.jsx(pk,{children:e})]})})})})})}),gk=({title:e,subtitle:t,buttons:n})=>yi.jsx(yi.Fragment,{children:yi.jsx(uk,{sx:{justifyContent:"space-between"},children:yi.jsx(Z,{children:yi.jsx(U,{container:!0,spacing:2,children:yi.jsx(U,{size:12,children:yi.jsxs(pk,{sx:{justifyContent:"space-between",py:1},children:[yi.jsx(pk,{children:yi.jsxs(pk,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&yi.jsx(op,{variant:"text",width:200,height:28}),t&&yi.jsx(op,{variant:"text",width:140,height:17})]})}),yi.jsx(pk,{children:n&&yi.jsxs(yi.Fragment,{children:[yi.jsx(op,{variant:"text",width:72,height:28}),yi.jsx(op,{variant:"text",width:56,height:28})]})})]})})})})})}),fk=F(Dw.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)}))),vk=F(Dw.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)}))),Ck=({active:e,animated:t,label:n,sentimentScore:i,stat:o,title:r,onClick:s})=>{const a=b();return yi.jsxs(fk,{layout:t,active:e,onClick:s,children:[yi.jsx(ta,{component:"p",variation:"sm",weight:"bold",children:r}),yi.jsxs(vk,{layout:t,children:["number"==typeof i?yi.jsxs(yi.Fragment,{children:[yi.jsx(ta,{variation:"md",component:"p",weight:"bold",sx:{fontVariantNumeric:"tabular-nums",lineHeight:"160%"},children:yi.jsx(Nt,{value:i,format:{maximumFractionDigits:1},animated:t})}),yi.jsx(rh,{sentimentScore:i})]}):yi.jsx(ta,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:yi.jsx(yi.Fragment,{children:"number"==typeof o?yi.jsx(Nt,{value:o,format:{maximumFractionDigits:1},animated:t}):"-"})}),!!n&&yi.jsx(ta,{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 yk=({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 yi.jsx(Vu,{variation:"raised",borderradius:"lg",...d,sx:$e({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:yi.jsxs(A,{component:"article",gap:2,children:[yi.jsxs(A,{component:"header",gap:1,justifyContent:"space-between",children:[yi.jsxs(A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[c?yi.jsx(op,{sx:{width:90,height:32}}):yi.jsx(Mh,{status:t,...l?.status}),!c&&Boolean(n?.length)&&yi.jsx(Hu,{trigger:yi.jsx(Xd,{icon:yi.jsx(Qs,{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?yi.jsx(op,{}):yi.jsx(ta,{component:"h1",weight:"bold",...l?.title,sx:$e({fontSize:e=>e.custom.typography.body.xl},l?.title?.sx),children:o})]}),yi.jsx(M,{children:c?yi.jsx(M,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>yi.jsx(op,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(r?.length)&&yi.jsx(nn,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...u&&{maxHeight:"none"}},alwaysShowTruncator:u,renderTruncator:({hiddenItemsCount:e})=>e>0?yi.jsx(ou,{body:`+${e}`,weight:"light",onClick:e=>{e.stopPropagation(),p(!0)},...l?.tagsExpand,sx:$e({background:e=>e.custom.palette.neutral[50]},l?.tagsExpand?.sx)}):yi.jsx(Xd,{sizing:"sm",icon:yi.jsx(Qs,{name:"chevron-up",size:16}),onClick:e=>{e.stopPropagation(),p(!1)},...l?.tagsCollapse,sx:$e({color:e=>e.custom.palette.icon.primary},l?.tagsCollapse?.sx)}),children:r.map((e=>yi.jsx(ou,{body:e,weight:"light",...l?.pill,sx:$e({background:e=>e.custom.palette.neutral[50]},l?.pill?.sx)},e)))})}),!c&&s?.progress&&yi.jsx(Vu,{variation:"sunken",borderradius:"md",sx:{border:e=>`1px solid ${e.custom.palette.neutral[100]}`,padding:e=>e.spacing(e.custom.padding.md)},children:yi.jsxs(A,{gap:2,children:[yi.jsx(np,{variation:"determinate",value:s.progress.percentage}),yi.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:[yi.jsx(M,{flexBasis:0,flexGrow:1,children:yi.jsx(wk,{animated:e,label:"Completed",primaryText:s.progress.completed.toString(),secondaryText:`of ${s.progress.total}`})}),yi.jsx(M,{flexBasis:0,flexGrow:1,children:yi.jsx(wk,{animated:e,label:"Incomplete",primaryText:s.progress.incomplete.toString(),secondaryText:`${s.progress.incompletePercentage}%`})}),yi.jsx(M,{flexBasis:0,flexGrow:1,children:yi.jsx(wk,{animated:e,label:"Duration",primaryText:s.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==t&&yi.jsxs(M,{display:"flex",justifyItems:"center",gap:.3,children:[yi.jsx(ta,{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?yi.jsxs(yi.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(t)," ",yi.jsx("strong",{children:s.progress.estimatedTimeToComplete})]}):yi.jsx(yi.Fragment,{children:"Not enough data to estimate completion time"})}),s.progress.estimatedTimeToComplete&&yi.jsx(Js,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:yi.jsx(M,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:yi.jsx(Qs,{name:"info",size:16})})})]})]})}),yi.jsxs(M,{component:"footer",display:"flex",flexDirection:"row",justifyContent:a?"space-between":"end",gap:1,children:[a&&yi.jsx(M,{display:"flex",alignItems:"center",gap:1,children:c?yi.jsxs(yi.Fragment,{children:[yi.jsx(op,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),yi.jsx(op,{sx:{width:100}})]}):yi.jsx(yi.Fragment,{children:yi.jsx(ta,{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&&yi.jsxs(M,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[yi.jsx(jk,{animated:e,iconName:"data-bar",label:"answers",value:s?.count?.answers??0}),yi.jsx(jk,{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 yi.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:[yi.jsx(ta,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:t}),yi.jsx(ta,{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},children:yi.jsx(yi.Fragment,{children:o||s?yi.jsx(yi.Fragment,{children:o?yi.jsxs(yi.Fragment,{children:[yi.jsx(Nt,{value:Number(r[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",yi.jsx(Nt,{value:Number(r[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):yi.jsx(Nt,{value:Number(n),animated:e})}):yi.jsx(yi.Fragment,{children:n})})}),yi.jsx(ta,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},children:a?yi.jsxs(yi.Fragment,{children:[yi.jsx(Nt,{value:i.replace("%",""),animated:e}),"%"]}):i})]})},jk=({animated:e,iconName:t,label:n,value:i,slotProps:o})=>yi.jsxs(M,{display:"flex",alignItems:"center",gap:.5,children:[yi.jsx(Qs,{name:t,...o?.icon,sx:$e({color:e=>e.custom.palette.icon.secondary},o?.icon?.sx)}),yi.jsxs(ta,{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:[yi.jsx(Nt,{value:i,animated:e})," ",yi.jsx("span",{children:n})]})]}),bk=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 yi.jsxs(Vu,{ref:c,active:a,borderradius:"lg",variation:u,...l,sx:$e({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:[yi.jsxs(A,{direction:"row",gap:1,children:[yi.jsxs(A,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[yi.jsx(yi.Fragment,{children:o?yi.jsx(op,{sx:{width:17,height:16}}):yi.jsx(M,{sx:{height:"22px",display:"flex",placeItems:"center"},children:yi.jsx(ph,{colorScheme:e,disabled:t&&"dimmed"===t})})}),o?yi.jsx(op,{sx:{marginTop:"-1px"}}):yi.jsx(ta,{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)&&yi.jsx(Hu,{trigger:yi.jsx(Xd,{icon:yi.jsx(Qs,{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?yi.jsx(M,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>yi.jsx(op,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):yi.jsx(Fc,{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]:zu(u,d)}},children:i})]})})),kk=(e,t=1e5)=>Math.round(e*t)/t;var Mk=w((({playing:e,ended:t,seeking:n,buffering:i,handleAction:o})=>yi.jsx(Xd,{disabled:i,loading:i,onClick:()=>o(),shape:"round",sizing:"xl",variation:"outlined",icon:yi.jsx(Qs,{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 zk=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}`},Sk=(e,t)=>t/e*100,Vk=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}))),Fk=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]}}))),Tk=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 Lk=w((({startTime:e,endTime:t,currentTime:n,markers:i=[],markerIndicator:o=!0,markerIndicatorSize:r=3,markerIndicatorMode:s,marker:a})=>{const l=d((()=>Sk(t-e,n-e)),[n,e,t]),c=d((()=>"time"===s?r:(t-e)*r),[t,e,s,r]),{width:u,left:p}=d((()=>{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=d((()=>i.map((({timeStamp:i,id:o,meta:r})=>({id:o,timeStamp:i,markerPosition:Sk(t-e,i),isActive:Math.abs(i-n+e)<=c/2+1e-10,meta:r})))),[i,t,e,n,c]),m=a||Tk;return yi.jsxs(Vk,{children:[o&&yi.jsx(Fk,{width:u,left:p}),h.map((({id:e,markerPosition:t,isActive:n,meta:i})=>yi.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...i&&{meta:i}},e)))]})}));var Pk=w(F(le)((({theme:e,type:t,muted:n,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${tt(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${tt(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${tt(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===t?{height:100,color:e.custom.palette.icon.primary,...(n||0===i)&&{opacity:.5},[`.${Ee.valueLabel}`]:{background:e.custom.palette.surface.default,color:e.custom.palette.text.primary,fontSize:e.custom.typography.body.xs,fontWeight:"normal",boxShadow:e.custom.elevation.overlay},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${tt(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${tt(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${tt(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${Ee.rail}`]:{height:4,background:tt(e.custom.palette.neutral[400],.5),opacity:1},[`.${Ee.track}`]:{border:0,boxShadow:"none",height:4}}}))));const Ak=F(A)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),Bk=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:i,volumeControlsType:o})=>{const r=yi.jsx(Xd,{icon:(()=>{switch(!0){case 0===i||n:return yi.jsx(Ke,{});case i<.5:return yi.jsx(rn,{});default:return yi.jsx(Xe,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return yi.jsx(Ak,{children:"mute"===o?r:yi.jsx(Tu,{bindOn:["hover"],trigger:r,popperProps:{placement:"top",style:{zIndex:40}},children:yi.jsx(Pk,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(Sk(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},Ek=F(A)({flex:1,position:"relative"}),Hk=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)}))),Rk=F(ta)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),Ik=F(M)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),$k=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 Dk=w((({startTime:e,currentTime:t,endTime:n,playing:o,markerIndicator:r,bufferRanges:s,handleSeeking:a,handleSeekEnd:c,handleSeekStart:d,markers:u,marker:p,markerIndicatorMode:h,markerIndicatorSize:m,volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C,volumeControls:y})=>{const[w,j]=i(o),b=l(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),k=l(((e,t)=>{e.stopPropagation(),c?.(w),w&&j(!1)}),[w,c]),M=l((e=>{e.stopPropagation(),o&&j(o),d?.(o)}),[o,d]),z=l((()=>{o&&j(o),d?.(o)}),[o,d]),S=l((()=>{c?.(w),w&&j(!1)}),[w,c]);return yi.jsxs(Ek,{children:[yi.jsxs(Hk,{direction:"row",children:[yi.jsxs(Rk,{component:"p",variation:"md",children:[zk(t-e)," / ",zk(n-e)]}),y&&yi.jsx(Bk,{volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>yi.jsx($k,{left:e,width:t},n))),yi.jsxs(Ik,{children:[yi.jsx(Pk,{step:.05,value:t,max:n,min:e,onChangeCommitted:k,onMouseDown:M,onChange:b,onTouchStart:z,onTouchEnd:S}),u&&u?.length>0&&yi.jsx(Lk,{markerIndicatorMode:h,markerIndicatorSize:m,markerIndicator:r,markers:u,marker:p,startTime:e,currentTime:t,endTime:n})]})]})}));const Ok=F(Vu)((({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"}))),_k=F(A)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),Nk=n((({id:e,videoElement:t,initialEndTime:n=0,initialCurrentTime:r=0,initialMuted:s,initialVolume:a,markers:c,options:d,slots:u,events:{onEnd:h,onPlay:m,onSeekEnd:x,onSeeking:g,onSeekStart:f,onTimeUpdate:v,onPause:C,onVolumeChange:y,onVolumeMute:w,onRestart:j,onFirstPlay:b,onFirstEnded:k,onReset:M}={},videoSeekTime:z},S)=>{const[V,F]=i(!1),[T,L]=i([]),P={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...d},[{seeking:A,endTime:B,currentTime:E,playing:H,buffering:R,loaded:I,ended:$,volume:D,muted:O,startTime:_,firstPlay:N,firstEnded:W},Z]=i({startTime:kk(P.normaliseTime?r:0),endTime:kk(P.normaliseTime?n:t.duration),currentTime:kk(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:kk(P.normaliseTime?r:0),endTime:kk(P.normaliseTime?n:t.duration),currentTime:kk(r??0)}))),t.currentTime=kk(r??0)}),[r,n]);const U=l((()=>{Z((e=>({...e,playing:!1,ended:!0,...!W&&{firstEnded:!0}}))),h&&h(),!W&&k&&k()}),[W]);o((()=>{if(!t||null==z)return;(async()=>{const e=!t.paused,n=z===B;Z((e=>({...e,playing:!1,currentTime:kk(z)}))),await new Promise((e=>{const n=()=>{t.removeEventListener("seeked",n),e()};t.addEventListener("seeked",n),setTimeout(e,500)})),Z((e=>({...e,currentTime:kk(z)}))),await new Promise((e=>setTimeout(e,50))),Z((t=>({...t,playing:e,currentTime:kk(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&&w&&w(!O),D!==e.target?.volume&&y&&y(D)}),[O,D]),q=l((()=>{const e=kk(t.currentTime)>=B&&B!==kk(t.duration)&&!$,n=kk(t.currentTime)>=B&&B===kk(t.duration)&&!$&&!H;(e||n)&&(t.pause(),t.dispatchEvent(new Event("ended"))),Z((e=>({...e,currentTime:kk(t.currentTime)}))),v&&v(kk(t.currentTime))}),[B,$,H]),Y=l((()=>{Z((e=>({...e,playing:!1}))),C&&C()}),[E]),X=l((()=>{Z((e=>({...e,playing:!0,ended:!1,buffering:!1,...!N&&{firstPlay:!0}}))),!N&&b&&b(),m&&m()}),[N]),K=l((()=>{Z((e=>({...e,buffering:!0})))}),[]),Q=l((()=>{Z((e=>({...e,buffering:!1})))}),[R]),J=l((()=>{const e=[];for(let n=0;n<t.buffered.length;n++){const i=t.buffered.start(n),o=t.buffered.end(n);if(o>=_&&i<=B){const t=Math.max(i,_),n=Math.min(o,B);e.push({start:t-_,end:n-_,startPercent:(t-_)/(B-_)*100,widthPercent:(n-t)/(B-_)*100})}}L(e)}),[A,B,E,H,R,I,$,D,O,_,T]),ee=l((async e=>{H&&ie(),t.currentTime=_,e&&await ne(),j&&j()}),[H,E,_,B,$]),te=l((async()=>{H&&ie(),t.currentTime=_,Z((e=>({...e,startTime:kk(P.normaliseTime?r:0),endTime:kk(P.normaliseTime?n:t.duration),currentTime:kk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),M&&M()}),[H,E,_,B,$,r,n]),ne=async()=>{await t.play()},ie=()=>{t.pause()},oe=l((e=>{t.currentTime=kk(e),Z((t=>({...t,currentTime:kk(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!N||t.firstPlay,bufferProgress:e}))),g&&g(e),!N&&b&&b()}),[R,N]),re=l((async()=>{document.hidden?H&&!t.paused?(F(!0),ie()):F(!1):(V&&!H&&await ne(),F(!1))}),[H,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&&H&&t.pause(),Z((e=>({...e,...n?{currentTime:n}:{},ended:!i&&e.ended,seeking:!1}))),x&&x(n)}),[H,$,R,A]);return on("visibilitychange",re,document),on("pause",Y,t),on("playing",X,t),on("timeupdate",q,t),on("ended",U,t),on("volumechange",G,t),on("waiting",K,t),on("canplay",Q,t),on("progress",J,t),p(S,(()=>({play:ne,pause:ie,restart:ee,reset:te,seek:(e,t,n)=>ae(t,e,n),videoState:{seeking:A,endTime:B,currentTime:E,playing:H,buffering:R,loaded:I,ended:$,volume:D,firstPlay:N,firstEnded:W,muted:O,startTime:_}}))),yi.jsxs(Ok,{variation:"raised",borderradius:"xl",id:e,children:[yi.jsxs(_k,{...P?.rtl&&{dir:"rtl"},children:[yi.jsx(Mk,{seeking:A,playing:H,ended:$,buffering:R,handleAction:async()=>{$?await ee(!0):H?ie():await ne()}}),yi.jsx(Dk,{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:E,endTime:B,playing:H,bufferRanges:T,buffering:R,volume:D,muted:O,volumeControls:P.volumeControls,volumeControlsType:P.volumeControlsType,handleVolumeMute:()=>{t.muted=!O},handleVolumeChange:e=>{t.volume=e,O&&(t.muted=!1)}})]}),u?.bottom]})}));var Wk=w(Nk);const Zk=F(M)((({theme:e})=>({backgroundColor:e.custom.palette.surface.sunken,display:"flex",flexDirection:"row",gap:e.spacing(e.custom.margin.sm),padding:e.spacing(e.custom.padding.sm),borderRadius:e.spacing(e.custom.radius.md),alignSelf:"stretch"}))),Uk=F(A)((({theme:e})=>({gap:e.spacing(e.custom.margin.xs),flexDirection:"row",flexWrap:"wrap",flex:"1 1 0",alignItems:"flex-start",justifyContent:"flex-end"}))),Gk=({demographicOptionLabel:e,demographicSelectionLabels:t})=>yi.jsxs(Zk,{children:[yi.jsx(ta,{component:"p",weight:"bold",variation:"xs",sx:{maxWidth:"128px",color:e=>e.custom.palette.text.primary,paddingTop:"1px"},children:e}),yi.jsx(Uk,{children:t.map(((e,t)=>yi.jsx(Ju,{label:e,sx:{maxWidth:"256px"}},`${t}-${e}`)))})]}),qk=F(Vu)((({theme:e,disabled:t,active:n})=>({position:"relative",display:"flex",gap:e.spacing(e.custom.margin.sm),alignItems:"center",minWidth:140,width:"100%",transition:"all 0.2s ease",cursor:t?"not-allowed":"pointer",border:`1px solid ${n?e.custom.palette.blue[500]:e.custom.palette.interaction.none}`,"&:before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",transition:"all 0.2s ease",pointerEvents:"none",backgroundColor:t?e.custom.palette.interaction.disabledMuted:"transparent"},"&:hover":{"&:before":{backgroundColor:t?e.custom.palette.interaction.disabledMuted:e.custom.palette.interaction.hover}},"&:active":{"&:before":{backgroundColor:t?e.custom.palette.interaction.disabledMuted:e.custom.palette.interaction.press}}}))),Yk=({disabled:e,loading:t,active:n,onClick:i,icon:o,label:r,slotProps:s,...a})=>{const l=b();return yi.jsx(qk,{borderradius:"md",variation:"default",active:!e&&n,disabled:e,onClick:e?void 0:i,sx:{px:l.custom.padding.sm,py:l.custom.padding.xs,...s?.surface?.sx},...s?.surface,...a,children:yi.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:l.spacing(l.custom.margin.sm)},className:"emoji-list-item-content-container",children:[o&&yi.jsx(yi.Fragment,{children:t?yi.jsx(op,{variant:"text",width:24,sx:{borderRadius:"50%"}}):yi.jsx(bc,{disabled:e,checked:!0,...s?.icon,children:o})}),r&&yi.jsx(M,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:l.spacing(l.custom.margin.sm)},className:"emoji-list-item-label-container",children:t?yi.jsx(op,{variant:"text",width:120}):yi.jsx(ta,{component:"p",variation:"md",sx:{color:e?l.custom.palette.text.disabled:l.custom.palette.text.primary},...s?.label,children:r})})]})})},Xk=F(qk)((({theme:e,disabled:t})=>({border:`1px solid ${e.custom.palette.stroke.default}`,cursor:"initial",...t&&{backgroundColor:e.custom.palette.interaction.disabled}}))),Kk=({dragHandle:e=!1,disabled:t,loading:n,onDelete:i,primaryAction:o,icon:r,label:s,slotProps:a,...l})=>{const c=b();return yi.jsxs(Xk,{borderradius:"md",variation:"default",disabled:t,sx:{p:c.custom.padding.sm,...a?.surface?.sx},...a?.surface,...l,children:[e&&yi.jsx(M,{sx:{display:"flex",alignItems:"center"},className:"emoji-list-item-drag-handle-container",children:yi.jsx(Xd,{disabled:t,sizing:"xs",icon:yi.jsx(Qs,{name:"drag-handle",color:c.custom.palette.icon.secondary}),...a?.dragHandle})}),yi.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm),flex:"1 0 0",px:c.spacing(c.custom.padding.sm)},className:"emoji-list-item-content-container",children:[r&&yi.jsx(yi.Fragment,{children:n?yi.jsx(op,{width:24,height:24,sx:{borderRadius:"50%"}}):yi.jsx(bc,{disabled:t,checked:!0,...a?.icon,children:r})}),s&&yi.jsx(M,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-label-container",children:n?yi.jsx(op,{width:100,height:24}):yi.jsx(ta,{component:"p",variation:"md",sx:{color:t?c.custom.palette.text.disabled:c.custom.palette.text.primary},...a?.label,children:s})})]}),(o||i)&&yi.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.xs)},className:"emoji-list-item-actions-container",children:[o&&yi.jsx(yi.Fragment,{children:n?yi.jsx(op,{width:24,height:24}):o}),i&&yi.jsx(yi.Fragment,{children:n?yi.jsx(op,{width:24,height:24}):yi.jsx(Xd,{sizing:"xs",disabled:t,icon:yi.jsx(Qs,{name:"delete",color:c.custom.palette.icon.secondary}),onClick:e=>{e.stopPropagation(),i&&i()},...a?.deleteAction})})]})]})},Qk="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Jk=(e,t,n)=>He({direction:n,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Gn[e],neutralAlpha:"light"===e?$n:Dn,purple:Yn[e],red:Xn[e],peach:Kn[e],yellow:Qn[e],blue:Jn[e],green:ei[e],icon:ui[e].icon,interaction:ui[e].interaction,stroke:ui[e].stroke,surface:ui[e].surface,text:ui[e].text,input:ui[e].input,skeleton:ui[e].skeleton,data:ui[e].data,body:ui[e].surface.default},margin:oi,padding:ri,radius:si,elevation:ai,elevationFilter:li,boxShadow:ci,easing:di,typography:ua[t]},palette:{mode:e,primary:{main:On[500]}},spacing:ii,shape:{borderRadius:ii,hotspot:{default:12,active:24}},breakpoints:{values:ti},typography:{fontFamily:`"${hi.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:pa(t),styleOverrides:{root:{color:ui[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: '${hi.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.Domaine.default.weight};\n src: url(${Qk}${hi.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${hi.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.Domaine.bold.weight};\n src: url(${Qk}${hi.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${hi.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.FoundersGrotesk.default.weight};\n src: url(${Qk}${hi.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${hi.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.FoundersGrotesk.bold.weight};\n src: url(${Qk}${hi.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${ti.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${ti.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:hi.FoundersGrotesk.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*ii}px ${e.padding.md*ii}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}});var eM="production"===process.env.NODE_ENV,tM="Invariant failed";const nM=c(null),iM=(e="light",t="lg",n="ltr")=>{const{width:r}=zc(),[a,l]=i(e),[c,u]=i(t),[p,h]=i(n),[m,x]=i(!1),[g,f]=i("");o((()=>{p&&document.documentElement.setAttribute("dir",p)}),[p]);o((()=>{s((()=>{u(r&&r<ti.lg?"sm":"lg")}))}),[r]),o((()=>{s((()=>{h(n)}))}),[n]),o((()=>{s((()=>{l(e)}))}),[e]);const v=d((()=>Jk(a,c,p)),[a,p,c]),C=V(v.breakpoints.only("sm"),{noSsr:!0}),y=V(v.breakpoints.only("md"),{noSsr:!0}),w=V(v.breakpoints.between("lg","xl"),{noSsr:!0}),j=V(v.breakpoints.up("xl"),{noSsr:!0});return o((()=>{s((()=>{C&&f("sm"),y&&f("md"),w&&f("lg"),j&&f("xl")}))}),[C,y,w,j]),{breakpoint:g,gridOverlayVisible:m,mode:a,theme:v,toggleGridOverlay:()=>{s((()=>{x((e=>!e))}))},toggleMode:e=>{s((()=>{if(e)return l(e);l((e=>"light"===e?"dark":"light"))}))}}},oM=()=>{const e=u(nM);return function(e,t){if(!e){if(eM)throw new Error(tM);var n=t,i="".concat(tM,": ").concat(n);throw new Error(i)}}(e,"useTheme must be used within a ThemeProvider"),e};var rM=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var sM="undefined"!=typeof document,aM=function(e,t,n){for(var i=0,o=0;i=o,o=Tn(),38===i&&12===o&&(t[n]=1),!Vn(o);)Sn();return Pn(e,An)},lM=function(e,t){return wn(function(e,t){var n=-1,i=44;do{switch(Vn(i)){case 0:38===i&&12===Tn()&&(t[n]=1),e[n]+=aM(An-1,t,n);break;case 2:e[n]+=Ln(i);break;case 4:if(44===i){e[++n]=58===Tn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fn(i)}}while(i=Sn());return e}(jn(e),t))},cM=new WeakMap,dM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||cM.get(n))&&!i){cM.set(e,!0);for(var o=[],r=lM(t,o),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},uM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pM(e,t){switch(bn(e,t)){case 5103:return xn+"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 xn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+e+gn+e+fn+e+e;case 6828:case 4268:return xn+e+fn+e+e;case 6165:return xn+e+fn+"flex-"+e+e;case 5187:return xn+e+mn(e,/(\w+).+(:[^]+)/,xn+"box-$1$2"+fn+"flex-$1$2")+e;case 5443:return xn+e+fn+"flex-item-"+mn(e,/flex-|-self/,"")+e;case 4675:return xn+e+fn+"flex-line-pack"+mn(e,/align-content|flex-|-self/,"")+e;case 5548:return xn+e+fn+mn(e,"shrink","negative")+e;case 5292:return xn+e+fn+mn(e,"basis","preferred-size")+e;case 6060:return xn+"box-"+mn(e,"-grow","")+xn+e+fn+mn(e,"grow","positive")+e;case 4554:return xn+mn(e,/([^-])(transform)/g,"$1"+xn+"$2")+e;case 6187:return mn(mn(mn(e,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),e,"")+e;case 5495:case 3959:return mn(e,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return mn(mn(e,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+fn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xn+e+e;case 4095:case 3583:case 4068:case 2532:return mn(e,/(.+)-inline(.+)/,xn+"$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(Mn(e)-1-t>6)switch(kn(e,t+1)){case 109:if(45!==kn(e,t+4))break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+gn+(108==kn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zn(e,"stretch")?pM(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kn(e,t+1))break;case 6444:switch(kn(e,Mn(e)-3-(~zn(e,"!important")&&10))){case 107:return mn(e,":",":"+xn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(45===kn(e,14)?"inline-":"")+"box$3$1"+xn+"$2$3$1"+fn+"$2box$3")+e}break;case 5936:switch(kn(e,t+11)){case 114:return xn+e+fn+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+fn+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+fn+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+fn+e+e}return e}var hM,mM,xM=sM?void 0:(hM=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},mM=new WeakMap,function(e){if(mM.has(e))return mM.get(e);var t=hM(e);return mM.set(e,t),t}),gM=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case Cn:e.return=pM(e.value,e.length);break;case vn:return pn([hn(e,{value:mn(e.value,"@","@"+xn)})],i);case cn:if(e.length)return dn(e.props,(function(t){switch(un(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([hn(e,{props:[mn(t,/:(read-\w+)/,":"+gn+"$1")]})],i);case"::placeholder":return pn([hn(e,{props:[mn(t,/:(plac\w+)/,":"+xn+"input-$1")]}),hn(e,{props:[mn(t,/:(plac\w+)/,":"+gn+"$1")]}),hn(e,{props:[mn(t,/:(plac\w+)/,fn+"input-$1")]})],i)}return""}))}}],fM=function(e){var t=e.key;if(sM&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,r=e.stylisPlugins||gM,s={},a=[];sM&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)})));var l=[dM,uM];if(xM){var c=[sn],d=ln(l.concat(r,c)),u=xM(r)(t),p=function(e,t){var n,i=t.name;return void 0===u[i]&&(u[i]=(n=e?e+"{"+t.styles+"}":t.styles,pn(yn(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=[sn,an((function(e){h.insert(e)}))],x=ln(l.concat(r,m));o=function(e,t,n,i){var o;h=n,o=e?e+"{"+t.styles+"}":t.styles,pn(yn(o),x),i&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new rM({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(a),g};const vM=()=>yi.jsx(Re,{styles:{"strong, b":{fontWeight:500}}}),CM=fM({key:"muirtl",stylisPlugins:[Bn,Hn]}),yM=fM({key:"mui"}),wM=({mode:e="light",screenSize:t="lg",direction:n="ltr",ignoreCacheProvider:i,children:o})=>{const r=iM(e,t,n),s=()=>yi.jsxs(nt,{theme:r.theme,children:[yi.jsx(Ie,{}),yi.jsx(vM,{}),o]});return yi.jsx(nM.Provider,{value:r,children:i?s():yi.jsx(En,{value:"rtl"===n?CM:yM,children:s()})})};export{Zp as AISummary,_p as AIWrittenByLockUp,al as Accordion,Wp as AiContentContainer,sl as AnnualController,eh as AssetItem,th as AuthContainerSurface,ul as AuthFormHeader,pl as Avatar,hl as AvatarGroup,gl as Badge,Sl as BrandBadge,Bl as Breadcrumb,Zl as BulletGraphic,Yl as Button,Gl as ButtonBase,Xl as Checkbox,Jl as CheckboxGroup,nh as ClipboardCopyingOverlay,ec as ColorBackgroundContainer,ch as CommentCard,ac as CreatableAutocomplete,lc as CustomField,sa as DEFAULT_MAX_INPUT_LENGTH,fh as DataPointInfo,Gk as DemographicSelectionSection,Cc as Differential,wc as DropdownMenu,Yk as EmojiListItem,Kk as EmojiQuestionEditorOption,bc as EmojiWrapper,vh as EmptyStateCard,Fc as ExpandableTypographyClamp,Fh as ExtendedTestStatus,Ph as FilterCount,Eh as FilterGroupAccordion,Ow as FilterPyramidGraph,Uw as FilterRow,Bh as FilteredItemsCard,Lc as Flag,pi as FontWeight,nl as FormControlLabel,Sd as FormGenerator,Xw as GraphBar,Ad as GridOverlay,Kw as Header,Pc as Html,Bd as HtmlParser,Qs as Icon,Xd as IconButton,Gd as IconButtonBase,Qd as IconButtonGroup,eu as Image,Kl as InputFieldBase,Ac as InputLabel,uc as InputLabelHelp,jj as KpiDataPopover,ph as KpiIndicator,ou as Label,Oc as Likert,Fl as Link,su as Loader,au as Logo,Pj as LoopItem,Aj as LoopItemEmpty,cu as LoopsAiButton,du as Markdown,Hu as Menu,Iu as ModalActionsWrapper,$u as ModalContentWrapper,Du as ModalLayout,_j as Navigation,Uu as NavigationButton,Ku as Nudge,Nc as NumberField,Ob as OnboardingCard,Ju as Pill,Fp as PlanFeatureTable,Dp as PlanTierCard,Tu as Popper,ep as PoweredByWatermarkLogo,Yd as Progress,np as ProgressBar,nk as ProjectItem,ik as ProjectItemEmpty,lk as QuestionBlock,rk as QuestionLabel,xc as Radio,Wc as RadioGroup,id as Rank,rd as RichTextField,dk as SearchInput,mk as SectionHeader,tl as Select,rh as SentimentArrow,op as Skeleton,pd as Slider,nd as SortableList,md as StarRating,Vu as Surface,ol as Switch,Ck as Tab,yk as TestItem,bk as TestKPICard,rp as TextBarDivider,Ql as TextField,gd as Textarea,nM as ThemeContext,wM as ThemeProvider,Op as TickGroup,sp as Toast,Js as Tooltip,mp as TrialCard,ta as Typography,yp as UserMenu,Wk as VideoControls,wp as VideoModal,Fa as backgroundCreator,ii as base,Zn as blue,Jn as blueRamp,ci as boxShadow,ti as breakpoints,Ca as buttonHeightMap,va as buttonInteraction,oa as chooseArticle,kc as compareArrayMembers,Jk as customTheme,In as darkNeutral,Dn as darkNeutralAlpha,ra as defaultInputValidation,di as easing,ai as elevation,li as elevationFilter,ia as emailValidation,hi as fonts,qn as generateRamp,ba as getButtonSizing,ja as getButtonTypography,wa as getIconSizing,uh as getKpiIndicatorColor,Un as green,ei as greenRamp,Zd as iconButtonHelpers,Ks as iconSizeMap,Mc as isButton,dh as mapKpiColorSchemeByInteger,oi as margin,Rn as neutral,$n as neutralAlpha,Gn as neutralRamp,xa as outlined,ri as padding,aa as passwordValidation,Nn as peach,Kn as peachRamp,fa as primary,On as purple,Yn as purpleRamp,si as radius,_n as red,Xn as redRamp,ga as secondary,ui as semantic,ni as space,ma as subtle,Ta as useBreakpoint,jc as useDropdownMenu,Sc as useKeyCombo,Vc as usePrevious,zc as useScreenSize,oM as useTheme,iM as useThemeBuilder,Wn as yellow,Qn as yellowRamp};
|
|
23
|
+
*/function pb(){if(Jj)return Qj;Jj=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Qj=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},Qj}function hb(){if(tb)return eb;tb=1;return eb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function mb(){return ib?nb:(ib=1,nb=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var xb=ub();Gj.exports=function(){if(ab)return sb;ab=1;var e=ub(),t=pb(),n=hb(),i=mb(),o=function(){if(rb)return ob;rb=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=hb(),n={},i=mb();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={})},ob=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){}}),sb=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:m(s),arrayOf:function(e){return m((function(t,i,o,r,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[i];if(!Array.isArray(a))return new h("Invalid "+r+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,r,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:m((function(e,t,n,i,o){var r=e[t];return a(r)?null:new h("Invalid "+i+" `"+o+"` of type `"+v(r)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,i,o,r){var s=t[n];return e.isValidElementType(s)?null:new h("Invalid "+o+" `"+r+"` of type `"+v(s)+"` supplied to `"+i+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,i,o,r){if(!(t[n]instanceof e)){var s=e.name||d;return new h("Invalid "+o+" `"+r+"` of type `"+((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `"+i+"`, expected instance of `"+s+"`.")}var a;return null}))},node:m((function(e,t,n,i,o){return f(e[t])?null:new h("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,r,s,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new h("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var d in l)if(i(l,d)){var u=e(l,d,r,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,i,o,r){for(var s=t[n],a=0;a<e.length;a++)if(p(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+o+" `"+r+"` of value `"+String(s)+"` supplied to `"+i+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&r(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(o)+" at index "+t+"."),s}return m((function(t,o,r,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,r,s,a,n);if(null==d)return null;d.data&&i(d.data,"expectedType")&&l.push(d.data.expectedType)}return new h("Invalid "+s+" `"+a+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,i,o,r,s){var a=t[i],l=v(a);if("object"!==l)return new h("Invalid "+r+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,r,s,c,C(d));var u=d(a,c,o,r,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return m((function(o,r,s,a,l){var c=o[r],d=v(c);if("object"!==d)return new h("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[r],e);for(var p in u){var m=e[p];if(i(e,p)&&"function"!=typeof m)return g(s,a,l,p,C(m));if(!m)return new h("Invalid "+a+" `"+l+"` key `"+p+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var x=m(c,p,s,a,l+"."+p,n);if(x)return x}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function o(o,s,a,c,u,p,m){if(c=c||d,p=p||a,m!==n){if(l){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&i<3&&(r("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,i++)}}return null==s[a]?o?null===s[a]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,p)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function x(e){return m((function(t,n,i,o,r,s){var a=t[n];return v(a)!==e?new h("Invalid "+o+" `"+r+"` of type `"+C(a)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,i,o){return new h((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function f(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(f);if(null===e||a(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!f(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!f(o[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function C(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},sb}()(xb.isElement,!0)}else Gj.exports=function(){if(cb)return lb;cb=1;var e=hb();function t(){}function n(){}return n.resetWarningCache=t,lb=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 gb=mi(Gj.exports);function fb(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=fb(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function vb(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fb(e))&&(i&&(i+=" "),i+=t);return i}const Cb=e=>e,yb=(()=>{let e=Cb;return{configure(t){e=t},generate:t=>e(t),reset(){e=Cb}}})(),wb={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 jb(e,t,n="Mui"){const i=wb[t];return i?`${n}-${i}`:`${yb.generate(e)}-${t}`}const bb=e.createContext({});function kb(e){return jb("MuiTimeline",e)}function Mb(e){return"alternate-reverse"===e?"positionAlternateReverse":`position${en(e)}`}"production"!==process.env.NODE_ENV&&(bb.displayName="TimelineContext"),function(e,t,n="Mui"){const i={};t.forEach((t=>{i[t]=jb(e,t,n)}))}("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);const zb=Qe("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[Mb(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Sb=e.forwardRef((function(t,n){const i=et({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&&Mb(t)]},kb,n)})(a),c=e.useMemo((()=>({position:o})),[o]);return yi.jsx(bb.Provider,{value:c,children:yi.jsx(zb,{className:vb(l.root,r),ownerState:a,ref:n,...s})})}));"production"!==process.env.NODE_ENV&&(Sb.propTypes={children:gb.node,classes:gb.object,className:gb.string,position:gb.oneOf(["alternate-reverse","alternate","left","right"]),sx:gb.oneOfType([gb.arrayOf(gb.oneOfType([gb.func,gb.object,gb.bool])),gb.func,gb.object])});const Vb=F(qt)((({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}`}}))),Fb=F(M)((({theme:e})=>({display:"flex",flexDirection:"column",padding:`0 0 ${e.spacing(e.custom.padding.md)} ${e.spacing(e.custom.padding.sm)}`}))),Tb=e=>({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.spacing(e.custom.padding.sm),marginTop:e.spacing(e.custom.margin.xs)}),Lb=F(Fl)((({theme:e})=>({[`&.${X.root}`]:{...Tb(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}}}}))),Pb=F(M)((({theme:e})=>({[`&.${be.root}`]:{...Tb(e),"& .MuiTypography-root":{color:"inherit"}}}))),Ab=F(ta)((()=>({color:"inherit",fontWeight:500,fontSize:ha.lg}))),Bb=F(ta)((({theme:e})=>({fontWeight:400,textDecoration:"none",color:e.custom.palette.text.secondary,flexBasis:"100%"}))),Eb=({children:e,complete:t,onClick:n})=>t?yi.jsx(Pb,{children:e}):yi.jsx(Lb,{underline:"none",component:"button",onClick:n,target:"_self",children:e}),Hb=({complete:e,title:t,description:n,onClick:i})=>yi.jsx(Fb,{children:yi.jsxs(Eb,{complete:e,onClick:i,children:[yi.jsx(Ab,{component:"p",variation:"lg",children:t}),!e&&yi.jsx(Qs,{name:"arrow-right",size:16}),!e&&n&&yi.jsx(Bb,{variation:"lg",component:"p",children:n})]})}),Rb=({item:e,showConnector:t})=>{const{complete:n,title:i,description:o,onClick:r}=e;return yi.jsxs(Xt,{children:[yi.jsxs(Kt,{children:[yi.jsx(Vb,{completed:n,children:n?yi.jsx(Qs,{name:"badge-tick-in-circle",size:24}):void 0}),t&&yi.jsx(Qt,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),e&&yi.jsx(Jt,{component:()=>yi.jsx(Hb,{complete:n,title:i,description:o,onClick:r})})]})},Ib={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},$b=({expanded:e,onToggleExpanded:t,items:n})=>{const r=n.find((e=>!e.complete)),s=d((()=>e?n:[r]),[e,n,r]),c=a(null),[u,p]=i(),h=l((()=>{if(!c.current)return;const e=c.current.scrollHeight;p(e)}),[n]);return o((()=>{h()}),[e,h]),o((()=>{const e=new ResizeObserver(h);return c.current&&e.observe(c.current),()=>e.disconnect()}),[h]),yi.jsx(Dw.div,{variants:Ib,initial:"initial",animate:"auto"===u?"initial":["initial","animate"],custom:u,style:{overflow:"hidden"},children:yi.jsx("div",{ref:c,style:{display:"flex"},children:yi.jsxs(Sb,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${Yt.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?yi.jsx(Rb,{item:e,showConnector:s.length>1?n:!!r?.description},`${e.title}-${e.complete}`):e&&yi.jsx(Rb,{item:e,showConnector:n},e.title)})),!e&&yi.jsx(M,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:yi.jsx(Yl,{endIcon:yi.jsx(Qs,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:t,children:"Show more"})})]})})})},Db=({completed:e,total:t})=>yi.jsx(ta,{component:"p",variation:"lg",sx:{fontWeight:500},children:`${e} of ${t} tasks completed`}),Ob=({cardTitle:e,cardSubtitle:t,welcomeImageUrl:n,welcomeImageAltDescription:o,items:r=[]})=>{const[s,a]=i(!0),l=Ta(),c=()=>a(!s),d=r.length,u=r.filter((e=>e.complete)).length,p=u/d*100;return yi.jsxs(Vu,{variation:"raised",borderradius:"lg",sx:{display:"flex",flexDirection:"xl"===l?"row":"column",gap:e=>({sm:e.spacing(e.custom.padding.md),lg:e.spacing(e.custom.margin.lg)}),padding:e=>({sm:e.spacing(e.custom.margin.md),lg:e.spacing(e.custom.margin.lg)})},children:[yi.jsxs(Nj,{children:[yi.jsx(M,{component:"img",src:n,alt:o,sx:{width:{sm:56,lg:72},height:{sm:56,lg:72}}}),yi.jsx(ta,{component:"h1",variation:"md",fontWeight:500,children:e}),yi.jsx(Zj,{component:"p",variation:"lg",children:t})]}),yi.jsxs(Wj,{children:[yi.jsxs(M,{sx:{display:"flex",justifyContent:"space-between",alignItems:"start",width:"100%",height:"36px",paddingBottom:e=>e.spacing(e.custom.padding.sm)},children:[yi.jsx(Db,{completed:u,total:d}),s&&yi.jsx(Xd,{sizing:"sm",variation:"outlined",icon:yi.jsx(Ye,{}),onClick:c})]}),yi.jsx(np,{variation:"determinate",value:p}),yi.jsx($b,{expanded:s,onToggleExpanded:c,items:r})]})]})},_b=(e,t)=>yi.jsxs(M,{display:"flex",gap:.5,children:[yi.jsx(ta,{variation:"sm",component:"p",weight:"bold",children:e||0}),yi.jsx(ta,{variation:"sm",component:"p",sx:{color:e=>e.custom.palette.text.secondary},children:bj(t,e||0)})]}),Nb=({loops:e,tests:t,drafts:n})=>yi.jsxs(M,{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,children:[!!e&&_b(e,"Loop"),!!t&&_b(t,"Test"),!!n&&_b(n,"Draft")]}),Wb=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]}}))),Zb=({sx:e,body:t})=>yi.jsx(Wb,{"data-id":"pill-container",sx:$e(e,{position:"absolute",zIndex:1}),children:yi.jsx(ta,{variation:"xxs",component:"p",weight:"bold",children:t})}),Ub=({title:e,maxLines:t,sx:n})=>yi.jsx(ta,{variation:"md",component:"p",weight:"bold",sx:$e({overflow:"hidden",display:"-webkit-box",WebkitLineClamp:`${t}`,WebkitBoxOrient:"vertical"},n),children:e}),Gb=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}}}))),qb=F(Ae,{shouldForwardProp:e=>!["disableHoverStyle"].includes(e)})((({theme:e,disableHoverStyle:t=!1})=>({cursor:"pointer",...!0===t&&{"& .MuiCardActionArea-focusHighlight":{backgroundColor:e.palette.background.paper}}}))),Yb=F(M)((({theme:e})=>({boxShadow:"none",overflow:"hidden",height:150,position:"relative",borderRadius:e.spacing(e.custom.radius.md),[`> .${be.root}`]:{display:"flex",height:"100%","> span":{display:"flex",width:"100%"}}}))),Xb=({title:e,description:t,thumbnail:n})=>{const i=[e,t].filter(Boolean).join(" | ");return yi.jsx(eu,{src:n,alt:i,title:i,style:{width:"100%",height:"auto",objectFit:"cover"}})},Kb=F(Be)((({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"}}}))),Qb=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}}))),Jb=({updatedDate:e,format:t=!1,noWrap:n})=>yi.jsxs(ta,{variation:"xxs",component:"p",noWrap:n,sx:{color:e=>e.custom.palette.text.secondary},children:["Edited on ",t?tn(e).format("DD MMM YYYY"):e]}),ek=({title:e,description:t,loopCount:n,testCount:i,draftCount:o,updatedAt:r,moreActions:s,thumbnail:a,isDemo:l,loading:c,onClick:d})=>c?yi.jsx(Gb,{disableRaisedEffect:!0,sx:{pointerEvents:"none"},children:yi.jsxs(qb,{component:"div",disableHoverStyle:!0,children:[yi.jsx(Yb,{"data-id":"image-container",children:yi.jsx(op,{})}),yi.jsxs(Kb,{children:[yi.jsx(M,{"data-id":"title-container",height:32,children:yi.jsx(op,{})}),yi.jsx(op,{height:20}),yi.jsx(op,{height:16,width:"60%"})]})]})}):yi.jsx(Gb,{children:yi.jsxs(qb,{component:"div",disableHoverStyle:!0,onClick:d,children:[yi.jsxs(Yb,{"data-id":"image-container",sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`},children:[l&&yi.jsx(Zb,{body:"Demo",sx:{bottom:8,left:8}}),yi.jsx(Xb,{thumbnail:a,title:e,description:t})]}),yi.jsxs(Kb,{children:[yi.jsxs(M,{"data-id":"title-container",children:[yi.jsx(Ub,{title:e,maxLines:2}),yi.jsx(M,{"data-id":"more-actions-container",onClick:e=>{e.stopPropagation()},children:s})]}),yi.jsx(Nb,{loops:n,tests:i,drafts:o}),yi.jsx(Jb,{updatedDate:r,format:!0})]})]})}),tk=({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?yi.jsx(Gb,{disableRaisedEffect:!0,sx:{pointerEvents:"none",borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:yi.jsxs(qb,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[yi.jsx(Yb,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:yi.jsx(op,{})}),yi.jsx(Kb,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:yi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[yi.jsx(op,{width:"100%",height:20}),yi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[yi.jsx(op,{height:20,width:"70%"}),yi.jsx(op,{height:16,width:200})]})]})})]})}):yi.jsx(Gb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${u.custom.palette.stroke.light}`},children:yi.jsxs(qb,{component:"div",onClick:d,sx:{display:"flex",gap:u.spacing(u.custom.margin.sm),alignItems:"center",padding:u.spacing(u.custom.padding.xs)},children:[yi.jsxs(Yb,{sx:{border:e=>`1px solid ${e.custom.palette.stroke.light}`,height:72,width:108},"data-id":"image-container",children:[l&&yi.jsx(Zb,{sx:{top:4,right:4},body:"Demo"}),yi.jsx(Xb,{thumbnail:a,title:e,description:t})]}),yi.jsx(Kb,{sx:{overflow:"hidden",pl:u.spacing(u.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:yi.jsxs(A,{gap:u.spacing(u.custom.margin.xs),children:[yi.jsx(Ub,{title:e,maxLines:1}),yi.jsxs(A,{direction:"row",gap:u.spacing(u.custom.margin.xs),justifyContent:"space-between",flexWrap:"wrap",children:[yi.jsx(Nb,{loops:n,tests:i,drafts:o}),yi.jsx(Jb,{updatedDate:r,format:!0,noWrap:!0})]})]})}),s&&yi.jsx(M,{onClick:e=>e.stopPropagation(),children:s})]})})},nk=e=>"list"===e.viewType?yi.jsx(tk,{...e}):yi.jsx(ek,{...e}),ik=({onClick:e,viewType:t,title:n})=>{const i=b();return"list"===t?yi.jsx(Gb,{disableRaisedEffect:!0,sx:{borderBottom:`1px solid ${i.custom.palette.stroke.light}`},children:yi.jsxs(qb,{component:"div",onClick:e,sx:{display:"flex",gap:i.spacing(i.custom.margin.sm),alignItems:"center",padding:i.spacing(i.custom.padding.xs)},children:[yi.jsx(Yb,{sx:{height:72,width:108},"data-id":"image-container",children:yi.jsx(Qb,{viewType:t,children:yi.jsx(Qs,{name:"add"})})}),yi.jsx(Kb,{sx:{overflow:"hidden",pl:i.spacing(i.custom.padding.sm),minWidth:67,flex:1,"&:last-child":{pb:0}},children:yi.jsx(A,{gap:i.spacing(i.custom.margin.xs),children:yi.jsx(Ub,{title:n,maxLines:1})})})]})}):yi.jsx(Gb,{sx:{height:"100%"},children:yi.jsxs(qb,{component:"div",onClick:e,disableHoverStyle:!0,sx:{height:"inherit",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},children:[yi.jsx(Yb,{"data-id":"image-container",sx:{width:"100%"},children:yi.jsx(Qb,{viewType:t,children:yi.jsx(Qs,{name:"add"})})}),yi.jsx(Kb,{children:yi.jsx(Ub,{title:n,maxLines:2})})]})})},ok=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)}`}))),rk=({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?yi.jsx(op,{width:"100%",height:36,sx:{borderRadius:`${n.spacing(n.custom.radius.lg)} ${n.spacing(n.custom.radius.lg)} 0 0`}}):yi.jsxs(ok,{type:e,children:[yi.jsx(Qs,{name:i.icon,size:16}),yi.jsx(ta,{variation:"sm",component:"p",sx:{px:n.spacing(n.custom.padding.xs)},children:i.label})]})},sk=F(A)((({theme:e})=>({border:`1px solid ${e.custom.palette.stroke.light}`,borderRadius:e.spacing(e.custom.radius.lg)}))),ak=F(A)((({theme:e})=>({gap:e.spacing(e.custom.padding.sm),padding:e.spacing(e.custom.padding.md)}))),lk=({preQuestionText:e,questionText:t,questionType:n,supportText:i,slotProps:o,loading:r})=>{const s=b();return r?yi.jsxs(sk,{children:[yi.jsx(rk,{loading:!0}),yi.jsxs(A,{gap:1,sx:{padding:s.spacing(s.custom.padding.md)},children:[yi.jsx(op,{width:"100%",height:22}),yi.jsx(op,{width:"100%",height:44}),yi.jsx(op,{width:"100%",height:66})]})]}):yi.jsxs(sk,{children:[yi.jsx(rk,{type:n}),yi.jsxs(ak,{children:[e&&yi.jsx(ta,{variation:"md",component:"p",color:s.custom.palette.text.secondary,sx:{whiteSpace:"pre-wrap"},children:e}),yi.jsx(ta,{variation:"md",component:"p",weight:"bold",sx:{whiteSpace:"pre-wrap"},children:t}),i&&yi.jsx(Bd,{children:i})]})]})},ck=F(Ql)({width:"100%","& .MuiOutlinedInput-root":{height:32}}),dk=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?.()};p(s,(()=>({...c.current,clear:d})));const u={color:l.custom.palette.icon.primary};return yi.jsx(ck,{inputRef:c,placeholder:i,value:o,onChange:e,onFocus:n,startAdornment:yi.jsx(Qs,{name:"search",size:17,sx:u}),endAdornment:o?yi.jsx(M,{onClick:d,sx:{cursor:"pointer",display:"flex"},children:yi.jsx(Qs,{name:"close",size:17,sx:u})}):void 0,...r})})),uk=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1),justifyContent:"space-between",padding:1}))),pk=F(M)((({theme:e})=>({alignItems:"center",display:"flex",gap:e.spacing(1)}))),hk=F(ta)((({theme:e})=>({color:e.custom.palette.text.secondary}))),mk=({loading:e,...t})=>yi.jsx(yi.Fragment,{children:e?yi.jsx(gk,{...t}):yi.jsx(xk,{...t})}),xk=({buttons:e,subtitle:t,title:n})=>yi.jsx(yi.Fragment,{children:yi.jsx(uk,{sx:{justifyContent:"space-between"},children:yi.jsx(Z,{children:yi.jsx(U,{container:!0,spacing:2,children:yi.jsx(U,{size:12,children:yi.jsxs(pk,{sx:{justifyContent:"space-between",py:1},children:[yi.jsx(pk,{children:yi.jsxs(pk,{sx:{alignItems:"flex-start",flexDirection:"column",gap:0},children:[n&&yi.jsx(ta,{variation:"sm",component:"h2",weight:"bold",children:n}),t&&yi.jsx(hk,{variation:"sm",component:"p",children:t})]})}),e&&yi.jsx(pk,{children:e})]})})})})})}),gk=({title:e,subtitle:t,buttons:n})=>yi.jsx(yi.Fragment,{children:yi.jsx(uk,{sx:{justifyContent:"space-between"},children:yi.jsx(Z,{children:yi.jsx(U,{container:!0,spacing:2,children:yi.jsx(U,{size:12,children:yi.jsxs(pk,{sx:{justifyContent:"space-between",py:1},children:[yi.jsx(pk,{children:yi.jsxs(pk,{sx:{alignItems:"flex-start",flexDirection:"column",gap:.5},children:[e&&yi.jsx(op,{variant:"text",width:200,height:28}),t&&yi.jsx(op,{variant:"text",width:140,height:17})]})}),yi.jsx(pk,{children:n&&yi.jsxs(yi.Fragment,{children:[yi.jsx(op,{variant:"text",width:72,height:28}),yi.jsx(op,{variant:"text",width:56,height:28})]})})]})})})})})}),fk=F(Dw.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)}))),vk=F(Dw.div)((({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(e.custom.padding.sm)}))),Ck=({active:e,animated:t,label:n,sentimentScore:i,stat:o,title:r,onClick:s})=>{const a=b();return yi.jsxs(fk,{layout:t,active:e,onClick:s,children:[yi.jsx(ta,{component:"p",variation:"sm",weight:"bold",children:r}),yi.jsxs(vk,{layout:t,children:["number"==typeof i?yi.jsxs(yi.Fragment,{children:[yi.jsx(ta,{variation:"md",component:"p",weight:"bold",sx:{fontVariantNumeric:"tabular-nums",lineHeight:"160%"},children:yi.jsx(Nt,{value:i,format:{maximumFractionDigits:1},animated:t})}),yi.jsx(rh,{sentimentScore:i})]}):yi.jsx(ta,{component:"p",variation:"md",weight:"bold",sx:{fontVariantNumeric:"tabular-nums"},children:yi.jsx(yi.Fragment,{children:"number"==typeof o?yi.jsx(Nt,{value:o,format:{maximumFractionDigits:1},animated:t}):"-"})}),!!n&&yi.jsx(ta,{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 yk=({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 yi.jsx(Vu,{variation:"raised",borderradius:"lg",...d,sx:$e({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:yi.jsxs(A,{component:"article",gap:2,children:[yi.jsxs(A,{component:"header",gap:1,justifyContent:"space-between",children:[yi.jsxs(A,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[c?yi.jsx(op,{sx:{width:90,height:32}}):yi.jsx(Mh,{status:t,...l?.status}),!c&&Boolean(n?.length)&&yi.jsx(Hu,{trigger:yi.jsx(Xd,{icon:yi.jsx(Qs,{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?yi.jsx(op,{}):yi.jsx(ta,{component:"h1",weight:"bold",...l?.title,sx:$e({fontSize:e=>e.custom.typography.body.xl},l?.title?.sx),children:o})]}),yi.jsx(M,{children:c?yi.jsx(M,{display:"flex",flexDirection:"row",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>yi.jsx(op,{sx:{maxWidth:50}},`test-item-skeleton-${t}`)))}):Boolean(r?.length)&&yi.jsx(nn,{style:{display:"flex",flexWrap:"wrap",maxHeight:30,gap:"4px",...u&&{maxHeight:"none"}},alwaysShowTruncator:u,renderTruncator:({hiddenItemsCount:e})=>e>0?yi.jsx(ou,{body:`+${e}`,weight:"light",onClick:e=>{e.stopPropagation(),p(!0)},...l?.tagsExpand,sx:$e({background:e=>e.custom.palette.neutral[50]},l?.tagsExpand?.sx)}):yi.jsx(Xd,{sizing:"sm",icon:yi.jsx(Qs,{name:"chevron-up",size:16}),onClick:e=>{e.stopPropagation(),p(!1)},...l?.tagsCollapse,sx:$e({color:e=>e.custom.palette.icon.primary},l?.tagsCollapse?.sx)}),children:r.map((e=>yi.jsx(ou,{body:e,weight:"light",...l?.pill,sx:$e({background:e=>e.custom.palette.neutral[50]},l?.pill?.sx)},e)))})}),!c&&s?.progress&&yi.jsx(Vu,{variation:"sunken",borderradius:"md",sx:{border:e=>`1px solid ${e.custom.palette.neutral[100]}`,padding:e=>e.spacing(e.custom.padding.md)},children:yi.jsxs(A,{gap:2,children:[yi.jsx(np,{variation:"determinate",value:s.progress.percentage}),yi.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:[yi.jsx(M,{flexBasis:0,flexGrow:1,children:yi.jsx(wk,{animated:e,label:"Completed",primaryText:s.progress.completed.toString(),secondaryText:`of ${s.progress.total}`})}),yi.jsx(M,{flexBasis:0,flexGrow:1,children:yi.jsx(wk,{animated:e,label:"Incomplete",primaryText:s.progress.incomplete.toString(),secondaryText:`${s.progress.incompletePercentage}%`})}),yi.jsx(M,{flexBasis:0,flexGrow:1,children:yi.jsx(wk,{animated:e,label:"Duration",primaryText:s.progress.averageDuration,secondaryText:"average"})})]}),"results-ready"!==t&&yi.jsxs(M,{display:"flex",justifyItems:"center",gap:.3,children:[yi.jsx(ta,{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?yi.jsxs(yi.Fragment,{children:[(e=>{switch(e){case"draft":default:return"";case"in-progress":return"Expected to complete in";case"results-ready":return"Completed"}})(t)," ",yi.jsx("strong",{children:s.progress.estimatedTimeToComplete})]}):yi.jsx(yi.Fragment,{children:"Not enough data to estimate completion time"})}),s.progress.estimatedTimeToComplete&&yi.jsx(Js,{message:"Based on current respondent completion rates",slotProps:{wrapper:{sx:{display:"inline-flex"}}},children:yi.jsx(M,{lineHeight:"normal",display:"flex",onClick:e=>e.stopPropagation(),children:yi.jsx(Qs,{name:"info",size:16})})})]})]})}),yi.jsxs(M,{component:"footer",display:"flex",flexDirection:"row",justifyContent:a?"space-between":"end",gap:1,children:[a&&yi.jsx(M,{display:"flex",alignItems:"center",gap:1,children:c?yi.jsxs(yi.Fragment,{children:[yi.jsx(op,{sx:{borderRadius:"50%",width:24,aspectRatio:1,flexShrink:0}}),yi.jsx(op,{sx:{width:100}})]}):yi.jsx(yi.Fragment,{children:yi.jsx(ta,{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&&yi.jsxs(M,{display:"flex",alignItems:"center",gap:2,flexShrink:0,children:[yi.jsx(jk,{animated:e,iconName:"data-bar",label:"answers",value:s?.count?.answers??0}),yi.jsx(jk,{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 yi.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:[yi.jsx(ta,{component:"p",sx:{width:"100%",textAlign:{md:"left",lg:"center"},fontSize:e=>e.custom.typography.body.sm},children:t}),yi.jsx(ta,{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},children:yi.jsx(yi.Fragment,{children:o||s?yi.jsx(yi.Fragment,{children:o?yi.jsxs(yi.Fragment,{children:[yi.jsx(Nt,{value:Number(r[0]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e}),":",yi.jsx(Nt,{value:Number(r[1]),format:{minimumIntegerDigits:2,useGrouping:!1},animated:e})]}):yi.jsx(Nt,{value:Number(n),animated:e})}):yi.jsx(yi.Fragment,{children:n})})}),yi.jsx(ta,{component:"p",sx:{color:e=>e.custom.palette.text.secondary,fontSize:e=>e.custom.typography.body.sm,flexShrink:0},children:a?yi.jsxs(yi.Fragment,{children:[yi.jsx(Nt,{value:i.replace("%",""),animated:e}),"%"]}):i})]})},jk=({animated:e,iconName:t,label:n,value:i,slotProps:o})=>yi.jsxs(M,{display:"flex",alignItems:"center",gap:.5,children:[yi.jsx(Qs,{name:t,...o?.icon,sx:$e({color:e=>e.custom.palette.icon.secondary},o?.icon?.sx)}),yi.jsxs(ta,{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:[yi.jsx(Nt,{value:i,animated:e})," ",yi.jsx("span",{children:n})]})]}),bk=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 yi.jsxs(Vu,{ref:c,active:a,borderradius:"lg",variation:u,...l,sx:$e({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:[yi.jsxs(A,{direction:"row",gap:1,children:[yi.jsxs(A,{direction:"row",gap:1,width:"100%",sx:{minHeight:"22px"},children:[yi.jsx(yi.Fragment,{children:o?yi.jsx(op,{sx:{width:17,height:16}}):yi.jsx(M,{sx:{height:"22px",display:"flex",placeItems:"center"},children:yi.jsx(ph,{colorScheme:e,disabled:t&&"dimmed"===t})})}),o?yi.jsx(op,{sx:{marginTop:"-1px"}}):yi.jsx(ta,{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)&&yi.jsx(Hu,{trigger:yi.jsx(Xd,{icon:yi.jsx(Qs,{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?yi.jsx(M,{display:"flex",flexDirection:"column",gap:.5,children:[...new Array(3).fill(void 0)].map(((e,t)=>yi.jsx(op,{height:19},`TestKPICard__Skeleton--description-${t}`)))}):yi.jsx(Fc,{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]:zu(u,d)}},children:i})]})})),kk=(e,t=1e5)=>Math.round(e*t)/t;var Mk=w((({playing:e,ended:t,seeking:n,buffering:i,handleAction:o})=>yi.jsx(Xd,{disabled:i,loading:i,onClick:()=>o(),shape:"round",sizing:"xl",variation:"outlined",icon:yi.jsx(Qs,{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 zk=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}`},Sk=(e,t)=>t/e*100,Vk=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}))),Fk=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]}}))),Tk=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 Lk=w((({startTime:e,endTime:t,currentTime:n,markers:i=[],markerIndicator:o=!0,markerIndicatorSize:r=3,markerIndicatorMode:s,marker:a})=>{const l=d((()=>Sk(t-e,n-e)),[n,e,t]),c=d((()=>"time"===s?r:(t-e)*r),[t,e,s,r]),{width:u,left:p}=d((()=>{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=d((()=>i.map((({timeStamp:i,id:o,meta:r})=>({id:o,timeStamp:i,markerPosition:Sk(t-e,i),isActive:Math.abs(i-n+e)<=c/2+1e-10,meta:r})))),[i,t,e,n,c]),m=a||Tk;return yi.jsxs(Vk,{children:[o&&yi.jsx(Fk,{width:u,left:p}),h.map((({id:e,markerPosition:t,isActive:n,meta:i})=>yi.jsx(m,{isActive:n,sx:{zIndex:2,left:`${t}%`},...i&&{meta:i}},e)))]})}));var Pk=w(F(le)((({theme:e,type:t,muted:n,value:i})=>({padding:0,"@media (pointer: coarse)":{padding:0},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:4,height:4,"&:hover":{boxShadow:`${tt(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${tt(e.custom.palette.purple[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${tt(e.custom.palette.purple[300],.2)} 0px 0px 0px 4px`}},..."volume"===t?{height:100,color:e.custom.palette.icon.primary,...(n||0===i)&&{opacity:.5},[`.${Ee.valueLabel}`]:{background:e.custom.palette.surface.default,color:e.custom.palette.text.primary,fontSize:e.custom.typography.body.xs,fontWeight:"normal",boxShadow:e.custom.elevation.overlay},[`.${Ee.thumb}`]:{border:0,boxShadow:"none",width:8,height:8,"&:hover":{boxShadow:`${tt(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`},[`&.${Ee.active}`]:{width:8,height:8,boxShadow:`${tt(e.custom.palette.neutral[300],.2)} 0px 0px 0px 8px`},[`&.${Ee.focusVisible}`]:{boxShadow:`${tt(e.custom.palette.neutral[300],.2)} 0px 0px 0px 4px`}}}:{color:e.custom.palette.purple.main,height:4,[`.${Ee.rail}`]:{height:4,background:tt(e.custom.palette.neutral[400],.5),opacity:1},[`.${Ee.track}`]:{border:0,boxShadow:"none",height:4}}}))));const Ak=F(A)((({theme:e})=>({flexDirection:"row",gap:e.spacing(e.custom.padding.xs),alignItems:"center"}))),Bk=({handleVolumeMute:e,handleVolumeChange:t,muted:n,volume:i,volumeControlsType:o})=>{const r=yi.jsx(Xd,{icon:(()=>{switch(!0){case 0===i||n:return yi.jsx(Ke,{});case i<.5:return yi.jsx(rn,{});default:return yi.jsx(Xe,{})}})(),variation:"default",shape:"default",sizing:"xs",onClick:e});return yi.jsx(Ak,{children:"mute"===o?r:yi.jsx(Tu,{bindOn:["hover"],trigger:r,popperProps:{placement:"top",style:{zIndex:40}},children:yi.jsx(Pk,{muted:n,type:"volume",valueLabelDisplay:"auto",orientation:"vertical",step:.01,value:i,valueLabelFormat:e=>`${Math.ceil(Sk(1,e))}%`,min:0,max:1,onChange:(e,n)=>{e.preventDefault(),t(n)}})})})},Ek=F(A)({flex:1,position:"relative"}),Hk=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)}))),Rk=F(ta)((({theme:e})=>({color:e.custom.palette.text.secondary,textOverflow:"ellipsis",overflow:"hidden",textWrap:"nowrap",marginLeft:"auto"}))),Ik=F(M)((({theme:e})=>({position:"relative",width:"100%",display:"flex",gap:e.spacing(e.custom.margin.xs),alignItems:"center"}))),$k=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 Dk=w((({startTime:e,currentTime:t,endTime:n,playing:o,markerIndicator:r,bufferRanges:s,handleSeeking:a,handleSeekEnd:c,handleSeekStart:d,markers:u,marker:p,markerIndicatorMode:h,markerIndicatorSize:m,volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C,volumeControls:y})=>{const[w,j]=i(o),b=l(((e,t)=>{e.stopPropagation(),a?.(t)}),[a]),k=l(((e,t)=>{e.stopPropagation(),c?.(w),w&&j(!1)}),[w,c]),M=l((e=>{e.stopPropagation(),o&&j(o),d?.(o)}),[o,d]),z=l((()=>{o&&j(o),d?.(o)}),[o,d]),S=l((()=>{c?.(w),w&&j(!1)}),[w,c]);return yi.jsxs(Ek,{children:[yi.jsxs(Hk,{direction:"row",children:[yi.jsxs(Rk,{component:"p",variation:"md",children:[zk(t-e)," / ",zk(n-e)]}),y&&yi.jsx(Bk,{volume:x,muted:g,handleVolumeMute:f,handleVolumeChange:v,volumeControlsType:C})]}),s.length>0&&s.map((({startPercent:e,widthPercent:t},n)=>yi.jsx($k,{left:e,width:t},n))),yi.jsxs(Ik,{children:[yi.jsx(Pk,{step:.05,value:t,max:n,min:e,onChangeCommitted:k,onMouseDown:M,onChange:b,onTouchStart:z,onTouchEnd:S}),u&&u?.length>0&&yi.jsx(Lk,{markerIndicatorMode:h,markerIndicatorSize:m,markerIndicator:r,markers:u,marker:p,startTime:e,currentTime:t,endTime:n})]})]})}));const Ok=F(Vu)((({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"}))),_k=F(A)((({theme:e})=>({alignItems:"center",gap:e.spacing(e.custom.padding.md),justifyContent:"space-between",flexDirection:"row",flex:1}))),Nk=n((({id:e,videoElement:t,initialEndTime:n=0,initialCurrentTime:r=0,initialMuted:s,initialVolume:a,markers:c,options:d,slots:u,events:{onEnd:h,onPlay:m,onSeekEnd:x,onSeeking:g,onSeekStart:f,onTimeUpdate:v,onPause:C,onVolumeChange:y,onVolumeMute:w,onRestart:j,onFirstPlay:b,onFirstEnded:k,onReset:M}={},videoSeekTime:z},S)=>{const[V,F]=i(!1),[T,L]=i([]),P={rtl:!1,volumeControls:!0,normaliseTime:!1,markerIndicatorMode:"time",markerIndicator:!1,markerIndicatorSize:3,volumeControlsType:"mute",...d},[{seeking:A,endTime:B,currentTime:E,playing:H,buffering:R,loaded:I,ended:$,volume:D,muted:O,startTime:_,firstPlay:N,firstEnded:W},Z]=i({startTime:kk(P.normaliseTime?r:0),endTime:kk(P.normaliseTime?n:t.duration),currentTime:kk(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:kk(P.normaliseTime?r:0),endTime:kk(P.normaliseTime?n:t.duration),currentTime:kk(r??0)}))),t.currentTime=kk(r??0)}),[r,n]);const U=l((()=>{Z((e=>({...e,playing:!1,ended:!0,...!W&&{firstEnded:!0}}))),h&&h(),!W&&k&&k()}),[W]);o((()=>{if(!t||null==z)return;(async()=>{const e=!t.paused,n=z===B;Z((e=>({...e,playing:!1,currentTime:kk(z)}))),await new Promise((e=>{const n=()=>{t.removeEventListener("seeked",n),e()};t.addEventListener("seeked",n),setTimeout(e,500)})),Z((e=>({...e,currentTime:kk(z)}))),await new Promise((e=>setTimeout(e,50))),Z((t=>({...t,playing:e,currentTime:kk(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&&w&&w(!O),D!==e.target?.volume&&y&&y(D)}),[O,D]),q=l((()=>{const e=kk(t.currentTime)>=B&&B!==kk(t.duration)&&!$,n=kk(t.currentTime)>=B&&B===kk(t.duration)&&!$&&!H;(e||n)&&(t.pause(),t.dispatchEvent(new Event("ended"))),Z((e=>({...e,currentTime:kk(t.currentTime)}))),v&&v(kk(t.currentTime))}),[B,$,H]),Y=l((()=>{Z((e=>({...e,playing:!1}))),C&&C()}),[E]),X=l((()=>{Z((e=>({...e,playing:!0,ended:!1,buffering:!1,...!N&&{firstPlay:!0}}))),!N&&b&&b(),m&&m()}),[N]),K=l((()=>{Z((e=>({...e,buffering:!0})))}),[]),Q=l((()=>{Z((e=>({...e,buffering:!1})))}),[R]),J=l((()=>{const e=[];for(let n=0;n<t.buffered.length;n++){const i=t.buffered.start(n),o=t.buffered.end(n);if(o>=_&&i<=B){const t=Math.max(i,_),n=Math.min(o,B);e.push({start:t-_,end:n-_,startPercent:(t-_)/(B-_)*100,widthPercent:(n-t)/(B-_)*100})}}L(e)}),[A,B,E,H,R,I,$,D,O,_,T]),ee=l((async e=>{H&&ie(),t.currentTime=_,e&&await ne(),j&&j()}),[H,E,_,B,$]),te=l((async()=>{H&&ie(),t.currentTime=_,Z((e=>({...e,startTime:kk(P.normaliseTime?r:0),endTime:kk(P.normaliseTime?n:t.duration),currentTime:kk(r??0),loaded:!0,ended:!1,firstPlay:!1,firstEnded:!1,seeking:!1,playing:!1}))),M&&M()}),[H,E,_,B,$,r,n]),ne=async()=>{await t.play()},ie=()=>{t.pause()},oe=l((e=>{t.currentTime=kk(e),Z((t=>({...t,currentTime:kk(e),ended:!1,seeking:!0,buffering:!1,firstPlay:!N||t.firstPlay,bufferProgress:e}))),g&&g(e),!N&&b&&b()}),[R,N]),re=l((async()=>{document.hidden?H&&!t.paused?(F(!0),ie()):F(!1):(V&&!H&&await ne(),F(!1))}),[H,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&&H&&t.pause(),Z((e=>({...e,...n?{currentTime:n}:{},ended:!i&&e.ended,seeking:!1}))),x&&x(n)}),[H,$,R,A]);return on("visibilitychange",re,document),on("pause",Y,t),on("playing",X,t),on("timeupdate",q,t),on("ended",U,t),on("volumechange",G,t),on("waiting",K,t),on("canplay",Q,t),on("progress",J,t),p(S,(()=>({play:ne,pause:ie,restart:ee,reset:te,seek:(e,t,n)=>ae(t,e,n),videoState:{seeking:A,endTime:B,currentTime:E,playing:H,buffering:R,loaded:I,ended:$,volume:D,firstPlay:N,firstEnded:W,muted:O,startTime:_}}))),yi.jsxs(Ok,{variation:"raised",borderradius:"xl",id:e,children:[yi.jsxs(_k,{...P?.rtl&&{dir:"rtl"},children:[yi.jsx(Mk,{seeking:A,playing:H,ended:$,buffering:R,handleAction:async()=>{$?await ee(!0):H?ie():await ne()}}),yi.jsx(Dk,{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:E,endTime:B,playing:H,bufferRanges:T,buffering:R,volume:D,muted:O,volumeControls:P.volumeControls,volumeControlsType:P.volumeControlsType,handleVolumeMute:()=>{t.muted=!O},handleVolumeChange:e=>{t.volume=e,O&&(t.muted=!1)}})]}),u?.bottom]})}));var Wk=w(Nk);const Zk=F(M)((({theme:e})=>({backgroundColor:e.custom.palette.surface.sunken,display:"flex",flexDirection:"row",gap:e.spacing(e.custom.margin.sm),padding:e.spacing(e.custom.padding.sm),borderRadius:e.spacing(e.custom.radius.md),alignSelf:"stretch"}))),Uk=F(A)((({theme:e})=>({gap:e.spacing(e.custom.margin.xs),flexDirection:"row",flexWrap:"wrap",flex:"1 1 0",alignItems:"flex-start",justifyContent:"flex-end"}))),Gk=({demographicOptionLabel:e,demographicSelectionLabels:t})=>yi.jsxs(Zk,{children:[yi.jsx(ta,{component:"p",weight:"bold",variation:"xs",sx:{maxWidth:"128px",color:e=>e.custom.palette.text.primary,paddingTop:"1px"},children:e}),yi.jsx(Uk,{children:t.map(((e,t)=>yi.jsx(Ju,{label:e,sx:{maxWidth:"256px"}},`${t}-${e}`)))})]}),qk=F(Vu)((({theme:e,disabled:t,active:n})=>({position:"relative",display:"flex",gap:e.spacing(e.custom.margin.sm),alignItems:"center",minWidth:140,width:"100%",transition:"all 0.2s ease",cursor:t?"not-allowed":"pointer",border:`1px solid ${n?e.custom.palette.blue[500]:e.custom.palette.interaction.none}`,"&:before":{content:'""',position:"absolute",inset:0,borderRadius:"inherit",transition:"all 0.2s ease",pointerEvents:"none",backgroundColor:t?e.custom.palette.interaction.disabledMuted:"transparent"},"&:hover":{"&:before":{backgroundColor:t?e.custom.palette.interaction.disabledMuted:e.custom.palette.interaction.hover}},"&:active":{"&:before":{backgroundColor:t?e.custom.palette.interaction.disabledMuted:e.custom.palette.interaction.press}}}))),Yk=({disabled:e,loading:t,active:n,onClick:i,icon:o,label:r,slotProps:s,...a})=>{const l=b();return yi.jsx(qk,{borderradius:"md",variation:"default",active:!e&&n,disabled:e,onClick:e?void 0:i,sx:{px:l.custom.padding.sm,py:l.custom.padding.xs,...s?.surface?.sx},...s?.surface,...a,children:yi.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:l.spacing(l.custom.margin.sm)},className:"emoji-list-item-content-container",children:[o&&yi.jsx(yi.Fragment,{children:t?yi.jsx(op,{variant:"text",width:24,sx:{borderRadius:"50%"}}):yi.jsx(bc,{disabled:e,checked:!0,...s?.icon,children:o})}),r&&yi.jsx(M,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:l.spacing(l.custom.margin.sm)},className:"emoji-list-item-label-container",children:t?yi.jsx(op,{variant:"text",width:120}):yi.jsx(ta,{component:"p",variation:"md",sx:{color:e?l.custom.palette.text.disabled:l.custom.palette.text.primary},...s?.label,children:r})})]})})},Xk=F(qk)((({theme:e,disabled:t})=>({border:`1px solid ${e.custom.palette.stroke.default}`,cursor:"initial",...t&&{backgroundColor:e.custom.palette.interaction.disabled}}))),Kk=({dragHandle:e=!1,disabled:t,loading:n,onDelete:i,primaryAction:o,icon:r,label:s,slotProps:a,...l})=>{const c=b();return yi.jsxs(Xk,{borderradius:"md",variation:"default",disabled:t,sx:{p:c.custom.padding.sm,...a?.surface?.sx},...a?.surface,...l,children:[e&&yi.jsx(M,{sx:{display:"flex",alignItems:"center"},className:"emoji-list-item-drag-handle-container",children:yi.jsx(Xd,{disabled:t,sizing:"xs",icon:yi.jsx(Qs,{name:"drag-handle",color:c.custom.palette.icon.secondary}),...a?.dragHandle})}),yi.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm),flex:"1 0 0",px:c.spacing(c.custom.padding.sm)},className:"emoji-list-item-content-container",children:[r&&yi.jsx(yi.Fragment,{children:n?yi.jsx(op,{width:24,height:24,sx:{borderRadius:"50%"}}):yi.jsx(bc,{disabled:t,checked:!0,...a?.icon,children:r})}),s&&yi.jsx(M,{sx:{height:24,flexGrow:1,display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.sm)},className:"emoji-list-item-label-container",children:n?yi.jsx(op,{width:100,height:24}):yi.jsx(ta,{component:"p",variation:"md",sx:{color:t?c.custom.palette.text.disabled:c.custom.palette.text.primary},...a?.label,children:s})})]}),(o||i)&&yi.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:c.spacing(c.custom.margin.xs)},className:"emoji-list-item-actions-container",children:[o&&yi.jsx(yi.Fragment,{children:n?yi.jsx(op,{width:24,height:24}):o}),i&&yi.jsx(yi.Fragment,{children:n?yi.jsx(op,{width:24,height:24}):yi.jsx(Xd,{sizing:"xs",disabled:t,icon:yi.jsx(Qs,{name:"delete",color:c.custom.palette.icon.secondary}),onClick:e=>{e.stopPropagation(),i&&i()},...a?.deleteAction})})]})]})},Qk="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",Jk=(e,t,n)=>He({direction:n,custom:{palette:{black:"#000000",white:"#ffffff",neutral:Gn[e],neutralAlpha:"light"===e?$n:Dn,purple:Yn[e],red:Xn[e],peach:Kn[e],yellow:Qn[e],blue:Jn[e],green:ei[e],icon:ui[e].icon,interaction:ui[e].interaction,stroke:ui[e].stroke,surface:ui[e].surface,text:ui[e].text,input:ui[e].input,skeleton:ui[e].skeleton,data:ui[e].data,body:ui[e].surface.default},margin:oi,padding:ri,radius:si,elevation:ai,elevationFilter:li,boxShadow:ci,easing:di,typography:ua[t]},palette:{mode:e,primary:{main:On[500]}},spacing:ii,shape:{borderRadius:ii,hotspot:{default:12,active:24}},breakpoints:{values:ti},typography:{fontFamily:`"${hi.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:pa(t),styleOverrides:{root:{color:ui[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: '${hi.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.Domaine.default.weight};\n src: url(${Qk}${hi.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${hi.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.Domaine.bold.weight};\n src: url(${Qk}${hi.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${hi.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.FoundersGrotesk.default.weight};\n src: url(${Qk}${hi.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${hi.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${hi.FoundersGrotesk.bold.weight};\n src: url(${Qk}${hi.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${ti.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${ti.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:hi.FoundersGrotesk.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*ii}px ${e.padding.md*ii}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}});var eM="production"===process.env.NODE_ENV,tM="Invariant failed";const nM=c(null),iM=(e="light",t="lg",n="ltr")=>{const{width:r}=zc(),[a,l]=i(e),[c,u]=i(t),[p,h]=i(n),[m,x]=i(!1),[g,f]=i("");o((()=>{p&&document.documentElement.setAttribute("dir",p)}),[p]);o((()=>{s((()=>{u(r&&r<ti.lg?"sm":"lg")}))}),[r]),o((()=>{s((()=>{h(n)}))}),[n]),o((()=>{s((()=>{l(e)}))}),[e]);const v=d((()=>Jk(a,c,p)),[a,p,c]),C=V(v.breakpoints.only("sm"),{noSsr:!0}),y=V(v.breakpoints.only("md"),{noSsr:!0}),w=V(v.breakpoints.between("lg","xl"),{noSsr:!0}),j=V(v.breakpoints.up("xl"),{noSsr:!0});return o((()=>{s((()=>{C&&f("sm"),y&&f("md"),w&&f("lg"),j&&f("xl")}))}),[C,y,w,j]),{breakpoint:g,gridOverlayVisible:m,mode:a,theme:v,toggleGridOverlay:()=>{s((()=>{x((e=>!e))}))},toggleMode:e=>{s((()=>{if(e)return l(e);l((e=>"light"===e?"dark":"light"))}))}}},oM=()=>{const e=u(nM);return function(e,t){if(!e){if(eM)throw new Error(tM);var n=t,i="".concat(tM,": ").concat(n);throw new Error(i)}}(e,"useTheme must be used within a ThemeProvider"),e};var rM=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var sM="undefined"!=typeof document,aM=function(e,t,n){for(var i=0,o=0;i=o,o=Tn(),38===i&&12===o&&(t[n]=1),!Vn(o);)Sn();return Pn(e,An)},lM=function(e,t){return wn(function(e,t){var n=-1,i=44;do{switch(Vn(i)){case 0:38===i&&12===Tn()&&(t[n]=1),e[n]+=aM(An-1,t,n);break;case 2:e[n]+=Ln(i);break;case 4:if(44===i){e[++n]=58===Tn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fn(i)}}while(i=Sn());return e}(jn(e),t))},cM=new WeakMap,dM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||cM.get(n))&&!i){cM.set(e,!0);for(var o=[],r=lM(t,o),s=n.props,a=0,l=0;a<r.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=o[a]?r[a].replace(/&\f/g,s[c]):s[c]+" "+r[a]}}},uM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function pM(e,t){switch(bn(e,t)){case 5103:return xn+"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 xn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+e+gn+e+fn+e+e;case 6828:case 4268:return xn+e+fn+e+e;case 6165:return xn+e+fn+"flex-"+e+e;case 5187:return xn+e+mn(e,/(\w+).+(:[^]+)/,xn+"box-$1$2"+fn+"flex-$1$2")+e;case 5443:return xn+e+fn+"flex-item-"+mn(e,/flex-|-self/,"")+e;case 4675:return xn+e+fn+"flex-line-pack"+mn(e,/align-content|flex-|-self/,"")+e;case 5548:return xn+e+fn+mn(e,"shrink","negative")+e;case 5292:return xn+e+fn+mn(e,"basis","preferred-size")+e;case 6060:return xn+"box-"+mn(e,"-grow","")+xn+e+fn+mn(e,"grow","positive")+e;case 4554:return xn+mn(e,/([^-])(transform)/g,"$1"+xn+"$2")+e;case 6187:return mn(mn(mn(e,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),e,"")+e;case 5495:case 3959:return mn(e,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return mn(mn(e,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+fn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xn+e+e;case 4095:case 3583:case 4068:case 2532:return mn(e,/(.+)-inline(.+)/,xn+"$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(Mn(e)-1-t>6)switch(kn(e,t+1)){case 109:if(45!==kn(e,t+4))break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+gn+(108==kn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zn(e,"stretch")?pM(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kn(e,t+1))break;case 6444:switch(kn(e,Mn(e)-3-(~zn(e,"!important")&&10))){case 107:return mn(e,":",":"+xn)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(45===kn(e,14)?"inline-":"")+"box$3$1"+xn+"$2$3$1"+fn+"$2box$3")+e}break;case 5936:switch(kn(e,t+11)){case 114:return xn+e+fn+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xn+e+fn+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xn+e+fn+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xn+e+fn+e+e}return e}var hM,mM,xM=sM?void 0:(hM=function(){return e=function(){return{}},t=Object.create(null),function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]};var e,t},mM=new WeakMap,function(e){if(mM.has(e))return mM.get(e);var t=hM(e);return mM.set(e,t),t}),gM=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case Cn:e.return=pM(e.value,e.length);break;case vn:return pn([hn(e,{value:mn(e.value,"@","@"+xn)})],i);case cn:if(e.length)return dn(e.props,(function(t){switch(un(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([hn(e,{props:[mn(t,/:(read-\w+)/,":"+gn+"$1")]})],i);case"::placeholder":return pn([hn(e,{props:[mn(t,/:(plac\w+)/,":"+xn+"input-$1")]}),hn(e,{props:[mn(t,/:(plac\w+)/,":"+gn+"$1")]}),hn(e,{props:[mn(t,/:(plac\w+)/,fn+"input-$1")]})],i)}return""}))}}],fM=function(e){var t=e.key;if(sM&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,o,r=e.stylisPlugins||gM,s={},a=[];sM&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)})));var l=[dM,uM];if(xM){var c=[sn],d=ln(l.concat(r,c)),u=xM(r)(t),p=function(e,t){var n,i=t.name;return void 0===u[i]&&(u[i]=(n=e?e+"{"+t.styles+"}":t.styles,pn(yn(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=[sn,an((function(e){h.insert(e)}))],x=ln(l.concat(r,m));o=function(e,t,n,i){var o;h=n,o=e?e+"{"+t.styles+"}":t.styles,pn(yn(o),x),i&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new rM({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(a),g};const vM=()=>yi.jsx(Re,{styles:{"strong, b":{fontWeight:500}}}),CM=fM({key:"muirtl",stylisPlugins:[Bn,Hn]}),yM=fM({key:"mui"}),wM=({mode:e="light",screenSize:t="lg",direction:n="ltr",ignoreCacheProvider:i,children:o})=>{const r=iM(e,t,n),s=()=>yi.jsxs(nt,{theme:r.theme,children:[yi.jsx(Ie,{}),yi.jsx(vM,{}),o]});return yi.jsx(nM.Provider,{value:r,children:i?s():yi.jsx(En,{value:"rtl"===n?CM:yM,children:s()})})};export{Zp as AISummary,_p as AIWrittenByLockUp,al as Accordion,Wp as AiContentContainer,sl as AnnualController,eh as AssetItem,th as AuthContainerSurface,ul as AuthFormHeader,pl as Avatar,hl as AvatarGroup,gl as Badge,Sl as BrandBadge,Bl as Breadcrumb,Zl as BulletGraphic,Yl as Button,Gl as ButtonBase,Xl as Checkbox,Jl as CheckboxGroup,nh as ClipboardCopyingOverlay,ec as ColorBackgroundContainer,ch as CommentCard,ac as CreatableAutocomplete,lc as CustomField,sa as DEFAULT_MAX_INPUT_LENGTH,fh as DataPointInfo,Gk as DemographicSelectionSection,Cc as Differential,wc as DropdownMenu,Yk as EmojiListItem,Kk as EmojiQuestionEditorOption,bc as EmojiWrapper,vh as EmptyStateCard,Fc as ExpandableTypographyClamp,Fh as ExtendedTestStatus,Ph as FilterCount,Eh as FilterGroupAccordion,Ow as FilterPyramidGraph,Uw as FilterRow,Bh as FilteredItemsCard,Lc as Flag,pi as FontWeight,nl as FormControlLabel,Sd as FormGenerator,Xw as GraphBar,Ad as GridOverlay,Kw as Header,Pc as Html,Bd as HtmlParser,Qs as Icon,Xd as IconButton,Gd as IconButtonBase,Qd as IconButtonGroup,eu as Image,Kl as InputFieldBase,Ac as InputLabel,uc as InputLabelHelp,jj as KpiDataPopover,ph as KpiIndicator,ou as Label,Oc as Likert,Fl as Link,su as Loader,au as Logo,Pj as LoopItem,Aj as LoopItemEmpty,cu as LoopsAiButton,du as Markdown,Hu as Menu,Iu as ModalActionsWrapper,$u as ModalContentWrapper,Du as ModalLayout,_j as Navigation,Uu as NavigationButton,Ku as Nudge,Nc as NumberField,Ob as OnboardingCard,Ju as Pill,Fp as PlanFeatureTable,Dp as PlanTierCard,Tu as Popper,ep as PoweredByWatermarkLogo,Yd as Progress,np as ProgressBar,nk as ProjectItem,ik as ProjectItemEmpty,lk as QuestionBlock,rk as QuestionLabel,xc as Radio,Wc as RadioGroup,id as Rank,rd as RichTextField,dk as SearchInput,mk as SectionHeader,tl as Select,rh as SentimentArrow,op as Skeleton,pd as Slider,nd as SortableList,md as StarRating,Vu as Surface,ol as Switch,Ck as Tab,yk as TestItem,bk as TestKPICard,rp as TextBarDivider,Ql as TextField,gd as Textarea,nM as ThemeContext,wM as ThemeProvider,Op as TickGroup,sp as Toast,Js as Tooltip,mp as TrialCard,ta as Typography,yp as UserMenu,Wk as VideoControls,wp as VideoModal,Fa as backgroundCreator,ii as base,Zn as blue,Jn as blueRamp,ci as boxShadow,ti as breakpoints,Ca as buttonHeightMap,va as buttonInteraction,oa as chooseArticle,kc as compareArrayMembers,Jk as customTheme,In as darkNeutral,Dn as darkNeutralAlpha,ra as defaultInputValidation,di as easing,ai as elevation,li as elevationFilter,ia as emailValidation,hi as fonts,qn as generateRamp,ba as getButtonSizing,ja as getButtonTypography,wa as getIconSizing,uh as getKpiIndicatorColor,Un as green,ei as greenRamp,Zd as iconButtonHelpers,Ks as iconSizeMap,Mc as isButton,dh as mapKpiColorSchemeByInteger,oi as margin,Rn as neutral,$n as neutralAlpha,Gn as neutralRamp,xa as outlined,ri as padding,aa as passwordValidation,Nn as peach,Kn as peachRamp,fa as primary,On as purple,Yn as purpleRamp,si as radius,_n as red,Xn as redRamp,ga as secondary,ui as semantic,ni as space,ma as subtle,Ta as useBreakpoint,jc as useDropdownMenu,Sc as useKeyCombo,Vc as usePrevious,zc as useScreenSize,oM as useTheme,iM as useThemeBuilder,Wn as yellow,Qn as yellowRamp};
|