@agregio-solutions/design-system 1.86.4 → 1.86.5
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/design-system.cjs +172 -163
- package/dist/design-system.js +864 -852
- package/package.json +1 -1
package/dist/design-system.cjs
CHANGED
|
@@ -2220,9 +2220,20 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2220
2220
|
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
2221
2221
|
}
|
|
2222
2222
|
|
|
2223
|
+
& ~ [data-design-system-component="Tabs"] {
|
|
2224
|
+
flex: 1;
|
|
2225
|
+
display: flex;
|
|
2226
|
+
flex-direction: column;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2223
2229
|
@media screen and (min-width: 768px) {
|
|
2224
2230
|
padding: var(--spacing-lg);
|
|
2225
2231
|
|
|
2232
|
+
& ~ [data-design-system-component="Tabs"] [role="tablist"] {
|
|
2233
|
+
padding-top: var(--spacing-xs);
|
|
2234
|
+
padding-inline: var(--spacing-lg);
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2226
2237
|
&[data-has-tabs="true"] {
|
|
2227
2238
|
padding-bottom: 0;
|
|
2228
2239
|
}
|
|
@@ -2327,13 +2338,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2327
2338
|
align-self: flex-start;
|
|
2328
2339
|
padding-right: 0;
|
|
2329
2340
|
}
|
|
2330
|
-
`,BP=P.div`
|
|
2331
|
-
margin-top: var(--spacing-xs);
|
|
2332
|
-
`,ah=l.createContext(void 0),_u=()=>l.useContext(ah),kP=({children:e,initialIsCollapsed:t=!0})=>{const[n,r]=l.useState(t);return c.jsx(ah.Provider,{value:{isCollapsed:n,setIsCollapsed:r},children:e})};function SP({title:e,subtitle:t,tagComponent:n,logo:r,onGoBack:a,breadcrumbsComponent:o,helperIconComponent:i,notificationIconComponent:u,additionalActions:s,tabsComponent:d,...p}){const f=je(PP),h=_u(),g=!!i||!!u||!!s;return c.jsxs(hP,{"data-has-tabs":!!d,...p,children:[c.jsxs(mP,{children:[r&&c.jsx(gP,{children:c.jsx(vP,{title:r,"data-title":r})}),h&&c.jsx(CP,{type:"button","aria-label":f.menuMobile,onClick:()=>h.setIsCollapsed(m=>!m),children:c.jsx(ne,{name:"menu"})})]}),c.jsxs(bP,{"data-has-tabs":!!d,children:[c.jsxs(xP,{children:[c.jsx(yP,{children:o}),c.jsxs($P,{"data-has-breadcrumbs":!!o,children:[a&&c.jsx("div",{children:c.jsx(De,{onClick:a,iconLeft:"arrow_back",mode:"tertiary","aria-label":f.goBack})}),c.jsxs("div",{children:[c.jsx(DP,{children:e}),c.jsxs(wP,{children:[!!n&&c.jsx("div",{children:n}),!!t&&c.jsx("div",{children:t})]})]})]})]}),g&&c.jsxs(EP,{children:[i,u,s]})]}),d&&c.jsx(BP,{children:d})]})}const PP={en:{goBack:"Go back",menuMobile:"Mobile menu"},fr:{goBack:"Retour",menuMobile:"Menu mobile"}};function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue.apply(null,arguments)}function TP(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]}function AP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var FP=(function(){function e(n){var r=this;this._insertTag=function(a){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,o),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(AP(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=TP(a);try{o.insertRule(r,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),ot="-ms-",tu="-moz-",ve="-webkit-",oh="comm",D3="rule",w3="decl",MP="@import",ih="@keyframes",VP="@layer",IP=Math.abs,Uu=String.fromCharCode,RP=Object.assign;function jP(e,t){return nt(e,0)^45?(((t<<2^nt(e,0))<<2^nt(e,1))<<2^nt(e,2))<<2^nt(e,3):0}function uh(e){return e.trim()}function LP(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,n){return e.replace(t,n)}function Q1(e,t){return e.indexOf(t)}function nt(e,t){return e.charCodeAt(t)|0}function ro(e,t,n){return e.slice(t,n)}function Jt(e){return e.length}function E3(e){return e.length}function Qo(e,t){return t.push(e),e}function OP(e,t){return e.map(t).join("")}var Wu=1,ca=1,lh=0,bt=0,_e=0,ya="";function Gu(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Wu,column:ca,length:i,return:""}}function Sa(e,t){return RP(Gu("",null,null,"",null,null,0),e,{length:-e.length},t)}function HP(){return _e}function KP(){return _e=bt>0?nt(ya,--bt):0,ca--,_e===10&&(ca=1,Wu--),_e}function Dt(){return _e=bt<lh?nt(ya,bt++):0,ca++,_e===10&&(ca=1,Wu++),_e}function an(){return nt(ya,bt)}function bi(){return bt}function Po(e,t){return ro(ya,e,t)}function ao(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sh(e){return Wu=ca=1,lh=Jt(ya=e),bt=0,[]}function dh(e){return ya="",e}function xi(e){return uh(Po(bt-1,es(e===91?e+2:e===40?e+1:e)))}function zP(e){for(;(_e=an())&&_e<33;)Dt();return ao(e)>2||ao(_e)>3?"":" "}function NP(e,t){for(;--t&&Dt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Po(e,bi()+(t<6&&an()==32&&Dt()==32))}function es(e){for(;Dt();)switch(_e){case e:return bt;case 34:case 39:e!==34&&e!==39&&es(_e);break;case 40:e===41&&es(e);break;case 92:Dt();break}return bt}function ZP(e,t){for(;Dt()&&e+_e!==57;)if(e+_e===84&&an()===47)break;return"/*"+Po(t,bt-1)+"*"+Uu(e===47?e:Dt())}function _P(e){for(;!ao(an());)Dt();return Po(e,bt)}function UP(e){return dh(yi("",null,null,null,[""],e=sh(e),0,[0],e))}function yi(e,t,n,r,a,o,i,u,s){for(var d=0,p=0,f=i,h=0,g=0,m=0,v=1,x=1,C=1,w=0,y="",$=a,B=o,k=r,D=y;x;)switch(m=w,w=Dt()){case 40:if(m!=108&&nt(D,f-1)==58){Q1(D+=be(xi(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:D+=xi(w);break;case 9:case 10:case 13:case 32:D+=zP(m);break;case 92:D+=NP(bi()-1,7);continue;case 47:switch(an()){case 42:case 47:Qo(WP(ZP(Dt(),bi()),t,n),s);break;default:D+="/"}break;case 123*v:u[d++]=Jt(D)*C;case 125*v:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+p:C==-1&&(D=be(D,/\f/g,"")),g>0&&Jt(D)-f&&Qo(g>32?Gc(D+";",r,n,f-1):Gc(be(D," ","")+";",r,n,f-2),s);break;case 59:D+=";";default:if(Qo(k=Wc(D,t,n,d,p,a,u,y,$=[],B=[],f),o),w===123)if(p===0)yi(D,t,k,k,$,o,f,u,B);else switch(h===99&&nt(D,3)===110?100:h){case 100:case 108:case 109:case 115:yi(e,k,k,r&&Qo(Wc(e,k,k,0,0,a,u,y,a,$=[],f),B),a,B,f,u,r?$:B);break;default:yi(D,k,k,k,[""],B,0,u,B)}}d=p=g=0,v=C=1,y=D="",f=i;break;case 58:f=1+Jt(D),g=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&KP()==125)continue}switch(D+=Uu(w),w*v){case 38:C=p>0?1:(D+="\f",-1);break;case 44:u[d++]=(Jt(D)-1)*C,C=1;break;case 64:an()===45&&(D+=xi(Dt())),h=an(),p=f=Jt(y=D+=_P(bi())),w++;break;case 45:m===45&&Jt(D)==2&&(v=0)}}return o}function Wc(e,t,n,r,a,o,i,u,s,d,p){for(var f=a-1,h=a===0?o:[""],g=E3(h),m=0,v=0,x=0;m<r;++m)for(var C=0,w=ro(e,f+1,f=IP(v=i[m])),y=e;C<g;++C)(y=uh(v>0?h[C]+" "+w:be(w,/&\f/g,h[C])))&&(s[x++]=y);return Gu(e,t,n,a===0?D3:u,s,d,p)}function WP(e,t,n){return Gu(e,t,n,oh,Uu(HP()),ro(e,2,-2),0)}function Gc(e,t,n,r){return Gu(e,t,n,w3,ro(e,0,r),ro(e,r+1,-1),r)}function na(e,t){for(var n="",r=E3(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function GP(e,t,n,r){switch(e.type){case VP:if(e.children.length)break;case MP:case w3:return e.return=e.return||e.value;case oh:return"";case ih:return e.return=e.value+"{"+na(e.children,r)+"}";case D3:e.value=e.props.join(",")}return Jt(n=na(e.children,r))?e.return=e.value+"{"+n+"}":""}function qP(e){var t=E3(e);return function(n,r,a,o){for(var i="",u=0;u<t;u++)i+=e[u](n,r,a,o)||"";return i}}function YP(e){return function(t){t.root||(t=t.return)&&e(t)}}var JP=function(t,n,r){for(var a=0,o=0;a=o,o=an(),a===38&&o===12&&(n[r]=1),!ao(o);)Dt();return Po(t,bt)},XP=function(t,n){var r=-1,a=44;do switch(ao(a)){case 0:a===38&&an()===12&&(n[r]=1),t[r]+=JP(bt-1,n,r);break;case 2:t[r]+=xi(a);break;case 4:if(a===44){t[++r]=an()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Uu(a)}while(a=Dt());return t},QP=function(t,n){return dh(XP(sh(t),n))},qc=new WeakMap,eT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!qc.get(r))&&!a){qc.set(t,!0);for(var o=[],i=QP(n,o),u=r.props,s=0,d=0;s<i.length;s++)for(var p=0;p<u.length;p++,d++)t.props[d]=o[s]?i[s].replace(/&\f/g,u[p]):u[p]+" "+i[s]}}},tT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ch(e,t){switch(jP(e,t)){case 5103:return ve+"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 ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+e+tu+e+ot+e+e;case 6828:case 4268:return ve+e+ot+e+e;case 6165:return ve+e+ot+"flex-"+e+e;case 5187:return ve+e+be(e,/(\w+).+(:[^]+)/,ve+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return ve+e+ot+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return ve+e+ot+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return ve+e+ot+be(e,"shrink","negative")+e;case 5292:return ve+e+ot+be(e,"basis","preferred-size")+e;case 6060:return ve+"box-"+be(e,"-grow","")+ve+e+ot+be(e,"grow","positive")+e;case 4554:return ve+be(e,/([^-])(transform)/g,"$1"+ve+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ve+"$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(Jt(e)-1-t>6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+tu+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Q1(e,"stretch")?ch(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,Jt(e)-3-(~Q1(e,"!important")&&10))){case 107:return be(e,":",":"+ve)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(nt(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return ve+e+ot+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+ot+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+ot+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+ot+e+e}return e}var nT=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case w3:t.return=ch(t.value,t.length);break;case ih:return na([Sa(t,{value:be(t.value,"@","@"+ve)})],a);case D3:if(t.length)return OP(t.props,function(o){switch(LP(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return na([Sa(t,{props:[be(o,/:(read-\w+)/,":"+tu+"$1")]})],a);case"::placeholder":return na([Sa(t,{props:[be(o,/:(plac\w+)/,":"+ve+"input-$1")]}),Sa(t,{props:[be(o,/:(plac\w+)/,":"+tu+"$1")]}),Sa(t,{props:[be(o,/:(plac\w+)/,ot+"input-$1")]})],a)}return""})}},rT=[nT],aT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=t.stylisPlugins||rT,o={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),C=1;C<x.length;C++)o[x[C]]=!0;u.push(v)});var s,d=[eT,tT];{var p,f=[GP,YP(function(v){p.insert(v)})],h=qP(d.concat(a,f)),g=function(x){return na(UP(x),h)};s=function(x,C,w,y){p=w,g(x?x+"{"+C.styles+"}":C.styles),y&&(m.inserted[C.name]=!0)}}var m={key:n,sheet:new FP({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return m.sheet.hydrate(u),m},oT=!0;function iT(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var fh=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||oT===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},uT=function(t,n,r){fh(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function lT(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sT=/[A-Z]|^ms/g,dT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ph=function(t){return t.charCodeAt(1)===45},Yc=function(t){return t!=null&&typeof t!="boolean"},_l=V4(function(e){return ph(e)?e:e.replace(sT,"-$&").toLowerCase()}),Jc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dT,function(r,a,o){return Xt={name:a,styles:o,next:Xt},a})}return N4[t]!==1&&!ph(t)&&typeof n=="number"&&n!==0?n+"px":n};function oo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Xt={name:a.name,styles:a.styles,next:Xt},a.name;var o=n;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Xt={name:i.name,styles:i.styles,next:Xt},i=i.next;var u=o.styles+";";return u}return cT(e,t,n)}case"function":{if(e!==void 0){var s=Xt,d=n(e);return Xt=s,oo(e,t,d)}break}}var p=n;if(t==null)return p;var f=t[p];return f!==void 0?f:p}function cT(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=oo(e,t,n[a])+";";else for(var o in n){var i=n[o];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?r+=o+"{"+t[u]+"}":Yc(u)&&(r+=_l(o)+":"+Jc(o,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Yc(i[s])&&(r+=_l(o)+":"+Jc(o,i[s])+";");else{var d=oo(e,t,i);switch(o){case"animation":case"animationName":{r+=_l(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var Xc=/label:\s*([^\s;{]+)\s*(;|$)/g,Xt;function fT(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Xt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=oo(n,t,o);else{var i=o;a+=i[0]}for(var u=1;u<e.length;u++)if(a+=oo(n,t,e[u]),r){var s=o;a+=s[u]}Xc.lastIndex=0;for(var d="",p;(p=Xc.exec(a))!==null;)d+="-"+p[1];var f=lT(a)+d;return{name:f,styles:a,next:Xt}}var pT=function(t){return t()},hT=Vt.useInsertionEffect?Vt.useInsertionEffect:!1,mT=hT||pT,hh=Vt.createContext(typeof HTMLElement<"u"?aT({key:"css"}):null);hh.Provider;var gT=function(t){return l.forwardRef(function(n,r){var a=l.useContext(hh);return t(n,a,r)})},vT=Vt.createContext({}),CT=I4,bT=function(t){return t!=="theme"},Qc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?CT:bT},e4=function(t,n,r){var a;if(n){var o=n.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},xT=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return fh(n,r,a),mT(function(){return uT(n,r,a)}),null},yT=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,o,i;n!==void 0&&(o=n.label,i=n.target);var u=e4(t,n,r),s=u||Qc(a),d=!s("as");return function(){var p=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)f.push.apply(f,p);else{var h=p[0];f.push(h[0]);for(var g=p.length,m=1;m<g;m++)f.push(p[m],h[m])}var v=gT(function(x,C,w){var y=d&&x.as||a,$="",B=[],k=x;if(x.theme==null){k={};for(var D in x)k[D]=x[D];k.theme=Vt.useContext(vT)}typeof x.className=="string"?$=iT(C.registered,B,x.className):x.className!=null&&($=x.className+" ");var T=fT(f.concat(B),C.registered,k);$+=C.key+"-"+T.name,i!==void 0&&($+=" "+i);var F=d&&u===void 0?Qc(y):s,A={};for(var V in x)d&&V==="as"||F(V)&&(A[V]=x[V]);return A.className=$,w&&(A.ref=w),Vt.createElement(Vt.Fragment,null,Vt.createElement(xT,{cache:C,serialized:T,isStringTag:typeof y=="string"}),Vt.createElement(y,A))});return v.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=f,v.__emotion_forwardProp=u,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(x,C){var w=e(x,Ue({},n,C,{shouldForwardProp:e4(v,C,!0)}));return w.apply(void 0,f)},v}},$T=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],le=yT.bind(null);$T.forEach(function(e){le[e]=le(e)});const DT=le.aside`
|
|
2341
|
+
`,ah=l.createContext(void 0),_u=()=>l.useContext(ah),BP=({children:e,initialIsCollapsed:t=!0})=>{const[n,r]=l.useState(t);return c.jsx(ah.Provider,{value:{isCollapsed:n,setIsCollapsed:r},children:e})};function kP({title:e,subtitle:t,tagComponent:n,logo:r,onGoBack:a,breadcrumbsComponent:o,helperIconComponent:i,notificationIconComponent:u,additionalActions:s,tabsComponent:d,...p}){const f=je(SP),h=_u(),g=!!i||!!u||!!s;return c.jsxs(c.Fragment,{children:[c.jsxs(hP,{"data-has-tabs":!!d,...p,children:[c.jsxs(mP,{children:[r&&c.jsx(gP,{children:c.jsx(vP,{title:r,"data-title":r})}),h&&c.jsx(CP,{type:"button","aria-label":f.menuMobile,onClick:()=>h.setIsCollapsed(m=>!m),children:c.jsx(ne,{name:"menu"})})]}),c.jsxs(bP,{"data-has-tabs":!!d,children:[c.jsxs(xP,{children:[c.jsx(yP,{children:o}),c.jsxs($P,{"data-has-breadcrumbs":!!o,children:[a&&c.jsx("div",{children:c.jsx(De,{onClick:a,iconLeft:"arrow_back",mode:"tertiary","aria-label":f.goBack})}),c.jsxs("div",{children:[c.jsx(DP,{children:e}),c.jsxs(wP,{children:[!!n&&c.jsx("div",{children:n}),!!t&&c.jsx("div",{children:t})]})]})]})]}),g&&c.jsxs(EP,{children:[i,u,s]})]})]}),d]})}const SP={en:{goBack:"Go back",menuMobile:"Mobile menu"},fr:{goBack:"Retour",menuMobile:"Menu mobile"}};function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue.apply(null,arguments)}function PP(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]}function TP(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AP=(function(){function e(n){var r=this;this._insertTag=function(a){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,o),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(TP(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=PP(a);try{o.insertRule(r,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),ot="-ms-",tu="-moz-",ve="-webkit-",oh="comm",D3="rule",w3="decl",FP="@import",ih="@keyframes",MP="@layer",VP=Math.abs,Uu=String.fromCharCode,IP=Object.assign;function RP(e,t){return nt(e,0)^45?(((t<<2^nt(e,0))<<2^nt(e,1))<<2^nt(e,2))<<2^nt(e,3):0}function uh(e){return e.trim()}function jP(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,n){return e.replace(t,n)}function Q1(e,t){return e.indexOf(t)}function nt(e,t){return e.charCodeAt(t)|0}function ro(e,t,n){return e.slice(t,n)}function Jt(e){return e.length}function E3(e){return e.length}function Qo(e,t){return t.push(e),e}function LP(e,t){return e.map(t).join("")}var Wu=1,ca=1,lh=0,bt=0,_e=0,ya="";function Gu(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Wu,column:ca,length:i,return:""}}function Sa(e,t){return IP(Gu("",null,null,"",null,null,0),e,{length:-e.length},t)}function OP(){return _e}function HP(){return _e=bt>0?nt(ya,--bt):0,ca--,_e===10&&(ca=1,Wu--),_e}function Dt(){return _e=bt<lh?nt(ya,bt++):0,ca++,_e===10&&(ca=1,Wu++),_e}function an(){return nt(ya,bt)}function bi(){return bt}function Po(e,t){return ro(ya,e,t)}function ao(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sh(e){return Wu=ca=1,lh=Jt(ya=e),bt=0,[]}function dh(e){return ya="",e}function xi(e){return uh(Po(bt-1,es(e===91?e+2:e===40?e+1:e)))}function KP(e){for(;(_e=an())&&_e<33;)Dt();return ao(e)>2||ao(_e)>3?"":" "}function zP(e,t){for(;--t&&Dt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Po(e,bi()+(t<6&&an()==32&&Dt()==32))}function es(e){for(;Dt();)switch(_e){case e:return bt;case 34:case 39:e!==34&&e!==39&&es(_e);break;case 40:e===41&&es(e);break;case 92:Dt();break}return bt}function NP(e,t){for(;Dt()&&e+_e!==57;)if(e+_e===84&&an()===47)break;return"/*"+Po(t,bt-1)+"*"+Uu(e===47?e:Dt())}function ZP(e){for(;!ao(an());)Dt();return Po(e,bt)}function _P(e){return dh(yi("",null,null,null,[""],e=sh(e),0,[0],e))}function yi(e,t,n,r,a,o,i,u,s){for(var d=0,p=0,f=i,h=0,g=0,m=0,v=1,x=1,C=1,w=0,y="",$=a,B=o,k=r,D=y;x;)switch(m=w,w=Dt()){case 40:if(m!=108&&nt(D,f-1)==58){Q1(D+=be(xi(w),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:D+=xi(w);break;case 9:case 10:case 13:case 32:D+=KP(m);break;case 92:D+=zP(bi()-1,7);continue;case 47:switch(an()){case 42:case 47:Qo(UP(NP(Dt(),bi()),t,n),s);break;default:D+="/"}break;case 123*v:u[d++]=Jt(D)*C;case 125*v:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+p:C==-1&&(D=be(D,/\f/g,"")),g>0&&Jt(D)-f&&Qo(g>32?Gc(D+";",r,n,f-1):Gc(be(D," ","")+";",r,n,f-2),s);break;case 59:D+=";";default:if(Qo(k=Wc(D,t,n,d,p,a,u,y,$=[],B=[],f),o),w===123)if(p===0)yi(D,t,k,k,$,o,f,u,B);else switch(h===99&&nt(D,3)===110?100:h){case 100:case 108:case 109:case 115:yi(e,k,k,r&&Qo(Wc(e,k,k,0,0,a,u,y,a,$=[],f),B),a,B,f,u,r?$:B);break;default:yi(D,k,k,k,[""],B,0,u,B)}}d=p=g=0,v=C=1,y=D="",f=i;break;case 58:f=1+Jt(D),g=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&HP()==125)continue}switch(D+=Uu(w),w*v){case 38:C=p>0?1:(D+="\f",-1);break;case 44:u[d++]=(Jt(D)-1)*C,C=1;break;case 64:an()===45&&(D+=xi(Dt())),h=an(),p=f=Jt(y=D+=ZP(bi())),w++;break;case 45:m===45&&Jt(D)==2&&(v=0)}}return o}function Wc(e,t,n,r,a,o,i,u,s,d,p){for(var f=a-1,h=a===0?o:[""],g=E3(h),m=0,v=0,x=0;m<r;++m)for(var C=0,w=ro(e,f+1,f=VP(v=i[m])),y=e;C<g;++C)(y=uh(v>0?h[C]+" "+w:be(w,/&\f/g,h[C])))&&(s[x++]=y);return Gu(e,t,n,a===0?D3:u,s,d,p)}function UP(e,t,n){return Gu(e,t,n,oh,Uu(OP()),ro(e,2,-2),0)}function Gc(e,t,n,r){return Gu(e,t,n,w3,ro(e,0,r),ro(e,r+1,-1),r)}function na(e,t){for(var n="",r=E3(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function WP(e,t,n,r){switch(e.type){case MP:if(e.children.length)break;case FP:case w3:return e.return=e.return||e.value;case oh:return"";case ih:return e.return=e.value+"{"+na(e.children,r)+"}";case D3:e.value=e.props.join(",")}return Jt(n=na(e.children,r))?e.return=e.value+"{"+n+"}":""}function GP(e){var t=E3(e);return function(n,r,a,o){for(var i="",u=0;u<t;u++)i+=e[u](n,r,a,o)||"";return i}}function qP(e){return function(t){t.root||(t=t.return)&&e(t)}}var YP=function(t,n,r){for(var a=0,o=0;a=o,o=an(),a===38&&o===12&&(n[r]=1),!ao(o);)Dt();return Po(t,bt)},JP=function(t,n){var r=-1,a=44;do switch(ao(a)){case 0:a===38&&an()===12&&(n[r]=1),t[r]+=YP(bt-1,n,r);break;case 2:t[r]+=xi(a);break;case 4:if(a===44){t[++r]=an()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Uu(a)}while(a=Dt());return t},XP=function(t,n){return dh(JP(sh(t),n))},qc=new WeakMap,QP=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!qc.get(r))&&!a){qc.set(t,!0);for(var o=[],i=XP(n,o),u=r.props,s=0,d=0;s<i.length;s++)for(var p=0;p<u.length;p++,d++)t.props[d]=o[s]?i[s].replace(/&\f/g,u[p]):u[p]+" "+i[s]}}},eT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ch(e,t){switch(RP(e,t)){case 5103:return ve+"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 ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+e+tu+e+ot+e+e;case 6828:case 4268:return ve+e+ot+e+e;case 6165:return ve+e+ot+"flex-"+e+e;case 5187:return ve+e+be(e,/(\w+).+(:[^]+)/,ve+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return ve+e+ot+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return ve+e+ot+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return ve+e+ot+be(e,"shrink","negative")+e;case 5292:return ve+e+ot+be(e,"basis","preferred-size")+e;case 6060:return ve+"box-"+be(e,"-grow","")+ve+e+ot+be(e,"grow","positive")+e;case 4554:return ve+be(e,/([^-])(transform)/g,"$1"+ve+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ve+"$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(Jt(e)-1-t>6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+tu+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Q1(e,"stretch")?ch(be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,Jt(e)-3-(~Q1(e,"!important")&&10))){case 107:return be(e,":",":"+ve)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(nt(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return ve+e+ot+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+ot+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+ot+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+ot+e+e}return e}var tT=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case w3:t.return=ch(t.value,t.length);break;case ih:return na([Sa(t,{value:be(t.value,"@","@"+ve)})],a);case D3:if(t.length)return LP(t.props,function(o){switch(jP(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return na([Sa(t,{props:[be(o,/:(read-\w+)/,":"+tu+"$1")]})],a);case"::placeholder":return na([Sa(t,{props:[be(o,/:(plac\w+)/,":"+ve+"input-$1")]}),Sa(t,{props:[be(o,/:(plac\w+)/,":"+tu+"$1")]}),Sa(t,{props:[be(o,/:(plac\w+)/,ot+"input-$1")]})],a)}return""})}},nT=[tT],rT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=t.stylisPlugins||nT,o={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),C=1;C<x.length;C++)o[x[C]]=!0;u.push(v)});var s,d=[QP,eT];{var p,f=[WP,qP(function(v){p.insert(v)})],h=GP(d.concat(a,f)),g=function(x){return na(_P(x),h)};s=function(x,C,w,y){p=w,g(x?x+"{"+C.styles+"}":C.styles),y&&(m.inserted[C.name]=!0)}}var m={key:n,sheet:new AP({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return m.sheet.hydrate(u),m},aT=!0;function oT(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var fh=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||aT===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},iT=function(t,n,r){fh(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function uT(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var lT=/[A-Z]|^ms/g,sT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ph=function(t){return t.charCodeAt(1)===45},Yc=function(t){return t!=null&&typeof t!="boolean"},_l=V4(function(e){return ph(e)?e:e.replace(lT,"-$&").toLowerCase()}),Jc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sT,function(r,a,o){return Xt={name:a,styles:o,next:Xt},a})}return N4[t]!==1&&!ph(t)&&typeof n=="number"&&n!==0?n+"px":n};function oo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Xt={name:a.name,styles:a.styles,next:Xt},a.name;var o=n;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Xt={name:i.name,styles:i.styles,next:Xt},i=i.next;var u=o.styles+";";return u}return dT(e,t,n)}case"function":{if(e!==void 0){var s=Xt,d=n(e);return Xt=s,oo(e,t,d)}break}}var p=n;if(t==null)return p;var f=t[p];return f!==void 0?f:p}function dT(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=oo(e,t,n[a])+";";else for(var o in n){var i=n[o];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?r+=o+"{"+t[u]+"}":Yc(u)&&(r+=_l(o)+":"+Jc(o,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Yc(i[s])&&(r+=_l(o)+":"+Jc(o,i[s])+";");else{var d=oo(e,t,i);switch(o){case"animation":case"animationName":{r+=_l(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var Xc=/label:\s*([^\s;{]+)\s*(;|$)/g,Xt;function cT(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";Xt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=oo(n,t,o);else{var i=o;a+=i[0]}for(var u=1;u<e.length;u++)if(a+=oo(n,t,e[u]),r){var s=o;a+=s[u]}Xc.lastIndex=0;for(var d="",p;(p=Xc.exec(a))!==null;)d+="-"+p[1];var f=uT(a)+d;return{name:f,styles:a,next:Xt}}var fT=function(t){return t()},pT=Vt.useInsertionEffect?Vt.useInsertionEffect:!1,hT=pT||fT,hh=Vt.createContext(typeof HTMLElement<"u"?rT({key:"css"}):null);hh.Provider;var mT=function(t){return l.forwardRef(function(n,r){var a=l.useContext(hh);return t(n,a,r)})},gT=Vt.createContext({}),vT=I4,CT=function(t){return t!=="theme"},Qc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?vT:CT},e4=function(t,n,r){var a;if(n){var o=n.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},bT=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return fh(n,r,a),hT(function(){return iT(n,r,a)}),null},xT=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,o,i;n!==void 0&&(o=n.label,i=n.target);var u=e4(t,n,r),s=u||Qc(a),d=!s("as");return function(){var p=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)f.push.apply(f,p);else{var h=p[0];f.push(h[0]);for(var g=p.length,m=1;m<g;m++)f.push(p[m],h[m])}var v=mT(function(x,C,w){var y=d&&x.as||a,$="",B=[],k=x;if(x.theme==null){k={};for(var D in x)k[D]=x[D];k.theme=Vt.useContext(gT)}typeof x.className=="string"?$=oT(C.registered,B,x.className):x.className!=null&&($=x.className+" ");var T=cT(f.concat(B),C.registered,k);$+=C.key+"-"+T.name,i!==void 0&&($+=" "+i);var F=d&&u===void 0?Qc(y):s,A={};for(var V in x)d&&V==="as"||F(V)&&(A[V]=x[V]);return A.className=$,w&&(A.ref=w),Vt.createElement(Vt.Fragment,null,Vt.createElement(bT,{cache:C,serialized:T,isStringTag:typeof y=="string"}),Vt.createElement(y,A))});return v.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=f,v.__emotion_forwardProp=u,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(x,C){var w=e(x,Ue({},n,C,{shouldForwardProp:e4(v,C,!0)}));return w.apply(void 0,f)},v}},yT=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],le=xT.bind(null);yT.forEach(function(e){le[e]=le(e)});const $T=le.aside`
|
|
2333
2342
|
display: flex;
|
|
2334
2343
|
flex-direction: column;
|
|
2335
2344
|
gap: var(--spacing-xs);
|
|
2336
|
-
`,
|
|
2345
|
+
`,DT=le.header`
|
|
2337
2346
|
display: flex;
|
|
2338
2347
|
align-items: center;
|
|
2339
2348
|
justify-content: space-between;
|
|
@@ -2342,7 +2351,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2342
2351
|
font-style: normal;
|
|
2343
2352
|
font-weight: 400;
|
|
2344
2353
|
line-height: 20px;
|
|
2345
|
-
`,
|
|
2354
|
+
`,wT=le.div`
|
|
2346
2355
|
flex: none;
|
|
2347
2356
|
display: flex;
|
|
2348
2357
|
align-items: center;
|
|
@@ -2359,7 +2368,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2359
2368
|
&[data-nature="positive"] {
|
|
2360
2369
|
background: var(--color-content-message-positive);
|
|
2361
2370
|
}
|
|
2362
|
-
`,
|
|
2371
|
+
`,ET=le.div`
|
|
2363
2372
|
background: var(--color-content-neutral-stroke);
|
|
2364
2373
|
width: 100%;
|
|
2365
2374
|
height: 8px;
|
|
@@ -2367,7 +2376,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2367
2376
|
&[data-size="small"] {
|
|
2368
2377
|
height: 4px;
|
|
2369
2378
|
}
|
|
2370
|
-
`,
|
|
2379
|
+
`,BT=le.div`
|
|
2371
2380
|
background-color: var(--color-content-action-action);
|
|
2372
2381
|
height: 100%;
|
|
2373
2382
|
|
|
@@ -2384,7 +2393,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2384
2393
|
&[data-nature="positive"] {
|
|
2385
2394
|
background: var(--color-content-message-positive);
|
|
2386
2395
|
}
|
|
2387
|
-
`,
|
|
2396
|
+
`,kT=le.footer`
|
|
2388
2397
|
display: flex;
|
|
2389
2398
|
justify-content: space-between;
|
|
2390
2399
|
align-items: flex-start;
|
|
@@ -2397,7 +2406,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2397
2406
|
&[data-nature="negative"] {
|
|
2398
2407
|
color: var(--color-content-message-negative-darker);
|
|
2399
2408
|
}
|
|
2400
|
-
`;function
|
|
2409
|
+
`;function ST({title:e,percentage:t=0,description:n,hidePercentValue:r=!1,size:a="medium",nature:o="default",hideStatusIcon:i=!1,...u}){const s=Math.round(Math.min(Math.max(t,0),100)),d=o==="negative"&&!i,p=o==="positive"&&!i;return c.jsxs($T,{...u,children:[!!e&&c.jsxs(DT,{children:[e,(d||p)&&c.jsxs(wT,{"data-nature":o,children:[d&&c.jsx(ne,{name:"close"}),p&&c.jsx(ne,{name:"check"})]})]}),c.jsx(ET,{"data-testid":`progress-bar-${e}`,"data-size":a,children:c.jsx(BT,{style:{width:`${s}%`},"data-nature":o})}),c.jsxs(kT,{"data-nature":o,children:[c.jsx("div",{children:n}),!r&&c.jsxs("div",{children:[s,"%"]})]})]})}const mh=P.span`
|
|
2401
2410
|
color: inherit;
|
|
2402
2411
|
text-decoration: underline;
|
|
2403
2412
|
text-underline-offset: 5px;
|
|
@@ -2405,7 +2414,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2405
2414
|
line-height: ${oe.small};
|
|
2406
2415
|
font-weight: 700;
|
|
2407
2416
|
font-style: normal;
|
|
2408
|
-
`,
|
|
2417
|
+
`,PT=P(cr)`
|
|
2409
2418
|
display: inline-flex;
|
|
2410
2419
|
justify-content: center;
|
|
2411
2420
|
align-items: center;
|
|
@@ -2437,9 +2446,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2437
2446
|
--color: var(--color-content-message-warning-darker);
|
|
2438
2447
|
--background-color: var(--color-content-message-warning-lighter);
|
|
2439
2448
|
}
|
|
2440
|
-
`,
|
|
2449
|
+
`,TT=P(ne)`
|
|
2441
2450
|
font-size: ${Q.large};
|
|
2442
|
-
`,
|
|
2451
|
+
`,AT=({children:e,showLinkIcon:t=!1,nature:n="default",onClick:r,...a})=>c.jsxs(PT,{...a,"data-nature":n,onPress:r,children:[c.jsx(mh,{children:e}),t&&c.jsx(TT,{name:"link"})]}),gh=64,io=P(Cp)`
|
|
2443
2452
|
display: flex;
|
|
2444
2453
|
align-items: center;
|
|
2445
2454
|
padding: var(--spacing-xs) var(--spacing-sm);
|
|
@@ -2459,7 +2468,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2459
2468
|
background-color: var(--color-content-action-action-lighter);
|
|
2460
2469
|
outline: none;
|
|
2461
2470
|
}
|
|
2462
|
-
`,
|
|
2471
|
+
`,FT=P(ne)`
|
|
2463
2472
|
width: 24px;
|
|
2464
2473
|
height: 24px;
|
|
2465
2474
|
flex-shrink: 0;
|
|
@@ -2469,14 +2478,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2469
2478
|
${io}:not([data-disabled="true"])[data-focused="true"] & {
|
|
2470
2479
|
color: var(--color-content-action-action);
|
|
2471
2480
|
}
|
|
2472
|
-
`,
|
|
2481
|
+
`,MT=P.div`
|
|
2473
2482
|
display: flex;
|
|
2474
2483
|
flex-direction: column;
|
|
2475
2484
|
flex: 1;
|
|
2476
2485
|
min-width: 0; /* Allows text truncation if needed */
|
|
2477
2486
|
overflow: hidden;
|
|
2478
2487
|
max-width: 100%;
|
|
2479
|
-
`,
|
|
2488
|
+
`,VT=P(r3)`
|
|
2480
2489
|
color: var(--color-content-neutral-secondary);
|
|
2481
2490
|
font-size: var(--text-font-size-md);
|
|
2482
2491
|
line-height: var(--text-line-height-md);
|
|
@@ -2491,7 +2500,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2491
2500
|
${io}:not([data-disabled="true"])[data-focused="true"] & {
|
|
2492
2501
|
color: var(--color-content-action-action);
|
|
2493
2502
|
}
|
|
2494
|
-
`,
|
|
2503
|
+
`,IT=P(r3)`
|
|
2495
2504
|
color: var(--color-content-neutral-secondary);
|
|
2496
2505
|
font-size: var(--text-font-size-md);
|
|
2497
2506
|
line-height: var(--text-line-height-md);
|
|
@@ -2500,7 +2509,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2500
2509
|
white-space: nowrap;
|
|
2501
2510
|
overflow: hidden;
|
|
2502
2511
|
text-overflow: ellipsis;
|
|
2503
|
-
`,
|
|
2512
|
+
`,RT=P(n$)`
|
|
2504
2513
|
display: flex;
|
|
2505
2514
|
align-items: center;
|
|
2506
2515
|
width: 100%;
|
|
@@ -2520,13 +2529,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2520
2529
|
text-overflow: ellipsis;
|
|
2521
2530
|
max-width: 100%;
|
|
2522
2531
|
}
|
|
2523
|
-
`,
|
|
2532
|
+
`,jT=P(i$)`
|
|
2524
2533
|
border-top: var(--stroke-default) solid var(--color-content-neutral-stroke);
|
|
2525
2534
|
|
|
2526
2535
|
&:first-child {
|
|
2527
2536
|
border-top: none;
|
|
2528
2537
|
}
|
|
2529
|
-
`,
|
|
2538
|
+
`,LT=P.span`
|
|
2530
2539
|
display: inline-flex;
|
|
2531
2540
|
align-items: center;
|
|
2532
2541
|
justify-content: center;
|
|
@@ -2561,18 +2570,18 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2561
2570
|
background: var(--color-content-message-warning-lighter);
|
|
2562
2571
|
color: var(--color-content-message-warning-darker);
|
|
2563
2572
|
}
|
|
2564
|
-
`,
|
|
2573
|
+
`,OT=P(ne)`
|
|
2565
2574
|
flex: none;
|
|
2566
2575
|
margin-right: var(--spacing-xxs);
|
|
2567
2576
|
font-size: ${Q.small};
|
|
2568
2577
|
line-height: ${Q.small};
|
|
2569
2578
|
width: ${Q.small};
|
|
2570
2579
|
height: ${Q.small};
|
|
2571
|
-
`,vh=l.forwardRef(({children:e,nature:t="default",iconLeft:n,...r},a)=>c.jsxs(
|
|
2580
|
+
`,vh=l.forwardRef(({children:e,nature:t="default",iconLeft:n,...r},a)=>c.jsxs(LT,{"data-nature":t,"data-have-icon":!!n,ref:a,...r,children:[!!n&&c.jsx(OT,{name:n}),e]}));function HT({title:e,subtitle:t,tagProps:n,icon:r,id:a,onAction:o,isDisabled:i,href:u,target:s,download:d,routerOptions:p,...f}){return c.jsxs(io,{...f,id:a,onAction:o,isDisabled:i,textValue:e,href:u,target:s,download:d,routerOptions:p,children:[!!r&&c.jsx(FT,{name:r}),c.jsxs(MT,{children:[c.jsx(VT,{slot:"label",children:e}),c.jsx(IT,{slot:"description",children:t})]}),!!n&&c.jsx(vh,{...n})]})}function KT({sections:e,renderEmptyState:t,disabledIds:n,...r}){const a=e.filter(o=>!!o.items.length);return a.length===0&&!t?null:c.jsx(ko,{...r,renderEmptyState:t,disabledKeys:n,items:a,children:o=>c.jsxs(jT,{id:o.id,children:[!!o.title&&c.jsx(RT,{children:c.jsx("span",{children:o.title})}),c.jsx(Su,{items:o.items,children:i=>c.jsx(HT,{...i})})]})})}const zT=v$,NT=En,ZT=P(x$)`
|
|
2572
2581
|
${So};
|
|
2573
2582
|
z-index: var(--z-index-dropdown);
|
|
2574
2583
|
outline: none;
|
|
2575
|
-
`;function Ch({children:e,buttonProps:t,isOpen:n,onOpenChange:r,defaultOpen:a,placement:o="bottom"}){return c.jsxs(
|
|
2584
|
+
`;function Ch({children:e,buttonProps:t,isOpen:n,onOpenChange:r,defaultOpen:a,placement:o="bottom"}){return c.jsxs(zT,{isOpen:n,onOpenChange:r,defaultOpen:a,children:[c.jsx(De,{...t}),c.jsx(NT,{offset:8,placement:o,children:c.jsx(ZT,{children:e})})]})}function bh({text:e,iconRight:t,iconLeft:n,href:r,routerOptions:a,onClick:o,isDisabled:i,style:u,className:s,...d}){return c.jsx(w$,{...d,textValue:e,style:{outline:"none",textDecoration:"none"},href:r,routerOptions:a,onAction:o,isDisabled:i,children:p=>c.jsx(Zu,{text:e,"data-hovered":p.isHovered,"data-pressed":p.isPressed,"data-focused":p.isFocused,"data-focus-visible":p.isFocusVisible,iconLeft:n,iconRight:t,disabled:i,style:u,className:s})})}const _T=P.div`
|
|
2576
2585
|
display: flex;
|
|
2577
2586
|
flex: 1;
|
|
2578
2587
|
padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-sm)
|
|
@@ -2603,7 +2612,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2603
2612
|
background: var(--color-content-message-informative-lighter);
|
|
2604
2613
|
color: var(--color-content-message-informative-darkest);
|
|
2605
2614
|
}
|
|
2606
|
-
`,
|
|
2615
|
+
`,UT=P.div`
|
|
2607
2616
|
padding-top: var(--spacing-xs);
|
|
2608
2617
|
flex: 1;
|
|
2609
2618
|
word-break: break-word;
|
|
@@ -2611,12 +2620,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2611
2620
|
&[data-has-close="false"] {
|
|
2612
2621
|
padding-right: var(--spacing-sm);
|
|
2613
2622
|
}
|
|
2614
|
-
`,
|
|
2623
|
+
`,WT=P.div`
|
|
2615
2624
|
margin-bottom: var(--spacing-xs);
|
|
2616
2625
|
font-size: ${Q.small};
|
|
2617
2626
|
font-weight: 700;
|
|
2618
2627
|
line-height: ${oe.small};
|
|
2619
|
-
`,
|
|
2628
|
+
`,GT=P.div`
|
|
2620
2629
|
font-size: ${Q.extraSmall};
|
|
2621
2630
|
font-style: normal;
|
|
2622
2631
|
font-weight: 400;
|
|
@@ -2625,7 +2634,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2625
2634
|
&[data-has-title="false"] {
|
|
2626
2635
|
margin-top: 2px; // Minor alignment fix because the line-height of the content is smaller than the line-height icon on the left
|
|
2627
2636
|
}
|
|
2628
|
-
`,
|
|
2637
|
+
`,qT=P(ne)`
|
|
2629
2638
|
display: none;
|
|
2630
2639
|
|
|
2631
2640
|
@media screen and (min-width: 768px) {
|
|
@@ -2634,7 +2643,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2634
2643
|
flex: none;
|
|
2635
2644
|
font-size: ${Q.large};
|
|
2636
2645
|
}
|
|
2637
|
-
`,
|
|
2646
|
+
`,YT=P.div`
|
|
2638
2647
|
margin-top: var(--spacing-sm);
|
|
2639
2648
|
display: flex;
|
|
2640
2649
|
flex-direction: column;
|
|
@@ -2647,7 +2656,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2647
2656
|
align-items: center;
|
|
2648
2657
|
justify-content: flex-start;
|
|
2649
2658
|
}
|
|
2650
|
-
`,
|
|
2659
|
+
`,JT=P.button`
|
|
2651
2660
|
background: none;
|
|
2652
2661
|
border: none;
|
|
2653
2662
|
padding: var(--spacing-xs);
|
|
@@ -2661,7 +2670,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2661
2670
|
flex: none;
|
|
2662
2671
|
align-self: flex-start;
|
|
2663
2672
|
font-size: ${Q.large};
|
|
2664
|
-
`;function
|
|
2673
|
+
`;function XT({children:e,title:t,nature:n="negative",actions:r,onClose:a,className:o,style:i,autoHide:u=!1}){const[s,d]=l.useState(!1),p=l.useId(),f=je(QT);if(s)return null;const h=`${p}-description`,g=`${p}-title`,m=!!r?.length,v=!!a||!!u;return c.jsxs(_T,{role:"alert","aria-describedby":h,"aria-labelledby":g,"data-nature":n,className:o,style:i,children:[c.jsx(qT,{"aria-hidden":"true",name:eA(n)}),c.jsxs(UT,{id:h,"data-has-close":v,children:[t&&c.jsx(WT,{id:g,children:t}),c.jsx(GT,{"data-has-title":!!t,children:e}),m&&c.jsx(YT,{children:r.map(x=>l.createElement(De,{...x,key:x.text,nature:n,size:"small"}))})]}),v&&c.jsx(JT,{type:"button","aria-label":f.close,onClick:()=>{a?.(),u&&d(!0)},children:c.jsx(ne,{name:"close"})})]})}const QT={en:{close:"Close alert"},fr:{close:"Fermer l'alerte"}},eA=e=>e==="positive"?"check_circle_outline":e==="warning"?"warning_amber":e==="informative"?"help_outline":"error_outline",t4=Wn`
|
|
2665
2674
|
from {
|
|
2666
2675
|
transform: translate(-50%, -40%) scale(0.9);
|
|
2667
2676
|
opacity: 0;
|
|
@@ -2673,7 +2682,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2673
2682
|
`,n4=Wn`
|
|
2674
2683
|
from { background: rgba(0 0 0 / 0); }
|
|
2675
2684
|
to { background: rgba(0 12 51 / 0.7); }
|
|
2676
|
-
`,
|
|
2685
|
+
`,tA=P(Hu)`
|
|
2677
2686
|
position: fixed;
|
|
2678
2687
|
z-index: var(--z-index-modal);
|
|
2679
2688
|
top: 0;
|
|
@@ -2696,7 +2705,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2696
2705
|
animation: none;
|
|
2697
2706
|
}
|
|
2698
2707
|
}
|
|
2699
|
-
`,
|
|
2708
|
+
`,nA=P(b3)`
|
|
2700
2709
|
position: fixed;
|
|
2701
2710
|
top: 50%;
|
|
2702
2711
|
left: 50%;
|
|
@@ -2721,17 +2730,17 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2721
2730
|
animation: none;
|
|
2722
2731
|
}
|
|
2723
2732
|
}
|
|
2724
|
-
`,
|
|
2733
|
+
`,rA=P(Sr)`
|
|
2725
2734
|
outline: none;
|
|
2726
2735
|
max-height: calc(100vh - var(--spacing-md));
|
|
2727
2736
|
display: flex;
|
|
2728
2737
|
flex-direction: column;
|
|
2729
|
-
`,
|
|
2738
|
+
`,aA=P.form`
|
|
2730
2739
|
display: flex;
|
|
2731
2740
|
flex-direction: column;
|
|
2732
2741
|
flex: 1;
|
|
2733
2742
|
overflow-y: hidden;
|
|
2734
|
-
`,
|
|
2743
|
+
`,oA=P.header`
|
|
2735
2744
|
display: flex;
|
|
2736
2745
|
align-items: center;
|
|
2737
2746
|
justify-content: space-between;
|
|
@@ -2739,27 +2748,27 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2739
2748
|
var(--spacing-sm);
|
|
2740
2749
|
gap: var(--spacing-xs);
|
|
2741
2750
|
background: var(--color-content-action-action-darker);
|
|
2742
|
-
`,
|
|
2751
|
+
`,iA=P(ba)`
|
|
2743
2752
|
margin: 0;
|
|
2744
2753
|
font-size: ${Q.small};
|
|
2745
2754
|
font-style: normal;
|
|
2746
2755
|
font-weight: 700;
|
|
2747
2756
|
line-height: ${oe.small};
|
|
2748
2757
|
color: var(--color-content-neutral-primary-reversed);
|
|
2749
|
-
`,
|
|
2758
|
+
`,uA=P(De)`
|
|
2750
2759
|
color: var(--color-content-neutral-primary-reversed);
|
|
2751
|
-
`,
|
|
2760
|
+
`,lA=P.section`
|
|
2752
2761
|
padding: var(--spacing-lg);
|
|
2753
2762
|
flex: 1;
|
|
2754
2763
|
overflow-y: auto;
|
|
2755
|
-
`,
|
|
2764
|
+
`,sA=P.footer`
|
|
2756
2765
|
display: flex;
|
|
2757
2766
|
justify-content: flex-end;
|
|
2758
2767
|
align-items: center;
|
|
2759
2768
|
padding: var(--spacing-sm);
|
|
2760
2769
|
gap: var(--spacing-sm);
|
|
2761
2770
|
border-top: 1px solid var(--color-content-neutral-stroke);
|
|
2762
|
-
`;function
|
|
2771
|
+
`;function dA({children:e,isOpen:t,onOpenChange:n,title:r,isDismissable:a=!0,width:o}){return c.jsx(tA,{isOpen:t,onOpenChange:n,isDismissable:a,isKeyboardDismissDisabled:!a,children:c.jsx(nA,{style:{"--modal-width":o||"800px"},children:c.jsx(rA,{"aria-label":r,children:({close:i})=>c.jsxs(c.Fragment,{children:[c.jsxs(oA,{children:[c.jsx(iA,{slot:"title",children:r}),c.jsx(uA,{type:"button",onClick:i,"aria-label":"Close",iconLeft:"clear",mode:"tertiary"})]}),e]})})})})}const cA=P.div`
|
|
2763
2772
|
display: flex;
|
|
2764
2773
|
height: 100vh;
|
|
2765
2774
|
width: 280px;
|
|
@@ -2780,7 +2789,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2780
2789
|
padding-left: 0;
|
|
2781
2790
|
}
|
|
2782
2791
|
}
|
|
2783
|
-
`,
|
|
2792
|
+
`,fA=P.header`
|
|
2784
2793
|
display: flex;
|
|
2785
2794
|
margin-bottom: var(--spacing-lg);
|
|
2786
2795
|
padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) 0;
|
|
@@ -2816,7 +2825,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2816
2825
|
@media screen and (max-width: 767px) {
|
|
2817
2826
|
display: none;
|
|
2818
2827
|
}
|
|
2819
|
-
`,
|
|
2828
|
+
`,pA=P(xh)`
|
|
2820
2829
|
padding: var(--spacing-xs);
|
|
2821
2830
|
|
|
2822
2831
|
@media screen and (max-width: 767px) {
|
|
@@ -2826,9 +2835,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2826
2835
|
@media screen and (min-width: 768px) {
|
|
2827
2836
|
display: none !important;
|
|
2828
2837
|
}
|
|
2829
|
-
`,
|
|
2838
|
+
`,hA=P.nav`
|
|
2830
2839
|
flex: 1;
|
|
2831
|
-
`,
|
|
2840
|
+
`,mA=P.div`
|
|
2832
2841
|
margin: var(--spacing-sm) 0 0 0;
|
|
2833
2842
|
padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm)
|
|
2834
2843
|
var(--spacing-sm);
|
|
@@ -2844,13 +2853,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2844
2853
|
height: 1px;
|
|
2845
2854
|
background: var(--color-content-neutral-stroke);
|
|
2846
2855
|
}
|
|
2847
|
-
`,
|
|
2856
|
+
`,gA=P(rh)`
|
|
2848
2857
|
width: 120px;
|
|
2849
2858
|
|
|
2850
2859
|
&[data-type="obi"] {
|
|
2851
2860
|
width: 160px;
|
|
2852
2861
|
}
|
|
2853
|
-
`,yh=l.createContext(void 0),$h=()=>{const e=l.useContext(yh);if(e===void 0)throw new Error("useNavigation must be used within the Navigation component");return e},
|
|
2862
|
+
`,yh=l.createContext(void 0),$h=()=>{const e=l.useContext(yh);if(e===void 0)throw new Error("useNavigation must be used within the Navigation component");return e},vA=({children:e,initialIsCollapsed:t=!1,currentPath:n})=>{const[r,a]=l.useState(t);return c.jsx(yh.Provider,{value:{isCollapsed:r,setIsCollapsed:a,currentPath:n},children:e})},CA=P(cr)`
|
|
2854
2863
|
all: unset;
|
|
2855
2864
|
display: flex;
|
|
2856
2865
|
align-items: center;
|
|
@@ -2906,10 +2915,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2906
2915
|
background-color: rgba(255, 255, 255, 0.3);
|
|
2907
2916
|
}
|
|
2908
2917
|
}
|
|
2909
|
-
`,
|
|
2918
|
+
`,bA=P(ne)`
|
|
2910
2919
|
width: 24px;
|
|
2911
2920
|
height: 24px;
|
|
2912
|
-
`,
|
|
2921
|
+
`,xA=P(ne)`
|
|
2913
2922
|
width: 24px;
|
|
2914
2923
|
height: 24px;
|
|
2915
2924
|
transform: rotate(90deg);
|
|
@@ -2923,7 +2932,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2923
2932
|
display: none;
|
|
2924
2933
|
}
|
|
2925
2934
|
}
|
|
2926
|
-
|
|
2935
|
+
`,yA=P.div`
|
|
2927
2936
|
flex: 1;
|
|
2928
2937
|
|
|
2929
2938
|
@media (min-width: 768px) {
|
|
@@ -2931,10 +2940,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2931
2940
|
display: none;
|
|
2932
2941
|
}
|
|
2933
2942
|
}
|
|
2934
|
-
`;function
|
|
2943
|
+
`;function $A({label:e,ariaLabel:t}){return t??String(e)}function nu({label:e,href:t,isActive:n,subLinks:r,iconLeft:a,defaultOpen:o,className:i,style:u,onClick:s,"aria-label":d,...p}){const{isCollapsed:f,setIsCollapsed:h,currentPath:g}=$h(),m=_u(),[v,x]=l.useState(o||!1),w=!!!t&&!!r?.length,y=r4({controlledIsActive:n,isDropdown:w,href:t,subLinks:r,currentPath:g}),$=!f&&v;return l.useEffect(()=>{g&&y&&w&&x(!0)},[g,y,w]),c.jsxs(c.Fragment,{children:[c.jsxs(CA,{"data-active":y,href:t,onPress:()=>{w||m?.setIsCollapsed(!0),s?s():w&&(x(B=>!B),h(!1))},"data-collapsed":f,className:i,style:u,"aria-label":$A({label:e,ariaLabel:d}),"data-is-dropdown":w,...p,children:[a&&c.jsx(bA,{name:a}),c.jsx(yA,{"data-is-collapsed":f,children:e}),w&&c.jsx(xA,{"data-is-collapsed":f,name:"chevron_right","data-open":$})]}),w&&$&&c.jsx(c.Fragment,{children:r.map(B=>{const k=B.wrapperComponent||(D=>D);return c.jsx(l.Fragment,{children:k(c.jsx(nu,{href:B.href,isActive:r4({controlledIsActive:B.isActive,isDropdown:!1,href:B.href,currentPath:g}),label:B.label,"data-is-dropdown-item":!0}))},B.href)})})]})}const r4=({controlledIsActive:e,isDropdown:t,href:n,subLinks:r,currentPath:a})=>{if(e!=null)return e;if(a==null)return!1;const o=Ul(a);if(t&&r&&r.length>0)return r.some(i=>o.startsWith(Ul(i.href)));if(n){const i=Ul(n);if(i==="/")return o==="/";if(o.startsWith(i))return!0}return!1},Ul=e=>e.split("?")[0];function DA({children:e,logo:t,onParametersClick:n,onLogoutClick:r,footerElements:a,...o}){const i=je(EA),{isCollapsed:u,setIsCollapsed:s}=$h(),d=_u(),p=!!n||!!r;return c.jsxs(cA,{"data-collapsed":u,"data-page-layout-collapsed":d?.isCollapsed,...o,children:[c.jsxs(fA,{"data-collapsed":u,children:[!u&&c.jsx(gA,{title:t,"data-type":t}),c.jsx(xh,{"data-testid":"navigation-mobile-collapsed-menu",onPress:()=>s(f=>!f),"aria-label":u?i.open:i.close,"data-collapsed":u,children:c.jsx(ne,{name:"collapse_menu"})}),c.jsx(pA,{"data-testid":"navigation-mobile-close-menu",onPress:()=>d?.setIsCollapsed(f=>!f),"aria-label":d?.isCollapsed?i.open:i.close,"data-collapsed":d?.isCollapsed,children:c.jsx(ne,{name:"close"})})]}),c.jsx(hA,{children:e}),p&&c.jsxs(c.Fragment,{children:[c.jsx(mA,{"data-collapsed":u,children:c.jsx("hr",{})}),c.jsxs("footer",{children:[a,!!n&&c.jsx(nu,{iconLeft:"settings",label:i.settings,onClick:n,"aria-label":i.settings}),!!r&&c.jsx(nu,{iconLeft:"logout",label:i.logout,onClick:r,"aria-label":i.logout})]})]})]})}function wA({initialIsCollapsed:e,currentPath:t,...n}){return c.jsx(vA,{initialIsCollapsed:e,currentPath:t,children:c.jsx(DA,{...n})})}const EA={en:{close:"Close navigation",open:"Open navigation",settings:"Settings",logout:"Logout"},fr:{close:"Fermer la navigation",open:"Ouvrir la navigation",settings:"Paramètres",logout:"Déconnexion"}},BA=P(ju)``,kA=P(En)`
|
|
2935
2944
|
width: min(calc(100vw - var(--spacing-sm) * 2), 448px);
|
|
2936
2945
|
outline: none;
|
|
2937
|
-
`,
|
|
2946
|
+
`,SA=P(Sr)`
|
|
2938
2947
|
outline: none;
|
|
2939
2948
|
padding: var(--spacing-sm);
|
|
2940
2949
|
display: flex;
|
|
@@ -2951,12 +2960,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2951
2960
|
0px 0px 0.7px 0px rgba(161, 161, 161, 0.46),
|
|
2952
2961
|
0px 0px 4px -1.7px rgba(161, 161, 161, 0.46),
|
|
2953
2962
|
0px 0px 12.6px -1.5px rgba(161, 161, 161, 0.46);
|
|
2954
|
-
`,
|
|
2963
|
+
`,PA=P.header`
|
|
2955
2964
|
display: flex;
|
|
2956
2965
|
align-items: center;
|
|
2957
2966
|
gap: var(--spacing-xs);
|
|
2958
2967
|
width: 100%;
|
|
2959
|
-
`,
|
|
2968
|
+
`,TA=P(ba)`
|
|
2960
2969
|
padding: 0;
|
|
2961
2970
|
margin: 0;
|
|
2962
2971
|
color: var(--color-content-neutral-primary);
|
|
@@ -2964,38 +2973,38 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
2964
2973
|
font-style: normal;
|
|
2965
2974
|
font-weight: 700;
|
|
2966
2975
|
line-height: var(--text-line-height-xl);
|
|
2967
|
-
`,
|
|
2976
|
+
`,AA=P(De)`
|
|
2968
2977
|
margin-left: auto;
|
|
2969
|
-
`,
|
|
2978
|
+
`,FA=P.div`
|
|
2970
2979
|
display: flex;
|
|
2971
2980
|
flex-direction: column;
|
|
2972
2981
|
gap: var(--spacing-xxs);
|
|
2973
2982
|
flex: 1;
|
|
2974
2983
|
overflow-y: auto;
|
|
2975
2984
|
width: 100%;
|
|
2976
|
-
`,
|
|
2985
|
+
`,MA=P.div`
|
|
2977
2986
|
display: flex;
|
|
2978
2987
|
justify-content: center;
|
|
2979
2988
|
align-items: center;
|
|
2980
2989
|
flex: 1;
|
|
2981
2990
|
padding: var(--spacing-sm);
|
|
2982
|
-
`,
|
|
2991
|
+
`,VA=P.footer`
|
|
2983
2992
|
display: flex;
|
|
2984
2993
|
padding-top: var(--spacing-sm);
|
|
2985
2994
|
justify-content: space-between;
|
|
2986
2995
|
align-items: center;
|
|
2987
2996
|
align-self: stretch;
|
|
2988
2997
|
border-top: 1px solid var(--color-content-neutral-stroke);
|
|
2989
|
-
`,
|
|
2998
|
+
`,IA=P(De)`
|
|
2990
2999
|
margin-left: auto;
|
|
2991
|
-
`,
|
|
3000
|
+
`,RA=P.div`
|
|
2992
3001
|
display: flex;
|
|
2993
3002
|
flex-direction: column;
|
|
2994
3003
|
align-items: center;
|
|
2995
3004
|
justify-content: center;
|
|
2996
3005
|
gap: var(--spacing-sm);
|
|
2997
3006
|
padding: var(--spacing-sm);
|
|
2998
|
-
`,
|
|
3007
|
+
`,jA=P.h3`
|
|
2999
3008
|
margin: 0;
|
|
3000
3009
|
color: var(--color-content-neutral-primary);
|
|
3001
3010
|
text-align: center;
|
|
@@ -3003,7 +3012,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3003
3012
|
font-style: normal;
|
|
3004
3013
|
font-weight: 700;
|
|
3005
3014
|
line-height: var(--text-line-height-lg);
|
|
3006
|
-
`,
|
|
3015
|
+
`,LA=P.p`
|
|
3007
3016
|
margin: 0;
|
|
3008
3017
|
margin-bottom: 100px;
|
|
3009
3018
|
color: var(--color-content-neutral-secondary);
|
|
@@ -3012,14 +3021,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3012
3021
|
font-style: normal;
|
|
3013
3022
|
font-weight: 400;
|
|
3014
3023
|
line-height: var(--text-line-height-md);
|
|
3015
|
-
`;function
|
|
3024
|
+
`;function OA({title:e,description:t}){return c.jsxs(RA,{children:[c.jsx("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M30.0065 26.25V17.9167C30.0065 12.8 27.2732 8.51667 22.5065 7.38333V6.25C22.5065 4.86667 21.3732 3.75 19.9899 3.75C18.6065 3.75 17.5065 4.86667 17.5065 6.25V7.38333C12.7232 8.51667 10.0065 12.7833 10.0065 17.9167V26.25L7.83987 28.4C6.78987 29.45 7.5232 31.25 9.00653 31.25H30.9565C32.4399 31.25 33.1899 29.45 32.1399 28.4L30.0065 26.25ZM19.9899 36.25C21.8232 36.25 23.3232 34.75 23.3232 32.9167H16.6565C16.6565 34.75 18.1399 36.25 19.9899 36.25ZM11.2899 7.46667C11.9899 6.83333 12.0065 5.75 11.3399 5.08333C10.7065 4.45 9.6732 4.43333 9.0232 5.05C6.1732 7.65 4.20653 11.1833 3.5732 15.15C3.4232 16.1667 4.20653 17.0833 5.23987 17.0833C6.03987 17.0833 6.73987 16.5 6.8732 15.7C7.3732 12.4667 8.9732 9.58333 11.2899 7.46667ZM31.0065 5.05C30.3399 4.43333 29.3065 4.45 28.6732 5.08333C28.0065 5.75 28.0399 6.81667 28.7232 7.45C31.0232 9.56667 32.6399 12.45 33.1399 15.6833C33.2565 16.4833 33.9565 17.0667 34.7732 17.0667C35.7899 17.0667 36.5899 16.15 36.4232 15.1333C35.7899 11.1833 33.8399 7.66667 31.0065 5.05Z",fill:"var(--color-content-brand-brand-3)"})}),c.jsxs("div",{children:[c.jsx(jA,{children:e}),c.jsx(LA,{children:t})]})]})}function HA({children:e,triggerProps:t,nbOfReadNotifications:n,nbOfUnreadNotifications:r,onParametersClick:a,onMarkAllAsReadClick:o,isLoading:i,placement:u="bottom"}){const s=je(KA),d=l.useRef(null),[p,f]=l.useState(0),h=n===0&&r===0,g=!!a,m=!h&&!!o,v=g||m;l.useEffect(()=>{if(d.current){const C=d.current.getBoundingClientRect(),w=C.top+C.height;w!==p&&f(w)}});let x="content";return h&&(x="empty"),i&&(x="loading"),c.jsxs(BA,{children:[c.jsx(De,{...t,ref:d}),c.jsx(kA,{offset:16,placement:u,children:c.jsxs(SA,{style:{maxHeight:`calc(100vh - ${p}px - var(--spacing-sm) - var(--spacing-sm))`},children:[c.jsxs(PA,{children:[c.jsx(TA,{slot:"title",children:s.title}),!!r&&c.jsx(xa,{value:r,nature:"negative"}),c.jsx(AA,{mode:"tertiary",size:"small",iconLeft:"close",slot:"close","aria-label":s.close})]}),c.jsxs(FA,{children:[x==="loading"&&c.jsx(MA,{children:c.jsx(zu,{size:"large"})}),x==="empty"&&c.jsx(OA,{title:s.emptyTitle,description:s.emptyDescription}),x==="content"&&e]}),v&&c.jsxs(VA,{children:[g&&c.jsx(De,{iconLeft:"settings",onClick:a,mode:"tertiary",size:"small","aria-label":s.parameters}),m&&c.jsx(IA,{text:s.markAllAsRead,mode:"tertiary",size:"small",onClick:o})]})]})})]})}const KA={en:{title:"Notifications",markAllAsRead:"Mark all as read",parameters:"Parameters",close:"Close",loading:"Loading...",emptyTitle:"You have no notifications",emptyDescription:"When an activity is detected, you will see it here."},fr:{title:"Notifications",markAllAsRead:"Marquer tout comme lu",parameters:"Paramètres",close:"Fermer",loading:"Chargement...",emptyTitle:"Vous n’avez aucune notification",emptyDescription:"Lorsque qu’une activité est détecté, vous le verrez ici."}},zA=le.div`
|
|
3016
3025
|
display: -webkit-box;
|
|
3017
3026
|
max-width: 100%;
|
|
3018
3027
|
-webkit-line-clamp: 2;
|
|
3019
3028
|
-webkit-box-orient: vertical;
|
|
3020
3029
|
overflow: hidden;
|
|
3021
3030
|
text-overflow: ellipsis;
|
|
3022
|
-
`;function Dh({text:e,maxLines:t=2,style:n={},...r}){const a=l.useRef(null),[o,i]=l.useState(!1);return l.useEffect(()=>{const u=a.current;u&&i(u.scrollHeight>u.clientHeight+1)},[e]),c.jsx(
|
|
3031
|
+
`;function Dh({text:e,maxLines:t=2,style:n={},...r}){const a=l.useRef(null),[o,i]=l.useState(!1);return l.useEffect(()=>{const u=a.current;u&&i(u.scrollHeight>u.clientHeight+1)},[e]),c.jsx(zA,{...r,title:o?e:void 0,style:{...n,WebkitLineClamp:t},ref:a,children:e})}const NA=le.div`
|
|
3023
3032
|
position: relative;
|
|
3024
3033
|
display: flex;
|
|
3025
3034
|
flex-direction: column;
|
|
@@ -3031,12 +3040,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3031
3040
|
&[data-read="false"] {
|
|
3032
3041
|
background: var(--color-background-neutral-underground-1);
|
|
3033
3042
|
}
|
|
3034
|
-
`,
|
|
3043
|
+
`,ZA=le.div`
|
|
3035
3044
|
display: flex;
|
|
3036
3045
|
align-items: flex-start;
|
|
3037
3046
|
gap: var(--spacing-sm);
|
|
3038
3047
|
width: 100%;
|
|
3039
|
-
`,
|
|
3048
|
+
`,_A=le.div`
|
|
3040
3049
|
display: flex;
|
|
3041
3050
|
align-items: center;
|
|
3042
3051
|
justify-content: center;
|
|
@@ -3074,45 +3083,45 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3074
3083
|
&[data-read="false"] {
|
|
3075
3084
|
background-color: var(--color-background-neutral-overground);
|
|
3076
3085
|
}
|
|
3077
|
-
`,
|
|
3086
|
+
`,UA=le.img`
|
|
3078
3087
|
width: 32px;
|
|
3079
3088
|
height: 32px;
|
|
3080
3089
|
border-radius: 50%;
|
|
3081
3090
|
object-fit: cover;
|
|
3082
|
-
`,
|
|
3091
|
+
`,WA=le.div`
|
|
3083
3092
|
display: flex;
|
|
3084
3093
|
flex-direction: column;
|
|
3085
3094
|
gap: var(--spacing-sm);
|
|
3086
3095
|
flex: 1;
|
|
3087
3096
|
min-width: 0;
|
|
3088
|
-
`,
|
|
3097
|
+
`,GA=le.div`
|
|
3089
3098
|
display: flex;
|
|
3090
3099
|
align-items: flex-start;
|
|
3091
3100
|
gap: var(--spacing-sm);
|
|
3092
3101
|
width: 100%;
|
|
3093
|
-
`,
|
|
3102
|
+
`,qA=le.div`
|
|
3094
3103
|
display: flex;
|
|
3095
3104
|
flex-direction: column;
|
|
3096
3105
|
flex: 1;
|
|
3097
3106
|
min-width: 0;
|
|
3098
|
-
`,
|
|
3107
|
+
`,YA=le(Dh)`
|
|
3099
3108
|
margin: 0;
|
|
3100
3109
|
color: var(--color-content-neutral-primary);
|
|
3101
3110
|
font-size: var(--text-font-size-sm);
|
|
3102
3111
|
line-height: var(--text-line-height-sm);
|
|
3103
3112
|
font-weight: 700;
|
|
3104
|
-
`,
|
|
3113
|
+
`,JA=le(Dh)`
|
|
3105
3114
|
margin: 0;
|
|
3106
3115
|
color: var(--color-content-neutral-primary);
|
|
3107
3116
|
font-size: var(--text-font-size-sm);
|
|
3108
3117
|
line-height: var(--text-line-height-sm);
|
|
3109
3118
|
font-weight: 400;
|
|
3110
|
-
`,
|
|
3119
|
+
`,XA=le.div`
|
|
3111
3120
|
display: flex;
|
|
3112
3121
|
align-items: center;
|
|
3113
3122
|
gap: var(--spacing-xxs);
|
|
3114
3123
|
margin-top: var(--spacing-xxs);
|
|
3115
|
-
`,
|
|
3124
|
+
`,QA=le.span`
|
|
3116
3125
|
color: var(--color-content-neutral-secondary);
|
|
3117
3126
|
font-size: var(--text-font-size-xs);
|
|
3118
3127
|
line-height: var(--text-line-height-xs);
|
|
@@ -3121,29 +3130,29 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3121
3130
|
overflow: hidden;
|
|
3122
3131
|
text-overflow: ellipsis;
|
|
3123
3132
|
max-width: 100%;
|
|
3124
|
-
`,
|
|
3133
|
+
`,eF=le.div`
|
|
3125
3134
|
display: flex;
|
|
3126
3135
|
align-items: center;
|
|
3127
3136
|
gap: var(--spacing-xs);
|
|
3128
3137
|
flex-wrap: wrap;
|
|
3129
|
-
`,
|
|
3138
|
+
`,tF=le(xa)`
|
|
3130
3139
|
position: absolute;
|
|
3131
3140
|
top: var(--spacing-xs);
|
|
3132
3141
|
right: var(--spacing-xs);
|
|
3133
|
-
`,
|
|
3142
|
+
`,nF={informative:"help_outline",negative:"error_outline",warning:"warning_amber",positive:"check_circle_outline",default:"help_outline"};function rF({title:e,description:t,dateAndTime:n,isRead:r,type:a="default",customIcon:o,avatarUrl:i,avatarAlt:u,children:s,menuActions:d,onClose:p,className:f,style:h}){const g=!r,m=je(aF);return c.jsxs(NA,{"data-read":r,className:f,style:h,children:[c.jsxs(ZA,{children:[c.jsx(_A,{"data-read":r,"data-icon-type":a,children:i?c.jsx(UA,{src:i,alt:u}):c.jsx(ne,{name:o||nF[a]})}),c.jsxs(WA,{children:[c.jsxs(GA,{children:[c.jsxs(qA,{children:[c.jsx(YA,{text:e,maxLines:2}),!!t&&c.jsx(JA,{text:t,maxLines:2}),c.jsx(XA,{children:c.jsx(QA,{children:n})})]}),!d?.length&&!!p&&c.jsx(De,{onClick:p,iconLeft:"close",mode:"tertiary",size:"small"}),!!d?.length&&c.jsx(Ch,{buttonProps:{mode:"tertiary",size:"small",iconLeft:"more_vert","aria-label":m.moreOptions},children:d?.map(v=>c.jsx(bh,{...v},v.text))})]}),s&&c.jsx(eF,{children:s})]})]}),g&&c.jsx(tF,{variant:"dot",nature:"negative","data-testid":"unread-badge"})]})}const aF={en:{markAsRead:"Mark as read",moreOptions:"More options"},fr:{markAsRead:"Marquer comme lu",moreOptions:"Plus d'options"}},oF=Gm`
|
|
3134
3143
|
/* This hack is required when using the PageLayout component to avoid a bug in Chrome that creates a double scrollbar on the page */
|
|
3135
3144
|
html {
|
|
3136
3145
|
height: 100vh;
|
|
3137
3146
|
overflow: hidden;
|
|
3138
3147
|
}
|
|
3139
|
-
`,
|
|
3148
|
+
`,iF=P.div`
|
|
3140
3149
|
display: flex;
|
|
3141
3150
|
overflow: hidden;
|
|
3142
|
-
`,
|
|
3151
|
+
`,uF=P.main`
|
|
3143
3152
|
height: 100vh;
|
|
3144
3153
|
flex: 1;
|
|
3145
3154
|
overflow-y: auto;
|
|
3146
|
-
`,
|
|
3155
|
+
`,lF=P.div`
|
|
3147
3156
|
@media screen and (max-width: 767px) {
|
|
3148
3157
|
position: absolute;
|
|
3149
3158
|
z-index: var(--z-index-fixed);
|
|
@@ -3159,7 +3168,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3159
3168
|
transition: none;
|
|
3160
3169
|
}
|
|
3161
3170
|
}
|
|
3162
|
-
`,
|
|
3171
|
+
`,sF=P.div`
|
|
3163
3172
|
@media screen and (max-width: 767px) {
|
|
3164
3173
|
display: none;
|
|
3165
3174
|
|
|
@@ -3172,7 +3181,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3172
3181
|
background: rgba(0 12 51 / 0.7);
|
|
3173
3182
|
}
|
|
3174
3183
|
}
|
|
3175
|
-
`;function
|
|
3184
|
+
`;function dF({navigationComponent:e,children:t}){const n=_u();return c.jsxs(iF,{children:[c.jsx(oF,{}),c.jsx(sF,{"data-navigation-overlay-collapsed":n?.isCollapsed,onClick:()=>n?.setIsCollapsed(r=>!r)}),c.jsx(lF,{"data-page-layout-collapsed":n?.isCollapsed,children:e}),c.jsx(uF,{children:t})]})}function cF(e){return c.jsx(BP,{children:c.jsx(dF,{...e})})}const fF=P(En)`
|
|
3176
3185
|
padding: var(--spacing-sm);
|
|
3177
3186
|
border-radius: var(--radius-rounded);
|
|
3178
3187
|
color: var(--color-content-neutral-secondary);
|
|
@@ -3223,7 +3232,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3223
3232
|
margin-right: var(--spacing-xs);
|
|
3224
3233
|
--origin: translateX(4px);
|
|
3225
3234
|
}
|
|
3226
|
-
`,
|
|
3235
|
+
`,pF=P(bp)`
|
|
3227
3236
|
line-height: 0;
|
|
3228
3237
|
|
|
3229
3238
|
&[data-placement="bottom"] svg {
|
|
@@ -3237,7 +3246,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3237
3246
|
&[data-placement="left"] svg {
|
|
3238
3247
|
transform: rotate(-90deg);
|
|
3239
3248
|
}
|
|
3240
|
-
`,
|
|
3249
|
+
`,hF=P(wn)`
|
|
3241
3250
|
background: none;
|
|
3242
3251
|
border: none;
|
|
3243
3252
|
padding: 0;
|
|
@@ -3256,19 +3265,19 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3256
3265
|
background-color: transparent;
|
|
3257
3266
|
-webkit-appearance: none;
|
|
3258
3267
|
-moz-appearance: none;
|
|
3259
|
-
`,
|
|
3268
|
+
`,mF=P(Sr)`
|
|
3260
3269
|
display: flex;
|
|
3261
3270
|
flex-direction: column;
|
|
3262
3271
|
align-items: flex-start;
|
|
3263
3272
|
gap: var(--spacing-xs);
|
|
3264
3273
|
outline: none;
|
|
3265
|
-
`,
|
|
3274
|
+
`,gF=P.header`
|
|
3266
3275
|
display: flex;
|
|
3267
3276
|
justify-content: space-between;
|
|
3268
3277
|
align-items: center;
|
|
3269
3278
|
gap: var(--spacing-xs);
|
|
3270
3279
|
width: 100%;
|
|
3271
|
-
`,
|
|
3280
|
+
`,vF=P(ba)`
|
|
3272
3281
|
margin: 0;
|
|
3273
3282
|
padding: 0;
|
|
3274
3283
|
color: var(--color-content-neutral-primary);
|
|
@@ -3276,15 +3285,15 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3276
3285
|
font-style: normal;
|
|
3277
3286
|
font-weight: 700;
|
|
3278
3287
|
line-height: var(--text-line-height-lg);
|
|
3279
|
-
`,
|
|
3288
|
+
`,CF=P(De)`
|
|
3280
3289
|
margin-left: auto;
|
|
3281
|
-
`;function
|
|
3290
|
+
`;function bF({trigger:e,title:t,children:n,defaultOpen:r,isOpen:a,onOpenChange:o,placement:i="top",hideArrow:u=!1,hideCloseButton:s=!1}){const d=!!t||!s;return c.jsxs(ju,{defaultOpen:r,isOpen:a,onOpenChange:o,children:[e,c.jsxs(fF,{placement:i,children:[!u&&c.jsx(pF,{children:c.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",fill:"#FFF",children:c.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),c.jsx(mF,{children:({close:p})=>c.jsxs(c.Fragment,{children:[d&&c.jsxs(gF,{children:[!!t&&c.jsx(vF,{slot:"title",children:t}),!s&&c.jsx(CF,{iconRight:"close",mode:"tertiary",size:"small",onClick:p})]}),n]})})]})]})}function xF({children:e,triggerButtonProps:t}){return c.jsx(hF,{...t,children:e})}const yF=P.div`
|
|
3282
3291
|
display: flex;
|
|
3283
3292
|
|
|
3284
3293
|
&[data-has-label="true"] {
|
|
3285
3294
|
padding: var(--spacing-xs) var(--spacing-xxs);
|
|
3286
3295
|
}
|
|
3287
|
-
|
|
3296
|
+
`,$F=P.label`
|
|
3288
3297
|
display: flex;
|
|
3289
3298
|
align-items: center;
|
|
3290
3299
|
border-radius: var(--radius-rounded);
|
|
@@ -3308,7 +3317,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3308
3317
|
border-radius: 9999px;
|
|
3309
3318
|
outline-offset: -2px;
|
|
3310
3319
|
}
|
|
3311
|
-
`,
|
|
3320
|
+
`,DF=P.input`
|
|
3312
3321
|
margin: var(--spacing-xxs);
|
|
3313
3322
|
width: 16px;
|
|
3314
3323
|
height: 16px;
|
|
@@ -3322,9 +3331,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3322
3331
|
&:disabled {
|
|
3323
3332
|
cursor: not-allowed;
|
|
3324
3333
|
}
|
|
3325
|
-
`,
|
|
3334
|
+
`,wF=P.span`
|
|
3326
3335
|
padding: 0 var(--spacing-xs);
|
|
3327
|
-
`,
|
|
3336
|
+
`,EF=l.forwardRef(({label:e,labelProps:t,wrapperProps:n,disabled:r,...a},o)=>c.jsx(yF,{...n,"data-has-label":!!e,"data-design-system-component":"Radio",children:c.jsxs($F,{...t,"aria-disabled":!!r,"data-has-label":!!e,children:[c.jsx(DF,{...a,type:"radio",ref:o,disabled:r}),!!e&&c.jsx(wF,{children:e})]})})),BF=Wn`
|
|
3328
3337
|
from {
|
|
3329
3338
|
transform: translate(-50%, 50px) scale(0.9);
|
|
3330
3339
|
opacity: 0;
|
|
@@ -3333,10 +3342,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3333
3342
|
transform: translate(-50%, 0) scale(1);
|
|
3334
3343
|
opacity: 1;
|
|
3335
3344
|
}
|
|
3336
|
-
`,
|
|
3345
|
+
`,kF=Wn`
|
|
3337
3346
|
from { background: rgba(0 0 0 / 0); }
|
|
3338
3347
|
to { background: rgba(0 12 51 / 0.7); }
|
|
3339
|
-
`,
|
|
3348
|
+
`,SF=P(Hu)`
|
|
3340
3349
|
position: fixed;
|
|
3341
3350
|
z-index: var(--z-index-modal);
|
|
3342
3351
|
top: 0;
|
|
@@ -3346,7 +3355,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3346
3355
|
background: rgba(0 12 51 / 0.7);
|
|
3347
3356
|
|
|
3348
3357
|
&[data-entering] {
|
|
3349
|
-
animation: ${
|
|
3358
|
+
animation: ${kF} 100ms;
|
|
3350
3359
|
}
|
|
3351
3360
|
|
|
3352
3361
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -3355,7 +3364,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3355
3364
|
animation: none;
|
|
3356
3365
|
}
|
|
3357
3366
|
}
|
|
3358
|
-
`,
|
|
3367
|
+
`,PF=P(b3)`
|
|
3359
3368
|
position: fixed;
|
|
3360
3369
|
top: 12vh;
|
|
3361
3370
|
left: 50%;
|
|
@@ -3367,7 +3376,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3367
3376
|
overflow: hidden;
|
|
3368
3377
|
|
|
3369
3378
|
&[data-entering] {
|
|
3370
|
-
animation: ${
|
|
3379
|
+
animation: ${BF} 100ms;
|
|
3371
3380
|
}
|
|
3372
3381
|
|
|
3373
3382
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -3376,12 +3385,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3376
3385
|
animation: none;
|
|
3377
3386
|
}
|
|
3378
3387
|
}
|
|
3379
|
-
`,
|
|
3388
|
+
`,TF=P(Sr)`
|
|
3380
3389
|
outline: none;
|
|
3381
3390
|
max-height: min(calc(100vh - 12vh - var(--spacing-md)), 632px);
|
|
3382
3391
|
display: flex;
|
|
3383
3392
|
flex-direction: column;
|
|
3384
|
-
`,
|
|
3393
|
+
`,AF=P.div`
|
|
3385
3394
|
padding: var(--spacing-xxs);
|
|
3386
3395
|
|
|
3387
3396
|
div {
|
|
@@ -3394,7 +3403,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3394
3403
|
font-weight: 400;
|
|
3395
3404
|
line-height: var(--text-line-height-md);
|
|
3396
3405
|
}
|
|
3397
|
-
`,
|
|
3406
|
+
`,FF=P.div`
|
|
3398
3407
|
flex: 1;
|
|
3399
3408
|
overflow-y: auto;
|
|
3400
3409
|
display: inline;
|
|
@@ -3421,7 +3430,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3421
3430
|
&:focus-within {
|
|
3422
3431
|
background: var(--color-background-neutral-underground-1);
|
|
3423
3432
|
}
|
|
3424
|
-
`,
|
|
3433
|
+
`,MF=P(ne)`
|
|
3425
3434
|
width: 24px;
|
|
3426
3435
|
height: 24px;
|
|
3427
3436
|
color: var(--color-content-neutral-primary);
|
|
@@ -3430,7 +3439,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3430
3439
|
${wh}:focus-within & {
|
|
3431
3440
|
color: var(--color-content-action-action);
|
|
3432
3441
|
}
|
|
3433
|
-
`,
|
|
3442
|
+
`,VF=P.input`
|
|
3434
3443
|
flex: 1;
|
|
3435
3444
|
border: none;
|
|
3436
3445
|
outline: none;
|
|
@@ -3450,18 +3459,18 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3450
3459
|
&:focus {
|
|
3451
3460
|
outline: none;
|
|
3452
3461
|
}
|
|
3453
|
-
`,
|
|
3462
|
+
`,IF=P.button`
|
|
3454
3463
|
all: unset;
|
|
3455
3464
|
display: flex;
|
|
3456
3465
|
align-items: center;
|
|
3457
3466
|
justify-content: center;
|
|
3458
3467
|
cursor: pointer;
|
|
3459
|
-
`,
|
|
3468
|
+
`,RF=P(ne)`
|
|
3460
3469
|
width: 24px;
|
|
3461
3470
|
height: 24px;
|
|
3462
3471
|
color: var(--color-content-action-action);
|
|
3463
3472
|
flex-shrink: 0;
|
|
3464
|
-
`,
|
|
3473
|
+
`,jF=l.forwardRef(({wrapperProps:e,value:t,onChange:n,onClear:r,withResults:a,...o},i)=>{const u=l.useRef(null),s=i||u,d=je(LF);return c.jsxs(wh,{...e,"data-with-results":a,children:[c.jsx(MF,{name:"search","aria-hidden":"true"}),c.jsx(VF,{...o,ref:s,type:"text",placeholder:o.placeholder||d.placeholder,value:t,onChange:p=>n(p.target.value)}),!!t&&!!r&&c.jsx(IF,{onClick:()=>{r(),s&&"current"in s&&s.current?.focus()},"aria-label":d.clearButton,children:c.jsx(RF,{name:"close","aria-hidden":"true"})})]})}),LF={en:{placeholder:"Search",clearButton:"Clear"},fr:{placeholder:"Rechercher",clearButton:"Effacer"}},OF=l.memo(jF),HF=P.div`
|
|
3465
3474
|
display: flex;
|
|
3466
3475
|
align-items: center;
|
|
3467
3476
|
width: 100%;
|
|
@@ -3497,7 +3506,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3497
3506
|
height: 16px;
|
|
3498
3507
|
color: var(--color-content-neutral-secondary);
|
|
3499
3508
|
}
|
|
3500
|
-
`,
|
|
3509
|
+
`,KF=P.span`
|
|
3501
3510
|
font-size: 12px;
|
|
3502
3511
|
line-height: 16px;
|
|
3503
3512
|
font-weight: 700;
|
|
@@ -3508,7 +3517,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3508
3517
|
line-height: var(--text-line-height-md);
|
|
3509
3518
|
font-weight: 700;
|
|
3510
3519
|
color: var(--color-content-neutral-secondary);
|
|
3511
|
-
`;function
|
|
3520
|
+
`;function zF({className:e,style:t}){const n=je(NF);return c.jsxs(HF,{className:e,style:t,children:[c.jsxs(Wl,{children:[c.jsxs(Gl,{children:[c.jsx(ei,{"data-type":"icon",children:c.jsx(ne,{name:"arrow_upward"})}),c.jsx(ei,{"data-type":"icon",children:c.jsx(ne,{name:"arrow_downward"})})]}),c.jsx(ql,{children:n.navigation})]}),c.jsxs(Wl,{children:[c.jsx(Gl,{children:c.jsx(ei,{"data-type":"icon",children:c.jsx(ne,{name:"arrow_enter"})})}),c.jsx(ql,{children:n.choose})]}),c.jsxs(Wl,{children:[c.jsx(Gl,{children:c.jsx(ei,{"data-type":"text",children:c.jsx(KF,{children:n.esc})})}),c.jsx(ql,{children:n.close})]})]})}const NF={en:{navigation:"Navigation",choose:"Choose",close:"Close",esc:"esc"},fr:{navigation:"Navigation",choose:"Choisir",close:"Fermer",esc:"ech"}};function ZF({children:e,isOpen:t,onOpenChange:n,onClear:r,resultsCount:a,width:o,inputProps:i}){const u=je(_F),s=l.useRef(null),d=l.useRef(null);l.useEffect(()=>{const f=h=>{(h.metaKey||h.ctrlKey)&&h.key.toLowerCase()==="k"&&(h.preventDefault(),t||n(!0))};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[t,n]),l.useEffect(()=>{const f=h=>{if(h.target!==document.activeElement)return;const g=d.current?.querySelector('[role="option"]:not([data-disabled="true"])');g&&(h.key==="ArrowDown"&&s.current?.contains(h.target)&&(h.preventDefault(),g.focus()),h.key==="ArrowUp"&&g.contains(h.target)&&(h.preventDefault(),s.current?.focus()))};if(t)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[t]);let p=u.noResults;return a===1?p=`1 ${u.result}`:a>1&&(p=`${a} ${u.results}`),c.jsx(SF,{isOpen:t,onOpenChange:n,isDismissable:!0,children:c.jsx(PF,{style:{"--modal-width":o||"800px"},children:c.jsxs(TF,{"aria-label":u.title,children:[c.jsx(OF,{...i,onClear:r,withResults:!!a,autoFocus:!0,ref:s}),!!i.value&&c.jsx(AF,{children:c.jsx("div",{children:p})}),c.jsx(FF,{ref:d,children:e}),!!a&&c.jsx(zF,{})]})})})}const _F={en:{title:"Search",result:"result",results:"results",noResults:"No results found"},fr:{title:"Rechercher",result:"résultat",results:"résultats",noResults:"Aucun résultat trouvé"}},UF=l.forwardRef((e,t)=>{const{children:n,isDisabled:r,selectedKey:a,onSelectionChange:o,defaultSelectedKey:i,className:u,style:s}=e;return c.jsx(kp,{ref:t,isDisabled:r,selectedKey:a,onSelectionChange:d=>o?.(String(d)),defaultSelectedKey:i,className:u,style:s,children:n})}),WF=P.div``,GF=P(Tp)`
|
|
3512
3521
|
appearance: none;
|
|
3513
3522
|
position: relative;
|
|
3514
3523
|
display: inline-flex;
|
|
@@ -3580,16 +3589,16 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3580
3589
|
background: var(--color-content-neutral-tertiary);
|
|
3581
3590
|
color: var(--color-content-neutral-primary-reversed);
|
|
3582
3591
|
}
|
|
3583
|
-
`,
|
|
3592
|
+
`,qF=P(ne)`
|
|
3584
3593
|
font-size: ${Q.large};
|
|
3585
|
-
`,
|
|
3594
|
+
`,YF=l.forwardRef((e,t)=>{const{id:n,href:r,text:a,icon:o,style:i,className:u,isDisabled:s,routerOptions:d,...p}=e;return!a&&!o?null:c.jsxs(GF,{...p,ref:t,id:n,href:r,style:i,className:u,isDisabled:s,routerOptions:d,children:[!!o&&c.jsx(qF,{name:o}),!!a&&c.jsx(WF,{children:a})]})}),JF=P(Sp)`
|
|
3586
3595
|
display: flex;
|
|
3587
3596
|
align-items: center;
|
|
3588
|
-
`,
|
|
3597
|
+
`,XF=l.forwardRef((e,t)=>{const{children:n,className:r,style:a}=e;return c.jsx(JF,{ref:t,className:r,style:a,children:n})}),QF=l.forwardRef((e,t)=>c.jsx(Ap,{ref:t,...e})),eM=Wn`
|
|
3589
3598
|
0% { opacity:1; }
|
|
3590
3599
|
50% { opacity:0.4; }
|
|
3591
3600
|
100% { opacity:1; }
|
|
3592
|
-
`,
|
|
3601
|
+
`,tM=P.span`
|
|
3593
3602
|
display: block;
|
|
3594
3603
|
background-color: var(--color-content-neutral-stroke);
|
|
3595
3604
|
height: 1.2em;
|
|
@@ -3599,7 +3608,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3599
3608
|
animation-timing-function: ease-in-out;
|
|
3600
3609
|
animation-delay: 0.5s;
|
|
3601
3610
|
animation-iteration-count: infinite;
|
|
3602
|
-
animation-name: ${
|
|
3611
|
+
animation-name: ${eM};
|
|
3603
3612
|
|
|
3604
3613
|
&[data-variant="text"] {
|
|
3605
3614
|
transform-origin: 0 55%;
|
|
@@ -3622,10 +3631,10 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3622
3631
|
@media (prefers-reduced-motion: reduce) {
|
|
3623
3632
|
animation: none;
|
|
3624
3633
|
}
|
|
3625
|
-
`;function
|
|
3634
|
+
`;function nM({variant:e="text",color:t="neutral",width:n,height:r,style:a,className:o,...i}){return c.jsx(tM,{...i,"data-variant":e,"data-color":t,className:o,"aria-hidden":"true",style:{width:n||a?.width,height:r||a?.height,...a},children:" "})}const rM=P(f$)`
|
|
3626
3635
|
flex-direction: column;
|
|
3627
3636
|
width: 100%;
|
|
3628
|
-
`,
|
|
3637
|
+
`,aM=P.div`
|
|
3629
3638
|
width: 100%;
|
|
3630
3639
|
display: flex;
|
|
3631
3640
|
align-items: center;
|
|
@@ -3634,7 +3643,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3634
3643
|
color: var(--color-content-neutral-secondary);
|
|
3635
3644
|
font-size: ${Q.extraSmall};
|
|
3636
3645
|
line-height: ${oe.extraSmall};
|
|
3637
|
-
`,
|
|
3646
|
+
`,oM=P(p$)`
|
|
3638
3647
|
position: relative;
|
|
3639
3648
|
display: flex;
|
|
3640
3649
|
width: 100%;
|
|
@@ -3688,7 +3697,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3688
3697
|
&[data-disabled="true"]:before {
|
|
3689
3698
|
cursor: not-allowed;
|
|
3690
3699
|
}
|
|
3691
|
-
`,
|
|
3700
|
+
`,iM=P(h$)`
|
|
3692
3701
|
z-index: 3;
|
|
3693
3702
|
top: 50%;
|
|
3694
3703
|
width: 16px;
|
|
@@ -3718,7 +3727,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3718
3727
|
&[data-disabled="true"] {
|
|
3719
3728
|
cursor: not-allowed;
|
|
3720
3729
|
}
|
|
3721
|
-
`,
|
|
3730
|
+
`,uM=P.div`
|
|
3722
3731
|
position: absolute;
|
|
3723
3732
|
z-index: 2;
|
|
3724
3733
|
top: 50%;
|
|
@@ -3731,7 +3740,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3731
3740
|
&[data-disabled="true"] {
|
|
3732
3741
|
cursor: not-allowed;
|
|
3733
3742
|
}
|
|
3734
|
-
`,
|
|
3743
|
+
`,lM=P.div`
|
|
3735
3744
|
width: 2px;
|
|
3736
3745
|
height: 2px;
|
|
3737
3746
|
flex-shrink: 0;
|
|
@@ -3741,7 +3750,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3741
3750
|
&[data-active="true"] {
|
|
3742
3751
|
background: var(--color-background-neutral-ground);
|
|
3743
3752
|
}
|
|
3744
|
-
`;function
|
|
3753
|
+
`;function sM({id:e,label:t,minValue:n=0,maxValue:r=100,step:a=1,isDisabled:o,style:i,className:u,onChange:s,onChangeEnd:d,value:p,thumbLabels:f,labelIconRight:h,description:g,helperText:m,helperTextIcon:v,errorHelperText:x,errorHelperTextIcon:C,successHelperText:w,successHelperTextIcon:y,isInvalid:$,withTrackDots:B=!1,...k}){const[D,T]=l.useState(p),F=l.useId(),A=e??F,V=k["aria-label"]??String(t),_=je(dM),R=D.length>1,[L,I]=l.useState(D[0]),[K,O]=l.useState(D[1]),j={htmlForId:e,label:t,labelIconRight:h,description:g,helperTextIcon:v,helperText:m,errorHelperText:x,errorHelperTextIcon:C,successHelperText:w,successHelperTextIcon:y};l.useEffect(()=>T(p),[p]),l.useEffect(()=>{I(D[0]),O(D[1])},[D]);const z=W=>{T(W),s?.(W)},b=W=>{T(W),s?.(W),d?.(W)},S=l.useMemo(()=>{const W=[];for(let G=n;G<=r;G+=a)W.push(G);return W},[n,r,a]),E=l.useMemo(()=>!!(!S.includes(L)||R&&K<L),[L,S,R,K]),M=l.useMemo(()=>!!(!S.includes(K)||R&&K<L),[K,S,R,L]),N=(W,G)=>{const X=parseInt(W.target.value||"0");isNaN(X)||(G==="first"?I(X):O(X)),S.includes(X)&&(G==="first"&&X>K||G==="second"&&X<L||(G==="first"&&b(R?[X,K]:[X]),G==="second"&&b([L,X])))},U=c.jsx(eu,{"aria-label":`${_.valueForInput} ${f?.[0]}`,value:L,onChange:W=>N(W,"first"),nature:E?"negative":"default",disabled:o,style:{width:64,minWidth:64}}),Y=c.jsx(eu,{"aria-label":`${_.valueForInput} ${f?.[1]}`,value:K,onChange:W=>N(W,"second"),nature:M?"negative":"default",disabled:o,style:{width:64,minWidth:64}});return c.jsx(rM,{id:A,isDisabled:o,minValue:n,maxValue:r,step:a,style:i,className:u,onChange:W=>{Array.isArray(W)?z(W):z([W])},onChangeEnd:W=>{Array.isArray(W)?b(W):b([W])},value:D,"aria-label":V,children:({state:W})=>c.jsx(Ut,{...j,children:c.jsxs(aM,{children:[R&&U,c.jsx(a4,{children:n}),c.jsxs(oM,{"data-invalid":$?.(W.values)||!1,"data-range-mode":R,style:{"--thumb-1-percent":W.getThumbPercent(0)*100+"%","--thumb-2-percent":W.getThumbPercent(1)*100+"%"},children:[B&&c.jsx(uM,{"data-disabled":o,children:S.map(G=>c.jsx(lM,{"data-active":cM(G,W.values[0],W.values[1])},G))}),W.values.map((G,X)=>c.jsx(iM,{index:X,"aria-label":f?.[X],"data-invalid":$?.(W.values)||!1},X))]}),c.jsx(a4,{children:r}),R?Y:U]})})})}const dM={en:{valueForInput:"Value for"},fr:{valueForInput:"Valeur pour"}},cM=(e,t,n)=>n!=null?e>t&&e<n:e<t,fM=P.div`
|
|
3745
3754
|
display: flex;
|
|
3746
3755
|
align-items: flex-start;
|
|
3747
3756
|
justify-content: flex-start;
|
|
@@ -3755,7 +3764,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3755
3764
|
display: none;
|
|
3756
3765
|
}
|
|
3757
3766
|
}
|
|
3758
|
-
`,Eh=l.createContext({orientation:"horizontal"}),
|
|
3767
|
+
`,Eh=l.createContext({orientation:"horizontal"}),pM=()=>l.useContext(Eh),hM=({children:e,orientation:t})=>c.jsx(Eh.Provider,{value:{orientation:t},children:e});function mM({children:e,orientation:t,...n}){return c.jsx(hM,{orientation:t,children:c.jsx(fM,{"data-orientation":t,...n,children:e})})}const gM=P.div`
|
|
3759
3768
|
display: flex;
|
|
3760
3769
|
flex-direction: column;
|
|
3761
3770
|
gap: var(--spacing-xs);
|
|
@@ -3777,14 +3786,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3777
3786
|
&[data-nature="positive"] {
|
|
3778
3787
|
--primary-color: var(--color-content-message-positive);
|
|
3779
3788
|
}
|
|
3780
|
-
`,
|
|
3789
|
+
`,vM=P.div`
|
|
3781
3790
|
padding-right: var(--spacing-sm);
|
|
3782
3791
|
|
|
3783
3792
|
&[data-orientation="vertical"] {
|
|
3784
3793
|
padding-right: 0;
|
|
3785
3794
|
padding-bottom: var(--spacing-sm);
|
|
3786
3795
|
}
|
|
3787
|
-
`,
|
|
3796
|
+
`,CM=P(cr)`
|
|
3788
3797
|
margin: 0;
|
|
3789
3798
|
text-decoration: none;
|
|
3790
3799
|
color: var(--color-content-neutral-secondary);
|
|
@@ -3816,7 +3825,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3816
3825
|
color: var(--color-content-neutral-tertiary);
|
|
3817
3826
|
cursor: not-allowed;
|
|
3818
3827
|
}
|
|
3819
|
-
`,
|
|
3828
|
+
`,bM=P.div`
|
|
3820
3829
|
margin: 0;
|
|
3821
3830
|
color: var(--color-content-neutral-secondary);
|
|
3822
3831
|
font-size: var(--text-font-size-sm);
|
|
@@ -3827,14 +3836,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3827
3836
|
&[data-is-disabled="true"] {
|
|
3828
3837
|
color: var(--color-content-neutral-tertiary);
|
|
3829
3838
|
}
|
|
3830
|
-
`,
|
|
3839
|
+
`,xM=P.div`
|
|
3831
3840
|
display: flex;
|
|
3832
3841
|
align-items: center;
|
|
3833
3842
|
|
|
3834
3843
|
&[data-orientation="vertical"] {
|
|
3835
3844
|
flex-direction: column;
|
|
3836
3845
|
}
|
|
3837
|
-
|
|
3846
|
+
`,yM=P.div`
|
|
3838
3847
|
position: relative;
|
|
3839
3848
|
z-index: 1;
|
|
3840
3849
|
width: var(--spacing-md);
|
|
@@ -3879,9 +3888,9 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3879
3888
|
}
|
|
3880
3889
|
`,Zr=P(ne)`
|
|
3881
3890
|
font-size: 16px;
|
|
3882
|
-
|
|
3891
|
+
`,$M=P(Zr)`
|
|
3883
3892
|
color: var(--color-content-neutral-tertiary);
|
|
3884
|
-
`,
|
|
3893
|
+
`,DM=P.div`
|
|
3885
3894
|
width: 100%;
|
|
3886
3895
|
height: 1px;
|
|
3887
3896
|
background: var(--color-content-neutral-secondary);
|
|
@@ -3914,7 +3923,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3914
3923
|
font-style: normal;
|
|
3915
3924
|
font-weight: 400;
|
|
3916
3925
|
line-height: var(--text-line-height-xs);
|
|
3917
|
-
`;function
|
|
3926
|
+
`;function wM({title:e,description:t,children:n,nature:r="default",indicator:a,href:o,onClick:i,isCompleted:u,isActive:s,isDisabled:d,className:p,...f}){const h=!s&&(!!o||!!i),{orientation:g}=pM();return c.jsxs(gM,{"data-nature":r,"data-orientation":g,className:"DS-Step "+p||"",...f,children:[c.jsxs(xM,{"data-orientation":g,children:[c.jsx(yM,{"data-is-completed":u,"data-is-active":s,"data-is-disabled":d,"data-primary-color":r!=="default",children:c.jsx(EM,{indicator:a,nature:r,isCompleted:u,isActive:s})}),c.jsx(DM,{"data-is-completed":u,"data-orientation":g,className:"DS-Step-Line"})]}),c.jsxs(vM,{"data-orientation":g,children:[c.jsx(CM,{as:h?void 0:"div",href:s?void 0:o,onClick:s?void 0:i,"data-is-disabled":d,isDisabled:d,"data-has-link-or-action":h,tabIndex:h?void 0:-1,children:e}),c.jsx(bM,{"data-is-disabled":d,children:t}),n]})]})}const EM=e=>{const{indicator:t,nature:n,isCompleted:r,isActive:a}=e;if(typeof t=="number")return t;if(t)return c.jsx(Zr,{name:t});switch(n){case"default":return a||r?c.jsx(Zr,{name:"check"}):c.jsx($M,{name:"record_full"});case"warning":return c.jsx(Zr,{name:"error_outline"});case"negative":return c.jsx(Zr,{name:"close"});case"positive":return c.jsx(Zr,{name:"check"})}},Bh=P(ne)`
|
|
3918
3927
|
font-size: ${Q.small};
|
|
3919
3928
|
`,Ra=P.div`
|
|
3920
3929
|
position: relative;
|
|
@@ -3940,7 +3949,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
3940
3949
|
transform: translate3d(0, 0, 0);
|
|
3941
3950
|
transition: all 0.2s linear;
|
|
3942
3951
|
color: var(--color-content-neutral-primary-reversed);
|
|
3943
|
-
`,
|
|
3952
|
+
`,BM=P(iD)`
|
|
3944
3953
|
display: inline-flex;
|
|
3945
3954
|
align-items: center;
|
|
3946
3955
|
column-gap: var(--spacing-xs);
|
|
@@ -4055,14 +4064,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4055
4064
|
}
|
|
4056
4065
|
}
|
|
4057
4066
|
/* End - Handle animation */
|
|
4058
|
-
`,
|
|
4067
|
+
`,kM=l.forwardRef(({label:e,size:t="medium",labelPosition:n="right",...r},a)=>c.jsxs(BM,{...r,inputRef:a,"data-size":t,"data-has-label":!!e,children:[e&&n==="left"&&c.jsx("span",{children:e}),c.jsx(Ra,{"aria-hidden":!0,children:c.jsx(Yt,{children:c.jsx(Bh,{name:"check"})})}),e&&n==="right"&&c.jsx("span",{children:e})]})),ts=P.div`
|
|
4059
4068
|
color: var(--color-content-neutral-secondary);
|
|
4060
4069
|
font-size: ${Q.small};
|
|
4061
4070
|
line-height: ${oe.small};
|
|
4062
4071
|
font-style: normal;
|
|
4063
4072
|
font-weight: 700;
|
|
4064
4073
|
white-space: nowrap;
|
|
4065
|
-
`,ns=P(xa)``,
|
|
4074
|
+
`,ns=P(xa)``,SM=P(Tp)`
|
|
4066
4075
|
display: flex;
|
|
4067
4076
|
align-items: center;
|
|
4068
4077
|
justify-content: center;
|
|
@@ -4099,20 +4108,20 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4099
4108
|
background-color: var(--color-background-neutral-underground-2);
|
|
4100
4109
|
}
|
|
4101
4110
|
}
|
|
4102
|
-
`,
|
|
4111
|
+
`,PM=l.forwardRef((e,t)=>{const{id:n,hasNotification:r,href:a,children:o,style:i,className:u,isDisabled:s,routerOptions:d,badgeProps:p,...f}=e;return c.jsxs(SM,{...f,ref:t,id:n,href:a,style:i,className:u,isDisabled:s,routerOptions:d,children:[c.jsx(ts,{children:o}),r&&c.jsx(ns,{variant:"dot",nature:"negative"}),p&&c.jsx(ns,{...p})]})}),TM=P(Sp)`
|
|
4103
4112
|
display: flex;
|
|
4104
4113
|
align-items: center;
|
|
4105
4114
|
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
4106
|
-
`,
|
|
4115
|
+
`,AM=P.div`
|
|
4107
4116
|
overflow-x: auto;
|
|
4108
4117
|
width: 100%;
|
|
4109
|
-
`,
|
|
4118
|
+
`,FM=l.forwardRef((e,t)=>{const{children:n,className:r,style:a}=e;return c.jsx(AM,{"data-component":"tab-list",children:c.jsx(TM,{ref:t,className:r,style:a,children:n})})}),MM=l.forwardRef((e,t)=>c.jsx(Ap,{ref:t,...e})),VM=P(kp)``,IM=l.forwardRef((e,t)=>{const{children:n,isDisabled:r,selectedKey:a,onSelectionChange:o,defaultSelectedKey:i,className:u,style:s}=e;return c.jsx(VM,{ref:t,isDisabled:r,selectedKey:a,onSelectionChange:d=>o?.(String(d)),defaultSelectedKey:i,className:u,style:s,"data-design-system-component":"Tabs",children:n})}),RM=P(I$)`
|
|
4110
4119
|
display: flex;
|
|
4111
4120
|
|
|
4112
4121
|
&[data-fullwidth="true"] {
|
|
4113
4122
|
width: 100%;
|
|
4114
4123
|
}
|
|
4115
|
-
`,
|
|
4124
|
+
`,jM=P(v3)`
|
|
4116
4125
|
position: relative;
|
|
4117
4126
|
display: inline-flex;
|
|
4118
4127
|
justify-content: flex-start;
|
|
@@ -4155,13 +4164,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4155
4164
|
&[data-nature="warning"] {
|
|
4156
4165
|
outline-color: var(--color-content-message-warning-darker);
|
|
4157
4166
|
}
|
|
4158
|
-
`,
|
|
4167
|
+
`,LM=l.forwardRef(({wrapperProps:e,id:t,label:n,labelIconRight:r,description:a,helperTextIcon:o,helperText:i,errorHelperText:u,errorHelperTextIcon:s,successHelperText:d,successHelperTextIcon:p,warningHelperText:f,warningHelperTextIcon:h,required:g,nature:m,fullWidth:v,isDisabled:x,defaultValue:C,onChange:w,value:y,ampm:$,orientation:B,...k},D)=>{const T=k["aria-label"]??String(n),F=Pr({nature:m,successHelperText:d,errorHelperText:u,warningHelperText:f}),A={...e,htmlForId:t,label:n,labelIconRight:r,description:a,helperTextIcon:o,helperText:i,errorHelperText:u,errorHelperTextIcon:s,successHelperText:d,successHelperTextIcon:p,warningHelperText:f,warningHelperTextIcon:h,required:g,orientation:B};let V;return $===!0&&(V=12),$===!1&&(V=24),c.jsx(Ut,{...A,ref:D,children:c.jsx(RM,{...k,id:t,isDisabled:x,"aria-label":T,isRequired:g,"data-fullwidth":v,defaultValue:C?xd(C):void 0,onChange:_=>w?.((_||"").toString()),value:typeof y=="string"?xd(y):y,hourCycle:V,children:c.jsx(jM,{"data-fullwidth":v,"aria-disabled":x,"data-nature":F,children:_=>c.jsx(Qi,{segment:_})})})})});function OM(e){return e.type==="group"}const kh=188,HM=58,KM=40,Sh=e=>e>0?KM:HM,zM=5,NM=3,Ph=e=>e>0?NM:zM,ZM=le.div`
|
|
4159
4168
|
display: flex;
|
|
4160
4169
|
align-items: flex-end;
|
|
4161
4170
|
overflow-x: auto;
|
|
4162
|
-
`,
|
|
4171
|
+
`,_M=le.div`
|
|
4163
4172
|
flex: 1;
|
|
4164
|
-
`,
|
|
4173
|
+
`,UM=le.div`
|
|
4165
4174
|
position: relative;
|
|
4166
4175
|
overflow: hidden;
|
|
4167
4176
|
`,o4=le.div`
|
|
@@ -4192,12 +4201,12 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4192
4201
|
&:last-child[data-type="dot"] div {
|
|
4193
4202
|
transform: none;
|
|
4194
4203
|
}
|
|
4195
|
-
`,
|
|
4204
|
+
`,WM=le.div`
|
|
4196
4205
|
width: 5px;
|
|
4197
4206
|
height: 5px;
|
|
4198
4207
|
border-radius: 50%;
|
|
4199
4208
|
background-color: var(--color-content-neutral-secondary);
|
|
4200
|
-
`,
|
|
4209
|
+
`,GM=le.div`
|
|
4201
4210
|
flex-grow: 1;
|
|
4202
4211
|
flex-shrink: 0;
|
|
4203
4212
|
flex-basis: 0;
|
|
@@ -4209,14 +4218,14 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4209
4218
|
&:last-child {
|
|
4210
4219
|
border-right: none;
|
|
4211
4220
|
}
|
|
4212
|
-
`,Th=1e3*60*60,qu=Th*24,
|
|
4221
|
+
`,Th=1e3*60*60,qu=Th*24,qM=qu*7,YM=qu*14;function JM(e){return e<=qu?"hours":e<=qM?"week":e<=YM?"two-weeks":"month"}const XM=({startDate:e,endDate:t})=>{const n=ke(),r=t.getTime()-e.getTime(),a=JM(r);if(a==="hours"){const u=Math.ceil(r/Th);return c.jsx(o4,{children:new Array(u).fill(0).map((s,d)=>{const p=d+1;return p%2===0?c.jsx(i4,{"data-type":"dot",children:c.jsx(WM,{"data-testid":`hour-dot-${p}`})},p):c.jsx(i4,{"data-type":"number",children:c.jsxs("span",{children:[p.toString().padStart(2,"0"),"h"]})},p)})})}const o=Math.ceil(r/qu),i=new Array(o).fill(0).map((u,s)=>{const d=new Date(e);return d.setDate(d.getDate()+s),d});return c.jsx(o4,{children:i.map(u=>{const s=u.toLocaleDateString(n.locale,{weekday:"short"}),d=u.toLocaleDateString(n.locale,{day:"2-digit",month:a==="week"?"2-digit":void 0});return c.jsxs(GM,{children:[a!=="month"&&c.jsx("div",{children:s}),c.jsx("div",{children:d})]},u.toISOString())})})},$i=(e,t,n)=>{const r=e.startDate<t?t:e.startDate,a=e.endDate>n?n:e.endDate,o=n.getTime()-t.getTime(),i=a.getTime()-r.getTime(),u=(r.getTime()-t.getTime())/o,s=i/o;return{start:(u*100).toFixed(2),width:(s*100).toFixed(2)}},QM=le.div`
|
|
4213
4222
|
display: flex;
|
|
4214
|
-
`,
|
|
4223
|
+
`,eV=le.div`
|
|
4215
4224
|
flex: 1;
|
|
4216
4225
|
position: relative;
|
|
4217
4226
|
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
4218
4227
|
overflow: hidden;
|
|
4219
|
-
`,
|
|
4228
|
+
`,tV=le.div`
|
|
4220
4229
|
position: absolute;
|
|
4221
4230
|
top: var(--spacing-xs);
|
|
4222
4231
|
bottom: var(--spacing-xs);
|
|
@@ -4229,7 +4238,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4229
4238
|
button[data-clickable="true"]:hover {
|
|
4230
4239
|
filter: brightness(0.8);
|
|
4231
4240
|
}
|
|
4232
|
-
`,
|
|
4241
|
+
`,nV=le.div`
|
|
4233
4242
|
position: absolute;
|
|
4234
4243
|
max-width: 100%;
|
|
4235
4244
|
height: 100%;
|
|
@@ -4240,24 +4249,24 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4240
4249
|
&[data-is-expanded="true"] {
|
|
4241
4250
|
background-color: #f6f6f699;
|
|
4242
4251
|
}
|
|
4243
|
-
`,
|
|
4252
|
+
`,rV=le.div`
|
|
4244
4253
|
position: absolute;
|
|
4245
4254
|
width: 1px;
|
|
4246
4255
|
z-index: calc(var(--z-index-base) + 2);
|
|
4247
4256
|
height: 100%;
|
|
4248
4257
|
border: 1px solid var(--color-content-neutral-primary);
|
|
4249
4258
|
transform: translateX(-50%);
|
|
4250
|
-
`;function
|
|
4259
|
+
`;function aV(e){let t=[];for(const n of e){const r=t.filter(a=>oV(n,a));if(r.length===0&&t.push({start:n.startDate,end:n.endDate,blocks:[n]}),r.length===1){const a=r[0];a.blocks.push(n),n.startDate<a.start&&(a.start=n.startDate),n.endDate>a.end&&(a.end=n.endDate)}if(r.length>1){const a=r.reduce((u,s)=>s.start<u?s.start:u,r[0].start),o=r.reduce((u,s)=>s.end>u?s.end:u,r[0].end),i={start:a,end:o,blocks:[...r.flatMap(u=>u.blocks),n]};t=t.filter(u=>!r.includes(u)),t.push(i)}}return t}const oV=(e,t)=>e.startDate===t.start||e.startDate<t.end&&e.startDate>=t.start||e.endDate>t.start&&e.endDate<=t.end||e.endDate===t.end||e.startDate<t.start&&e.endDate>t.end;function iV(e,t,n){return!(e.startDate<t&&e.endDate<=t||e.startDate>=n)}const uV=P.div`
|
|
4251
4260
|
position: absolute;
|
|
4252
4261
|
bottom: calc(var(--spacing-xs) * -2);
|
|
4253
4262
|
display: flex;
|
|
4254
4263
|
align-items: center;
|
|
4255
4264
|
justify-content: center;
|
|
4256
|
-
`,
|
|
4265
|
+
`,lV=P.button`
|
|
4257
4266
|
all: unset;
|
|
4258
4267
|
cursor: pointer;
|
|
4259
4268
|
padding: var(--spacing-xs);
|
|
4260
|
-
`;function
|
|
4269
|
+
`;function sV(e){const t=je(dV);let n=e.lineEndDate,r=e.lineStartDate;for(const i of e.blocks)i.startDate<n&&(n=i.startDate),i.endDate>r&&(r=i.endDate);const{start:a,width:o}=$i({startDate:n,endDate:r},e.lineStartDate,e.lineEndDate);return c.jsx(uV,{style:{left:`${a}%`,width:`${o}%`},children:c.jsx(lV,{onClick:e.onClick,type:"button","data-start":a,"data-width":o,title:t.expand,children:c.jsx("svg",{width:"8",height:"2",viewBox:"0 0 8 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c.jsx("path",{d:"M0.999878 0C0.449878 0 -0.00012207 0.45 -0.00012207 1C-0.00012207 1.55 0.449878 2 0.999878 2C1.54988 2 1.99988 1.55 1.99988 1C1.99988 0.45 1.54988 0 0.999878 0ZM6.99988 0C6.44988 0 5.99988 0.45 5.99988 1C5.99988 1.55 6.44988 2 6.99988 2C7.54988 2 7.99988 1.55 7.99988 1C7.99988 0.45 7.54988 0 6.99988 0ZM3.99988 0C3.44988 0 2.99988 0.45 2.99988 1C2.99988 1.55 3.44988 2 3.99988 2C4.54988 2 4.99988 1.55 4.99988 1C4.99988 0.45 4.54988 0 3.99988 0Z",fill:"#454545"})})})})}const dV={en:{expand:"Expand"},fr:{expand:"Afficher plus"}};function cV({nbOfBlocks:e,isCollapsed:t,indentLevel:n}){const r=Ph(n),a=Sh(n);if(t||e<=r)return a;const o=e-r;return a+o*9}const fV=le.div`
|
|
4261
4270
|
display: flex;
|
|
4262
4271
|
align-items: center;
|
|
4263
4272
|
justify-content: flex-start;
|
|
@@ -4283,21 +4292,21 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4283
4292
|
color: var(--color-content-action-action);
|
|
4284
4293
|
}
|
|
4285
4294
|
}
|
|
4286
|
-
`,
|
|
4295
|
+
`,pV=le.button`
|
|
4287
4296
|
all: unset;
|
|
4288
4297
|
cursor: pointer;
|
|
4289
4298
|
display: flex;
|
|
4290
4299
|
align-items: center;
|
|
4291
4300
|
gap: var(--spacing-xxs);
|
|
4292
4301
|
max-width: 100%;
|
|
4293
|
-
`,
|
|
4302
|
+
`,hV=le.span`
|
|
4294
4303
|
display: -webkit-box;
|
|
4295
4304
|
max-width: 100%;
|
|
4296
4305
|
-webkit-line-clamp: 2;
|
|
4297
4306
|
-webkit-box-orient: vertical;
|
|
4298
4307
|
overflow: hidden;
|
|
4299
4308
|
text-overflow: ellipsis;
|
|
4300
|
-
`,
|
|
4309
|
+
`,mV=le(ne)`
|
|
4301
4310
|
flex-shrink: 0;
|
|
4302
4311
|
transition: transform 0.2s ease;
|
|
4303
4312
|
transform: rotate(0deg);
|
|
@@ -4306,7 +4315,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4306
4315
|
&[data-is-expanded="true"] {
|
|
4307
4316
|
transform: rotate(180deg);
|
|
4308
4317
|
}
|
|
4309
|
-
`,
|
|
4318
|
+
`,gV=({name:e,isGroupParent:t,isExpanded:n,onClick:r,indentLevel:a=0})=>{const o=l.useRef(null),[i,u]=l.useState(!1);l.useEffect(()=>{const d=o.current;d&&u(d.scrollHeight>Sh(a)-5)},[e,a]);const s=c.jsx(hV,{title:i?e:void 0,ref:o,children:e});return c.jsx(fV,{"data-is-group-parent":t,"data-is-expanded":n,"data-indent-level":a,children:t?c.jsxs(pV,{type:"button",onClick:r,children:[c.jsx(mV,{name:"expand_more","data-is-expanded":n}),s]}):s})};function vV({start:e,width:t,block:n,lineStartDate:r,lineEndDate:a,indentLevel:o}){const i=n.startDate<r,u=n.endDate>a,s=i&&u;let d="32px";s?d="0":u?d="32px 0 0 32px":i&&(d="0 32px 32px 0");let p="1px";s?p="1px 0 1px 0":u?p="1px 0 1px 1px":i&&(p="1px 1px 1px 0");const f=o&&o>0?`color-mix(in srgb, ${n.color} 25%, transparent)`:n.color;return{height:"100%",display:"block",position:"relative",width:`calc(${t}% - 1px)`,left:`${e}%`,borderStyle:"solid",borderColor:n.color,borderWidth:p,backgroundColor:f,borderRadius:d,zIndex:"var(--z-index-base)",cursor:n.onClick?"pointer":"default"}}function rs({name:e,blocks:t,lineStartDate:n,lineEndDate:r,isGroupParent:a,isGroupExpanded:o,onNameClick:i,indentLevel:u=0,...s}){const[d,p]=l.useState(!0),f=l.useMemo(()=>t.filter(x=>iV(x,n,r)),[t,n,r]),h=l.useMemo(()=>aV(f),[f]),g=$i({startDate:n,endDate:new Date},n,r),m=$i({startDate:new Date,endDate:new Date},n,r),v=Math.max(...h.map(x=>x.blocks.length));return c.jsxs(QM,{...s,children:[c.jsx(gV,{name:e,isGroupParent:a,isExpanded:o,onClick:i,indentLevel:u}),c.jsxs(eV,{style:{height:cV({nbOfBlocks:v,isCollapsed:d,indentLevel:u})},children:[c.jsx(nV,{style:{width:`${g.width}%`},"data-is-expanded":o||u>0}),h.map((x,C)=>{const w=d?x.blocks.slice(0,Ph(u)):x.blocks,y=x.blocks.length>w.length;return c.jsxs(tV,{children:[w.map($=>{const{start:B,width:k}=$i($,n,r);return c.jsx(Nu,{label:$.hoverText,placement:"top",closeDelay:0,delay:0,fluid:!0,children:c.jsx(Lp,{triggerButtonProps:{onClick:$.onClick,style:vV({start:B,width:k,block:$,lineStartDate:n,lineEndDate:r,indentLevel:u}),"data-start":String(B),"data-width":String(k),"data-color":$.color,"data-group-index":String(C),"data-testid":$.hoverText,"data-clickable":$.onClick?"true":void 0}})},$.id)}),y&&c.jsx(sV,{blocks:x.blocks,lineStartDate:n,lineEndDate:r,onClick:()=>p(!d)})]},`${x.start.toISOString()} - ${C}`)}),c.jsx(rV,{style:{left:`${m.start}%`}})]})]})}function u4(e){const t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),r=e.getFullYear(),a=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return`${t}/${n}/${r} ${a}:${o}`}function CV(e){const t=e.flatMap(a=>a.blocks),n=new Map;for(const a of t){const o=n.get(a.color)??[];o.push(a),n.set(a.color,o)}const r=[];for(const[a,o]of n){const i=[...o].sort((s,d)=>s.startDate.getTime()-d.startDate.getTime()),u=[];for(const s of i){const d=u[u.length-1];d&&s.startDate<d.endDate?s.endDate>d.endDate&&(d.endDate=s.endDate):u.push({startDate:new Date(s.startDate),endDate:new Date(s.endDate)})}for(let s=0;s<u.length;s++){const{startDate:d,endDate:p}=u[s];r.push({id:`merged-${a}-${s}`,startDate:d,endDate:p,color:a,hoverText:`${u4(d)} - ${u4(p)}`})}}return r}const bV=le.div`
|
|
4310
4319
|
display: flex;
|
|
4311
4320
|
flex-direction: column;
|
|
4312
4321
|
|
|
@@ -4314,7 +4323,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4314
4323
|
border-bottom: 1px solid var(--color-content-neutral-tertiary);
|
|
4315
4324
|
background: var(--color-background-neutral-underground-1);
|
|
4316
4325
|
}
|
|
4317
|
-
`;function yV({name:e,subLines:t,lineStartDate:n,lineEndDate:r}){const[a,o]=l.useState(!1),i=l.useMemo(()=>bV(t),[t]);return c.jsxs(xV,{"data-is-expanded":a,children:[c.jsx(rs,{name:e,blocks:i,lineStartDate:n,lineEndDate:r,isGroupParent:!0,isGroupExpanded:a,onNameClick:()=>o(!a)}),a&&t.map((u,s)=>c.jsx(rs,{name:u.name,blocks:u.blocks,lineStartDate:n,lineEndDate:r,indentLevel:1},`sub-line-${u.name}-${s}`))]})}function $V({emptyPlaceholder:e,lines:t,startDate:n,endDate:r,...a}){return!t||t.length===0?c.jsx(c.Fragment,{children:e}):c.jsx(_M,{...a,"data-testid":"timeline",children:c.jsxs(UM,{children:[c.jsx(QM,{startDate:n,endDate:r}),c.jsx(WM,{"data-testid":"block-chart",children:t.map((o,i)=>HM(o)?c.jsx(yV,{name:o.name,subLines:o.subLines,lineStartDate:n,lineEndDate:r},`block-chart-group-${o.name}-${i}`):c.jsx(rs,{"data-testid":`block-chart-line-${o.name}-${i}`,name:o.name,blocks:o.blocks,lineStartDate:n,lineEndDate:r},`block-chart-line-${o.name}-${i}`))})]})})}function DV(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const wV=e=>{switch(e){case"success":return kV;case"info":return PV;case"warning":return SV;case"error":return TV;default:return null}},EV=Array(12).fill(0),BV=({visible:e,className:t})=>l.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},l.createElement("div",{className:"sonner-spinner"},EV.map((n,r)=>l.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),kV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),SV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),PV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),TV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),AV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},l.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FV=()=>{const[e,t]=l.useState(document.hidden);return l.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let as=1;class MV{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:as++,i=this.toasts.find(s=>s.id===o),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:u,title:r}):s):this.addToast({title:r,...a,dismissible:u,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,i;const u=a.then(async d=>{if(i=["resolve",d],l.isValidElement(d))o=!1,this.create({id:r,type:"default",message:d});else if(IV(d)&&!d.ok){o=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,m=typeof f=="object"&&!l.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(d instanceof Error){o=!1;const f=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,m=typeof f=="object"&&!l.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(n.success!==void 0){o=!1;const f=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,m=typeof f=="object"&&!l.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...m})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){o=!1;const p=typeof n.error=="function"?await n.error(d):n.error,f=typeof n.description=="function"?await n.description(d):n.description,g=typeof p=="object"&&!l.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:f,...g})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((d,p)=>u.then(()=>i[0]==="reject"?p(i[1]):d(i[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,n)=>{const r=n?.id||as++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const pt=new MV,VV=(e,t)=>{const n=t?.id||as++;return pt.addToast({title:e,...t,id:n}),n},IV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",RV=VV,jV=()=>pt.toasts,LV=()=>pt.getActiveToasts(),OV=Object.assign(RV,{success:pt.success,info:pt.info,warning:pt.warning,error:pt.error,custom:pt.custom,message:pt.message,promise:pt.promise,dismiss:pt.dismiss,loading:pt.loading},{getHistory:jV,getToasts:LV});DV("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ti(e){return e.label!==void 0}const HV=3,KV="24px",zV="16px",l4=4e3,NV=356,ZV=14,_V=45,UV=200;function qt(...e){return e.filter(Boolean).join(" ")}function WV(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const GV=e=>{var t,n,r,a,o,i,u,s,d;const{invert:p,toast:f,unstyled:h,interacting:g,setHeights:m,visibleToasts:v,heights:x,index:C,toasts:w,expanded:y,removeToast:$,defaultRichColors:B,closeButton:k,style:D,cancelButtonStyle:T,actionButtonStyle:F,className:A="",descriptionClassName:V="",duration:_,position:R,gap:L,expandByDefault:I,classNames:K,icons:O,closeButtonAriaLabel:j="Close toast"}=e,[z,b]=l.useState(null),[S,E]=l.useState(null),[M,N]=l.useState(!1),[U,Y]=l.useState(!1),[W,G]=l.useState(!1),[X,H]=l.useState(!1),[q,Z]=l.useState(!1),[ee,me]=l.useState(0),[Le,Bn]=l.useState(0),ie=l.useRef(f.duration||_||l4),kt=l.useRef(null),rt=l.useRef(null),hn=C===0,pe=C+1<=v,ce=f.type,we=f.dismissible!==!1,al=f.className||"",Lh=f.descriptionClassName||"",Fo=l.useMemo(()=>x.findIndex(ae=>ae.toastId===f.id)||0,[x,f.id]),Oh=l.useMemo(()=>{var ae;return(ae=f.closeButton)!=null?ae:k},[f.closeButton,k]),A3=l.useMemo(()=>f.duration||_||l4,[f.duration,_]),ol=l.useRef(0),Tr=l.useRef(0),F3=l.useRef(0),Ar=l.useRef(null),[Hh,Kh]=R.split("-"),M3=l.useMemo(()=>x.reduce((ae,Qe,at)=>at>=Fo?ae:ae+Qe.height,0),[x,Fo]),V3=FV(),zh=f.invert||p,il=ce==="loading";Tr.current=l.useMemo(()=>Fo*L+M3,[Fo,M3]),l.useEffect(()=>{ie.current=A3},[A3]),l.useEffect(()=>{N(!0)},[]),l.useEffect(()=>{const ae=rt.current;if(ae){const Qe=ae.getBoundingClientRect().height;return Bn(Qe),m(at=>[{toastId:f.id,height:Qe,position:f.position},...at]),()=>m(at=>at.filter(yt=>yt.toastId!==f.id))}},[m,f.id]),l.useLayoutEffect(()=>{if(!M)return;const ae=rt.current,Qe=ae.style.height;ae.style.height="auto";const at=ae.getBoundingClientRect().height;ae.style.height=Qe,Bn(at),m(yt=>yt.find(tt=>tt.toastId===f.id)?yt.map(tt=>tt.toastId===f.id?{...tt,height:at}:tt):[{toastId:f.id,height:at,position:f.position},...yt])},[M,f.title,f.description,m,f.id,f.jsx,f.action,f.cancel]);const kn=l.useCallback(()=>{Y(!0),me(Tr.current),m(ae=>ae.filter(Qe=>Qe.toastId!==f.id)),setTimeout(()=>{$(f)},UV)},[f,$,m,Tr]);l.useEffect(()=>{if(f.promise&&ce==="loading"||f.duration===1/0||f.type==="loading")return;let ae;return y||g||V3?(()=>{if(F3.current<ol.current){const yt=new Date().getTime()-ol.current;ie.current=ie.current-yt}F3.current=new Date().getTime()})():ie.current!==1/0&&(ol.current=new Date().getTime(),ae=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),kn()},ie.current)),()=>clearTimeout(ae)},[y,g,f,ce,V3,kn]),l.useEffect(()=>{f.delete&&(kn(),f.onDismiss==null||f.onDismiss.call(f,f))},[kn,f.delete]);function Nh(){var ae;if(O?.loading){var Qe;return l.createElement("div",{className:qt(K?.loader,f==null||(Qe=f.classNames)==null?void 0:Qe.loader,"sonner-loader"),"data-visible":ce==="loading"},O.loading)}return l.createElement(BV,{className:qt(K?.loader,f==null||(ae=f.classNames)==null?void 0:ae.loader),visible:ce==="loading"})}const Zh=f.icon||O?.[ce]||wV(ce);var I3,R3;return l.createElement("li",{tabIndex:0,ref:rt,className:qt(A,al,K?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,K?.default,K?.[ce],f==null||(n=f.classNames)==null?void 0:n[ce]),"data-sonner-toast":"","data-rich-colors":(I3=f.richColors)!=null?I3:B,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":M,"data-promise":!!f.promise,"data-swiped":q,"data-removed":U,"data-visible":pe,"data-y-position":Hh,"data-x-position":Kh,"data-index":C,"data-front":hn,"data-swiping":W,"data-dismissible":we,"data-type":ce,"data-invert":zh,"data-swipe-out":X,"data-swipe-direction":S,"data-expanded":!!(y||I&&M),"data-testid":f.testId,style:{"--index":C,"--toasts-before":C,"--z-index":w.length-C,"--offset":`${U?ee:Tr.current}px`,"--initial-height":I?"auto":`${Le}px`,...D,...f.style},onDragEnd:()=>{G(!1),b(null),Ar.current=null},onPointerDown:ae=>{ae.button!==2&&(il||!we||(kt.current=new Date,me(Tr.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(G(!0),Ar.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,Qe,at;if(X||!we)return;Ar.current=null;const yt=Number(((ae=rt.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mo=Number(((Qe=rt.current)==null?void 0:Qe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),tt=new Date().getTime()-((at=kt.current)==null?void 0:at.getTime()),St=z==="x"?yt:Mo,Vo=Math.abs(St)/tt;if(Math.abs(St)>=_V||Vo>.11){me(Tr.current),f.onDismiss==null||f.onDismiss.call(f,f),E(z==="x"?yt>0?"right":"left":Mo>0?"down":"up"),kn(),H(!0);return}else{var Kt,zt;(Kt=rt.current)==null||Kt.style.setProperty("--swipe-amount-x","0px"),(zt=rt.current)==null||zt.style.setProperty("--swipe-amount-y","0px")}Z(!1),G(!1),b(null)},onPointerMove:ae=>{var Qe,at,yt;if(!Ar.current||!we||((Qe=window.getSelection())==null?void 0:Qe.toString().length)>0)return;const tt=ae.clientY-Ar.current.y,St=ae.clientX-Ar.current.x;var Vo;const Kt=(Vo=e.swipeDirections)!=null?Vo:WV(R);!z&&(Math.abs(St)>1||Math.abs(tt)>1)&&b(Math.abs(St)>Math.abs(tt)?"x":"y");let zt={x:0,y:0};const j3=er=>1/(1.5+Math.abs(er)/20);if(z==="y"){if(Kt.includes("top")||Kt.includes("bottom"))if(Kt.includes("top")&&tt<0||Kt.includes("bottom")&&tt>0)zt.y=tt;else{const er=tt*j3(tt);zt.y=Math.abs(er)<Math.abs(tt)?er:tt}}else if(z==="x"&&(Kt.includes("left")||Kt.includes("right")))if(Kt.includes("left")&&St<0||Kt.includes("right")&&St>0)zt.x=St;else{const er=St*j3(St);zt.x=Math.abs(er)<Math.abs(St)?er:St}(Math.abs(zt.x)>0||Math.abs(zt.y)>0)&&Z(!0),(at=rt.current)==null||at.style.setProperty("--swipe-amount-x",`${zt.x}px`),(yt=rt.current)==null||yt.style.setProperty("--swipe-amount-y",`${zt.y}px`)}},Oh&&!f.jsx&&ce!=="loading"?l.createElement("button",{"aria-label":j,"data-disabled":il,"data-close-button":!0,onClick:il||!we?()=>{}:()=>{kn(),f.onDismiss==null||f.onDismiss.call(f,f)},className:qt(K?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(R3=O?.close)!=null?R3:AV):null,(ce||f.icon||f.promise)&&f.icon!==null&&(O?.[ce]!==null||f.icon)?l.createElement("div",{"data-icon":"",className:qt(K?.icon,f==null||(a=f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Nh():null,f.type!=="loading"?Zh:null):null,l.createElement("div",{"data-content":"",className:qt(K?.content,f==null||(o=f.classNames)==null?void 0:o.content)},l.createElement("div",{"data-title":"",className:qt(K?.title,f==null||(i=f.classNames)==null?void 0:i.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?l.createElement("div",{"data-description":"",className:qt(V,Lh,K?.description,f==null||(u=f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),l.isValidElement(f.cancel)?f.cancel:f.cancel&&ti(f.cancel)?l.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||T,onClick:ae=>{ti(f.cancel)&&we&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ae),kn())},className:qt(K?.cancelButton,f==null||(s=f.classNames)==null?void 0:s.cancelButton)},f.cancel.label):null,l.isValidElement(f.action)?f.action:f.action&&ti(f.action)?l.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||F,onClick:ae=>{ti(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ae),!ae.defaultPrevented&&kn())},className:qt(K?.actionButton,f==null||(d=f.classNames)==null?void 0:d.actionButton)},f.action.label):null)};function s4(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function qV(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,i=o?"--mobile-offset":"--offset",u=o?zV:KV;function s(d){["top","right","bottom","left"].forEach(p=>{n[`${i}-${p}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=u:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):s(u)}),n}const YV=l.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:u,closeButton:s,className:d,offset:p,mobileOffset:f,theme:h="light",richColors:g,duration:m,style:v,visibleToasts:x=HV,toastOptions:C,dir:w=s4(),gap:y=ZV,icons:$,containerAriaLabel:B="Notifications"}=t,[k,D]=l.useState([]),T=l.useMemo(()=>r?k.filter(M=>M.toasterId===r):k.filter(M=>!M.toasterId),[k,r]),F=l.useMemo(()=>Array.from(new Set([o].concat(T.filter(M=>M.position).map(M=>M.position)))),[T,o]),[A,V]=l.useState([]),[_,R]=l.useState(!1),[L,I]=l.useState(!1),[K,O]=l.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=l.useRef(null),z=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=l.useRef(null),S=l.useRef(!1),E=l.useCallback(M=>{D(N=>{var U;return(U=N.find(Y=>Y.id===M.id))!=null&&U.delete||pt.dismiss(M.id),N.filter(({id:Y})=>Y!==M.id)})},[]);return l.useEffect(()=>pt.subscribe(M=>{if(M.dismiss){requestAnimationFrame(()=>{D(N=>N.map(U=>U.id===M.id?{...U,delete:!0}:U))});return}setTimeout(()=>{Un.flushSync(()=>{D(N=>{const U=N.findIndex(Y=>Y.id===M.id);return U!==-1?[...N.slice(0,U),{...N[U],...M},...N.slice(U+1)]:[M,...N]})})})}),[k]),l.useEffect(()=>{if(h!=="system"){O(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:N})=>{O(N?"dark":"light")})}catch{M.addListener(({matches:U})=>{try{O(U?"dark":"light")}catch(Y){console.error(Y)}})}},[h]),l.useEffect(()=>{k.length<=1&&R(!1)},[k]),l.useEffect(()=>{const M=N=>{var U;if(i.every(G=>N[G]||N.code===G)){var W;R(!0),(W=j.current)==null||W.focus()}N.code==="Escape"&&(document.activeElement===j.current||(U=j.current)!=null&&U.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[i]),l.useEffect(()=>{if(j.current)return()=>{b.current&&(b.current.focus({preventScroll:!0}),b.current=null,S.current=!1)}},[j.current]),l.createElement("section",{ref:n,"aria-label":`${B} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((M,N)=>{var U;const[Y,W]=M.split("-");return T.length?l.createElement("ol",{key:M,dir:w==="auto"?s4():w,tabIndex:-1,ref:j,className:d,"data-sonner-toaster":!0,"data-sonner-theme":K,"data-y-position":Y,"data-x-position":W,style:{"--front-toast-height":`${((U=A[0])==null?void 0:U.height)||0}px`,"--width":`${NV}px`,"--gap":`${y}px`,...v,...qV(p,f)},onBlur:G=>{S.current&&!G.currentTarget.contains(G.relatedTarget)&&(S.current=!1,b.current&&(b.current.focus({preventScroll:!0}),b.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||S.current||(S.current=!0,b.current=G.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{L||R(!1)},onDragEnd:()=>R(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},T.filter(G=>!G.position&&N===0||G.position===M).map((G,X)=>{var H,q;return l.createElement(GV,{key:G.id,icons:$,index:X,toast:G,defaultRichColors:g,duration:(H=C?.duration)!=null?H:m,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:a,visibleToasts:x,closeButton:(q=C?.closeButton)!=null?q:s,interacting:L,position:M,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:E,toasts:T.filter(Z=>Z.position==G.position),heights:A.filter(Z=>Z.position==G.position),setHeights:V,expandByDefault:u,gap:y,expanded:_,swipeDirections:t.swipeDirections})})):null}))}),JV=P(YV)`
|
|
4326
|
+
`;function xV({name:e,subLines:t,lineStartDate:n,lineEndDate:r}){const[a,o]=l.useState(!1),i=l.useMemo(()=>CV(t),[t]);return c.jsxs(bV,{"data-is-expanded":a,children:[c.jsx(rs,{name:e,blocks:i,lineStartDate:n,lineEndDate:r,isGroupParent:!0,isGroupExpanded:a,onNameClick:()=>o(!a)}),a&&t.map((u,s)=>c.jsx(rs,{name:u.name,blocks:u.blocks,lineStartDate:n,lineEndDate:r,indentLevel:1},`sub-line-${u.name}-${s}`))]})}function yV({emptyPlaceholder:e,lines:t,startDate:n,endDate:r,...a}){return!t||t.length===0?c.jsx(c.Fragment,{children:e}):c.jsx(ZM,{...a,"data-testid":"timeline",children:c.jsxs(_M,{children:[c.jsx(XM,{startDate:n,endDate:r}),c.jsx(UM,{"data-testid":"block-chart",children:t.map((o,i)=>OM(o)?c.jsx(xV,{name:o.name,subLines:o.subLines,lineStartDate:n,lineEndDate:r},`block-chart-group-${o.name}-${i}`):c.jsx(rs,{"data-testid":`block-chart-line-${o.name}-${i}`,name:o.name,blocks:o.blocks,lineStartDate:n,lineEndDate:r},`block-chart-line-${o.name}-${i}`))})]})})}function $V(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const DV=e=>{switch(e){case"success":return BV;case"info":return SV;case"warning":return kV;case"error":return PV;default:return null}},wV=Array(12).fill(0),EV=({visible:e,className:t})=>l.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},l.createElement("div",{className:"sonner-spinner"},wV.map((n,r)=>l.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),BV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),kV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),SV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),PV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},l.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),TV=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},l.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),AV=()=>{const[e,t]=l.useState(document.hidden);return l.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let as=1;class FV{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:as++,i=this.toasts.find(s=>s.id===o),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:u,title:r}):s):this.addToast({title:r,...a,dismissible:u,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,i;const u=a.then(async d=>{if(i=["resolve",d],l.isValidElement(d))o=!1,this.create({id:r,type:"default",message:d});else if(VV(d)&&!d.ok){o=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,m=typeof f=="object"&&!l.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(d instanceof Error){o=!1;const f=typeof n.error=="function"?await n.error(d):n.error,h=typeof n.description=="function"?await n.description(d):n.description,m=typeof f=="object"&&!l.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:h,...m})}else if(n.success!==void 0){o=!1;const f=typeof n.success=="function"?await n.success(d):n.success,h=typeof n.description=="function"?await n.description(d):n.description,m=typeof f=="object"&&!l.isValidElement(f)?f:{message:f};this.create({id:r,type:"success",description:h,...m})}}).catch(async d=>{if(i=["reject",d],n.error!==void 0){o=!1;const p=typeof n.error=="function"?await n.error(d):n.error,f=typeof n.description=="function"?await n.description(d):n.description,g=typeof p=="object"&&!l.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:f,...g})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((d,p)=>u.then(()=>i[0]==="reject"?p(i[1]):d(i[1])).catch(p));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,n)=>{const r=n?.id||as++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const pt=new FV,MV=(e,t)=>{const n=t?.id||as++;return pt.addToast({title:e,...t,id:n}),n},VV=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",IV=MV,RV=()=>pt.toasts,jV=()=>pt.getActiveToasts(),LV=Object.assign(IV,{success:pt.success,info:pt.info,warning:pt.warning,error:pt.error,custom:pt.custom,message:pt.message,promise:pt.promise,dismiss:pt.dismiss,loading:pt.loading},{getHistory:RV,getToasts:jV});$V("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ti(e){return e.label!==void 0}const OV=3,HV="24px",KV="16px",l4=4e3,zV=356,NV=14,ZV=45,_V=200;function qt(...e){return e.filter(Boolean).join(" ")}function UV(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const WV=e=>{var t,n,r,a,o,i,u,s,d;const{invert:p,toast:f,unstyled:h,interacting:g,setHeights:m,visibleToasts:v,heights:x,index:C,toasts:w,expanded:y,removeToast:$,defaultRichColors:B,closeButton:k,style:D,cancelButtonStyle:T,actionButtonStyle:F,className:A="",descriptionClassName:V="",duration:_,position:R,gap:L,expandByDefault:I,classNames:K,icons:O,closeButtonAriaLabel:j="Close toast"}=e,[z,b]=l.useState(null),[S,E]=l.useState(null),[M,N]=l.useState(!1),[U,Y]=l.useState(!1),[W,G]=l.useState(!1),[X,H]=l.useState(!1),[q,Z]=l.useState(!1),[ee,me]=l.useState(0),[Le,Bn]=l.useState(0),ie=l.useRef(f.duration||_||l4),kt=l.useRef(null),rt=l.useRef(null),hn=C===0,pe=C+1<=v,ce=f.type,we=f.dismissible!==!1,al=f.className||"",Lh=f.descriptionClassName||"",Fo=l.useMemo(()=>x.findIndex(ae=>ae.toastId===f.id)||0,[x,f.id]),Oh=l.useMemo(()=>{var ae;return(ae=f.closeButton)!=null?ae:k},[f.closeButton,k]),A3=l.useMemo(()=>f.duration||_||l4,[f.duration,_]),ol=l.useRef(0),Tr=l.useRef(0),F3=l.useRef(0),Ar=l.useRef(null),[Hh,Kh]=R.split("-"),M3=l.useMemo(()=>x.reduce((ae,Qe,at)=>at>=Fo?ae:ae+Qe.height,0),[x,Fo]),V3=AV(),zh=f.invert||p,il=ce==="loading";Tr.current=l.useMemo(()=>Fo*L+M3,[Fo,M3]),l.useEffect(()=>{ie.current=A3},[A3]),l.useEffect(()=>{N(!0)},[]),l.useEffect(()=>{const ae=rt.current;if(ae){const Qe=ae.getBoundingClientRect().height;return Bn(Qe),m(at=>[{toastId:f.id,height:Qe,position:f.position},...at]),()=>m(at=>at.filter(yt=>yt.toastId!==f.id))}},[m,f.id]),l.useLayoutEffect(()=>{if(!M)return;const ae=rt.current,Qe=ae.style.height;ae.style.height="auto";const at=ae.getBoundingClientRect().height;ae.style.height=Qe,Bn(at),m(yt=>yt.find(tt=>tt.toastId===f.id)?yt.map(tt=>tt.toastId===f.id?{...tt,height:at}:tt):[{toastId:f.id,height:at,position:f.position},...yt])},[M,f.title,f.description,m,f.id,f.jsx,f.action,f.cancel]);const kn=l.useCallback(()=>{Y(!0),me(Tr.current),m(ae=>ae.filter(Qe=>Qe.toastId!==f.id)),setTimeout(()=>{$(f)},_V)},[f,$,m,Tr]);l.useEffect(()=>{if(f.promise&&ce==="loading"||f.duration===1/0||f.type==="loading")return;let ae;return y||g||V3?(()=>{if(F3.current<ol.current){const yt=new Date().getTime()-ol.current;ie.current=ie.current-yt}F3.current=new Date().getTime()})():ie.current!==1/0&&(ol.current=new Date().getTime(),ae=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),kn()},ie.current)),()=>clearTimeout(ae)},[y,g,f,ce,V3,kn]),l.useEffect(()=>{f.delete&&(kn(),f.onDismiss==null||f.onDismiss.call(f,f))},[kn,f.delete]);function Nh(){var ae;if(O?.loading){var Qe;return l.createElement("div",{className:qt(K?.loader,f==null||(Qe=f.classNames)==null?void 0:Qe.loader,"sonner-loader"),"data-visible":ce==="loading"},O.loading)}return l.createElement(EV,{className:qt(K?.loader,f==null||(ae=f.classNames)==null?void 0:ae.loader),visible:ce==="loading"})}const Zh=f.icon||O?.[ce]||DV(ce);var I3,R3;return l.createElement("li",{tabIndex:0,ref:rt,className:qt(A,al,K?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,K?.default,K?.[ce],f==null||(n=f.classNames)==null?void 0:n[ce]),"data-sonner-toast":"","data-rich-colors":(I3=f.richColors)!=null?I3:B,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":M,"data-promise":!!f.promise,"data-swiped":q,"data-removed":U,"data-visible":pe,"data-y-position":Hh,"data-x-position":Kh,"data-index":C,"data-front":hn,"data-swiping":W,"data-dismissible":we,"data-type":ce,"data-invert":zh,"data-swipe-out":X,"data-swipe-direction":S,"data-expanded":!!(y||I&&M),"data-testid":f.testId,style:{"--index":C,"--toasts-before":C,"--z-index":w.length-C,"--offset":`${U?ee:Tr.current}px`,"--initial-height":I?"auto":`${Le}px`,...D,...f.style},onDragEnd:()=>{G(!1),b(null),Ar.current=null},onPointerDown:ae=>{ae.button!==2&&(il||!we||(kt.current=new Date,me(Tr.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(G(!0),Ar.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,Qe,at;if(X||!we)return;Ar.current=null;const yt=Number(((ae=rt.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mo=Number(((Qe=rt.current)==null?void 0:Qe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),tt=new Date().getTime()-((at=kt.current)==null?void 0:at.getTime()),St=z==="x"?yt:Mo,Vo=Math.abs(St)/tt;if(Math.abs(St)>=ZV||Vo>.11){me(Tr.current),f.onDismiss==null||f.onDismiss.call(f,f),E(z==="x"?yt>0?"right":"left":Mo>0?"down":"up"),kn(),H(!0);return}else{var Kt,zt;(Kt=rt.current)==null||Kt.style.setProperty("--swipe-amount-x","0px"),(zt=rt.current)==null||zt.style.setProperty("--swipe-amount-y","0px")}Z(!1),G(!1),b(null)},onPointerMove:ae=>{var Qe,at,yt;if(!Ar.current||!we||((Qe=window.getSelection())==null?void 0:Qe.toString().length)>0)return;const tt=ae.clientY-Ar.current.y,St=ae.clientX-Ar.current.x;var Vo;const Kt=(Vo=e.swipeDirections)!=null?Vo:UV(R);!z&&(Math.abs(St)>1||Math.abs(tt)>1)&&b(Math.abs(St)>Math.abs(tt)?"x":"y");let zt={x:0,y:0};const j3=er=>1/(1.5+Math.abs(er)/20);if(z==="y"){if(Kt.includes("top")||Kt.includes("bottom"))if(Kt.includes("top")&&tt<0||Kt.includes("bottom")&&tt>0)zt.y=tt;else{const er=tt*j3(tt);zt.y=Math.abs(er)<Math.abs(tt)?er:tt}}else if(z==="x"&&(Kt.includes("left")||Kt.includes("right")))if(Kt.includes("left")&&St<0||Kt.includes("right")&&St>0)zt.x=St;else{const er=St*j3(St);zt.x=Math.abs(er)<Math.abs(St)?er:St}(Math.abs(zt.x)>0||Math.abs(zt.y)>0)&&Z(!0),(at=rt.current)==null||at.style.setProperty("--swipe-amount-x",`${zt.x}px`),(yt=rt.current)==null||yt.style.setProperty("--swipe-amount-y",`${zt.y}px`)}},Oh&&!f.jsx&&ce!=="loading"?l.createElement("button",{"aria-label":j,"data-disabled":il,"data-close-button":!0,onClick:il||!we?()=>{}:()=>{kn(),f.onDismiss==null||f.onDismiss.call(f,f)},className:qt(K?.closeButton,f==null||(r=f.classNames)==null?void 0:r.closeButton)},(R3=O?.close)!=null?R3:TV):null,(ce||f.icon||f.promise)&&f.icon!==null&&(O?.[ce]!==null||f.icon)?l.createElement("div",{"data-icon":"",className:qt(K?.icon,f==null||(a=f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Nh():null,f.type!=="loading"?Zh:null):null,l.createElement("div",{"data-content":"",className:qt(K?.content,f==null||(o=f.classNames)==null?void 0:o.content)},l.createElement("div",{"data-title":"",className:qt(K?.title,f==null||(i=f.classNames)==null?void 0:i.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?l.createElement("div",{"data-description":"",className:qt(V,Lh,K?.description,f==null||(u=f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),l.isValidElement(f.cancel)?f.cancel:f.cancel&&ti(f.cancel)?l.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||T,onClick:ae=>{ti(f.cancel)&&we&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,ae),kn())},className:qt(K?.cancelButton,f==null||(s=f.classNames)==null?void 0:s.cancelButton)},f.cancel.label):null,l.isValidElement(f.action)?f.action:f.action&&ti(f.action)?l.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||F,onClick:ae=>{ti(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,ae),!ae.defaultPrevented&&kn())},className:qt(K?.actionButton,f==null||(d=f.classNames)==null?void 0:d.actionButton)},f.action.label):null)};function s4(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function GV(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,i=o?"--mobile-offset":"--offset",u=o?KV:HV;function s(d){["top","right","bottom","left"].forEach(p=>{n[`${i}-${p}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${i}-${d}`]=u:n[`${i}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):s(u)}),n}const qV=l.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:u,closeButton:s,className:d,offset:p,mobileOffset:f,theme:h="light",richColors:g,duration:m,style:v,visibleToasts:x=OV,toastOptions:C,dir:w=s4(),gap:y=NV,icons:$,containerAriaLabel:B="Notifications"}=t,[k,D]=l.useState([]),T=l.useMemo(()=>r?k.filter(M=>M.toasterId===r):k.filter(M=>!M.toasterId),[k,r]),F=l.useMemo(()=>Array.from(new Set([o].concat(T.filter(M=>M.position).map(M=>M.position)))),[T,o]),[A,V]=l.useState([]),[_,R]=l.useState(!1),[L,I]=l.useState(!1),[K,O]=l.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=l.useRef(null),z=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=l.useRef(null),S=l.useRef(!1),E=l.useCallback(M=>{D(N=>{var U;return(U=N.find(Y=>Y.id===M.id))!=null&&U.delete||pt.dismiss(M.id),N.filter(({id:Y})=>Y!==M.id)})},[]);return l.useEffect(()=>pt.subscribe(M=>{if(M.dismiss){requestAnimationFrame(()=>{D(N=>N.map(U=>U.id===M.id?{...U,delete:!0}:U))});return}setTimeout(()=>{Un.flushSync(()=>{D(N=>{const U=N.findIndex(Y=>Y.id===M.id);return U!==-1?[...N.slice(0,U),{...N[U],...M},...N.slice(U+1)]:[M,...N]})})})}),[k]),l.useEffect(()=>{if(h!=="system"){O(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:N})=>{O(N?"dark":"light")})}catch{M.addListener(({matches:U})=>{try{O(U?"dark":"light")}catch(Y){console.error(Y)}})}},[h]),l.useEffect(()=>{k.length<=1&&R(!1)},[k]),l.useEffect(()=>{const M=N=>{var U;if(i.every(G=>N[G]||N.code===G)){var W;R(!0),(W=j.current)==null||W.focus()}N.code==="Escape"&&(document.activeElement===j.current||(U=j.current)!=null&&U.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[i]),l.useEffect(()=>{if(j.current)return()=>{b.current&&(b.current.focus({preventScroll:!0}),b.current=null,S.current=!1)}},[j.current]),l.createElement("section",{ref:n,"aria-label":`${B} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},F.map((M,N)=>{var U;const[Y,W]=M.split("-");return T.length?l.createElement("ol",{key:M,dir:w==="auto"?s4():w,tabIndex:-1,ref:j,className:d,"data-sonner-toaster":!0,"data-sonner-theme":K,"data-y-position":Y,"data-x-position":W,style:{"--front-toast-height":`${((U=A[0])==null?void 0:U.height)||0}px`,"--width":`${zV}px`,"--gap":`${y}px`,...v,...GV(p,f)},onBlur:G=>{S.current&&!G.currentTarget.contains(G.relatedTarget)&&(S.current=!1,b.current&&(b.current.focus({preventScroll:!0}),b.current=null))},onFocus:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||S.current||(S.current=!0,b.current=G.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{L||R(!1)},onDragEnd:()=>R(!1),onPointerDown:G=>{G.target instanceof HTMLElement&&G.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},T.filter(G=>!G.position&&N===0||G.position===M).map((G,X)=>{var H,q;return l.createElement(WV,{key:G.id,icons:$,index:X,toast:G,defaultRichColors:g,duration:(H=C?.duration)!=null?H:m,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:a,visibleToasts:x,closeButton:(q=C?.closeButton)!=null?q:s,interacting:L,position:M,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:E,toasts:T.filter(Z=>Z.position==G.position),heights:A.filter(Z=>Z.position==G.position),setHeights:V,expandByDefault:u,gap:y,expanded:_,swipeDirections:t.swipeDirections})})):null}))}),YV=P(qV)`
|
|
4318
4327
|
/* Only add styles for the "styled" versions of the toasts (i.e. not toast.custom) */
|
|
4319
4328
|
li[data-styled="true"] {
|
|
4320
4329
|
padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs)
|
|
@@ -4367,7 +4376,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4367
4376
|
}
|
|
4368
4377
|
}
|
|
4369
4378
|
}
|
|
4370
|
-
`;function
|
|
4379
|
+
`;function JV({position:e="bottom-center",expand:t=!1,visibleToasts:n=3,offset:r=32}){return c.jsx(YV,{position:e,expand:t,visibleToasts:n,offset:r,closeButton:!0,duration:5e3,icons:{error:c.jsx(ne,{name:"error_outline"}),success:c.jsx(ne,{name:"check"}),info:c.jsx(ne,{name:"help_outline"}),warning:c.jsx(ne,{name:"warning_amber"}),loading:c.jsx(zu,{})}})}const XV=P(pD)`
|
|
4371
4380
|
display: inline-flex;
|
|
4372
4381
|
height: 30px;
|
|
4373
4382
|
min-width: 30px;
|
|
@@ -4422,11 +4431,11 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4422
4431
|
color: var(--color-content-neutral-tertiary);
|
|
4423
4432
|
box-shadow: none;
|
|
4424
4433
|
}
|
|
4425
|
-
`,
|
|
4434
|
+
`,QV=l.forwardRef(({children:e,iconName:t,isDisabled:n,isSelected:r,defaultSelected:a,onChange:o,mode:i="primary",tooltip:u,...s},d)=>{const p=t?c.jsx(ne,{name:t}):e,f=c.jsx(XV,{ref:d,isDisabled:n,isSelected:r,defaultSelected:a,onChange:o,"data-design-system-component":"ToggleButton","data-mode":i,...s,children:p});return u?c.jsx(Nu,{label:u,children:f}):f}),eI=P(cD)`
|
|
4426
4435
|
display: flex;
|
|
4427
4436
|
align-items: center;
|
|
4428
4437
|
gap: var(--spacing-xs);
|
|
4429
|
-
`,
|
|
4438
|
+
`,tI=l.forwardRef(({children:e,isDisabled:t,selectionMode:n="multiple",selectedKeys:r,defaultSelectedKeys:a,onSelectionChange:o,wrapperProps:i,label:u,labelIconRight:s,helperTextIcon:d,helperText:p,errorHelperText:f,errorHelperTextIcon:h,successHelperText:g,successHelperTextIcon:m,warningHelperText:v,warningHelperTextIcon:x,orientation:C,required:w,...y},$)=>c.jsx(Ut,{...i,label:u,labelIconRight:s,helperTextIcon:d,helperText:p,errorHelperText:f,errorHelperTextIcon:h,successHelperText:g,successHelperTextIcon:m,warningHelperText:v,warningHelperTextIcon:x,orientation:C,required:w,children:c.jsx(eI,{ref:$,isDisabled:t,selectionMode:n,selectedKeys:r,defaultSelectedKeys:a,onSelectionChange:B=>o?.(Array.from(B).map(String)),orientation:"horizontal","data-design-system-component":"ToggleButtonGroup",...y,children:e})})),nI=P(wn)`
|
|
4430
4439
|
position: relative;
|
|
4431
4440
|
display: inline-flex;
|
|
4432
4441
|
justify-content: space-between;
|
|
@@ -4495,7 +4504,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4495
4504
|
&[data-nature="warning"] {
|
|
4496
4505
|
outline-color: var(--color-content-message-warning-darker);
|
|
4497
4506
|
}
|
|
4498
|
-
`,
|
|
4507
|
+
`,rI=P(ne)`
|
|
4499
4508
|
flex: none;
|
|
4500
4509
|
font-size: ${Q.large};
|
|
4501
4510
|
color: var(--color-content-neutral-tertiary);
|
|
@@ -4509,13 +4518,13 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
4509
4518
|
z-index: var(--z-index-dropdown);
|
|
4510
4519
|
outline: none;
|
|
4511
4520
|
width: var(--trigger-width);
|
|
4512
|
-
`;function oI({startYear:e,endYear:t,actualDate:n=new Date,sortYears:r="ascending"}){const a=n.getFullYear(),i=Array.from({length:(t??a)-e+1},(u,s)=>(e+s).toString());return r==="descending"&&i.reverse(),i}const iI=l.forwardRef((e,t)=>{const n=l.useId(),r=e.id||n,a=e["aria-label"]??String(e.label),[o,i]=l.useState(!1),[u,s]=l.useState(!1),d=Pr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),p=je(uI),f=f4.find(({id:w})=>w===e.value?.month)?.text,h=f?p[f]:"",g=l.useRef(null),[m,v]=l.useState(null),x=l.useCallback(()=>{g.current&&v(g.current.offsetWidth+"px")},[g]);Yp({ref:g,onResize:x});const C=oI({startYear:e.firstYear??2e3,endYear:e.lastYear??2050,sortYears:e.sortYears});return c.jsx(Ut,{...e.wrapperProps,htmlForId:r,label:e.label,labelIconRight:e.labelIconRight,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,required:e.required,orientation:e.orientation,ref:t,children:c.jsxs(ju,{children:[c.jsxs(rI,{...e.buttonProps,type:"button",ref:g,id:r,"aria-label":`${p.open} ${a}`,"data-nature":d,"data-fullwidth":e.fullWidth,isDisabled:e.disabled,onPress:()=>{e.mode==="month"&&i(!0),e.mode==="year"&&s(!0),e.mode==="month-year"&&i(!0)},children:[h&&h,h&&e.value?.year&&" ",e.value?.year&&e.value.year,c.jsx(aI,{name:e.inputIcon??"calendar_today","data-disabled":e.disabled})]}),(e.mode==="month"||e.mode==="month-year")&&c.jsx(d4,{offset:4,placement:"bottom",isOpen:o,onOpenChange:i,children:c.jsx(c4,{"aria-label":`${p.monthSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.month?[e.value.month]:[],onSelectionChange:w=>{if(w==="all")return;if(w.size===0)return e.mode==="month-year"&&s(!0),i(!1);const[y]=w;e.mode==="month"&&e.onChange({month:y?.toString()}),e.mode==="month-year"&&(e.onChange({month:y?.toString(),year:e.value?.year}),s(!0)),i(!1)},style:{"--trigger-width":m},children:f4.map(({id:w,text:y})=>c.jsx(xr,{text:p[y],id:w},w))})}),(e.mode==="year"||e.mode==="month-year")&&c.jsx(d4,{offset:4,placement:"bottom",isOpen:u,onOpenChange:s,children:c.jsx(c4,{"aria-label":`${p.yearSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.year?[e.value.year]:[],onSelectionChange:w=>{if(w==="all")return;if(w.size===0)return s(!1);const[y]=w;e.mode==="year"&&e.onChange({year:y?.toString()}),e.mode==="month-year"&&e.onChange({month:e.value?.month,year:y?.toString()}),s(!1)},style:{"--trigger-width":m},children:C.map(w=>c.jsx(xr,{text:w,id:w},w))})})]})})}),uI={en:{open:"Open:",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",monthSelectionFor:"Month selection for",yearSelectionFor:"Year selection for"},fr:{open:"Ouvrir:",january:"Janvier",february:"Février",march:"Mars",april:"Avril",may:"Mai",june:"Juin",july:"Juillet",august:"Août",september:"Septembre",october:"Octobre",november:"Novembre",december:"Décembre",monthSelectionFor:"Sélection du mois pour",yearSelectionFor:"Sélection de l'année pour"}},f4=[{id:"01",text:"january"},{id:"02",text:"february"},{id:"03",text:"march"},{id:"04",text:"april"},{id:"05",text:"may"},{id:"06",text:"june"},{id:"07",text:"july"},{id:"08",text:"august"},{id:"09",text:"september"},{id:"10",text:"october"},{id:"11",text:"november"},{id:"12",text:"december"}],lI=({children:e,...t})=>c.jsx(wg,{...t,children:e});function _r(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ah(e){if(Vt.isValidElement(e)||!_r(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ah(e[n])}),t}function on(e,t,n={clone:!0}){const r=n.clone?Ue({},e):e;return _r(e)&&_r(t)&&Object.keys(t).forEach(a=>{Vt.isValidElement(t[a])?r[a]=t[a]:_r(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&_r(e[a])?r[a]=on(e[a],t[a],n):n.clone?r[a]=_r(t[a])?Ah(t[a]):t[a]:r[a]=t[a]}),r}var ni={exports:{}},ri={exports:{}},xe={};var p4;function sI(){if(p4)return xe;p4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function y(B){if(typeof B=="object"&&B!==null){var k=B.$$typeof;switch(k){case t:switch(B=B.type,B){case s:case d:case r:case o:case a:case f:return B;default:switch(B=B&&B.$$typeof,B){case u:case p:case m:case g:case i:return B;default:return k}}case n:return k}}}function $(B){return y(B)===d}return xe.AsyncMode=s,xe.ConcurrentMode=d,xe.ContextConsumer=u,xe.ContextProvider=i,xe.Element=t,xe.ForwardRef=p,xe.Fragment=r,xe.Lazy=m,xe.Memo=g,xe.Portal=n,xe.Profiler=o,xe.StrictMode=a,xe.Suspense=f,xe.isAsyncMode=function(B){return $(B)||y(B)===s},xe.isConcurrentMode=$,xe.isContextConsumer=function(B){return y(B)===u},xe.isContextProvider=function(B){return y(B)===i},xe.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},xe.isForwardRef=function(B){return y(B)===p},xe.isFragment=function(B){return y(B)===r},xe.isLazy=function(B){return y(B)===m},xe.isMemo=function(B){return y(B)===g},xe.isPortal=function(B){return y(B)===n},xe.isProfiler=function(B){return y(B)===o},xe.isStrictMode=function(B){return y(B)===a},xe.isSuspense=function(B){return y(B)===f},xe.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===d||B===o||B===a||B===f||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===g||B.$$typeof===i||B.$$typeof===u||B.$$typeof===p||B.$$typeof===x||B.$$typeof===C||B.$$typeof===w||B.$$typeof===v)},xe.typeOf=y,xe}var ye={};var h4;function dI(){return h4||(h4=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function y(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===d||Z===o||Z===a||Z===f||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===m||Z.$$typeof===g||Z.$$typeof===i||Z.$$typeof===u||Z.$$typeof===p||Z.$$typeof===x||Z.$$typeof===C||Z.$$typeof===w||Z.$$typeof===v)}function $(Z){if(typeof Z=="object"&&Z!==null){var ee=Z.$$typeof;switch(ee){case t:var me=Z.type;switch(me){case s:case d:case r:case o:case a:case f:return me;default:var Le=me&&me.$$typeof;switch(Le){case u:case p:case m:case g:case i:return Le;default:return ee}}case n:return ee}}}var B=s,k=d,D=u,T=i,F=t,A=p,V=r,_=m,R=g,L=n,I=o,K=a,O=f,j=!1;function z(Z){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(Z)||$(Z)===s}function b(Z){return $(Z)===d}function S(Z){return $(Z)===u}function E(Z){return $(Z)===i}function M(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function N(Z){return $(Z)===p}function U(Z){return $(Z)===r}function Y(Z){return $(Z)===m}function W(Z){return $(Z)===g}function G(Z){return $(Z)===n}function X(Z){return $(Z)===o}function H(Z){return $(Z)===a}function q(Z){return $(Z)===f}ye.AsyncMode=B,ye.ConcurrentMode=k,ye.ContextConsumer=D,ye.ContextProvider=T,ye.Element=F,ye.ForwardRef=A,ye.Fragment=V,ye.Lazy=_,ye.Memo=R,ye.Portal=L,ye.Profiler=I,ye.StrictMode=K,ye.Suspense=O,ye.isAsyncMode=z,ye.isConcurrentMode=b,ye.isContextConsumer=S,ye.isContextProvider=E,ye.isElement=M,ye.isForwardRef=N,ye.isFragment=U,ye.isLazy=Y,ye.isMemo=W,ye.isPortal=G,ye.isProfiler=X,ye.isStrictMode=H,ye.isSuspense=q,ye.isValidElementType=y,ye.typeOf=$})()),ye}var m4;function Fh(){return m4||(m4=1,process.env.NODE_ENV==="production"?ri.exports=sI():ri.exports=dI()),ri.exports}var Yl,g4;function cI(){if(g4)return Yl;g4=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(s.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yl=a()?Object.assign:function(o,i){for(var u,s=r(o),d,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var f in u)t.call(u,f)&&(s[f]=u[f]);if(e){d=e(u);for(var h=0;h<d.length;h++)n.call(u,d[h])&&(s[d[h]]=u[d[h]])}}return s},Yl}var Jl,v4;function B3(){if(v4)return Jl;v4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jl=e,Jl}var Xl,C4;function Mh(){return C4||(C4=1,Xl=Function.call.bind(Object.prototype.hasOwnProperty)),Xl}var Ql,b4;function fI(){if(b4)return Ql;b4=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=B3(),n={},r=Mh();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,u,s,d){if(process.env.NODE_ENV!=="production"){for(var p in o)if(r(o,p)){var f;try{if(typeof o[p]!="function"){var h=Error((s||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=o[p](i,p,s,u,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+f.message+(g??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ql=a,Ql}var e1,x4;function pI(){if(x4)return e1;x4=1;var e=Fh(),t=cI(),n=B3(),r=Mh(),a=fI(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function i(){return null}return e1=function(u,s){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function f(b){var S=b&&(d&&b[d]||b[p]);if(typeof S=="function")return S}var h="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:w(),arrayOf:y,element:$(),elementType:B(),instanceOf:k,node:A(),objectOf:T,oneOf:D,oneOfType:F,shape:_,exact:R};function m(b,S){return b===S?b!==0||1/b===1/S:b!==b&&S!==S}function v(b,S){this.message=b,this.data=S&&typeof S=="object"?S:{},this.stack=""}v.prototype=Error.prototype;function x(b){if(process.env.NODE_ENV!=="production")var S={},E=0;function M(U,Y,W,G,X,H,q){if(G=G||h,H=H||W,q!==n){if(s){var Z=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 Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=G+":"+W;!S[ee]&&E<3&&(o("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+G+"`. 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."),S[ee]=!0,E++)}}return Y[W]==null?U?Y[W]===null?new v("The "+X+" `"+H+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new v("The "+X+" `"+H+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:b(Y,W,G,X,H)}var N=M.bind(null,!1);return N.isRequired=M.bind(null,!0),N}function C(b){function S(E,M,N,U,Y,W){var G=E[M],X=K(G);if(X!==b){var H=O(G);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+H+"` supplied to `"+N+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return x(S)}function w(){return x(i)}function y(b){function S(E,M,N,U,Y){if(typeof b!="function")return new v("Property `"+Y+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var W=E[M];if(!Array.isArray(W)){var G=K(W);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+G+"` supplied to `"+N+"`, expected an array."))}for(var X=0;X<W.length;X++){var H=b(W,X,N,U,Y+"["+X+"]",n);if(H instanceof Error)return H}return null}return x(S)}function $(){function b(S,E,M,N,U){var Y=S[E];if(!u(Y)){var W=K(Y);return new v("Invalid "+N+" `"+U+"` of type "+("`"+W+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return x(b)}function B(){function b(S,E,M,N,U){var Y=S[E];if(!e.isValidElementType(Y)){var W=K(Y);return new v("Invalid "+N+" `"+U+"` of type "+("`"+W+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return x(b)}function k(b){function S(E,M,N,U,Y){if(!(E[M]instanceof b)){var W=b.name||h,G=z(E[M]);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+G+"` supplied to `"+N+"`, expected ")+("instance of `"+W+"`."))}return null}return x(S)}function D(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function S(E,M,N,U,Y){for(var W=E[M],G=0;G<b.length;G++)if(m(W,b[G]))return null;var X=JSON.stringify(b,function(q,Z){var ee=O(Z);return ee==="symbol"?String(Z):Z});return new v("Invalid "+U+" `"+Y+"` of value `"+String(W)+"` "+("supplied to `"+N+"`, expected one of "+X+"."))}return x(S)}function T(b){function S(E,M,N,U,Y){if(typeof b!="function")return new v("Property `"+Y+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var W=E[M],G=K(W);if(G!=="object")return new v("Invalid "+U+" `"+Y+"` of type "+("`"+G+"` supplied to `"+N+"`, expected an object."));for(var X in W)if(r(W,X)){var H=b(W,X,N,U,Y+"."+X,n);if(H instanceof Error)return H}return null}return x(S)}function F(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var S=0;S<b.length;S++){var E=b[S];if(typeof E!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(E)+" at index "+S+"."),i}function M(N,U,Y,W,G){for(var X=[],H=0;H<b.length;H++){var q=b[H],Z=q(N,U,Y,W,G,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&X.push(Z.data.expectedType)}var ee=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new v("Invalid "+W+" `"+G+"` supplied to "+("`"+Y+"`"+ee+"."))}return x(M)}function A(){function b(S,E,M,N,U){return L(S[E])?null:new v("Invalid "+N+" `"+U+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return x(b)}function V(b,S,E,M,N){return new v((b||"React class")+": "+S+" type `"+E+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function _(b){function S(E,M,N,U,Y){var W=E[M],G=K(W);if(G!=="object")return new v("Invalid "+U+" `"+Y+"` of type `"+G+"` "+("supplied to `"+N+"`, expected `object`."));for(var X in b){var H=b[X];if(typeof H!="function")return V(N,U,Y,X,O(H));var q=H(W,X,N,U,Y+"."+X,n);if(q)return q}return null}return x(S)}function R(b){function S(E,M,N,U,Y){var W=E[M],G=K(W);if(G!=="object")return new v("Invalid "+U+" `"+Y+"` of type `"+G+"` "+("supplied to `"+N+"`, expected `object`."));var X=t({},E[M],b);for(var H in X){var q=b[H];if(r(b,H)&&typeof q!="function")return V(N,U,Y,H,O(q));if(!q)return new v("Invalid "+U+" `"+Y+"` key `"+H+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(E[M],null," ")+`
|
|
4513
|
-
Valid keys: `+JSON.stringify(Object.keys(b),null," "));var Z=q(W,H,N,U,Y+"."+H,n);if(Z)return Z}return null}return x(S)}function L(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(L);if(b===null||u(b))return!0;var S=f(b);if(S){var E=S.call(b),M;if(S!==b.entries){for(;!(M=E.next()).done;)if(!L(M.value))return!1}else for(;!(M=E.next()).done;){var N=M.value;if(N&&!L(N[1]))return!1}}else return!1;return!0;default:return!1}}function I(b,S){return b==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function K(b){var S=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":I(S,b)?"symbol":S}function O(b){if(typeof b>"u"||b===null)return""+b;var S=K(b);if(S==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return S}function j(b){var S=O(b);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function z(b){return!b.constructor||!b.constructor.name?h:b.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g},e1}var t1,y4;function
|
|
4521
|
+
`;function aI({startYear:e,endYear:t,actualDate:n=new Date,sortYears:r="ascending"}){const a=n.getFullYear(),i=Array.from({length:(t??a)-e+1},(u,s)=>(e+s).toString());return r==="descending"&&i.reverse(),i}const oI=l.forwardRef((e,t)=>{const n=l.useId(),r=e.id||n,a=e["aria-label"]??String(e.label),[o,i]=l.useState(!1),[u,s]=l.useState(!1),d=Pr({nature:e.nature,successHelperText:e.successHelperText,errorHelperText:e.errorHelperText,warningHelperText:e.warningHelperText}),p=je(iI),f=f4.find(({id:w})=>w===e.value?.month)?.text,h=f?p[f]:"",g=l.useRef(null),[m,v]=l.useState(null),x=l.useCallback(()=>{g.current&&v(g.current.offsetWidth+"px")},[g]);Yp({ref:g,onResize:x});const C=aI({startYear:e.firstYear??2e3,endYear:e.lastYear??2050,sortYears:e.sortYears});return c.jsx(Ut,{...e.wrapperProps,htmlForId:r,label:e.label,labelIconRight:e.labelIconRight,description:e.description,helperTextIcon:e.helperTextIcon,helperText:e.helperText,errorHelperText:e.errorHelperText,errorHelperTextIcon:e.errorHelperTextIcon,successHelperText:e.successHelperText,successHelperTextIcon:e.successHelperTextIcon,warningHelperText:e.warningHelperText,warningHelperTextIcon:e.warningHelperTextIcon,required:e.required,orientation:e.orientation,ref:t,children:c.jsxs(ju,{children:[c.jsxs(nI,{...e.buttonProps,type:"button",ref:g,id:r,"aria-label":`${p.open} ${a}`,"data-nature":d,"data-fullwidth":e.fullWidth,isDisabled:e.disabled,onPress:()=>{e.mode==="month"&&i(!0),e.mode==="year"&&s(!0),e.mode==="month-year"&&i(!0)},children:[h&&h,h&&e.value?.year&&" ",e.value?.year&&e.value.year,c.jsx(rI,{name:e.inputIcon??"calendar_today","data-disabled":e.disabled})]}),(e.mode==="month"||e.mode==="month-year")&&c.jsx(d4,{offset:4,placement:"bottom",isOpen:o,onOpenChange:i,children:c.jsx(c4,{"aria-label":`${p.monthSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.month?[e.value.month]:[],onSelectionChange:w=>{if(w==="all")return;if(w.size===0)return e.mode==="month-year"&&s(!0),i(!1);const[y]=w;e.mode==="month"&&e.onChange({month:y?.toString()}),e.mode==="month-year"&&(e.onChange({month:y?.toString(),year:e.value?.year}),s(!0)),i(!1)},style:{"--trigger-width":m},children:f4.map(({id:w,text:y})=>c.jsx(xr,{text:p[y],id:w},w))})}),(e.mode==="year"||e.mode==="month-year")&&c.jsx(d4,{offset:4,placement:"bottom",isOpen:u,onOpenChange:s,children:c.jsx(c4,{"aria-label":`${p.yearSelectionFor} ${a}`,selectionMode:"single",selectedKeys:e.value?.year?[e.value.year]:[],onSelectionChange:w=>{if(w==="all")return;if(w.size===0)return s(!1);const[y]=w;e.mode==="year"&&e.onChange({year:y?.toString()}),e.mode==="month-year"&&e.onChange({month:e.value?.month,year:y?.toString()}),s(!1)},style:{"--trigger-width":m},children:C.map(w=>c.jsx(xr,{text:w,id:w},w))})})]})})}),iI={en:{open:"Open:",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",monthSelectionFor:"Month selection for",yearSelectionFor:"Year selection for"},fr:{open:"Ouvrir:",january:"Janvier",february:"Février",march:"Mars",april:"Avril",may:"Mai",june:"Juin",july:"Juillet",august:"Août",september:"Septembre",october:"Octobre",november:"Novembre",december:"Décembre",monthSelectionFor:"Sélection du mois pour",yearSelectionFor:"Sélection de l'année pour"}},f4=[{id:"01",text:"january"},{id:"02",text:"february"},{id:"03",text:"march"},{id:"04",text:"april"},{id:"05",text:"may"},{id:"06",text:"june"},{id:"07",text:"july"},{id:"08",text:"august"},{id:"09",text:"september"},{id:"10",text:"october"},{id:"11",text:"november"},{id:"12",text:"december"}],uI=({children:e,...t})=>c.jsx(wg,{...t,children:e});function _r(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ah(e){if(Vt.isValidElement(e)||!_r(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ah(e[n])}),t}function on(e,t,n={clone:!0}){const r=n.clone?Ue({},e):e;return _r(e)&&_r(t)&&Object.keys(t).forEach(a=>{Vt.isValidElement(t[a])?r[a]=t[a]:_r(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&_r(e[a])?r[a]=on(e[a],t[a],n):n.clone?r[a]=_r(t[a])?Ah(t[a]):t[a]:r[a]=t[a]}),r}var ni={exports:{}},ri={exports:{}},xe={};var p4;function lI(){if(p4)return xe;p4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function y(B){if(typeof B=="object"&&B!==null){var k=B.$$typeof;switch(k){case t:switch(B=B.type,B){case s:case d:case r:case o:case a:case f:return B;default:switch(B=B&&B.$$typeof,B){case u:case p:case m:case g:case i:return B;default:return k}}case n:return k}}}function $(B){return y(B)===d}return xe.AsyncMode=s,xe.ConcurrentMode=d,xe.ContextConsumer=u,xe.ContextProvider=i,xe.Element=t,xe.ForwardRef=p,xe.Fragment=r,xe.Lazy=m,xe.Memo=g,xe.Portal=n,xe.Profiler=o,xe.StrictMode=a,xe.Suspense=f,xe.isAsyncMode=function(B){return $(B)||y(B)===s},xe.isConcurrentMode=$,xe.isContextConsumer=function(B){return y(B)===u},xe.isContextProvider=function(B){return y(B)===i},xe.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},xe.isForwardRef=function(B){return y(B)===p},xe.isFragment=function(B){return y(B)===r},xe.isLazy=function(B){return y(B)===m},xe.isMemo=function(B){return y(B)===g},xe.isPortal=function(B){return y(B)===n},xe.isProfiler=function(B){return y(B)===o},xe.isStrictMode=function(B){return y(B)===a},xe.isSuspense=function(B){return y(B)===f},xe.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===d||B===o||B===a||B===f||B===h||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===g||B.$$typeof===i||B.$$typeof===u||B.$$typeof===p||B.$$typeof===x||B.$$typeof===C||B.$$typeof===w||B.$$typeof===v)},xe.typeOf=y,xe}var ye={};var h4;function sI(){return h4||(h4=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function y(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===d||Z===o||Z===a||Z===f||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===m||Z.$$typeof===g||Z.$$typeof===i||Z.$$typeof===u||Z.$$typeof===p||Z.$$typeof===x||Z.$$typeof===C||Z.$$typeof===w||Z.$$typeof===v)}function $(Z){if(typeof Z=="object"&&Z!==null){var ee=Z.$$typeof;switch(ee){case t:var me=Z.type;switch(me){case s:case d:case r:case o:case a:case f:return me;default:var Le=me&&me.$$typeof;switch(Le){case u:case p:case m:case g:case i:return Le;default:return ee}}case n:return ee}}}var B=s,k=d,D=u,T=i,F=t,A=p,V=r,_=m,R=g,L=n,I=o,K=a,O=f,j=!1;function z(Z){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(Z)||$(Z)===s}function b(Z){return $(Z)===d}function S(Z){return $(Z)===u}function E(Z){return $(Z)===i}function M(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function N(Z){return $(Z)===p}function U(Z){return $(Z)===r}function Y(Z){return $(Z)===m}function W(Z){return $(Z)===g}function G(Z){return $(Z)===n}function X(Z){return $(Z)===o}function H(Z){return $(Z)===a}function q(Z){return $(Z)===f}ye.AsyncMode=B,ye.ConcurrentMode=k,ye.ContextConsumer=D,ye.ContextProvider=T,ye.Element=F,ye.ForwardRef=A,ye.Fragment=V,ye.Lazy=_,ye.Memo=R,ye.Portal=L,ye.Profiler=I,ye.StrictMode=K,ye.Suspense=O,ye.isAsyncMode=z,ye.isConcurrentMode=b,ye.isContextConsumer=S,ye.isContextProvider=E,ye.isElement=M,ye.isForwardRef=N,ye.isFragment=U,ye.isLazy=Y,ye.isMemo=W,ye.isPortal=G,ye.isProfiler=X,ye.isStrictMode=H,ye.isSuspense=q,ye.isValidElementType=y,ye.typeOf=$})()),ye}var m4;function Fh(){return m4||(m4=1,process.env.NODE_ENV==="production"?ri.exports=lI():ri.exports=sI()),ri.exports}var Yl,g4;function dI(){if(g4)return Yl;g4=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var s=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(s.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yl=a()?Object.assign:function(o,i){for(var u,s=r(o),d,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var f in u)t.call(u,f)&&(s[f]=u[f]);if(e){d=e(u);for(var h=0;h<d.length;h++)n.call(u,d[h])&&(s[d[h]]=u[d[h]])}}return s},Yl}var Jl,v4;function B3(){if(v4)return Jl;v4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jl=e,Jl}var Xl,C4;function Mh(){return C4||(C4=1,Xl=Function.call.bind(Object.prototype.hasOwnProperty)),Xl}var Ql,b4;function cI(){if(b4)return Ql;b4=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=B3(),n={},r=Mh();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,u,s,d){if(process.env.NODE_ENV!=="production"){for(var p in o)if(r(o,p)){var f;try{if(typeof o[p]!="function"){var h=Error((s||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=o[p](i,p,s,u,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+f.message+(g??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ql=a,Ql}var e1,x4;function fI(){if(x4)return e1;x4=1;var e=Fh(),t=dI(),n=B3(),r=Mh(),a=cI(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var s="Warning: "+u;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function i(){return null}return e1=function(u,s){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function f(b){var S=b&&(d&&b[d]||b[p]);if(typeof S=="function")return S}var h="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:w(),arrayOf:y,element:$(),elementType:B(),instanceOf:k,node:A(),objectOf:T,oneOf:D,oneOfType:F,shape:_,exact:R};function m(b,S){return b===S?b!==0||1/b===1/S:b!==b&&S!==S}function v(b,S){this.message=b,this.data=S&&typeof S=="object"?S:{},this.stack=""}v.prototype=Error.prototype;function x(b){if(process.env.NODE_ENV!=="production")var S={},E=0;function M(U,Y,W,G,X,H,q){if(G=G||h,H=H||W,q!==n){if(s){var Z=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 Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=G+":"+W;!S[ee]&&E<3&&(o("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+G+"`. 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."),S[ee]=!0,E++)}}return Y[W]==null?U?Y[W]===null?new v("The "+X+" `"+H+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new v("The "+X+" `"+H+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:b(Y,W,G,X,H)}var N=M.bind(null,!1);return N.isRequired=M.bind(null,!0),N}function C(b){function S(E,M,N,U,Y,W){var G=E[M],X=K(G);if(X!==b){var H=O(G);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+H+"` supplied to `"+N+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return x(S)}function w(){return x(i)}function y(b){function S(E,M,N,U,Y){if(typeof b!="function")return new v("Property `"+Y+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var W=E[M];if(!Array.isArray(W)){var G=K(W);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+G+"` supplied to `"+N+"`, expected an array."))}for(var X=0;X<W.length;X++){var H=b(W,X,N,U,Y+"["+X+"]",n);if(H instanceof Error)return H}return null}return x(S)}function $(){function b(S,E,M,N,U){var Y=S[E];if(!u(Y)){var W=K(Y);return new v("Invalid "+N+" `"+U+"` of type "+("`"+W+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return x(b)}function B(){function b(S,E,M,N,U){var Y=S[E];if(!e.isValidElementType(Y)){var W=K(Y);return new v("Invalid "+N+" `"+U+"` of type "+("`"+W+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return x(b)}function k(b){function S(E,M,N,U,Y){if(!(E[M]instanceof b)){var W=b.name||h,G=z(E[M]);return new v("Invalid "+U+" `"+Y+"` of type "+("`"+G+"` supplied to `"+N+"`, expected ")+("instance of `"+W+"`."))}return null}return x(S)}function D(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function S(E,M,N,U,Y){for(var W=E[M],G=0;G<b.length;G++)if(m(W,b[G]))return null;var X=JSON.stringify(b,function(q,Z){var ee=O(Z);return ee==="symbol"?String(Z):Z});return new v("Invalid "+U+" `"+Y+"` of value `"+String(W)+"` "+("supplied to `"+N+"`, expected one of "+X+"."))}return x(S)}function T(b){function S(E,M,N,U,Y){if(typeof b!="function")return new v("Property `"+Y+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var W=E[M],G=K(W);if(G!=="object")return new v("Invalid "+U+" `"+Y+"` of type "+("`"+G+"` supplied to `"+N+"`, expected an object."));for(var X in W)if(r(W,X)){var H=b(W,X,N,U,Y+"."+X,n);if(H instanceof Error)return H}return null}return x(S)}function F(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var S=0;S<b.length;S++){var E=b[S];if(typeof E!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(E)+" at index "+S+"."),i}function M(N,U,Y,W,G){for(var X=[],H=0;H<b.length;H++){var q=b[H],Z=q(N,U,Y,W,G,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&X.push(Z.data.expectedType)}var ee=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new v("Invalid "+W+" `"+G+"` supplied to "+("`"+Y+"`"+ee+"."))}return x(M)}function A(){function b(S,E,M,N,U){return L(S[E])?null:new v("Invalid "+N+" `"+U+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return x(b)}function V(b,S,E,M,N){return new v((b||"React class")+": "+S+" type `"+E+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function _(b){function S(E,M,N,U,Y){var W=E[M],G=K(W);if(G!=="object")return new v("Invalid "+U+" `"+Y+"` of type `"+G+"` "+("supplied to `"+N+"`, expected `object`."));for(var X in b){var H=b[X];if(typeof H!="function")return V(N,U,Y,X,O(H));var q=H(W,X,N,U,Y+"."+X,n);if(q)return q}return null}return x(S)}function R(b){function S(E,M,N,U,Y){var W=E[M],G=K(W);if(G!=="object")return new v("Invalid "+U+" `"+Y+"` of type `"+G+"` "+("supplied to `"+N+"`, expected `object`."));var X=t({},E[M],b);for(var H in X){var q=b[H];if(r(b,H)&&typeof q!="function")return V(N,U,Y,H,O(q));if(!q)return new v("Invalid "+U+" `"+Y+"` key `"+H+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(E[M],null," ")+`
|
|
4522
|
+
Valid keys: `+JSON.stringify(Object.keys(b),null," "));var Z=q(W,H,N,U,Y+"."+H,n);if(Z)return Z}return null}return x(S)}function L(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(L);if(b===null||u(b))return!0;var S=f(b);if(S){var E=S.call(b),M;if(S!==b.entries){for(;!(M=E.next()).done;)if(!L(M.value))return!1}else for(;!(M=E.next()).done;){var N=M.value;if(N&&!L(N[1]))return!1}}else return!1;return!0;default:return!1}}function I(b,S){return b==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function K(b){var S=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":I(S,b)?"symbol":S}function O(b){if(typeof b>"u"||b===null)return""+b;var S=K(b);if(S==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return S}function j(b){var S=O(b);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function z(b){return!b.constructor||!b.constructor.name?h:b.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g},e1}var t1,y4;function pI(){if(y4)return t1;y4=1;var e=B3();function t(){}function n(){}return n.resetWarningCache=t,t1=function(){function r(i,u,s,d,p,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},t1}var $4;function hI(){if($4)return ni.exports;if($4=1,process.env.NODE_ENV!=="production"){var e=Fh(),t=!0;ni.exports=fI()(e.isElement,t)}else ni.exports=pI()();return ni.exports}var mI=hI();const Pa=zb(mI);function uo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const gI=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"}));function Vh(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":uo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const D4=e=>e,vI=()=>{let e=D4;return{configure(t){e=t},generate(t){return e(t)},reset(){e=D4}}},CI=vI(),bI={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 xI(e,t,n="Mui"){const r=bI[t];return r?`${n}-${r}`:`${CI.generate(e)}-${t}`}function yI(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const $I=Object.freeze(Object.defineProperty({__proto__:null,default:yI},Symbol.toStringTag,{value:"Module"}));function $a(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const DI=["values","unit","step"],wI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Ue({},n,{[r.key]:r.val}),{})};function EI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,a=$a(e,DI),o=wI(t),i=Object.keys(o);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function d(h,g){const m=i.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[i[m]]=="number"?t[i[m]]:g)-r/100}${n})`}function p(h){return i.indexOf(h)+1<i.length?d(h,i[i.indexOf(h)+1]):u(h)}function f(h){const g=i.indexOf(h);return g===0?u(i[1]):g===i.length-1?s(i[g]):d(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return Ue({keys:i,values:o,up:u,down:s,between:d,only:p,not:f,unit:n},a)}const BI={borderRadius:4},Qn=process.env.NODE_ENV!=="production"?Pa.oneOfType([Pa.number,Pa.string,Pa.object,Pa.array]):{};function Na(e,t){return t?on(e,t,{clone:!1}):e}const k3={xs:0,sm:600,md:900,lg:1200,xl:1536},w4={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${k3[e]}px)`};function yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||w4;return t.reduce((i,u,s)=>(i[o.up(o.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const o=r.breakpoints||w4;return Object.keys(t).reduce((i,u)=>{if(Object.keys(o.values||k3).indexOf(u)!==-1){const s=o.up(u);i[s]=n(t[u],u)}else{const s=u;i[s]=t[s]}return i},{})}return n(t)}function kI(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,a)=>{const o=e.up(a);return r[o]={},r},{}))||{}}function E4(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function Yu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function ru(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Yu(e,n)||r,t&&(a=t(a,r,e)),a}function ze(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=i=>{if(i[t]==null)return null;const u=i[t],s=i.theme,d=Yu(s,r)||{};return yn(i,u,f=>{let h=ru(d,a,f);return f===h&&typeof f=="string"&&(h=ru(d,a,`${t}${f==="default"?"":Vh(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Qn}:{},o.filterProps=[t],o}function SI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const PI={m:"margin",p:"padding"},TI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},B4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AI=SI(e=>{if(e.length>2)if(B4[e])e=B4[e];else return[e];const[t,n]=e.split(""),r=PI[t],a=TI[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),Ju=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],FI=[...Ju,...Xu];function To(e,t,n,r){var a;const o=(a=Yu(e,t,!1))!=null?a:n;return typeof o=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),o*i):Array.isArray(o)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
4514
4523
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
4515
4524
|
`))),o[i]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
4516
|
-
`)),()=>{})}function Ih(e){return To(e,"spacing",8,"spacing")}function Ao(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function VI(e,t){return n=>e.reduce((r,a)=>(r[a]=Ao(t,n),r),{})}function II(e,t,n,r){if(t.indexOf(n)===-1)return null;const a=FI(n),o=VI(a,r),i=e[n];return yn(e,i,o)}function Rh(e,t){const n=Ih(e.theme);return Object.keys(e).map(r=>II(e,t,r,n)).reduce(Na,{})}function Ie(e){return Rh(e,Ju)}Ie.propTypes=process.env.NODE_ENV!=="production"?Ju.reduce((e,t)=>(e[t]=Qn,e),{}):{};Ie.filterProps=Ju;function Re(e){return Rh(e,Xu)}Re.propTypes=process.env.NODE_ENV!=="production"?Xu.reduce((e,t)=>(e[t]=Qn,e),{}):{};Re.filterProps=Xu;process.env.NODE_ENV!=="production"&&MI.reduce((e,t)=>(e[t]=Qn,e),{});function RI(e=8){if(e.mui)return e;const t=Ih({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Qu(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?Na(a,t[o](r)):a,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Mt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return ze({prop:e,themeKey:"borders",transform:t})}const jI=Ht("border",Mt),LI=Ht("borderTop",Mt),OI=Ht("borderRight",Mt),HI=Ht("borderBottom",Mt),KI=Ht("borderLeft",Mt),zI=Ht("borderColor"),NI=Ht("borderTopColor"),ZI=Ht("borderRightColor"),_I=Ht("borderBottomColor"),UI=Ht("borderLeftColor"),WI=Ht("outline",Mt),GI=Ht("outlineColor"),el=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=To(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ao(t,r)});return yn(e,e.borderRadius,n)}return null};el.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qn}:{};el.filterProps=["borderRadius"];Qu(jI,LI,OI,HI,KI,zI,NI,ZI,_I,UI,el,WI,GI);const tl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=To(e.theme,"spacing",8,"gap"),n=r=>({gap:Ao(t,r)});return yn(e,e.gap,n)}return null};tl.propTypes=process.env.NODE_ENV!=="production"?{gap:Qn}:{};tl.filterProps=["gap"];const nl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=To(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ao(t,r)});return yn(e,e.columnGap,n)}return null};nl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qn}:{};nl.filterProps=["columnGap"];const rl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=To(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ao(t,r)});return yn(e,e.rowGap,n)}return null};rl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qn}:{};rl.filterProps=["rowGap"];const qI=ze({prop:"gridColumn"}),YI=ze({prop:"gridRow"}),JI=ze({prop:"gridAutoFlow"}),XI=ze({prop:"gridAutoColumns"}),QI=ze({prop:"gridAutoRows"}),eR=ze({prop:"gridTemplateColumns"}),tR=ze({prop:"gridTemplateRows"}),nR=ze({prop:"gridTemplateAreas"}),rR=ze({prop:"gridArea"});Qu(tl,nl,rl,qI,YI,JI,XI,QI,eR,tR,nR,rR);function ra(e,t){return t==="grey"?t:e}const aR=ze({prop:"color",themeKey:"palette",transform:ra}),oR=ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ra}),iR=ze({prop:"backgroundColor",themeKey:"palette",transform:ra});Qu(aR,oR,iR);function $t(e){return e<=1&&e!==0?`${e*100}%`:e}const uR=ze({prop:"width",transform:$t}),S3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,a;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||k3[n];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$t(n)}};return yn(e,e.maxWidth,t)}return null};S3.filterProps=["maxWidth"];const lR=ze({prop:"minWidth",transform:$t}),sR=ze({prop:"height",transform:$t}),dR=ze({prop:"maxHeight",transform:$t}),cR=ze({prop:"minHeight",transform:$t});ze({prop:"size",cssProperty:"width",transform:$t});ze({prop:"size",cssProperty:"height",transform:$t});const fR=ze({prop:"boxSizing"});Qu(uR,S3,lR,sR,dR,cR,fR);const P3={border:{themeKey:"borders",transform:Mt},borderTop:{themeKey:"borders",transform:Mt},borderRight:{themeKey:"borders",transform:Mt},borderBottom:{themeKey:"borders",transform:Mt},borderLeft:{themeKey:"borders",transform:Mt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:el},color:{themeKey:"palette",transform:ra},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ra},backgroundColor:{themeKey:"palette",transform:ra},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:Ie},mt:{style:Ie},mr:{style:Ie},mb:{style:Ie},ml:{style:Ie},mx:{style:Ie},my:{style:Ie},margin:{style:Ie},marginTop:{style:Ie},marginRight:{style:Ie},marginBottom:{style:Ie},marginLeft:{style:Ie},marginX:{style:Ie},marginY:{style:Ie},marginInline:{style:Ie},marginInlineStart:{style:Ie},marginInlineEnd:{style:Ie},marginBlock:{style:Ie},marginBlockStart:{style:Ie},marginBlockEnd:{style:Ie},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tl},rowGap:{style:rl},columnGap:{style:nl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$t},maxWidth:{style:S3},minWidth:{transform:$t},height:{transform:$t},maxHeight:{transform:$t},minHeight:{transform:$t},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pR(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function hR(e,t){return typeof e=="function"?e(t):e}function mR(){function e(n,r,a,o){const i={[n]:r,theme:a},u=o[n];if(!u)return{[n]:r};const{cssProperty:s=n,themeKey:d,transform:p,style:f}=u;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=Yu(a,d)||{};return f?f(i):yn(i,r,m=>{let v=ru(h,p,m);return m===v&&typeof m=="string"&&(v=ru(h,p,`${n}${m==="default"?"":Vh(m)}`,m)),s===!1?v:{[s]:v}})}function t(n){var r;const{sx:a,theme:o={},nested:i}=n||{};if(!a)return null;const u=(r=o.unstable_sxConfig)!=null?r:P3;function s(d){let p=d;if(typeof d=="function")p=d(o);else if(typeof d!="object")return d;if(!p)return null;const f=SI(o.breakpoints),h=Object.keys(f);let g=f;return Object.keys(p).forEach(m=>{const v=hR(p[m],o);if(v!=null)if(typeof v=="object")if(u[m])g=Na(g,e(m,v,o,u));else{const x=yn({theme:o},v,C=>({[m]:C}));pR(x,v)?g[m]=t({sx:v,theme:o,nested:!0}):g=Na(g,x)}else g=Na(g,e(m,v,o,u))}),!i&&o.modularCssLayers?{"@layer sx":E4(h,g)}:E4(h,g)}return Array.isArray(a)?a.map(s):s(a)}return t}const T3=mR();T3.filterProps=["sx"];function gR(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const vR=["breakpoints","palette","spacing","shape"];function CR(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={}}=e,i=$a(e,vR),u=BI(n),s=RI(a);let d=on({breakpoints:u,direction:"ltr",components:{},palette:Ue({mode:"light"},r),spacing:s,shape:Ue({},kI,o)},i);return d.applyStyles=gR,d=t.reduce((p,f)=>on(p,f),d),d.unstable_sxConfig=Ue({},P3,i?.unstable_sxConfig),d.unstable_sx=function(f){return T3({sx:f,theme:this})},d}function bR(e,t){return Ue({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ve={},n1={exports:{}},k4;function xR(){return k4||(k4=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n1)),n1.exports}const yR=H7(vI),$R=H7(DI);var S4;function DR(){if(S4)return Ve;S4=1;var e=xR();Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.alpha=m,Ve.blend=k,Ve.colorChannel=void 0,Ve.darken=x,Ve.decomposeColor=i,Ve.emphasize=$,Ve.getContrastRatio=g,Ve.getLuminance=h,Ve.hexToRgb=a,Ve.hslToRgb=f,Ve.lighten=w,Ve.private_safeAlpha=v,Ve.private_safeColorChannel=void 0,Ve.private_safeDarken=C,Ve.private_safeEmphasize=B,Ve.private_safeLighten=y,Ve.recomposeColor=d,Ve.rgbToHex=p;var t=e(yR),n=e($R);function r(D,T=0,F=1){return process.env.NODE_ENV!=="production"&&(D<T||D>F)&&console.error(`MUI: The value provided ${D} is out of range [${T}, ${F}].`),(0,n.default)(D,T,F)}function a(D){D=D.slice(1);const T=new RegExp(`.{1,${D.length>=6?2:1}}`,"g");let F=D.match(T);return F&&F[0].length===1&&(F=F.map(A=>A+A)),F?`rgb${F.length===4?"a":""}(${F.map((A,V)=>V<3?parseInt(A,16):Math.round(parseInt(A,16)/255*1e3)/1e3).join(", ")})`:""}function o(D){const T=D.toString(16);return T.length===1?`0${T}`:T}function i(D){if(D.type)return D;if(D.charAt(0)==="#")return i(a(D));const T=D.indexOf("("),F=D.substring(0,T);if(["rgb","rgba","hsl","hsla","color"].indexOf(F)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${D}\` color.
|
|
4525
|
+
`)),()=>{})}function Ih(e){return To(e,"spacing",8,"spacing")}function Ao(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function MI(e,t){return n=>e.reduce((r,a)=>(r[a]=Ao(t,n),r),{})}function VI(e,t,n,r){if(t.indexOf(n)===-1)return null;const a=AI(n),o=MI(a,r),i=e[n];return yn(e,i,o)}function Rh(e,t){const n=Ih(e.theme);return Object.keys(e).map(r=>VI(e,t,r,n)).reduce(Na,{})}function Ie(e){return Rh(e,Ju)}Ie.propTypes=process.env.NODE_ENV!=="production"?Ju.reduce((e,t)=>(e[t]=Qn,e),{}):{};Ie.filterProps=Ju;function Re(e){return Rh(e,Xu)}Re.propTypes=process.env.NODE_ENV!=="production"?Xu.reduce((e,t)=>(e[t]=Qn,e),{}):{};Re.filterProps=Xu;process.env.NODE_ENV!=="production"&&FI.reduce((e,t)=>(e[t]=Qn,e),{});function II(e=8){if(e.mui)return e;const t=Ih({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Qu(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?Na(a,t[o](r)):a,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,a)=>Object.assign(r,a.propTypes),{}):{},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Mt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return ze({prop:e,themeKey:"borders",transform:t})}const RI=Ht("border",Mt),jI=Ht("borderTop",Mt),LI=Ht("borderRight",Mt),OI=Ht("borderBottom",Mt),HI=Ht("borderLeft",Mt),KI=Ht("borderColor"),zI=Ht("borderTopColor"),NI=Ht("borderRightColor"),ZI=Ht("borderBottomColor"),_I=Ht("borderLeftColor"),UI=Ht("outline",Mt),WI=Ht("outlineColor"),el=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=To(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ao(t,r)});return yn(e,e.borderRadius,n)}return null};el.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qn}:{};el.filterProps=["borderRadius"];Qu(RI,jI,LI,OI,HI,KI,zI,NI,ZI,_I,el,UI,WI);const tl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=To(e.theme,"spacing",8,"gap"),n=r=>({gap:Ao(t,r)});return yn(e,e.gap,n)}return null};tl.propTypes=process.env.NODE_ENV!=="production"?{gap:Qn}:{};tl.filterProps=["gap"];const nl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=To(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ao(t,r)});return yn(e,e.columnGap,n)}return null};nl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qn}:{};nl.filterProps=["columnGap"];const rl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=To(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ao(t,r)});return yn(e,e.rowGap,n)}return null};rl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qn}:{};rl.filterProps=["rowGap"];const GI=ze({prop:"gridColumn"}),qI=ze({prop:"gridRow"}),YI=ze({prop:"gridAutoFlow"}),JI=ze({prop:"gridAutoColumns"}),XI=ze({prop:"gridAutoRows"}),QI=ze({prop:"gridTemplateColumns"}),eR=ze({prop:"gridTemplateRows"}),tR=ze({prop:"gridTemplateAreas"}),nR=ze({prop:"gridArea"});Qu(tl,nl,rl,GI,qI,YI,JI,XI,QI,eR,tR,nR);function ra(e,t){return t==="grey"?t:e}const rR=ze({prop:"color",themeKey:"palette",transform:ra}),aR=ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ra}),oR=ze({prop:"backgroundColor",themeKey:"palette",transform:ra});Qu(rR,aR,oR);function $t(e){return e<=1&&e!==0?`${e*100}%`:e}const iR=ze({prop:"width",transform:$t}),S3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,a;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||k3[n];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$t(n)}};return yn(e,e.maxWidth,t)}return null};S3.filterProps=["maxWidth"];const uR=ze({prop:"minWidth",transform:$t}),lR=ze({prop:"height",transform:$t}),sR=ze({prop:"maxHeight",transform:$t}),dR=ze({prop:"minHeight",transform:$t});ze({prop:"size",cssProperty:"width",transform:$t});ze({prop:"size",cssProperty:"height",transform:$t});const cR=ze({prop:"boxSizing"});Qu(iR,S3,uR,lR,sR,dR,cR);const P3={border:{themeKey:"borders",transform:Mt},borderTop:{themeKey:"borders",transform:Mt},borderRight:{themeKey:"borders",transform:Mt},borderBottom:{themeKey:"borders",transform:Mt},borderLeft:{themeKey:"borders",transform:Mt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:el},color:{themeKey:"palette",transform:ra},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ra},backgroundColor:{themeKey:"palette",transform:ra},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:Ie},mt:{style:Ie},mr:{style:Ie},mb:{style:Ie},ml:{style:Ie},mx:{style:Ie},my:{style:Ie},margin:{style:Ie},marginTop:{style:Ie},marginRight:{style:Ie},marginBottom:{style:Ie},marginLeft:{style:Ie},marginX:{style:Ie},marginY:{style:Ie},marginInline:{style:Ie},marginInlineStart:{style:Ie},marginInlineEnd:{style:Ie},marginBlock:{style:Ie},marginBlockStart:{style:Ie},marginBlockEnd:{style:Ie},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tl},rowGap:{style:rl},columnGap:{style:nl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$t},maxWidth:{style:S3},minWidth:{transform:$t},height:{transform:$t},maxHeight:{transform:$t},minHeight:{transform:$t},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fR(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pR(e,t){return typeof e=="function"?e(t):e}function hR(){function e(n,r,a,o){const i={[n]:r,theme:a},u=o[n];if(!u)return{[n]:r};const{cssProperty:s=n,themeKey:d,transform:p,style:f}=u;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=Yu(a,d)||{};return f?f(i):yn(i,r,m=>{let v=ru(h,p,m);return m===v&&typeof m=="string"&&(v=ru(h,p,`${n}${m==="default"?"":Vh(m)}`,m)),s===!1?v:{[s]:v}})}function t(n){var r;const{sx:a,theme:o={},nested:i}=n||{};if(!a)return null;const u=(r=o.unstable_sxConfig)!=null?r:P3;function s(d){let p=d;if(typeof d=="function")p=d(o);else if(typeof d!="object")return d;if(!p)return null;const f=kI(o.breakpoints),h=Object.keys(f);let g=f;return Object.keys(p).forEach(m=>{const v=pR(p[m],o);if(v!=null)if(typeof v=="object")if(u[m])g=Na(g,e(m,v,o,u));else{const x=yn({theme:o},v,C=>({[m]:C}));fR(x,v)?g[m]=t({sx:v,theme:o,nested:!0}):g=Na(g,x)}else g=Na(g,e(m,v,o,u))}),!i&&o.modularCssLayers?{"@layer sx":E4(h,g)}:E4(h,g)}return Array.isArray(a)?a.map(s):s(a)}return t}const T3=hR();T3.filterProps=["sx"];function mR(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const gR=["breakpoints","palette","spacing","shape"];function vR(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={}}=e,i=$a(e,gR),u=EI(n),s=II(a);let d=on({breakpoints:u,direction:"ltr",components:{},palette:Ue({mode:"light"},r),spacing:s,shape:Ue({},BI,o)},i);return d.applyStyles=mR,d=t.reduce((p,f)=>on(p,f),d),d.unstable_sxConfig=Ue({},P3,i?.unstable_sxConfig),d.unstable_sx=function(f){return T3({sx:f,theme:this})},d}function CR(e,t){return Ue({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ve={},n1={exports:{}},k4;function bR(){return k4||(k4=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(n1)),n1.exports}const xR=H7(gI),yR=H7($I);var S4;function $R(){if(S4)return Ve;S4=1;var e=bR();Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.alpha=m,Ve.blend=k,Ve.colorChannel=void 0,Ve.darken=x,Ve.decomposeColor=i,Ve.emphasize=$,Ve.getContrastRatio=g,Ve.getLuminance=h,Ve.hexToRgb=a,Ve.hslToRgb=f,Ve.lighten=w,Ve.private_safeAlpha=v,Ve.private_safeColorChannel=void 0,Ve.private_safeDarken=C,Ve.private_safeEmphasize=B,Ve.private_safeLighten=y,Ve.recomposeColor=d,Ve.rgbToHex=p;var t=e(xR),n=e(yR);function r(D,T=0,F=1){return process.env.NODE_ENV!=="production"&&(D<T||D>F)&&console.error(`MUI: The value provided ${D} is out of range [${T}, ${F}].`),(0,n.default)(D,T,F)}function a(D){D=D.slice(1);const T=new RegExp(`.{1,${D.length>=6?2:1}}`,"g");let F=D.match(T);return F&&F[0].length===1&&(F=F.map(A=>A+A)),F?`rgb${F.length===4?"a":""}(${F.map((A,V)=>V<3?parseInt(A,16):Math.round(parseInt(A,16)/255*1e3)/1e3).join(", ")})`:""}function o(D){const T=D.toString(16);return T.length===1?`0${T}`:T}function i(D){if(D.type)return D;if(D.charAt(0)==="#")return i(a(D));const T=D.indexOf("("),F=D.substring(0,T);if(["rgb","rgba","hsl","hsla","color"].indexOf(F)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${D}\` color.
|
|
4517
4526
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,D));let A=D.substring(T+1,D.length-1),V;if(F==="color"){if(A=A.split(" "),V=A.shift(),A.length===4&&A[3].charAt(0)==="/"&&(A[3]=A[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(V)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${V}\` color space.
|
|
4518
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,V))}else A=A.split(",");return A=A.map(_=>parseFloat(_)),{type:F,values:A,colorSpace:V}}const u=D=>{const T=i(D);return T.values.slice(0,3).map((F,A)=>T.type.indexOf("hsl")!==-1&&A!==0?`${F}%`:F).join(" ")};Ve.colorChannel=u;const s=(D,T)=>{try{return u(D)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),D}};Ve.private_safeColorChannel=s;function d(D){const{type:T,colorSpace:F}=D;let{values:A}=D;return T.indexOf("rgb")!==-1?A=A.map((V,_)=>_<3?parseInt(V,10):V):T.indexOf("hsl")!==-1&&(A[1]=`${A[1]}%`,A[2]=`${A[2]}%`),T.indexOf("color")!==-1?A=`${F} ${A.join(" ")}`:A=`${A.join(", ")}`,`${T}(${A})`}function p(D){if(D.indexOf("#")===0)return D;const{values:T}=i(D);return`#${T.map((F,A)=>o(A===3?Math.round(255*F):F)).join("")}`}function f(D){D=i(D);const{values:T}=D,F=T[0],A=T[1]/100,V=T[2]/100,_=A*Math.min(V,1-V),R=(K,O=(K+F/30)%12)=>V-_*Math.max(Math.min(O-3,9-O,1),-1);let L="rgb";const I=[Math.round(R(0)*255),Math.round(R(8)*255),Math.round(R(4)*255)];return D.type==="hsla"&&(L+="a",I.push(T[3])),d({type:L,values:I})}function h(D){D=i(D);let T=D.type==="hsl"||D.type==="hsla"?i(f(D)).values:D.values;return T=T.map(F=>(D.type!=="color"&&(F/=255),F<=.03928?F/12.92:((F+.055)/1.055)**2.4)),Number((.2126*T[0]+.7152*T[1]+.0722*T[2]).toFixed(3))}function g(D,T){const F=h(D),A=h(T);return(Math.max(F,A)+.05)/(Math.min(F,A)+.05)}function m(D,T){return D=i(D),T=r(T),(D.type==="rgb"||D.type==="hsl")&&(D.type+="a"),D.type==="color"?D.values[3]=`/${T}`:D.values[3]=T,d(D)}function v(D,T,F){try{return m(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function x(D,T){if(D=i(D),T=r(T),D.type.indexOf("hsl")!==-1)D.values[2]*=1-T;else if(D.type.indexOf("rgb")!==-1||D.type.indexOf("color")!==-1)for(let F=0;F<3;F+=1)D.values[F]*=1-T;return d(D)}function C(D,T,F){try{return x(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function w(D,T){if(D=i(D),T=r(T),D.type.indexOf("hsl")!==-1)D.values[2]+=(100-D.values[2])*T;else if(D.type.indexOf("rgb")!==-1)for(let F=0;F<3;F+=1)D.values[F]+=(255-D.values[F])*T;else if(D.type.indexOf("color")!==-1)for(let F=0;F<3;F+=1)D.values[F]+=(1-D.values[F])*T;return d(D)}function y(D,T,F){try{return w(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function $(D,T=.15){return h(D)>.5?x(D,T):w(D,T)}function B(D,T,F){try{return $(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function k(D,T,F,A=1){const V=(I,K)=>Math.round((I**(1/A)*(1-F)+K**(1/A)*F)**A),_=i(D),R=i(T),L=[V(_.values[0],R.values[0]),V(_.values[1],R.values[1]),V(_.values[2],R.values[2])];return d({type:"rgb",values:L})}return Ve}var au
|
|
4527
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,V))}else A=A.split(",");return A=A.map(_=>parseFloat(_)),{type:F,values:A,colorSpace:V}}const u=D=>{const T=i(D);return T.values.slice(0,3).map((F,A)=>T.type.indexOf("hsl")!==-1&&A!==0?`${F}%`:F).join(" ")};Ve.colorChannel=u;const s=(D,T)=>{try{return u(D)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),D}};Ve.private_safeColorChannel=s;function d(D){const{type:T,colorSpace:F}=D;let{values:A}=D;return T.indexOf("rgb")!==-1?A=A.map((V,_)=>_<3?parseInt(V,10):V):T.indexOf("hsl")!==-1&&(A[1]=`${A[1]}%`,A[2]=`${A[2]}%`),T.indexOf("color")!==-1?A=`${F} ${A.join(" ")}`:A=`${A.join(", ")}`,`${T}(${A})`}function p(D){if(D.indexOf("#")===0)return D;const{values:T}=i(D);return`#${T.map((F,A)=>o(A===3?Math.round(255*F):F)).join("")}`}function f(D){D=i(D);const{values:T}=D,F=T[0],A=T[1]/100,V=T[2]/100,_=A*Math.min(V,1-V),R=(K,O=(K+F/30)%12)=>V-_*Math.max(Math.min(O-3,9-O,1),-1);let L="rgb";const I=[Math.round(R(0)*255),Math.round(R(8)*255),Math.round(R(4)*255)];return D.type==="hsla"&&(L+="a",I.push(T[3])),d({type:L,values:I})}function h(D){D=i(D);let T=D.type==="hsl"||D.type==="hsla"?i(f(D)).values:D.values;return T=T.map(F=>(D.type!=="color"&&(F/=255),F<=.03928?F/12.92:((F+.055)/1.055)**2.4)),Number((.2126*T[0]+.7152*T[1]+.0722*T[2]).toFixed(3))}function g(D,T){const F=h(D),A=h(T);return(Math.max(F,A)+.05)/(Math.min(F,A)+.05)}function m(D,T){return D=i(D),T=r(T),(D.type==="rgb"||D.type==="hsl")&&(D.type+="a"),D.type==="color"?D.values[3]=`/${T}`:D.values[3]=T,d(D)}function v(D,T,F){try{return m(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function x(D,T){if(D=i(D),T=r(T),D.type.indexOf("hsl")!==-1)D.values[2]*=1-T;else if(D.type.indexOf("rgb")!==-1||D.type.indexOf("color")!==-1)for(let F=0;F<3;F+=1)D.values[F]*=1-T;return d(D)}function C(D,T,F){try{return x(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function w(D,T){if(D=i(D),T=r(T),D.type.indexOf("hsl")!==-1)D.values[2]+=(100-D.values[2])*T;else if(D.type.indexOf("rgb")!==-1)for(let F=0;F<3;F+=1)D.values[F]+=(255-D.values[F])*T;else if(D.type.indexOf("color")!==-1)for(let F=0;F<3;F+=1)D.values[F]+=(1-D.values[F])*T;return d(D)}function y(D,T,F){try{return w(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function $(D,T=.15){return h(D)>.5?x(D,T):w(D,T)}function B(D,T,F){try{return $(D,T)}catch{return F&&process.env.NODE_ENV!=="production"&&console.warn(F),D}}function k(D,T,F,A=1){const V=(I,K)=>Math.round((I**(1/A)*(1-F)+K**(1/A)*F)**A),_=i(D),R=i(T),L=[V(_.values[0],R.values[0]),V(_.values[1],R.values[1]),V(_.values[2],R.values[2])];return d({type:"rgb",values:L})}return Ve}var au=$R();const lo={black:"#000",white:"#fff"},DR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Lr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Or={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ta={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Hr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Kr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},zr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},wR=["mode","contrastThreshold","tonalOffset"],P4={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:lo.white,default:lo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},r1={text:{primary:lo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:lo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function T4(e,t,n,r){const a=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=au.lighten(e.main,a):t==="dark"&&(e.dark=au.darken(e.main,o)))}function ER(e="light"){return e==="dark"?{main:Hr[200],light:Hr[50],dark:Hr[400]}:{main:Hr[700],light:Hr[400],dark:Hr[800]}}function BR(e="light"){return e==="dark"?{main:Lr[200],light:Lr[50],dark:Lr[400]}:{main:Lr[500],light:Lr[300],dark:Lr[700]}}function kR(e="light"){return e==="dark"?{main:Or[500],light:Or[300],dark:Or[700]}:{main:Or[700],light:Or[400],dark:Or[800]}}function SR(e="light"){return e==="dark"?{main:Kr[400],light:Kr[300],dark:Kr[700]}:{main:Kr[700],light:Kr[500],dark:Kr[900]}}function PR(e="light"){return e==="dark"?{main:zr[400],light:zr[300],dark:zr[700]}:{main:zr[800],light:zr[500],dark:zr[900]}}function TR(e="light"){return e==="dark"?{main:Ta[400],light:Ta[300],dark:Ta[700]}:{main:"#ed6c02",light:Ta[500],dark:Ta[900]}}function AR(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,a=$a(e,wR),o=e.primary||ER(t),i=e.secondary||BR(t),u=e.error||kR(t),s=e.info||SR(t),d=e.success||PR(t),p=e.warning||TR(t);function f(v){const x=au.getContrastRatio(v,r1.text.primary)>=n?r1.text.primary:P4.text.primary;if(process.env.NODE_ENV!=="production"){const C=au.getContrastRatio(v,x);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${x} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
4519
4528
|
`))}return x}const h=({color:v,name:x,mainShade:C=500,lightShade:w=300,darkShade:y=700})=>{if(v=Ue({},v),!v.main&&v[C]&&(v.main=v[C]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
4520
4529
|
The color object needs to have a \`main\` property or a \`${C}\` property.`:uo(11,x?` (${x})`:"",C));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
4521
4530
|
\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
|
|
@@ -4530,6 +4539,6 @@ const theme1 = createTheme({ palette: {
|
|
|
4530
4539
|
|
|
4531
4540
|
const theme2 = createTheme({ palette: {
|
|
4532
4541
|
primary: { main: green[500] },
|
|
4533
|
-
} });`:uo(12,x?` (${x})`:"",JSON.stringify(v.main)));return T4(v,"light",w,r),T4(v,"dark",y,r),v.contrastText||(v.contrastText=f(v.main)),v},g={dark:r1,light:P4};return process.env.NODE_ENV!=="production"&&(g[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),on(Ue({common:Ue({},lo),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:s,name:"info"}),success:h({color:d,name:"success"}),grey:
|
|
4534
|
-
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(p=>`${p} ${typeof i=="string"?i:M4(i)} ${u} ${typeof s=="string"?s:M4(s)}`).join(",")}},e,{easing:t,duration:n})}const
|
|
4535
|
-
`))}h[m]={}}}};Object.keys(d.components).forEach(h=>{const g=d.components[h].styleOverrides;g&&h.indexOf("Mui")===0&&f(g,h)})}return d.unstable_sxConfig=Ue({},P3,i?.unstable_sxConfig),d.unstable_sx=function(f){return T3({sx:f,theme:this})},d}const
|
|
4542
|
+
} });`:uo(12,x?` (${x})`:"",JSON.stringify(v.main)));return T4(v,"light",w,r),T4(v,"dark",y,r),v.contrastText||(v.contrastText=f(v.main)),v},g={dark:r1,light:P4};return process.env.NODE_ENV!=="production"&&(g[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),on(Ue({common:Ue({},lo),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:s,name:"info"}),success:h({color:d,name:"success"}),grey:DR,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},g[t]),a)}const FR=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function MR(e){return Math.round(e*1e5)/1e5}const A4={textTransform:"uppercase"},F4='"Roboto", "Helvetica", "Arial", sans-serif';function VR(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=F4,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:s=700,htmlFontSize:d=16,allVariants:p,pxToRem:f}=n,h=$a(n,FR);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=a/14,m=f||(C=>`${C/d*g}rem`),v=(C,w,y,$,B)=>Ue({fontFamily:r,fontWeight:C,fontSize:m(w),lineHeight:y},r===F4?{letterSpacing:`${MR($/w)}em`}:{},B,p),x={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(u,14,1.75,.4,A4),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,A4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return on(Ue({htmlFontSize:d,pxToRem:m,fontFamily:r,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:s},x),h,{clone:!1})}const IR=.2,RR=.14,jR=.12;function Ae(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${IR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${RR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jR})`].join(",")}const LR=["none",Ae(0,2,1,-1,0,1,1,0,0,1,3,0),Ae(0,3,1,-2,0,2,2,0,0,1,5,0),Ae(0,3,3,-2,0,3,4,0,0,1,8,0),Ae(0,2,4,-1,0,4,5,0,0,1,10,0),Ae(0,3,5,-1,0,5,8,0,0,1,14,0),Ae(0,3,5,-1,0,6,10,0,0,1,18,0),Ae(0,4,5,-2,0,7,10,1,0,2,16,1),Ae(0,5,5,-3,0,8,10,1,0,3,14,2),Ae(0,5,6,-3,0,9,12,1,0,3,16,2),Ae(0,6,6,-3,0,10,14,1,0,4,18,3),Ae(0,6,7,-4,0,11,15,1,0,4,20,3),Ae(0,7,8,-4,0,12,17,2,0,5,22,4),Ae(0,7,8,-4,0,13,19,2,0,5,24,4),Ae(0,7,9,-4,0,14,21,2,0,5,26,4),Ae(0,8,9,-5,0,15,22,2,0,6,28,5),Ae(0,8,10,-5,0,16,24,2,0,6,30,5),Ae(0,8,11,-5,0,17,26,2,0,6,32,5),Ae(0,9,11,-5,0,18,28,2,0,7,34,6),Ae(0,9,12,-6,0,19,29,2,0,7,36,6),Ae(0,10,13,-6,0,20,31,3,0,8,38,7),Ae(0,10,13,-6,0,21,33,3,0,8,40,7),Ae(0,10,14,-6,0,22,35,3,0,8,42,7),Ae(0,11,14,-7,0,23,36,3,0,9,44,8),Ae(0,11,15,-7,0,24,38,3,0,9,46,8)],OR=["duration","easing","delay"],HR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},KR={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M4(e){return`${Math.round(e)}ms`}function zR(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function NR(e){const t=Ue({},HR,e.easing),n=Ue({},KR,e.duration);return Ue({getAutoHeightDuration:zR,create:(a=["all"],o={})=>{const{duration:i=n.standard,easing:u=t.easeInOut,delay:s=0}=o,d=$a(o,OR);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",f=h=>!isNaN(parseFloat(h));!p(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!p(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!f(s)&&!p(s)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
4543
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(p=>`${p} ${typeof i=="string"?i:M4(i)} ${u} ${typeof s=="string"?s:M4(s)}`).join(",")}},e,{easing:t,duration:n})}const ZR={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function UR(e={},...t){const{mixins:n={},palette:r={},transitions:a={},typography:o={}}=e,i=$a(e,_R);if(e.vars&&e.generateCssVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":uo(18));const u=AR(r),s=vR(e);let d=on(s,{mixins:CR(s.breakpoints,n),palette:u,shadows:LR.slice(),typography:VR(u,o),transitions:NR(a),zIndex:Ue({},ZR)});if(d=on(d,i),d=t.reduce((p,f)=>on(p,f),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(h,g)=>{let m;for(m in h){const v=h[m];if(p.indexOf(m)!==-1&&Object.keys(v).length>0){if(process.env.NODE_ENV!=="production"){const x=xI("",m);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:v}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
4544
|
+
`))}h[m]={}}}};Object.keys(d.components).forEach(h=>{const g=d.components[h].styleOverrides;g&&h.indexOf("Mui")===0&&f(g,h)})}return d.unstable_sxConfig=Ue({},P3,i?.unstable_sxConfig),d.unstable_sx=function(f){return T3({sx:f,theme:this})},d}const WR={palette:{primary:{main:Te.color.content.action.action,light:Te.color.content.action.actionLighter,dark:Te.color.content.action.actionDarker,contrastText:Te.color.content.neutral.primaryReversed},info:{main:Te.color.content.message.informative,light:Te.color.content.message.informativeLighter,dark:Te.color.content.message.informativeDarker,contrastText:Te.color.content.neutral.primaryReversed},secondary:{main:Te.color.content.message.informative,light:Te.color.content.message.informativeLighter,dark:Te.color.content.message.informativeDarker,contrastText:Te.color.content.neutral.primaryReversed},error:{main:Te.color.content.message.negative,light:Te.color.content.message.negativeLighter,dark:Te.color.content.message.negativeDarker,contrastText:Te.color.content.neutral.primaryReversed},success:{main:Te.color.content.message.positive,light:Te.color.content.message.positiveLighter,dark:Te.color.content.message.positiveDarker,contrastText:Te.color.content.neutral.primaryReversed},warning:{main:Te.color.content.message.warning,light:Te.color.content.message.warningLighter,dark:Te.color.content.message.warningDarker,contrastText:Te.color.content.neutral.primaryReversed}},typography:{fontFamily:["EDF2020","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue"].join(",")},components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}}};function jh(e){const t=on(WR,e||{});return UR(t)}jh();exports.Accordion=AB;exports.Badge=xa;exports.Breadcrumbs=KB;exports.Button=De;exports.Calendar=$3;exports.CalendarCell=Ci;exports.ChartLegend=XB;exports.ChartTooltip=sk;exports.Checkbox=Op;exports.CheckboxGroup=dk;exports.Chip=Up;exports.Combobox=Fk;exports.DataTable=rS;exports.DataTableCell=uS;exports.DataTableHeader=cS;exports.DataTableRoot=Xp;exports.DataTableRow=qp;exports.DatePicker=mS;exports.DateRangePicker=yS;exports.Drawer=nh;exports.Dropdown=Hp;exports.DropdownListItem=Zu;exports.EmptyState=LS;exports.FileUpload=YS;exports.Filter=uP;exports.Header=kP;exports.I18nProvider=av;exports.Icon=ne;exports.Label=Wp;exports.LinearProgressBar=ST;exports.Link=AT;exports.List=KT;exports.Loader=zu;exports.Menu=Ch;exports.MenuItem=bh;exports.Message=XT;exports.Modal=dA;exports.ModalActions=sA;exports.ModalContent=lA;exports.ModalForm=aA;exports.Navigation=wA;exports.NavigationItem=nu;exports.NotificationCard=rF;exports.Notifications=HA;exports.PageLayout=cF;exports.Pagination=Jp;exports.Popover=bF;exports.PopoverTrigger=xF;exports.Radio=EF;exports.RouterProvider=uI;exports.SearchBar=ZF;exports.SegmentedControl=UF;exports.SegmentedControlButton=YF;exports.SegmentedControlList=XF;exports.SegmentedControlPanel=QF;exports.Select=J1;exports.SelectItem=xr;exports.Skeleton=nM;exports.Slider=sM;exports.Step=wM;exports.Stepper=mM;exports.Switch=kM;exports.Tab=PM;exports.TabList=FM;exports.TabPanel=MM;exports.Tabs=IM;exports.Tag=vh;exports.TextInput=eu;exports.TimeField=LM;exports.Timeline=yV;exports.Toaster=JV;exports.ToggleButton=QV;exports.ToggleButtonGroup=tI;exports.Tooltip=Nu;exports.TooltipTrigger=Lp;exports.YearMonthPicker=oI;exports.createMuiTheme=jh;exports.fontSize=Q;exports.lineHeight=oe;exports.toast=LV;exports.tokens=Te;
|