@eclass/ui-kit 1.13.0 → 1.13.1

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.
@@ -408,5 +408,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
408
408
  `},M8=function(e){var t=w.useState(zS(e.gapMode)),r=t[0],n=t[1];w.useEffect(function(){n(zS(e.gapMode))},[e.gapMode]);var i=e.noRelative,a=e.noImportant,o=e.gapMode,l=o===void 0?"margin":o;return w.createElement(F8,{styles:O8(r,!i,l,a?"":"!important")})},I8=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},R8=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},DS=function(e,t){var r=t;do{var n=$S(e,r);if(n){var i=NS(e,r),a=i[1],o=i[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},L8=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},B8=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$S=function(e,t){return e==="v"?I8(t):R8(t)},NS=function(e,t){return e==="v"?L8(t):B8(t)},z8=function(e,t,r,n,i){var a=n,o=r.target,l=t.contains(o),s=!1,u=a>0,c=0,d=0;do{var f=NS(e,o),p=f[0],m=f[1],y=f[2],v=m-y-p;(p||v)&&$S(e,o)&&(c+=v,d+=p),o=o.parentNode}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(u&&(i&&c===0||!i&&a>c)||!u&&(i&&d===0||!i&&-a>d))&&(s=!0),s},rv=!1;if(typeof window!="undefined")try{var uu=Object.defineProperty({},"passive",{get:function(){return rv=!0,!0}});window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{rv=!1}var Mi=rv?{passive:!1}:!1,cu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},VS=function(e){return[e.deltaX,e.deltaY]},jS=function(e){return e&&"current"in e?e.current:e},D8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$8=function(e){return`
409
409
  .block-interactivity-`+e+` {pointer-events: none;}
410
410
  .allow-interactivity-`+e+` {pointer-events: all;}
411
- `},N8=0,Ii=[];function V8(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(N8++)[0],a=w.useState(function(){return BS()})[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+i);var y=[e.lockRef.current].concat((e.shards||[]).map(jS)).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-"+i)}),function(){document.body.classList.remove("block-interactivity-"+i),y.forEach(function(v){return v.classList.remove("allow-interactivity-"+i)})}}},[e.inert,e.lockRef.current,e.shards]);var l=w.useCallback(function(y,v){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var h=cu(y),g=r.current,b="deltaX"in y?y.deltaX:g[0]-h[0],x="deltaY"in y?y.deltaY:g[1]-h[1],k,P=y.target,T=Math.abs(b)>Math.abs(x)?"h":"v",O=DS(T,P);if(!O)return!0;if(O?k=T:(k=T==="v"?"h":"v",O=DS(T,P)),!O)return!1;if(!n.current&&"changedTouches"in y&&(b||x)&&(n.current=k),!k)return!0;var F=n.current||k;return z8(F,v,y,F==="h"?b:x,!0)},[]),s=w.useCallback(function(y){var v=y;if(!(!Ii.length||Ii[Ii.length-1]!==a)){var h="deltaY"in v?VS(v):cu(v),g=t.current.filter(function(k){return k.name===v.type&&k.target===v.target&&D8(k.delta,h)})[0];if(g&&g.should){v.preventDefault();return}if(!g){var b=(o.current.shards||[]).map(jS).filter(Boolean).filter(function(k){return k.contains(v.target)}),x=b.length>0?l(v,b[0]):!o.current.noIsolation;x&&v.preventDefault()}}},[]),u=w.useCallback(function(y,v,h,g){var b={name:y,delta:v,target:h,should:g};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(x){return x!==b})},1)},[]),c=w.useCallback(function(y){r.current=cu(y),n.current=void 0},[]),d=w.useCallback(function(y){u(y.type,VS(y),y.target,l(y,e.lockRef.current))},[]),f=w.useCallback(function(y){u(y.type,cu(y),y.target,l(y,e.lockRef.current))},[]);w.useEffect(function(){return Ii.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Mi),document.addEventListener("touchmove",s,Mi),document.addEventListener("touchstart",c,Mi),function(){Ii=Ii.filter(function(y){return y!==a}),document.removeEventListener("wheel",s,Mi),document.removeEventListener("touchmove",s,Mi),document.removeEventListener("touchstart",c,Mi)}},[]);var p=e.removeScrollBar,m=e.inert;return w.createElement(w.Fragment,null,m?w.createElement(a,{styles:$8(i)}):null,p?w.createElement(M8,{gapMode:"margin"}):null)}var j8=TR(LS,V8),HS=w.forwardRef(function(e,t){return w.createElement(su,Oi({},e,{ref:t,sideCar:j8}))});HS.classNames=su.classNames;var H8=HS,W8=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ri=new WeakMap,fu=new WeakMap,du={},nv=0,U8=function(e,t,r){t===void 0&&(t=W8(e)),r===void 0&&(r="data-aria-hidden");var n=Array.isArray(e)?e:[e];du[r]||(du[r]=new WeakMap);var i=du[r],a=[],o=new Set,l=function(u){!u||o.has(u)||(o.add(u),l(u.parentNode))};n.forEach(l);var s=function(u){!u||n.indexOf(u)>=0||Array.prototype.forEach.call(u.children,function(c){if(o.has(c))s(c);else{var d=c.getAttribute("aria-hidden"),f=d!==null&&d!=="false",p=(Ri.get(c)||0)+1,m=(i.get(c)||0)+1;Ri.set(c,p),i.set(c,m),a.push(c),p===1&&f&&fu.set(c,!0),m===1&&c.setAttribute(r,"true"),f||c.setAttribute("aria-hidden","true")}})};return s(t),o.clear(),nv++,function(){a.forEach(function(u){var c=Ri.get(u)-1,d=i.get(u)-1;Ri.set(u,c),i.set(u,d),c||(fu.has(u)||u.removeAttribute("aria-hidden"),fu.delete(u)),d||u.removeAttribute(r)}),nv--,nv||(Ri=new WeakMap,Ri=new WeakMap,fu=new WeakMap,du={})}};function Pn(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Fe(){return Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fe.apply(this,arguments)}var G8=["preset"],Y8={slideInBottom:Fe({},Zb,{custom:{offsetY:16,reverse:!0}}),slideInRight:Fe({},Zb,{custom:{offsetX:16,reverse:!0}}),scale:Fe({},TI,{custom:{initialScale:.95,reverse:!0}}),none:{}},K8=te(Ap.section),X8=w.forwardRef(function(e,t){var r=e.preset,n=Pn(e,G8),i=Y8[r];return w.createElement(K8,Fe({ref:t},i,n))}),Z8=function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(n){this.modals.push(n)},t.remove=function(n){this.modals=this.modals.filter(function(i){return i!==n})},t.isTopModal=function(n){var i=this.modals[this.modals.length-1];return i===n},e}(),iv=new Z8;function q8(e,t){M.useEffect(function(){return t&&iv.add(e),function(){iv.remove(e)}},[t,e])}function Q8(e){var t=e.isOpen,r=e.onClose,n=e.id,i=e.closeOnOverlayClick,a=i===void 0?!0:i,o=e.closeOnEsc,l=o===void 0?!0:o,s=e.useInert,u=s===void 0?!0:s,c=e.onOverlayClick,d=e.onEsc,f=M.useRef(null),p=M.useRef(null),m=A2(n,"chakra-modal","chakra-modal--header","chakra-modal--body"),y=m[0],v=m[1],h=m[2];J8(f,t&&u),q8(f,t);var g=M.useRef(null),b=M.useCallback(function(q){g.current=q.target},[]),x=M.useCallback(function(q){q.key==="Escape"&&(q.stopPropagation(),l&&(r==null||r()),d==null||d())},[l,r,d]),k=M.useState(!1),P=k[0],T=k[1],O=M.useState(!1),F=O[0],W=O[1],J=M.useCallback(function(q,ne){return q===void 0&&(q={}),ne===void 0&&(ne=null),Fe({role:"dialog"},q,{ref:oh(ne,f),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?v:void 0,"aria-describedby":F?h:void 0,onClick:$n(q.onClick,function(Le){return Le.stopPropagation()})})},[h,F,y,v,P]),X=M.useCallback(function(q){q.stopPropagation(),g.current===q.target&&(!iv.isTopModal(f)||(a&&(r==null||r()),c==null||c()))},[r,a,c]),Z=M.useCallback(function(q,ne){return q===void 0&&(q={}),ne===void 0&&(ne=null),Fe({},q,{ref:oh(ne,p),onClick:$n(q.onClick,X),onKeyDown:$n(q.onKeyDown,x),onMouseDown:$n(q.onMouseDown,b)})},[x,b,X]);return{isOpen:t,onClose:r,headerId:v,bodyId:h,setBodyMounted:W,setHeaderMounted:T,dialogRef:f,overlayRef:p,getDialogProps:J,getDialogContainerProps:Z}}function J8(e,t){var r=e.current;M.useEffect(function(){if(!(!e.current||!t))return U8(e.current)},[t,e,r])}var eL=["className","children","containerProps"],tL=["className","transition"],rL=["className"],nL=["className"],iL=["className"],aL=["onClick","className"],WS=en({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),oL=WS[0],An=WS[1],av=function(t){var r=t.portalProps,n=t.children,i=t.autoFocus,a=t.trapFocus,o=t.initialFocusRef,l=t.finalFocusRef,s=t.returnFocusOnClose,u=t.blockScrollOnMount,c=t.allowPinchZoom,d=t.preserveScrollBarGap,f=t.motionPreset,p=t.lockFocusAcrossFrames,m=t.onCloseComplete,y=Bg("Modal",t),v=Q8(t),h=Fe({},v,{autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:l,returnFocusOnClose:s,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p});return w.createElement(oL,{value:h},w.createElement(E5,{value:y},w.createElement(Kb,{onExitComplete:m},h.isOpen&&w.createElement(os,r,n))))};av.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};var lL=te(Ap.div),sL=Pe(function(e,t){var r=e.className,n=e.children,i=e.containerProps,a=Pn(e,eL),o=An(),l=o.getDialogProps,s=o.getDialogContainerProps,u=l(a,t),c=s(i),d=De("chakra-modal__content",r),f=hi(),p=Fe({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},f.dialog),m=Fe({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},f.dialogContainer),y=An(),v=y.motionPreset;return w.createElement(uL,null,w.createElement(te.div,Fe({},c,{className:"chakra-modal__content-container",tabIndex:-1,__css:m}),w.createElement(X8,Fe({preset:v,className:d},u,{__css:p}),n)))});function uL(e){var t=An(),r=t.autoFocus,n=t.trapFocus,i=t.dialogRef,a=t.initialFocusRef,o=t.blockScrollOnMount,l=t.allowPinchZoom,s=t.finalFocusRef,u=t.returnFocusOnClose,c=t.preserveScrollBarGap,d=t.lockFocusAcrossFrames,f=Sp(),p=f[0],m=f[1];return w.useEffect(function(){!p&&m&&setTimeout(m)},[p,m]),w.createElement(y8,{autoFocus:r,isDisabled:!n,initialFocusRef:a,finalFocusRef:s,restoreFocus:u,contentRef:i,lockFocusAcrossFrames:d},w.createElement(H8,{removeScrollBar:!c,allowPinchZoom:l,enabled:o,forwardProps:!0},e.children))}var cL=Pe(function(e,t){var r=e.className;e.transition;var n=Pn(e,tL),i=De("chakra-modal__overlay",r),a=hi(),o=Fe({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},a.overlay),l=An(),s=l.motionPreset,u=s==="none"?{}:EI;return w.createElement(lL,Fe({},u,{__css:o,ref:t,className:i},n))}),fL=Pe(function(e,t){var r=e.className,n=Pn(e,rL),i=An(),a=i.headerId,o=i.setHeaderMounted;w.useEffect(function(){return o(!0),function(){return o(!1)}},[o]);var l=De("chakra-modal__header",r),s=hi(),u=Fe({flex:0},s.header);return w.createElement(te.header,Fe({ref:t,className:l,id:a},n,{__css:u}))}),dL=Pe(function(e,t){var r=e.className,n=Pn(e,nL),i=An(),a=i.bodyId,o=i.setBodyMounted;w.useEffect(function(){return o(!0),function(){return o(!1)}},[o]);var l=De("chakra-modal__body",r),s=hi();return w.createElement(te.div,Fe({ref:t,className:l,id:a},n,{__css:s.body}))}),pL=Pe(function(e,t){var r=e.className,n=Pn(e,iL),i=De("chakra-modal__footer",r),a=hi(),o=Fe({display:"flex",alignItems:"center",justifyContent:"flex-end"},a.footer);return w.createElement(te.footer,Fe({ref:t},n,{__css:o,className:i}))}),vL=Pe(function(e,t){var r=e.onClick,n=e.className,i=Pn(e,aL),a=An(),o=a.onClose,l=De("chakra-modal__close-btn",n),s=hi();return w.createElement(XI,Fe({ref:t,__css:s.closeButton,className:l,onClick:$n(r,function(u){u.stopPropagation(),o()})},i))});en(),te(AI);function US(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Li(){return Li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Li.apply(this,arguments)}var hL=zn({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),mL=zn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});zn({"0%":{left:"-40%"},"100%":{left:"100%"}}),zn({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function gL(e){var t=e.value,r=t===void 0?0:t,n=e.min,i=e.max,a=e.valueText,o=e.getValueText,l=e.isIndeterminate,s=C2(r,n,i),u=function(){if(r!=null)return Sr(o)?o(r,s):a};return{bind:{"data-indeterminate":l?"":void 0,"aria-valuemax":i,"aria-valuemin":n,"aria-valuenow":l?void 0:r,"aria-valuetext":u(),role:"progressbar"},percent:s,value:r}}var yL=["size","isIndeterminate"],bL=["size","max","min","valueText","getValueText","value","capIsRound","children","thickness","color","trackColor","isIndeterminate"],GS=function(t){return w.createElement(te.circle,Li({cx:50,cy:50,r:42,fill:"transparent"},t))},SL=function(t){var r=t.size,n=t.isIndeterminate,i=US(t,yL);return w.createElement(te.svg,Li({viewBox:"0 0 100 100",__css:{width:r,height:r,animation:n?mL+" 2s linear infinite":void 0}},i))},xL=function(t){var r,n=t.size,i=n===void 0?"48px":n,a=t.max,o=a===void 0?100:a,l=t.min,s=l===void 0?0:l,u=t.valueText,c=t.getValueText,d=t.value,f=t.capIsRound,p=t.children,m=t.thickness,y=m===void 0?"10px":m,v=t.color,h=v===void 0?"#0078d4":v,g=t.trackColor,b=g===void 0?"#edebe9":g,x=t.isIndeterminate,k=US(t,bL),P=gL({min:s,max:o,value:d,valueText:u,getValueText:c,isIndeterminate:x}),T=x?void 0:((r=P.percent)!=null?r:0)*2.64,O=Xw(T)?void 0:T+" "+(264-T),F=x?{css:{animation:hL+" 1.5s linear infinite"}}:{strokeDashoffset:66,strokeDasharray:O,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},W={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:i};return w.createElement(te.div,Li({className:"chakra-progress"},P.bind,k,{__css:W}),w.createElement(SL,{size:i,isIndeterminate:x},w.createElement(GS,{stroke:b,strokeWidth:y,className:"chakra-progress__track"}),w.createElement(GS,Li({stroke:h,strokeWidth:y,className:"chakra-progress__indicator",strokeLinecap:f?"round":void 0,opacity:P.value===0&&!x?0:void 0},F))),p)};te("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});var wL=L5;wL.defaultProps={theme:py};function CL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=[].concat(t),i=t[t.length-1];return A6(i)&&n.length>1?n=n.slice(0,n.length-1):i=py,y2.apply(void 0,n.map(function(a){return function(o){return Sr(a)?a(o):EL(o,a)}}))(i)}function EL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ct.apply(void 0,[{}].concat(t,[YS]))}function YS(e,t,r,n){if((Sr(e)||Sr(t))&&Object.prototype.hasOwnProperty.call(n,r))return function(){var i=Sr(e)?e.apply(void 0,arguments):e,a=Sr(t)?t.apply(void 0,arguments):t;return Ct({},i,a,YS)}}const pu={deepSkyBlue:"#0189FF",azureRadiance:"#017BE5",blueGrey:"#60798E",veryLightBlue:"#E0EEFA",linkWater:"#C7DEF2",ziggurat:"#B0CFE0"},Fn={main:pu,secondary:{pumpkin:"#FF7A14"},alert:{deepSkyBlue:pu.deepSkyBlue,veryLightBlue:pu.veryLightBlue,jadeGreen:"#28A745",ice:"#E9F6EC",red:"#CC0000",veryLightPinkThree:"#F9DFDF",orangeyYelow:"#F5A623",pale:"#FDEED6"},icon:{cetaceanBlue:"#08044F",deepSkyBlue:pu.deepSkyBlue,lightSeaGreen:"#1EBDAF",orangeRed:"#FF554D",ripeMango:"#FFBC27"},neutral:{darkCharcoal:"#2F2F2F",davysGrey:"#5C5C5C",gray:"#808080",spanishGrey:"#999999",silverSand:"#C6C6C6",platinum:"#E8E8E8",cultured:"#F4F4F4",cultured2:"#F8F8F8",white:"#FFFFFF"}},kL={global:e=>({".react-ripples":{h:"100%",display:"grid!important"},".chakra-button":{borderStyle:"none"},".chakra-modal__content-container":{padding:"1.87rem",zIndex:"1400",justifyContent:"center",alignItems:"center",overflow:"auto"},".chakra-modal__content":{borderRadius:"0.5rem",background:"white",color:"inherit",zIndex:"1400",maxWidth:"36.813rem",boxShadow:"0px 4px 16px rgba(92, 92, 92, 0.2)"},".chakra-modal__header":{paddingInlineStart:"1.5rem",paddingInlineEnd:"1.5rem",fontSize:"1.25rem",fontWeight:"700",textAlign:"center",".chakra-icon":{width:"13rem"}},".chakra-modal__close-btn":{width:"2rem",height:"2rem",borderRadius:"0.5rem",fontSize:"0.75rem",position:"absolute",top:"0.5rem",right:"0.75rem",color:"#60798E",backgroundColor:"transparent",borderStyle:"none"}})},_o="solid .063rem",TL={borders:{normal:`${_o} ${Fn.neutral.darkCharcoal}`,light:`${_o} ${Fn.neutral.platinum}`,active:`${_o} ${Fn.main.deepSkyBlue}`,success:`${_o} ${Fn.alert.jadeGreen}`,error:`${_o} ${Fn.alert.red}`,white:`solid .125rem ${Fn.neutral.white}`},radii:{small:".25rem",big:".5rem",rounded:"50%"},shadows:{sm:"0 .125rem .5rem 0 rgba(0,0,0,.20)",md:"0 .25rem 1rem 0 rgba(0,0,0,.20)",lg:"0 .5rem 2rem 0 rgba(0,0,0,.20)"},space:{xxs:".25rem",xs:".5rem",s:"1rem",m:"1.5rem",l:"2rem",xl:"3rem",xxl:"5rem"}};var u9="",c9="",f9="",d9="",p9="";const _L={fonts:{body:"Roboto",outstanding:"Lora"}},PL=CL(L(I(I({colors:Fn},TL),_L),{styles:kL})),j=e=>`var(--chakra-${e})`;function Po({children:e,bg:t=j("colors-icon-ripeMango"),color:r=j("colors-neutral-darkCharcoal"),size:n="md",m:i="0"}){const a={md:{borderRadius:"0.25em",fontWeight:"400",p:"0.25em 0.84em"},sm:{borderRadius:"0.42em",fontWeight:"700",p:"0.17em 0.67em"}};return _(it,{bg:t,borderRadius:a[n].borderRadius,color:r,display:"inline-block",fontSize:"0.75rem",fontWeight:a[n].fontWeight,lineHeight:".875rem",m:i,p:a[n].p,children:e})}Po.displayName="Label";function ov({value:e=0}){let t=e;return e>100?t=100:e<0&&(t=0),_(xL,{size:"1rem",value:t,thickness:"1rem",color:j("colors-main-deepSkyBlue"),trackColor:j("colors-neutral-platinum")})}ov.displayName="Progress";var AL=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Bi=globalThis&&globalThis.__assign||function(){return Bi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Bi.apply(this,arguments)},FL=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},OL={position:"relative",display:"inline-flex",overflow:"hidden"},ML=function(e){e===void 0&&(e={});var t;return t=function(r){AL(n,r);function n(i){var a=r.call(this,i)||this;return a.timer=0,a.onClick=function(o){var l=a.props,s=l.during,u=l.onClick,c=l.color;o.stopPropagation();var d=o.pageX,f=o.pageY,p=o.currentTarget,m=p.getBoundingClientRect(),y=d-(m.left+window.scrollX),v=f-(m.top+window.scrollY),h=Math.max(m.width,m.height);a.setState(function(g){return{rippleStyle:Bi({},g.rippleStyle,{left:y,top:v,opacity:1,transform:"translate(-50%, -50%)",transition:"initial",backgroundColor:c})}},function(){a.timer=setTimeout(function(){a.setState(function(g){return{rippleStyle:Bi({},g.rippleStyle,{opacity:0,transform:"scale("+h/9+")",transition:"all "+s+"ms"})}})},50)}),u&&u(o)},a.state={rippleStyle:{position:"absolute",borderRadius:"50%",opacity:0,width:35,height:35,transform:"translate(-50%, -50%)",pointerEvents:"none"}},a}return n.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},n.prototype.render=function(){var i=this.props,a=i.children;i.during,i.color,i.onClick;var o=i.className,l=FL(i,["children","during","color","onClick","className"]),s=this.state.rippleStyle;return br.default.createElement("div",Bi({},l,{className:("react-ripples "+o).trim(),style:OL,onClick:this.onClick}),a,br.default.createElement("s",{style:s}))},n}(br.default.PureComponent),t.displayName="Ripples",t.propTypes={during:ru.number,color:ru.string,onClick:ru.func,className:ru.string},t.defaultProps=Bi({during:600,color:"rgba(0, 0, 0, .3)",className:"",onClick:function(){}},e),t},lv=globalThis&&globalThis.__assign||function(){return lv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lv.apply(this,arguments)},IL=function(e){return function(t){return br.default.createElement(e,lv({},t))}},KS=IL(ML());function sv({children:e,color:t="rgba(204,204,204,0.2)"}){return _(KS,{during:1e3,color:t,children:_(it,{children:e})})}sv.displayName="Ripples";function Me({w:e="1rem",h:t="1rem",color:r=j("colors-main-ziggurat"),m:n="0",viewBox:i="0 0 16 16",children:a,title:o}){return ee(hy,{w:e,h:t,viewBox:i,color:r,m:n,children:[ee("title",{children:["icon",o&&`-${o}`]}),a]})}function XS(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"academicRecord",children:[_("path",{d:"M14 0H2C1.73478 0 1.48043 0.105357 1.29289 0.292893C1.10536 0.48043 1 0.734784 1 1V7C1 7.26522 1.10536 7.51957 1.29289 7.70711C1.48043 7.89464 1.73478 8 2 8H14C14.2652 8 14.5196 7.89464 14.7071 7.70711C14.8946 7.51957 15 7.26522 15 7V1C15 0.734784 14.8946 0.48043 14.7071 0.292893C14.5196 0.105357 14.2652 0 14 0V0Z",fill:"currentColor"}),_("path",{d:"M15 10H1V12H15V10Z",fill:"currentColor"}),_("path",{d:"M15 14H1V16H15V14Z",fill:"currentColor"})]}))}XS.displayName="AcademicRecord";function ZS(e){return _(Me,L(I({},e),{children:ee("svg",{width:"53",height:"45",viewBox:"0 0 53 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("path",{d:"M22.142 44.1483C34.0945 44.1483 43.784 34.4588 43.784 22.5063C43.784 10.5537 34.0945 0.864258 22.142 0.864258C10.1895 0.864258 0.5 10.5537 0.5 22.5063C0.5 34.4588 10.1895 44.1483 22.142 44.1483Z",fill:"#FDEED6"}),_("path",{d:"M19 24.1013C19.8284 24.1013 20.5 23.4297 20.5 22.6013C20.5 21.7729 19.8284 21.1013 19 21.1013C18.1716 21.1013 17.5 21.7729 17.5 22.6013C17.5 23.4297 18.1716 24.1013 19 24.1013Z",fill:"#FFBC27"}),_("path",{d:"M24 24.1013C24.8284 24.1013 25.5 23.4297 25.5 22.6013C25.5 21.7729 24.8284 21.1013 24 21.1013C23.1716 21.1013 22.5 21.7729 22.5 22.6013C22.5 23.4297 23.1716 24.1013 24 24.1013Z",fill:"#FFBC27"}),_("path",{d:"M29 24.1013C29.8284 24.1013 30.5 23.4297 30.5 22.6013C30.5 21.7729 29.8284 21.1013 29 21.1013C28.1716 21.1013 27.5 21.7729 27.5 22.6013C27.5 23.4297 28.1716 24.1013 29 24.1013Z",fill:"#FFBC27"}),_("path",{d:"M44.178 13.8843C41.157 8.63532 35.491 5.10132 29 5.10132C19.335 5.10132 11.5 12.9363 11.5 22.6013C11.5 32.2663 19.335 40.1013 29 40.1013C35.108 40.1013 40.484 36.9723 43.615 32.2303",stroke:"#808080",strokeWidth:"2",strokeLinecap:"round"}),_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.282 13.9192C50.6627 13.9192 51.782 15.0385 51.782 16.4192V20.9862C51.782 22.3669 50.6627 23.4862 49.282 23.4862C47.9013 23.4862 46.782 22.3669 46.782 20.9862V16.4192C46.782 15.0385 47.9013 13.9192 49.282 13.9192ZM47.5143 25.6514C48.4906 24.6751 50.0735 24.6751 51.0498 25.6515L51.0958 25.6975C52.0721 26.6738 52.072 28.2567 51.0957 29.233C50.1194 30.2093 48.5365 30.2093 47.5602 29.2329L47.5142 29.1869C46.5379 28.2106 46.5379 26.6277 47.5143 25.6514Z",fill:"#FFBC27"})]})}))}ZS.displayName="ArrowRight";function qS(e){return ee(Me,L(I({},e),{children:[ee("g",{clipPath:"url(#clip0)",children:[_("mask",{id:"mask0",style:{maskType:"alpha"},width:"16",height:"16",x:"0",y:"0",maskUnits:"userSpaceOnUse",children:_("path",{fill:"#fff",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"})}),_("g",{mask:"url(#mask0)",children:_("path",{fill:"currentColor",d:"M6.074 14L12 8 6.074 2 4 4.1 7.852 8 4 11.9 6.074 14z"})})]}),_("defs",{children:_("clipPath",{id:"clip0",children:_("path",{fill:"#fff",d:"M0 0H16V16H0z"})})})]}))}qS.displayName="ArrowRight";function QS(e){return ee(Me,L(I({},e),{children:[_("path",{fill:"currentColor",d:"M7 4H9V6H7z"}),_("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 8h2a1 1 0 011 1v6a1 1 0 01-1 1H9v-4H7v4H1a1 1 0 01-1-1V9a1 1 0 011-1h2V4.618l-.553.277a1 1 0 01-.894-1.79l6-3a1 1 0 01.894 0l6 3a1 1 0 11-.894 1.79L13 4.618V8zM3 13h2v-3H3v3zm2-5V4a.98.98 0 00-.07-.347L8 2.118l3.07 1.535A.98.98 0 0011 4v4H5zm6 5h2v-3h-2v3z",clipRule:"evenodd"})]}))}QS.displayName="Certificate";function JS(e){return _(Me,L(I({},e),{children:_("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 8c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8-8-3.6-8-8zm3.6 0L7 11.4 12.4 6 11 4.6l-4 4-2-2L3.6 8z",clipRule:"evenodd"})}))}JS.displayName="CircularCheck";function uv(e){return _(Me,L(I({},e),{children:_("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM7 12V7h2v5H7zm0-7c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1z",clipRule:"evenodd"})}))}uv.displayName="CircularInformation";function ex(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",children:[_("path",{d:"M7.99998 12C8.29998 12 8.49998 11.9 8.69998 11.7L14.4 6L13 4.6L8.99998 8.6V0H6.99998V8.6L2.99998 4.6L1.59998 6L7.29998 11.7C7.49998 11.9 7.69998 12 7.99998 12Z",fill:"currentColor"}),_("path",{d:"M15 14H1V16H15V14Z",fill:"currentColor"})]}))}ex.displayName="Download";function tx(e){return _(Me,L(I({},e),{w:"8px",h:"16px",viewBox:"0 0 8 16",title:"goBack",children:_("path",{d:"M5.92593 2L0 8L5.92593 14L8 11.9L4.14815 8L8 4.1L5.92593 2Z",fill:"currentColor"})}))}tx.displayName="GoBack";function rx(e){return ee(Me,L(I({},e),{w:"12px",viewBox:"0 0 14 14",title:"multimedia",children:[_("path",{d:"M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",fill:"currentColor"}),_("path",{d:"M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",fill:"currentColor"}),_("path",{d:"M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",fill:"currentColor"}),_("path",{d:"M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",fill:"currentColor"})]}))}rx.displayName="Multimedia";function RL({fill:e="#fff"}){return _("div",{className:"loaderAsync","data-testid":"loaderAsync",children:ee("svg",{id:"prefix__eXySq0EBKm11",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 38 20",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",width:38,height:20,children:[_("style",{dangerouslySetInnerHTML:{__html:"@keyframes eXySq0EBKm12_f_o{0%,33.333333%,to{fill-opacity:.4}66.666667%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}}@keyframes eXySq0EBKm13_f_o{0%,66.666667%,to{fill-opacity:.4}33.333333%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}}@keyframes eXySq0EBKm14_f_o{0%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}33.333333%,66.666667%{fill-opacity:.4}to{fill-opacity:1}}"}}),_("circle",{r:2.502,transform:"translate(29.526 10)",fill:e,fillOpacity:.4,style:{animation:"eXySq0EBKm12_f_o 600ms linear infinite normal forwards"}}),_("circle",{r:2.502,transform:"translate(19 10)",fill:e,fillOpacity:.4,style:{animation:"eXySq0EBKm13_f_o 600ms linear infinite normal forwards"}}),_("circle",{r:2.053,transform:"matrix(1.21764 0 0 1.21764 8.562 10.002)",fill:e,style:{animation:"eXySq0EBKm14_f_o 600ms linear infinite normal forwards"}})]})})}function nx(e){return _(Me,L(I({},e),{viewBox:"0 0 12 12",w:"12px",title:"profile",children:_("path",{fill:"currentColor",d:"M5 6a3 3 0 100-6 3 3 0 000 6zM5 7c-3.375 0-5 2.106-5 3.333V11a1 1 0 001 1h8a1 1 0 001-1v-.667C10 9.106 8.375 7 5 7z"})}))}nx.displayName="Profile";function ix(e){return ee(Me,L(I({},e),{children:[_("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 2h2a1 1 0 011 1v12a1 1 0 01-1 1H1a1 1 0 01-1-1V3a1 1 0 011-1h2V0h2v2h2V0h2v2h2V0h2v2zM2 14h12V5H2v9z",clipRule:"evenodd"}),_("path",{fill:"currentColor",d:"M4 7H6V9H4z"}),_("path",{fill:"currentColor",d:"M7 7H9V9H7z"}),_("path",{fill:"currentColor",d:"M4 10H6V12H4z"}),_("path",{fill:"currentColor",d:"M7 10H9V12H7z"}),_("path",{fill:"currentColor",d:"M10 7H12V9H10z"}),_("path",{fill:"currentColor",d:"M10 10H12V12H10z"})]}))}ix.displayName="Schedule";function ax(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#0189FF"}),_("path",{d:"M7 6H5V10H7V6Z",fill:"white"}),_("path",{d:"M6 4C6.55228 4 7 3.55228 7 3C7 2.44772 6.55228 2 6 2C5.44772 2 5 2.44772 5 3C5 3.55228 5.44772 4 6 4Z",fill:"white"})]}))}ax.displayName="TinyAlertInfo";function ox(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[ee("g",{clipPath:"url(#clip0_2165_6683)",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#CC0000"}),_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.87867 2.46447L2.46446 3.87868L4.58578 6L2.46446 8.12132L3.87867 9.53553L5.99999 7.41421L8.12131 9.53553L9.53553 8.12132L7.41421 6L9.53553 3.87868L8.12131 2.46447L5.99999 4.58579L3.87867 2.46447Z",fill:"white"})]}),_("defs",{children:_("clipPath",{id:"clip0_2165_6683",children:_("rect",{width:"12px",height:"12px",fill:"white"})})})]}))}ox.displayName="TinyAlertError";function lx(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#F5A623"}),_("path",{d:"M5 6L7 6L7 2L5 2L5 6Z",fill:"white"}),_("path",{d:"M6 8C5.44771 8 5 8.44772 5 9C5 9.55228 5.44772 10 6 10C6.55228 10 7 9.55228 7 9C7 8.44772 6.55228 8 6 8Z",fill:"white"})]}))}lx.displayName="TinyAlertWarning";function sx(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[ee("g",{clipPath:"url(#clip0_2191_1138)",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#28A745"}),_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.41421 5.53549L2 6.94971L3.41421 8.36392L4.82843 9.77813L9.77817 4.82839L8.36396 3.41417L4.82843 6.94971L3.41421 5.53549Z",fill:"white"})]}),_("defs",{children:_("clipPath",{id:"clip0_2191_1138",children:_("rect",{width:"12",height:"12",fill:"white"})})})]}))}sx.displayName="TinyAlertSuccess";function ux(e){return _(Me,L(I({},e),{w:"14px",h:"16px",viewBox:"0 0 14 16",title:"password",children:_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C4.95714 0 3.28571 1.67143 3.28571 3.71429V4.64286H1.42857C0.871429 4.64286 0.5 5.01429 0.5 5.57143V13.9286C0.5 14.4857 0.871429 14.8571 1.42857 14.8571H12.5714C13.1286 14.8571 13.5 14.4857 13.5 13.9286V5.57143C13.5 5.01429 13.1286 4.64286 12.5714 4.64286H10.7143V3.71429C10.7143 1.67143 9.04286 0 7 0ZM7.92857 10.8643V12.0714H6.07143V10.8643C5.51429 10.5857 5.14286 9.93571 5.14286 9.28571C5.14286 8.26429 5.97857 7.42857 7 7.42857C8.02143 7.42857 8.85714 8.26429 8.85714 9.28571C8.85714 9.93571 8.48571 10.5857 7.92857 10.8643ZM5.14286 3.71429V4.64286H8.85714V3.71429C8.85714 2.69286 8.02143 1.85714 7 1.85714C5.97857 1.85714 5.14286 2.69286 5.14286 3.71429Z",fill:"currentColor"})}))}ux.displayName="Password";function cx(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"pen",children:[_("path",{d:"M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z",fill:"currentColor"}),_("path",{d:"M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z",fill:"currentColor"})]}))}cx.displayName="Pen";function fx(e){return _(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"plusSign",children:_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 12.4 12.4 16 8 16C3.6 16 0 12.4 0 8ZM9 9H12V7H9V4H7V7H4V9H7V12H9V9Z",fill:"currentColor"})}))}fx.displayName="PlusSign";function dx(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"trashCan",children:[_("path",{d:"M2 6V14C2 15.1 2.9 16 4 16H12C13.1 16 14 15.1 14 14V6H2Z",fill:"currentColor"}),_("path",{d:"M12 3V1C12 0.4 11.6 0 11 0H5C4.4 0 4 0.4 4 1V3H0V5H16V3H12ZM10 3H6V2H10V3Z",fill:"currentColor"})]}))}dx.displayName="TrashCan";function px(e){return _(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"textBubble",children:_("path",{d:"M1 0H15C15.552 0 16 0.448 16 1V11C16 11.552 15.552 12 15 12H10L4 16V12H1C0.448 12 0 11.552 0 11V1C0 0.448 0.448 0 1 0Z",fill:"currentColor"})}))}px.displayName="TextBubble";function vx({status:e,text:t,margin:r="0"}){const n={success:{icon:_(sx,{}),text:"Success",bg:j("colors-alert-ice"),color:j("colors-neutral-darkCharcoal")},error:{icon:_(ox,{}),text:"Error",bg:j("colors-alert-veryLightPinkThree"),color:j("colors-neutral-darkCharcoal")},info:{icon:_(ax,{}),text:"Info",bg:j("colors-alert-veryLightBlue"),color:j("colors-neutral-darkCharcoal")},warning:{icon:_(lx,{}),text:"Warning",bg:j("colors-alert-pale"),color:j("colors-neutral-darkCharcoal")},answered:{icon:void 0,text:"Answered",bg:j("colors-main-blueGrey"),color:j("colors-neutral-white")},omitted:{icon:void 0,text:"Omitted",bg:j("colors-main-ziggurat"),color:j("colors-neutral-darkCharcoal")},pending:{icon:void 0,text:"Pending",bg:j("colors-neutral-cultured"),color:j("colors-neutral-darkCharcoal")},new:{icon:void 0,text:"New answer",bg:"#FF7A14",color:j("colors-neutral-white")}};return n[e]?ee(it,{margin:r,"data-testid":"TinyAlert-Box",backgroundColor:n[e].bg,display:"flex",flexDirection:"row",alignItems:"center",padding:".125em .25em",gap:".25rem",width:"fit-content",borderRadius:".25rem",className:"TinyAlert-Box",children:[n[e].icon&&_(it,{lineHeight:0,sx:{">svg":{margin:0}},children:n[e].icon}),_(it,{as:"span",color:n[e].color,fontSize:".75rem",fontStyle:"normal",fontWeight:"400",fontFamily:"Roboto",lineHeight:".875rem",margin:"0",children:t!=null?t:n[e].text})]}):null}vx.displayName="TinyAlert";function vu({bg:e,borderColorActive:t=[j("colors-main-deepSkyBlue"),j("colors-neutral-white")],children:r,color:n=j("colors-neutral-white"),disabled:i=!1,fillLoader:a=j("colors-neutral-white"),isFullWidth:o=!1,leftIcon:l,m:s="0",isLoading:u=!1,onClick:c,rightIcon:d,rounded:f=!1,size:p="regular",touchDark:m=!1,type:y="button",tabIndex:v,id:h}){var O,F,W;let g=r!=null?r:null;!r&&!d&&!l&&(g="Button");const b=".75rem",x=f?"12px":j("radii-small"),k=(O=e==null?void 0:e.main)!=null?O:j("colors-main-deepSkyBlue"),P=m?"rgba(160, 160, 160, 0.2)":"rgba(255, 255, 255, 0.2)",T=!r&&(d!=null?d:l)?"onlyIcon":"";return _(it,{margin:s,sx:{".react-ripples":{borderRadius:x,display:`${o?"grid":"inline-flex!important"}`}},children:_(KS,{color:P,children:_(Rp,{id:h,fontWeight:"500",fontSize:p==="regular"?"medium":"small",bg:k,size:p==="regular"?"md":"sm",borderRadius:x,color:n,className:T,disabled:i,height:"auto",lineHeight:"initial",minHeight:p==="regular"?"2.7rem":"1.474rem",iconSpacing:j("space-xs"),isActive:!1,isLoading:u,leftIcon:l,onClick:J=>{!u&&!i&&(c==null||c(J))},type:y,tabIndex:v,paddingTop:p==="regular"?b:j(T?"space-xs":"space-xxs"),paddingBottom:p==="regular"?b:j(T?"space-xs":"space-xxs"),paddingLeft:j(p==="regular"?"space-s":"space-xs"),paddingRight:j(p==="regular"?"space-s":"space-xs"),position:"relative",isFullWidth:o,rightIcon:d,spinner:_(RL,{fill:a}),_active:{bg:(F=e==null?void 0:e.main)!=null?F:j("colors-main-azureRadiance")},_disabled:{opacity:"50%",cursor:"not-allowed"},_focus:{boxShadow:`inset 0 0 0 2px ${t[0]}, inset 0 0 0 4px ${t[1]}`},_hover:{bg:(W=e==null?void 0:e.hover)!=null?W:j("colors-main-azureRadiance")},sx:{"&[data-loading]":{boxShadow:"none",cursor:"wait"},"&.onlyIcon span":{m:0},span:{h:"1rem"}},children:g})})})}vu.displayName="Btn";function hx({children:e,disabled:t=!1,isFullWidth:r=!1,leftIcon:n,m:i="0",isLoading:a=!1,onClick:o,rightIcon:l,size:s="regular",type:u="button",tabIndex:c,id:d}){return _(vu,{id:d,disabled:t,isFullWidth:r,isLoading:a,leftIcon:n,m:i,onClick:o,rightIcon:l,size:s,type:u,tabIndex:c,children:e})}hx.displayName="BtnPrimary";function mx({children:e,disabled:t=!1,isFullWidth:r=!1,leftIcon:n,m:i="0",isLoading:a=!1,onClick:o,rightIcon:l,size:s="regular",type:u="button",tabIndex:c,id:d}){return _(vu,{id:d,bg:{main:j("colors-main-veryLightBlue"),hover:j("colors-main-linkWater")},fillLoader:j("colors-main-deepSkyBlue"),borderColorActive:[j("colors-main-deepSkyBlue"),j("colors-neutral-white")],color:j("colors-main-deepSkyBlue"),disabled:t,isFullWidth:r,isLoading:a,leftIcon:n,m:i,onClick:o,rightIcon:l,size:s,touchDark:!0,type:u,tabIndex:c,children:e})}mx.displayName="BtnSecondary";function gx({children:e,iconStatus:t="multimedia",rightIcon:r,withoutColor:n=!1,m:i="0",type:a="button",tabIndex:o,id:l,onClick:s}){var h;const u=j("colors-neutral-gray"),c=j("colors-main-deepSkyBlue"),d=j("colors-neutral-white"),f=n?j("colors-main-blueGrey"):c,p={answer:_(px,{color:f}),back:_(tx,{color:f}),delete:_(dx,{color:f}),download:_(ex,{color:f}),edit:_(cx,{color:f}),more:_(fx,{color:f}),multimedia:_(rx,{color:f}),password:_(ux,{color:f}),record:_(XS,{color:f}),noIcon:_(ja,{})},m=(h=p[t])!=null?h:p.multimedia,y=r?m:void 0,v=r?void 0:m;return _(Rp,{id:l,type:a,tabIndex:o,height:"24px",background:"transparent",fontFamily:"Roboto",fontStyle:"normal",fontWeight:"500",fontSize:"14px",lineHeight:"16px",textDecorationLine:"underline",borderRadius:"12px",paddingTop:j("space-xxs"),paddingBottom:j("space-xxs"),paddingLeft:j("space-xs"),paddingRight:j("space-xs"),color:u,rightIcon:y,leftIcon:v,m:i,onClick:s,_hover:{color:`${c}`},_focusVisible:{boxShadow:`inset 0 0 0 2px ${c}, inset 0 0 0 4px ${d}`},_focus:{boxShadow:"none"},_active:{bg:"transparent"},sx:{"&:hover":{"svg path":{fill:`${c}`},"@media (hover: none)":{color:`${u}`,"svg path":{fill:f}}}},children:e})}gx.displayName="BtnTertiary";function yx({children:e,m:t="0",onClick:r,id:n}){return _(it,{as:"button",id:n,backgroundColor:"transparent",borderStyle:"none",width:"fit-content",padding:".25em",fontFamily:"Roboto",fontStyle:"normal",fontWeight:"500",fontSize:".875rem",lineHeight:"1rem",textDecorationLine:"underline",color:j("colors-main-deepSkyBlue"),m:t,onClick:r,_hover:{color:j("colors-neutral-darkCharcoal"),cursor:"pointer"},children:e})}yx.displayName="BtnLink";const LL=4;function bx(){const{background:e,labels:t,logo:r,logoAlt:n,Profile:i}=w.useContext(hu);return ee(it,{as:"header",bgImg:e,bgPos:"center",bgSize:"cover",height:"8.75rem",borderBottom:j("borders-light"),pos:"relative",children:[ee(it,{p:"1rem",children:[(i==null?void 0:i.id)!==LL&&_(Po,{bg:j("colors-neutral-white"),m:"0 0 .625rem 0",children:ee(tu,{children:[_(nx,{m:"0 .25rem 0 0"}),i==null?void 0:i.name]})}),t!==void 0&&t.length>0&&_(aS,{direction:"row",spacing:".625rem",wrap:"wrap",children:t.map((a,o)=>_(Po,{bg:a.id==="NEW"?j("colors-secondary-pumpkin"):void 0,children:a.text},o))})]}),r!==void 0&&r.length>0&&_(nS,{pos:"absolute",bottom:"0",left:".9375rem",transform:"translateY(30%)",h:"3.5rem",border:j("borders-light"),bg:j("colors-neutral-white"),overflow:"hidden",borderRadius:j("radii-small"),w:"6.25rem",children:_(RI,{src:r,alt:n!=null?n:"logo",maxHeight:"3.5rem",maxWidth:"6.25rem"})})]})}bx.displayName="Header";function cv({date:e}){return e==null||e.length===0?null:_(_i,{fontSize:".75rem",color:j("colors-neutral-darkCharcoal"),m:"0",children:e})}cv.displayName="DateStatus";function Sx({type:e,progressValue:t=0}){switch(e){case"schedule":return _(ix,{});case"certificate":return _(QS,{});case"circularCheck":return _(JS,{});case"progress":return _(ov,{value:t});case"circularInformation":return _(uv,{});case"info":return _(uv,{});default:return null}}const BL=7;function xx({progress:e,status:t}){return ee(ja,{children:[ee(tu,{children:[_(Sx,{type:e.icon,progressValue:e.progress}),_(_i,{m:"0",ml:".625rem",fontSize:".875rem",lineHeight:"1.125rem",children:e==null?void 0:e.label})]}),(t==null?void 0:t.id)===BL&&(e==null?void 0:e.finalGrade)&&(e==null?void 0:e.finalGrade.length)>0&&_(Po,{size:"sm",bg:e.isApproved?j("colors-alert-jadeGreen"):j("colors-alert-red"),color:j("colors-neutral-white"),children:e==null?void 0:e.finalGrade})]})}function wx(){const{name:e,dateStatus:t,information:r,progress:n,status:i}=w.useContext(hu);return n==null?null:ee(it,{marginTop:"1.875rem",as:"section",p:"0 .9375rem",children:[(t==null?void 0:t.hasDates)&&ee(cR,{direction:"row",divider:t.init!==void 0&&t.init.length>0&&t.end!==void 0&&n.icon!==null&&t.end.length>0?_(it,{h:".5rem",w:"1px",bg:j("colors-neutral-silverSand"),alignSelf:"center"}):_(ja,{}),children:[_(cv,{date:t.init}),_(cv,{date:t.end})]}),_(QI,{as:"h2",fontSize:"1rem",mt:".3125rem",fontWeight:"700",lineHeight:"1.3",children:e}),_(tu,{mt:"1rem",justify:"space-between",children:_(xx,{progress:n,status:i})}),r!=null&&(r==null?void 0:r.length)>0&&_(iR,{spacing:".625rem",paddingInlineStart:"0",pt:".625rem",m:".625rem 0 0",lineHeight:".875rem",borderTop:j("borders-light"),children:r.map((a,o)=>{var l;return ee(aR,{display:"flex",children:[_(Sx,{type:a.icon}),_(it,{display:"inline-block",ml:".625rem",children:a.href!==void 0&&((l=a.href)==null?void 0:l.length)>0?_(eR,{isExternal:!0,href:a.href,color:j("colors-main-deepSkyBlue"),textDecor:"underline",fontWeight:"500",fontSize:".75rem",children:a.text}):_(_i,{m:"0",color:j("colors-neutral-gray"),fontSize:".75rem",children:a.text})})]},o)})})]})}wx.displayName="Section";const D={name:"Orientaci\xF3n en la prevenci\xF3n de contagio de COVID-19",background:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT76y4DAhqWAlCspmGYWcbxSDnLw3p1FzJQKA&usqp=CAU",logo:"https://procalidad.cl/wp-content/uploads/2021/05/logo-achs.png",logoAlt:"op",status:{id:6,name:"NEXT",detail:"",style:""},Profile:{id:4,name:"Alumno"},progress:{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule",progress:0,isApproved:!1,finalGrade:""},dateStatus:{hasDates:!0,init:"Inicia 17 ene 2022",end:"Finaliza 10 ene 2023"},information:[{icon:"schedule",text:"Certificado por ACHS",href:"http://google.com"},{icon:"certificate",text:"Certificado por ACHS",href:""},{icon:"circularCheck",text:"Certificado por ACHS",href:"http://google.com"},{icon:"circularInformation",text:"Certificado por ACHS",href:""}],action:{enabled:!0,text:"Tu curso a\xFAn no comienza",hasIcon:!1,href:"https://platform.eclass.io/",targetBlank:!1},labels:[{id:"OBLIGATORY",text:"Obligatorio"}]},Cx={noHabilitado:L(I({},D),{id:1,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:1,name:"noHabilitado"}),progress:L(I({},D.progress),{label:"Inscripci\xF3n no habilitada",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:null,action:L(I({},D.action),{href:"#",text:"Ver informaci\xF3n del curso"}),labels:[]}),inscripcionFutura:L(I({},D),{id:1,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:1,name:"noHabilitado"}),progress:L(I({},D.progress),{label:"Podr\xE1s inscribirte a partir del 31 de marzo de 2022",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:null,action:L(I({},D.action),{href:"#",text:"Ver informaci\xF3n del curso"}),labels:[{id:"NEW",text:"Nuevo"}]}),inscripcionFinalizo:L(I({},D),{id:1,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:1,name:"noHabilitado"}),progress:L(I({},D.progress),{label:"El per\xEDodo de inscripci\xF3n finaliz\xF3 el 31 de marzo de 2022",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:null,action:L(I({},D.action),{href:"#",text:"Ver informaci\xF3n del curso"}),labels:[{id:"NEW",text:"Nuevo"}]}),preInscripcion:L(I({},D),{logo:"https://cdn.eclass.com/img/productos/logos/logo-utec-square.jpg",background:"https://cdn.eclass.com/img/cursos/default1.png",id:2,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:2,name:"preInscripcion"}),progress:L(I({},D.progress),{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Solicitar inscripci\xF3n",targetBlank:!0}),labels:[]}),preInscripcion2:L(I({},D),{id:3,hasFinanzeFreezed:!1,logo:"",status:L(I({},D.status),{id:2,name:"preInscripcion"}),progress:L(I({},D.progress),{label:"Estamos procesando tu solicitud de inscripci\xF3n",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ver informaci\xF3n del curso",targetBlank:!0}),labels:[]}),inscripcion:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default2.png",id:4,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:3,name:"inscripcion"}),progress:L(I({},D.progress),{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Inscr\xEDbete",targetBlank:!0})}),inscripcion2:L(I({},D),{id:5,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:3,name:"inscripcion"}),progress:L(I({},D.progress),{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule"}),dateStatus:L(I({},D.dateStatus),{hasDates:!0}),information:[],action:L(I({},D.action),{text:"Inscr\xEDbete",targetBlank:!0}),labels:[{id:"OBLIGATORY",text:"Obligatorio"},{id:"NEW",text:"Nuevo"}]}),noDisponible:L(I({},D),{id:6,hasFinanzeFreezed:!1,logo:"",background:"https://cdn.eclass.com/img/cursos/default2.png",status:L(I({},D.status),{id:4,name:"no disponible"}),progress:L(I({},D.progress),{label:"Tu curso iniciar\xE1 el Lunes 16 de Enero de 2023",icon:"schedule"}),dateStatus:{init:"Inicia 17 ene 2022",end:"",hasDates:!0},information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ver informaci\xF3n del curso",targetBlank:!0}),labels:[]}),noDisponible2:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default3.png",logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",id:7,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:4,name:"no disponible"}),progress:L(I({},D.progress),{label:"Tu curso iniciar\xE1 el Lunes 16 de Enero de 2023",icon:"schedule"}),dateStatus:{init:"Inicia 17 ene 2022",end:"",hasDates:!0},information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{enabled:!1}),labels:[]}),noDisponible3:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default3.png",logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",id:57,hasFinanzeFreezed:!1,Profile:{id:1,name:"Administrador"},status:L(I({},D.status),{id:4,name:"no disponible"}),progress:L(I({},D.progress),{label:"Tu curso iniciar\xE1 el Lunes 16 de Enero de 2023",icon:"schedule"}),dateStatus:{init:"Inicia 17 ene 2022",end:"",hasDates:!0},information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{enabled:!1}),labels:[]}),activado:L(I({},D),{id:8,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:5,name:"disponible"}),progress:L(I({},D.progress),{label:"\xA1Ya puedes ingresar a tu curso y comenzar a estudiar!",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar:L(I({},D),{id:9,hasFinanzeFreezed:!1,logo:"",status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso inici\xF3 hace 3 d\xEDas, \xA1Comienza a estudiar!",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar2:L(I({},D),{id:10,hasFinanzeFreezed:!1,background:"https://cdn.eclass.com/img/cursos/default2.png",status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso finaliza en 7 d\xEDas",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar3:L(I({},D),{id:11,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso finaliza ma\xF1ana a las 23:30 hrs. GMT -04:00",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar4:L(I({},D),{logo:"https://cdn.eclass.com/img/productos/logos/logo-uandes-square.jpg",id:12,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso finaliza hoy a las 23:30 hrs. GMT -04:00",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),continuar:L(I({},D),{id:13,hasFinanzeFreezed:!0,status:L(I({},D.status),{id:7,name:"continuar"}),logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",progress:L(I({},D.progress),{label:"Has completado un 25% de tu curso",icon:"progress",progress:25}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Continuar estudiando"}),labels:[]}),continuar2:L(I({},D),{id:14,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:7,name:"continuar"}),logo:"https://cdn.eclass.com/files/branding/programa/2119/imagePdf-1628188569.jpg",progress:L(I({},D.progress),{label:"Has completado un 100% de tu curso",icon:"progress",progress:100}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),pendiente:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default3.png",id:15,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:8,name:"pendiente"}),progress:L(I({},D.progress),{label:"\xA1Curso finalizado! Estamos calculando tu promedio final",icon:"circularInformation"}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),terminado:L(I({},D),{id:16,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:7,name:"QUALIFIED"}),progress:L(I({},D.progress),{label:"Curso aprobado con nota",icon:"circularCheck",isApproved:!0,finalGrade:"6,5"}),dateStatus:{init:"",end:"Finaliz\xF3 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),terminado2:L(I({},D),{logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",id:17,hasFinanzeFreezed:!1,Profile:{id:1,name:"Administrador"},status:L(I({},D.status),{id:7,name:"QUALIFIED"}),progress:L(I({},D.progress),{label:"Curso reprobado con nota",icon:"circularCheck",isApproved:!1,finalGrade:"3,5"}),dateStatus:{init:"",end:"Finaliz\xF3 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),terminado3:L(I({},D),{id:18,hasFinanzeFreezed:!1,logo:"",status:L(I({},D.status),{id:9,name:"terminado"}),progress:L(I({},D.progress),{label:"Curso finalizado",icon:"circularCheck"}),dateStatus:{init:"",end:"Finaliz\xF3 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]})},zL=Object.keys(Cx).map(e=>Cx[e]),Ex=4,fv=(e,t=Ex)=>e||t!==Ex;function DL(e=4){const t=e*Px+_x*(e-1);return{px:`${t*16}px`,rem:`${t}rem`,remValue:t}}function $L({isOpen:e,onOpen:t,onClose:r,showOverlay:n,modalPaymentText:i}){const a={backgroundColor:"transparent"};function o(){return _(cL,{bg:"#2F2F2F",opacity:"0.32 !important",backdropBlur:"2px"})}const[l,s]=w.useState(_(o,{}));return w.useEffect(()=>{n&&s(_(o,{}))},[n]),ee(av,{isCentered:!0,isOpen:e,onClose:r,size:"xl",blockScrollOnMount:!1,closeOnOverlayClick:!1,children:[l,ee(sL,{marginTop:"0",marginBottom:["25.75rem","15.75rem"],children:[ee(fL,{justifyContent:"center",display:"flex",flexDirection:"column",alignItems:"center",p:"2rem 2rem 0 2rem",children:[_(ZS,{w:"52",h:"45",viewBox:"0 0 45 52"}),i.title]}),_(vL,{size:"md",color:j("colors-main-blueGrey"),_hover:a,_focus:a,_active:a}),_(dL,{p:"1rem 2rem 2rem 2rem",children:_(_i,{align:"center",children:i.body})}),_(pL,{justifyContent:"center",borderTop:"1px solid",borderTopColor:j("colors-neutral-platinum"),p:"1rem",children:_(Rp,{onClick:r,color:j("colors-main-deepSkyBlue"),backgroundColor:"transparent",fontWeight:"500",height:"auto",lineHeight:"1.172rem",_hover:a,_focus:a,_active:a,children:i.buttonName})})]})]})}av.displayName="Modal";function kx({modalPaymentText:e}){const{action:t,Profile:r,hasFinanzeFreezed:n}=w.useContext(hu),{isOpen:i,onOpen:a,onClose:o}=F2(),[l,s]=w.useState(!1),u={backgroundColor:"transparent"},c=()=>{s(!0),a()};return t==null?null:ee(nS,{as:"footer",mt:"1rem",p:"1rem",borderTop:"1px solid",borderTopColor:j("colors-neutral-platinum"),children:[fv(t.enabled,r==null?void 0:r.id)?ee(ja,{children:[n?_(it,{color:j("colors-main-deepSkyBlue"),backgroundColor:"transparent",fontWeight:"500",height:"auto",mr:t.hasIcon?"1.5rem":"0",lineHeight:"1.172rem",p:"0",zIndex:"inherit !important",_hover:u,_focus:u,_active:u,onClick:()=>c(),fontSize:"1rem !important",children:t.text}):_(_i,{color:j("colors-main-deepSkyBlue"),fontWeight:"500",mr:t.hasIcon?"1.5rem":"0",lineHeight:"1.172rem",mt:"0",mb:"0",children:t.text}),t.hasIcon&&_(qS,{color:j("colors-main-deepSkyBlue")})]}):_(_i,{fontWeight:"500",lineHeight:"1.172rem",color:j("colors-neutral-spanishGrey"),m:"0",children:t.text}),_($L,{isOpen:i,onClose:o,showOverlay:l,onOpen:a,modalPaymentText:e})]})}kx.displayName="Footer";const hu=w.createContext({});function NL({enabled:e,children:t}){return e?_(sv,{children:t}):_(ja,{children:t})}function Tx({data:e,modalPaymentText:t}){var n,i,a,o,l,s,u,c;const r={boxShadow:`0 2px 7px 0 ${j("colors-neutral-silverSand")}`};return _(hu.Provider,{value:e,children:_(hR,{as:"article",border:j("borders-light"),borderRadius:j("radii-big"),cursor:"pointer",transition:"box-shadow .3s",_active:r,_hover:r,_focus:r,overflow:"hidden",children:_(NL,{enabled:fv((i=(n=e.action)==null?void 0:n.enabled)!=null?i:!1,(a=e.Profile)==null?void 0:a.id),children:ee(tu,{direction:"column",justify:"space-between",h:"100%",children:[ee(it,{children:[!e.hasFinanzeFreezed&&fv((l=(o=e.action)==null?void 0:o.enabled)!=null?l:!1,(s=e.Profile)==null?void 0:s.id)&&_(vR,{href:(u=e.action)==null?void 0:u.href,isExternal:(c=e.action)==null?void 0:c.targetBlank}),_(bx,{}),_(wx,{})]}),_(kx,{modalPaymentText:t})]})})})})}Tx.displayName="CourseBox";const _x=1.25,Px=17.8125;function Ax({courses:e,modalPaymentText:t,m:r="0 auto"}){return e===void 0?null:_(it,{display:"grid",gridColumnGap:`${_x}rem`,gridRowGap:"1.75rem",gridTemplateColumns:`repeat(auto-fill, minmax(${Px}rem, 1fr))`,m:r,w:"100%",children:e==null?void 0:e.map(n=>_(Tx,{data:n,modalPaymentText:t},n.id))})}Ax.displayName="CourseList",oe.Btn=vu,oe.BtnLink=yx,oe.BtnPrimary=hx,oe.BtnSecondary=mx,oe.BtnTertiary=gx,oe.CourseList=Ax,oe.CourseStatus=xx,oe.Label=Po,oe.Progress=ov,oe.Ripples=sv,oe.TinyAlert=vx,oe.dataFake=zL,oe.maxWidthCoursesList=DL,oe.theme=PL,oe.vars=j,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
411
+ `},N8=0,Ii=[];function V8(e){var t=w.useRef([]),r=w.useRef([0,0]),n=w.useRef(),i=w.useState(N8++)[0],a=w.useState(function(){return BS()})[0],o=w.useRef(e);w.useEffect(function(){o.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+i);var y=[e.lockRef.current].concat((e.shards||[]).map(jS)).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-"+i)}),function(){document.body.classList.remove("block-interactivity-"+i),y.forEach(function(v){return v.classList.remove("allow-interactivity-"+i)})}}},[e.inert,e.lockRef.current,e.shards]);var l=w.useCallback(function(y,v){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var h=cu(y),g=r.current,b="deltaX"in y?y.deltaX:g[0]-h[0],x="deltaY"in y?y.deltaY:g[1]-h[1],k,P=y.target,T=Math.abs(b)>Math.abs(x)?"h":"v",O=DS(T,P);if(!O)return!0;if(O?k=T:(k=T==="v"?"h":"v",O=DS(T,P)),!O)return!1;if(!n.current&&"changedTouches"in y&&(b||x)&&(n.current=k),!k)return!0;var F=n.current||k;return z8(F,v,y,F==="h"?b:x,!0)},[]),s=w.useCallback(function(y){var v=y;if(!(!Ii.length||Ii[Ii.length-1]!==a)){var h="deltaY"in v?VS(v):cu(v),g=t.current.filter(function(k){return k.name===v.type&&k.target===v.target&&D8(k.delta,h)})[0];if(g&&g.should){v.preventDefault();return}if(!g){var b=(o.current.shards||[]).map(jS).filter(Boolean).filter(function(k){return k.contains(v.target)}),x=b.length>0?l(v,b[0]):!o.current.noIsolation;x&&v.preventDefault()}}},[]),u=w.useCallback(function(y,v,h,g){var b={name:y,delta:v,target:h,should:g};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(x){return x!==b})},1)},[]),c=w.useCallback(function(y){r.current=cu(y),n.current=void 0},[]),d=w.useCallback(function(y){u(y.type,VS(y),y.target,l(y,e.lockRef.current))},[]),f=w.useCallback(function(y){u(y.type,cu(y),y.target,l(y,e.lockRef.current))},[]);w.useEffect(function(){return Ii.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Mi),document.addEventListener("touchmove",s,Mi),document.addEventListener("touchstart",c,Mi),function(){Ii=Ii.filter(function(y){return y!==a}),document.removeEventListener("wheel",s,Mi),document.removeEventListener("touchmove",s,Mi),document.removeEventListener("touchstart",c,Mi)}},[]);var p=e.removeScrollBar,m=e.inert;return w.createElement(w.Fragment,null,m?w.createElement(a,{styles:$8(i)}):null,p?w.createElement(M8,{gapMode:"margin"}):null)}var j8=TR(LS,V8),HS=w.forwardRef(function(e,t){return w.createElement(su,Oi({},e,{ref:t,sideCar:j8}))});HS.classNames=su.classNames;var H8=HS,W8=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ri=new WeakMap,fu=new WeakMap,du={},nv=0,U8=function(e,t,r){t===void 0&&(t=W8(e)),r===void 0&&(r="data-aria-hidden");var n=Array.isArray(e)?e:[e];du[r]||(du[r]=new WeakMap);var i=du[r],a=[],o=new Set,l=function(u){!u||o.has(u)||(o.add(u),l(u.parentNode))};n.forEach(l);var s=function(u){!u||n.indexOf(u)>=0||Array.prototype.forEach.call(u.children,function(c){if(o.has(c))s(c);else{var d=c.getAttribute("aria-hidden"),f=d!==null&&d!=="false",p=(Ri.get(c)||0)+1,m=(i.get(c)||0)+1;Ri.set(c,p),i.set(c,m),a.push(c),p===1&&f&&fu.set(c,!0),m===1&&c.setAttribute(r,"true"),f||c.setAttribute("aria-hidden","true")}})};return s(t),o.clear(),nv++,function(){a.forEach(function(u){var c=Ri.get(u)-1,d=i.get(u)-1;Ri.set(u,c),i.set(u,d),c||(fu.has(u)||u.removeAttribute("aria-hidden"),fu.delete(u)),d||u.removeAttribute(r)}),nv--,nv||(Ri=new WeakMap,Ri=new WeakMap,fu=new WeakMap,du={})}};function Pn(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Fe(){return Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fe.apply(this,arguments)}var G8=["preset"],Y8={slideInBottom:Fe({},Zb,{custom:{offsetY:16,reverse:!0}}),slideInRight:Fe({},Zb,{custom:{offsetX:16,reverse:!0}}),scale:Fe({},TI,{custom:{initialScale:.95,reverse:!0}}),none:{}},K8=te(Ap.section),X8=w.forwardRef(function(e,t){var r=e.preset,n=Pn(e,G8),i=Y8[r];return w.createElement(K8,Fe({ref:t},i,n))}),Z8=function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(n){this.modals.push(n)},t.remove=function(n){this.modals=this.modals.filter(function(i){return i!==n})},t.isTopModal=function(n){var i=this.modals[this.modals.length-1];return i===n},e}(),iv=new Z8;function q8(e,t){M.useEffect(function(){return t&&iv.add(e),function(){iv.remove(e)}},[t,e])}function Q8(e){var t=e.isOpen,r=e.onClose,n=e.id,i=e.closeOnOverlayClick,a=i===void 0?!0:i,o=e.closeOnEsc,l=o===void 0?!0:o,s=e.useInert,u=s===void 0?!0:s,c=e.onOverlayClick,d=e.onEsc,f=M.useRef(null),p=M.useRef(null),m=A2(n,"chakra-modal","chakra-modal--header","chakra-modal--body"),y=m[0],v=m[1],h=m[2];J8(f,t&&u),q8(f,t);var g=M.useRef(null),b=M.useCallback(function(q){g.current=q.target},[]),x=M.useCallback(function(q){q.key==="Escape"&&(q.stopPropagation(),l&&(r==null||r()),d==null||d())},[l,r,d]),k=M.useState(!1),P=k[0],T=k[1],O=M.useState(!1),F=O[0],W=O[1],J=M.useCallback(function(q,ne){return q===void 0&&(q={}),ne===void 0&&(ne=null),Fe({role:"dialog"},q,{ref:oh(ne,f),id:y,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?v:void 0,"aria-describedby":F?h:void 0,onClick:$n(q.onClick,function(Le){return Le.stopPropagation()})})},[h,F,y,v,P]),X=M.useCallback(function(q){q.stopPropagation(),g.current===q.target&&(!iv.isTopModal(f)||(a&&(r==null||r()),c==null||c()))},[r,a,c]),Z=M.useCallback(function(q,ne){return q===void 0&&(q={}),ne===void 0&&(ne=null),Fe({},q,{ref:oh(ne,p),onClick:$n(q.onClick,X),onKeyDown:$n(q.onKeyDown,x),onMouseDown:$n(q.onMouseDown,b)})},[x,b,X]);return{isOpen:t,onClose:r,headerId:v,bodyId:h,setBodyMounted:W,setHeaderMounted:T,dialogRef:f,overlayRef:p,getDialogProps:J,getDialogContainerProps:Z}}function J8(e,t){var r=e.current;M.useEffect(function(){if(!(!e.current||!t))return U8(e.current)},[t,e,r])}var eL=["className","children","containerProps"],tL=["className","transition"],rL=["className"],nL=["className"],iL=["className"],aL=["onClick","className"],WS=en({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),oL=WS[0],An=WS[1],av=function(t){var r=t.portalProps,n=t.children,i=t.autoFocus,a=t.trapFocus,o=t.initialFocusRef,l=t.finalFocusRef,s=t.returnFocusOnClose,u=t.blockScrollOnMount,c=t.allowPinchZoom,d=t.preserveScrollBarGap,f=t.motionPreset,p=t.lockFocusAcrossFrames,m=t.onCloseComplete,y=Bg("Modal",t),v=Q8(t),h=Fe({},v,{autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:l,returnFocusOnClose:s,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:p});return w.createElement(oL,{value:h},w.createElement(E5,{value:y},w.createElement(Kb,{onExitComplete:m},h.isOpen&&w.createElement(os,r,n))))};av.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};var lL=te(Ap.div),sL=Pe(function(e,t){var r=e.className,n=e.children,i=e.containerProps,a=Pn(e,eL),o=An(),l=o.getDialogProps,s=o.getDialogContainerProps,u=l(a,t),c=s(i),d=De("chakra-modal__content",r),f=hi(),p=Fe({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},f.dialog),m=Fe({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},f.dialogContainer),y=An(),v=y.motionPreset;return w.createElement(uL,null,w.createElement(te.div,Fe({},c,{className:"chakra-modal__content-container",tabIndex:-1,__css:m}),w.createElement(X8,Fe({preset:v,className:d},u,{__css:p}),n)))});function uL(e){var t=An(),r=t.autoFocus,n=t.trapFocus,i=t.dialogRef,a=t.initialFocusRef,o=t.blockScrollOnMount,l=t.allowPinchZoom,s=t.finalFocusRef,u=t.returnFocusOnClose,c=t.preserveScrollBarGap,d=t.lockFocusAcrossFrames,f=Sp(),p=f[0],m=f[1];return w.useEffect(function(){!p&&m&&setTimeout(m)},[p,m]),w.createElement(y8,{autoFocus:r,isDisabled:!n,initialFocusRef:a,finalFocusRef:s,restoreFocus:u,contentRef:i,lockFocusAcrossFrames:d},w.createElement(H8,{removeScrollBar:!c,allowPinchZoom:l,enabled:o,forwardProps:!0},e.children))}var cL=Pe(function(e,t){var r=e.className;e.transition;var n=Pn(e,tL),i=De("chakra-modal__overlay",r),a=hi(),o=Fe({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},a.overlay),l=An(),s=l.motionPreset,u=s==="none"?{}:EI;return w.createElement(lL,Fe({},u,{__css:o,ref:t,className:i},n))}),fL=Pe(function(e,t){var r=e.className,n=Pn(e,rL),i=An(),a=i.headerId,o=i.setHeaderMounted;w.useEffect(function(){return o(!0),function(){return o(!1)}},[o]);var l=De("chakra-modal__header",r),s=hi(),u=Fe({flex:0},s.header);return w.createElement(te.header,Fe({ref:t,className:l,id:a},n,{__css:u}))}),dL=Pe(function(e,t){var r=e.className,n=Pn(e,nL),i=An(),a=i.bodyId,o=i.setBodyMounted;w.useEffect(function(){return o(!0),function(){return o(!1)}},[o]);var l=De("chakra-modal__body",r),s=hi();return w.createElement(te.div,Fe({ref:t,className:l,id:a},n,{__css:s.body}))}),pL=Pe(function(e,t){var r=e.className,n=Pn(e,iL),i=De("chakra-modal__footer",r),a=hi(),o=Fe({display:"flex",alignItems:"center",justifyContent:"flex-end"},a.footer);return w.createElement(te.footer,Fe({ref:t},n,{__css:o,className:i}))}),vL=Pe(function(e,t){var r=e.onClick,n=e.className,i=Pn(e,aL),a=An(),o=a.onClose,l=De("chakra-modal__close-btn",n),s=hi();return w.createElement(XI,Fe({ref:t,__css:s.closeButton,className:l,onClick:$n(r,function(u){u.stopPropagation(),o()})},i))});en(),te(AI);function US(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Li(){return Li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Li.apply(this,arguments)}var hL=zn({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),mL=zn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});zn({"0%":{left:"-40%"},"100%":{left:"100%"}}),zn({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function gL(e){var t=e.value,r=t===void 0?0:t,n=e.min,i=e.max,a=e.valueText,o=e.getValueText,l=e.isIndeterminate,s=C2(r,n,i),u=function(){if(r!=null)return Sr(o)?o(r,s):a};return{bind:{"data-indeterminate":l?"":void 0,"aria-valuemax":i,"aria-valuemin":n,"aria-valuenow":l?void 0:r,"aria-valuetext":u(),role:"progressbar"},percent:s,value:r}}var yL=["size","isIndeterminate"],bL=["size","max","min","valueText","getValueText","value","capIsRound","children","thickness","color","trackColor","isIndeterminate"],GS=function(t){return w.createElement(te.circle,Li({cx:50,cy:50,r:42,fill:"transparent"},t))},SL=function(t){var r=t.size,n=t.isIndeterminate,i=US(t,yL);return w.createElement(te.svg,Li({viewBox:"0 0 100 100",__css:{width:r,height:r,animation:n?mL+" 2s linear infinite":void 0}},i))},xL=function(t){var r,n=t.size,i=n===void 0?"48px":n,a=t.max,o=a===void 0?100:a,l=t.min,s=l===void 0?0:l,u=t.valueText,c=t.getValueText,d=t.value,f=t.capIsRound,p=t.children,m=t.thickness,y=m===void 0?"10px":m,v=t.color,h=v===void 0?"#0078d4":v,g=t.trackColor,b=g===void 0?"#edebe9":g,x=t.isIndeterminate,k=US(t,bL),P=gL({min:s,max:o,value:d,valueText:u,getValueText:c,isIndeterminate:x}),T=x?void 0:((r=P.percent)!=null?r:0)*2.64,O=Xw(T)?void 0:T+" "+(264-T),F=x?{css:{animation:hL+" 1.5s linear infinite"}}:{strokeDashoffset:66,strokeDasharray:O,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},W={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:i};return w.createElement(te.div,Li({className:"chakra-progress"},P.bind,k,{__css:W}),w.createElement(SL,{size:i,isIndeterminate:x},w.createElement(GS,{stroke:b,strokeWidth:y,className:"chakra-progress__track"}),w.createElement(GS,Li({stroke:h,strokeWidth:y,className:"chakra-progress__indicator",strokeLinecap:f?"round":void 0,opacity:P.value===0&&!x?0:void 0},F))),p)};te("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});var wL=L5;wL.defaultProps={theme:py};function CL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=[].concat(t),i=t[t.length-1];return A6(i)&&n.length>1?n=n.slice(0,n.length-1):i=py,y2.apply(void 0,n.map(function(a){return function(o){return Sr(a)?a(o):EL(o,a)}}))(i)}function EL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ct.apply(void 0,[{}].concat(t,[YS]))}function YS(e,t,r,n){if((Sr(e)||Sr(t))&&Object.prototype.hasOwnProperty.call(n,r))return function(){var i=Sr(e)?e.apply(void 0,arguments):e,a=Sr(t)?t.apply(void 0,arguments):t;return Ct({},i,a,YS)}}const pu={deepSkyBlue:"#0189FF",azureRadiance:"#017BE5",blueGrey:"#60798E",veryLightBlue:"#E0EEFA",linkWater:"#C7DEF2",ziggurat:"#B0CFE0"},Fn={main:pu,secondary:{pumpkin:"#FF7A14"},alert:{deepSkyBlue:pu.deepSkyBlue,veryLightBlue:pu.veryLightBlue,jadeGreen:"#28A745",ice:"#E9F6EC",red:"#CC0000",veryLightPinkThree:"#F9DFDF",orangeyYelow:"#F5A623",pale:"#FDEED6"},icon:{cetaceanBlue:"#08044F",deepSkyBlue:pu.deepSkyBlue,lightSeaGreen:"#1EBDAF",orangeRed:"#FF554D",ripeMango:"#FFBC27"},neutral:{darkCharcoal:"#2F2F2F",davysGrey:"#5C5C5C",gray:"#808080",spanishGrey:"#999999",silverSand:"#C6C6C6",platinum:"#E8E8E8",cultured:"#F4F4F4",cultured2:"#F8F8F8",white:"#FFFFFF"}},kL={global:e=>({".react-ripples":{h:"100%",display:"grid!important"},".chakra-button":{borderStyle:"none"},".chakra-modal__content-container":{padding:"1.87rem",zIndex:"1400",justifyContent:"center",alignItems:"center",overflow:"auto"},".chakra-modal__content":{borderRadius:"0.5rem",background:"white",color:"inherit",zIndex:"1400",maxWidth:"36.813rem",boxShadow:"0px 4px 16px rgba(92, 92, 92, 0.2)"},".chakra-modal__header":{paddingInlineStart:"1.5rem",paddingInlineEnd:"1.5rem",fontSize:"1.25rem",fontWeight:"700",textAlign:"center",".chakra-icon":{width:"13rem"}},".chakra-modal__close-btn":{width:"2rem",height:"2rem",borderRadius:"0.5rem",fontSize:"0.75rem",position:"absolute",top:"0.5rem",right:"0.75rem",color:"#60798E",backgroundColor:"transparent",borderStyle:"none"}})},_o="solid .063rem",TL={borders:{normal:`${_o} ${Fn.neutral.darkCharcoal}`,light:`${_o} ${Fn.neutral.platinum}`,active:`${_o} ${Fn.main.deepSkyBlue}`,success:`${_o} ${Fn.alert.jadeGreen}`,error:`${_o} ${Fn.alert.red}`,white:`solid .125rem ${Fn.neutral.white}`},radii:{small:".25rem",big:".5rem",rounded:"50%"},shadows:{sm:"0 .125rem .5rem 0 rgba(0,0,0,.20)",md:"0 .25rem 1rem 0 rgba(0,0,0,.20)",lg:"0 .5rem 2rem 0 rgba(0,0,0,.20)"},space:{xxs:".25rem",xs:".5rem",s:"1rem",m:"1.5rem",l:"2rem",xl:"3rem",xxl:"5rem"}};var u9="",c9="",f9="",d9="",p9="";const _L={fonts:{body:"Roboto",outstanding:"Lora"}},PL=CL(L(I(I({colors:Fn},TL),_L),{styles:kL})),j=e=>`var(--chakra-${e})`;function Po({children:e,bg:t=j("colors-icon-ripeMango"),color:r=j("colors-neutral-darkCharcoal"),size:n="md",m:i="0"}){const a={md:{borderRadius:"0.25em",fontWeight:"400",p:"0.25em 0.84em"},sm:{borderRadius:"0.42em",fontWeight:"700",p:"0.17em 0.67em"}};return _(it,{bg:t,borderRadius:a[n].borderRadius,color:r,display:"inline-block",fontSize:"0.75rem",fontWeight:a[n].fontWeight,lineHeight:".875rem",m:i,p:a[n].p,children:e})}Po.displayName="Label";function ov({value:e=0}){let t=e;return e>100?t=100:e<0&&(t=0),_(xL,{size:"1rem",value:t,thickness:"1rem",color:j("colors-main-deepSkyBlue"),trackColor:j("colors-neutral-platinum")})}ov.displayName="Progress";var AL=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Bi=globalThis&&globalThis.__assign||function(){return Bi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Bi.apply(this,arguments)},FL=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},OL={position:"relative",display:"inline-flex",overflow:"hidden"},ML=function(e){e===void 0&&(e={});var t;return t=function(r){AL(n,r);function n(i){var a=r.call(this,i)||this;return a.timer=0,a.onClick=function(o){var l=a.props,s=l.during,u=l.onClick,c=l.color;o.stopPropagation();var d=o.pageX,f=o.pageY,p=o.currentTarget,m=p.getBoundingClientRect(),y=d-(m.left+window.scrollX),v=f-(m.top+window.scrollY),h=Math.max(m.width,m.height);a.setState(function(g){return{rippleStyle:Bi({},g.rippleStyle,{left:y,top:v,opacity:1,transform:"translate(-50%, -50%)",transition:"initial",backgroundColor:c})}},function(){a.timer=setTimeout(function(){a.setState(function(g){return{rippleStyle:Bi({},g.rippleStyle,{opacity:0,transform:"scale("+h/9+")",transition:"all "+s+"ms"})}})},50)}),u&&u(o)},a.state={rippleStyle:{position:"absolute",borderRadius:"50%",opacity:0,width:35,height:35,transform:"translate(-50%, -50%)",pointerEvents:"none"}},a}return n.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},n.prototype.render=function(){var i=this.props,a=i.children;i.during,i.color,i.onClick;var o=i.className,l=FL(i,["children","during","color","onClick","className"]),s=this.state.rippleStyle;return br.default.createElement("div",Bi({},l,{className:("react-ripples "+o).trim(),style:OL,onClick:this.onClick}),a,br.default.createElement("s",{style:s}))},n}(br.default.PureComponent),t.displayName="Ripples",t.propTypes={during:ru.number,color:ru.string,onClick:ru.func,className:ru.string},t.defaultProps=Bi({during:600,color:"rgba(0, 0, 0, .3)",className:"",onClick:function(){}},e),t},lv=globalThis&&globalThis.__assign||function(){return lv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lv.apply(this,arguments)},IL=function(e){return function(t){return br.default.createElement(e,lv({},t))}},KS=IL(ML());function sv({children:e,color:t="rgba(204,204,204,0.2)"}){return _(KS,{during:1e3,color:t,children:_(it,{children:e})})}sv.displayName="Ripples";function Me({w:e="1rem",h:t="1rem",color:r=j("colors-main-ziggurat"),m:n="0",viewBox:i="0 0 16 16",children:a,title:o}){return ee(hy,{w:e,h:t,viewBox:i,color:r,m:n,children:[ee("title",{children:["icon",o&&`-${o}`]}),a]})}function XS(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"academicRecord",children:[_("path",{d:"M14 0H2C1.73478 0 1.48043 0.105357 1.29289 0.292893C1.10536 0.48043 1 0.734784 1 1V7C1 7.26522 1.10536 7.51957 1.29289 7.70711C1.48043 7.89464 1.73478 8 2 8H14C14.2652 8 14.5196 7.89464 14.7071 7.70711C14.8946 7.51957 15 7.26522 15 7V1C15 0.734784 14.8946 0.48043 14.7071 0.292893C14.5196 0.105357 14.2652 0 14 0V0Z",fill:"currentColor"}),_("path",{d:"M15 10H1V12H15V10Z",fill:"currentColor"}),_("path",{d:"M15 14H1V16H15V14Z",fill:"currentColor"})]}))}XS.displayName="AcademicRecord";function ZS(e){return _(Me,L(I({},e),{children:ee("svg",{width:"53",height:"45",viewBox:"0 0 53 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("path",{d:"M22.142 44.1483C34.0945 44.1483 43.784 34.4588 43.784 22.5063C43.784 10.5537 34.0945 0.864258 22.142 0.864258C10.1895 0.864258 0.5 10.5537 0.5 22.5063C0.5 34.4588 10.1895 44.1483 22.142 44.1483Z",fill:"#FDEED6"}),_("path",{d:"M19 24.1013C19.8284 24.1013 20.5 23.4297 20.5 22.6013C20.5 21.7729 19.8284 21.1013 19 21.1013C18.1716 21.1013 17.5 21.7729 17.5 22.6013C17.5 23.4297 18.1716 24.1013 19 24.1013Z",fill:"#FFBC27"}),_("path",{d:"M24 24.1013C24.8284 24.1013 25.5 23.4297 25.5 22.6013C25.5 21.7729 24.8284 21.1013 24 21.1013C23.1716 21.1013 22.5 21.7729 22.5 22.6013C22.5 23.4297 23.1716 24.1013 24 24.1013Z",fill:"#FFBC27"}),_("path",{d:"M29 24.1013C29.8284 24.1013 30.5 23.4297 30.5 22.6013C30.5 21.7729 29.8284 21.1013 29 21.1013C28.1716 21.1013 27.5 21.7729 27.5 22.6013C27.5 23.4297 28.1716 24.1013 29 24.1013Z",fill:"#FFBC27"}),_("path",{d:"M44.178 13.8843C41.157 8.63532 35.491 5.10132 29 5.10132C19.335 5.10132 11.5 12.9363 11.5 22.6013C11.5 32.2663 19.335 40.1013 29 40.1013C35.108 40.1013 40.484 36.9723 43.615 32.2303",stroke:"#808080",strokeWidth:"2",strokeLinecap:"round"}),_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.282 13.9192C50.6627 13.9192 51.782 15.0385 51.782 16.4192V20.9862C51.782 22.3669 50.6627 23.4862 49.282 23.4862C47.9013 23.4862 46.782 22.3669 46.782 20.9862V16.4192C46.782 15.0385 47.9013 13.9192 49.282 13.9192ZM47.5143 25.6514C48.4906 24.6751 50.0735 24.6751 51.0498 25.6515L51.0958 25.6975C52.0721 26.6738 52.072 28.2567 51.0957 29.233C50.1194 30.2093 48.5365 30.2093 47.5602 29.2329L47.5142 29.1869C46.5379 28.2106 46.5379 26.6277 47.5143 25.6514Z",fill:"#FFBC27"})]})}))}ZS.displayName="ArrowRight";function qS(e){return ee(Me,L(I({},e),{children:[ee("g",{clipPath:"url(#clip0)",children:[_("mask",{id:"mask0",style:{maskType:"alpha"},width:"16",height:"16",x:"0",y:"0",maskUnits:"userSpaceOnUse",children:_("path",{fill:"#fff",d:"M16 16H32V32H16z",transform:"rotate(180 16 16)"})}),_("g",{mask:"url(#mask0)",children:_("path",{fill:"currentColor",d:"M6.074 14L12 8 6.074 2 4 4.1 7.852 8 4 11.9 6.074 14z"})})]}),_("defs",{children:_("clipPath",{id:"clip0",children:_("path",{fill:"#fff",d:"M0 0H16V16H0z"})})})]}))}qS.displayName="ArrowRight";function QS(e){return ee(Me,L(I({},e),{children:[_("path",{fill:"currentColor",d:"M7 4H9V6H7z"}),_("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 8h2a1 1 0 011 1v6a1 1 0 01-1 1H9v-4H7v4H1a1 1 0 01-1-1V9a1 1 0 011-1h2V4.618l-.553.277a1 1 0 01-.894-1.79l6-3a1 1 0 01.894 0l6 3a1 1 0 11-.894 1.79L13 4.618V8zM3 13h2v-3H3v3zm2-5V4a.98.98 0 00-.07-.347L8 2.118l3.07 1.535A.98.98 0 0011 4v4H5zm6 5h2v-3h-2v3z",clipRule:"evenodd"})]}))}QS.displayName="Certificate";function JS(e){return _(Me,L(I({},e),{children:_("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 8c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8-8-3.6-8-8zm3.6 0L7 11.4 12.4 6 11 4.6l-4 4-2-2L3.6 8z",clipRule:"evenodd"})}))}JS.displayName="CircularCheck";function uv(e){return _(Me,L(I({},e),{children:_("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM7 12V7h2v5H7zm0-7c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1z",clipRule:"evenodd"})}))}uv.displayName="CircularInformation";function ex(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",children:[_("path",{d:"M7.99998 12C8.29998 12 8.49998 11.9 8.69998 11.7L14.4 6L13 4.6L8.99998 8.6V0H6.99998V8.6L2.99998 4.6L1.59998 6L7.29998 11.7C7.49998 11.9 7.69998 12 7.99998 12Z",fill:"currentColor"}),_("path",{d:"M15 14H1V16H15V14Z",fill:"currentColor"})]}))}ex.displayName="Download";function tx(e){return _(Me,L(I({},e),{w:"8px",h:"16px",viewBox:"0 0 8 16",title:"goBack",children:_("path",{d:"M5.92593 2L0 8L5.92593 14L8 11.9L4.14815 8L8 4.1L5.92593 2Z",fill:"currentColor"})}))}tx.displayName="GoBack";function rx(e){return ee(Me,L(I({},e),{w:"12px",viewBox:"0 0 14 14",title:"multimedia",children:[_("path",{d:"M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",fill:"currentColor"}),_("path",{d:"M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",fill:"currentColor"}),_("path",{d:"M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",fill:"currentColor"}),_("path",{d:"M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",fill:"currentColor"})]}))}rx.displayName="Multimedia";function RL({fill:e="#fff"}){return _("div",{className:"loaderAsync","data-testid":"loaderAsync",children:ee("svg",{id:"prefix__eXySq0EBKm11",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 38 20",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",width:38,height:20,children:[_("style",{dangerouslySetInnerHTML:{__html:"@keyframes eXySq0EBKm12_f_o{0%,33.333333%,to{fill-opacity:.4}66.666667%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}}@keyframes eXySq0EBKm13_f_o{0%,66.666667%,to{fill-opacity:.4}33.333333%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}}@keyframes eXySq0EBKm14_f_o{0%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}33.333333%,66.666667%{fill-opacity:.4}to{fill-opacity:1}}"}}),_("circle",{r:2.502,transform:"translate(29.526 10)",fill:e,fillOpacity:.4,style:{animation:"eXySq0EBKm12_f_o 600ms linear infinite normal forwards"}}),_("circle",{r:2.502,transform:"translate(19 10)",fill:e,fillOpacity:.4,style:{animation:"eXySq0EBKm13_f_o 600ms linear infinite normal forwards"}}),_("circle",{r:2.053,transform:"matrix(1.21764 0 0 1.21764 8.562 10.002)",fill:e,style:{animation:"eXySq0EBKm14_f_o 600ms linear infinite normal forwards"}})]})})}function nx(e){return _(Me,L(I({},e),{viewBox:"0 0 12 12",w:"12px",title:"profile",children:_("path",{fill:"currentColor",d:"M5 6a3 3 0 100-6 3 3 0 000 6zM5 7c-3.375 0-5 2.106-5 3.333V11a1 1 0 001 1h8a1 1 0 001-1v-.667C10 9.106 8.375 7 5 7z"})}))}nx.displayName="Profile";function ix(e){return ee(Me,L(I({},e),{children:[_("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 2h2a1 1 0 011 1v12a1 1 0 01-1 1H1a1 1 0 01-1-1V3a1 1 0 011-1h2V0h2v2h2V0h2v2h2V0h2v2zM2 14h12V5H2v9z",clipRule:"evenodd"}),_("path",{fill:"currentColor",d:"M4 7H6V9H4z"}),_("path",{fill:"currentColor",d:"M7 7H9V9H7z"}),_("path",{fill:"currentColor",d:"M4 10H6V12H4z"}),_("path",{fill:"currentColor",d:"M7 10H9V12H7z"}),_("path",{fill:"currentColor",d:"M10 7H12V9H10z"}),_("path",{fill:"currentColor",d:"M10 10H12V12H10z"})]}))}ix.displayName="Schedule";function ax(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#0189FF"}),_("path",{d:"M7 6H5V10H7V6Z",fill:"white"}),_("path",{d:"M6 4C6.55228 4 7 3.55228 7 3C7 2.44772 6.55228 2 6 2C5.44772 2 5 2.44772 5 3C5 3.55228 5.44772 4 6 4Z",fill:"white"})]}))}ax.displayName="TinyAlertInfo";function ox(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[ee("g",{clipPath:"url(#clip0_2165_6683)",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#CC0000"}),_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.87867 2.46447L2.46446 3.87868L4.58578 6L2.46446 8.12132L3.87867 9.53553L5.99999 7.41421L8.12131 9.53553L9.53553 8.12132L7.41421 6L9.53553 3.87868L8.12131 2.46447L5.99999 4.58579L3.87867 2.46447Z",fill:"white"})]}),_("defs",{children:_("clipPath",{id:"clip0_2165_6683",children:_("rect",{width:"12px",height:"12px",fill:"white"})})})]}))}ox.displayName="TinyAlertError";function lx(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#F5A623"}),_("path",{d:"M5 6L7 6L7 2L5 2L5 6Z",fill:"white"}),_("path",{d:"M6 8C5.44771 8 5 8.44772 5 9C5 9.55228 5.44772 10 6 10C6.55228 10 7 9.55228 7 9C7 8.44772 6.55228 8 6 8Z",fill:"white"})]}))}lx.displayName="TinyAlertWarning";function sx(e){return ee(Me,L(I({},e),{w:"12px",h:"12px",viewBox:"0 0 12 12",children:[ee("g",{clipPath:"url(#clip0_2191_1138)",children:[_("circle",{cx:"6",cy:"6",r:"6",fill:"#28A745"}),_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.41421 5.53549L2 6.94971L3.41421 8.36392L4.82843 9.77813L9.77817 4.82839L8.36396 3.41417L4.82843 6.94971L3.41421 5.53549Z",fill:"white"})]}),_("defs",{children:_("clipPath",{id:"clip0_2191_1138",children:_("rect",{width:"12",height:"12",fill:"white"})})})]}))}sx.displayName="TinyAlertSuccess";function ux(e){return _(Me,L(I({},e),{w:"14px",h:"16px",viewBox:"0 0 14 16",title:"password",children:_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C4.95714 0 3.28571 1.67143 3.28571 3.71429V4.64286H1.42857C0.871429 4.64286 0.5 5.01429 0.5 5.57143V13.9286C0.5 14.4857 0.871429 14.8571 1.42857 14.8571H12.5714C13.1286 14.8571 13.5 14.4857 13.5 13.9286V5.57143C13.5 5.01429 13.1286 4.64286 12.5714 4.64286H10.7143V3.71429C10.7143 1.67143 9.04286 0 7 0ZM7.92857 10.8643V12.0714H6.07143V10.8643C5.51429 10.5857 5.14286 9.93571 5.14286 9.28571C5.14286 8.26429 5.97857 7.42857 7 7.42857C8.02143 7.42857 8.85714 8.26429 8.85714 9.28571C8.85714 9.93571 8.48571 10.5857 7.92857 10.8643ZM5.14286 3.71429V4.64286H8.85714V3.71429C8.85714 2.69286 8.02143 1.85714 7 1.85714C5.97857 1.85714 5.14286 2.69286 5.14286 3.71429Z",fill:"currentColor"})}))}ux.displayName="Password";function cx(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"pen",children:[_("path",{d:"M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z",fill:"currentColor"}),_("path",{d:"M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z",fill:"currentColor"})]}))}cx.displayName="Pen";function fx(e){return _(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"plusSign",children:_("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 12.4 12.4 16 8 16C3.6 16 0 12.4 0 8ZM9 9H12V7H9V4H7V7H4V9H7V12H9V9Z",fill:"currentColor"})}))}fx.displayName="PlusSign";function dx(e){return ee(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"trashCan",children:[_("path",{d:"M2 6V14C2 15.1 2.9 16 4 16H12C13.1 16 14 15.1 14 14V6H2Z",fill:"currentColor"}),_("path",{d:"M12 3V1C12 0.4 11.6 0 11 0H5C4.4 0 4 0.4 4 1V3H0V5H16V3H12ZM10 3H6V2H10V3Z",fill:"currentColor"})]}))}dx.displayName="TrashCan";function px(e){return _(Me,L(I({},e),{w:"16px",h:"16px",viewBox:"0 0 16 16",title:"textBubble",children:_("path",{d:"M1 0H15C15.552 0 16 0.448 16 1V11C16 11.552 15.552 12 15 12H10L4 16V12H1C0.448 12 0 11.552 0 11V1C0 0.448 0.448 0 1 0Z",fill:"currentColor"})}))}px.displayName="TextBubble";function vx({status:e,text:t,margin:r="0"}){const n={success:{icon:_(sx,{}),text:"Success",bg:j("colors-alert-ice"),color:j("colors-neutral-darkCharcoal")},error:{icon:_(ox,{}),text:"Error",bg:j("colors-alert-veryLightPinkThree"),color:j("colors-neutral-darkCharcoal")},info:{icon:_(ax,{}),text:"Info",bg:j("colors-alert-veryLightBlue"),color:j("colors-neutral-darkCharcoal")},warning:{icon:_(lx,{}),text:"Warning",bg:j("colors-alert-pale"),color:j("colors-neutral-darkCharcoal")},answered:{icon:void 0,text:"Answered",bg:j("colors-main-blueGrey"),color:j("colors-neutral-white")},omitted:{icon:void 0,text:"Omitted",bg:j("colors-main-ziggurat"),color:j("colors-neutral-darkCharcoal")},pending:{icon:void 0,text:"Pending",bg:j("colors-neutral-cultured"),color:j("colors-neutral-darkCharcoal")},new:{icon:void 0,text:"New answer",bg:"#FF7A14",color:j("colors-neutral-white")}};return n[e]?ee(it,{margin:r,"data-testid":"TinyAlert-Box",backgroundColor:n[e].bg,display:"flex",flexDirection:"row",alignItems:"center",padding:".125em .25em",gap:".25rem",width:"fit-content",borderRadius:".25rem",className:"TinyAlert-Box",children:[n[e].icon&&_(it,{lineHeight:0,sx:{">svg":{margin:0}},children:n[e].icon}),_(it,{as:"span",color:n[e].color,fontSize:".75rem",fontStyle:"normal",fontWeight:"400",fontFamily:"Roboto",lineHeight:".875rem",margin:"0",children:t!=null?t:n[e].text})]}):null}vx.displayName="TinyAlert";function vu({bg:e,borderColorActive:t=[j("colors-main-deepSkyBlue"),j("colors-neutral-white")],children:r,color:n=j("colors-neutral-white"),disabled:i=!1,fillLoader:a=j("colors-neutral-white"),isFullWidth:o=!1,leftIcon:l,m:s="0",isLoading:u=!1,onClick:c,rightIcon:d,rounded:f=!1,size:p="regular",touchDark:m=!1,type:y="button",tabIndex:v,id:h}){var O,F,W;let g=r!=null?r:null;!r&&!d&&!l&&(g="Button");const b=".75rem",x=f?"12px":j("radii-small"),k=(O=e==null?void 0:e.main)!=null?O:j("colors-main-deepSkyBlue"),P=m?"rgba(160, 160, 160, 0.2)":"rgba(255, 255, 255, 0.2)",T=!r&&(d!=null?d:l)?"onlyIcon":"";return _(it,{margin:s,sx:{".react-ripples":{borderRadius:x,display:`${o?"grid":"inline-flex!important"}`}},children:_(KS,{color:P,children:_(Rp,{id:h,fontWeight:"500",fontSize:p==="regular"?"medium":"small",bg:k,size:p==="regular"?"md":"sm",borderRadius:x,color:n,className:T,disabled:i,height:"auto",minHeight:p==="regular"?"2.813rem":"2rem",lineHeight:"initial",iconSpacing:j("space-xs"),isActive:!1,isLoading:u,leftIcon:l,onClick:J=>{!u&&!i&&(c==null||c(J))},type:y,tabIndex:v,paddingTop:p==="regular"?b:j(T?"space-xs":"space-xxs"),paddingBottom:p==="regular"?b:j(T?"space-xs":"space-xxs"),paddingLeft:j(p==="regular"?"space-s":"space-xs"),paddingRight:j(p==="regular"?"space-s":"space-xs"),position:"relative",isFullWidth:o,rightIcon:d,spinner:_(RL,{fill:a}),_active:{bg:(F=e==null?void 0:e.main)!=null?F:j("colors-main-azureRadiance")},_disabled:{opacity:"50%",cursor:"not-allowed"},_focus:{boxShadow:"none"},_focusVisible:{boxShadow:`inset 0 0 0 2px ${t[0]}, inset 0 0 0 4px ${t[1]}`},_hover:{bg:(W=e==null?void 0:e.hover)!=null?W:j("colors-main-azureRadiance")},sx:{"&[data-loading]":{boxShadow:"none",cursor:"wait"},"&.onlyIcon span":{m:0},span:{h:"1rem"}},children:g})})})}vu.displayName="Btn";function hx({children:e,disabled:t=!1,isFullWidth:r=!1,leftIcon:n,m:i="0",isLoading:a=!1,onClick:o,rightIcon:l,size:s="regular",type:u="button",tabIndex:c,id:d}){return _(vu,{id:d,disabled:t,isFullWidth:r,isLoading:a,leftIcon:n,m:i,onClick:o,rightIcon:l,size:s,type:u,tabIndex:c,children:e})}hx.displayName="BtnPrimary";function mx({children:e,disabled:t=!1,isFullWidth:r=!1,leftIcon:n,m:i="0",isLoading:a=!1,onClick:o,rightIcon:l,size:s="regular",type:u="button",tabIndex:c,id:d}){return _(vu,{id:d,bg:{main:j("colors-main-veryLightBlue"),hover:j("colors-main-linkWater")},fillLoader:j("colors-main-deepSkyBlue"),borderColorActive:[j("colors-main-deepSkyBlue"),j("colors-neutral-white")],color:j("colors-main-deepSkyBlue"),disabled:t,isFullWidth:r,isLoading:a,leftIcon:n,m:i,onClick:o,rightIcon:l,size:s,touchDark:!0,type:u,tabIndex:c,children:e})}mx.displayName="BtnSecondary";function gx({children:e,iconStatus:t="multimedia",rightIcon:r,withoutColor:n=!1,m:i="0",type:a="button",tabIndex:o,id:l,onClick:s}){var h;const u=j("colors-neutral-gray"),c=j("colors-main-deepSkyBlue"),d=j("colors-neutral-white"),f=n?j("colors-main-blueGrey"):c,p={answer:_(px,{color:f}),back:_(tx,{color:f}),delete:_(dx,{color:f}),download:_(ex,{color:f}),edit:_(cx,{color:f}),more:_(fx,{color:f}),multimedia:_(rx,{color:f}),password:_(ux,{color:f}),record:_(XS,{color:f}),noIcon:_(ja,{})},m=(h=p[t])!=null?h:p.multimedia,y=r?m:void 0,v=r?void 0:m;return _(Rp,{id:l,type:a,tabIndex:o,height:"24px",background:"transparent",fontFamily:"Roboto",fontStyle:"normal",fontWeight:"500",fontSize:"14px",lineHeight:"16px",textDecorationLine:"underline",borderRadius:"12px",paddingTop:j("space-xxs"),paddingBottom:j("space-xxs"),paddingLeft:j("space-xs"),paddingRight:j("space-xs"),color:u,rightIcon:y,leftIcon:v,m:i,onClick:s,_hover:{color:`${c}`},_focusVisible:{boxShadow:`inset 0 0 0 2px ${c}, inset 0 0 0 4px ${d}`},_focus:{boxShadow:"none"},_active:{bg:"transparent"},sx:{"&:hover":{"svg path":{fill:`${c}`},"@media (hover: none)":{color:`${u}`,"svg path":{fill:f}}}},children:e})}gx.displayName="BtnTertiary";function yx({children:e,m:t="0",onClick:r,id:n}){return _(it,{as:"button",id:n,backgroundColor:"transparent",borderStyle:"none",width:"fit-content",padding:".25em",fontFamily:"Roboto",fontStyle:"normal",fontWeight:"500",fontSize:".875rem",lineHeight:"1rem",textDecorationLine:"underline",color:j("colors-main-deepSkyBlue"),m:t,onClick:r,_hover:{color:j("colors-neutral-darkCharcoal"),cursor:"pointer"},children:e})}yx.displayName="BtnLink";const LL=4;function bx(){const{background:e,labels:t,logo:r,logoAlt:n,Profile:i}=w.useContext(hu);return ee(it,{as:"header",bgImg:e,bgPos:"center",bgSize:"cover",height:"8.75rem",borderBottom:j("borders-light"),pos:"relative",children:[ee(it,{p:"1rem",children:[(i==null?void 0:i.id)!==LL&&_(Po,{bg:j("colors-neutral-white"),m:"0 0 .625rem 0",children:ee(tu,{children:[_(nx,{m:"0 .25rem 0 0"}),i==null?void 0:i.name]})}),t!==void 0&&t.length>0&&_(aS,{direction:"row",spacing:".625rem",wrap:"wrap",children:t.map((a,o)=>_(Po,{bg:a.id==="NEW"?j("colors-secondary-pumpkin"):void 0,children:a.text},o))})]}),r!==void 0&&r.length>0&&_(nS,{pos:"absolute",bottom:"0",left:".9375rem",transform:"translateY(30%)",h:"3.5rem",border:j("borders-light"),bg:j("colors-neutral-white"),overflow:"hidden",borderRadius:j("radii-small"),w:"6.25rem",children:_(RI,{src:r,alt:n!=null?n:"logo",maxHeight:"3.5rem",maxWidth:"6.25rem"})})]})}bx.displayName="Header";function cv({date:e}){return e==null||e.length===0?null:_(_i,{fontSize:".75rem",color:j("colors-neutral-darkCharcoal"),m:"0",children:e})}cv.displayName="DateStatus";function Sx({type:e,progressValue:t=0}){switch(e){case"schedule":return _(ix,{});case"certificate":return _(QS,{});case"circularCheck":return _(JS,{});case"progress":return _(ov,{value:t});case"circularInformation":return _(uv,{});case"info":return _(uv,{});default:return null}}const BL=7;function xx({progress:e,status:t}){return ee(ja,{children:[ee(tu,{children:[_(Sx,{type:e.icon,progressValue:e.progress}),_(_i,{m:"0",ml:".625rem",fontSize:".875rem",lineHeight:"1.125rem",children:e==null?void 0:e.label})]}),(t==null?void 0:t.id)===BL&&(e==null?void 0:e.finalGrade)&&(e==null?void 0:e.finalGrade.length)>0&&_(Po,{size:"sm",bg:e.isApproved?j("colors-alert-jadeGreen"):j("colors-alert-red"),color:j("colors-neutral-white"),children:e==null?void 0:e.finalGrade})]})}function wx(){const{name:e,dateStatus:t,information:r,progress:n,status:i}=w.useContext(hu);return n==null?null:ee(it,{marginTop:"1.875rem",as:"section",p:"0 .9375rem",children:[(t==null?void 0:t.hasDates)&&ee(cR,{direction:"row",divider:t.init!==void 0&&t.init.length>0&&t.end!==void 0&&n.icon!==null&&t.end.length>0?_(it,{h:".5rem",w:"1px",bg:j("colors-neutral-silverSand"),alignSelf:"center"}):_(ja,{}),children:[_(cv,{date:t.init}),_(cv,{date:t.end})]}),_(QI,{as:"h2",fontSize:"1rem",mt:".3125rem",fontWeight:"700",lineHeight:"1.3",children:e}),_(tu,{mt:"1rem",justify:"space-between",children:_(xx,{progress:n,status:i})}),r!=null&&(r==null?void 0:r.length)>0&&_(iR,{spacing:".625rem",paddingInlineStart:"0",pt:".625rem",m:".625rem 0 0",lineHeight:".875rem",borderTop:j("borders-light"),children:r.map((a,o)=>{var l;return ee(aR,{display:"flex",children:[_(Sx,{type:a.icon}),_(it,{display:"inline-block",ml:".625rem",children:a.href!==void 0&&((l=a.href)==null?void 0:l.length)>0?_(eR,{isExternal:!0,href:a.href,color:j("colors-main-deepSkyBlue"),textDecor:"underline",fontWeight:"500",fontSize:".75rem",children:a.text}):_(_i,{m:"0",color:j("colors-neutral-gray"),fontSize:".75rem",children:a.text})})]},o)})})]})}wx.displayName="Section";const D={name:"Orientaci\xF3n en la prevenci\xF3n de contagio de COVID-19",background:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT76y4DAhqWAlCspmGYWcbxSDnLw3p1FzJQKA&usqp=CAU",logo:"https://procalidad.cl/wp-content/uploads/2021/05/logo-achs.png",logoAlt:"op",status:{id:6,name:"NEXT",detail:"",style:""},Profile:{id:4,name:"Alumno"},progress:{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule",progress:0,isApproved:!1,finalGrade:""},dateStatus:{hasDates:!0,init:"Inicia 17 ene 2022",end:"Finaliza 10 ene 2023"},information:[{icon:"schedule",text:"Certificado por ACHS",href:"http://google.com"},{icon:"certificate",text:"Certificado por ACHS",href:""},{icon:"circularCheck",text:"Certificado por ACHS",href:"http://google.com"},{icon:"circularInformation",text:"Certificado por ACHS",href:""}],action:{enabled:!0,text:"Tu curso a\xFAn no comienza",hasIcon:!1,href:"https://platform.eclass.io/",targetBlank:!1},labels:[{id:"OBLIGATORY",text:"Obligatorio"}]},Cx={noHabilitado:L(I({},D),{id:1,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:1,name:"noHabilitado"}),progress:L(I({},D.progress),{label:"Inscripci\xF3n no habilitada",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:null,action:L(I({},D.action),{href:"#",text:"Ver informaci\xF3n del curso"}),labels:[]}),inscripcionFutura:L(I({},D),{id:1,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:1,name:"noHabilitado"}),progress:L(I({},D.progress),{label:"Podr\xE1s inscribirte a partir del 31 de marzo de 2022",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:null,action:L(I({},D.action),{href:"#",text:"Ver informaci\xF3n del curso"}),labels:[{id:"NEW",text:"Nuevo"}]}),inscripcionFinalizo:L(I({},D),{id:1,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:1,name:"noHabilitado"}),progress:L(I({},D.progress),{label:"El per\xEDodo de inscripci\xF3n finaliz\xF3 el 31 de marzo de 2022",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:null,action:L(I({},D.action),{href:"#",text:"Ver informaci\xF3n del curso"}),labels:[{id:"NEW",text:"Nuevo"}]}),preInscripcion:L(I({},D),{logo:"https://cdn.eclass.com/img/productos/logos/logo-utec-square.jpg",background:"https://cdn.eclass.com/img/cursos/default1.png",id:2,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:2,name:"preInscripcion"}),progress:L(I({},D.progress),{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Solicitar inscripci\xF3n",targetBlank:!0}),labels:[]}),preInscripcion2:L(I({},D),{id:3,hasFinanzeFreezed:!1,logo:"",status:L(I({},D.status),{id:2,name:"preInscripcion"}),progress:L(I({},D.progress),{label:"Estamos procesando tu solicitud de inscripci\xF3n",icon:"circularInformation"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ver informaci\xF3n del curso",targetBlank:!0}),labels:[]}),inscripcion:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default2.png",id:4,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:3,name:"inscripcion"}),progress:L(I({},D.progress),{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule"}),dateStatus:L(I({},D.dateStatus),{hasDates:!1}),information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Inscr\xEDbete",targetBlank:!0})}),inscripcion2:L(I({},D),{id:5,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:3,name:"inscripcion"}),progress:L(I({},D.progress),{label:"Tienes hasta el Lunes 16 de Enero para de 2022 inscribirte",icon:"schedule"}),dateStatus:L(I({},D.dateStatus),{hasDates:!0}),information:[],action:L(I({},D.action),{text:"Inscr\xEDbete",targetBlank:!0}),labels:[{id:"OBLIGATORY",text:"Obligatorio"},{id:"NEW",text:"Nuevo"}]}),noDisponible:L(I({},D),{id:6,hasFinanzeFreezed:!1,logo:"",background:"https://cdn.eclass.com/img/cursos/default2.png",status:L(I({},D.status),{id:4,name:"no disponible"}),progress:L(I({},D.progress),{label:"Tu curso iniciar\xE1 el Lunes 16 de Enero de 2023",icon:"schedule"}),dateStatus:{init:"Inicia 17 ene 2022",end:"",hasDates:!0},information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ver informaci\xF3n del curso",targetBlank:!0}),labels:[]}),noDisponible2:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default3.png",logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",id:7,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:4,name:"no disponible"}),progress:L(I({},D.progress),{label:"Tu curso iniciar\xE1 el Lunes 16 de Enero de 2023",icon:"schedule"}),dateStatus:{init:"Inicia 17 ene 2022",end:"",hasDates:!0},information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{enabled:!1}),labels:[]}),noDisponible3:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default3.png",logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",id:57,hasFinanzeFreezed:!1,Profile:{id:1,name:"Administrador"},status:L(I({},D.status),{id:4,name:"no disponible"}),progress:L(I({},D.progress),{label:"Tu curso iniciar\xE1 el Lunes 16 de Enero de 2023",icon:"schedule"}),dateStatus:{init:"Inicia 17 ene 2022",end:"",hasDates:!0},information:[{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{enabled:!1}),labels:[]}),activado:L(I({},D),{id:8,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:5,name:"disponible"}),progress:L(I({},D.progress),{label:"\xA1Ya puedes ingresar a tu curso y comenzar a estudiar!",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar:L(I({},D),{id:9,hasFinanzeFreezed:!1,logo:"",status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso inici\xF3 hace 3 d\xEDas, \xA1Comienza a estudiar!",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar2:L(I({},D),{id:10,hasFinanzeFreezed:!1,background:"https://cdn.eclass.com/img/cursos/default2.png",status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso finaliza en 7 d\xEDas",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar3:L(I({},D),{id:11,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso finaliza ma\xF1ana a las 23:30 hrs. GMT -04:00",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),sinEstudiar4:L(I({},D),{logo:"https://cdn.eclass.com/img/productos/logos/logo-uandes-square.jpg",id:12,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:6,name:"sinEstudiar"}),progress:L(I({},D.progress),{label:"Tu curso finaliza hoy a las 23:30 hrs. GMT -04:00",icon:"progress",progress:0}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Comenzar a estudiar"}),labels:[]}),continuar:L(I({},D),{id:13,hasFinanzeFreezed:!0,status:L(I({},D.status),{id:7,name:"continuar"}),logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",progress:L(I({},D.progress),{label:"Has completado un 25% de tu curso",icon:"progress",progress:25}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{targetBlank:!0,hasIcon:!0,text:"Continuar estudiando"}),labels:[]}),continuar2:L(I({},D),{id:14,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:7,name:"continuar"}),logo:"https://cdn.eclass.com/files/branding/programa/2119/imagePdf-1628188569.jpg",progress:L(I({},D.progress),{label:"Has completado un 100% de tu curso",icon:"progress",progress:100}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Informaci\xF3n del curso",href:"#"},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),pendiente:L(I({},D),{background:"https://cdn.eclass.com/img/cursos/default3.png",id:15,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:8,name:"pendiente"}),progress:L(I({},D.progress),{label:"\xA1Curso finalizado! Estamos calculando tu promedio final",icon:"circularInformation"}),dateStatus:{init:"",end:"Finaliza 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),terminado:L(I({},D),{id:16,hasFinanzeFreezed:!1,status:L(I({},D.status),{id:7,name:"QUALIFIED"}),progress:L(I({},D.progress),{label:"Curso aprobado con nota",icon:"circularCheck",isApproved:!0,finalGrade:"6,5"}),dateStatus:{init:"",end:"Finaliz\xF3 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),terminado2:L(I({},D),{logo:"https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",id:17,hasFinanzeFreezed:!1,Profile:{id:1,name:"Administrador"},status:L(I({},D.status),{id:7,name:"QUALIFIED"}),progress:L(I({},D.progress),{label:"Curso reprobado con nota",icon:"circularCheck",isApproved:!1,finalGrade:"3,5"}),dateStatus:{init:"",end:"Finaliz\xF3 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]}),terminado3:L(I({},D),{id:18,hasFinanzeFreezed:!1,logo:"",status:L(I({},D.status),{id:9,name:"terminado"}),progress:L(I({},D.progress),{label:"Curso finalizado",icon:"circularCheck"}),dateStatus:{init:"",end:"Finaliz\xF3 16 nov 2023",hasDates:!0},information:[{icon:"circularInformation",text:"Pertenece a: Diplomado en Gesti\xF3n de la Sustentabilidad en Organizaciones",href:""},{icon:"certificate",text:"Certificado por ACHS",href:""}],action:L(I({},D.action),{text:"Ir a mi curso"}),labels:[]})},zL=Object.keys(Cx).map(e=>Cx[e]),Ex=4,fv=(e,t=Ex)=>e||t!==Ex;function DL(e=4){const t=e*Px+_x*(e-1);return{px:`${t*16}px`,rem:`${t}rem`,remValue:t}}function $L({isOpen:e,onOpen:t,onClose:r,showOverlay:n,modalPaymentText:i}){const a={backgroundColor:"transparent"};function o(){return _(cL,{bg:"#2F2F2F",opacity:"0.32 !important",backdropBlur:"2px"})}const[l,s]=w.useState(_(o,{}));return w.useEffect(()=>{n&&s(_(o,{}))},[n]),ee(av,{isCentered:!0,isOpen:e,onClose:r,size:"xl",blockScrollOnMount:!1,closeOnOverlayClick:!1,children:[l,ee(sL,{marginTop:"0",marginBottom:["25.75rem","15.75rem"],children:[ee(fL,{justifyContent:"center",display:"flex",flexDirection:"column",alignItems:"center",p:"2rem 2rem 0 2rem",children:[_(ZS,{w:"52",h:"45",viewBox:"0 0 45 52"}),i.title]}),_(vL,{size:"md",color:j("colors-main-blueGrey"),_hover:a,_focus:a,_active:a}),_(dL,{p:"1rem 2rem 2rem 2rem",children:_(_i,{align:"center",children:i.body})}),_(pL,{justifyContent:"center",borderTop:"1px solid",borderTopColor:j("colors-neutral-platinum"),p:"1rem",children:_(Rp,{onClick:r,color:j("colors-main-deepSkyBlue"),backgroundColor:"transparent",fontWeight:"500",height:"auto",lineHeight:"1.172rem",_hover:a,_focus:a,_active:a,children:i.buttonName})})]})]})}av.displayName="Modal";function kx({modalPaymentText:e}){const{action:t,Profile:r,hasFinanzeFreezed:n}=w.useContext(hu),{isOpen:i,onOpen:a,onClose:o}=F2(),[l,s]=w.useState(!1),u={backgroundColor:"transparent"},c=()=>{s(!0),a()};return t==null?null:ee(nS,{as:"footer",mt:"1rem",p:"1rem",borderTop:"1px solid",borderTopColor:j("colors-neutral-platinum"),children:[fv(t.enabled,r==null?void 0:r.id)?ee(ja,{children:[n?_(it,{color:j("colors-main-deepSkyBlue"),backgroundColor:"transparent",fontWeight:"500",height:"auto",mr:t.hasIcon?"1.5rem":"0",lineHeight:"1.172rem",p:"0",zIndex:"inherit !important",_hover:u,_focus:u,_active:u,onClick:()=>c(),fontSize:"1rem !important",children:t.text}):_(_i,{color:j("colors-main-deepSkyBlue"),fontWeight:"500",mr:t.hasIcon?"1.5rem":"0",lineHeight:"1.172rem",mt:"0",mb:"0",children:t.text}),t.hasIcon&&_(qS,{color:j("colors-main-deepSkyBlue")})]}):_(_i,{fontWeight:"500",lineHeight:"1.172rem",color:j("colors-neutral-spanishGrey"),m:"0",children:t.text}),_($L,{isOpen:i,onClose:o,showOverlay:l,onOpen:a,modalPaymentText:e})]})}kx.displayName="Footer";const hu=w.createContext({});function NL({enabled:e,children:t}){return e?_(sv,{children:t}):_(ja,{children:t})}function Tx({data:e,modalPaymentText:t}){var n,i,a,o,l,s,u,c;const r={boxShadow:`0 2px 7px 0 ${j("colors-neutral-silverSand")}`};return _(hu.Provider,{value:e,children:_(hR,{as:"article",border:j("borders-light"),borderRadius:j("radii-big"),cursor:"pointer",transition:"box-shadow .3s",_active:r,_hover:r,_focus:r,overflow:"hidden",children:_(NL,{enabled:fv((i=(n=e.action)==null?void 0:n.enabled)!=null?i:!1,(a=e.Profile)==null?void 0:a.id),children:ee(tu,{direction:"column",justify:"space-between",h:"100%",children:[ee(it,{children:[!e.hasFinanzeFreezed&&fv((l=(o=e.action)==null?void 0:o.enabled)!=null?l:!1,(s=e.Profile)==null?void 0:s.id)&&_(vR,{href:(u=e.action)==null?void 0:u.href,isExternal:(c=e.action)==null?void 0:c.targetBlank}),_(bx,{}),_(wx,{})]}),_(kx,{modalPaymentText:t})]})})})})}Tx.displayName="CourseBox";const _x=1.25,Px=17.8125;function Ax({courses:e,modalPaymentText:t,m:r="0 auto"}){return e===void 0?null:_(it,{display:"grid",gridColumnGap:`${_x}rem`,gridRowGap:"1.75rem",gridTemplateColumns:`repeat(auto-fill, minmax(${Px}rem, 1fr))`,m:r,w:"100%",children:e==null?void 0:e.map(n=>_(Tx,{data:n,modalPaymentText:t},n.id))})}Ax.displayName="CourseList",oe.Btn=vu,oe.BtnLink=yx,oe.BtnPrimary=hx,oe.BtnSecondary=mx,oe.BtnTertiary=gx,oe.CourseList=Ax,oe.CourseStatus=xx,oe.Label=Po,oe.Progress=ov,oe.Ripples=sv,oe.TinyAlert=vx,oe.dataFake=zL,oe.maxWidthCoursesList=DL,oe.theme=PL,oe.vars=j,Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
412
412
  //# sourceMappingURL=eclass-ui-kit.umd.js.map